9fc8e4bcb1fa72f41f887dd2f8ac7ea7f23ac568
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         yesno: Move AC_LIBOBJ invocations to module description.
4         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         xstrtol: Move AC_LIBOBJ invocations to module description.
10         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         xstrtold: Move AC_LIBOBJ invocations to module description.
16         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         xstrtod: Move AC_LIBOBJ invocations to module description.
22         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
23         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         xnanosleep: Move AC_LIBOBJ invocations to module description.
28         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
29         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         xgetcwd: Move AC_LIBOBJ invocations to module description.
34         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
36
37 2011-05-23  Bruno Haible  <bruno@clisp.org>
38
39         xalloc: Move AC_LIBOBJ invocations to module description.
40         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
41         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         write-any-file: Move AC_LIBOBJ invocations to module description.
46         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47         invocation.
48         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
49
50 2011-05-23  Bruno Haible  <bruno@clisp.org>
51
52         utimens: Move AC_LIBOBJ invocations to module description.
53         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
54         * modules/utimens (Makefile.am): Augment lib_SOURCES.
55
56 2011-05-23  Bruno Haible  <bruno@clisp.org>
57
58         utimecmp: Move AC_LIBOBJ invocations to module description.
59         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
60         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
61
62 2011-05-23  Bruno Haible  <bruno@clisp.org>
63
64         userspec: Move AC_LIBOBJ invocations to module description.
65         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
66         * modules/userspec (Makefile.am): Augment lib_SOURCES.
67
68 2011-05-23  Bruno Haible  <bruno@clisp.org>
69
70         unlinkdir: Move AC_LIBOBJ invocations to module description.
71         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
72         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
73
74 2011-05-23  Bruno Haible  <bruno@clisp.org>
75
76         unistd-safer: Move AC_LIBOBJ invocations to module description.
77         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
78         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
79
80 2011-05-23  Bruno Haible  <bruno@clisp.org>
81
82         tempname: Move AC_LIBOBJ invocations to module description.
83         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
84         * modules/tempname (Makefile.am): Augment lib_SOURCES.
85
86 2011-05-23  Bruno Haible  <bruno@clisp.org>
87
88         strftime: Move AC_LIBOBJ invocations to module description.
89         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
90         * modules/strftime (Makefile.am): Augment lib_SOURCES.
91
92 2011-05-23  Bruno Haible  <bruno@clisp.org>
93
94         stdlib-safer: Move AC_LIBOBJ invocations to module description.
95         * m4/stdlib-safer.m4: Remove file.
96         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
97         (configure.ac): Remove gl_STDLIB_SAFER call.
98         (Makefile.am): Augment lib_SOURCES.
99
100 2011-05-23  Bruno Haible  <bruno@clisp.org>
101
102         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
103         * m4/stdio-safer.m4: Remove file.
104         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
105         (configure.ac): Remove gl_TMPFILE_SAFER call.
106         (Makefile.am): Augment lib_SOURCES.
107
108 2011-05-23  Bruno Haible  <bruno@clisp.org>
109
110         popen-safer: Move AC_LIBOBJ invocations to module description.
111         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
112         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
113         (configure.ac): Remove gl_POPEN_SAFER call.
114         (Makefile.am): Augment lib_SOURCES.
115
116 2011-05-23  Bruno Haible  <bruno@clisp.org>
117
118         freopen-safer: Move AC_LIBOBJ invocations to module description.
119         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
120         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
121         (configure.ac): Remove gl_FREOPEN_SAFER call.
122         (Makefile.am): Augment lib_SOURCES.
123
124 2011-05-23  Bruno Haible  <bruno@clisp.org>
125
126         fopen-safer: Move AC_LIBOBJ invocations to module description.
127         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
128         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
129         (configure.ac): Remove gl_FOPEN_SAFER call.
130         (Makefile.am): Augment lib_SOURCES.
131
132 2011-05-23  Bruno Haible  <bruno@clisp.org>
133
134         crypto/sha512: Move AC_LIBOBJ invocations to module description.
135         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
136         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
137
138 2011-05-23  Bruno Haible  <bruno@clisp.org>
139
140         crypto/sha256: Move AC_LIBOBJ invocations to module description.
141         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
142         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
143
144 2011-05-23  Bruno Haible  <bruno@clisp.org>
145
146         crypto/sha1: Move AC_LIBOBJ invocations to module description.
147         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
148         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
149
150 2011-05-23  Bruno Haible  <bruno@clisp.org>
151
152         settime: Move AC_LIBOBJ invocations to module description.
153         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
154         * modules/settime (Makefile.am): Augment lib_SOURCES.
155
156 2011-05-23  Bruno Haible  <bruno@clisp.org>
157
158         savedir: Move AC_LIBOBJ invocations to module description.
159         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
160         * modules/savedir (Makefile.am): Augment lib_SOURCES.
161
162 2011-05-23  Bruno Haible  <bruno@clisp.org>
163
164         save-cwd: Move AC_LIBOBJ invocations to module description.
165         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
166         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
167
168 2011-05-23  Bruno Haible  <bruno@clisp.org>
169
170         same: Move AC_LIBOBJ invocations to module description.
171         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
172         * modules/same (Makefile.am): Augment lib_SOURCES.
173
174 2011-05-23  Bruno Haible  <bruno@clisp.org>
175
176         safe-write: Move AC_LIBOBJ invocations to module description.
177         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
178         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
179         instead of gl_SAFE_WRITE.
180         (Makefile.am): Augment lib_SOURCES.
181
182 2011-05-23  Bruno Haible  <bruno@clisp.org>
183
184         safe-read: Move AC_LIBOBJ invocations to module description.
185         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
186         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
187         of gl_SAFE_READ.
188         (Makefile.am): Augment lib_SOURCES.
189
190 2011-05-23  Bruno Haible  <bruno@clisp.org>
191
192         safe-alloc: Move AC_LIBOBJ invocations to module description.
193         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
194         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
195
196 2011-05-23  Bruno Haible  <bruno@clisp.org>
197
198         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
199         * m4/rijndael.m4: Remove file.
200         * modules/crypto/rijndael (Files): Remove it.
201         (configure.ac): Remove gl_RIJNDAEL call.
202         (Makefile.am): Augment lib_SOURCES.
203
204 2011-05-23  Bruno Haible  <bruno@clisp.org>
205
206         readtokens: Move AC_LIBOBJ invocations to module description.
207         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
208         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
209
210 2011-05-23  Bruno Haible  <bruno@clisp.org>
211
212         read-file: Move AC_LIBOBJ invocations to module description.
213         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
214         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
215         of gl_FUNC_READ_FILE.
216         (Makefile.am): Augment lib_SOURCES.
217
218 2011-05-23  Bruno Haible  <bruno@clisp.org>
219
220         quotearg: Move AC_LIBOBJ invocations to module description.
221         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
222         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
223
224 2011-05-23  Bruno Haible  <bruno@clisp.org>
225
226         quote: Move AC_LIBOBJ invocations to module description.
227         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
228         * modules/quote (Makefile.am): Augment lib_SOURCES.
229
230 2011-05-23  Bruno Haible  <bruno@clisp.org>
231
232         posixver: Move AC_LIBOBJ invocations to module description.
233         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
234         * modules/posixver (Makefile.am): Augment lib_SOURCES.
235
236 2011-05-23  Bruno Haible  <bruno@clisp.org>
237
238         posixtm: Move AC_LIBOBJ invocations to module description.
239         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
240         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
241
242 2011-05-23  Bruno Haible  <bruno@clisp.org>
243
244         physmem: Move AC_LIBOBJ invocations to module description.
245         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
246         * modules/physmem (Makefile.am): Augment lib_SOURCES.
247
248 2011-05-23  Bruno Haible  <bruno@clisp.org>
249
250         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
251         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
252         invocation.
253         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
254
255 2011-05-23  Bruno Haible  <bruno@clisp.org>
256
257         mpsort: Move AC_LIBOBJ invocations to module description.
258         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
259         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
260
261 2011-05-23  Bruno Haible  <bruno@clisp.org>
262
263         modechange: Move AC_LIBOBJ invocations to module description.
264         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
265         * modules/modechange (Makefile.am): Augment lib_SOURCES.
266
267 2011-05-23  Bruno Haible  <bruno@clisp.org>
268
269         mkdir-p: Move AC_LIBOBJ invocations to module description.
270         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
271         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
272
273 2011-05-23  Bruno Haible  <bruno@clisp.org>
274
275         mkancesdirs: Move AC_LIBOBJ invocations to module description.
276         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
277         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
278
279 2011-05-23  Bruno Haible  <bruno@clisp.org>
280
281         mgetgroups: Move AC_LIBOBJ invocations to module description.
282         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
283         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
284
285 2011-05-23  Bruno Haible  <bruno@clisp.org>
286
287         memxor: Move AC_LIBOBJ invocations to module description.
288         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
289         * modules/memxor (Makefile.am): Augment lib_SOURCES.
290
291 2011-05-23  Bruno Haible  <bruno@clisp.org>
292
293         memcoll: Move AC_LIBOBJ invocations to module description.
294         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
295         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
296
297 2011-05-23  Bruno Haible  <bruno@clisp.org>
298
299         memcasecmp: Move AC_LIBOBJ invocations to module description.
300         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
301         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
302
303 2011-05-23  Bruno Haible  <bruno@clisp.org>
304
305         crypto/md5: Move AC_LIBOBJ invocations to module description.
306         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
307         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
308
309 2011-05-23  Bruno Haible  <bruno@clisp.org>
310
311         crypto/md4: Move AC_LIBOBJ invocations to module description.
312         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
313         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
314
315 2011-05-23  Bruno Haible  <bruno@clisp.org>
316
317         crypto/md2: Move AC_LIBOBJ invocations to module description.
318         * m4/md2.m4: Remove file.
319         * modules/crypto/md2 (Files): Remove it.
320         (configure.ac): Remove gl_MD2 call.
321         (Makefile.am): Augment lib_SOURCES.
322
323 2011-05-23  Bruno Haible  <bruno@clisp.org>
324
325         long-options: Move AC_LIBOBJ invocations to module description.
326         * m4/long-options.m4: Remove file.
327         * modules/long-options (Files): Remove it.
328         (configure.ac): Remove gl_LONG_OPTIONS call.
329         (Makefile.am): Augment lib_SOURCES.
330
331 2011-05-23  Bruno Haible  <bruno@clisp.org>
332
333         i-ring: Move AC_LIBOBJ invocations to module description.
334         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
335         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
336
337 2011-05-23  Bruno Haible  <bruno@clisp.org>
338
339         idcache: Move AC_LIBOBJ invocations to module description.
340         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
341         * modules/idcache (Makefile.am): Augment lib_SOURCES.
342
343 2011-05-23  Bruno Haible  <bruno@clisp.org>
344
345         human: Move AC_LIBOBJ invocations to module description.
346         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
347         * modules/human (Makefile.am): Augment lib_SOURCES.
348
349 2011-05-23  Bruno Haible  <bruno@clisp.org>
350
351         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
352         * m4/hmac-sha1.m4: Remove file.
353         * modules/crypto/hmac-sha1 (Files): Remove it.
354         (configure.ac): Remove gl_HMAC_SHA1 call.
355         (Makefile.am): Augment lib_SOURCES.
356
357 2011-05-23  Bruno Haible  <bruno@clisp.org>
358
359         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
360         * m4/hmac-md5.m4: Remove file.
361         * modules/crypto/hmac-md5 (Files): Remove it.
362         (configure.ac): Remove gl_HMAC_MD5 call.
363         (Makefile.am): Augment lib_SOURCES.
364
365 2011-05-23  Bruno Haible  <bruno@clisp.org>
366
367         hash: Move AC_LIBOBJ invocations to module description.
368         * m4/hash.m4: Remove file.
369         * modules/hash (Files): Remove it.
370         (configure.ac): Remove gl_HASH call.
371         (Makefile.am): Augment lib_SOURCES.
372
373 2011-05-23  Bruno Haible  <bruno@clisp.org>
374
375         hard-locale: Move AC_LIBOBJ invocations to module description.
376         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
377         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
378
379 2011-05-23  Bruno Haible  <bruno@clisp.org>
380
381         getugroups: Move AC_LIBOBJ invocations to module description.
382         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
383         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
384
385 2011-05-23  Bruno Haible  <bruno@clisp.org>
386
387         gettime: Move AC_LIBOBJ invocations to module description.
388         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
389         * modules/gettime (Makefile.am): Augment lib_SOURCES.
390
391 2011-05-23  Bruno Haible  <bruno@clisp.org>
392
393         getndelim2: Move AC_LIBOBJ invocations to module description.
394         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
395         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
396
397 2011-05-23  Bruno Haible  <bruno@clisp.org>
398
399         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
400         * m4/gc-pbkdf2-sha1.m4: Remove file.
401         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
402         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
403         (Makefile.am): Augment lib_SOURCES.
404
405 2011-05-23  Bruno Haible  <bruno@clisp.org>
406
407         fts: Move AC_LIBOBJ invocations to module description.
408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
409         * modules/fts (configure.ac): ... to here.
410
411 2011-05-23  Bruno Haible  <bruno@clisp.org>
412
413         file-type: Move AC_LIBOBJ invocations to module description.
414         * m4/file-type.m4: Remove file.
415         * modules/file-type (Files): Remove it.
416         (configure.ac): Remove gl_FILE_TYPE call.
417         (Makefile.am): Augment lib_SOURCES.
418
419 2011-05-23  Bruno Haible  <bruno@clisp.org>
420
421         filenamecat*: Respect rules for use of AC_LIBOBJ.
422         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
423         Remove AC_LIBOBJ invocation.
424         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
425         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
426
427 2011-05-23  Bruno Haible  <bruno@clisp.org>
428
429         filemode: Move AC_LIBOBJ invocations to module description.
430         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
431         * modules/filemode (Makefile.am): Augment lib_SOURCES.
432
433 2011-05-23  Bruno Haible  <bruno@clisp.org>
434
435         openat-safer: Move AC_LIBOBJ invocations to module description.
436         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
437         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
438
439 2011-05-23  Bruno Haible  <bruno@clisp.org>
440
441         fcntl-safer: Move AC_LIBOBJ invocations to module description.
442         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
443         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
444
445 2011-05-23  Bruno Haible  <bruno@clisp.org>
446
447         exclude: Move AC_LIBOBJ invocations to module description.
448         * m4/exclude.m4: Remove file.
449         * modules/exclude (Files): Remove it.
450         (configure.ac): Remove gl_EXCLUDE call.
451         (Makefile.am): Augment lib_SOURCES.
452
453 2011-05-23  Bruno Haible  <bruno@clisp.org>
454
455         dirname*: Respect rules for use of AC_LIBOBJ.
456         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
457         invocations.
458         * modules/dirname (Makefile.am): Augment lib_SOURCES.
459         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
460
461 2011-05-23  Bruno Haible  <bruno@clisp.org>
462
463         dirent-safer: Move AC_LIBOBJ invocations to module description.
464         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
465         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
466
467 2011-05-23  Bruno Haible  <bruno@clisp.org>
468
469         crypto/des: Move AC_LIBOBJ invocations to module description.
470         * m4/des.m4: Remove file.
471         * modules/crypto/des (Files): Remove it.
472         (configure.ac): Remove gl_DES call.
473         (Makefile.am): Augment lib_SOURCES.
474
475 2011-05-23  Bruno Haible  <bruno@clisp.org>
476
477         cycle-check: Move AC_LIBOBJ invocations to module description.
478         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
479         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
480
481 2011-05-23  Bruno Haible  <bruno@clisp.org>
482
483         c-strtold: Move AC_LIBOBJ invocations to module description.
484         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
485         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
486
487 2011-05-23  Bruno Haible  <bruno@clisp.org>
488
489         c-strtod: Move AC_LIBOBJ invocations to module description.
490         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
491         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
492
493 2011-05-23  Bruno Haible  <bruno@clisp.org>
494
495         crc: Move AC_LIBOBJ invocations to module description.
496         * m4/crc.m4: Remove file.
497         * modules/crc (Files): Remove it.
498         (configure.ac): Remove gl_CRC call.
499         (Makefile.am): Augment lib_SOURCES.
500
501 2011-05-23  Bruno Haible  <bruno@clisp.org>
502
503         close-stream: Move AC_LIBOBJ invocations to module description.
504         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
505         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
506
507 2011-05-23  Bruno Haible  <bruno@clisp.org>
508
509         closeout: Move AC_LIBOBJ invocations to module description.
510         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
511         * modules/closeout (Makefile.am): Augment lib_SOURCES.
512
513 2011-05-23  Bruno Haible  <bruno@clisp.org>
514
515         closein: Move AC_LIBOBJ invocations to module description.
516         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
517         * modules/closein (Makefile.am): Augment lib_SOURCES.
518
519 2011-05-23  Bruno Haible  <bruno@clisp.org>
520
521         cloexec: Move AC_LIBOBJ invocations to module description.
522         * m4/cloexec.m4: Remove file.
523         * modules/cloexec (Files): Remove it.
524         (configure.ac): Remove gl_CLOEXEC call.
525         (Makefile.am): Augment lib_SOURCES.
526
527 2011-05-23  Bruno Haible  <bruno@clisp.org>
528
529         check-version: Move AC_LIBOBJ invocations to module description.
530         * m4/check-version.m4: Remove file.
531         * modules/check-version (Files): Remove it.
532         (configure.ac): Remove gl_CHECK_VERSION call.
533         (Makefile.am): Augment lib_SOURCES.
534
535 2011-05-23  Bruno Haible  <bruno@clisp.org>
536
537         chdir-safer: Move AC_LIBOBJ invocations to module description.
538         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
539         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
540
541 2011-05-23  Bruno Haible  <bruno@clisp.org>
542
543         canonicalize: Move AC_LIBOBJ invocations to module description.
544         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
545         AC_LIBOBJ invocation.
546         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
547
548 2011-05-23  Bruno Haible  <bruno@clisp.org>
549
550         canon-host: Move AC_LIBOBJ invocations to module description.
551         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
552         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
553         instead of gl_CANON_HOST.
554         (Makefile.am): Augment lib_SOURCES.
555
556 2011-05-23  Bruno Haible  <bruno@clisp.org>
557
558         backupfile: Move AC_LIBOBJ invocations to module description.
559         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
560         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
561
562 2011-05-23  Bruno Haible  <bruno@clisp.org>
563
564         argmatch: Move AC_LIBOBJ invocations to module description.
565         * m4/argmatch.m4: Remove file.
566         * modules/argmatch (Files): Remove it.
567         (configure.ac): Remove gl_ARGMATCH call.
568         (Makefile.am): Augment lib_SOURCES.
569
570 2011-05-23  Bruno Haible  <bruno@clisp.org>
571
572         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
573         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
574         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
575
576 2011-05-23  Bruno Haible  <bruno@clisp.org>
577
578         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
579         * m4/arcfour.m4: Remove file.
580         * modules/crypto/arcfour (Files): Remove it.
581         (configure.ac): Remove gl_ARCFOUR call.
582         (Makefile.am): Augment lib_SOURCES.
583
584 2011-05-22  Bruno Haible  <bruno@clisp.org>
585
586         write: Move AC_LIBOBJ invocations to module description.
587         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
588         * modules/write (configure.ac): ... to here.
589
590 2011-05-22  Bruno Haible  <bruno@clisp.org>
591
592         wmemset: Move AC_LIBOBJ invocations to module description.
593         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
594         here...
595         * modules/wmemset (configure.ac): ... to here.
596
597 2011-05-22  Bruno Haible  <bruno@clisp.org>
598
599         wmemmove: Move AC_LIBOBJ invocations to module description.
600         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
601         here...
602         * modules/wmemmove (configure.ac): ... to here.
603
604 2011-05-22  Bruno Haible  <bruno@clisp.org>
605
606         wmemcpy: Move AC_LIBOBJ invocations to module description.
607         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
608         here...
609         * modules/wmemcpy (configure.ac): ... to here.
610
611 2011-05-22  Bruno Haible  <bruno@clisp.org>
612
613         wmemcmp: Move AC_LIBOBJ invocations to module description.
614         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
615         here...
616         * modules/wmemcmp (configure.ac): ... to here.
617
618 2011-05-22  Bruno Haible  <bruno@clisp.org>
619
620         wmemchr: Move AC_LIBOBJ invocations to module description.
621         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
622         here...
623         * modules/wmemchr (configure.ac): ... to here.
624
625 2011-05-22  Bruno Haible  <bruno@clisp.org>
626
627         wcswidth: Move AC_LIBOBJ invocations to module description.
628         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
629         here...
630         * modules/wcswidth (configure.ac): ... to here.
631
632 2011-05-22  Bruno Haible  <bruno@clisp.org>
633
634         wcwidth: Respect rules for use of AC_LIBOBJ.
635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
636         invocation from here...
637         * modules/wcwidth (configure.ac): ... to here.
638         (Depends-on): Update conditions.
639
640 2011-05-22  Bruno Haible  <bruno@clisp.org>
641
642         wctype: Move AC_LIBOBJ invocations to module description.
643         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
644         invocation from here...
645         * modules/wctype (configure.ac): ... to here.
646         (Depends-on): Update conditions.
647
648 2011-05-22  Bruno Haible  <bruno@clisp.org>
649
650         wctrans: Move AC_LIBOBJ invocations to module description.
651         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
652         invocation from here...
653         * modules/wctrans (configure.ac): ... to here.
654
655 2011-05-22  Bruno Haible  <bruno@clisp.org>
656
657         wctomb: Move AC_LIBOBJ invocations to module description.
658         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
659         invocations from here...
660         * modules/wctomb (configure.ac): ... to here.
661
662 2011-05-22  Bruno Haible  <bruno@clisp.org>
663
664         wctob: Move AC_LIBOBJ invocations to module description.
665         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
666         gl_PREREQ_WCTOB invocations from here...
667         * modules/wctob (configure.ac): ... to here.
668         (Depends-on): Update conditions.
669
670 2011-05-22  Bruno Haible  <bruno@clisp.org>
671
672         wcsxfrm: Move AC_LIBOBJ invocations to module description.
673         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
674         here...
675         * modules/wcsxfrm (configure.ac): ... to here.
676
677 2011-05-22  Bruno Haible  <bruno@clisp.org>
678
679         wcstok: Move AC_LIBOBJ invocations to module description.
680         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
681         * modules/wcstok (configure.ac): ... to here.
682
683 2011-05-22  Bruno Haible  <bruno@clisp.org>
684
685         wcsstr: Move AC_LIBOBJ invocations to module description.
686         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
687         * modules/wcsstr (configure.ac): ... to here.
688
689 2011-05-22  Bruno Haible  <bruno@clisp.org>
690
691         wcsspn: Move AC_LIBOBJ invocations to module description.
692         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
693         * modules/wcsspn (configure.ac): ... to here.
694
695 2011-05-22  Bruno Haible  <bruno@clisp.org>
696
697         wcsrtombs: Move AC_LIBOBJ invocations to module description.
698         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
699         gl_PREREQ_WCSRTOMBS invocations from here...
700         * modules/wcsrtombs (configure.ac): ... to here.
701
702 2011-05-22  Bruno Haible  <bruno@clisp.org>
703
704         wcsrchr: Move AC_LIBOBJ invocations to module description.
705         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
706         here...
707         * modules/wcsrchr (configure.ac): ... to here.
708
709 2011-05-22  Bruno Haible  <bruno@clisp.org>
710
711         wcspbrk: Move AC_LIBOBJ invocations to module description.
712         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
713         here...
714         * modules/wcspbrk (configure.ac): ... to here.
715
716 2011-05-22  Bruno Haible  <bruno@clisp.org>
717
718         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
719         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
720         gl_PREREQ_WCSNRTOMBS invocations from here...
721         * modules/wcsnrtombs (configure.ac): ... to here.
722
723 2011-05-22  Bruno Haible  <bruno@clisp.org>
724
725         wcsnlen: Move AC_LIBOBJ invocations to module description.
726         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
727         here...
728         * modules/wcsnlen (configure.ac): ... to here.
729
730 2011-05-22  Bruno Haible  <bruno@clisp.org>
731
732         wcsncpy: Move AC_LIBOBJ invocations to module description.
733         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
734         here...
735         * modules/wcsncpy (configure.ac): ... to here.
736
737 2011-05-22  Bruno Haible  <bruno@clisp.org>
738
739         wcsncmp: Move AC_LIBOBJ invocations to module description.
740         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
741         here...
742         * modules/wcsncmp (configure.ac): ... to here.
743
744 2011-05-22  Bruno Haible  <bruno@clisp.org>
745
746         wcsncat: Move AC_LIBOBJ invocations to module description.
747         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
748         here...
749         * modules/wcsncat (configure.ac): ... to here.
750
751 2011-05-22  Bruno Haible  <bruno@clisp.org>
752
753         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
754         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
755         from here...
756         * modules/wcsncasecmp (configure.ac): ... to here.
757
758 2011-05-22  Bruno Haible  <bruno@clisp.org>
759
760         wcslen: Move AC_LIBOBJ invocations to module description.
761         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
762         * modules/wcslen (configure.ac): ... to here.
763
764 2011-05-22  Bruno Haible  <bruno@clisp.org>
765
766         wcsdup: Move AC_LIBOBJ invocations to module description.
767         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
768         * modules/wcsdup (configure.ac): ... to here.
769
770 2011-05-22  Bruno Haible  <bruno@clisp.org>
771
772         wcscspn: Move AC_LIBOBJ invocations to module description.
773         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
774         here...
775         * modules/wcscspn (configure.ac): ... to here.
776
777 2011-05-22  Bruno Haible  <bruno@clisp.org>
778
779         wcscpy: Move AC_LIBOBJ invocations to module description.
780         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
781         * modules/wcscpy (configure.ac): ... to here.
782
783 2011-05-22  Bruno Haible  <bruno@clisp.org>
784
785         wcscoll: Move AC_LIBOBJ invocations to module description.
786         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
787         here...
788         * modules/wcscoll (configure.ac): ... to here.
789
790 2011-05-22  Bruno Haible  <bruno@clisp.org>
791
792         wcscmp: Move AC_LIBOBJ invocations to module description.
793         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
794         * modules/wcscmp (configure.ac): ... to here.
795
796 2011-05-22  Bruno Haible  <bruno@clisp.org>
797
798         wcschr: Move AC_LIBOBJ invocations to module description.
799         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
800         * modules/wcschr (configure.ac): ... to here.
801
802 2011-05-22  Bruno Haible  <bruno@clisp.org>
803
804         wcscat: Move AC_LIBOBJ invocations to module description.
805         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
806         * modules/wcscat (configure.ac): ... to here.
807
808 2011-05-22  Bruno Haible  <bruno@clisp.org>
809
810         wcscasecmp: Move AC_LIBOBJ invocations to module description.
811         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
812         here...
813         * modules/wcscasecmp (configure.ac): ... to here.
814
815 2011-05-22  Bruno Haible  <bruno@clisp.org>
816
817         wcrtomb: Move AC_LIBOBJ invocations to module description.
818         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
819         invocations from here...
820         * modules/wcrtomb (configure.ac): ... to here.
821
822 2011-05-22  Bruno Haible  <bruno@clisp.org>
823
824         wcpncpy: Move AC_LIBOBJ invocations to module description.
825         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
826         here...
827         * modules/wcpncpy (configure.ac): ... to here.
828
829 2011-05-22  Bruno Haible  <bruno@clisp.org>
830
831         wcpcpy: Move AC_LIBOBJ invocations to module description.
832         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
833         * modules/wcpcpy (configure.ac): ... to here.
834
835 2011-05-22  Bruno Haible  <bruno@clisp.org>
836
837         waitpid: Move AC_LIBOBJ invocations to module description.
838         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
839         invocation from here...
840         * modules/waitpid (configure.ac): ... to here.
841
842 2011-05-22  Bruno Haible  <bruno@clisp.org>
843
844         utimensat: Move AC_LIBOBJ invocations to module description.
845         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
846         here...
847         * modules/utimensat (configure.ac): ... to here.
848
849 2011-05-22  Bruno Haible  <bruno@clisp.org>
850
851         usleep: Move AC_LIBOBJ invocations to module description.
852         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
853         here...
854         * modules/usleep (configure.ac): ... to here.
855
856 2011-05-22  Bruno Haible  <bruno@clisp.org>
857
858         unlockpt: Move AC_LIBOBJ invocations to module description.
859         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
860         gl_PREREQ_UNLOCKPT invocations from here...
861         * modules/unlockpt (configure.ac): ... to here.
862
863 2011-05-22  Bruno Haible  <bruno@clisp.org>
864
865         unlink: Respect rules for use of AC_LIBOBJ.
866         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
867         * modules/unlink (configure.ac): ... to here.
868
869 2011-05-22  Bruno Haible  <bruno@clisp.org>
870
871         uname: Move AC_LIBOBJ invocations to module description.
872         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
873         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
874         here...
875         * modules/uname (configure.ac): ... to here.
876
877 2011-05-22  Bruno Haible  <bruno@clisp.org>
878
879         ttyname_r: Move AC_LIBOBJ invocations to module description.
880         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
881         gl_PREREQ_TTYNAME_R invocations from here...
882         * modules/ttyname_r (configure.ac): ... to here.
883
884 2011-05-22  Bruno Haible  <bruno@clisp.org>
885
886         tsearch: Move AC_LIBOBJ invocations to module description.
887         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
888         invocations from here...
889         * modules/tsearch (configure.ac): ... to here.
890
891 2011-05-22  Bruno Haible  <bruno@clisp.org>
892
893         towctrans: Move AC_LIBOBJ invocations to module description.
894         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
895         AC_LIBOBJ invocation from here...
896         * modules/towctrans (configure.ac): ... to here.
897
898 2011-05-22  Bruno Haible  <bruno@clisp.org>
899
900         tmpfile: Move AC_LIBOBJ invocations to module description.
901         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
902         invocations from here...
903         * modules/tmpfile (configure.ac): ... to here.
904
905 2011-05-22  Bruno Haible  <bruno@clisp.org>
906
907         times: Move AC_LIBOBJ invocations to module description.
908         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
909         * modules/times (configure.ac): ... to here.
910
911 2011-05-22  Bruno Haible  <bruno@clisp.org>
912
913         time_r: Move AC_LIBOBJ invocations to module description.
914         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
915         invocations from here...
916         * modules/time_r (configure.ac): ... to here.
917
918 2011-05-22  Bruno Haible  <bruno@clisp.org>
919
920         timegm: Move AC_LIBOBJ invocations to module description.
921         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
922         invocations from here...
923         * modules/timegm (configure.ac): ... to here.
924
925 2011-05-22  Bruno Haible  <bruno@clisp.org>
926
927         tcgetsid: Move AC_LIBOBJ invocations to module description.
928         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
929         and gl_PREREQ_TCGETSID invocations from here...
930         * modules/tcgetsid (configure.ac): ... to here.
931         (Depends-on): Update conditions.
932
933 2011-05-22  Bruno Haible  <bruno@clisp.org>
934
935         symlinkat: Move AC_LIBOBJ invocations to module description.
936         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
937         here...
938         * modules/symlinkat (configure.ac): ... to here.
939
940 2011-05-22  Bruno Haible  <bruno@clisp.org>
941
942         symlink: Move AC_LIBOBJ invocations to module description.
943         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
944         here...
945         * modules/symlink (configure.ac): ... to here.
946
947 2011-05-22  Bruno Haible  <bruno@clisp.org>
948
949         strverscmp: Move AC_LIBOBJ invocations to module description.
950         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
952         from here...
953         * modules/strverscmp (configure.ac): ... to here.
954
955 2011-05-22  Bruno Haible  <bruno@clisp.org>
956
957         strtok_r: Move AC_LIBOBJ invocations to module description.
958         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
959         and gl_PREREQ_STRTOK_R invocations from here...
960         * modules/strtok_r (configure.ac): ... to here.
961         (Depends-on): Update conditions.
962
963 2011-05-22  Bruno Haible  <bruno@clisp.org>
964
965         strtoumax: Move AC_LIBOBJ invocations to module description.
966         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
967         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
968         from here...
969         * modules/strtoumax (configure.ac): ... to here.
970
971 2011-05-22  Bruno Haible  <bruno@clisp.org>
972
973         strtoimax: Move AC_LIBOBJ invocations to module description.
974         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
976         from here...
977         * modules/strtoimax (configure.ac): ... to here.
978
979 2011-05-22  Bruno Haible  <bruno@clisp.org>
980
981         strtoull: Move AC_LIBOBJ invocations to module description.
982         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
984         from here...
985         * modules/strtoull (configure.ac): ... to here.
986
987 2011-05-22  Bruno Haible  <bruno@clisp.org>
988
989         strtoll: Move AC_LIBOBJ invocations to module description.
990         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
992         here...
993         * modules/strtoll (configure.ac): ... to here.
994
995 2011-05-22  Bruno Haible  <bruno@clisp.org>
996
997         strtoul: Move AC_LIBOBJ invocations to module description.
998         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
999         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1000         * modules/strtoul (configure.ac): ... to here.
1001
1002 2011-05-22  Bruno Haible  <bruno@clisp.org>
1003
1004         strtol: Move AC_LIBOBJ invocations to module description.
1005         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1006         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1007         * modules/strtol (configure.ac): ... to here.
1008
1009 2011-05-22  Bruno Haible  <bruno@clisp.org>
1010
1011         strtod: Move AC_LIBOBJ invocations to module description.
1012         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1013         invocations from here...
1014         * modules/strtod (configure.ac): ... to here.
1015
1016 2011-05-22  Bruno Haible  <bruno@clisp.org>
1017
1018         strstr*: Move AC_LIBOBJ invocations to module description.
1019         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1020         invocations from here...
1021         * modules/strstr-simple (configure.ac): ... to here.
1022         * modules/strstr (configure.ac): ... and here.
1023
1024 2011-05-22  Bruno Haible  <bruno@clisp.org>
1025
1026         strsignal: Move AC_LIBOBJ invocations to module description.
1027         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1028         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1029         * modules/strsignal (configure.ac): ... to here.
1030         (Depends-on): Update conditions.
1031
1032 2011-05-22  Bruno Haible  <bruno@clisp.org>
1033
1034         strsep: Move AC_LIBOBJ invocations to module description.
1035         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1036         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1037         here...
1038         * modules/strsep (configure.ac): ... to here.
1039
1040 2011-05-22  Bruno Haible  <bruno@clisp.org>
1041
1042         strptime: Move AC_LIBOBJ invocations to module description.
1043         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1044         gl_PREREQ_STRPTIME invocations from here...
1045         * modules/strptime (configure.ac): ... to here.
1046
1047 2011-05-22  Bruno Haible  <bruno@clisp.org>
1048
1049         strpbrk: Move AC_LIBOBJ invocations to module description.
1050         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1052         here...
1053         * modules/strpbrk (configure.ac): ... to here.
1054
1055 2011-05-22  Bruno Haible  <bruno@clisp.org>
1056
1057         strnlen: Move AC_LIBOBJ invocations to module description.
1058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1059         invocations from here...
1060         * modules/strnlen (configure.ac): ... to here.
1061
1062 2011-05-22  Bruno Haible  <bruno@clisp.org>
1063
1064         strndup: Move AC_LIBOBJ invocations to module description.
1065         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1066         invocations from here...
1067         * modules/strndup (configure.ac): ... to here.
1068         (Depends-on): Update conditions.
1069
1070 2011-05-22  Bruno Haible  <bruno@clisp.org>
1071
1072         strncat: Move AC_LIBOBJ invocations to module description.
1073         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1074         invocations from here...
1075         * modules/strncat (configure.ac): ... to here.
1076
1077 2011-05-22  Bruno Haible  <bruno@clisp.org>
1078
1079         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1080         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1081         invocations from here...
1082         * modules/strdup (configure.ac): ... to here.
1083         * modules/strdup-posix (configure.ac): ... and here.
1084
1085 2011-05-22  Bruno Haible  <bruno@clisp.org>
1086
1087         strcspn: Move AC_LIBOBJ invocations to module description.
1088         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1090         here...
1091         * modules/strcspn (configure.ac): ... to here.
1092
1093 2011-05-22  Bruno Haible  <bruno@clisp.org>
1094
1095         strchrnul: Move AC_LIBOBJ invocations to module description.
1096         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1097         gl_PREREQ_STRCHRNUL invocations from here...
1098         * modules/strchrnul (configure.ac): ... to here.
1099
1100 2011-05-22  Bruno Haible  <bruno@clisp.org>
1101
1102         strcasestr*: Move AC_LIBOBJ invocations to module description.
1103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1104         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1105         * modules/strcasestr-simple (configure.ac): ... to here.
1106         * modules/strcasestr (configure.ac): ... and here.
1107
1108 2011-05-22  Bruno Haible  <bruno@clisp.org>
1109
1110         strcase: Move AC_LIBOBJ invocations to module description.
1111         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1112         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1113         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1114         gl_PREREQ_STRNCASECMP invocations from here...
1115         * modules/strcase (configure.ac): ... to here.
1116
1117 2011-05-22  Bruno Haible  <bruno@clisp.org>
1118
1119         stpncpy: Move AC_LIBOBJ invocations to module description.
1120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1121         here...
1122         * modules/stpncpy (configure.ac): ... to here.
1123
1124 2011-05-22  Bruno Haible  <bruno@clisp.org>
1125
1126         stpcpy: Move AC_LIBOBJ invocations to module description.
1127         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1129         here...
1130         * modules/stpcpy (configure.ac): ... to here.
1131
1132 2011-05-21  Bruno Haible  <bruno@clisp.org>
1133
1134         stat: Move AC_LIBOBJ invocations to module description.
1135         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1136         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1137         here...
1138         * modules/stat (configure.ac): ... to here.
1139
1140 2011-05-21  Bruno Haible  <bruno@clisp.org>
1141
1142         sleep: Move AC_LIBOBJ invocations to module description.
1143         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1144         * modules/sleep (configure.ac): ... to here.
1145
1146 2011-05-21  Bruno Haible  <bruno@clisp.org>
1147
1148         signbit: Move AC_LIBOBJ invocations to module description.
1149         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1150         * modules/signbit (configure.ac): ... to here.
1151
1152 2011-05-21  Bruno Haible  <bruno@clisp.org>
1153
1154         sigprocmask: Move AC_LIBOBJ invocations to module description.
1155         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1156         gl_PREREQ_SIGPROMASK invocations from here...
1157         * modules/sigprocmask (configure.ac): ... to here.
1158
1159 2011-05-21  Bruno Haible  <bruno@clisp.org>
1160
1161         sigaction: Move AC_LIBOBJ invocations to module description.
1162         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1163         gl_PREREQ_SIGACTION invocations from here...
1164         * modules/sigaction (configure.ac): ... to here.
1165
1166 2011-05-21  Bruno Haible  <bruno@clisp.org>
1167
1168         sig2str: Move AC_LIBOBJ invocations to module description.
1169         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1171         here...
1172         * modules/sig2str (configure.ac): ... to here.
1173
1174 2011-05-21  Bruno Haible  <bruno@clisp.org>
1175
1176         setlocale: Move AC_LIBOBJ invocations to module description.
1177         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1178         gl_PREREQ_SETLOCALE invocations from here...
1179         * modules/setlocale (configure.ac): ... to here.
1180
1181 2011-05-21  Bruno Haible  <bruno@clisp.org>
1182
1183         unsetenv: Move AC_LIBOBJ invocations to module description.
1184         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1185         and gl_PREREQ_UNSETENV invocations from here...
1186         * modules/unsetenv (configure.ac): ... to here.
1187         (Depends-on): Update.
1188
1189 2011-05-21  Bruno Haible  <bruno@clisp.org>
1190
1191         setenv: Move AC_LIBOBJ invocations to module description.
1192         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1193         here...
1194         * modules/setenv (configure.ac): ... to here.
1195
1196 2011-05-21  Bruno Haible  <bruno@clisp.org>
1197
1198         selinux-h: Move AC_LIBOBJ invocations to module description.
1199         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1200         AC_LIBOBJ invocation from here...
1201         * modules/selinux-h (configure.ac): ... to here.
1202
1203 2011-05-21  Bruno Haible  <bruno@clisp.org>
1204
1205         select: Respect rules for use of AC_LIBOBJ.
1206         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1207         here...
1208         * modules/select (configure.ac): ... to here.
1209
1210 2011-05-21  Bruno Haible  <bruno@clisp.org>
1211
1212         scandir: Move AC_LIBOBJ invocations to module description.
1213         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1214         invocations from here...
1215         * modules/scandir (configure.ac): ... to here.
1216
1217 2011-05-21  Bruno Haible  <bruno@clisp.org>
1218
1219         rpmatch: Move AC_LIBOBJ invocations to module description.
1220         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1221         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1222         here...
1223         * modules/rpmatch (configure.ac): ... to here.
1224
1225 2011-05-21  Bruno Haible  <bruno@clisp.org>
1226
1227         rmdir: Respect rules for use of AC_LIBOBJ.
1228         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1229         * modules/rmdir (configure.ac): ... to here.
1230
1231 2011-05-21  Bruno Haible  <bruno@clisp.org>
1232
1233         renameat: Move AC_LIBOBJ invocations to module description.
1234         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1235         here...
1236         * modules/renameat (configure.ac): ... to here.
1237
1238 2011-05-21  Bruno Haible  <bruno@clisp.org>
1239
1240         rename: Respect rules for use of AC_LIBOBJ.
1241         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1242         here...
1243         * modules/rename (configure.ac): ... to here.
1244
1245 2011-05-21  Bruno Haible  <bruno@clisp.org>
1246
1247         remove: Move AC_LIBOBJ invocations to module description.
1248         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1249         here...
1250         * modules/remove (configure.ac): ... to here.
1251
1252 2011-05-21  Bruno Haible  <bruno@clisp.org>
1253
1254         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1255         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1256         macro.
1257         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1258         * modules/relocatable-lib (configure.ac): ... to here.
1259         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1260         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1261
1262 2011-05-21  Bruno Haible  <bruno@clisp.org>
1263
1264         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1265         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1266         here...
1267         * modules/relocatable-prog (configure.ac): ... to here.
1268
1269 2011-05-21  Bruno Haible  <bruno@clisp.org>
1270
1271         regex: Move AC_LIBOBJ invocations to module description.
1272         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1273         invocations from here...
1274         * modules/regex (configure.ac): ... to here.
1275
1276 2011-05-21  Bruno Haible  <bruno@clisp.org>
1277
1278         realloc-*: Move AC_LIBOBJ invocations to module description.
1279         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1280         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1281         AC_LIBOBJ invocations from here...
1282         * modules/realloc-gnu (configure.ac): ... to here.
1283         * modules/realloc-posix (configure.ac): ... and here.
1284
1285 2011-05-21  Bruno Haible  <bruno@clisp.org>
1286
1287         readutmp: Move AC_LIBOBJ invocations to module description.
1288         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1289         * modules/readutmp (configure.ac): ... to here.
1290
1291 2011-05-21  Bruno Haible  <bruno@clisp.org>
1292
1293         readlinkat: Move AC_LIBOBJ invocations to module description.
1294         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1295         here...
1296         * modules/readlinkat (configure.ac): ... to here.
1297
1298 2011-05-21  Bruno Haible  <bruno@clisp.org>
1299
1300         readlink: Move AC_LIBOBJ invocations to module description.
1301         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1302         gl_PREREQ_READLINK invocations from here...
1303         * modules/readlink (configure.ac): ... to here.
1304
1305 2011-05-21  Bruno Haible  <bruno@clisp.org>
1306
1307         readline: Move AC_LIBOBJ invocations to module description.
1308         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1309         gl_PREREQ_READLINE invocations from here...
1310         * modules/readline (configure.ac): ... to here.
1311
1312 2011-05-21  Bruno Haible  <bruno@clisp.org>
1313
1314         read: Move AC_LIBOBJ invocations to module description.
1315         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1316         * modules/read (configure.ac): ... to here.
1317
1318 2011-05-21  Bruno Haible  <bruno@clisp.org>
1319
1320         rawmemchr: Move AC_LIBOBJ invocations to module description.
1321         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1323         from here...
1324         * modules/rawmemchr (configure.ac): ... to here.
1325
1326 2011-05-21  Bruno Haible  <bruno@clisp.org>
1327
1328         random_r: Move AC_LIBOBJ invocations to module description.
1329         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1330         gl_PREREQ_RANDOM_R invocations from here...
1331         * modules/random_r (configure.ac): ... to here.
1332
1333 2011-05-21  Bruno Haible  <bruno@clisp.org>
1334
1335         pwrite: Move AC_LIBOBJ invocations to module description.
1336         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1337         * modules/pwrite (configure.ac): ... to here.
1338
1339 2011-05-21  Bruno Haible  <bruno@clisp.org>
1340
1341         putenv: Move AC_LIBOBJ invocations to module description.
1342         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1343         * modules/putenv (configure.ac): ... to here.
1344
1345 2011-05-21  Bruno Haible  <bruno@clisp.org>
1346
1347         login_tty: Move AC_LIBOBJ invocations to module description.
1348         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1349         * modules/login_tty (configure.ac): ... to here.
1350
1351 2011-05-21  Bruno Haible  <bruno@clisp.org>
1352
1353         openpty: Move AC_LIBOBJ invocations to module description.
1354         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1355         * modules/openpty (configure.ac): ... to here.
1356
1357 2011-05-21  Bruno Haible  <bruno@clisp.org>
1358
1359         forkpty: Move AC_LIBOBJ invocations to module description.
1360         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1361         * modules/forkpty (configure.ac): ... to here.
1362
1363 2011-05-21  Bruno Haible  <bruno@clisp.org>
1364
1365         ptsname: Move AC_LIBOBJ invocations to module description.
1366         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1367         invocations from here...
1368         * modules/ptsname (configure.ac): ... to here.
1369
1370 2011-05-21  Bruno Haible  <bruno@clisp.org>
1371
1372         pread: Move AC_LIBOBJ invocations to module description.
1373         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1374         * modules/pread (configure.ac): ... to here.
1375
1376 2011-05-21  Bruno Haible  <bruno@clisp.org>
1377
1378         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1379         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1380         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1381         * modules/posix_spawn (configure.ac): ... to here.
1382         * modules/posix_spawnp (configure.ac): ... and here.
1383
1384 2011-05-21  Bruno Haible  <bruno@clisp.org>
1385
1386         popen: Move AC_LIBOBJ invocations to module description.
1387         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1388         invocations from here...
1389         * modules/popen (configure.ac): ... to here.
1390
1391 2011-05-21  Bruno Haible  <bruno@clisp.org>
1392
1393         poll: Move AC_LIBOBJ invocations to module description.
1394         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1395         invocations from here...
1396         * modules/poll (configure.ac): ... to here.
1397
1398 2011-05-21  Bruno Haible  <bruno@clisp.org>
1399
1400         pipe-posix: Move AC_LIBOBJ invocations to module description.
1401         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1402         * modules/pipe-posix (configure.ac): ... to here.
1403
1404 2011-05-21  Bruno Haible  <bruno@clisp.org>
1405
1406         openat: Respect rules for use of AC_LIBOBJ.
1407         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1408         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1409         * modules/openat (configure.ac): ... to here.
1410
1411 2011-05-21  Bruno Haible  <bruno@clisp.org>
1412
1413         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1414         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1415         invocation from here...
1416         * modules/obstack-printf (configure.ac): ... to here.
1417         * modules/obstack-printf-posix (configure.ac): ... and here.
1418
1419 2011-05-21  Bruno Haible  <bruno@clisp.org>
1420
1421         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1422         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1423         from here...
1424         * modules/nl_langinfo (configure.ac): ... to here.
1425
1426 2011-05-21  Bruno Haible  <bruno@clisp.org>
1427
1428         nanosleep: Move AC_LIBOBJ invocations to module description.
1429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1430         gl_PREREQ_NANOSLEEP invocations from here...
1431         * modules/nanosleep (configure.ac): ... to here.
1432
1433 2011-05-21  Bruno Haible  <bruno@clisp.org>
1434
1435         mountlist: Move AC_LIBOBJ invocations to module description.
1436         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1437         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1438         * modules/mountlist (configure.ac): ... to here.
1439
1440 2011-05-21  Bruno Haible  <bruno@clisp.org>
1441
1442         mktime: Respect rules for use of AC_LIBOBJ.
1443         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1444         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1445         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1446         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1447         * modules/mktime (configure.ac): ... to here.
1448         * modules/mktime-internal (configure.ac): ... and here.
1449         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1450
1451 2011-05-21  Bruno Haible  <bruno@clisp.org>
1452
1453         mkstemps: Move AC_LIBOBJ invocations to module description.
1454         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1455         here...
1456         * modules/mkstemps (configure.ac): ... to here.
1457
1458 2011-05-21  Bruno Haible  <bruno@clisp.org>
1459
1460         mkstemp: Move AC_LIBOBJ invocations to module description.
1461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1462         gl_PREREQ_MKSTEMP invocations from here...
1463         * modules/mkstemp (configure.ac): ... to here.
1464
1465 2011-05-21  Bruno Haible  <bruno@clisp.org>
1466
1467         mkostemps: Move AC_LIBOBJ invocations to module description.
1468         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1469         here...
1470         * modules/mkostemps (configure.ac): ... to here.
1471
1472 2011-05-21  Bruno Haible  <bruno@clisp.org>
1473
1474         mkostemp: Move AC_LIBOBJ invocations to module description.
1475         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1476         gl_PREREQ_MKOSTEMP invocations from here...
1477         * modules/mkostemp (configure.ac): ... to here.
1478
1479 2011-05-21  Bruno Haible  <bruno@clisp.org>
1480
1481         mknod: Move AC_LIBOBJ invocations to module description.
1482         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1483         * modules/mknod (configure.ac): ... to here.
1484
1485 2011-05-21  Bruno Haible  <bruno@clisp.org>
1486
1487         mkfifoat: Move AC_LIBOBJ invocations to module description.
1488         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1489         here...
1490         * modules/mkfifoat (configure.ac): ... to here.
1491
1492 2011-05-21  Bruno Haible  <bruno@clisp.org>
1493
1494         mkfifo: Respect rules for use of AC_LIBOBJ.
1495         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1496         here...
1497         * modules/mkfifo (configure.ac): ... to here.
1498
1499 2011-05-21  Bruno Haible  <bruno@clisp.org>
1500
1501         mkdtemp: Move AC_LIBOBJ invocations to module description.
1502         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1503         invocations from here...
1504         * modules/mkdtemp (configure.ac): ... to here.
1505
1506 2011-05-21  Bruno Haible  <bruno@clisp.org>
1507
1508         mkdir: Move AC_LIBOBJ invocations to module description.
1509         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1510         * modules/mkdir (configure.ac): ... to here.
1511
1512 2011-05-21  Bruno Haible  <bruno@clisp.org>
1513
1514         memset: Move AC_LIBOBJ invocations to module description.
1515         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1516         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1517         here...
1518         * modules/memset (configure.ac): ... to here.
1519
1520 2011-05-21  Bruno Haible  <bruno@clisp.org>
1521
1522         memrchr: Move AC_LIBOBJ invocations to module description.
1523         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1525         here...
1526         * modules/memrchr (configure.ac): ... to here.
1527
1528 2011-05-21  Bruno Haible  <bruno@clisp.org>
1529
1530         mempcpy: Move AC_LIBOBJ invocations to module description.
1531         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1533         here...
1534         * modules/mempcpy (configure.ac): ... to here.
1535
1536 2011-05-21  Bruno Haible  <bruno@clisp.org>
1537
1538         memmove: Move AC_LIBOBJ invocations to module description.
1539         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1541         here...
1542         * modules/memmove (configure.ac): ... to here.
1543
1544 2011-05-21  Bruno Haible  <bruno@clisp.org>
1545
1546         memmem*: Move AC_LIBOBJ invocations to module description.
1547         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1548         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1549         here...
1550         (gl_FUNC_MEMMEM): ... and here...
1551         * modules/memmem-simple (configure.ac): ... to here.
1552         * modules/memmem (configure.ac): ... and here.
1553
1554 2011-05-21  Bruno Haible  <bruno@clisp.org>
1555
1556         memcpy: Move AC_LIBOBJ invocations to module description.
1557         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1558         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1559         here...
1560         * modules/memcpy (configure.ac): ... to here.
1561
1562 2011-05-21  Bruno Haible  <bruno@clisp.org>
1563
1564         memcmp: Simplify autoconf macro.
1565         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1566         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1567         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1568
1569 2011-05-21  Bruno Haible  <bruno@clisp.org>
1570
1571         memcmp: Move AC_LIBOBJ invocations to module description.
1572         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1573         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1574         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1575         * modules/memcmp (configure.ac): ... to here.
1576         (Depends-on): Update conditions.
1577
1578 2011-05-21  Bruno Haible  <bruno@clisp.org>
1579
1580         memchr: Respect rules for use of AC_LIBOBJ.
1581         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1582         invocations from here...
1583         * modules/memchr (configure.ac): ... to here.
1584
1585 2011-05-21  Bruno Haible  <bruno@clisp.org>
1586
1587         mbtowc: Move AC_LIBOBJ invocations to module description.
1588         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1589         invocations from here...
1590         * modules/mbtowc (configure.ac): ... to here.
1591
1592 2011-05-21  Bruno Haible  <bruno@clisp.org>
1593
1594         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1595         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1596         gl_PREREQ_MBSRTOWCS invocations from here...
1597         * modules/mbsrtowcs (configure.ac): ... to here.
1598
1599 2011-05-21  Bruno Haible  <bruno@clisp.org>
1600
1601         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1602         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1603         gl_PREREQ_MBSNRTOWCS invocations from here...
1604         * modules/mbsnrtowcs (configure.ac): ... to here.
1605
1606 2011-05-21  Bruno Haible  <bruno@clisp.org>
1607
1608         mbsinit: Move AC_LIBOBJ invocations to module description.
1609         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1610         invocations from here...
1611         * modules/mbsinit (configure.ac): ... to here.
1612
1613 2011-05-21  Bruno Haible  <bruno@clisp.org>
1614
1615         mbrlen: Move AC_LIBOBJ invocations to module description.
1616         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1617         invocations from here...
1618         * modules/mbrlen (configure.ac): ... to here.
1619
1620 2011-05-21  Bruno Haible  <bruno@clisp.org>
1621
1622         mbrtowc: Respect rules for use of AC_LIBOBJ.
1623         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1624         invocations from here...
1625         * modules/mbrtowc (configure.ac): ... to here.
1626
1627 2011-05-21  Bruno Haible  <bruno@clisp.org>
1628
1629         malloc-*: Move AC_LIBOBJ invocations to module description.
1630         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1631         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1632         AC_LIBOBJ invocations from here...
1633         * modules/malloc-gnu (configure.ac): ... to here.
1634         * modules/malloc-posix (configure.ac): ... and here.
1635
1636 2011-05-21  Bruno Haible  <bruno@clisp.org>
1637
1638         lstat, openat: Respect rules for use of AC_LIBOBJ.
1639         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1640         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1641         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1642         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1643         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1644         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1645         here.
1646         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1647
1648 2011-05-21  Bruno Haible  <bruno@clisp.org>
1649
1650         lseek: Move AC_LIBOBJ invocations to module description.
1651         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1652         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1653         * modules/lseek (configure.ac): ... to here.
1654
1655 2011-05-21  Bruno Haible  <bruno@clisp.org>
1656
1657         linkat: Move AC_LIBOBJ invocations to module description.
1658         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1659         here...
1660         * modules/linkat (configure.ac): ... to here.
1661
1662 2011-05-21  Bruno Haible  <bruno@clisp.org>
1663
1664         link: Respect rules for use of AC_LIBOBJ.
1665         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1666         * modules/link (configure.ac): ... to here.
1667
1668 2011-05-21  Bruno Haible  <bruno@clisp.org>
1669
1670         lchown: Move AC_LIBOBJ invocations to module description.
1671         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1672         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1673         * modules/lchown (configure.ac): ... to here.
1674
1675 2011-05-21  Bruno Haible  <bruno@clisp.org>
1676
1677         iswctype: Move AC_LIBOBJ invocations to module description.
1678         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1679         here...
1680         * modules/iswctype (configure.ac): ... to here.
1681
1682 2011-05-21  Bruno Haible  <bruno@clisp.org>
1683
1684         iswblank: Move AC_LIBOBJ invocations to module description.
1685         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1686         here...
1687         * modules/iswblank (configure.ac): ... to here.
1688
1689 2011-05-21  Bruno Haible  <bruno@clisp.org>
1690
1691         atanl: Move AC_LIBOBJ invocations to module description.
1692         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1693         * modules/atanl (configure.ac): ... to here.
1694
1695 2011-05-21  Bruno Haible  <bruno@clisp.org>
1696
1697         acosl: Move AC_LIBOBJ invocations to module description.
1698         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1699         * modules/acosl (configure.ac): ... to here.
1700
1701 2011-05-21  Bruno Haible  <bruno@clisp.org>
1702
1703         asinl: Respect rules for use of AC_LIBOBJ.
1704         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1705         * modules/asinl (configure.ac): ... to here.
1706
1707 2011-05-21  Bruno Haible  <bruno@clisp.org>
1708
1709         tanl: Move AC_LIBOBJ invocations to module description.
1710         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1711         * modules/tanl (configure.ac): ... to here.
1712
1713 2011-05-21  Bruno Haible  <bruno@clisp.org>
1714
1715         cosl: Move AC_LIBOBJ invocations to module description.
1716         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1717         * modules/cosl (configure.ac): ... to here.
1718
1719 2011-05-21  Bruno Haible  <bruno@clisp.org>
1720
1721         sinl: Move AC_LIBOBJ invocations to module description.
1722         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1723         * modules/sinl (configure.ac): ... to here.
1724
1725 2011-05-21  Bruno Haible  <bruno@clisp.org>
1726
1727         logl: Move AC_LIBOBJ invocations to module description.
1728         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1729         * modules/logl (configure.ac): ... to here.
1730
1731 2011-05-21  Bruno Haible  <bruno@clisp.org>
1732
1733         expl: Move AC_LIBOBJ invocations to module description.
1734         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1735         * modules/expl (configure.ac): ... to here.
1736
1737 2011-05-21  Bruno Haible  <bruno@clisp.org>
1738
1739         roundl: Move AC_LIBOBJ invocations to module description.
1740         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1741         * modules/roundl (configure.ac): ... to here.
1742
1743 2011-05-21  Bruno Haible  <bruno@clisp.org>
1744
1745         round: Move AC_LIBOBJ invocations to module description.
1746         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1747         * modules/round (configure.ac): ... to here.
1748
1749 2011-05-21  Bruno Haible  <bruno@clisp.org>
1750
1751         roundf: Move AC_LIBOBJ invocations to module description.
1752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1753         * modules/roundf (configure.ac): ... to here.
1754
1755 2011-05-21  Bruno Haible  <bruno@clisp.org>
1756
1757         truncl: Move AC_LIBOBJ invocations to module description.
1758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1759         * modules/truncl (configure.ac): ... to here.
1760
1761 2011-05-21  Bruno Haible  <bruno@clisp.org>
1762
1763         trunc: Move AC_LIBOBJ invocations to module description.
1764         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1765         * modules/trunc (configure.ac): ... to here.
1766
1767 2011-05-21  Bruno Haible  <bruno@clisp.org>
1768
1769         truncf: Move AC_LIBOBJ invocations to module description.
1770         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1771         * modules/truncf (configure.ac): ... to here.
1772
1773 2011-05-21  Bruno Haible  <bruno@clisp.org>
1774
1775         ceill: Move AC_LIBOBJ invocations to module description.
1776         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1777         * modules/ceill (configure.ac): ... to here.
1778
1779 2011-05-21  Bruno Haible  <bruno@clisp.org>
1780
1781         ceil: Move AC_LIBOBJ invocations to module description.
1782         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1783         * modules/ceil (configure.ac): ... to here.
1784
1785 2011-05-21  Bruno Haible  <bruno@clisp.org>
1786
1787         ceilf: Move AC_LIBOBJ invocations to module description.
1788         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1789         * modules/ceilf (configure.ac): ... to here.
1790
1791 2011-05-21  Bruno Haible  <bruno@clisp.org>
1792
1793         floorl: Respect rules for use of AC_LIBOBJ.
1794         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1795         * modules/floorl (configure.ac): ... to here.
1796
1797 2011-05-21  Bruno Haible  <bruno@clisp.org>
1798
1799         floor: Respect rules for use of AC_LIBOBJ.
1800         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1801         * modules/floor (configure.ac): ... to here.
1802
1803 2011-05-21  Bruno Haible  <bruno@clisp.org>
1804
1805         floorf: Move AC_LIBOBJ invocations to module description.
1806         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1807         * modules/floorf (configure.ac): ... to here.
1808
1809 2011-05-20  Bruno Haible  <bruno@clisp.org>
1810
1811         sqrtl: Respect rules for use of AC_LIBOBJ.
1812         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1813         * modules/sqrtl (configure.ac): ... to here.
1814
1815 2011-05-20  Bruno Haible  <bruno@clisp.org>
1816
1817         ldexpl: Respect rules for use of AC_LIBOBJ.
1818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1819         * modules/ldexpl (configure.ac): ... to here.
1820
1821 2011-05-20  Bruno Haible  <bruno@clisp.org>
1822
1823         frexpl*: Respect rules for use of AC_LIBOBJ.
1824         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1825         invocation from here...
1826         * modules/frexpl (configure.ac): ... to here.
1827         * modules/frexpl-nolibm (configure.ac): ... and here.
1828
1829 2011-05-20  Bruno Haible  <bruno@clisp.org>
1830
1831         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1832         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1833         invocation from here...
1834         * modules/frexp (configure.ac): ... to here.
1835         * modules/frexp-nolibm (configure.ac): ... and here.
1836
1837 2011-05-20  Bruno Haible  <bruno@clisp.org>
1838
1839         isnan: Respect rules for use of AC_LIBOBJ.
1840         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1841         invocations here.
1842         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1843         REPLACE_ISNAN.
1844         * modules/isnand (configure.ac): Likewise.
1845         * modules/isnanl (configure.ac): Likewise.
1846
1847 2011-05-20  Bruno Haible  <bruno@clisp.org>
1848
1849         isnanl*: Respect rules for use of AC_LIBOBJ.
1850         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1851         invocation from here...
1852         * modules/isnanl (configure.ac): ... to here.
1853         * modules/isnanl-nolibm (configure.ac): ... and here.
1854
1855 2011-05-20  Bruno Haible  <bruno@clisp.org>
1856
1857         isnand*: Move AC_LIBOBJ invocations to module description.
1858         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1859         invocation from here...
1860         * modules/isnand (configure.ac): ... to here.
1861         * modules/isnand-nolibm (configure.ac): ... and here.
1862
1863 2011-05-20  Bruno Haible  <bruno@clisp.org>
1864
1865         isnanf*: Move AC_LIBOBJ invocations to module description.
1866         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1867         invocation from here...
1868         * modules/isnanf (configure.ac): ... to here.
1869         * modules/isnanf-nolibm (configure.ac): ... and here.
1870
1871 2011-05-20  Bruno Haible  <bruno@clisp.org>
1872
1873         isnan*: Separate the AC_LIBOBJ invocations.
1874         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1875         AC_LIBOBJ invocation.
1876         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1877         here.
1878         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1879         AC_LIBOBJ invocation.
1880         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1881         here.
1882         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1883         AC_LIBOBJ invocation.
1884         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1885         here.
1886         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1887
1888 2011-05-08  Bruno Haible  <bruno@clisp.org>
1889
1890         isinf: Move AC_LIBOBJ invocations to module description.
1891         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1892         * modules/isinf (configure.ac): ... to here.
1893
1894 2011-05-08  Bruno Haible  <bruno@clisp.org>
1895
1896         isfinite: Move AC_LIBOBJ invocations to module description.
1897         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1898         * modules/isfinite (configure.ac): ... to here.
1899
1900 2011-05-08  Bruno Haible  <bruno@clisp.org>
1901
1902         isblank: Move AC_LIBOBJ invocations to module description.
1903         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1904         here...
1905         * modules/isblank (configure.ac): ... to here.
1906
1907 2011-05-08  Bruno Haible  <bruno@clisp.org>
1908
1909         isapipe: Move AC_LIBOBJ invocations to module description.
1910         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1911         gl_PREREQ_ISAPIPE invocations from here...
1912         * modules/isapipe (configure.ac): ... to here.
1913         (Depends-on): Update condition.
1914
1915 2011-05-08  Bruno Haible  <bruno@clisp.org>
1916
1917         ioctl: Move AC_LIBOBJ invocations to module description.
1918         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1919         invocations from here...
1920         * modules/ioctl (configure.ac): ... to here.
1921         (Depends-on): Update condition.
1922
1923 2011-05-08  Bruno Haible  <bruno@clisp.org>
1924
1925         imaxdiv: Move AC_LIBOBJ invocations to module description.
1926         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1927         invocations from here...
1928         * modules/imaxdiv (configure.ac): ... to here.
1929
1930 2011-05-08  Bruno Haible  <bruno@clisp.org>
1931
1932         imaxabs: Move AC_LIBOBJ invocations to module description.
1933         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1934         invocations from here...
1935         * modules/imaxabs (configure.ac): ... to here.
1936
1937 2011-05-08  Bruno Haible  <bruno@clisp.org>
1938
1939         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1941         AC_LIBOBJ invocations from here...
1942         * modules/getaddrinfo (configure.ac): ... to here.
1943         (Depends-on): Add conditions.
1944
1945 2011-05-08  Bruno Haible  <bruno@clisp.org>
1946
1947         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1948         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1949         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1950         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1951         (gl_PREREQ_INET_PTON): ... from here.
1952         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1953         gl_PREREQ_INET_PTON here.
1954         (Depends-on): Update condition.
1955
1956 2011-05-08  Bruno Haible  <bruno@clisp.org>
1957
1958         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1959         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1960         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1961         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1962         (gl_PREREQ_INET_NTOP): ... from here.
1963         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1964         gl_PREREQ_INET_NTOP here.
1965         (Depends-on): Update condition.
1966
1967 2011-05-08  Bruno Haible  <bruno@clisp.org>
1968
1969         iconv_open: Move AC_LIBOBJ invocations to module description.
1970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1971         AC_LIBOBJ invocations from here...
1972         * modules/iconv_open (configure.ac): ... to here.
1973
1974 2011-05-08  Bruno Haible  <bruno@clisp.org>
1975
1976         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1977         If module 'iconv_open' is among the main modules and module
1978         'iconv_open-utf' is among the tests dependencies, then
1979         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1980         return the special iconv_t values. Therefore iconv() and iconv_close()
1981         must support these special iconv_t values, already in lib, not only in
1982         tests.
1983         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1984         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1985         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1986         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1987         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1988         (Depends-on): Add the dependencies of iconv_open-utf.
1989         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1990         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1991         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1992
1993 2011-05-08  Bruno Haible  <bruno@clisp.org>
1994
1995         group-member: Move AC_LIBOBJ invocations to module description.
1996         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1997         gl_PREREQ_GROUP_MEMBER invocations from here...
1998         * modules/group-member (configure.ac): ... to here.
1999
2000 2011-05-08  Bruno Haible  <bruno@clisp.org>
2001
2002         grantpt: Move AC_LIBOBJ invocations to module description.
2003         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2004         invocations from here...
2005         * modules/grantpt (configure.ac): ... to here.
2006
2007 2011-05-08  Bruno Haible  <bruno@clisp.org>
2008
2009         glob: Move AC_LIBOBJ invocations to module description.
2010         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2011         from here...
2012         * modules/glob (configure.ac): ... to here.
2013
2014 2011-05-08  Bruno Haible  <bruno@clisp.org>
2015
2016         getusershell: Move AC_LIBOBJ invocations to module description.
2017         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2018         Move AC_LIBOBJ invocation from here...
2019         * modules/getusershell (configure.ac): ... to here.
2020         (Depends-on): Update condition.
2021
2022 2011-05-08  Bruno Haible  <bruno@clisp.org>
2023
2024         gettimeofday: Move AC_LIBOBJ invocations to module description.
2025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2026         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2027         gl_PREREQ_GETTIMEOFDAY invocations from here...
2028         * modules/gettimeofday (configure.ac): ... to here.
2029
2030 2011-05-08  Bruno Haible  <bruno@clisp.org>
2031
2032         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2033         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2034         just gl_FUNC_TZSET.
2035         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2036         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2038         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2039
2040 2011-05-08  Bruno Haible  <bruno@clisp.org>
2041
2042         getsubopt: Move AC_LIBOBJ invocations to module description.
2043         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2044         gl_PREREQ_GETSUBOPT invocations from here...
2045         * modules/getsubopt (configure.ac): ... to here.
2046
2047 2011-05-08  Bruno Haible  <bruno@clisp.org>
2048
2049         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2050         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2051         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2052         * modules/getpass-gnu (configure.ac): ... to here.
2053
2054 2011-05-08  Bruno Haible  <bruno@clisp.org>
2055
2056         getpass: Move AC_LIBOBJ invocations to module description.
2057         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2058         gl_PREREQ_GETPASS invocations from here...
2059         * modules/getpass (configure.ac): ... to here.
2060
2061 2011-05-08  Bruno Haible  <bruno@clisp.org>
2062
2063         getpagesize: Move AC_LIBOBJ invocations to module description.
2064         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2065         from here...
2066         * modules/getpagesize (configure.ac): ... to here.
2067
2068 2011-05-08  Bruno Haible  <bruno@clisp.org>
2069
2070         getopt: Move AC_LIBOBJ invocations to module description.
2071         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2072         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2073         invocations from here...
2074         * modules/getopt-gnu (configure.ac): ... to here.
2075         * modules/getopt-posix (configure.ac): ... and here.
2076         (Depends-on): Update condition.
2077
2078 2011-05-08  Bruno Haible  <bruno@clisp.org>
2079
2080         getopt, argp: Respect rules for use of AC_LIBOBJ.
2081         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2082         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2083         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2084         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2085
2086 2011-05-08  Bruno Haible  <bruno@clisp.org>
2087
2088         getlogin_r: Move AC_LIBOBJ invocations to module description.
2089         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2090         gl_PREREQ_GETLOGIN_R invocations from here...
2091         * modules/getlogin_r (configure.ac): ... to here.
2092
2093 2011-05-08  Bruno Haible  <bruno@clisp.org>
2094
2095         getlogin: Move AC_LIBOBJ invocations to module description.
2096         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2097         here...
2098         * modules/getlogin (configure.ac): ... to here.
2099
2100 2011-05-08  Bruno Haible  <bruno@clisp.org>
2101
2102         getloadavg: Move AC_LIBOBJ invocations to module description.
2103         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2104         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2105         * modules/getloadavg (configure.ac): ... to here.
2106
2107 2011-05-08  Bruno Haible  <bruno@clisp.org>
2108
2109         gethrxtime: Move AC_LIBOBJ invocations to module description.
2110         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2111         LIB_GETHRXTIME from here...
2112         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2113         invocations from here...
2114         * modules/gethrxtime (configure.ac): ... to here.
2115
2116 2011-05-08  Bruno Haible  <bruno@clisp.org>
2117
2118         gethostname: Move AC_LIBOBJ invocations to module description.
2119         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2120         gl_PREREQ_GETHOSTNAME invocations from here...
2121         * modules/gethostname (configure.ac): ... to here.
2122
2123 2011-05-08  Bruno Haible  <bruno@clisp.org>
2124
2125         getgroups: Move AC_LIBOBJ invocations to module description.
2126         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2127         here...
2128         * modules/getgroups (configure.ac): ... to here.
2129
2130 2011-05-08  Bruno Haible  <bruno@clisp.org>
2131
2132         getdtablesize: Move AC_LIBOBJ invocations to module description.
2133         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2134         invocation from here...
2135         * modules/getdtablesize (configure.ac): ... to here.
2136
2137 2011-05-08  Bruno Haible  <bruno@clisp.org>
2138
2139         getdomainname: Move AC_LIBOBJ invocations to module description.
2140         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2141         gl_PREREQ_GETDOMAINNAME invocations from here...
2142         * modules/getdomainname (configure.ac): ... to here.
2143
2144 2011-05-08  Bruno Haible  <bruno@clisp.org>
2145
2146         getline: Move AC_LIBOBJ invocations to module description.
2147         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2148         invocations from here...
2149         * modules/getline (configure.ac): ... to here.
2150
2151 2011-05-08  Bruno Haible  <bruno@clisp.org>
2152
2153         getline: Simplify.
2154         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2155         It's already handled through the module dependency.
2156
2157 2011-05-08  Bruno Haible  <bruno@clisp.org>
2158
2159         getdelim: Move AC_LIBOBJ invocations to module description.
2160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2161         and gl_PREREQ_GETDELIM invocations from here...
2162         * modules/getdelim (configure.ac): ... to here.
2163         (Depends-on): Fix condition.
2164
2165 2011-05-08  Bruno Haible  <bruno@clisp.org>
2166
2167         getcwd: Move AC_LIBOBJ invocations to module description.
2168         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2169         invocations from here...
2170         * modules/getcwd (configure.ac): ... to here.
2171
2172 2011-05-08  Bruno Haible  <bruno@clisp.org>
2173
2174         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2175         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2176         here...
2177         * modules/getcwd-lgpl (configure.ac): ... to here.
2178
2179 2011-05-07  Bruno Haible  <bruno@clisp.org>
2180
2181         crypto/gc: Move AC_LIBOBJ invocations to module description.
2182         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2183         * modules/crypto/gc (configure.ac): ... to here.
2184
2185 2011-05-07  Bruno Haible  <bruno@clisp.org>
2186
2187         fwriting: Move AC_LIBOBJ invocations to module description.
2188         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2189         here...
2190         * modules/fwriting (configure.ac): ... to here.
2191
2192 2011-05-07  Bruno Haible  <bruno@clisp.org>
2193
2194         fwritable: Move AC_LIBOBJ invocations to module description.
2195         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2196         here...
2197         * modules/fwritable (configure.ac): ... to here.
2198
2199 2011-05-07  Bruno Haible  <bruno@clisp.org>
2200
2201         futimens: Move AC_LIBOBJ invocations to module description.
2202         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2203         here...
2204         * modules/futimens (configure.ac): ... to here.
2205
2206 2011-05-07  Bruno Haible  <bruno@clisp.org>
2207
2208         ftruncate: Move AC_LIBOBJ invocations to module description.
2209         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2210         gl_PREREQ_FTRUNCATE invocations from here...
2211         * modules/ftruncate (configure.ac): ... to here.
2212
2213 2011-05-07  Bruno Haible  <bruno@clisp.org>
2214
2215         fsync: Move AC_LIBOBJ invocations to module description.
2216         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2217         invocations from here...
2218         * modules/fsync (configure.ac): ... to here.
2219
2220 2011-05-07  Bruno Haible  <bruno@clisp.org>
2221
2222         fsusage: Move AC_LIBOBJ invocations to module description.
2223         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2224         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2225         * modules/fsusage (configure.ac): ... to here.
2226
2227 2011-05-07  Bruno Haible  <bruno@clisp.org>
2228
2229         freopen: Move AC_LIBOBJ invocations to module description.
2230         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2231         invocations from here...
2232         * modules/freopen (configure.ac): ... to here.
2233
2234 2011-05-07  Bruno Haible  <bruno@clisp.org>
2235
2236         free: Move AC_LIBOBJ invocations to module description.
2237         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2238         invocations from here...
2239         * modules/free (configure.ac): ... to here.
2240
2241 2011-05-07  Bruno Haible  <bruno@clisp.org>
2242
2243         freadable: Move AC_LIBOBJ invocations to module description.
2244         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2245         here...
2246         * modules/freadable (configure.ac): ... to here.
2247
2248 2011-05-07  Bruno Haible  <bruno@clisp.org>
2249
2250         fpurge: Move AC_LIBOBJ invocations to module description.
2251         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2252         invocations from here...
2253         * modules/fpurge (configure.ac): ... to here.
2254
2255 2011-05-07  Bruno Haible  <bruno@clisp.org>
2256
2257         fpending: Move AC_LIBOBJ invocations to module description.
2258         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2259         gl_FUNC_FPENDING.
2260         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2261         invocations from here...
2262         * modules/fpending (configure.ac): ... to here.
2263
2264 2011-05-07  Bruno Haible  <bruno@clisp.org>
2265
2266         fopen: Move AC_LIBOBJ invocations to module description.
2267         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2268         invocations from here...
2269         * modules/fopen (configure.ac): ... to here.
2270
2271 2011-05-07  Bruno Haible  <bruno@clisp.org>
2272
2273         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2274         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2275         gl_FUNC_FNMATCH_POSIX.
2276         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2277         invocations from here...
2278         * modules/fnmatch (configure.ac): ... to here.
2279         * modules/fnmatch-gnu (configure.ac): ... and here.
2280
2281 2011-05-07  Bruno Haible  <bruno@clisp.org>
2282
2283         flock: Move AC_LIBOBJ invocations to module description.
2284         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2285         invocations from here...
2286         * modules/flock (configure.ac): ... to here.
2287
2288 2011-05-07  Bruno Haible  <bruno@clisp.org>
2289
2290         fileblocks: Move AC_LIBOBJ invocations to module description.
2291         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2292         gl_PREREQ_FILEBLOCKS invocations from here...
2293         * modules/fileblocks (configure.ac): ... to here.
2294
2295 2011-05-06  Bruno Haible  <bruno@clisp.org>
2296
2297         fflush: Move AC_LIBOBJ invocations to module description.
2298         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2299         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2300         invocations from here...
2301         * modules/fflush (configure.ac): ... to here.
2302
2303 2011-05-06  Bruno Haible  <bruno@clisp.org>
2304
2305         fdopendir: Move AC_LIBOBJ invocations to module description.
2306         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2307         here...
2308         * modules/fdopendir (configure.ac): ... to here.
2309         (Depends-on): Improve conditions.
2310
2311 2011-05-06  Bruno Haible  <bruno@clisp.org>
2312
2313         _Exit: Move AC_LIBOBJ invocations to module description.
2314         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2315         invocations from here...
2316         * modules/_Exit (configure.ac): ... to here.
2317
2318 2011-05-21  Bruno Haible  <bruno@clisp.org>
2319
2320         euidaccess: Respect rules for use of AC_LIBOBJ.
2321         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2323         from here...
2324         * modules/euidaccess (configure.ac): ... to here.
2325
2326 2011-05-06  Bruno Haible  <bruno@clisp.org>
2327
2328         error: Move AC_LIBOBJ invocations to module description.
2329         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2330         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2331         invocations from here...
2332         * modules/error (configure.ac): ... to here.
2333
2334 2011-05-06  Bruno Haible  <bruno@clisp.org>
2335
2336         duplocale: Move AC_LIBOBJ invocations to module description.
2337         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2338         gl_PREREQ_DUPLOCALE invocations from here...
2339         * modules/duplocale (configure.ac): ... to here.
2340
2341 2011-05-05  Bruno Haible  <bruno@clisp.org>
2342
2343         dirfd: Move AC_LIBOBJ invocations to module description.
2344         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2345         gl_FUNC_DIRFD.
2346         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2347         here...
2348         * modules/dirfd (configure.ac): ... to here.
2349         (Depends-on): Fix condition.
2350
2351 2011-05-05  Bruno Haible  <bruno@clisp.org>
2352
2353         chown: Respect rules for use of AC_LIBOBJ.
2354         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2355         * modules/chown (configure.ac): ... to here.
2356
2357 2011-05-05  Bruno Haible  <bruno@clisp.org>
2358
2359         chdir-long: Move AC_LIBOBJ invocations to module description.
2360         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2361         gl_PREREQ_CHDIR_LONG invocations from here...
2362         * modules/chdir-long (configure.ac): ... to here.
2363
2364 2011-05-05  Bruno Haible  <bruno@clisp.org>
2365
2366         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2367         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2368         from here...
2369         * modules/canonicalize-lgpl (configure.ac): ... to here.
2370
2371 2011-05-05  Bruno Haible  <bruno@clisp.org>
2372
2373         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2374         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2375         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2376         REPLACE_CALLOC.
2377         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2378         * modules/calloc-gnu (configure.ac): Likewise.
2379
2380 2011-05-05  Bruno Haible  <bruno@clisp.org>
2381
2382         btowc: Move AC_LIBOBJ invocations to module description.
2383         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2384         invocations from here...
2385         * modules/btowc (configure.ac): ... to here.
2386
2387 2011-05-21  Bruno Haible  <bruno@clisp.org>
2388
2389         atexit: Move AC_LIBOBJ invocations to module description.
2390         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2391         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2392         here...
2393         * modules/atexit (configure.ac): ... to here.
2394
2395 2011-05-05  Bruno Haible  <bruno@clisp.org>
2396
2397         atoll: Move AC_LIBOBJ invocations to module description.
2398         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2399         invocations from here...
2400         * modules/atoll (configure.ac): ... to here.
2401
2402 2011-05-05  Bruno Haible  <bruno@clisp.org>
2403
2404         argz: Move AC_LIBOBJ invocations to module description.
2405         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2406         * modules/argz (configure.ac): ... to here.
2407
2408 2011-05-05  Bruno Haible  <bruno@clisp.org>
2409
2410         alphasort: Move AC_LIBOBJ invocations to module description.
2411         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2412         gl_PREREQ_ALPHASORT invocations from here...
2413         * modules/alphasort (configure.ac): ... to here.
2414
2415 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2416
2417         verify: new macro verify_expr; verify_true deprecated
2418         * NEWS: Mention this.
2419         * doc/verify.texi (Compile-time Assertions): Document this.
2420         * lib/verify.h (verify_true): Deprecate.
2421         (verify_expr): New macro.
2422         * tests/test-verify.c (function): Test verify_expr.
2423
2424 2011-06-14  Jim Meyering  <meyering@redhat.com>
2425
2426         init.sh: give more portable redirection-related advice in a comment
2427         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2428         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2429         for lots of discussion.  Stefano Lattarini suggested the solution
2430         of putting "9>&2" after the command.  Reported by Bruno Haible.
2431
2432 2011-06-13  Bruno Haible  <bruno@clisp.org>
2433
2434         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2436         'none'.
2437
2438 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2439
2440         ftoastr: use strtof only if HAVE_STRTOF
2441         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2443         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2444         * modules/ftoastr (configure.ac): Check for strtof.
2445
2446 2011-06-13  Bruno Haible  <bruno@clisp.org>
2447
2448         gnulib-tool: Addendum to 2011-06-08 commit.
2449         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2450         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2451
2452 2011-06-13  Bruno Haible  <bruno@clisp.org>
2453
2454         fseeko: Provide a non-inline replacement of fseek().
2455         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2456         * modules/fseeko (Depends-on): Add fseek.
2457         * modules/fseek (License): Change to LGPLv2+.
2458
2459 2011-06-13  Bruno Haible  <bruno@clisp.org>
2460
2461         ftello: Provide a non-inline replacement of ftell().
2462         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2463         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2464         not have ftello() (such as on mingw).
2465         * modules/ftello (Depends-on): Add ftell.
2466         * modules/ftell (License): Change to LGPLv2+.
2467
2468 2011-05-07  Bruno Haible  <bruno@clisp.org>
2469
2470         ftell: Move AC_LIBOBJ invocations to module description.
2471         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2472         * modules/ftell (configure.ac): ... to here.
2473
2474 2011-05-07  Bruno Haible  <bruno@clisp.org>
2475
2476         ftello: Respect rules for use of AC_LIBOBJ.
2477         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2478         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2479         here...
2480         * modules/ftello (configure.ac): ... to here.
2481
2482 2011-05-07  Bruno Haible  <bruno@clisp.org>
2483
2484         fseeko: Simplify.
2485         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2486         (gl_FUNC_FSEEKO): Inline it here.
2487
2488 2011-05-07  Bruno Haible  <bruno@clisp.org>
2489
2490         fseek: Move AC_LIBOBJ invocations to module description.
2491         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2492         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2493         * modules/fseek (configure.ac): ... to here.
2494
2495 2011-05-07  Bruno Haible  <bruno@clisp.org>
2496
2497         fseek: Respect rules for use of AC_LIBOBJ.
2498         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2499         here...
2500         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2501
2502 2011-05-07  Bruno Haible  <bruno@clisp.org>
2503
2504         fseeko: Respect rules for use of AC_LIBOBJ.
2505         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2506         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2507         here...
2508         * modules/fseeko (configure.ac): ... to here.
2509
2510 2011-06-13  Bruno Haible  <bruno@clisp.org>
2511
2512         gnulib-tool: Allow comments in the 'Depends-on' section.
2513         * doc/gnulib.texi (Module description): Mention comment syntax in the
2514         Depends-on section.
2515         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2516
2517 2011-06-13  Bruno Haible  <bruno@clisp.org>
2518
2519         file-set.h: guard __attibute__ use, now that it's not always defined
2520         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2521         versions that support it.  This fixes a coreutils build failure with
2522         the vendor cc on HP-UX 11.31.
2523
2524 2011-06-12  Bruno Haible  <bruno@clisp.org>
2525
2526         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2527         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2528         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2529         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2530         (acl, aclsort): New declarations.
2531         (aclv_nontrivial): New declaration.
2532         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2533         (file_has_acl): Read also the second kind of HP-UX ACLs.
2534         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2535         kind of HP-UX ACLs if the first kind fails.
2536         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2537         second kind of HP-UX ACLs.
2538         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2539         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2540         agree.
2541         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2542         hpuxjfs.
2543         Handle hpuxjfs.
2544         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2545         hpuxjfs.
2546         Handle hpuxjfs.
2547         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2548         (func_test_same_acls): Use both lsacl and getacl.
2549         Handle hpuxjfs.
2550         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2551         (func_test_same_acls): Use both lsacl and getacl.
2552         Handle hpuxjfs.
2553
2554 2011-06-12  Bruno Haible  <bruno@clisp.org>
2555
2556         acl: Complete the 2010-08-10 fix.
2557         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2558         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2559         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2560         explicitly.
2561         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2562         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2563
2564 2011-06-12  Bruno Haible  <bruno@clisp.org>
2565
2566         spawn-pipe tests: Comments.
2567         * tests/test-spawn-pipe-child.c (main): Update comment.
2568         Reported by James Youngman <jay@gnu.org>.
2569
2570 2011-06-11  James Youngman  <jay@gnu.org>
2571
2572         New module 'stat-size'.
2573         * modules/stat-size: New module.  Provides macros for accessing
2574         file size information in instances of struct stat.  Depends on the
2575         fileblocks module because it calls st_blocks.
2576         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2577         * doc/gnulib.texi: Include stat-size.texi.
2578         * doc/stat-size.texi: Documentation for this module.
2579         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2580         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2581         AC_STRUCT_ST_BLOCKS.
2582
2583 2011-06-09  Bruno Haible  <bruno@clisp.org>
2584
2585         thread: Support pthreads-win32.
2586         * lib/glthread/thread.h (gl_thread_self): Define differently on
2587         pthreads-win32.
2588         (gl_null_thread): New declaration.
2589         (gl_thread_self_pointer): New macro.
2590         * lib/glthread/thread.c (gl_null_thread): New constant.
2591         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2592         gl_thread_self.
2593         * tests/test-tls.c: Likewise.
2594         Suggested by Paul Eggert. Reported by Eric Blake.
2595
2596 2011-06-09  Bruno Haible  <bruno@clisp.org>
2597
2598         thread: Fix confusion between NULL and 0.
2599         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2600         Reported by Paul Eggert.
2601
2602 2011-06-09  Bruno Haible  <bruno@clisp.org>
2603
2604         spawn-pipe tests: Avoid test failure on HP-UX 11.
2605         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2606         is closed.
2607
2608 2011-06-09  Bruno Haible  <bruno@clisp.org>
2609
2610         acl tests: Fix compilation error on HP-UX 11.
2611         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2612
2613 2011-06-09  Bruno Haible  <bruno@clisp.org>
2614
2615         rmdir: Avoid test failure on HP-UX 10.20.
2616         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2617         EEXIST.
2618
2619 2011-06-08  Eric Blake  <eblake@redhat.com>
2620
2621         perror: fix test on mingw
2622         * modules/perror-tests (Depends-on): Add dup2.
2623
2624         strerror_r-posix: fix on MacOS
2625         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2627         logic bug.
2628         * lib/strerror_r.c (strerror_r): Fix the bug.
2629         * lib/strerror.c (strerror): Likewise.
2630         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2631         problem.
2632         * doc/posix-functions/strerror.texi (strerror): Likewise.
2633         * doc/posix-functions/perror.texi (perror): Likewise.
2634         * tests/test-strerror.c (main): Enhance test.
2635         * tests/test-strerror_r.c (main): Likewise.
2636
2637 2011-06-08  Bruno Haible  <bruno@clisp.org>
2638
2639         gnulib-tool: Better isolation between different gnulib-tool invocations.
2640         * gnulib-tool: New option --witness-c-macro.
2641         (witness_c_macro): New variable.
2642         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2643         AM_CPPFLAGS define it as a C macro.
2644         (func_emit_tests_Makefile_am): Likewise.
2645         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2646         read it from there.
2647         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2648         m4_define, not AC_DEFUN.
2649         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2650         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2651         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2652         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2653         s|...|...|, to substitute the values of the GNULIB_* module indicator
2654         variables.
2655         * modules/dirent (Makefile.am): Likewise.
2656         * modules/fcntl-h (Makefile.am): Likewise.
2657         * modules/iconv-h (Makefile.am): Likewise.
2658         * modules/langinfo (Makefile.am): Likewise.
2659         * modules/locale (Makefile.am): Likewise.
2660         * modules/math (Makefile.am): Likewise.
2661         * modules/netdb (Makefile.am): Likewise.
2662         * modules/poll-h (Makefile.am): Likewise.
2663         * modules/pty (Makefile.am): Likewise.
2664         * modules/search (Makefile.am): Likewise.
2665         * modules/signal (Makefile.am): Likewise.
2666         * modules/spawn (Makefile.am): Likewise.
2667         * modules/stdio (Makefile.am): Likewise.
2668         * modules/stdlib (Makefile.am): Likewise.
2669         * modules/string (Makefile.am): Likewise.
2670         * modules/sys_ioctl (Makefile.am): Likewise.
2671         * modules/sys_select (Makefile.am): Likewise.
2672         * modules/sys_socket (Makefile.am): Likewise.
2673         * modules/sys_stat (Makefile.am): Likewise.
2674         * modules/sys_times (Makefile.am): Likewise.
2675         * modules/sys_utsname (Makefile.am): Likewise.
2676         * modules/sys_wait (Makefile.am): Likewise.
2677         * modules/termios (Makefile.am): Likewise.
2678         * modules/time (Makefile.am): Likewise.
2679         * modules/unistd (Makefile.am): Likewise.
2680         * modules/wchar (Makefile.am): Likewise.
2681
2682 2011-06-08  Eric Blake  <eblake@redhat.com>
2683
2684         strerror: simplify replacement
2685         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2686         * modules/strerror (configure.ac): No prereqs needed here...
2687         * modules/strerror-override (configure.ac): ...but this needs it.
2688         (Files): Add file for needed prereq macro.
2689
2690 2011-06-08  Bruno Haible  <bruno@clisp.org>
2691
2692         strerror_r-posix: Tweaks.
2693         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2694         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2695         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2696         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2697         (gl_FUNC_STRERROR_R): ... to here.
2698         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2699
2700 2011-06-07  Eric Blake  <eblake@redhat.com>
2701
2702         perror: document fixed bugs
2703         * doc/posix-functions/perror.texi (perror): Document recent
2704         patches.
2705
2706 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2707
2708         stat-time: get_stat_birthtime failure is better-defined
2709         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2710         return a timestamp whose tv_sec and tv_nsec values are both -1.
2711         Previously, the spec said only that the tv_nsec value was negative.
2712         This upward-compatible change simplifies GNU tar a bit.
2713
2714 2011-06-07  Eric Blake  <eblake@redhat.com>
2715
2716         strerror_r-posix: work around cygwin 1.7.9
2717         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2718         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2719         bug without replacing strerror_r.
2720         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2721         strerror_r is buggy, but without requiring strerror_r compilation.
2722         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2723
2724         test-perror: relax test to ignore cygwin bug
2725         * tests/test-perror2.c (main): Relax test on requiring detection
2726         of stream errors, and use unbuffered stream.
2727         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2728         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2729         * doc/posix-functions/fputc.texi (fputc): Likewise.
2730         * doc/posix-functions/fputs.texi (fputs): Likewise.
2731         * doc/posix-functions/fputws.texi (fputws): Likewise.
2732         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2733         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2734         * doc/posix-functions/getopt.texi (getopt): Likewise.
2735         * doc/posix-functions/perror.texi (perror): Likewise.
2736         * doc/posix-functions/printf.texi (printf): Likewise.
2737         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2738         * doc/posix-functions/psignal.texi (psignal): Likewise.
2739         * doc/posix-functions/putc.texi (putc): Likewise.
2740         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2741         Likewise.
2742         * doc/posix-functions/putchar.texi (putchar): Likewise.
2743         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2744         Likewise.
2745         * doc/posix-functions/puts.texi (puts): Likewise.
2746         * doc/posix-functions/putwc.texi (putwc): Likewise.
2747         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2748         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2749         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2750         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2751         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2752         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2753         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2754         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2755
2756 2011-05-22  Bruno Haible  <bruno@clisp.org>
2757
2758         strerror: Move AC_LIBOBJ invocations to module description.
2759         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2760         gl_PREREQ_STRERROR invocations from here...
2761         * modules/strerror (configure.ac): ... to here.
2762
2763 2011-05-21  Bruno Haible  <bruno@clisp.org>
2764
2765         perror: Use common idiom.
2766         * modules/perror (configure.ac): Reorder statements.
2767
2768 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2769
2770         tests: fix usage message in 'mktempd_'
2771         * tests/init.sh (mktempd_): In the usage message, use literal
2772         'mktempd_', not '$ME' (which is even undefined), as the name of
2773         the subroutine.
2774
2775 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2776
2777         tests init: new function 'fatal_', for hard errors
2778         Before this patch, the only way offered by tests/init.sh to
2779         properly signal a hard error was the `framework_failure_'
2780         function.  But the error message issued by that function,
2781         as its name would suggest, refers to a set-up failure in the
2782         testsuite, while hard errors can obviously also be due to
2783         other reasons.  The best way to fix this inconsistency is to
2784         introduce a new function with a more general error message.
2785         * tests/init.sh (fatal_): New function.
2786
2787 2011-06-06  Eric Blake  <eblake@redhat.com>
2788
2789         canonicalize-lgpl: use common idiom
2790         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2791         over newer POSIX -Rf.
2792         Reported by Bruno Haible.
2793
2794         canonicalize-lgpl: work around AIX realpath bug
2795         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2796         * doc/posix-functions/realpath.texi (realpath): Document it.
2797         Reported by Bruno Haible.
2798
2799         strerror: work around FreeBSD bug
2800         * lib/strerror.c (strerror): Special case 0.
2801         Reported by Bruno Haible.
2802
2803         strerror-override: avoid bloating errno module
2804         * modules/errno (Files, configure.ac): Move replacement strings...
2805         * modules/strerror-override: ...to new module.
2806         * modules/strerror (Depends-on): Add strerror-override.
2807         * modules/strerror_r-posix (Depends-on): Likewise.
2808         * MODULES.html.sh: Document new module.
2809         Reported by Bruno Haible.
2810
2811 2011-06-06  Bruno Haible  <bruno@clisp.org>
2812
2813         spawn-pipe tests: Rename program.
2814         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2815         * tests/test-spawn-pipe-child.c: Update comment.
2816         * tests/test-spawn-pipe.sh: Update.
2817         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2818
2819         spawn-pipe tests: Link the child program only against libc.
2820         * tests/test-spawn-pipe-child.c: New file, extracted from
2821         tests/test-spawn-pipe.c.
2822         (main): Expect only one argument.
2823         (is_open): New function, copied from tests/test-pipe.c.
2824         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2825         (child_main): Remove function.
2826         (test_pipe): Pass only one argument to the child program.
2827         (main): Remove child process code. Expect the child program's name as
2828         first argument.
2829         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2830         argument.
2831         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2832         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2833         test-spawn-pipe-child against no libraries.
2834
2835 2011-06-06  Bruno Haible  <bruno@clisp.org>
2836
2837         careadlinkat: Avoid mismatch between ssize_t and int.
2838         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2839         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2840
2841 2011-06-06  Jim Meyering  <meyering@redhat.com>
2842
2843         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2844         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2845         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2846
2847 2011-06-05  Bruno Haible  <bruno@clisp.org>
2848
2849         ansi-c++-opt: Interoperability with libtool.
2850         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2851         set the variable to "no", not to ":".
2852         * NEWS: Mention the change.
2853
2854 2011-06-05  Bruno Haible  <bruno@clisp.org>
2855
2856         acl: Fix test failure on AIX 7.
2857         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2858         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2859
2860 2011-06-05  Bruno Haible  <bruno@clisp.org>
2861
2862         pipe-filter-ii: Fix test failure on AIX and IRIX.
2863         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2864         with EAGAIN, retry with a smaller buffer size.
2865
2866 2011-06-05  Bruno Haible  <bruno@clisp.org>
2867
2868         localename: Fix link dependencies.
2869         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2870         * modules/localename-tests (Makefile.am): Link test-localename with
2871         $(LIBTHREAD).
2872
2873 2011-06-05  Bruno Haible  <bruno@clisp.org>
2874
2875         error: Avoid gcc warning.
2876         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2877
2878 2011-06-05  Bruno Haible  <bruno@clisp.org>
2879
2880         unsetenv: Avoid gcc warning.
2881         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2882
2883 2011-06-05  Bruno Haible  <bruno@clisp.org>
2884
2885         setenv: Avoid gcc warning.
2886         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2887
2888 2011-06-05  Bruno Haible  <bruno@clisp.org>
2889
2890         sys_select: Ensure memset is declared also on AIX 7.
2891         * lib/sys_select.in.h: Include <string.h> also on AIX.
2892         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2893         self-contained also on AIX 7.1.
2894
2895 2011-06-04  Jim Meyering  <meyering@redhat.com>
2896
2897         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2898         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2899         function name, "error".
2900         (_gl_translatable_diag_func_re): New configurable variable.
2901
2902 2011-06-04  Bruno Haible  <bruno@clisp.org>
2903
2904         getopt: Avoid gcc warning.
2905         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2906
2907 2011-06-04  Bruno Haible  <bruno@clisp.org>
2908
2909         strerror_r: Fix comments.
2910         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2911         commit.
2912
2913 2011-06-04  Bruno Haible  <bruno@clisp.org>
2914
2915         perror: Fix compilation error.
2916         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2917         Undefine fprintf, not sprintf.
2918         * modules/perror (Depends-on): Remove intprops, verify.
2919
2920 2011-06-04  Bruno Haible  <bruno@clisp.org>
2921
2922         setlocale: Enable replacement on Cygwin 1.5.
2923         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2924         Cygwin 1.5.x.
2925         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2926         LC_CTYPE category also exists on Cygwin 1.5.x.
2927
2928 2011-06-04  Bruno Haible  <bruno@clisp.org>
2929
2930         strerror-override: Don't disable symbol renamings.
2931         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2932         * lib/strerror-override.c: Include config.h.
2933         (strerror_override): Don't undefine.
2934
2935 2011-06-03  Bruno Haible  <bruno@clisp.org>
2936
2937         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2938         * lib/localename.h: Update copyright header.
2939         * lib/localename.c: Likewise.
2940         * lib/relocatable.h: Likewise.
2941         * lib/relocatable.c: Likewise.
2942
2943 2011-06-02  Bruno Haible  <bruno@clisp.org>
2944
2945         doc: Fix a module name.
2946         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2947
2948 2011-06-02  Bruno Haible  <bruno@clisp.org>
2949
2950         pipe2: Remove dependency on 'nonblocking' module.
2951         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2952         O_NONBLOCK is defined by gnulib.
2953         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2954         is zero.
2955         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2956         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2957         defined by gnulib.
2958         (get_nonblocking_flag): New function.
2959         (main): Test O_NONBLOCK flag only if it is nonzero.
2960         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2961
2962 2011-06-03  Jim Meyering  <meyering@redhat.com>
2963
2964         maint: three new prohibit-header-without-use rules
2965         Prohibit use of cloexec.h, posixver.h, same.h without use.
2966         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2967         (sc_prohibit_posixver_without_use): Likewise.
2968         (sc_prohibit_same_without_use): Likewise.
2969
2970 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2971
2972         allocator: 'die' routine is now given requested size
2973         * lib/allocator.h (struct allocator.die): New size arg.
2974         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2975         If the actual problem is an ssize_t limitation, not a size_t or
2976         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2977
2978 2011-06-01  Eric Blake  <eblake@redhat.com>
2979
2980         strerror: drop strerror_r dependency
2981         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2982         * lib/strerror-override.c (strerror_override): ...to new file.
2983         * lib/strerror-override.h: Add prototype.
2984         * lib/strerror-impl.h: Delete.
2985         * lib/strerror.c (strerror): New implementation.
2986         * modules/errno (Files): Add new files.
2987         (configure.ac): Compile new file as appropriate.
2988         * modules/strerror (Files): Drop unused file.
2989         (Depends-on): Drop strerror_r-posix.
2990         * MODULES.html.sh: Document strerror_r-posix.
2991         Requested by Sam Steingold.
2992
2993         perror: call strerror_r directly
2994         * modules/perror (Files): Drop strerror-impl.h.
2995         * lib/perror.c (perror): Use our own stack buffer, rather than
2996         calling a wrapper that uses static storage.
2997         * doc/posix-functions/perror.texi (perror): Document a limitation
2998         of our replacement.
2999
3000         strerror_r: fix includes for FreeBSD
3001         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3002         since we use abort on some platforms.
3003         Reported by Matthias Bolte.
3004
3005 2011-05-31  Bruno Haible  <bruno@clisp.org>
3006
3007         Fix link errors in tests: openat-die uses gettext-h.
3008         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3009         against $(LIBINTL).
3010         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3011         against $(LIBINTL).
3012         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3013         $(LIBINTL).
3014         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3015         against $(LIBINTL).
3016         * modules/linkat-tests (Makefile.am): Link test-linkat against
3017         $(LIBINTL).
3018         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3019         $(LIBINTL).
3020         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3021         against $(LIBINTL).
3022         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3023         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3024         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3025         $(LIBINTL).
3026         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3027         $(LIBINTL).
3028         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3029         $(LIBINTL).
3030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3031
3032 2011-05-31  Bruno Haible  <bruno@clisp.org>
3033
3034         Fix link errors in tests: wait-process uses gettext-h.
3035         * modules/nonblocking-pipe-tests (Makefile.am): Set
3036         test_nonblocking_pipe_main_LDADD.
3037         * modules/nonblocking-socket-tests (Makefile.am): Link
3038         test-nonblocking-socket-main against $(LIBINTL).
3039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3040
3041 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3042
3043         assert-h: work around 'verify' incompatibility
3044         * lib/verify.h: Use @...@ directives, not ifdef.
3045         * modules/assert-h (assert.h): Implement the directives.
3046         (assert.h): Substitute the symbol-prefix more consistently.
3047
3048 2011-05-29  Jim Meyering  <meyering@redhat.com>
3049
3050         trim: remove three superfluous assignments
3051         * lib/trim.c (trim2): Remove three superfluous assignments
3052         and correct brace positioning.
3053
3054 2011-05-29  Bruno Haible  <bruno@clisp.org>
3055
3056         wctype-h: Avoid namespace pollution on Solaris 2.6.
3057         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3058         identifiers.
3059         * doc/posix-headers/wctype.texi: Mention the problem.
3060         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3061
3062 2011-05-28  Jim Meyering  <meyering@redhat.com>
3063
3064         parse-datetime.y: accommodate -Wstrict-overflow
3065         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3066         placate -Wstrict-overflow.
3067
3068         trim: avoid a warning from -O2 -Wstrict-overflow
3069         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3070
3071 2011-05-29  Bruno Haible  <bruno@clisp.org>
3072
3073         gnulib-tool: Fix bug in yesterday's commit.
3074         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3075         twice.
3076
3077 2011-05-29  Bruno Haible  <bruno@clisp.org>
3078
3079         Allow multiple gnulib generated include files to be combined.
3080         * gnulib-tool (func_compute_include_guard_prefix): New function.
3081         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3082         ${gl_include_guard_prefix} references.
3083         (func_import, func_create_testdir): Invoke
3084         func_compute_include_guard_prefix.
3085         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3086         * lib/ctype.in.h: Likewise.
3087         * lib/dirent.in.h: Likewise.
3088         * lib/errno.in.h: Likewise.
3089         * lib/fcntl.in.h: Likewise.
3090         * lib/float.in.h: Likewise.
3091         * lib/getopt.in.h: Likewise.
3092         * lib/iconv.in.h: Likewise.
3093         * lib/langinfo.in.h: Likewise.
3094         * lib/locale.in.h: Likewise.
3095         * lib/math.in.h: Likewise.
3096         * lib/netdb.in.h: Likewise.
3097         * lib/netinet_in.in.h: Likewise.
3098         * lib/poll.in.h: Likewise.
3099         * lib/pthread.in.h: Likewise.
3100         * lib/pty.in.h: Likewise.
3101         * lib/sched.in.h: Likewise.
3102         * lib/se-selinux.in.h: Likewise.
3103         * lib/search.in.h: Likewise.
3104         * lib/signal.in.h: Likewise.
3105         * lib/spawn.in.h: Likewise.
3106         * lib/stdarg.in.h: Likewise.
3107         * lib/stddef.in.h: Likewise.
3108         * lib/stdint.in.h: Likewise.
3109         * lib/stdio.in.h: Likewise.
3110         * lib/stdlib.in.h: Likewise.
3111         * lib/string.in.h: Likewise.
3112         * lib/strings.in.h: Likewise.
3113         * lib/sys_file.in.h: Likewise.
3114         * lib/sys_ioctl.in.h: Likewise.
3115         * lib/sys_select.in.h: Likewise.
3116         * lib/sys_socket.in.h: Likewise.
3117         * lib/sys_stat.in.h: Likewise.
3118         * lib/sys_time.in.h: Likewise.
3119         * lib/sys_times.in.h: Likewise.
3120         * lib/sys_uio.in.h: Likewise.
3121         * lib/sys_utsname.in.h: Likewise.
3122         * lib/sys_wait.in.h: Likewise.
3123         * lib/sysexits.in.h: Likewise.
3124         * lib/termios.in.h: Likewise.
3125         * lib/time.in.h: Likewise.
3126         * lib/unistd.in.h: Likewise.
3127         * lib/wchar.in.h: Likewise.
3128         * lib/wctype.in.h: Likewise.
3129         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3130         * modules/ctype (Makefile.am): Likewise.
3131         * modules/dirent (Makefile.am): Likewise.
3132         * modules/errno (Makefile.am): Likewise.
3133         * modules/fcntl-h (Makefile.am): Likewise.
3134         * modules/float (Makefile.am): Likewise.
3135         * modules/getopt-posix (Makefile.am): Likewise.
3136         * modules/iconv-h (Makefile.am): Likewise.
3137         * modules/langinfo (Makefile.am): Likewise.
3138         * modules/locale (Makefile.am): Likewise.
3139         * modules/math (Makefile.am): Likewise.
3140         * modules/netdb (Makefile.am): Likewise.
3141         * modules/netinet_in (Makefile.am): Likewise.
3142         * modules/poll-h (Makefile.am): Likewise.
3143         * modules/pthread (Makefile.am): Likewise.
3144         * modules/pty (Makefile.am): Likewise.
3145         * modules/sched (Makefile.am): Likewise.
3146         * modules/search (Makefile.am): Likewise.
3147         * modules/selinux-h (Makefile.am): Likewise.
3148         * modules/signal (Makefile.am): Likewise.
3149         * modules/spawn (Makefile.am): Likewise.
3150         * modules/stdarg (Makefile.am): Likewise.
3151         * modules/stddef (Makefile.am): Likewise.
3152         * modules/stdint (Makefile.am): Likewise.
3153         * modules/stdio (Makefile.am): Likewise.
3154         * modules/stdlib (Makefile.am): Likewise.
3155         * modules/string (Makefile.am): Likewise.
3156         * modules/strings (Makefile.am): Likewise.
3157         * modules/sys_file (Makefile.am): Likewise.
3158         * modules/sys_ioctl (Makefile.am): Likewise.
3159         * modules/sys_select (Makefile.am): Likewise.
3160         * modules/sys_socket (Makefile.am): Likewise.
3161         * modules/sys_stat (Makefile.am): Likewise.
3162         * modules/sys_time (Makefile.am): Likewise.
3163         * modules/sys_times (Makefile.am): Likewise.
3164         * modules/sys_uio (Makefile.am): Likewise.
3165         * modules/sys_utsname (Makefile.am): Likewise.
3166         * modules/sys_wait (Makefile.am): Likewise.
3167         * modules/sysexits (Makefile.am): Likewise.
3168         * modules/termios (Makefile.am): Likewise.
3169         * modules/time (Makefile.am): Likewise.
3170         * modules/unistd (Makefile.am): Likewise.
3171         * modules/wchar (Makefile.am): Likewise.
3172         * modules/wctype-h (Makefile.am): Likewise.
3173         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3174
3175 2011-05-29  Bruno Haible  <bruno@clisp.org>
3176
3177         assert-h: Allow multiple gnulib generated replacements to coexist.
3178         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3179
3180 2011-05-29  Bruno Haible  <bruno@clisp.org>
3181
3182         argp: Allow coexistence with strerror_r-posix module.
3183         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3184         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3185         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3186         not the glibc signature.
3187
3188 2011-05-28  Bruno Haible  <bruno@clisp.org>
3189
3190         gnulib-tool: Alternative structure of testdirs, similar to --import.
3191         * gnulib-tool: New option --single-configure.
3192         (func_usage): Document it.
3193         (single_configure): New variable.
3194         (func_modules_transitive_closure_separately,
3195         func_modules_transitive_closure_separately,
3196         func_determine_use_libtests, func_modules_add_dummy_separately,
3197         func_modules_to_filelist_separately): New functions, extracted from
3198         func_import.
3199         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3200         (func_import): Use the new functions.
3201         (func_create_testdir): Set final_modules. Handle $single_configure =
3202         true case.
3203
3204 2011-05-28  Bruno Haible  <bruno@clisp.org>
3205
3206         getloadavg: Remove an unreliable safety check.
3207         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3208         getloadavg.c is in place.
3209         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3210         Reported by Sam Steingold <sds@gnu.org>.
3211
3212 2011-05-28  Bruno Haible  <bruno@clisp.org>
3213
3214         doc: Cleanup yet another file produced by texinfo.tex.
3215         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3216
3217 2011-05-28  Bruno Haible  <bruno@clisp.org>
3218
3219         Finish the conditional dependencies mechanism.
3220         * gnulib-tool: New option --no-conditional-dependencies.
3221         (func_usage): Document it. Don't mark --conditional-dependencies as
3222         experimental.
3223         (cond_dependencies): The possible values can now be true, false, empty.
3224         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3225         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3226         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3227
3228 2011-05-28  Bruno Haible  <bruno@clisp.org>
3229
3230         doc: Use a recent texinfo.tex.
3231         * doc/Makefile (tex_opts): New variable.
3232         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3233
3234 2011-05-28  Jim Meyering  <meyering@redhat.com>
3235
3236         intprops.h: adjust comment to match code change
3237         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3238         only once, it *may* have side effects.  Also fix an unrelated typo.
3239         (_GL_INT_SIGNED): Likewise.
3240
3241 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3242
3243         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3244
3245 2011-05-26  Bruno Haible  <bruno@clisp.org>
3246
3247         mbsrchr: Avoid collision with system function on Interix.
3248         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3249         Reported by Markus Duft <mduft@gentoo.org>.
3250
3251 2011-05-15  James Youngman  <jay@gnu.org>
3252
3253         getopt: for ambiguous options, enumerate the possibilities.
3254         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3255         the ambiguous options when an ambiguous prefix is given. This was
3256         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3257         glibc change was
3258         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3259
3260 2011-05-25  Eric Blake  <eblake@redhat.com>
3261
3262         getcwd: work around mingw bug
3263         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3264         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3265         Reported by Matthias Bolte.
3266
3267 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3268
3269         test-intprops: disable -Wtype-limits diagnostics
3270         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3271         diagnostics.  Otherwise, the integer overflow macros generate many
3272         diagnostics.  Reported by Jim Meyering in
3273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3274
3275         intprops: shorten, to pacify gcc -Woverlength-strings
3276         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3277         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3278         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3279         likely to run afoul of C compiler limits for string constant lengths.
3280         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3281
3282 2011-05-24  Eric Blake  <eblake@redhat.com>
3283
3284         docs: document recently fixed glibc printf bug
3285         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3286         * doc/posix-functions/printf.texi (printf): Likewise.
3287         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3288         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3289
3290         closein-tests: convert to init.sh
3291         * modules/closein-tests (Files): Add init.sh
3292         * tests/test-closein.sh Use it.
3293
3294         yesno-tests: convert to init.sh
3295         * modules/yesno-tests (Files): Add init.sh.
3296         * tests/test-yesno.sh: Use it.
3297
3298         atexit-tests: ensure reliable exit status
3299         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3300         Reported by Bruno Haible.
3301
3302 2011-05-24  Bruno Haible  <bruno@clisp.org>
3303
3304         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3305         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3306         gl_PREREQ_STRERROR_R invocations from here...
3307         * modules/strerror_r-posix (configure.ac): ... to here.
3308
3309 2011-05-24  Eric Blake  <eblake@redhat.com>
3310
3311         strerror_r: fix missing header
3312         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3313
3314         strerror_r: fix AIX test failures
3315         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3316         ERANGE failure.
3317
3318         strerror_r: fix Solaris test failures
3319         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3320         failures.
3321         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3322
3323         strerror_r: enforce POSIX recommendations
3324         * lib/strerror_r.c (safe_copy): New helper method.
3325         (strerror_r): Guarantee a non-empty string.
3326         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3327         recent POSIX rulings and to match our strerror guarantees.
3328         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3329
3330 2011-05-24  Jim Meyering  <meyering@redhat.com>
3331
3332         test-perror2.c: avoid warning about unused variable
3333         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3334
3335 2011-05-24  Eric Blake  <eblake@redhat.com>
3336
3337         perror: avoid spurious test failure on HP-UX
3338         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3339
3340         tests: fix logic bug in init.sh
3341         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3342         shell.
3343
3344 2011-05-24  Jim Meyering  <meyering@redhat.com>
3345
3346         utimensat: do not reference an out-of-scope buffer
3347         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3348         declared in an inner scope, yet "times" would be dereferenced outside
3349         the scope in which "ts" was valid.
3350         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3351         of ts[2] "out/up", so that the use of aliased "times" (via
3352         "times = ts;") does not end up referencing an out-of-scope "ts"
3353
3354         opendir-safer.c: don't clobber errno; don't close negative FD
3355         * lib/opendir-safer.c (opendir_safer):
3356         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3357         file descriptor, and more importantly, don't clobber the
3358         offending errno value with EINVAL.  Before, upon failure
3359         of dup_safer, we would pass the negative file descriptor to
3360         fdopendir, which would clobber errno.
3361
3362 2011-05-23  Bruno Haible  <bruno@clisp.org>
3363
3364         idcache: Fix module description.
3365         * modules/idcache (Include): Set to "idcache.h".
3366
3367 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3368
3369         gnulib-tool: fix portability problem with MacOS sed
3370         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3371         before the "}".  Problem reported by Leo in
3372         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3373         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3374         sed_extract_condition1, sed_extract_condition2.
3375
3376 2011-05-23  Bruno Haible  <bruno@clisp.org>
3377
3378         hash: Simplify autoconf macro.
3379         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3380
3381 2011-05-23  Bruno Haible  <bruno@clisp.org>
3382
3383         getugroups: Fix module description.
3384         * modules/getugroups (Include): Set to "getugroups.h".
3385
3386 2011-05-23  Bruno Haible  <bruno@clisp.org>
3387
3388         linkat: Simplify autoconf macro.
3389         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3390
3391 2011-05-23  Bruno Haible  <bruno@clisp.org>
3392             Eric Blake  <eblake@redhat.com>
3393
3394         linkat, renameat: Update dependencies.
3395         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3396         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3397         symlinkat.
3398
3399 2011-05-23  Jim Meyering  <meyering@redhat.com>
3400
3401         maint.mk: more tight_scope improvements
3402         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3403         (_gl_TS_headers): Define only in if-0'd block.
3404         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3405         sometimes we must *not* use it.  Adjust uses accordingly.
3406         (sc_tight_scope): Use much simpler grep-based test to determine
3407         whether we skip this rule.
3408
3409         maint.mk: generalize/improve the tight-scope rule
3410         * top/maint.mk: Emit a warning when the test is skipped.
3411         (_gl_TS_dir): Add $(srcdir)/ prefix.
3412         (_gl_TS_function_match): Simplify, rather than trying
3413         to enumerate common types.  Otherwise, it would fail to match an
3414         "extern unsigned char const *" declaration in idutils.
3415         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3416         a way to support use of that type of macro.
3417         (_gl_TS_var_match): Simplify regexp.
3418         (_gl_TS_obj_files): New configurable variable.
3419         (_gl_TS_headers): Likewise.
3420
3421 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3422
3423         verify: fix bug when gnulib <assert.h> is also included
3424         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3425         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3426         Perhaps there's a better way, but this fixes the immediate problem.
3427         Problem reported by Bruno Haible in
3428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3429
3430 2011-05-22  Bruno Haible  <bruno@clisp.org>
3431
3432         xgetcwd: Simplify autoconf macro.
3433         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3434
3435 2011-05-22  Bruno Haible  <bruno@clisp.org>
3436
3437         New module 'mktime-internal'.
3438         * modules/mktime-internal: New file.
3439         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3440         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3441         mktime_internal as a C macro if libc has __mktime_internal.
3442         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3443         conditions.
3444         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3445
3446 2011-05-22  Bruno Haible  <bruno@clisp.org>
3447
3448         timegm: Correct mktime replacement statements.
3449         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3450         defining mktime as a C macro. This completes a 2009-07-28 commit.
3451
3452 2011-05-22  Bruno Haible  <bruno@clisp.org>
3453
3454         timegm: Simplify autoconf macro.
3455         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3456
3457 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3458
3459         clock-time: change to LGPLv2+.
3460         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3461         BSD-like but we have no mark for that; this is good enough for now.
3462
3463 2011-05-21  Bruno Haible  <bruno@clisp.org>
3464
3465         strerror_r: Fix comments.
3466         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3467
3468 2011-05-21  Bruno Haible  <bruno@clisp.org>
3469
3470         relocatable-prog-wrapper: Fix possible link error.
3471         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3472         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3473         (gl_FUNC_SETENV): ... to here.
3474         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3475         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3476
3477 2011-05-21  Bruno Haible  <bruno@clisp.org>
3478
3479         relocatable-prog-wrapper: Assume strerror() exists.
3480         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3481         m4/strerror.m4.
3482         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3483         * lib/relocwrapper.c: Remove mention of strerror module.
3484         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3485         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3486         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3487         C macro.
3488
3489 2011-05-21  Bruno Haible  <bruno@clisp.org>
3490
3491         select: Simplify replacement idiom.
3492         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3493         Win32 platforms.
3494         * lib/sys_select.in.h (select): Simplify accordingly.
3495         * modules/select (Depends-on): Likewise.
3496
3497 2011-05-21  Bruno Haible  <bruno@clisp.org>
3498
3499         mkdir-p: Simplify autoconf macro.
3500         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3501         gl_FUNC_LCHOWN.
3502
3503 2011-05-21  Eric Blake  <eblake@redhat.com>
3504
3505         strerror_r: avoid clobbering strerror on cygwin
3506         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3507         fall back instead to sys_errlist.
3508         * modules/strerror (configure.ac): Add witness.
3509         * tests/test-strerror_r.c (main): Enhance test.
3510         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3511         * tests/test-perror2.c (main): Free memory before exit.
3512
3513 2011-05-21  Bruno Haible  <bruno@clisp.org>
3514
3515         mkdtemp: Use gnulib naming conventions.
3516         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3517         * modules/mkdtemp (configure.ac): Update.
3518
3519 2011-05-20  Eric Blake  <eblake@redhat.com>
3520
3521         strerror_r: avoid corrupting errno on Solaris
3522         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3523         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3524
3525         strerror_r: avoid compiler warning
3526         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3527
3528         strerror_r: simplify AIX code
3529         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3530
3531         test-perror: avoid spurious failure on FreeBSD
3532         * modules/perror-tests (Depends-on): Add strerror, now that
3533         strerror_r no longer pulls it in.
3534
3535 2011-05-20  Bruno Haible  <bruno@clisp.org>
3536
3537         strerror_r-posix: Remove unused dependencies.
3538         * modules/strerror_r-posix (Depends-on): Remove strerror.
3539         Reported by Eric Blake.
3540
3541 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3542
3543         intprops: remove assumption about A|B representation
3544         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3545         is a valid integer if both A and B are.  Although this is true for
3546         all known practical hosts, the C standard doesn't guarantee it,
3547         and the code need not assume it.  Also, this change may work around
3548         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3550
3551 2011-05-20  Eric Blake  <eblake@redhat.com>
3552
3553         perror: work around FreeBSD bug
3554         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3555         is broken.  Move AC_LIBOBJ...
3556         * modules/perror (configure.ac): Here.
3557         * doc/posix-functions/perror.texi (perror): Document this.
3558         * tests/test-perror2.c (main): Enhance test.
3559
3560         test-perror: check for strerror interactions
3561         * tests/macros.h (STREQ): Add macro.
3562         * modules/perror-tests (Files): Add second test.
3563         * tests/test-perror2.c (main): New file.
3564         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3565
3566         test-perror: rewrite to use init script
3567         * modules/perror-tests (Files): Add init.sh.
3568         * tests/test-perror.sh: Use temporary directory.
3569
3570 2011-05-20  Jim Meyering  <meyering@redhat.com>
3571
3572         maint: replace misused "a" with "an"
3573         * doc/intprops.texi: "a integer"
3574         * doc/regex.texi: "a explanation"
3575         * lib/alignof.h: "a object"
3576         * lib/argmatch.h: "a explanation"
3577         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3578         * lib/stdint.in.h: "a integer"
3579         * lib/userspec.c: "a owner"
3580         * doc/gnulib.texi: Fix "a idea", and reword.
3581
3582 2011-05-19  Jim Meyering  <meyering@redhat.com>
3583
3584         maint: correct misuse of "a" and "an"
3585         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3586         * lib/argp-help.c: "an docum...": s/an/a/
3587         * lib/argp-parse.c: "An vector": s/An/A/
3588         * lib/execute.c: "an native": s/an/a/
3589         * lib/spawn-pipe.c: Likewise.
3590         * lib/gc.h: "an Gc_rc": s/an/a/
3591         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3592         * lib/fts.c: "an stat.st_dev": s/an/a/
3593
3594 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3595
3596         intprops-tests: work around HP-UX 11.23 cc bug with constants
3597         * tests/test-intprops.c (VERIFY): New macro.
3598         (main): Use it, instead of verify, to work around the compiler bug; see
3599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3600
3601         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3602         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3603         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3604         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3605         (_GL_REMAINDER_OVERFLOW): Use it.
3606
3607         intprops-tests: revert unsigned part of previous change
3608         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3609         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3610         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3612
3613 2011-05-19  Bruno Haible  <bruno@clisp.org>
3614
3615         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3616         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3617         strerror_r() returned without filling the buffer.
3618         Reported by Eric Blake.
3619
3620 2011-05-19  Eric Blake  <eblake@redhat.com>
3621
3622         strerror_r: guarantee unchanged errno
3623         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3624         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3625         failure.
3626         * tests/test-strerror_r.c (main): Enhance test.
3627
3628 2011-05-19  Bruno Haible  <bruno@clisp.org>
3629
3630         strerror_r: Reorder #if blocks.
3631         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3632         for consistency with the previous commit.
3633
3634 2011-05-19  Bruno Haible  <bruno@clisp.org>
3635
3636         perror: Avoid clobbering the strerror buffer when possible.
3637         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3638         * lib/strerror.c: Include it.
3639         * modules/strerror (Files): Add lib/strerror-impl.h.
3640         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3641         (my_strerror): New function, defined through lib/strerror-impl.h.
3642         (perror): Use it instead of strerror.
3643         * modules/perror (Files): Add lib/strerror-impl.h.
3644         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3645
3646 2011-05-19  Eric Blake  <eblake@redhat.com>
3647
3648         strerror_r: fix on newer cygwin
3649         * lib/strerror_r.c (strerror_r): Cygwin now has
3650         __xpg_strerror_r, use it.
3651
3652 2011-05-19  Bruno Haible  <bruno@clisp.org>
3653
3654         strerror_r: Avoid clobbering the strerror buffer when possible.
3655         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3656         (sys_nerr, sys_errlist): New declarations.
3657         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3658         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3659         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3660
3661 2011-05-19  Bruno Haible  <bruno@clisp.org>
3662
3663         strerror_r: Fix test failure on mingw.
3664         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3665         EXTEND_STRERROR_R.
3666         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3667         macros from errno.in.h instead.
3668
3669 2011-05-19  Eric Blake  <eblake@redhat.com>
3670
3671         strerror: relax test for Solaris
3672         * tests/test-strerror.c (main): Permit Solaris behavior.
3673         * tests/test-strerror_r.c (main): Likewise.
3674
3675         strerror: enforce POSIX ruling on strerror(0)
3676         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3677         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3678         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3679         * doc/posix-functions/strerror.texi (strerror): Document it.
3680         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3681         * tests/test-strerror.c (main): Strengthen test.
3682         * tests/test-strerror_r.c (main): Likewise.
3683
3684 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         intprop-tests: port to older and more-pedantic compilers
3687         * modules/intprops-tests (Files): Add tests/macros.h.
3688         * tests/test-intprops.c: Include macros.h.
3689         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3690         it's no longer documented to expand to an integer constant expression.
3691         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3692         argument is floating point, as it's no longer documented to expand
3693         to an integer constant expression in that case.
3694         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3695         compiler bugs reported by Bruno Haible.  See
3696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3697         (U0, U1): New constants, to work around the same bugs.  Also,
3698         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3699
3700         intprops: work around C compiler bugs
3701         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3702         bug in Sun C 5.11 2010/08/13 and other compilers; see
3703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3704
3705         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3706         * doc/intprops.texi (Integer Type Determination): Fix
3707         documentation for TYPE_IS_INTEGER: it returns an constant
3708         expression, not an integer constant expression.  Fix doc for
3709         TYPE_SIGNED: it returns an integer constant expression only if its
3710         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3711         hardly worth documented that way....)
3712
3713 2011-05-18  Bruno Haible  <bruno@clisp.org>
3714
3715         strerror_r: Avoid clobbering the strerror buffer when possible.
3716         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3717         Handle gnulib defined errno values here. When strerror() returns NULL
3718         or an empty string, return EINVAL.
3719         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3720         gnulib defined errno values here.
3721         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3722
3723 2011-05-18  Eric Blake  <eblake@redhat.com>
3724
3725         fnmatch: avoid compiler warning
3726         * lib/fnmatch_loop.c (FCT): Use correct type.
3727         Reported by Matthias Bolte.
3728
3729 2011-05-13  Jim Meyering  <meyering@redhat.com>
3730
3731         maint.mk: three new prohibit_<HDR>_without_use rules
3732         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3733         (sc_prohibit_stdio-safer_without_use): Likewise.
3734         (sc_prohibit_xfreopen_without_use): Likewise.
3735
3736 2011-05-17  Jim Meyering  <meyering@redhat.com>
3737
3738         announce-gen: fail if the NEWS delta is empty
3739         If there's nothing noteworthy in NEWS, then either you forgot
3740         or you shouldn't be releasing.
3741         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3742
3743 2011-05-17  Pádraig Brady <P@draigBrady.com>
3744
3745         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3746         reserved symbols starting with double underscore from the check.
3747
3748 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3749
3750         intprops: add doc
3751         * doc/intprops.texi: New file, documenting intprops.
3752         * doc/gnulib.texi (Particular Modules): Include it.
3753
3754         verify: add doc to gnulib manual and fix example
3755         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3756         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3757         (Compile-time Assertions): Fix example so it can't overflow.
3758
3759 2011-05-17  Jim Meyering  <meyering@redhat.com>
3760
3761         warnings.m4: don't usurp save_CPPFLAGS variable name
3762         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3763
3764         doc: fix typo
3765         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3766
3767 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3768             Bruno Haible  <bruno@clisp.org>
3769
3770         doc: Tweak recent change.
3771         * README (Portability guidelines): Tweak new text.
3772         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3773         Interix 6.1.
3774
3775 2011-05-16  Eric Blake  <eblake@redhat.com>
3776
3777         inttypes: avoid autoconf warning
3778         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3779         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3780
3781 2011-05-16  Sam Steingold <sds@gnu.org>
3782         and Eric Blake  <eblake@redhat.com>
3783
3784         vc-list-files: accept multiple directory operands
3785         * build-aux/vc-list-files: Iterate over all remaining operands.
3786
3787 2011-05-16  Bruno Haible  <bruno@clisp.org>
3788
3789         Fix confusion regarding deprecated modules.
3790         * modules/calloc (Status, Notice): Mark module as deprecated, not
3791         obsolete.
3792         * modules/fnmatch-posix (Status, Notice): Likewise.
3793         * modules/getdate (Status, Notice): Likewise.
3794         * modules/getopt (Status, Notice): Likewise.
3795         * modules/malloc (Status, Notice): Likewise.
3796         * modules/pipe (Status, Notice): Likewise.
3797         * modules/realloc (Status, Notice): Likewise.
3798         * modules/rename-dest-slash (Status, Notice): Likewise.
3799         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3800         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3801         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3802         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3803         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3804
3805 2011-05-16  Bruno Haible  <bruno@clisp.org>
3806
3807         doc: List the target platforms.
3808         * doc/gnulib-intro.texi (Target Platforms): New section.
3809         * doc/gnulib.texi (Introduction): Update menu.
3810         * README (Portability guidelines): Refer to the new section. Update
3811         statement about oldest supported environment. Remove rationale why
3812         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3813         unportable C89 function.
3814         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3815         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3816
3817 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3818
3819         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3820
3821 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3822
3823         intprops-tests: new module
3824         * modules/intprops-tests, tests/test-intprops.c: New files.
3825
3826         intprops: add safe, portable integer overflow checking
3827         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3828         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3829         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3830         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3831         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3832         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3833         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3834         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3835         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3836         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3837         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3838
3839 2011-05-12  James Youngman  <jay@gnu.org>
3840
3841         Add a test for glibc's Bugzilla bug #12378.
3842         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3843         doesn't allow the literal matching of a lone "[" (which is
3844         required by POSIX).
3845         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3846
3847 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3848
3849         Sync glibc change fixing Bugzilla bug #12378.
3850         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3851         beginning and fall back to matching as normal character if the
3852         string ends before the matching ']' is found.  This is what POSIX
3853         requires.
3854
3855 2011-05-13  Eric Blake  <eblake@redhat.com>
3856
3857         getcwd-lgpl: relax test for FreeBSD
3858         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3859         issue.
3860         * tests/test-getcwd-lgpl.c (main): Relax test.
3861         Reported by Matthias Bolte.
3862
3863 2011-05-11  Eric Blake  <eblake@redhat.com>
3864
3865         test-fflush: silence compiler warning
3866         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3867
3868 2011-05-11  Bruno Haible  <bruno@clisp.org>
3869
3870         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3871         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3872         * modules/canonicalize (Depends-on): Add 'nocrash'.
3873         * modules/canonicalize-lgpl (Depends-on): Likewise.
3874         * doc/posix-functions/realpath.texi: Update platforms list.
3875         Reported by Ryan Schmidt <ryandesign@macports.org>.
3876
3877 2011-05-11  Bruno Haible  <bruno@clisp.org>
3878
3879         group-member: Declare function in <unistd.h>.
3880         * lib/unistd.in.h (group_member): New declaration.
3881         * lib/group-member.h: Remove file.
3882         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3883         * tests/test-unistd-c++.cc: Check signature of group_member.
3884         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3885         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3886         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3887         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3888         HAVE_GROUP_MEMBER.
3889         * modules/group-member (Files): Remove lib/group-member.h.
3890         (Depends-on): Add unistd. Specify conditions.
3891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3892         (Include): Change to <unistd.h>.
3893         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3894         HAVE_GROUP_MEMBER.
3895         * NEWS: Mention the change.
3896         * lib/euidaccess.c: Don't include group-member.h.
3897
3898 2011-05-11  Bruno Haible  <bruno@clisp.org>
3899
3900         group-member: Document module.
3901         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3902         module.
3903
3904 2011-05-11  Bruno Haible  <bruno@clisp.org>
3905
3906         fclose: Fix mistake earlier today.
3907         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3908
3909 2011-05-11  Eric Blake  <eblake@redhat.com>
3910
3911         fclose: preserve fflush errors
3912         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3913         Reported by Jim Meyering.
3914
3915         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3916         * build-aux/bootstrap (check_versions): When no specific version
3917         is required, merely check that the app produces an exit status
3918         that indicates its existence.
3919
3920         maint.mk: drop redundant check
3921         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3922         the same but better.
3923
3924 2011-05-11  Bruno Haible  <bruno@clisp.org>
3925
3926         fclose: Fix possible link error.
3927         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3928         unregister_shadow_fd. Improve comments.
3929         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3930         Eric Blake.
3931
3932 2011-05-11  Jim Meyering  <meyering@redhat.com>
3933
3934         maint.mk: improve "can not" detection and generalize rule name
3935         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3936         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3937         Use the same technique as in sc_prohibit_doubled_word, so that
3938         we recognize "can not" also when the words are separated by a newline.
3939         Suggested by Eric Blake.
3940         (perl_filename_lineno_text_): Define.  Factored out of...
3941         (prohibit_doubled_word_): ...here.  Use the new definition.
3942         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3943         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3944         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3945
3946 2011-05-10  Eric Blake  <eblake@redhat.com>
3947
3948         fclose: avoid double close race when possible
3949         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3950         all but WINDOWS_SOCKETS.
3951
3952 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3953
3954         openat: correct new comment
3955         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3956
3957 2011-05-10  Jim Meyering  <meyering@redhat.com>
3958
3959         openat: add comments
3960         * lib/openat-proc.c (openat_proc_name): Add comments,
3961         mostly from Eric Blake.
3962
3963 2011-05-09  Eric Blake  <eblake@redhat.com>
3964
3965         openat: reduce syscalls in first probe of /proc
3966         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3967         be a directory.  Simplify the probe for .. bugs.
3968         * modules/openat (Depends-on): Drop same-inode.
3969         Reported by Bastien ROUCARIES.
3970
3971 2011-05-09  Jim Meyering  <meyering@redhat.com>
3972
3973         maint.mk: change semantics/name of tight_scope variables
3974         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3975         Rename variables to align with semantics that make them more useful.
3976
3977         maint.mk: tweak new rule's name not to impinge
3978         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3979         (sc_tight_scope): Use new rule name rather than $@-0.
3980
3981         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3982         * top/maint.mk (sc_tight_scope): New rule.
3983         (sc_tight_scope-0): New rule, ifdef'd out.
3984         (_gl_TS_dir): Default.
3985         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3986         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3987
3988 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3989
3990         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3991         Haible <bruno@clisp.org>.
3992
3993 2011-05-08  Bruno Haible  <bruno@clisp.org>
3994
3995         Comments.
3996         * m4/isnanf.m4: Add comment.
3997         * m4/isnanl.m4: Likewise.
3998
3999 2011-05-08  Bruno Haible  <bruno@clisp.org>
4000
4001         glob: Remove obsolete macro.
4002         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4003
4004 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4005
4006         intprops: Sun C 5.11 supports __typeof__
4007         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4008         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4009         which is new.
4010         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4011
4012         intprops: switch to usual gnulib indenting and naming
4013         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4014         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4015
4016         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4017
4018 2011-05-08  Jim Meyering  <meyering@redhat.com>
4019
4020         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4021         * top/maint.mk (release-prep): Use make's --no-print-directory
4022         option when generating the announcement.  This eliminates the
4023         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4024         generated announcement template.
4025
4026 2011-05-08  Bruno Haible  <bruno@clisp.org>
4027
4028         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4029         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4030         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4031
4032 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         ignore-value, verify: Omit include files from lib_SOURCES.
4035         * modules/ignore-value, modules/verify (Makefile.am):
4036         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4037         that leads Automake to duplicate use of am__objects_... variables
4038         in Makefile.in.  See
4039         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4040
4041 2011-05-07  Bruno Haible  <bruno@clisp.org>
4042
4043         fclose: Simplify autoconf macro.
4044         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4045         defined.
4046
4047 2011-05-07  Bruno Haible  <bruno@clisp.org>
4048
4049         canonicalize-lgpl: Fix autoconf macro ordering bug.
4050         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4051         gl_STDLIB_H_DEFAULTS.
4052
4053 2011-05-06  Eric Blake  <eblake@redhat.com>
4054
4055         maintainer-makefile: make sc_po_check easier to tune
4056         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4057         to probe for strings, such as an alternate location for gnulib.
4058
4059         fclose: guarantee behavior on seekable stdin
4060         * modules/fclose (Depends-on): Add fflush.
4061         * doc/posix-functions/fclose.texi (fclose): Document this.
4062         * tests/test-fclose.c (main): Make test for this unconditional.
4063
4064 2011-05-06  Bruno Haible  <bruno@clisp.org>
4065
4066         fflush, fpurge: Relicense under LGPLv2+.
4067         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4068         * modules/fpurge (License): Likewise.
4069         With permission from Eric Blake and Jim Meyering.
4070         Suggested by Eric Blake.
4071
4072 2011-05-06  Karl Berry  <karl@gnu.org>
4073
4074         * MODULES.html.sh (func_all_modules): remove exit.
4075
4076 2011-05-06  Jim Meyering  <meyering@redhat.com>
4077
4078         maint.mk: use info-gnu@ as the default only for a stable release
4079         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4080         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4081         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4083
4084 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4085
4086         assert-h: new module, which supports C1X-style static_assert
4087         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4088         * lib/verify.h: Revamp so that this can be copied into assert.h,
4089         while retaining the ability to use it standalone as before.
4090         Rename private identifiers so as not to encroach on the
4091         standard C namespace, since this is now used by assert.h.
4092         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4093         the old verify_true.
4094         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4095         the old verify_true.  Use _GL_VERIFY_TYPE.
4096         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4097         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4098         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4099         defined when this file is copied into the replacement assert.h.
4100         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4101         and _Static_assert is not built in.
4102         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4103         defined, and use the new macros mentioned above.
4104         * doc/posix-headers/assert.texi: Document this.
4105
4106 2011-05-05  Bruno Haible  <bruno@clisp.org>
4107
4108         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4109         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4110         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4111         gl_REPLACE_FCLOSE here.
4112         * modules/fflush (Depends-on): Remove fclose.
4113         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4114         combination with module 'fclose'.
4115
4116 2011-05-05  Bruno Haible  <bruno@clisp.org>
4117
4118         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4119         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4120         gl_FUNC_FFLUSH.
4121         (gl_FUNC_FFLUSH): Use it.
4122         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4124         gl_REPLACE_FSEEKO here.
4125
4126 2011-05-05  Bruno Haible  <bruno@clisp.org>
4127
4128         tzset: Relicense under LGPL.
4129         * modules/tzset (License): Change to LGPL.
4130         No agreement needed; it's a no-op.
4131
4132         strtoimax, strtoumax: Relicense under LGPL.
4133         * modules/strtoimax (License): Change to LGPL.
4134         * modules/strtoumax (License): Likewise.
4135         With permission from Jim Meyering, Paul Eggert:
4136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4138
4139         getgroups: Relicense under LGPL.
4140         * modules/getgroups (License): Change to LGPL.
4141         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4145
4146         nanosleep: Relicense under LGPL.
4147         * modules/nanosleep (License): Change to LGPL.
4148         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4149         Haible:
4150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4154
4155         futimens: Relicense under LGPL.
4156         * modules/futimens (License): Change to LGPL.
4157         With permission from Eric Blake:
4158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4159
4160         fflush: Relicense under LGPL.
4161         * modules/fflush (License): Change to LGPL.
4162         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4166
4167         tmpfile: Relicense under LGPL.
4168         * modules/tmpfile (License): Change to LGPL.
4169         With permission from Ben Pfaff:
4170         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4171
4172         isfinite: Relicense under LGPL.
4173         * modules/isfinite (License): Change to LGPL.
4174         With permission from Ben Pfaff, Bruno Haible:
4175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4177
4178         acosl..tanl: Relicense under LGPL.
4179         * modules/acosl (License): Change to LGPL.
4180         * modules/asinl (License): Likewise.
4181         * modules/atanl (License): Likewise.
4182         * modules/cosl (License): Likewise.
4183         * modules/expl (License): Likewise.
4184         * modules/logl (License): Likewise.
4185         * modules/sinl (License): Likewise.
4186         * modules/sqrtl (License): Likewise.
4187         * modules/tanl (License): Likewise.
4188         Source code originally from glibc and Paolo Bonzini. Agreements:
4189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4191
4192 2011-05-05  Bruno Haible  <bruno@clisp.org>
4193
4194         signal: Define sighandler_t.
4195         * lib/signal.in.h (sighandler_t): New type.
4196         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4197         whether sighandler_t is defined.
4198         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4199         * modules/signal (Depends-on): Add extensions.
4200         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4201         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4202         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4203
4204 2011-05-05  Eric Blake  <eblake@redhat.com>
4205
4206         maint: remove useless REPLACE_*_H macros
4207         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4208         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4209         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4210         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4211         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4212         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4213         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4214         * m4/btowc.m4: Update callers.
4215         * m4/dirfd.m4: Likewise.
4216         * m4/duplocale.m4: Likewise.
4217         * m4/fchdir.m4: Likewise.
4218         * m4/fdopendir.m4: Likewise.
4219         * m4/inet_ntop.m4: Likewise.
4220         * m4/inet_pton.m4: Likewise.
4221         * m4/ioctl.m4: Likewise.
4222         * m4/mbrlen.m4: Likewise.
4223         * m4/mbrtowc.m4: Likewise.
4224         * m4/mbsinit.m4: Likewise.
4225         * m4/mbsnrtowcs.m4: Likewise.
4226         * m4/mbsrtowcs.m4: Likewise.
4227         * m4/poll.m4: Likewise.
4228         * m4/setlocale.m4: Likewise.
4229         * m4/wcrtomb.m4: Likewise.
4230         * m4/wcsnrtombs.m4: Likewise.
4231         * m4/wcsrtombs.m4: Likewise.
4232         * m4/wctob.m4: Likewise.
4233         * m4/wcwidth.m4: Likewise.
4234         * modules/posix_spawn: Likewise.
4235         * modules/posix_spawn_file_actions_addclose: Likewise.
4236         * modules/posix_spawn_file_actions_adddup2: Likewise.
4237         * modules/posix_spawn_file_actions_addopen: Likewise.
4238         * modules/posix_spawn_file_actions_destroy: Likewise.
4239         * modules/posix_spawn_file_actions_init: Likewise.
4240         * modules/posix_spawnattr_destroy: Likewise.
4241         * modules/posix_spawnattr_getflags: Likewise.
4242         * modules/posix_spawnattr_getpgroup: Likewise.
4243         * modules/posix_spawnattr_getschedparam: Likewise.
4244         * modules/posix_spawnattr_getschedpolicy: Likewise.
4245         * modules/posix_spawnattr_getsigdefault: Likewise.
4246         * modules/posix_spawnattr_getsigmask: Likewise.
4247         * modules/posix_spawnattr_init: Likewise.
4248         * modules/posix_spawnattr_setflags: Likewise.
4249         * modules/posix_spawnattr_setpgroup: Likewise.
4250         * modules/posix_spawnattr_setschedparam: Likewise.
4251         * modules/posix_spawnattr_setschedpolicy: Likewise.
4252         * modules/posix_spawnattr_setsigdefault: Likewise.
4253         * modules/posix_spawnattr_setsigmask: Likewise.
4254         * modules/posix_spawnp: Likewise.
4255
4256 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4257
4258         Add option to do-release-commit-and-tag to specify branch.
4259         * build-aux/do-release-commit-and-tag: Add --branch.
4260
4261 2011-05-03  Bruno Haible  <bruno@clisp.org>
4262
4263         Avoid unnecessary compilation units, through conditional dependencies.
4264         * modules/accept (Depends-on): Add conditions to the dependencies.
4265         * modules/acosl (Depends-on): Likewise.
4266         * modules/argz (Depends-on): Likewise.
4267         * modules/asinl (Depends-on): Likewise.
4268         * modules/atanl (Depends-on): Likewise.
4269         * modules/atoll (Depends-on): Likewise.
4270         * modules/bind (Depends-on): Likewise.
4271         * modules/btowc (Depends-on): Likewise.
4272         * modules/canonicalize-lgpl (Depends-on): Likewise.
4273         * modules/ceil (Depends-on): Likewise.
4274         * modules/ceilf (Depends-on): Likewise.
4275         * modules/ceill (Depends-on): Likewise.
4276         * modules/chdir-long (Depends-on): Likewise.
4277         * modules/chown (Depends-on): Likewise.
4278         * modules/close (Depends-on): Likewise.
4279         * modules/connect (Depends-on): Likewise.
4280         * modules/cosl (Depends-on): Likewise.
4281         * modules/dirfd (Depends-on): Likewise.
4282         * modules/dprintf (Depends-on): Likewise.
4283         * modules/dprintf-posix (Depends-on): Likewise.
4284         * modules/error (Depends-on): Likewise.
4285         * modules/euidaccess (Depends-on): Likewise.
4286         * modules/expl (Depends-on): Likewise.
4287         * modules/faccessat (Depends-on): Likewise.
4288         * modules/fchdir (Depends-on): Likewise.
4289         * modules/fclose (Depends-on): Likewise.
4290         * modules/fcntl (Depends-on): Likewise.
4291         * modules/fdopendir (Depends-on): Likewise.
4292         * modules/fflush (Depends-on): Likewise.
4293         * modules/floor (Depends-on): Likewise.
4294         * modules/floorf (Depends-on): Likewise.
4295         * modules/floorl (Depends-on): Likewise.
4296         * modules/fnmatch (Depends-on): Likewise.
4297         * modules/fopen (Depends-on): Likewise.
4298         * modules/fprintf-posix (Depends-on): Likewise.
4299         * modules/frexp (Depends-on): Likewise.
4300         * modules/frexp-nolibm (Depends-on): Likewise.
4301         * modules/frexpl (Depends-on): Likewise.
4302         * modules/frexpl-nolibm (Depends-on): Likewise.
4303         * modules/fseek (Depends-on): Likewise.
4304         * modules/fsusage (Depends-on): Likewise.
4305         * modules/ftell (Depends-on): Likewise.
4306         * modules/ftello (Depends-on): Likewise.
4307         * modules/futimens (Depends-on): Likewise.
4308         * modules/getcwd (Depends-on): Likewise.
4309         * modules/getcwd-lgpl (Depends-on): Likewise.
4310         * modules/getdelim (Depends-on): Likewise.
4311         * modules/getdomainname (Depends-on): Likewise.
4312         * modules/getgroups (Depends-on): Likewise.
4313         * modules/gethostname (Depends-on): Likewise.
4314         * modules/getline (Depends-on): Likewise.
4315         * modules/getlogin_r (Depends-on): Likewise.
4316         * modules/getopt-posix (Depends-on): Likewise.
4317         * modules/getpeername (Depends-on): Likewise.
4318         * modules/getsockname (Depends-on): Likewise.
4319         * modules/getsockopt (Depends-on): Likewise.
4320         * modules/getsubopt (Depends-on): Likewise.
4321         * modules/getusershell (Depends-on): Likewise.
4322         * modules/glob (Depends-on): Likewise.
4323         * modules/grantpt (Depends-on): Likewise.
4324         * modules/iconv_open (Depends-on): Likewise.
4325         * modules/iconv_open-utf (Depends-on): Likewise.
4326         * modules/inet_ntop (Depends-on): Likewise.
4327         * modules/inet_pton (Depends-on): Likewise.
4328         * modules/ioctl (Depends-on): Likewise.
4329         * modules/isapipe (Depends-on): Likewise.
4330         * modules/isfinite (Depends-on): Likewise.
4331         * modules/isinf (Depends-on): Likewise.
4332         * modules/lchown (Depends-on): Likewise.
4333         * modules/ldexpl (Depends-on): Likewise.
4334         * modules/link (Depends-on): Likewise.
4335         * modules/linkat (Depends-on): Likewise.
4336         * modules/listen (Depends-on): Likewise.
4337         * modules/logl (Depends-on): Likewise.
4338         * modules/lstat (Depends-on): Likewise.
4339         * modules/mbrlen (Depends-on): Likewise.
4340         * modules/mbrtowc (Depends-on): Likewise.
4341         * modules/mbsinit (Depends-on): Likewise.
4342         * modules/mbsnrtowcs (Depends-on): Likewise.
4343         * modules/mbsrtowcs (Depends-on): Likewise.
4344         * modules/mbtowc (Depends-on): Likewise.
4345         * modules/memcmp (Depends-on): Likewise.
4346         * modules/mkdir (Depends-on): Likewise.
4347         * modules/mkdtemp (Depends-on): Likewise.
4348         * modules/mkfifo (Depends-on): Likewise.
4349         * modules/mkfifoat (Depends-on): Likewise.
4350         * modules/mknod (Depends-on): Likewise.
4351         * modules/mkostemp (Depends-on): Likewise.
4352         * modules/mkostemps (Depends-on): Likewise.
4353         * modules/mkstemp (Depends-on): Likewise.
4354         * modules/mkstemps (Depends-on): Likewise.
4355         * modules/mktime (Depends-on): Likewise.
4356         * modules/nanosleep (Depends-on): Likewise.
4357         * modules/open (Depends-on): Likewise.
4358         * modules/openat (Depends-on): Likewise.
4359         * modules/perror (Depends-on): Likewise.
4360         * modules/poll (Depends-on): Likewise.
4361         * modules/popen (Depends-on): Likewise.
4362         * modules/posix_spawn (Depends-on): Likewise.
4363         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4364         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4365         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4366         * modules/posix_spawnp (Depends-on): Likewise.
4367         * modules/pread (Depends-on): Likewise.
4368         * modules/printf-posix (Depends-on): Likewise.
4369         * modules/ptsname (Depends-on): Likewise.
4370         * modules/putenv (Depends-on): Likewise.
4371         * modules/pwrite (Depends-on): Likewise.
4372         * modules/readline (Depends-on): Likewise.
4373         * modules/readlink (Depends-on): Likewise.
4374         * modules/readlinkat (Depends-on): Likewise.
4375         * modules/recv (Depends-on): Likewise.
4376         * modules/recvfrom (Depends-on): Likewise.
4377         * modules/regex (Depends-on): Likewise.
4378         * modules/remove (Depends-on): Likewise.
4379         * modules/rename (Depends-on): Likewise.
4380         * modules/renameat (Depends-on): Likewise.
4381         * modules/rmdir (Depends-on): Likewise.
4382         * modules/round (Depends-on): Likewise.
4383         * modules/roundf (Depends-on): Likewise.
4384         * modules/roundl (Depends-on): Likewise.
4385         * modules/rpmatch (Depends-on): Likewise.
4386         * modules/select (Depends-on): Likewise.
4387         * modules/send (Depends-on): Likewise.
4388         * modules/sendto (Depends-on): Likewise.
4389         * modules/setenv (Depends-on): Likewise.
4390         * modules/setlocale (Depends-on): Likewise.
4391         * modules/setsockopt (Depends-on): Likewise.
4392         * modules/shutdown (Depends-on): Likewise.
4393         * modules/sigaction (Depends-on): Likewise.
4394         * modules/signbit (Depends-on): Likewise.
4395         * modules/sigprocmask (Depends-on): Likewise.
4396         * modules/sinl (Depends-on): Likewise.
4397         * modules/sleep (Depends-on): Likewise.
4398         * modules/snprintf (Depends-on): Likewise.
4399         * modules/snprintf-posix (Depends-on): Likewise.
4400         * modules/socket (Depends-on): Likewise.
4401         * modules/sprintf-posix (Depends-on): Likewise.
4402         * modules/sqrtl (Depends-on): Likewise.
4403         * modules/stat (Depends-on): Likewise.
4404         * modules/strchrnul (Depends-on): Likewise.
4405         * modules/strdup-posix (Depends-on): Likewise.
4406         * modules/strerror (Depends-on): Likewise.
4407         * modules/strerror_r-posix (Depends-on): Likewise.
4408         * modules/strndup (Depends-on): Likewise.
4409         * modules/strnlen (Depends-on): Likewise.
4410         * modules/strptime (Depends-on): Likewise.
4411         * modules/strsep (Depends-on): Likewise.
4412         * modules/strsignal (Depends-on): Likewise.
4413         * modules/strstr-simple (Depends-on): Likewise.
4414         * modules/strtod (Depends-on): Likewise.
4415         * modules/strtoimax (Depends-on): Likewise.
4416         * modules/strtok_r (Depends-on): Likewise.
4417         * modules/strtoumax (Depends-on): Likewise.
4418         * modules/symlink (Depends-on): Likewise.
4419         * modules/symlinkat (Depends-on): Likewise.
4420         * modules/tanl (Depends-on): Likewise.
4421         * modules/tcgetsid (Depends-on): Likewise.
4422         * modules/tmpfile (Depends-on): Likewise.
4423         * modules/trunc (Depends-on): Likewise.
4424         * modules/truncf (Depends-on): Likewise.
4425         * modules/truncl (Depends-on): Likewise.
4426         * modules/uname (Depends-on): Likewise.
4427         * modules/unlink (Depends-on): Likewise.
4428         * modules/unlockpt (Depends-on): Likewise.
4429         * modules/unsetenv (Depends-on): Likewise.
4430         * modules/usleep (Depends-on): Likewise.
4431         * modules/utimensat (Depends-on): Likewise.
4432         * modules/vasprintf (Depends-on): Likewise.
4433         * modules/vdprintf (Depends-on): Likewise.
4434         * modules/vdprintf-posix (Depends-on): Likewise.
4435         * modules/vfprintf-posix (Depends-on): Likewise.
4436         * modules/vprintf-posix (Depends-on): Likewise.
4437         * modules/vsnprintf (Depends-on): Likewise.
4438         * modules/vsnprintf-posix (Depends-on): Likewise.
4439         * modules/vsprintf-posix (Depends-on): Likewise.
4440         * modules/wcrtomb (Depends-on): Likewise.
4441         * modules/wcscasecmp (Depends-on): Likewise.
4442         * modules/wcscspn (Depends-on): Likewise.
4443         * modules/wcsdup (Depends-on): Likewise.
4444         * modules/wcsncasecmp (Depends-on): Likewise.
4445         * modules/wcsnrtombs (Depends-on): Likewise.
4446         * modules/wcspbrk (Depends-on): Likewise.
4447         * modules/wcsrtombs (Depends-on): Likewise.
4448         * modules/wcsspn (Depends-on): Likewise.
4449         * modules/wcsstr (Depends-on): Likewise.
4450         * modules/wcstok (Depends-on): Likewise.
4451         * modules/wcswidth (Depends-on): Likewise.
4452         * modules/wctob (Depends-on): Likewise.
4453         * modules/wctomb (Depends-on): Likewise.
4454         * modules/wctype (Depends-on): Likewise.
4455         * modules/wcwidth (Depends-on): Likewise.
4456         * modules/write (Depends-on): Likewise.
4457
4458 2011-05-03  Bruno Haible  <bruno@clisp.org>
4459
4460         Support for conditional dependencies.
4461         * doc/gnulib.texi (Module description): Document the syntax of
4462         conditional dependencies.
4463         * gnulib-tool: New option --conditional-dependencies.
4464         (func_usage): Document it.
4465         (cond_dependencies): New variable.
4466         (func_get_automake_snippet_conditional,
4467         func_get_automake_snippet_unconditional): New functions, extracted from
4468         func_get_automake_snippet.
4469         (func_get_automake_snippet): Use them.
4470         (sed_first_32_chars): New variable.
4471         (func_module_shellfunc_name): New function.
4472         (func_module_shellvar_name): New function.
4473         (func_module_conditional_name): New function.
4474         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4475         func_cond_module_condition): New functions.
4476         (func_modules_transitive_closure): Add support for conditional
4477         dependencies.
4478         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4479         conditional automake snippet in an automake conditional.
4480         (func_emit_autoconf_snippets): Emit shell functions that contain the
4481         code for conditional modules.
4482         (func_import, func_create_testdir): Update specification.
4483
4484 2011-05-03  Eric Blake  <eblake@redhat.com>
4485
4486         test-getaddrinfo: report error information
4487         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4488
4489 2011-05-03  Jim Meyering  <meyering@redhat.com>
4490
4491         bootstrap: avoid build failure when $GZIP is set
4492         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4493         program name.  If defined at all, it is supposed to list gzip options.
4494         Reported by Alan Curry in http://debbugs.gnu.org/8609
4495
4496 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4497
4498         readme-release: new module with release instructions
4499         * modules/readme-release: New module.
4500         * top/README-release: New file, from coreutils, grep, diffutils.
4501         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4502
4503 2011-05-02  Eric Blake  <eblake@redhat.com>
4504
4505         fflush: also replace fclose when fixing fflush
4506         * modules/fflush (Depends-on): Add fclose.
4507         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4508         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4509         memstreams with no backing fd.
4510         * doc/posix-functions/fclose.texi (fclose): Document the use of
4511         fflush module to fix the bug.
4512         * tests/test-fclose.c (main): Relax test when fclose is used in
4513         isolation.
4514
4515         fclose: add some tests
4516         * modules/fclose-tests: New test module.
4517         * tests/test-fclose.c: New file.
4518         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4519
4520         fclose: reduced dependencies
4521         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4522         simpler lseek.
4523         * lib/fclose.c (rpl_fclose): Likewise.
4524         Reported by Simon Josefsson.
4525
4526         exit: drop remaining clients
4527         * modules/argmatch (Depends-on): Replace exit with stdlib.
4528         * modules/copy-file (Depends-on): Likewise.
4529         * modules/execute (Depends-on): Likewise.
4530         * modules/exitfail (Depends-on): Likewise.
4531         * modules/obstack (Depends-on): Likewise.
4532         * modules/pagealign_alloc (Depends-on): Likewise.
4533         * modules/pipe-filter-gi (Depends-on): Likewise.
4534         * modules/pipe-filter-ii (Depends-on): Likewise.
4535         * modules/savewd (Depends-on): Likewise.
4536         * modules/spawn-pipe (Depends-on): Likewise.
4537         * modules/wait-process (Depends-on): Likewise.
4538         * modules/xsetenv (Depends-on): Likewise.
4539         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4540         * modules/git-merge-changelog (Depends-on): Likewise.
4541         * modules/long-options (Depends-on): Likewise.
4542         * modules/pt_chown (Depends-on): Likewise.
4543         * modules/sysexits (Depends-on): Likewise.
4544
4545         freading: relax license from LGPLv3+ to LGPLv2+
4546         * modules/freading (License): Relax LGPL version.
4547
4548 2011-05-02  Bruno Haible  <bruno@clisp.org>
4549
4550         fchdir: Remove unused dependencies.
4551         * modules/fchdir (Depends-on): Remove include_next.
4552
4553 2011-05-02  Bruno Haible  <bruno@clisp.org>
4554
4555         gnulib-tool: Refactor.
4556         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4557         from func_emit_autoconf_snippets.
4558         (func_emit_autoconf_snippets): Use it.
4559
4560 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4561
4562         * NEWS: Document removal of 'exit'.
4563         * modules/exit: Remove file.
4564
4565 2011-05-01  Bruno Haible  <bruno@clisp.org>
4566
4567         Update DEPENDENCIES.
4568         * DEPENDENCIES (gettext): Recommend the newest release.
4569         Reported by Simon Josefsson.
4570
4571 2011-05-01  Bruno Haible  <bruno@clisp.org>
4572
4573         gnulib-tool: Reduce code duplication.
4574         * gnulib-tool (func_emit_autoconf_snippets): New function.
4575         (func_import, func_create_testdir): Use it.
4576
4577 2011-04-30  Eric Blake  <eblake@redhat.com>
4578
4579         fclose: don't fail on non-seekable input stream
4580         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4581         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4582         since fflush is allowed to fail in that case.
4583
4584 2011-04-30  Bruno Haible  <bruno@clisp.org>
4585
4586         dup3: cleanup
4587         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4588
4589 2011-04-30  Bruno Haible  <bruno@clisp.org>
4590
4591         netdb: Make it work in C++ mode.
4592         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4593         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4594         module.
4595         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4596         gl_MODULE_INDICATOR_FOR_TESTS.
4597         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4598         * modules/netdb-c++-tests: New file.
4599         * tests/test-netdb-c++.cc: New file.
4600
4601 2011-04-30  Bruno Haible  <bruno@clisp.org>
4602
4603         New modules 'vfscanf', 'vscanf'.
4604         * modules/vfscanf: New file.
4605         * modules/vscanf: New file.
4606         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4607         here.
4608         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4609         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4610
4611 2011-04-30  Bruno Haible  <bruno@clisp.org>
4612
4613         passfd: Add comments.
4614         * lib/passfd.c: Add comments about platforms.
4615
4616 2011-04-30  Bruno Haible  <bruno@clisp.org>
4617
4618         sys_uio: Make <sys/uio.h> self-contained.
4619         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4620         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4621
4622 2011-04-30  Bruno Haible  <bruno@clisp.org>
4623
4624         sys_socket: Ensure 'struct iovec' definition.
4625         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4626         <sys/socket.h>.
4627         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4628
4629 2011-04-30  Bruno Haible  <bruno@clisp.org>
4630
4631         sys_uio: Protect definition of 'struct iovec'.
4632         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4633         it as a C struct.
4634
4635 2011-04-30  Bruno Haible  <bruno@clisp.org>
4636
4637         manywarnings: fix indentation
4638         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4639
4640 2011-04-30  Pádraig Brady <P@draigBrady.com>
4641
4642         manywarnings: add -Wno-missing-field-initializers if needed.
4643         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4644         option if it's needed to allow initialization with { 0, }
4645
4646 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4647
4648         announce-gen: cosmetic improvement
4649         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4650
4651 2011-04-29  Jim Meyering  <meyering@redhat.com>
4652
4653         vc-list-files: indent with spaces, not TABs
4654         * build-aux/vc-list-files: Convert leading TABs to spaces,
4655         to match the style of most other files in gnulib.
4656
4657         announce-gen: indent with spaces, not TABs
4658         * build-aux/announce-gen: Convert all TABs to spaces, to match
4659         the style of most other files in gnulib.
4660
4661 2011-04-29  Eric Blake  <eblake@redhat.com>
4662
4663         quotearg: avoid uninitialized variable use
4664         * lib/quotearg.c (quoting_options_from_style): Initialize
4665         remaining fields, and ensure that custom styles are only used via
4666         quoting_options rather than quoting_style.
4667
4668 2011-04-29  Jim Meyering  <meyering@redhat.com>
4669
4670         maint.mk: remove unused VC-tag variable
4671         * top/maint.mk (VC-tag): Remove unused variable.
4672
4673 2011-04-29  Bruno Haible  <bruno@clisp.org>
4674
4675         netdb: fix gai_strerror replacements
4676         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4677         * modules/netdb: Substitute it.
4678
4679 2011-04-29  Jim Meyering  <meyering@redhat.com>
4680
4681         test-getcwd.c: avoid new set-but-not-used warning
4682         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4683         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4684         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4685         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4686
4687         test-hash.c: avoid a new shadowing warning
4688         * tests/test-hash.c (main): Don't shadow "dup".
4689
4690 2011-04-28  Eric Blake  <eblake@redhat.com>
4691
4692         getaddrinfo: fix gai_strerror signature
4693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4694         and work around mingw with UNICODE defined.
4695         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4696         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4697         * modules/netdb (Makefile.am): Substitute it.
4698         * lib/netdb.in.h (gai_strerror): Declare replacement.
4699         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4700         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4701         the fix.
4702
4703         getsockopt: avoid compiler warning
4704         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4705         Reported by Matthias Bolte.
4706
4707         tests: drop unused link dependency
4708         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4709         * modules/dirent-safer-tests (Makefile.am): Likewise.
4710         * modules/fdopendir-tests (Makefile.am): Likewise.
4711         * modules/mkfifoat-tests (Makefile.am): Likewise.
4712         * modules/openat-safer-tests (Makefile.am): Likewise.
4713         * modules/openat-tests (Makefile.am): Likewise.
4714         * modules/readlinkat-tests (Makefile.am): Likewise.
4715         * modules/symlinkat-tests (Makefile.am): Likewise.
4716         * modules/linkat-tests (Makefile.am): Likewise.
4717         (Depends-on): Switch to filenamecat-lgpl.
4718         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4719         LIBINTL.
4720         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4721         * tests/test-linkat.c (main): Don't require xalloc.
4722
4723         hash, mgetgroups: drop xalloc dependency
4724         * lib/hash.c (includes): Adjust includes.
4725         * lib/mgetgroups.c (includes): Likewise.
4726         (xgetgroups): Move...
4727         * lib/xgetgroups.c: ...to new file.
4728         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4729         * modules/xgetgroups: New file, split from...
4730         * modules/mgetgroups: ...here.
4731         (Depends-on): Add xalloc-oversized.
4732         * modules/hash (Depends-on): Likewise.
4733         * modules/hash-tests (Depends-on): Drop xalloc.
4734         (test_hash_LDADD): Drop unused library.
4735         * tests/test-hash.c (main): Break xalloc dependency.
4736         (includes): Drop unused include.
4737
4738         xalloc-oversized: new module
4739         * modules/xalloc-oversized: New module.
4740         * modules/xalloc (Depends-on): Add it.
4741         * lib/xalloc.h (xalloc_oversized): Move...
4742         * lib/xalloc-oversized.h: ...into new file.
4743
4744         utimecmp: drop dependency on xmalloc
4745         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4746         due to memory pressure.
4747         * modules/utimecmp (Depends-on): Drop xalloc.
4748
4749 2011-04-27  Eric Blake  <eblake@redhat.com>
4750
4751         getcwd: fix mingw bugs
4752         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4753         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4754         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4755
4756 2011-04-27  Bruno Haible  <bruno@clisp.org>
4757
4758         mkstemps: Ensure declaration on MacOS X 10.5.
4759         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4760         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4761         MacOS X.
4762
4763 2011-04-27  Bruno Haible  <bruno@clisp.org>
4764
4765         mkstemp: More documentation.
4766         * doc/posix-functions/mkstemp.texi: Document header file problem on
4767         MacOS X.
4768
4769 2011-04-27  Bruno Haible  <bruno@clisp.org>
4770
4771         mkstemp: Tweak configure message when cross-compiling.
4772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4773         result as a guess.
4774
4775 2011-04-27  Bruno Haible  <bruno@clisp.org>
4776
4777         clean-temp: Clarify what it does.
4778         * lib/clean-temp.h: Add more comments.
4779         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4780         module.
4781         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4782         * doc/glibc-functions/mkstemps.texi: Likewise.
4783         * doc/glibc-functions/mkostemps.texi: Likewise.
4784
4785 2011-04-27  Eric Blake  <eblake@redhat.com>
4786
4787         fchdir: avoid extra chdir and fix test
4788         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4789         getcwd-lgpl.
4790         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4791         have to be canonical.
4792         (canonicalize_file_name): Drop unused macro.
4793         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4794
4795         filenamecat-lgpl: fix licence
4796         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4797         when it was first created.
4798
4799         linkat, renameat: add missing dependency
4800         * modules/linkat (Depends-on): Require getcwd-lgpl.
4801         * modules/renameat (Depends-on): Likewise.
4802
4803         tests: reduce dependencies
4804         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4805         * tests/test-renameat.c (main): Likewise.
4806         * modules/linkat-tests (Depends-on): Relax dependency.
4807         * modules/renameat-tests (Depends-on): Likewise.
4808         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4809         dependency explicit.
4810
4811         save-cwd: reduce default dependency
4812         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4813         * lib/save-cwd.c: Update comments.
4814         * NEWS: Document the semantic change.
4815
4816         getcwd: enhance tests
4817         * tests/test-getcwd-lgpl.c: New file, taken from...
4818         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4819         repeat long path stress tests from m4 probe.
4820         * modules/getcwd-lgpl-tests: New module.
4821         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4822         * m4/getcwd-abort-bug.m4: Update comment.
4823         * m4/getcwd-path-max.m4: Likewise.
4824
4825         getcwd-lgpl: new module
4826         * modules/getcwd-lgpl: New module.
4827         * lib/getcwd-lgpl.c: New file.
4828         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4829         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4830         * modules/getcwd (configure.ac): Set C witness.
4831         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4832
4833         getcwd: tweak comments
4834         * m4/getcwd-abort-bug.m4: Fix comments.
4835         * m4/getcwd-path-max.m4: Likewise.
4836         * m4/getcwd.m4: Likewise.
4837
4838 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4839         and Eric Blake  <eblake@redhat.com>
4840
4841         mkstemp: replace if system version uses wrong permissions
4842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4843         read/write mode bits set in file created by mkstemp.
4844         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4845
4846 2011-04-27  Eric Blake  <eblake@redhat.com>
4847
4848         passfd: avoid compiler warning
4849         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4850         Reported by Laine Stump.
4851
4852 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4853
4854         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4855         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4856
4857 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4858         and Eric Blake  <eblake@redhat.com>
4859
4860         mkstemp: mention clean-temp module
4861         * lib/mkstemp.c: Add comment.
4862         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4863
4864 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         inttypes: also provide default values for 32-bit tests
4867         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4868         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4869
4870 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4871
4872         strtoumax: remove dependency on strtoimax
4873         This is like the strtoull change of yesterday.
4874         * modules/strtoumax (Files): Add lib/strtoimax.c.
4875         (Depends-on): Remove strtoimax and add verify.
4876
4877         inttypes-incomplete: new module
4878         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4879         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4880         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4881         of gl_INTTYPES_H.
4882         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4883         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4884         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4885         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4886         * modules/strtoumax, modules/xstrtol (Depends-on):
4887         Depend on inttypes-incomplete, not inttypes.
4888         * modules/inttypes-incomplete: New module, containing the contents
4889         of the old modules/inttypes module, except that the Files: section
4890         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4891         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4892         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4893         (Depends-on): Depend only on inttypes-incomplete.
4894         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4895
4896         inttypes: omit now-redundant strtoimax and strtoumax work
4897         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4898         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4899
4900         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4901         This supports apps that need pointers to strtoimax and strtoumax,
4902         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4903         nonexistent functions.  See
4904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4905         et seq.
4906         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4907         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4908         a macro.
4909         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4910
4911 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4912
4913         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4914
4915 2011-04-25  Bruno Haible  <bruno@clisp.org>
4916
4917         strtol, strtoul: Mark modules as obsolete.
4918         * modules/strtol (Status, Notice): New sections.
4919         * modules/strtoul (Status, Notice): New sections.
4920
4921 2011-04-25  Bruno Haible  <bruno@clisp.org>
4922
4923         strtod: Remove check for strtod, unless supporting old platforms.
4924         * modules/strtod-obsolete: New file.
4925         * m4/strtod-obsolete.m4: New file.
4926         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4927         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4928         * modules/strtod (Depends-on): Add strtod-obsolete.
4929         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4930
4931 2011-04-25  Bruno Haible  <bruno@clisp.org>
4932
4933         strcase: Make module obsolete.
4934         * modules/strcase (Status, Notice): New sections.
4935
4936 2011-04-25  Bruno Haible  <bruno@clisp.org>
4937
4938         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4939         * modules/dup2-obsolete: New file.
4940         * m4/dup2-obsolete.m4: New file.
4941         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4942         gl_FUNC_DUP2_OBSOLETE is not also defined.
4943         * modules/dup2 (Depends-on): Add dup2-obsolete.
4944         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4945
4946 2011-04-25  Bruno Haible  <bruno@clisp.org>
4947
4948         strnlen: Avoid memchr related link error on old obsolete platforms.
4949         * modules/memchr-obsolete: New file.
4950         * m4/memchr-obsolete.m4: New file.
4951         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4952         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4953         * modules/memchr (Depends-on): Add memchr-obsolete.
4954         * modules/strnlen (Depends-on): Likewise.
4955         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4956
4957 2011-04-25  Jim Meyering  <meyering@redhat.com>
4958
4959         maint.mk: makefile_at_at_check extend and clean up
4960         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4961         in addition to */Makefile.am.
4962         Exempt legitimate uses of @VAR@ notation, e.g.,
4963         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4964         Remove obsolete coreutils-specific comment.
4965         Prompted by discussion here:
4966         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4967
4968 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4969
4970         strtoul: remove dependency on strtol
4971         This is so that 'configure' need not check for strtol merely because
4972         the application needs strtoul.
4973         * modules/strtoul (Files): Add lib/strtol.c.
4974         (Depends-on): Remove strtol.
4975
4976         strtoull: remove dependency on strtoul
4977         This is like the strtoll change.
4978         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4979         (Depends-on): Remove strtoul.
4980
4981         strtoll: remove dependency on strtol
4982         This is so that 'configure' need not check for strtol merely because
4983         the application needs strtoll.
4984         * modules/strtoll (Files): Add lib/strtol.c.
4985         (Depends-on): Remove strtol.
4986
4987 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4988
4989         inttypes: Move some configure check to module 'imaxdiv'.
4990         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4991         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4992         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4993
4994 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4995
4996         inttypes: Move some configure check to module 'imaxabs'.
4997         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4998         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4999         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5000
5001 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5002
5003         inttypes: Remove configure tests that are not needed since 2009-12-31.
5004         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5005         gl_cv_header_working_inttypes_h.
5006
5007 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5008
5009         * modules/strnlen (Depends-on): Remove memchr.
5010         The strnlen implementation doesn't need the memchr module's fixes; see
5011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5012
5013         strtol: remove dependency on wchar
5014         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5015         * modules/strtol (Depends-on): Remove wchar.
5016
5017 2011-04-21  Eric Blake  <eblake@redhat.com>
5018
5019         passfd: fix test regression on Linux
5020         * modules/passfd-tests (configure.ac): Correct socketpair check.
5021
5022         passfd: speed up configure and drop unused code
5023         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5024         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5025         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5026         Instead of probing at configure for unix_scm_rights_bsd44_way,
5027         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5028         check to a struct member probe.
5029         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5030         (sendfd, recvfd): Update preprocessor checks.
5031         * modules/passfd (Files): Reflect rename, and drop unused file.
5032         (Depends-on): Drop unused dependency.
5033
5034         passfd: allow compilation on mingw
5035         * modules/sys_socket (Depends-on): Add sys_uio.
5036         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5037         iovec and a minimal struct msghdr.
5038         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5039         * tests/test-sys_socket.c (main): Enhance test.
5040         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5041         guaranteed to provide what we need.
5042         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5043         * modules/passfd-tests (Depends-on): Add sys_wait.
5044         * tests/test-passfd.c (main): Skip test on mingw, for now.
5045         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5046         partial 'struct msghdr' implementation.
5047
5048         sys_uio: new module
5049         * modules/sys_uio: New module.
5050         * modules/sys_uio-tests: Likewise.
5051         * lib/sys_uio.in.h: New file.
5052         * m4/sys_uio_h.m4: Likewise.
5053         * tests/test-sys_uio.c: Likewise.
5054         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5055         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5056
5057 2011-04-20  Jim Meyering  <meyering@redhat.com>
5058
5059         useless-if-before-free: avoid false-positive
5060         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5061         disjunct so that it too requires a terminating ";".  Without that,
5062         this script would identify as useless one statement from gcc that
5063         was not:
5064           if (aligned_ptr)
5065             free (((void **) aligned_ptr) [-1]);
5066
5067 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5068
5069         doc: update users.txt.
5070         * users.txt: Add barcode.
5071
5072 2011-04-19  Bruno Haible  <bruno@clisp.org>
5073
5074         ioctl: Remove link dependency on native Windows.
5075         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5076         (gl_close_fn, gl_ioctl_fn): New types.
5077         (struct fd_hook): Renamed from struct close_hook. Change type of
5078         private_close_fn field. Add private_ioctl_fn field.
5079         (close_hook_fn): Add parameter for primary close method.
5080         (execute_close_hooks, execute_all_close_hooks): Likewise.
5081         (ioctl_hook_fn): New type.
5082         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5083         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5084         argument.
5085         (unregister_fd_hook): Renamed from unregister_close_hook.
5086         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5087         Don't include <unistd.h>.
5088         (close): Remove undef.
5089         (anchor): Update.
5090         (execute_close_hooks): Add argument for primary close method.
5091         (execute_all_close_hooks): Likewise.
5092         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5093         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5094         argument. Allow each argument to be NULL.
5095         (unregister_fd_hook): Renamed from unregister_close_hook.
5096         * lib/close.c (rpl_close): Pass 'close' function pointer to
5097         execute_all_close_hooks.
5098         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5099         (primary_ioctl): New function.
5100         (ioctl): Don't call ioctlsocket here. Instead, call
5101         execute_all_ioctl_hooks.
5102         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5103         close method.
5104         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5105         (fd_sockets_hook): Renamed from close_sockets_hook.
5106         (gl_sockets_startup, gl_sockets_cleanup): Update.
5107         * modules/fd-hook: Renamed from modules/close-hook. Update.
5108         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5109         * modules/sockets (Depends-on): Likewise.
5110         * modules/ioctl (Depends-on): Add fd-hook.
5111         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5112         GNULIB_SOCKET.
5113
5114 2011-04-19  Bruno Haible  <bruno@clisp.org>
5115
5116         Move the support of O_NONBLOCK in open() to the 'open' module.
5117         * modules/nonblocking (Depends-on): Remove 'open'.
5118         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5119         gl_cv_have_open_O_NONBLOCK.
5120         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5121         O_NONBLOCK support.
5122         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5123
5124 2011-04-17  Bruno Haible  <bruno@clisp.org>
5125
5126         pipe2: Simplify code.
5127         * lib/pipe2.c (pipe2): Reduce code duplication.
5128
5129 2011-04-17  Bruno Haible  <bruno@clisp.org>
5130
5131         nonblocking: Add comment.
5132         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5133
5134 2011-04-17  Bruno Haible  <bruno@clisp.org>
5135
5136         nonblocking: Add tests for sockets.
5137         * tests/test-nonblocking-socket.sh: New file.
5138         * tests/test-nonblocking-socket-main.c: New file.
5139         * tests/test-nonblocking-socket-child.c: New file.
5140         * tests/test-nonblocking-socket.h: New file.
5141         * tests/socket-server.h: New file.
5142         * tests/socket-client.h: New file.
5143         * modules/nonblocking-socket-tests: New file.
5144         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5145
5146 2011-04-17  Bruno Haible  <bruno@clisp.org>
5147
5148         nonblocking: Add tests for pipes.
5149         * tests/test-nonblocking-pipe.sh: New file.
5150         * tests/test-nonblocking-pipe-main.c: New file.
5151         * tests/test-nonblocking-pipe-child.c: New file.
5152         * tests/test-nonblocking-pipe.h: New file.
5153         * tests/test-nonblocking-writer.h: New file.
5154         * tests/test-nonblocking-reader.h: New file.
5155         * tests/test-nonblocking-misc.h: New file.
5156         * modules/nonblocking-pipe-tests: New file.
5157         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5158
5159 2011-04-16  Bruno Haible  <bruno@clisp.org>
5160
5161         gettext: Clarify the needed programmer actions.
5162         * modules/gettext (Notice): New field.
5163         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5164
5165 2011-04-16  Bruno Haible  <bruno@clisp.org>
5166
5167         strchrnul: Tweak last commit.
5168         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5169         bug.
5170         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5171         as in _GL_FUNCDECL_SYS.
5172         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5173         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5174
5175 2011-04-15  Eric Blake  <eblake@redhat.com>
5176
5177         strchrnul: work around cygwin bug
5178         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5179         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5181         * modules/string (Makefile.am): Substitute it.
5182         * lib/string.in.h (strchrnul): Use it.
5183
5184 2011-04-15  Bruno Haible  <bruno@clisp.org>
5185
5186         Don't require lib/stdio-write.c when only module 'stdio' is used.
5187         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5188         invocation.
5189         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5190
5191 2011-04-14  Bruno Haible  <bruno@clisp.org>
5192
5193         Support non-blocking pipe I/O in read() on native Windows.
5194         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5195         (read): New declaration.
5196         * lib/read.c: New file.
5197         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5198         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5199         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5200         vscanf): New declarations.
5201         * lib/stdio-read.c: New file.
5202         * m4/read.m4: New file.
5203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5204         REPLACE_READ.
5205         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5206         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5207         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5208         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5209         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5210         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5211         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5212         * modules/read: New file.
5213         * modules/nonblocking (Files): Add lib/stdio-read.c.
5214         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5215         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5216         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5217         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5218         * modules/pread (Depends-on): Add read.
5219         * modules/safe-read (Depends-on): Likewise.
5220         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5221         gets, scanf, vfscanf, vscanf): Verify signatures.
5222         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5223         problem with non-blocking pipes.
5224         * doc/posix-functions/fgetc.texi: Likewise.
5225         * doc/posix-functions/fgets.texi: Likewise.
5226         * doc/posix-functions/fread.texi: Likewise.
5227         * doc/posix-functions/fscanf.texi: Likewise.
5228         * doc/posix-functions/getc.texi: Likewise.
5229         * doc/posix-functions/getchar.texi: Likewise.
5230         * doc/posix-functions/gets.texi: Likewise.
5231         * doc/posix-functions/scanf.texi: Likewise.
5232         * doc/posix-functions/vfscanf.texi: Likewise.
5233         * doc/posix-functions/vscanf.texi: Likewise.
5234
5235 2011-04-14  Bruno Haible  <bruno@clisp.org>
5236
5237         Support non-blocking pipe I/O in write() on native Windows.
5238         * lib/write.c (rpl_write): Split a write request that failed merely
5239         because the byte count was larger than the pipe buffer's size.
5240         * doc/posix-functions/write.texi: Mention the problem with large byte
5241         counts.
5242
5243 2011-04-14  Bruno Haible  <bruno@clisp.org>
5244
5245         wchar: Ensure that wchar_t gets defined on uClibc.
5246         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5247         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5248
5249 2011-04-13  Bruno Haible  <bruno@clisp.org>
5250
5251         safe-write, full-read: Avoid unnecessary compilation units.
5252         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5253         (Depends-on): Remove safe-read. Add ssize_t.
5254         * modules/full-read (Files): Add lib/full-write.c.
5255         (Depends-on): Add full-write.
5256
5257 2011-04-13  Bruno Haible  <bruno@clisp.org>
5258
5259         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5260         * modules/pwrite (Depends-on): Add 'write'.
5261
5262 2011-04-13  Bruno Haible  <bruno@clisp.org>
5263
5264         Support non-blocking pipe I/O in write() on native Windows.
5265         * lib/unistd.in.h (write): Enable replacement also if
5266         GNULIB_UNISTD_H_NONBLOCKING is 1.
5267         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5268         (rpl_write): When failing to write on a non-blocking pipe, change
5269         errno from ENOSPC to EAGAIN.
5270         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5271         putchar, puts, vfprintf, vprintf): Enable replacement also if
5272         GNULIB_STDIO_H_NONBLOCKING is 1.
5273         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5274         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5275         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5276         CALL_WITH_SIGPIPE_EMULATION.
5277         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5278         * m4/nonblocking.m4: New file.
5279         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5280         for non-blocking I/O support.
5281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5282         GNULIB_UNISTD_H_NONBLOCKING.
5283         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5284         required for non-blocking I/O support.
5285         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5286         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5287         lib/stdio-write.c, m4/asm-underscore.m4.
5288         (Depends-on): Add stdio, unistd.
5289         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5290         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5291         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5292         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5293         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5294         problem with non-blocking pipes.
5295         * doc/posix-functions/fputc.texi: Likewise.
5296         * doc/posix-functions/fputs.texi: Likewise.
5297         * doc/posix-functions/fwrite.texi: Likewise.
5298         * doc/posix-functions/printf.texi: Likewise.
5299         * doc/posix-functions/putc.texi: Likewise.
5300         * doc/posix-functions/putchar.texi: Likewise.
5301         * doc/posix-functions/puts.texi: Likewise.
5302         * doc/posix-functions/vfprintf.texi: Likewise.
5303         * doc/posix-functions/vprintf.texi: Likewise.
5304         * doc/posix-functions/write.texi: Likewise.
5305
5306 2011-04-10  Jim Meyering  <meyering@redhat.com>
5307
5308         maint.mk: prohibit doubled words
5309         Detect them also when they're separated by a newline.
5310         There are 3 ways to customize it:
5311           - disable the test on a per file basis, as usual with rules using
5312             $(VC_LIST_EXCEPT)
5313           - replace the default doubled-word-selecting regexp (affects all files)
5314           - ignore a particular file-vs-doubled-word match
5315         I nearly used that last one to ignore the "is is" match in
5316         coreutils' NEWS file, since the text was "ls -is is ..."
5317         To do that, I would have added this line to cfg.mk:
5318           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5319         but it would have ignored any "is is" match in NEWS.
5320         Low probability, but still...
5321         Instead, I changed the text, slightly:
5322           -  ls -is is now consistent with ls -lis in ignoring values returned
5323           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5324         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5325         (prohibit_doubled_word_): Define.
5326         (sc_prohibit_doubled_word): New rule.
5327         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5328
5329 2011-04-10  Jim Meyering  <meyering@redhat.com>
5330
5331         maint: fix doubled-word typo in comment
5332         * m4/gethostname.m4: s/is is/it is/
5333         * m4/getdomainname.m4: Likewise.
5334
5335 2011-04-10  Jim Meyering  <meyering@redhat.com>
5336
5337         maint: remove doubled word: s/it it/it/
5338         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5339
5340 2011-04-10  Jim Meyering  <meyering@redhat.com>
5341
5342         maint.mk: remove useless semicolon and backslash
5343         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5344         semicolon and backslash.
5345
5346 2011-04-10  Bruno Haible  <bruno@clisp.org>
5347
5348         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5349         * modules/stdint-tests (Depends-on): Add wchar.
5350
5351 2011-04-10  Jim Meyering  <meyering@redhat.com>
5352
5353         maint: remove doubled words in comments, e.g., s/a a/a/
5354         * lib/strptime.c (day_of_the_week): s/the the/the/
5355         * tests/test-chown.h (test_chown): s/a a/a/
5356
5357         test-chown.h: correct a cast
5358         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5359         when the destination is a stat.st_gid.
5360
5361 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5362
5363         getaddrinfo: Fix test for sa_len member.
5364         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5365         include <sys/types.h> before <sys/socket.h>.
5366
5367 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5368
5369         maint: change "can not" to "cannot"
5370         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5371         boundaries.
5372
5373 2011-04-09  Jim Meyering  <meyering@redhat.com>
5374
5375         maint: change "a a" to "a"
5376         * tests/test-lchown.h (test_lchown): s/a a/a/
5377
5378         maint.mk: prohibit \<the the\>
5379         * top/maint.mk (sc_prohibit_the_the): New rule.
5380
5381         maint: fix "the the" in comment
5382         * lib/count-one-bits.h: s/the the/the/
5383
5384         maint: change "can not" to "cannot"
5385         But do not change the occurrences in maintain.texi or in
5386         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5387         * doc/gnulib-tool.texi: s/can not/cannot/
5388         * doc/posix-functions/accept.texi (accept): Likewise.
5389         * doc/posix-functions/socket.texi (socket): Likewise.
5390         * lib/mbrtowc.c: Likewise.
5391
5392         maint.mk: prohibit use of "can not"
5393         * top/maint.mk (sc_prohibit_can_not): New rule.
5394         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5395
5396 2011-04-09  Bruno Haible  <bruno@clisp.org>
5397
5398         careadlinkat: Guard against misuse of careadlinkatcwd.
5399         * lib/careadlinkat.c: Include <stdlib.h>.
5400         (careadlinkatcwd): Check that the fd argument is as expected.
5401
5402 2011-04-09  Bruno Haible  <bruno@clisp.org>
5403
5404         careadlinkat: Use common coding style.
5405         * lib/careadlinkat.c: Move gnulib includes after system includes.
5406
5407 2011-04-09  Bruno Haible  <bruno@clisp.org>
5408
5409         careadlinkat: Clarify specification.
5410         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5411         (careadlinkatcwd): Add comment.
5412         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5413
5414 2011-04-09  Bruno Haible  <bruno@clisp.org>
5415
5416         areadlinkat: Avoid link error on many platforms.
5417         * modules/areadlinkat (Depends-on): Add areadlink.
5418
5419 2011-04-09  Bruno Haible  <bruno@clisp.org>
5420
5421         allocator, careadlinkat: Fix double-inclusion guard.
5422         * lib/allocator.h: Fix double-inclusion guard.
5423         * lib/careadlinkat.h: Likewise.
5424
5425 2011-04-09  Bruno Haible  <bruno@clisp.org>
5426
5427         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5428         * lib/relocwrapper.c: Update dependencies hierarchy.
5429         * build-aux/install-reloc: Update list of files to be compiled.
5430         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5431         lib/allocator.[hc].
5432
5433 2011-04-08  Eric Blake  <eblake@redhat.com>
5434
5435         strftime: silence gnulib-tool warning
5436         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5437
5438 2011-04-08  Bruno Haible  <bruno@clisp.org>
5439
5440         verify: Fix syntax error with GCC 4.6 in C++ mode.
5441         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5442         (HAVE_STATIC_ASSERT): New macro.
5443         (verify_true, verify): Use 'static_assert' if it is supported and
5444         '_Static_assert' is not supported.
5445
5446 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5447
5448         allocator: New module.
5449         * modules/allocator, lib/allocator.c: New files.
5450         * lib/allocator.h (stdlib_allocator): New decl.
5451         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5452         Remove.  Do not include <stdlib.h>.
5453         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5454         * modules/careadlinkat (Files): Remove lib/allocator.h.
5455         (Depends-on): Add allocator.
5456
5457         stdlib: let modules use system malloc, realloc
5458         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5459         if !_GL_USE_STDLIB_ALLOC.
5460         (malloc, realloc): Limit this change to a smaller scope.
5461
5462         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5463         (malloc, realloc): Don't #undef; no longer needed.
5464         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5465         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5466         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5467         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5468         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5469         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5470         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5471         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5472
5473         careadlinkat: rename members to avoid problem
5474         * lib/allocator.h (struct allocator): Rename members from
5475         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5476         and realloc are #define'd.  Reported by Eric Blake in
5477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5478         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5479
5480 2011-04-08  Eric Blake  <eblake@redhat.com>
5481
5482         nonblocking: reduce dependency
5483         * tests/test-nonblocking.c: Only test sockets when in use.
5484         * modules/nonblocking-tests (Depends-on): Drop socket.
5485         (Makefile.am): Link even if sockets are not present.
5486         * modules/pipe2-tests (Makefile.am): Likewise.
5487         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5488
5489         pipe2: fix O_NONBLOCK support on mingw
5490         * modules/pipe2 (Depends-on): Add nonblocking.
5491         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5492         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5493         * tests/test-nonblocking.c (main): Likewise.
5494         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5495
5496         fcntl-h: fix O_ACCMODE on cygwin
5497         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5498         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5499
5500         pipe-filter: drop O_NONBLOCK workarounds
5501         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5502         * modules/pipe-filter-ii (Depends-on): Likewise.
5503         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5504
5505         nonblocking: provide O_NONBLOCK for mingw
5506         * modules/nonblocking (Depends-on): Add open.
5507         (configure.ac): Set new witness macro.
5508         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5509         * modules/fcntl-h (Makefile.am): Substitute it.
5510         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5511         nonblocking module is in use.
5512         * lib/nonblocking.c: Adjust portability test.
5513         * lib/open.c (open): Don't let native open see gnulib flag.
5514         * tests/test-fcntl-h.c (main): Enhance test.
5515         * tests/test-open.h (test_open): Likewise.
5516         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5517
5518         careadlinkat: fix compilation error on mingw
5519         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5520         within struct allocator.
5521
5522 2011-04-06  Eric Blake  <eblake@redhat.com>
5523
5524         binary-io: relicense under LGPLv2+
5525         * modules/binary-io (License): Relax to LGPLv2+.
5526         Requested for libvirt, and required by pipe2.
5527
5528 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5529
5530         verify: use _Static_assert if available
5531         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5532         (verify_true, verify): Use it if available.  This generates better
5533         diagnostics with GCC 4.6.0 and later.
5534
5535 2011-04-05  Bruno Haible  <bruno@clisp.org>
5536
5537         Remove leftover generated .h files after config.status changed.
5538
5539         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5540         GL_GENERATE_ALLOCA_H.
5541         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5542         GL_GENERATE_ALLOCA_H evaluates to false.
5543
5544         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5545         GL_GENERATE_ARGZ_H.
5546         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5547         evaluates to false.
5548
5549         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5550         GL_GENERATE_BYTESWAP_H.
5551         * modules/byteswap (Makefile.am): Remove byteswap.h if
5552         GL_GENERATE_BYTESWAP_H evaluates to false.
5553
5554         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5555         GL_GENERATE_ERRNO_H.
5556         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5557         evaluates to false.
5558
5559         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5560         GL_GENERATE_FLOAT_H.
5561         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5562         evaluates to false.
5563
5564         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5565         GL_GENERATE_FNMATCH_H.
5566         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5567         GL_GENERATE_FNMATCH_H evaluates to false.
5568
5569         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5570         GL_GENERATE_GLOB_H.
5571         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5572         evaluates to false.
5573
5574         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5575         automake conditional GL_GENERATE_ICONV_H.
5576         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5577         evaluates to false.
5578
5579         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5580         GL_GENERATE_NETINET_IN_H.
5581         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5582         GL_GENERATE_NETINET_IN_H evaluates to false.
5583
5584         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5585         conditional GL_GENERATE_PTHREAD_H.
5586         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5587         * modules/pthread (Makefile.am): Remove pthread.h if
5588         GL_GENERATE_PTHREAD_H evaluates to false.
5589
5590         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5591         GL_GENERATE_SCHED_H.
5592         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5593         evaluates to false.
5594
5595         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5596         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5597         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5598         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5599
5600         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5601         GL_GENERATE_STDARG_H.
5602         * modules/stdarg (Makefile.am): Remove stdarg.h if
5603         GL_GENERATE_STDARG_H evaluates to false.
5604
5605         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5606         GL_GENERATE_STDBOOL_H.
5607         * modules/stdbool (Makefile.am): Remove stdbool.h if
5608         GL_GENERATE_STDBOOL_H evaluates to false.
5609
5610         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5611         conditional GL_GENERATE_STDDEF_H.
5612         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5613         * modules/stddef (Makefile.am): Remove stddef.h if
5614         GL_GENERATE_STDDEF_H evaluates to false.
5615
5616         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5617         GL_GENERATE_STDINT_H.
5618         * modules/stdint (Makefile.am): Remove stdint.h if
5619         GL_GENERATE_STDINT_H evaluates to false.
5620
5621         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5622         GL_GENERATE_SYSEXITS_H.
5623         * modules/sysexits (Makefile.am): Remove sysexits.h if
5624         GL_GENERATE_SYSEXITS_H evaluates to false.
5625
5626         Reported by Karl Berry and Ralf Wildenhues.
5627
5628 2011-04-05  Bruno Haible  <bruno@clisp.org>
5629
5630         Ensure to rebuild generated .h files when config.status has changed.
5631         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5632         config.status.
5633         * modules/ctype (Makefile.am): Likewise.
5634         * modules/dirent (Makefile.am): Likewise.
5635         * modules/errno (Makefile.am): Likewise.
5636         * modules/fcntl-h (Makefile.am): Likewise.
5637         * modules/float (Makefile.am): Likewise.
5638         * modules/getopt-posix (Makefile.am): Likewise.
5639         * modules/glob (Makefile.am): Likewise.
5640         * modules/iconv-h (Makefile.am): Likewise.
5641         * modules/inttypes (Makefile.am): Likewise.
5642         * modules/langinfo (Makefile.am): Likewise.
5643         * modules/locale (Makefile.am): Likewise.
5644         * modules/math (Makefile.am): Likewise.
5645         * modules/netdb (Makefile.am): Likewise.
5646         * modules/netinet_in (Makefile.am): Likewise.
5647         * modules/poll-h (Makefile.am): Likewise.
5648         * modules/pthread (Makefile.am): Likewise.
5649         * modules/pty (Makefile.am): Likewise.
5650         * modules/sched (Makefile.am): Likewise.
5651         * modules/search (Makefile.am): Likewise.
5652         * modules/selinux-h (Makefile.am): Likewise.
5653         * modules/signal (Makefile.am): Likewise.
5654         * modules/spawn (Makefile.am): Likewise.
5655         * modules/stdarg (Makefile.am): Likewise.
5656         * modules/stdbool (Makefile.am): Likewise.
5657         * modules/stddef (Makefile.am): Likewise.
5658         * modules/stdint (Makefile.am): Likewise.
5659         * modules/stdio (Makefile.am): Likewise.
5660         * modules/stdlib (Makefile.am): Likewise.
5661         * modules/string (Makefile.am): Likewise.
5662         * modules/strings (Makefile.am): Likewise.
5663         * modules/sys_file (Makefile.am): Likewise.
5664         * modules/sys_ioctl (Makefile.am): Likewise.
5665         * modules/sys_select (Makefile.am): Likewise.
5666         * modules/sys_socket (Makefile.am): Likewise.
5667         * modules/sys_stat (Makefile.am): Likewise.
5668         * modules/sys_time (Makefile.am): Likewise.
5669         * modules/sys_times (Makefile.am): Likewise.
5670         * modules/sys_utsname (Makefile.am): Likewise.
5671         * modules/sys_wait (Makefile.am): Likewise.
5672         * modules/sysexits (Makefile.am): Likewise.
5673         * modules/termios (Makefile.am): Likewise.
5674         * modules/time (Makefile.am): Likewise.
5675         * modules/unistd (Makefile.am): Likewise.
5676         * modules/wchar (Makefile.am): Likewise.
5677         * modules/wctype-h (Makefile.am): Likewise.
5678         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5679
5680 2011-04-05  Bruno Haible  <bruno@clisp.org>
5681
5682         pipe2: Relicense under LGPLv2+.
5683         * modules/pipe2 (License): Change to LGPLv2+.
5684         Requested by Eric Blake, for libvirt.
5685
5686 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5687
5688         bootstrap: compute gnulib_extra_files after updating build_aux
5689         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5690         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5691
5692 2011-04-05  Eric Blake  <eblake@redhat.com>
5693
5694         bootstrap: preserve git whitelist item sorting
5695         * build-aux/bootstrap (sort_patterns): New function.
5696         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5697
5698 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5699
5700         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5701         sc_space_tab check.
5702
5703 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5704
5705         areadlink, areadlinkat: rewrite in terms of careadlinkat
5706         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5707         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5708         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5709         (malloc, realloc): Remove #undefs.
5710         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5711         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5712         readlink, ssize_t, stdint, unistd.
5713         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5714         areadlink, stdint.
5715
5716         careadlinkat: new module
5717         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5718         * modules/careadlinkat: New files, written by me with
5719         a review and feedback from Ben Pfaff in
5720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5721
5722 2011-04-01  Bruno Haible  <bruno@clisp.org>
5723
5724         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5725         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5726         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5727         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5728         Reported by Bruce Korb <bruce.korb@gmail.com>.
5729
5730 2011-04-01  Bruno Haible  <bruno@clisp.org>
5731
5732         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5733         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5734         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5735         * modules/wcpcpy (Depends-on): Add extensions.
5736         * modules/wcpncpy (Depends-on): Likewise.
5737         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5738         systems.
5739         * doc/posix-functions/wcpncpy.texi: Likewise.
5740         * doc/posix-functions/wcwidth.texi: Likewise.
5741
5742 2011-03-31  Eric Blake  <eblake@redhat.com>
5743
5744         nonblocking: fix mingw test failures
5745         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5746         non-blocking flag on regular file.
5747         (get_nonblocking_flag): Set errno on invalid fd.
5748         * tests/test-nonblocking.c (main): Avoid test failure on
5749         directories if fchdir is not active.
5750         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5751
5752 2011-03-31  Bruno Haible  <bruno@clisp.org>
5753
5754         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5755         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5756         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5757         Reported by Simon Josefsson <simon@josefsson.org>.
5758
5759 2011-03-31  Bruno Haible  <bruno@clisp.org>
5760         and Eric Blake  <eblake@redhat.com>
5761
5762         nonblocking: new module
5763         * modules/nonblocking: New module.
5764         * modules/nonblocking-tests: Likewise.
5765         * lib/nonblocking.h: New file.
5766         * lib/nonblocking.c: Likewise.
5767         * tests/test-nonblocking.c: New test.
5768         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5769
5770 2011-03-30  Bruno Haible  <bruno@clisp.org>
5771
5772         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5773         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5774         instead of 'printf' format for GCC >= 4.4.
5775         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5776         (fprintf, printf, vfprintf, vprintf): Declare with
5777         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5778         the system's vfprintf() function.
5779         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5780
5781 2011-03-30  Eric Blake  <eblake@redhat.com>
5782
5783         passfd: fix scoping bug
5784         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5785         before sendmsg/recvmsg.
5786
5787         passfd: standardize coding conventions
5788         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5789         can be learned at compile time.
5790         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5791         ifdefs.
5792         (sendfd, recvfd): Follow gnulib code conventions.
5793
5794         passfd: fix incorrect sendmsg arguments
5795         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5796         incorrect msg_controllen value.
5797         * modules/passfd-tests (Depends-on): Check for alarm.
5798         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5799         Reported by Bastien ROUCARIES.
5800
5801 2011-03-30  Bruno Haible  <bruno@clisp.org>
5802
5803         c-strcasestr: Relicense under LGPLv2+.
5804         * modules/c-strcasestr (License): Change to LGPLv2+.
5805         Requested by Eric Blake, for libvirt.
5806
5807 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5808
5809         * users.txt: Add libidn2.  Fix libtasn1 link.
5810
5811 2011-03-30  Jim Meyering  <meyering@redhat.com>
5812
5813         tests: readlink* ("",... fails with EINVAL on newer kernels
5814         readlink and readlinkat have typically failed with ENOENT for
5815         the invalid, empty file name,  "".  However, with the advent
5816         of linux-2.6.39, they fail with EINVAL.
5817         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5818         when operating on the empty file name.
5819         * tests/test-readlink.h (test_readlink): Likewise.
5820
5821 2011-03-29  Bruno Haible  <bruno@clisp.org>
5822
5823         Relicense some modules under LGPLv2+, for libidn2.
5824         * modules/array-mergesort (License): Change to LGPLv2+.
5825         * modules/c-strcaseeq (License): Likewise.
5826         * modules/striconveh (License): Likewise.
5827         * modules/striconveha (License): Likewise.
5828         * modules/uniconv/base (License): Likewise.
5829         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5830         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5831         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5832         * modules/unictype/base (License): Likewise.
5833         * modules/unictype/bidiclass-of (License): Likewise.
5834         * modules/unictype/category-M (License): Likewise.
5835         * modules/unictype/category-none (License): Likewise.
5836         * modules/unictype/category-of (License): Likewise.
5837         * modules/unictype/category-test (License): Likewise.
5838         * modules/unictype/category-test-withtable (License): Likewise.
5839         * modules/unictype/combining-class (License): Likewise.
5840         * modules/unictype/joiningtype-of (License): Likewise.
5841         * modules/unictype/scripts (License): Likewise.
5842         * modules/uninorm/base (License): Likewise.
5843         * modules/uninorm/canonical-decomposition (License): Likewise.
5844         * modules/uninorm/composition (License): Likewise.
5845         * modules/uninorm/decompose-internal (License): Likewise.
5846         * modules/uninorm/decomposition-table (License): Likewise.
5847         * modules/uninorm/nfc (License): Likewise.
5848         * modules/uninorm/nfd (License): Likewise.
5849         * modules/uninorm/u32-normalize (License): Likewise.
5850         * modules/unistr/base (License): Likewise.
5851         * modules/unistr/u32-cpy (License): Likewise.
5852         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5853         * modules/unistr/u32-to-u8 (License): Likewise.
5854         * modules/unistr/u32-uctomb (License): Likewise.
5855         * modules/unistr/u8-check (License): Likewise.
5856         * modules/unistr/u8-mblen (License): Likewise.
5857         * modules/unistr/u8-mbtouc (License): Likewise.
5858         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5859         * modules/unistr/u8-mbtoucr (License): Likewise.
5860         * modules/unistr/u8-prev (License): Likewise.
5861         * modules/unistr/u8-strlen (License): Likewise.
5862         * modules/unistr/u8-to-u32 (License): Likewise.
5863         * modules/unistr/u8-uctomb (License): Likewise.
5864         * modules/unitypes (License): Likewise.
5865         Requested by Simon Josefsson.
5866
5867 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5868
5869         lib-symbol-visibility: Add a notice.
5870         * modules/lib-symbol-visibility (Notice): New field.
5871
5872 2011-03-29  Bruno Haible  <bruno@clisp.org>
5873
5874         getaddrinfo: Doc fix.
5875         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5876         section "fixed in Gnulib".
5877
5878 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5879
5880         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5881         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5882
5883 2011-03-26  Bruno Haible  <bruno@clisp.org>
5884
5885         unictype/property-byname: Reduce the number of load-time relocations.
5886         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5887         (UC_PROPERTY_INDEX_*): New enumeration values.
5888         (uc_property_byname): Convert an index from the lookup table to an
5889         uc_property_t.
5890         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5891         values.
5892
5893 2011-03-26  Bruno Haible  <bruno@clisp.org>
5894
5895         unictype/property-byname: Allow omitted word separators and aliases.
5896         * lib/unictype/pr_byname.gperf: Add property names without word
5897         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5898         for 'space'.
5899
5900 2011-03-26  Bruno Haible  <bruno@clisp.org>
5901
5902         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5903         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5904         also hyphens to space.
5905         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5906         without spaces.
5907         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5908
5909 2011-03-26  Bruno Haible  <bruno@clisp.org>
5910
5911         unictype/joiningtype-byname: Recognize long names as well.
5912         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5913         a long name.
5914         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5915         unictype/joiningtype_byname.h.
5916         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5917         * lib/unictype/joiningtype_byname.gperf: New file.
5918         * modules/unictype/joiningtype-byname (Files): Add
5919         lib/unictype/joiningtype_byname.gperf.
5920         (Depends-on): Add gperf.
5921         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5922         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5923         long names.
5924
5925         Tests for module 'unictype/joiningtype-longname'.
5926         * modules/unictype/joiningtype-longname-tests: New file.
5927         * tests/unictype/test-joiningtype_longname.c: New file.
5928
5929         New module 'unictype/joiningtype-longname'.
5930         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5931         * lib/unictype/joiningtype_longname.c: New file.
5932         * modules/unictype/joiningtype-longname: New file.
5933         * modules/unictype/joiningtype-all (Depends-on): Add
5934         unictype/joiningtype-longname.
5935
5936 2011-03-26  Bruno Haible  <bruno@clisp.org>
5937
5938         unictype/bidiclass-byname: Recognize long names as well.
5939         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5940         name.
5941         * lib/unictype/bidi_byname.c: Include <string.h>,
5942         unictype/bidi_byname.h.
5943         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5944         * lib/unictype/bidi_byname.gperf: New file.
5945         * modules/unictype/bidiclass-byname (Files): Add
5946         lib/unictype/bidi_byname.gperf.
5947         (Depends-on): Add gperf.
5948         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5949         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5950         long names.
5951
5952         Tests for module 'unictype/bidiclass-longname'.
5953         * modules/unictype/bidiclass-longname-tests: New file.
5954         * tests/unictype/test-bidi_longname.c: New file.
5955
5956         New module 'unictype/bidiclass-longname'.
5957         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5958         * lib/unictype/bidi_longname.c: New file.
5959         * modules/unictype/bidiclass-longname: New file.
5960         * modules/unictype/bidiclass-all (Depends-on): Add
5961         unictype/bidiclass-longname.
5962
5963 2011-03-26  Bruno Haible  <bruno@clisp.org>
5964
5965         unictype/bidi*: Rename modules.
5966         * modules/unictype/bidiclass-all: Renamed from
5967         modules/unictype/bidicategory-all.
5968         * modules/unictype/bidiclass-name: Renamed from
5969         modules/unictype/bidiclass-name.
5970         (Description): Update.
5971         * modules/unictype/bidiclass-name-tests: Renamed from
5972         modules/unictype/bidicategory-name-tests.
5973         * modules/unictype/bidiclass-byname: Renamed from
5974         modules/unictype/bidicategory-byname.
5975         (Description): Update.
5976         * modules/unictype/bidiclass-byname-tests: Renamed from
5977         modules/unictype/bidicategory-byname-tests.
5978         * modules/unictype/bidiclass-of: Renamed from
5979         modules/unictype/bidicategory-of.
5980         (Description): Update.
5981         * modules/unictype/bidiclass-of-tests: Renamed from
5982         modules/unictype/bidicategory-of-tests.
5983         * modules/unictype/bidiclass-test: Renamed from
5984         modules/unictype/bidicategory-test.
5985         (Description): Update.
5986         * modules/unictype/bidiclass-test-tests: Renamed from
5987         modules/unictype/bidicategory-test-tests.
5988         * modules/unictype/bidicategory-all: New file, a simple redirection.
5989         * modules/unictype/bidicategory-name: Likewise.
5990         * modules/unictype/bidicategory-byname: Likewise.
5991         * modules/unictype/bidicategory-of: Likewise.
5992         * modules/unictype/bidicategory-test: Likewise.
5993         * modules/unictype/property-bidi-* (Dependencies): Update.
5994         * lib/unictype/bidi_*.c: Update comment.
5995
5996 2011-03-26  Bruno Haible  <bruno@clisp.org>
5997
5998         unictype/bidi*: Rename functions, part 2.
5999         * modules/unictype/bidicategory-name (configure.ac): Update required
6000         libunistring version.
6001         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6002
6003 2011-03-25  Bruno Haible  <bruno@clisp.org>
6004
6005         New module 'unictype/combining-class-all'.
6006         * modules/unictype/combining-class-all: New file.
6007
6008         Tests for module 'unictype/combining-class-byname'.
6009         * modules/unictype/combining-class-byname-tests: New file.
6010         * tests/unictype/test-combiningclass_byname.c: New file.
6011
6012         New module 'unictype/combining-class-byname'.
6013         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6014         * lib/unictype/combiningclass_byname.c: New file.
6015         * lib/unictype/combiningclass_byname.gperf: New file.
6016         * modules/unictype/combining-class-byname: New file.
6017
6018         Tests for module 'unictype/combining-class-longname'.
6019         * modules/unictype/combining-class-longname-tests: New file.
6020         * tests/unictype/test-combiningclass_longname.c: New file.
6021
6022         New module 'unictype/combining-class-longname'.
6023         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6024         * lib/unictype/combiningclass_longname.c: New file.
6025         * modules/unictype/combining-class-longname: New file.
6026
6027         Tests for module 'unictype/combining-class-name'.
6028         * modules/unictype/combining-class-name-tests: New file.
6029         * tests/unictype/test-combiningclass_name.c: New file.
6030
6031         New module 'unictype/combining-class-name'.
6032         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6033         * lib/unictype/combiningclass_name.c: New file.
6034         * modules/unictype/combining-class-name: New file.
6035
6036 2011-03-25  Bruno Haible  <bruno@clisp.org>
6037
6038         unictype/combining-class: Rename source files.
6039         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6040         of unictype/combining.h.
6041         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6042         Update.
6043         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6044         * modules/unictype/combining-class (Description): Fix.
6045         (Files, Makefile.am): Update.
6046         * tests/unictype/test-combiningclass.c: Renamed from
6047         tests/unictype/test-combining.c.
6048         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6049
6050 2011-03-25  Bruno Haible  <bruno@clisp.org>
6051
6052         unictype: Update list of canonical combining classes.
6053         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6054
6055 2011-03-25  Bruno Haible  <bruno@clisp.org>
6056
6057         unictype/category-byname: Recognize long names as well.
6058         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6059         a long name.
6060         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6061         unictype/categ_byname.h.
6062         (UC_CATEGORY_INDEX_*): New enumeration values.
6063         (uc_general_category_byname): Use uc_general_category_lookup and
6064         convert from index to value.
6065         * lib/unictype/categ_byname.gperf: New file.
6066         * modules/unictype/category-byname (Files): Add
6067         lib/unictype/categ_byname.gperf.
6068         (Depends-on): Add gperf.
6069         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6070         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6071         long names.
6072
6073         Tests for module 'unictype/category-longname'.
6074         * modules/unictype/category-longname-tests: New file.
6075         * tests/unictype/test-categ_longname.c: New file.
6076
6077         New module 'unictype/category-longname'.
6078         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6079         * lib/unictype/categ_longname.c: New file.
6080         * modules/unictype/category-longname: New file.
6081         * modules/unictype/category-all (Depends-on): Add it.
6082
6083 2011-03-25  Bruno Haible  <bruno@clisp.org>
6084
6085         Tests for module 'unictype/category-LC'.
6086         * modules/unictype/category-LC-tests: New file.
6087         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6088
6089         New module 'unictype/category-LC'.
6090         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6091         (UC_CATEGORY_LC): New declaration.
6092         (UC_CASED_LETTER): New macro.
6093         * lib/gen-uni-tables.c (is_category_LC): New function.
6094         (output_categories): Also handle category LC.
6095         (UC_CATEGORY_MASK_LC): New enumeration value.
6096         (general_category_byname): Also handle category LC.
6097         * lib/unictype/categ_LC.c: New file.
6098         * lib/unictype/categ_LC.h: New file, automatically generated.
6099         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6100         category LC.
6101         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6102         * modules/unictype/category-LC: New file.
6103         * modules/unictype/category-byname (Depends-on): Add
6104         unictype/category-LC.
6105         * modules/unictype/category-all (Depends-on): Likewise.
6106
6107 2011-03-25  Eric Blake  <eblake@redhat.com>
6108
6109         xmalloc: revert yesterday's regression
6110         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6111         realloc's underlying behavior (allowing allocation of zero-size
6112         objects, especially if malloc-gnu is also in use).
6113
6114 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6115
6116         maint.mk: add missing version to VC-tag
6117         * top/maint.mk: git tag was missing actual tag name; add it.
6118
6119         valgrind: do leak checking, and exit with code 1 on error (not 0)
6120         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6121         to VALGRIND.
6122
6123 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6124
6125         posix-modules: say what it does.
6126         * posix-modules: Add a line to the --help output saying what it does.
6127
6128 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         xmalloc: Do not leak if underlying realloc is C99 compatible.
6131         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6132         This avoids a leak on C99-based systems.  See
6133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6134
6135 2011-03-24  Eric Blake  <eblake@redhat.com>
6136
6137         realloc: document portability problem
6138         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6139         passing 0 size to realloc.
6140
6141 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6142
6143         doc: update users.txt
6144         * users.txt: Add cvsps, tmpwatch
6145
6146 2011-03-23  Matt Rice  <ratmice@gmail.com>
6147
6148         doc: update users.txt
6149         * users.txt: Add gdb.
6150
6151 2011-03-23  Jim Meyering  <meyering@redhat.com>
6152
6153         doc: update users.txt
6154         Looking through matches up to the following URL (there are still
6155         several more pages), I found several projects that use gnulib:
6156         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6157         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6158         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6159
6160 2011-03-22  Bruno Haible  <bruno@clisp.org>
6161
6162         unictype/bidi*: Rename functions.
6163         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6164         uc_bidi_class, uc_is_bidi_class): New declarations.
6165         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6166         uc_bidi_category_byname.
6167         (uc_bidi_category_byname): New function.
6168         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6169         u_bidi_category_name.
6170         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6171         (uc_bidi_category_name): New function.
6172         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6173         uc_bidi_category.
6174         (uc_bidi_category): New function.
6175         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6176         uc_is_bidi_category. Invoke uc_bidi_class.
6177         (uc_is_bidi_category): New function.
6178         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6179         instead of uc_bidi_category_byname.
6180         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6181         instead of uc_bidi_category_name.
6182         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6183         uc_bidi_category.
6184         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6185         instead of uc_is_bidi_category.
6186
6187 2011-03-21  Bruno Haible  <bruno@clisp.org>
6188
6189         New module 'unictype/joininggroup-all'.
6190         * modules/unictype/joininggroup-all: New file.
6191
6192         Tests for module 'unictype/joininggroup-of'.
6193         * modules/unictype/joininggroup-of-tests: New file.
6194         * tests/unictype/test-joininggroup_of.c: New file.
6195         * tests/unictype/test-joininggroup_of.h: New file, automatically
6196         generated by gen-uni-tables.
6197
6198         New module 'unictype/joininggroup-of'.
6199         * modules/unictype/joininggroup-of: New file.
6200         * lib/unictype/joininggroup_of.c: New file.
6201         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6202         gen-uni-tables.
6203
6204         Tests for module 'unictype/joininggroup-byname'.
6205         * modules/unictype/joininggroup-byname-tests: New file.
6206         * tests/unictype/test-joininggroup_byname.c: New file.
6207
6208         New module 'unictype/joininggroup-byname'.
6209         * modules/unictype/joininggroup-byname: New file.
6210         * lib/unictype/joininggroup_byname.c: New file.
6211         * lib/unictype/joininggroup_byname.gperf: New file.
6212
6213         Tests for module 'unictype/joininggroup-name'.
6214         * modules/unictype/joininggroup-name-tests: New file.
6215         * tests/unictype/test-joininggroup_name.c: New file.
6216
6217         New module 'unictype/joininggroup-name'.
6218         * modules/unictype/joininggroup-name: New file.
6219         * lib/unictype/joininggroup_name.c: New file.
6220         * lib/unictype/joininggroup_name.h: New file.
6221
6222         New module 'unictype/joiningtype-all'.
6223         * modules/unictype/joiningtype-all: New file.
6224
6225         Tests for module 'unictype/joiningtype-of'.
6226         * modules/unictype/joiningtype-of-tests: New file.
6227         * tests/unictype/test-joiningtype_of.c: New file.
6228         * tests/unictype/test-joiningtype_of.h: New file, automatically
6229         generated by gen-uni-tables.
6230
6231         New module 'unictype/joiningtype-of'.
6232         * modules/unictype/joiningtype-of: New file.
6233         * lib/unictype/joiningtype_of.c: New file.
6234         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6235         gen-uni-tables.
6236
6237         Tests for module 'unictype/joiningtype-byname'.
6238         * modules/unictype/joiningtype-byname-tests: New file.
6239         * tests/unictype/test-joiningtype_byname.c: New file.
6240
6241         New module 'unictype/joiningtype-byname'.
6242         * modules/unictype/joiningtype-byname: New file.
6243         * lib/unictype/joiningtype_byname.c: New file.
6244
6245         Tests for module 'unictype/joiningtype-name'.
6246         * modules/unictype/joiningtype-name-tests: New file.
6247         * tests/unictype/test-joiningtype_name.c: New file.
6248
6249         New module 'unictype/joiningtype-name'.
6250         * modules/unictype/joiningtype-name: New file.
6251         * lib/unictype/joiningtype_name.c: New file.
6252
6253         unictype: Add support for Arabic shaping properties.
6254         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6255         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6256         declarations.
6257         (UC_JOINING_GROUP_*): New enumeration values.
6258         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6259         declarations.
6260         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6261         (unicode_joining_type): New variable.
6262         (UC_JOINING_GROUP_*): New enumeration values.
6263         (unicode_joining_group): New variable.
6264         (fill_arabicshaping, joining_type_as_c_identifier,
6265         output_joining_type_test, output_joining_type,
6266         joining_group_as_c_identifier, output_joining_group_test,
6267         output_joining_group): New functions.
6268         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6269         fill_arabicshaping and output_joining_type_test, output_joining_type,
6270         output_joining_group_test, output_joining_group.
6271         Reported by Simon Josefsson.
6272
6273 2011-03-21  Jim Meyering  <meyering@redhat.com>
6274
6275         strftime: fix a bug in yesterday's change
6276         * lib/strftime.c (add): Accommodate width's initial value of -1.
6277         Otherwise, nstrftime would copy uninitialized data into
6278         the result buffer.
6279
6280 2011-03-21  Jim Meyering  <meyering@redhat.com>
6281
6282         tests: add strftime-tests module
6283         * tests/test-strftime.c: New file.
6284         * modules/strftime-tests: New module.
6285
6286 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6287
6288         strftime: don't assume a byte count fits in 'int'
6289         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6290         found this problem by static analysis, using gcc -Wstrict-overflow
6291         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6292         on an integer overflow having undefined behavior, but it turns out
6293         that the argument is a size, which might not fit in 'int' anyway,
6294
6295 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6296
6297         stdio: don't require ignore_value around fwrite
6298
6299         This patch works around libc bug 11959
6300         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6301         Without this patch, applications must often write
6302         ignore_value (fwrite (...)) even though the ignore_value is
6303         not helpful here.  It's common to write many objects, using
6304         fwrite/printf/etc., and then use ferror to detect output error.
6305
6306         I considered making this patch optional, but decided against it,
6307         because libc is obviously being inconsistent here: there is no
6308         reason libc should insist that user code must inspect fwrite
6309         return's value without also insisting that it inspect printf's,
6310         putchar's, etc.  If user code wants to have a strict style where
6311         all these functions' values are checked (so that ferror need not
6312         be checked), we could add support for that style in a new gnulib
6313         module, but in the meantime it's better to be consistent and to
6314         support common usage.
6315
6316         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6317         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6318         that we are compiling in checking mode, and if not C++, and
6319         if not already wrapping fwrite for some other reason.
6320         (fwrite): #define to rpl_fwrite if the latter is defined.
6321
6322 2011-03-20  Bruno Haible  <bruno@clisp.org>
6323
6324         verror: Fix compilation error introduced on 2011-02-13.
6325         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6326         instead of __attribute__.
6327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6328
6329 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6330             Bruno Haible  <bruno@clisp.org>
6331
6332         socklen: do not depend on sys_socket
6333         While trying to modify Emacs to use gnulib's socklen module,
6334         I discovered a circular dependency: socklen depends on sys_socket
6335         and vice versa.  Emacs can use socklen, but it does not need
6336         sys_socket because it has its own substitute for sys/socket.h.
6337         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6338         gl_TYPE_SOCKLEN_T.
6339         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6340         gl_PREREQ_SYS_H_SOCKET.
6341         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6342         gl_PREREQ_SYS_H_SOCKET.
6343         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6344         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6345         * modules/socklen (Depends-on): Do not depend on sys_socket.
6346         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6347
6348 2011-03-20  Jim Meyering  <meyering@redhat.com>
6349
6350         maint.mk: sort file names *after* new transformation
6351         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6352         prefix would have led to an unwarranted failure in GNU parted.
6353         Sort after that transformation.
6354
6355 2011-03-19  Jim Meyering  <meyering@redhat.com>
6356
6357         maint.mk: fix po-file syntax-check rule
6358         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6359         Patch by Bruno Haible.
6360
6361 2011-03-19  Bruno Haible  <bruno@clisp.org>
6362
6363         socklen: Update comment.
6364         * m4/socklen.m4: Update comment about platforms.
6365
6366 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6367             Bruno Haible  <bruno@clisp.org>
6368
6369         inet_ntop, inet_pton: Simplify.
6370         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6371         documented to provide socklen_t and we already depend on sys_socket.
6372         * modules/inet_pton (Depends-on): Likewise.
6373         * lib/arpa_inet.in.h: Adjust comment.
6374
6375 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6376             Bruno Haible  <bruno@clisp.org>
6377
6378         netdb: Simplify.
6379         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6380         documented to provide socklen_t and we already depend on sys_socket.
6381         * lib/netdb.in.h: Adjust comment.
6382
6383 2011-03-19  Bruno Haible  <bruno@clisp.org>
6384
6385         sys_socket, netdb: Document problem with socklen_t.
6386         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6387         platforms.
6388         * doc/posix-headers/netdb.texi: Likewise.
6389
6390 2011-03-18  Eric Blake  <eblake@redhat.com>
6391
6392         maint.mk: let po check work in VPATH build
6393         * top/maint.mk (po_file): Allow cfg.mk override.
6394         (sc_po_check): Allow VPATH use.
6395         Reported by Jiri Denemark.
6396
6397 2011-03-16  Jim Meyering  <meyering@redhat.com>
6398
6399         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6400         Before, you would have had to create one .x-sc_ file per rule in order
6401         to exempt offending files.  Now, you may instead use a Make variable --
6402         usually defined in cfg.mk -- whose name identifies the affected rule.
6403         * top/maint.mk (_sc_excl): Define.
6404         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6405         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6406
6407 2011-03-13  Bruno Haible  <bruno@clisp.org>
6408
6409         ignore-value tests: Avoid warnings.
6410         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6411         empty for gcc < 3.4.
6412
6413 2011-03-13  Bruno Haible  <bruno@clisp.org>
6414
6415         passfd: Fix link error on Solaris.
6416         * modules/passfd (Description): Correct.
6417         (Depends-on): Add socketlib.
6418         (Link): New section.
6419         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6420
6421 2011-03-13  Bruno Haible  <bruno@clisp.org>
6422
6423         passfd: Fix link error on AIX 5.2.
6424         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6425
6426 2011-03-13  Bruno Haible  <bruno@clisp.org>
6427
6428         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6429         * lib/sys_socket.in.h: Include <stddef.h>.
6430         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6431         CMSG_FIRSTHDR. Remove unused variable.
6432
6433 2011-03-13  Bruno Haible  <bruno@clisp.org>
6434
6435         passfd: Fix compilation error on OpenBSD.
6436         * lib/passfd.c: Include <sys/uio.h>.
6437
6438 2011-03-13  Bruno Haible  <bruno@clisp.org>
6439
6440         passfd test: Fix warnings.
6441         * tests/test-passfd.c: Include <sys/wait.h>.
6442         (main): Fix typo.
6443
6444 2011-03-13  Bruno Haible  <bruno@clisp.org>
6445
6446         passfd module, part 4, tweaks.
6447         * tests/test-passfd.c: Reorder includes.
6448         (main): Fix perror and printf calls.
6449
6450 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6451
6452         passfd module, part 4.
6453         * modules/passfd-tests: New file.
6454         * tests/test-passfd.c: New file.
6455
6456 2011-03-13  Jim Meyering  <meyering@redhat.com>
6457
6458         Makefile: rely on GNU make; derive syntax-check rule names
6459         Rather than requiring that each sc_ rule be listed as a dependent
6460         of "check", use features of GNU make to derive the list.
6461         * Makefile (syntax-check-rules): Define.
6462         (check): Depend on the new variable, not the hard-coded list.
6463
6464 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6465             Bruno Haible  <bruno@clisp.org>
6466
6467         passfd module, part 3.
6468         * lib/passfd.h (recvfd): Add a flags argument.
6469         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6470         (recvfd): Add a flags argument.
6471         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6472         exists.
6473         * modules/passfd (Depends-on): Add cloexec.
6474         Suggested by Eric Blake.
6475
6476 2011-03-13  Bruno Haible  <bruno@clisp.org>
6477
6478         passfd module, part 2, tweaks.
6479         * modules/passfd (Files): Reorder.
6480         (Depends-on): Remove errno.
6481         (Include): Remove <sys/socket.h>, <sys/un.h>.
6482         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6483         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6484         specification header. Include <sys/socket.h> always. Don't include
6485         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6486         (sendfd): Clarify that it sets errno when it fails.
6487         (recvfd): Fix specification.
6488
6489 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6490
6491         passfd module, part 2.
6492         * modules/passfd: New file.
6493         * lib/passfd.h: New file.
6494         * lib/passfd.c: New file.
6495
6496 2011-03-12  Bruno Haible  <bruno@clisp.org>
6497
6498         wcswidth, mbswidth: Avoid integer overflow.
6499         * lib/wcswidth.c: Include <limits.h>.
6500         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6501         * lib/mbswidth.c: Include <limits.h>.
6502         (mbsnwidth): Avoid 'int' overflow.
6503         Reported by Jim Meyering.
6504
6505 2011-03-12  Bruno Haible  <bruno@clisp.org>
6506
6507         futimens, utimensat: Avoid endless recursion on Solaris 10.
6508         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6509         Solaris.
6510         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6511         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6512
6513 2011-03-11  Jim Meyering  <meyering@redhat.com>
6514
6515         maint.mk: relax a regexp to accommodate other formatting styles
6516         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6517         between "ngettext" and the following "(".
6518
6519 2011-03-11  Pádraig Brady <P@draigBrady.com>
6520
6521         maint.mk: suppress a false positive warning
6522         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6523         diagnostics are marked with ngettext.
6524
6525 2011-03-10  Eric Blake  <eblake@redhat.com>
6526
6527         wchar: add explicit dependencies, for Tru64
6528         * modules/mbmemcasecoll (Depends-on): Add wchar.
6529         * modules/mbtowc (Depends-on): Likewise.
6530         * modules/vasnprintf (Depends-on): Likewise.
6531         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6532         * modules/wctomb (Depends-on): Likewise.
6533         Reported by Peter O'Gorman.
6534
6535 2011-03-08  Bruno Haible  <bruno@clisp.org>
6536
6537         passfd module, part 1, tweaks.
6538         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6539         Improve indentation. Improve AC_MSG_CHECKING messages.
6540         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6541         gl_SOCKET_FAMILIES.
6542
6543 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6544
6545         passfd module, part 1.
6546         * m4/afunix.m4: New file.
6547         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6548         sockets.
6549
6550 2011-03-08  Bruno Haible  <bruno@clisp.org>
6551
6552         regex-quote: New API.
6553         * lib/regex-quote.h: Include <stdbool.h>.
6554         (struct regex_quote_spec): New type.
6555         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6556         New declarations.
6557         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6558         'const struct regex_quote_spec *' argument.
6559         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6560         (pcre_special): New constant.
6561         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6562         New functions.
6563         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6564         'const struct regex_quote_spec *' argument.
6565         * modules/regex-quote (Depends-on): Add stdbool.
6566         * tests/test-regex-quote.c (check): Update for new API. Add test for
6567         anchored results.
6568         * NEWS: Mention the API change.
6569         Reported by Reuben Thomas and Eric Blake.
6570
6571 2011-03-06  Bruno Haible  <bruno@clisp.org>
6572
6573         regex-quote: Fix creation of POSIX extended regular expressions.
6574         * lib/regex-quote.c (ere_special): Add grouping and alternation
6575         operators.
6576
6577 2011-03-05  Bruno Haible  <bruno@clisp.org>
6578
6579         doc: Improve doc regarding autopoint vs. gnulib.
6580         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6581         disable autopoint while running autoreconf.
6582         Suggested by Ralf Wildenhues.
6583
6584 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6585
6586         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6587         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6588
6589 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6590
6591         parse-duration: remove xalloc.h dependency
6592         * lib/parse-duration.c (parse_period): handle NULL return from
6593         strdup instead of calling xstrdup().
6594         * modules/parse-duration: remove "xalloc" dependency
6595
6596 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6597
6598         bootstrap: honor m4_base when running aclocal
6599         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6600
6601 2011-03-02  Jim Meyering  <meyering@redhat.com>
6602
6603         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6604         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6605         on request from Matt Booth.
6606
6607 2011-03-01  Eric Blake  <eblake@redhat.com>
6608
6609         test-link: work on Hurd
6610         * tests/test-link.h (test_link): Hurd rejects linking directories
6611         with EISDIR instead of the POSIX-mandated EPERM.
6612
6613 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6614
6615         stdio: simplify by moving files to printf-posix, sigpipe
6616         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6617         since this symbol is needed only if printf is replaced.
6618         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6619         Require gl_ASM_SYMBOL_PREFIX.
6620         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6621         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6622         (Depends-on): Add 'raise'.
6623         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6624         * modules/stdio (Files): Remove lib/stdio-write.c,
6625         m4/asm-underscore.m4.
6626         (Depends-on): Remove 'raise'.
6627
6628         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6629         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6630         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6631         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6632
6633 2011-02-28  Bruno Haible  <bruno@clisp.org>
6634
6635         localcharset: Assume ANSI C behaviour of free().
6636         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6637         calling free().
6638         Suggested by Simon Josefsson <simon@josefsson.org>.
6639
6640 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6641             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6642             Bruno Haible  <bruno@clisp.org>  (tiny change)
6643
6644         On Cygwin, use /proc file system instead of win32 API.
6645         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6646         Win32 file names.
6647         (DllMain): Simplify by removing Cygwin specific code.
6648         (find_shared_library_fullname): Use Linux specific implementation also
6649         for Cygwin.
6650         (get_shared_library_fullname): Update accordingly.
6651         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6652         Win32 file names.
6653         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6654         Cygwin specific code.
6655
6656 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6657             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6658
6659         Fix OpenMP flag detection for various Fortran compilers.
6660         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6661         OpenMP-conditional compilation construct, to force compile
6662         failure with missing OpenMP flag.
6663         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6664
6665 2011-02-25  Eric Blake  <eblake@redhat.com>
6666
6667         strstr: expand test coverage
6668         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6669         compilation.
6670         * tests/test-memmem.c (main): Duplicate tests.
6671         * tests/test-strcasestr.c (main): Likewise.
6672         * tests/test-c-strcasestr.c (main): Likewise.
6673
6674 2011-02-25  Jim Meyering  <meyering@redhat.com>
6675
6676         maint.mk: detect missing-NL-at-EOF, too
6677         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6678         it also detects when a file lacks a newline at EOF.
6679         (require_exactly_one_NL_at_EOF_): Renamed from
6680         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6681         since people may well have .x-sc_... file names tied to the
6682         existing name.  Suggested by Eric Blake.
6683
6684 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6685
6686         dirname: move m4/dos.m4 functionality into lib/dosname.h
6687
6688         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6689         extracts symbols from it, puts them into config.h; but it's much
6690         easier to use the symbols directly.  filename.h already does this,
6691         but it disagrees with dos.m4 in some respects.  This patch
6692         introduces a different include file dosname.h that packages up
6693         dos.m4, and then later we can work on merging filename.h and
6694         dosname.h.  Applications that need only the easy-to-configure
6695         symbols should consider including dosname.h rather than dirname.h.
6696         * NEWS: Mention incompatible changes.
6697         * m4/dos.m4: Remove.
6698         * lib/dosname.h, modules/dosname: New files.
6699         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6700         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6701         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6702         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6703         Include dosname.h, not dirname.h.
6704         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6705         Include dosname.h, for definitions of symbols like ISSLASH
6706         that used to be in config.h.
6707         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6708         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6709         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6710         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6711         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6712         * modules/rmdir (Files): Likewise.
6713         * modules/stat (Files): Likewise.
6714         * modules/unlink (Files): Likewise.
6715         * modules/dirname-lgpl (Depends-on): Add dosname.
6716         * modules/lstat (Depends-on): Likewise.
6717         * modules/openat (Depends-on): Likewise.
6718         * modules/rmdir (Depends-on): Likewise.
6719         * modules/savewd (Depends-on): Likewise.
6720         * modules/stat (Depends-on): Likewise.
6721         * modules/unlink (Depends-on): Likewise.
6722         * modules/openat (Depends-on): Remove dirname-lgpl.
6723         * modules/savewd (Depends-on): Likewise.
6724         * tests/test-dirname.c: Do not use removed symbols like
6725         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6726         the remaining symbols, e.g., ISSLASH ('\\').
6727
6728 2011-02-25  Eric Blake  <eblake@redhat.com>
6729
6730         strstr: revert patches that introduced bug and pessimization
6731         * lib/str-two-way.h: Add another reference.
6732         (two_way_short_needle, two_way_long_needle): Revert changes from
6733         2011-02-24; they pessimize search speed.
6734         (critical_factorization): Partially revert changes from
6735         2010-06-22; they violate the requirement that the left half of the
6736         needle be smaller than the period of the needle.
6737
6738 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6739
6740         filenamecat: remove unnecessary dependency on dirname-lgpl
6741         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6742         is no direct dependency, just an indirect one via filenamecat-lgpl.
6743
6744         remove: remove unnecessary use of m4/dos.m4
6745         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6746         * modules/remove (FILES): Remove m4/dos.m4.
6747
6748         * lib/openat-proc.c: Don't include dirname.h; not needed.
6749
6750         backupfile: remove unnecessary use of m4/dos.m4
6751         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6752         of its symbols are used by the backupfile code.  backupfile.c does
6753         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6754         for the rare case of programs that want all their backup file
6755         names to live within 8+3 limits, and dos.m4 doesn't address that.
6756         * modules/backupfile (Files): Remove m4/dos.m4.
6757
6758 2011-02-24  Jim Meyering  <meyering@redhat.com>
6759
6760         strstr: fix a bug whereby strstr would mistakenly return NULL
6761         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6762         in period calculation.
6763         (two_way_long_needle): Likewise.
6764         The original problem was reported by Mike Stump in
6765         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6766         Ralf Wildenhues provided the short needle and haystack.
6767         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6768         Add a more involved test to trigger the bug in two_way_long_needle.
6769
6770 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6771
6772         gnulib-tool: remove use of bold display in help screen
6773         * gnulib-tool (func_usage): Do not use bold display anymore in the
6774         help screen.  That was just meant to be a temporary emphasis for a
6775         backward-incompatible change.
6776
6777 2011-02-23  Bruno Haible  <bruno@clisp.org>
6778
6779         Fix misindentation of preprocessor directives.
6780         * lib/argp-namefrob.h: Reindent preprocessor directives.
6781         * lib/getopt_int.h (struct _getopt_data): Likewise.
6782         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6783         * lib/vasnprintf.c (decode_long_double): Likewise.
6784         * tests/test-argmatch.c: Insert blank lines, for clarity.
6785         * tests/test-exclude.c: Likewise.
6786
6787 2011-02-22  Bruno Haible  <bruno@clisp.org>
6788
6789         ioctl: Fix for MacOS X in 64-bit mode.
6790         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6791         value.
6792         Suggested by Eric Blake.
6793         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6794
6795 2011-02-22  Jim Meyering  <meyering@redhat.com>
6796
6797         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6798         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6799         in lib/.
6800
6801 2011-02-22  Eric Blake  <eblake@redhat.com>
6802
6803         maint: avoid any CDPATH issue
6804         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6805
6806         maint: adjust cpp indentation for my modules, as well
6807         * Makefile (sc_cpp_indent_check): Add my name.
6808         * lib/fbufmode.c: Filter through cppi.
6809         * lib/fpurge.c: Likewise.
6810         * lib/freadable.c: Likewise.
6811         * lib/freading.c: Likewise.
6812         * lib/fwritable.c: Likewise.
6813         * lib/fwriting.c: Likewise.
6814         * lib/sigaction.c: Likewise.
6815
6816 2011-02-22  Jim Meyering  <meyering@redhat.com>
6817
6818         maint: adjust cpp indentation to reflect nesting depth
6819         I.e., in a block of code that begins with an unnested "#if",
6820         put one space between the "#" in column 1 and following token.
6821         For example,
6822         -#include <sys/vfs.h>
6823         +# include <sys/vfs.h>
6824         Do this only in .c files that are part of a module I maintain.
6825         * lib/linkat.c: Filter through cppi.
6826         * lib/nanosleep.c: Likewise.
6827         * lib/openat.c: Likewise.
6828         * lib/openat-die.c: Likewise.
6829         * lib/dup3.c: Likewise.
6830         * lib/fchownat.c: Likewise.
6831         * lib/flock.c: Likewise.
6832         * lib/fsync.c: Likewise.
6833         * lib/fts.c: Likewise.
6834         * lib/getpass.c: Likewise.
6835         * lib/gettimeofday.c: Likewise.
6836         * lib/userspec.c: Likewise.
6837         * Makefile (sc_cpp_indent_check): New rule, to check this.
6838
6839 2011-02-22  Bruno Haible  <bruno@clisp.org>
6840
6841         New module 'wctomb'.
6842         * lib/stdlib.in.h (wctomb): New declaration.
6843         * lib/wctomb.c: New file.
6844         * lib/wctomb-impl.h: New file.
6845         * m4/wctomb.m4: New file.
6846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6847         REPLACE_WCTOMB.
6848         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6849         REPLACE_WCTOMB.
6850         * modules/wctomb: New file.
6851         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6852         * doc/posix-functions/wctomb.texi: Mention the new module.
6853         * modules/wctob (Depends-on): Add wctomb.
6854
6855 2011-02-22  Bruno Haible  <bruno@clisp.org>
6856
6857         New module 'mbtowc'.
6858         * lib/stdlib.in.h (mbtowc): New declaration.
6859         * lib/mbtowc.c: New file.
6860         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6861         * m4/mbtowc.m4: New file.
6862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6863         REPLACE_MBTOWC.
6864         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6865         REPLACE_MBTOWC.
6866         * modules/mbtowc: New file.
6867         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6868         * doc/posix-functions/mbtowc.texi: Mention the new module.
6869         * modules/btowc (Depends-on): Add mbtowc.
6870
6871 2011-02-22  Bruno Haible  <bruno@clisp.org>
6872
6873         wcrtomb: Add more tests for native Windows platforms.
6874         * tests/test-wcrtomb-w32-1.sh: New file.
6875         * tests/test-wcrtomb-w32-2.sh: New file.
6876         * tests/test-wcrtomb-w32-3.sh: New file.
6877         * tests/test-wcrtomb-w32-4.sh: New file.
6878         * tests/test-wcrtomb-w32-5.sh: New file.
6879         * tests/test-wcrtomb-w32.c: New file.
6880         * modules/wcrtomb-tests (Files): Add them.
6881         (Makefile.am): Arrange to run these tests.
6882         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6883         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6884
6885 2011-02-20  Bruno Haible  <bruno@clisp.org>
6886
6887         wcrtomb: Enhance test.
6888         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6889
6890 2011-02-20  Bruno Haible  <bruno@clisp.org>
6891
6892         mbrtowc: Tiny optimization.
6893         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6894
6895 2011-02-20  Jim Meyering  <meyering@redhat.com>
6896
6897         test-exclude.c: remove unmatched #endif
6898         * tests/test-exclude.c: Remove stray #endif, left over from
6899         the change of a week ago.
6900
6901 2011-02-19  Jim Meyering  <meyering@redhat.com>
6902
6903         git-version-gen: skip "-dirty" check when appropriate
6904         * build-aux/git-version-gen: Don't run any git commands when the
6905         version string comes from .tarball-version.  Prior to this, we
6906         would run git update-index --refresh even from a just-unpacked
6907         tarball directory, and that could affect a .git/ directory in a
6908         parent of the build directory.  Reported by Mike Frysinger.
6909
6910 2011-02-19  Bruno Haible  <bruno@clisp.org>
6911
6912         unictype/property-byname: Reduce the size of the 'data' segment.
6913         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6914
6915 2011-02-19  Bruno Haible  <bruno@clisp.org>
6916
6917         unictype/scripts: Reduce the size of the 'data' segment.
6918         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6919         '%pic'.
6920         * lib/unictype/scripts_byname.gperf: Regenerated.
6921
6922 2011-02-19  Bruno Haible  <bruno@clisp.org>
6923
6924         stdint: Update documentation.
6925         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6926
6927 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6928
6929         stdint: omit redundant check for wchar.h
6930         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6931         always tests whether wchar.h exists, so remove the now-redundant test.
6932
6933 2011-02-18  Bruno Haible  <bruno@clisp.org>
6934
6935         stdint: Cut dependency to module 'wchar'.
6936         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6937         include the necessary prerequisites.
6938         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6939         * modules/stdint (Depends-on): Remove wchar.
6940         (Makefile.am): Substitute HAVE_WCHAR_H.
6941         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6942
6943 2011-02-18  Eric Blake  <eblake@redhat.com>
6944
6945         longlong: skip, rather than fail, on cross-compilation
6946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6947         when cross-compiling; regression from 2011-02-16.
6948
6949 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6950
6951         * NEWS: Mention 2011-02-08 change to stdlib.
6952
6953 2011-02-17  Bruno Haible  <bruno@clisp.org>
6954
6955         getloadavg: Add comments about platforms.
6956         * m4/getloadavg.m4: Add comment.
6957         * lib/getloadavg.c: Likewise.
6958
6959 2011-02-17  Bruno Haible  <bruno@clisp.org>
6960
6961         getloadavg: Fix link error on Solaris 2.6.
6962         * modules/getloadavg (Link): New section.
6963         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6964         linking test-getloadavg.
6965         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6966         getloadavg.
6967
6968 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6969
6970         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6971         It was 'int', but this doesn't match the IRIX 6.5 manual.
6972         Suggested by Bruno Haible in
6973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6974
6975 2011-02-17  Bruno Haible  <bruno@clisp.org>
6976
6977         havelib: Fix comments.
6978         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6979         change.
6980
6981 2011-02-17  Bruno Haible  <bruno@clisp.org>
6982
6983         havelib: Update config.rpath.
6984         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6985
6986 2011-02-17  Bruno Haible  <bruno@clisp.org>
6987
6988         getloadavg test: Add some plausibility checks.
6989         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6990         is improbable.
6991
6992 2011-02-16  Eric Blake  <eblake@redhat.com>
6993
6994         maintainer-makefile: make syntax-check a no-op from tarballs
6995         * top/maint.mk (no-vc-detected): New rule.
6996         (local-checks-available): Use it to avoid hanging if someone tries
6997         'make syntax-check' from a tarball.  Also append to any non-syntax
6998         checks already defined in cfg.mk.
6999
7000 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7001
7002         longlong: tune, particularly for common case of c99
7003
7004         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7005         or running anything if c99, or if unsigned long long int does not
7006         work.  In either case, we know the answer without further tests.
7007         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7008         it at most once, and use its results for both long long int and
7009         unsigned long long int.  This is more likely to be efficient in
7010         the common case where the program wants to check for both long
7011         long int and unsigned long long int.
7012         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7013         since the answer is already known.
7014
7015 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7016
7017         getloadavg: set errno
7018         * lib/getloadavg.c: Set errno when returning -1.  If no other
7019         error number looks appropriate, set it to ENOSYS if the getloadavg
7020         looks like it can't possibly ever work, ENOTSUP otherwise.
7021         Suggested by Bruno Haible in
7022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7023
7024         getloadavg: trim unused parts and speed up 'configure'
7025         * NEWS: Document this.
7026         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7027         always compiled if getloadavg is absent.
7028         Move test code to ...
7029         * tests/test-getloadavg.c: New file, containing previous
7030         contents of test from lib/getloadavg.c.  It also contains
7031         suggestions by Bruno Haible in
7032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7033         * modules/getloadavg-tests: New file.
7034         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7035         Do tests in the same order as they're needed for getloadavg.c.
7036         Omit setgid-related tests that generate symbols KMEM_GROUP,
7037         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7038         Do only the tests that are needed to see whether the system has
7039         getloadavg, moving the other tests into ...
7040         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7041         NLIST_NAME_UNION; nobody should be using it.  Do not define
7042         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7043         relevant, as the user of this module shouldn't care how getloadavg
7044         is implemented.
7045
7046         getloadavg: omit unused var
7047         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7048
7049 2011-02-15  Jim Meyering  <meyering@redhat.com>
7050
7051         doc: update users.txt
7052         * users.txt: Update iwhd's URL.
7053
7054 2011-02-13  Bruno Haible  <bruno@clisp.org>
7055
7056         Consistent macro naming for macros that use GCC __attribute__.
7057         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7058         _ATTRIBUTE_NONNULL_.
7059         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7060         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7061         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7062         ATTRIBUTE_DEPRECATED.
7063         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7064         ATTRIBUTE_NORETURN.
7065         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7066         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7067         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7068         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7069         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7070         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7071         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7072         ATTRIBUTE_SENTINEL.
7073         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7074         ATTRIBUTE_RETURN_CHECK.
7075         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7076         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7077         ATTRIBUTE_NORETURN.
7078         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7079         Reported by Paul Eggert.
7080
7081 2011-02-13  Bruno Haible  <bruno@clisp.org>
7082
7083         Don't interfere with a program's definition of __attribute__.
7084         * lib/argp.h (__attribute__): Remove definition.
7085         (_GL_ATTRIBUTE_FORMAT): New macro.
7086         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7087         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7088         (_GL_ATTRIBUTE_FORMAT): New macro.
7089         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7090         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7091         GCC 3 or newer.
7092         * lib/error.h (__attribute__): Remove definition.
7093         (_GL_ATTRIBUTE_FORMAT): New macro.
7094         (error, error_at_line): Use it.
7095         * lib/hash.h (__attribute__): Remove definition.
7096         (ATTRIBUTE_WUR): Update definition. Define always.
7097         * lib/openat.h (__attribute__): Remove definition.
7098         (ATTRIBUTE_NORETURN): Update definition. Define always.
7099         * lib/sigpipe-die.h (__attribute__): Remove definition.
7100         (ATTRIBUTE_NORETURN): Update definition. Define always.
7101         * lib/vasnprintf.h (__attribute__): Remove definition.
7102         (_GL_ATTRIBUTE_FORMAT): New macro.
7103         (asnprintf, vasnprintf): Use it.
7104         * lib/xalloc.h (__attribute__): Remove definition.
7105         (ATTRIBUTE_NORETURN): Update definition. Define always.
7106         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7107         * lib/xmemdup0.h (__attribute__): Remove definition.
7108         (ATTRIBUTE_NORETURN): Update definition. Define always.
7109         * lib/xprintf.h (__attribute__): Remove definition.
7110         (_GL_ATTRIBUTE_FORMAT): New macro.
7111         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7112         * lib/xstrtol.h (__attribute__): Remove definition.
7113         (ATTRIBUTE_NORETURN): Update definition. Define always.
7114         * lib/xvasprintf.h (__attribute__): Remove definition.
7115         (_GL_ATTRIBUTE_FORMAT): New macro.
7116         (xasprintf, xvasprintf): Use it.
7117         * tests/test-argmatch.c (__attribute__): Remove definition.
7118         (ATTRIBUTE_NORETURN): Update definition. Define always.
7119         * tests/test-exclude.c (__attribute__): Remove definition.
7120         (ATTRIBUTE_NORETURN): Update definition. Define always.
7121         Reported by Paul Eggert.
7122
7123 2011-02-13  Bruno Haible  <bruno@clisp.org>
7124
7125         mbrtowc: Add more tests for native Windows platforms.
7126         * tests/test-mbrtowc-w32-1.sh: New file.
7127         * tests/test-mbrtowc-w32-2.sh: New file.
7128         * tests/test-mbrtowc-w32-3.sh: New file.
7129         * tests/test-mbrtowc-w32-4.sh: New file.
7130         * tests/test-mbrtowc-w32-5.sh: New file.
7131         * tests/test-mbrtowc-w32.c: New file.
7132         * modules/mbrtowc-tests (Files): Add them.
7133         (Makefile.am): Arrange to run these tests.
7134         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7135         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7136
7137 2011-02-13  Bruno Haible  <bruno@clisp.org>
7138
7139         mbrtowc: Work around native Windows bug.
7140         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7141         guess when no suitable locale for testing was found.
7142         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7143
7144 2011-02-13  Bruno Haible  <bruno@clisp.org>
7145
7146         mbsinit: Work around mingw bug.
7147         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7148         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7149         Windows.
7150         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7151
7152 2011-02-13  Bruno Haible  <bruno@clisp.org>
7153
7154         mbsinit: Don't crash for a NULL argument.
7155         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7156         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7157
7158 2011-02-13  Bruno Haible  <bruno@clisp.org>
7159
7160         Don't interfere with a program's definition of __attribute__.
7161         * lib/stdio.in.h (__attribute__): Remove definition.
7162         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7163         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7164         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7165         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7166         * lib/string.in.h (__attribute__): Remove definition.
7167         Reported by Paul Eggert.
7168
7169 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7170
7171         stdlib: don't get in the way of non-GCC __attribute__
7172         See thread starting at
7173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7174         Revert previous stdlib change, installing the following instead:
7175         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7176         to get in the way of a non-GCC compiler that supports __attribute__.
7177         (_GL_ATTRIBUTE_RETURN): New macro.
7178         (_Exit): Use it instead of __attribute__.
7179
7180 2011-02-12  Bruno Haible  <bruno@clisp.org>
7181
7182         quotearg test: Avoid test failure on mingw.
7183         * tests/test-quotearg.sh: Convert the locale identifier from native
7184         Windows syntax to Unix syntax.
7185
7186 2011-02-12  Bruno Haible  <bruno@clisp.org>
7187
7188         setlocale: Prefer gnulib's override over libintl's override.
7189         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7190         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7191         GNULIB_defined_setlocale is set.
7192
7193 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7194
7195         stdlib: support non-GCC __attribute__
7196
7197         Fix a serious and tricky problem encountered when attempting to
7198         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7199         5.5, but it crashed due to memory corruption on Solaris 10 with
7200         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7201         bits that are otherwise zero.  This tagging is optional inside
7202         Emacs but is preferred and is used when __attribute__ ((__aligned
7203         (8))) works, as it does with both recent-enough GCC and with Sun C
7204         5.11.  However, Sun C 5.11 is not GCC and does not #define
7205         __GNUC__ and __GNUC_MINOR__.
7206
7207         When I added the getloadavg module to Emacs, it brought in
7208         stdlib.in.h, which contained this fragment:
7209
7210            #ifndef __attribute__
7211            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7212            #  define __attribute__(Spec)   /* empty */
7213            # endif
7214            #endif
7215
7216         When files that include <stdlib.h> were compiled with Sun C 5.11,
7217         the above code disabled __attribute__ ((__aligned (8))), which
7218         caused variables to not be properly aligned, which eventually led
7219         to the pointer corruption mentioned above.  (This was a bit hard
7220         to diagnose, unfortunately.)
7221
7222         Several "#define __attribute__(X) /* empty */" code snippets need
7223         to be eradicated from Gnulib to work with non-GCC compilers that
7224         support __attribute__.  The Autoconf way to do this is to test for
7225         each kind of attribute that we want support for, and selectively
7226         enable that in source code.
7227
7228         Fix this problem just for stdlib.h, by adding a test for the
7229         __noreturn__ attribute, and change stdlib.in.h to use that test
7230         when needed.  This technique can be easily generalized to the
7231         other *.in.h files and attributes, and a similar technique can be
7232         used for *.h and *.c files.  This patch is enough to solve the
7233         problem for Emacs + getloadavg, and I thought I'd publish it for
7234         feedback before undertaking further, similar fixes in other
7235         modules.
7236
7237         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7238         because it's not needed for stdlib.h.  It merely substitutes the
7239         value directly into stdlib.h.  We may well need to #define it, or
7240         similar symbols, for other modules, but it's nice to also have an
7241         option to not #define it for applications like Emacs that do not
7242         need it.
7243
7244         * lib/stdlib.in.h (__attribute__): Do not #define.
7245         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7246         be defined only if the _Exit module is also used.
7247         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7249         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7250         platforms.
7251         * modules/_Exit (Files): Add m4/attribute.m4.
7252         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7253         * m4/attribute.m4: New file.
7254
7255 2011-02-12  Bruno Haible  <bruno@clisp.org>
7256
7257         wcsrtombs: Work around bug on native Windows.
7258         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7259         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7260         instead of len.
7261         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7262
7263 2011-02-12  Bruno Haible  <bruno@clisp.org>
7264
7265         mbsrtowcs: Work around bug on native Windows.
7266         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7267         against mingw bug.
7268         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7269
7270 2011-02-12  Bruno Haible  <bruno@clisp.org>
7271
7272         Avoid setlocale bugs in tests.
7273         * modules/btowc (Dependencies): Add setlocale.
7274         * modules/c-strcase (Dependencies): Likewise.
7275         * modules/mbmemcasecmp (Dependencies): Likewise.
7276         * modules/mbmemcasecoll (Dependencies): Likewise.
7277         * modules/mbrtowc (Dependencies): Likewise.
7278         * modules/mbscasecmp (Dependencies): Likewise.
7279         * modules/mbscasestr (Dependencies): Likewise.
7280         * modules/mbschr (Dependencies): Likewise.
7281         * modules/mbscspn (Dependencies): Likewise.
7282         * modules/mbsinit (Dependencies): Likewise.
7283         * modules/mbsncasecmp (Dependencies): Likewise.
7284         * modules/mbsnrtowcs (Dependencies): Likewise.
7285         * modules/mbspbrk (Dependencies): Likewise.
7286         * modules/mbspcasecmp (Dependencies): Likewise.
7287         * modules/mbsrchr (Dependencies): Likewise.
7288         * modules/mbsrtowcs (Dependencies): Likewise.
7289         * modules/mbsspn (Dependencies): Likewise.
7290         * modules/mbsstr (Dependencies): Likewise.
7291         * modules/nl_langinfo (Dependencies): Likewise.
7292         * modules/quotearg (Dependencies): Likewise.
7293         * modules/unicase/locale-language (Dependencies): Likewise.
7294         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7295         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7296         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7297         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7298         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7299         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7300         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7301         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7302         * modules/vasnprintf-posix (Dependencies): Likewise.
7303         * modules/wcrtomb (Dependencies): Likewise.
7304         * modules/wcsnrtombs (Dependencies): Likewise.
7305         * modules/wcsrtombs (Dependencies): Likewise.
7306
7307 2011-02-12  Bruno Haible  <bruno@clisp.org>
7308
7309         setlocale: Workaround native Windows bug.
7310         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7311         succeeds but sets LC_CTYPE to "C", report a failure.
7312         * tests/test-setlocale2.sh: New file.
7313         * tests/test-setlocale2.c: New file.
7314         * modules/setlocale-tests (Files): Add the new files.
7315         (Makefile.am): Enable test-setlocale2.sh test.
7316         * doc/posix-functions/setlocale.texi: Mention workaround.
7317
7318 2011-02-11  Bruno Haible  <bruno@clisp.org>
7319
7320         Tests for module 'setlocale'.
7321         * modules/setlocale-tests: New file.
7322         * tests/test-setlocale1.sh: New file.
7323         * tests/test-setlocale1.c: New file.
7324
7325         New module 'setlocale'.
7326         * lib/locale.in.h (setlocale): New declaration.
7327         * lib/setlocale.c: New file, based on
7328         gettext/gettext-runtime/intl/setlocale.c.
7329         * m4/setlocale.m4: New file.
7330         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7331         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7332         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7333         REPLACE_SETLOCALE.
7334         * modules/setlocale: New file.
7335         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7336         * doc/posix-functions/setlocale.texi: Mention the new module.
7337
7338 2011-02-11  Bruno Haible  <bruno@clisp.org>
7339
7340         Prepare for locale dependent tests on mingw.
7341         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7342         because it has the wrong locale encoding.
7343         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7344         French_France.1252 instead of "fr".
7345         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7346         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7347         because it has the wrong locale encoding.
7348         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7349         native Windows, try Turkish_Turkey.65001.
7350         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7351         Chinese_China.54936.
7352
7353         Prepare for locale dependent tests on mingw.
7354         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7355         differently.
7356         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7357         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7358         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7359         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7360
7361 2011-02-11  Eric Blake  <eblake@redhat.com>
7362
7363         strptime: avoid compiler warnings
7364         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7365         compiler warnings about dead code.
7366         Reported by Daniel P. Berrange.
7367
7368 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7369
7370         doc: update users.txt
7371         * users.txt: Add rcs.
7372
7373 2011-02-10  John W. Eaton  <jwe@gnu.org>
7374
7375         doc: update users.txt
7376         * users.txt: Add octave.
7377
7378 2011-02-10  Jim Meyering  <meyering@redhat.com>
7379
7380         doc: update users.txt
7381         * users.txt: Add iwhd.
7382
7383 2011-02-09  Bruno Haible  <bruno@clisp.org>
7384
7385         gnulib-tool: Make copyright notice adjustment more robust.
7386         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7387         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7388         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7389         License".
7390         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7391
7392 2011-02-06  Bruno Haible  <bruno@clisp.org>
7393
7394         New module 'towctrans'.
7395         * modules/towctrans: New file.
7396         * lib/wctype.in.h (towctrans): New declaration.
7397         * lib/towctrans.c: New file.
7398         * lib/towctrans-impl.h: New file.
7399         * m4/towctrans.m4: New file.
7400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7401         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7402         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7403         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7404         * doc/posix-functions/towctrans.texi: Mention the new module.
7405
7406 2011-02-06  Bruno Haible  <bruno@clisp.org>
7407
7408         New module 'wctrans'.
7409         * modules/wctrans: New file.
7410         * lib/wctype.in.h (wctrans): New declaration.
7411         * lib/wctrans.c: New file.
7412         * lib/wctrans-impl.h: New file.
7413         * m4/wctrans.m4: New file.
7414         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7415         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7416         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7417         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7418         * doc/posix-functions/wctrans.texi: Mention the new module.
7419
7420 2011-02-06  Bruno Haible  <bruno@clisp.org>
7421
7422         New module 'iswctype'.
7423         * modules/iswctype: New file.
7424         * lib/wctype.in.h (iswctype): New declaration.
7425         * lib/iswctype.c: New file.
7426         * lib/iswctype-impl.h: New file.
7427         * m4/iswctype.m4: New file.
7428         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7429         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7430         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7431         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7432         * doc/posix-functions/iswctype.texi: Mention the new module and the
7433         HP-UX 11.00 problem.
7434
7435 2011-02-06  Bruno Haible  <bruno@clisp.org>
7436
7437         New module 'wctype'.
7438         * modules/wctype: Change to represent the wctype() substitute.
7439         * lib/wctype.in.h (wctype): New declaration.
7440         * lib/wctype.c: New file.
7441         * lib/wctype-impl.h: New file.
7442         * m4/wctype.m4: New file.
7443         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7444         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7445         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7446         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7447         * doc/posix-functions/wctype.texi: Mention the new module and the
7448         HP-UX 11.00 problem.
7449
7450 2011-02-06  Bruno Haible  <bruno@clisp.org>
7451
7452         wctype-h: Ensure wctype_t and wctrans_t are defined.
7453         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7454         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7455         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7456         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7457         HAVE_WCTRANS_T.
7458         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7459
7460 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7461
7462         flock: fix license typo
7463
7464         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7465         omitted.
7466
7467 2011-02-08  Bruno Haible  <bruno@clisp.org>
7468
7469         Split large sed scripts, for HP-UX sed.
7470         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7471         to avoid HP-UX limit of 99 commands, in the near future.
7472         * modules/stdlib (Makefile.am): Likewise.
7473         * modules/unistd (Makefile.am): Likewise.
7474         * modules/wchar (Makefile.am): Likewise.
7475         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7476         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7478
7479 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7480             Bruno Haible  <bruno@clisp.org>
7481
7482         stdlib: improve random_r modularization
7483         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7484         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7485         you also need the random_r module to get this material right.
7486         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7487         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7488         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7489
7490 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7491
7492         stdlib: don't depend on stdint
7493         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7494         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7495         be independent of whether stdint.h is needed.
7496         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7497         here, instead of ...
7498         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7499         struct random_data should be using the random_r module, not just
7500         the stdlib module (which wouldn't make sense: what package needs
7501         just struct random_data without also needing random_r?).
7502         * modules/stdlib (Depends-on): Remove stdint.
7503
7504         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7505         See the thread rooted at
7506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7507         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7508         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7509         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7510         __VMS)); previously it was always included (via fcntl--.h).
7511         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7512         hand; this is good enough for load averages.  Also, do not use
7513         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7514         flags directly if available and don't bother otherwise.  (Packages
7515         that need the extra reliability should use the modules that define
7516         these flags on older platforms that lack them.)
7517         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7518         fcntl-safer.
7519
7520 2011-02-08  Jim Meyering  <meyering@redhat.com>
7521
7522         di-set.h, ino-map.h: add multiple-inclusion guard
7523         Technically, the guard is required only for ino-map.h, due to its
7524         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7525         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7526         * lib/ino-map.h: Likewise.
7527
7528 2011-02-06  Bruno Haible  <bruno@clisp.org>
7529
7530         iswblank: Ensure declaration on glibc systems.
7531         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7532         * modules/iswblank (Dependencies): Add 'extensions'.
7533         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7534
7535 2011-02-06  Bruno Haible  <bruno@clisp.org>
7536
7537         New module 'iswblank'.
7538         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7539         * modules/iswblank: New file.
7540         * modules/wctype-h (Files): Remove lib/iswblank.c.
7541         (Makefile.am): Substitute GNULIB_ISWBLANK.
7542         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7543         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7544         (gl_WCTYPE_H_DEFAULTS): New macro.
7545         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7546         * modules/iswblank-tests: New file.
7547         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7548         * tests/test-wctype-h.c (main): Remove iswblank tests.
7549         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7550         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7551         of 'wctype-h'.
7552         * NEWS: Mention the change.
7553         * modules/mbchar (Depends-on): Add iswblank.
7554
7555 2011-02-08  Bruno Haible  <bruno@clisp.org>
7556
7557         di-set tests: Refactor.
7558         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7559         unnecessary includes.
7560         (ASSERT): Remove macro.
7561         (main): Make C90 compliant by avoiding variable declaration after
7562         statement.
7563         * modules/di-set-tests (Files): Add tests/macros.h.
7564
7565 2011-02-08  Bruno Haible  <bruno@clisp.org>
7566
7567         ino-map tests: Refactor.
7568         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7569         unnecessary includes.
7570         (ASSERT): Remove macro.
7571         (main): Make C90 compliant by avoiding variable declaration after
7572         statement.
7573         * modules/ino-map-tests (Files): Add tests/macros.h.
7574
7575 2011-02-08  Jim Meyering  <meyering@redhat.com>
7576
7577         di-set: add "const" to a cast
7578         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7579         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7580
7581 2011-02-06  Bruno Haible  <bruno@clisp.org>
7582
7583         Rename module 'wctype' to 'wctype-h'.
7584         * modules/wctype-h: Renamed from modules/wctype.
7585         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7586         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7587         (Files, Depends-on, Makefile.am): Update.
7588         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7589         (Files, Makefile.am): Update.
7590         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7591         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7592         * doc/posix-headers/wctype.texi: Update.
7593         * doc/posix-functions/iswalnum.texi: Update.
7594         * doc/posix-functions/iswalpha.texi: Update.
7595         * doc/posix-functions/iswblank.texi: Update.
7596         * doc/posix-functions/iswcntrl.texi: Update.
7597         * doc/posix-functions/iswdigit.texi: Update.
7598         * doc/posix-functions/iswgraph.texi: Update.
7599         * doc/posix-functions/iswlower.texi: Update.
7600         * doc/posix-functions/iswprint.texi: Update.
7601         * doc/posix-functions/iswpunct.texi: Update.
7602         * doc/posix-functions/iswspace.texi: Update.
7603         * doc/posix-functions/iswupper.texi: Update.
7604         * doc/posix-functions/iswxdigit.texi: Update.
7605         * doc/posix-functions/towlower.texi: Update.
7606         * doc/posix-functions/towupper.texi: Update.
7607         * NEWS: Mention the change.
7608         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7609         * modules/mbchar (Dependencies): Likewise.
7610         * modules/mbswidth (Dependencies): Likewise.
7611         * modules/quotearg (Dependencies): Likewise.
7612         * modules/regex (Dependencies): Likewise.
7613         * modules/wcscasecmp (Dependencies): Likewise.
7614         * modules/wcsncasecmp (Dependencies): Likewise.
7615         * modules/wcwidth (Dependencies): Likewise.
7616
7617 2011-02-06  Bruno Haible  <bruno@clisp.org>
7618
7619         New module 'wcswidth'.
7620         * modules/wcswidth: New file.
7621         * lib/wchar.in.h (wcswidth): New declaration.
7622         * lib/wcswidth.c: New file.
7623         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7624         * m4/wcswidth.m4: New file.
7625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7627         REPLACE_WCSWIDTH.
7628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7629         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7630         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7631         * doc/posix-functions/wcswidth.texi: Mention the new module.
7632
7633 2011-02-06  Bruno Haible  <bruno@clisp.org>
7634
7635         New module 'wcstok'.
7636         * modules/wcstok: New file.
7637         * lib/wchar.in.h (wcstok): New declaration.
7638         * lib/wcstok.c: New file.
7639         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7640         * m4/wcstok.m4: New file.
7641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7644         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7645         * doc/posix-functions/wcstok.texi: Mention the new module.
7646
7647 2011-02-06  Bruno Haible  <bruno@clisp.org>
7648
7649         New module 'wcsstr'.
7650         * modules/wcsstr: New file.
7651         * lib/wchar.in.h (wcsstr): New declaration.
7652         * lib/wcsstr.c: New file.
7653         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7654         * m4/wcsstr.m4: New file.
7655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7658         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7659         * doc/posix-functions/wcsstr.texi: Mention the new module.
7660
7661 2011-02-06  Bruno Haible  <bruno@clisp.org>
7662
7663         New module 'wcspbrk'.
7664         * modules/wcspbrk: New file.
7665         * lib/wchar.in.h (wcspbrk): New declaration.
7666         * lib/wcspbrk.c: New file.
7667         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7668         * m4/wcspbrk.m4: New file.
7669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7672         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7673         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7674
7675 2011-02-06  Bruno Haible  <bruno@clisp.org>
7676
7677         New module 'wcsspn'.
7678         * modules/wcsspn: New file.
7679         * lib/wchar.in.h (wcsspn): New declaration.
7680         * lib/wcsspn.c: New file.
7681         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7682         * m4/wcsspn.m4: New file.
7683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7686         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7687         * doc/posix-functions/wcsspn.texi: Mention the new module.
7688
7689 2011-02-06  Bruno Haible  <bruno@clisp.org>
7690
7691         New module 'wcscspn'.
7692         * modules/wcscspn: New file.
7693         * lib/wchar.in.h (wcscspn): New declaration.
7694         * lib/wcscspn.c: New file.
7695         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7696         * m4/wcscspn.m4: New file.
7697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7700         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7701         * doc/posix-functions/wcscspn.texi: Mention the new module.
7702
7703 2011-02-06  Bruno Haible  <bruno@clisp.org>
7704
7705         New module 'wcsrchr'.
7706         * modules/wcsrchr: New file.
7707         * lib/wchar.in.h (wcsrchr): New declaration.
7708         * lib/wcsrchr.c: New file.
7709         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7710         * m4/wcsrchr.m4: New file.
7711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7714         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7715         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7716
7717 2011-02-06  Bruno Haible  <bruno@clisp.org>
7718
7719         New module 'wcschr'.
7720         * modules/wcschr: New file.
7721         * lib/wchar.in.h (wcschr): New declaration.
7722         * lib/wcschr.c: New file.
7723         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7724         * m4/wcschr.m4: New file.
7725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7728         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7729         * doc/posix-functions/wcschr.texi: Mention the new module.
7730
7731 2011-02-06  Bruno Haible  <bruno@clisp.org>
7732
7733         New module 'wcsdup'.
7734         * modules/wcsdup: New file.
7735         * lib/wchar.in.h (wcsdup): New declaration.
7736         * lib/wcsdup.c: New file.
7737         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7738         * m4/wcsdup.m4: New file.
7739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7742         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7743         * doc/posix-functions/wcsdup.texi: Mention the new module.
7744
7745 2011-02-06  Bruno Haible  <bruno@clisp.org>
7746
7747         New module 'wcsxfrm'.
7748         * modules/wcsxfrm: New file.
7749         * lib/wchar.in.h (wcsxfrm): New declaration.
7750         * lib/wcsxfrm.c: New file.
7751         * lib/wcsxfrm-impl.h: New file.
7752         * m4/wcsxfrm.m4: New file.
7753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7756         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7757         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7758
7759 2011-02-06  Bruno Haible  <bruno@clisp.org>
7760
7761         New module 'wcscoll'.
7762         * modules/wcscoll: New file.
7763         * lib/wchar.in.h (wcscoll): New declaration.
7764         * lib/wcscoll.c: New file.
7765         * lib/wcscoll-impl.h: New file.
7766         * m4/wcscoll.m4: New file.
7767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7770         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7771         * doc/posix-functions/wcscoll.texi: Mention the new module.
7772
7773 2011-02-06  Bruno Haible  <bruno@clisp.org>
7774
7775         New module 'wcsncasecmp'.
7776         * modules/wcsncasecmp: New file.
7777         * lib/wchar.in.h (wcsncasecmp): New declaration.
7778         * lib/wcsncasecmp.c: New file.
7779         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7780         * m4/wcsncasecmp.m4: New file.
7781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7784         HAVE_WCSNCASECMP.
7785         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7786         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7787
7788 2011-02-06  Bruno Haible  <bruno@clisp.org>
7789
7790         New module 'wcscasecmp'.
7791         * modules/wcscasecmp: New file.
7792         * lib/wchar.in.h (wcscasecmp): New declaration.
7793         * lib/wcscasecmp.c: New file.
7794         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7795         * m4/wcscasecmp.m4: New file.
7796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7799         HAVE_WCSCASECMP.
7800         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7801         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7802
7803 2011-02-05  Bruno Haible  <bruno@clisp.org>
7804
7805         New module 'wcsncmp'.
7806         * modules/wcsncmp: New file.
7807         * lib/wchar.in.h (wcsncmp): New declaration.
7808         * lib/wcsncmp.c: New file.
7809         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7810         * m4/wcsncmp.m4: New file.
7811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7814         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7815         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7816
7817 2011-02-05  Bruno Haible  <bruno@clisp.org>
7818
7819         New module 'wcscmp'.
7820         * modules/wcscmp: New file.
7821         * lib/wchar.in.h (wcscmp): New declaration.
7822         * lib/wcscmp.c: New file.
7823         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7824         * m4/wcscmp.m4: New file.
7825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7828         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7829         * doc/posix-functions/wcscmp.texi: Mention the new module.
7830
7831 2011-02-05  Bruno Haible  <bruno@clisp.org>
7832
7833         New module 'wcsncat'.
7834         * modules/wcsncat: New file.
7835         * lib/wchar.in.h (wcsncat): New declaration.
7836         * lib/wcsncat.c: New file.
7837         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7838         * m4/wcsncat.m4: New file.
7839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7842         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7843         * doc/posix-functions/wcsncat.texi: Mention the new module.
7844
7845 2011-02-05  Bruno Haible  <bruno@clisp.org>
7846
7847         New module 'wcscat'.
7848         * modules/wcscat: New file.
7849         * lib/wchar.in.h (wcscat): New declaration.
7850         * lib/wcscat.c: New file.
7851         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7852         * m4/wcscat.m4: New file.
7853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7856         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7857         * doc/posix-functions/wcscat.texi: Mention the new module.
7858
7859 2011-02-05  Bruno Haible  <bruno@clisp.org>
7860
7861         New module 'wcpncpy'.
7862         * modules/wcpncpy: New file.
7863         * lib/wchar.in.h (wcpncpy): New declaration.
7864         * lib/wcpncpy.c: New file.
7865         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7866         * m4/wcpncpy.m4: New file.
7867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7869         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7870         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7871         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7872
7873 2011-02-05  Bruno Haible  <bruno@clisp.org>
7874
7875         New module 'wcsncpy'.
7876         * modules/wcsncpy: New file.
7877         * lib/wchar.in.h (wcsncpy): New declaration.
7878         * lib/wcsncpy.c: New file.
7879         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7880         * m4/wcsncpy.m4: New file.
7881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7884         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7885         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7886
7887 2011-02-05  Bruno Haible  <bruno@clisp.org>
7888
7889         New module 'wcpcpy'.
7890         * modules/wcpcpy: New file.
7891         * lib/wchar.in.h (wcpcpy): New declaration.
7892         * lib/wcpcpy.c: New file.
7893         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7894         * m4/wcpcpy.m4: New file.
7895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7897         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7898         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7899         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7900
7901 2011-02-05  Bruno Haible  <bruno@clisp.org>
7902
7903         New module 'wcscpy'.
7904         * modules/wcscpy: New file.
7905         * lib/wchar.in.h (wcscpy): New declaration.
7906         * lib/wcscpy.c: New file.
7907         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7908         * m4/wcscpy.m4: New file.
7909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7912         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7913         * doc/posix-functions/wcscpy.texi: Mention the new module.
7914
7915 2011-02-05  Bruno Haible  <bruno@clisp.org>
7916
7917         New module 'wcsnlen'.
7918         * modules/wcsnlen: New file.
7919         * lib/wchar.in.h (wcsnlen): New declaration.
7920         * lib/wcsnlen.c: New file.
7921         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7922         * m4/wcsnlen.m4: New file.
7923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7926         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7927         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7928
7929 2011-02-05  Bruno Haible  <bruno@clisp.org>
7930
7931         New module 'wcslen'.
7932         * modules/wcslen: New file.
7933         * lib/wchar.in.h (wcslen): New declaration.
7934         * lib/wcslen.c: New file.
7935         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7936         * m4/wcslen.m4: New file.
7937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7940         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7941         * doc/posix-functions/wcslen.texi: Mention the new module.
7942
7943 2011-02-05  Bruno Haible  <bruno@clisp.org>
7944
7945         New module 'wmemset'.
7946         * modules/wmemset: New file.
7947         * lib/wchar.in.h (wmemset): New declaration.
7948         * lib/wmemset.c: New file.
7949         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7950         * m4/wmemset.m4: New file.
7951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7953         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7954         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7955         * doc/posix-functions/wmemset.texi: Mention the new module.
7956
7957 2011-02-05  Bruno Haible  <bruno@clisp.org>
7958
7959         New module 'wmemmove'.
7960         * modules/wmemmove: New file.
7961         * lib/wchar.in.h (wmemmove): New declaration.
7962         * lib/wmemmove.c: New file.
7963         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7964         * m4/wmemmove.m4: New file.
7965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7967         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7968         HAVE_WMEMMOVE.
7969         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7970         * doc/posix-functions/wmemmove.texi: Mention the new module.
7971
7972 2011-02-05  Bruno Haible  <bruno@clisp.org>
7973
7974         New module 'wmemcpy'.
7975         * modules/wmemcpy: New file.
7976         * lib/wchar.in.h (wmemcpy): New declaration.
7977         * lib/wmemcpy.c: New file.
7978         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7979         * m4/wmemcpy.m4: New file.
7980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7982         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7983         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7984         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7985
7986 2011-02-05  Bruno Haible  <bruno@clisp.org>
7987
7988         New module 'wmemcmp'.
7989         * modules/wmemcmp: New file.
7990         * lib/wchar.in.h (wmemcmp): New declaration.
7991         * lib/wmemcmp.c: New file.
7992         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7993         * m4/wmemcmp.m4: New file.
7994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7996         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7997         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7998         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7999
8000 2011-02-07  Jim Meyering  <meyering@redhat.com>
8001
8002         di-set, ino-map: new modules, from coreutils
8003         * lib/di-set.c: New file.
8004         * lib/di-set.h: Likewise.
8005         * lib/ino-map.c: Likewise.
8006         * lib/ino-map.h: Likewise.
8007         * modules/di-set: Likewise.
8008         * modules/di-set-tests: Likewise.
8009         * modules/ino-map: Likewise.
8010         * modules/ino-map-tests: Likewise.
8011         * tests/test-di-set.c: Likewise.
8012         * tests/test-ino-map.c: Likewise.
8013
8014 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8015
8016         getloadavg: merge minor changes from Emacs
8017
8018         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8019         (getloadavg): Use memset, not bzero.
8020
8021         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8022         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8023         clash (bug#86).
8024
8025 2010-11-14  Bruno Haible  <bruno@clisp.org>
8026
8027         Allow multiple gnulib generated replacements to coexist.
8028         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8029         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8030         * lib/langinfo.in.h (nl_item): Likewise.
8031         * lib/math.in.h (_NaN, NAN): Likewise.
8032         * lib/netdb.in.h (struct addrinfo): Likewise.
8033         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8034         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8035         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8036         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8037         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8038         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8039         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8040         pthread_mutexattr_init, pthread_mutexattr_settype,
8041         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8042         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8043         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8044         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8045         * lib/sched.in.h (struct sched_param): Likewise.
8046         * lib/se-selinux.in.h (security_class_t, security_context_t,
8047         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8048         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8049         lsetfilecon, fsetfilecon, security_check_context,
8050         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8051         Likewise.
8052         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8053         Likewise.
8054         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8055         _gl_function_taking_int_returning_void_t, union sigval,
8056         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8057         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8058         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8059         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8060         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8061         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8062         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8063         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8064         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8065         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8066         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8067         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8068         socklen_t, rpl_fd_isset): Likewise.
8069         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8070         * lib/sys_time.in.h (struct timeval): Likewise.
8071         * lib/sys_times.in.h (struct tms): Likewise.
8072         * lib/sys_utsname.in.h (struct utsname):
8073         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8074         * lib/unistd.in.h (getpagesize): Likewise.
8075         * lib/wchar.in.h (mbstate_t): Likewise.
8076         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8077         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8078         towlower, towupper): Likewise.
8079         Reported by Sam Steingold <sds@gnu.org>.
8080
8081 2011-02-05  Eric Blake  <eblake@redhat.com>
8082
8083         unsetenv: work around Haiku issues
8084         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8085         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8086
8087 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8088
8089         libposix: avoid calling error() within libposix
8090         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8091         is defined.
8092
8093 2011-02-05  Eric Blake  <eblake@redhat.com>
8094
8095         strerror_r-posix: port to cygwin
8096         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8097         implementation.
8098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8099         * tests/test-strerror_r.c (main): Fix test.
8100         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8101         issue.
8102
8103 2011-02-05  Bruno Haible  <bruno@clisp.org>
8104
8105         New module 'wmemchr'.
8106         * modules/wmemchr: New file.
8107         * lib/wchar.in.h (wmemchr): New declaration.
8108         * lib/wmemchr.c: New file.
8109         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8110         * m4/wmemchr.m4: New file.
8111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8113         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8114         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8115         * doc/posix-functions/wmemchr.texi: Mention the new module.
8116
8117 2011-02-04  Eric Blake  <eblake@redhat.com>
8118
8119         fdopendir: detect FreeBSD bug
8120         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8121         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8122
8123 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8124
8125         stdbool: do not define HAVE_STDBOOL_H
8126         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8127         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8128         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8129         imported from the latest Autoconf git.  It was motivated by Emacs,
8130         which uses gnulib but does not need HAVE_STDBOOL_H.
8131
8132 2011-02-04  Bruno Haible  <bruno@clisp.org>
8133
8134         wcsnrtombs: Prepare for new module wwcsnrtombs.
8135         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8136         * lib/wcsnrtombs.c: Include it.
8137         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8138
8139         wcsrtombs: Prepare for new module wwcsrtombs.
8140         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8141         * lib/wcsrtombs.c: Include it.
8142         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8143
8144         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8145         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8146         * lib/mbsnrtowcs.c: Include it.
8147         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8148
8149         mbsrtowcs: Prepare for new module mbsrtowwcs.
8150         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8151         * lib/mbsrtowcs.c: Include it.
8152         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8153
8154 2011-02-04  Bruno Haible  <bruno@clisp.org>
8155
8156         vasnprintf: Reduce use of malloc for small format strings.
8157         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8158         (arguments): Add room for the first 7 arguments.
8159         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8160         (char_directives, u8_directives, u16_directives, u32_directives): Add
8161         room for the first 7 directives.
8162         * lib/printf-parse.c: Include <string.h>.
8163         (PRINTF_PARSE): Change memory handling code so that it uses the first
8164         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8165         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8166         Reported by Pádraig Brady <P@draigbrady.com>.
8167
8168 2011-01-31  Eric Blake  <eblake@redhat.com>
8169
8170         dup2: work around Haiku bug
8171         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8172         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8173         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8174         * tests/test-dup2.c (main): Enhance test.
8175
8176 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8177
8178         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8179         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8180         declared by eglibc 2.11.2.
8181         * lib/stdio.in.h: Likewise.
8182
8183 2011-01-31  Eric Blake  <eblake@redhat.com>
8184
8185         ignore-value: add missing test dependency
8186         * tests/test-ignore-value.c: Revert previous change; stdio.h
8187         provides off_t.
8188         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8189
8190 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8191
8192         mktime: clarify long_int width checking
8193         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8194         the top level, to make it clearer that the assumption about
8195         long_int width is being checked.  See
8196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8197
8198 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8199
8200         ignore-value: Fix self-test.
8201         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8202
8203 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8204
8205         TYPE_MAXIMUM: avoid theoretically undefined behavior
8206         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8207         negative number, which the C Standard says has undefined behavior.
8208         In practice this is not a problem, but might as well do it by the book.
8209         Reported by Rich Felker and Eric Blake; see
8210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8211         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8212         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8214         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8215         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8216         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8217
8218         mktime: #undef mktime before #defining it
8219         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8220
8221         mktime: systematically normalize tm_isdst comparisons
8222         * lib/mktime.c (isdst_differ): New function.
8223         (__mktime_internal): Use it systematically for all isdst comparisons.
8224         This completes the fix for libc BZ #6723, and removes the need for
8225         normalizing tm_isdst.  See
8226         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8227         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8228
8229         mktime: fix some integer overflow issues and sidestep the rest
8230
8231         This was prompted by a bug report by Benjamin Lindner for MinGW
8232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8233         His bug is due to signed integer overflow (0 - INT_MIN), and I
8234         I scanned through mktime.c looking for other integer overflow
8235         problems, fixing all the bugs I found.
8236
8237         Although the C Standard says the resulting code is still not safe
8238         in the presence of integer overflow, in practice it should be good
8239         enough for all real-world two's-complement implementations, except
8240         for debugging environments that deliberately trap on integer
8241         overflow (e.g., gcc -ftrapv).
8242
8243         * lib/mktime.c (WRAPV): New macro.
8244         (SHR): Also check that long_int and time_t shift right in the
8245         usual way, before using the fast-but-unportable method.
8246         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8247         used.  The code already assumed two's complement, so there's
8248         no need to test for alternatives.  All uses removed.
8249         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8250         the C standard.  Problem reported by Rich Felker in
8251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8252         (twos_complement_arithmetic): Also check long_int and time_t.
8253         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8254         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8255         (__mktime_internal): Avoid integer overflow with unary subtraction
8256         in two instances where -1 - X is an adequate replacement for -X,
8257         since the calculations are approximate.
8258
8259 2011-01-29  Eric Blake  <eblake@redhat.com>
8260
8261         mktime: avoid infinite loop
8262         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8263         type; behavior is still undefined but portable to all known targets.
8264         Reported by Rich Felker.
8265
8266 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8267
8268         rename, unlink, same-inode: Relicense.
8269         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8270         * modules/unlink (License): Likewise.
8271         * modules/same-inode (License): Likewise.
8272
8273 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8274
8275         mktime: avoid problems on NetBSD 5 / i386
8276         * lib/mktime.c (long_int): New type.  This works around a problem
8277         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8278         but time_t is 64 bits, and where I expect the existing code is
8279         wrong in some cases.
8280         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8281         (ydhms_diff): Bring back the compile-time check for wide-enough
8282         year and yday.
8283
8284         mktime: fix misspelling in comment
8285         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8286         This merges all recent glibc changes of importance.
8287
8288 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8289
8290         move-if-change: cope with concurrent mv of identical file.
8291         * build-aux/move-if-change (CMPPROG): Accept environment
8292         variable as an override for `cmp'.
8293         (usage): Document CMPPROG.
8294         Adjust comparison to drop stdout.  Cope with failure of mv if
8295         the target file exists and is identical to the source, for
8296         parallel builds.
8297         Report from H.J. Lu against binutils in PR binutils/12283.
8298
8299 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8300
8301         * users.txt: Mention sharutils.
8302
8303 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8304
8305         * users.txt: Mention OATH Toolkit.
8306
8307 2011-01-27  Bruno Haible  <bruno@clisp.org>
8308
8309         Prepare for supporting FreeBSD 10.
8310         * build-aux/config.libpath: Remove handling of freebsd1*.
8311
8312 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8313
8314         Prepare for supporting FreeBSD 10.
8315         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8316         match FreeBSD 10.0.
8317
8318 2011-01-27  Bruno Haible  <bruno@clisp.org>
8319
8320         vma-iter, get-rusage-as: Add OpenBSD support.
8321         * modules/vma-iter (configure.ac): Test for mquery.
8322         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8323         * lib/vma-iter.c: Include <sys/mman.h>.
8324         (vma_iterate): Add an implementation based on mquery().
8325         * lib/resource-ext.h (get_rusage_as): Update comments.
8326         * lib/get-rusage-as.c: Likewise.
8327         * lib/get-rusage-data.c: Likewise.
8328
8329 2011-01-26  Karl Berry  <karl@gnu.org>
8330
8331         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8332         variables to make it easier to override the makeinfo program used.
8333
8334 2011-01-26  Eric Blake  <eblake@redhat.com>
8335
8336         fcntl: work around Haiku F_DUPFD bugs
8337         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8338         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8339         cloexec bit on duplication.
8340         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8341
8342 2011-01-26  Bruno Haible  <bruno@clisp.org>
8343
8344         Enable memory leak tests on AIX.
8345         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8346         * tests/test-fprintf-posix3.c (main): Likewise.
8347
8348 2011-01-26  Bruno Haible  <bruno@clisp.org>
8349
8350         Tests for module 'get-rusage-data'.
8351         * modules/get-rusage-data-tests: New file.
8352         * tests/test-get-rusage-data.c: New file.
8353
8354         New module 'get-rusage-data'.
8355         * lib/resource-ext.h (get_rusage_data): New declaration.
8356         * lib/get-rusage-data.c: New file.
8357         * modules/get-rusage-data: New file.
8358
8359 2011-01-25  Bruno Haible  <bruno@clisp.org>
8360
8361         get-rusage-as: Allow for easier testing.
8362         * lib/resource-ext.h (get_rusage_as): Add comment.
8363         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8364         (main): New function for interactive testing.
8365
8366 2011-01-25  Bruno Haible  <bruno@clisp.org>
8367
8368         vma-iter: Treat Haiku like BeOS.
8369         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8370         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8371
8372 2011-01-25  Eric Blake  <eblake@redhat.com>
8373
8374         c-stack: fix regression on cygwin when libsigsegv is present
8375         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8376
8377 2011-01-24  Bruno Haible  <bruno@clisp.org>
8378
8379         vma-iter: Avoid empty intervals.
8380         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8381         on an empty interval.
8382
8383 2011-01-24  Jim Meyering  <meyering@redhat.com>
8384
8385         u64: remove unnecessary #include
8386         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8387
8388 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8389
8390         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8391         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8392
8393 2011-01-23  Bruno Haible  <bruno@clisp.org>
8394
8395         New module 'vma-iter'.
8396         * lib/vma-iter.h: New file.
8397         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8398         * modules/vma-iter: New file.
8399         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8400         for get_rusage_as_via_iterator.
8401         (vma_iterate_callback): New function.
8402         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8403         * modules/get-rusage-as (Depends-on): Add vma-iter.
8404
8405 2011-01-23  Bruno Haible  <bruno@clisp.org>
8406
8407         uninorm: Tweak includes.
8408         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8409         Reported by Jim Meyering.
8410
8411 2011-01-23  Bruno Haible  <bruno@clisp.org>
8412
8413         get-rusage-as: Improve on NetBSD.
8414         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8415         /proc, like on FreeBSD.
8416
8417 2011-01-23  Jim Meyering  <meyering@redhat.com>
8418
8419         xreadlink.h: remove unnecessary #include
8420         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8421
8422         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8423         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8424
8425 2011-01-23  Bruno Haible  <bruno@clisp.org>
8426
8427         get-rusage-as: Fix bug.
8428         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8429         original limit when aborting the first loop.
8430
8431 2011-01-23  Bruno Haible  <bruno@clisp.org>
8432
8433         wctype: Ensure valid C syntax.
8434         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8435         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8436
8437 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8438
8439         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8441         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8442         as they are needed only for configure's test case.
8443         This removes two unnecessary symbols from config.h.
8444
8445         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8446         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8448         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8449         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8451         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8452         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8454         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8455         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8457         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8459         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8460         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8461         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8462         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8463
8464 2011-01-21  Eric Blake  <eblake@redhat.com>
8465
8466         maintainer-makefile: work with older git for submodule check
8467         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8468         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8469         Reported by Matthias Bolte.
8470
8471         bootstrap: minor portability fixes
8472         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8473         (usage): Omit leading capital and trailing . on help phrases, per
8474         GNU Coding Standards.
8475         (check_versions, top level): Prefix messages with script name.
8476
8477 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8478
8479         bootstrap: support --no-git option
8480         * build-aux/bootstrap: Add --no-git option, to be used when
8481         --gnulib-srcdir points to the exact desired checkout.
8482
8483 2011-01-21  Eric Blake  <eblake@redhat.com>
8484
8485         strerror_r-posix: work with glibc 2.13
8486         * lib/strerror_r.c (strerror_r): Fix return type.
8487
8488 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8489             Bruno Haible  <bruno@clisp.org>
8490
8491         uN_strstr: New unit tests.
8492         * modules/unistr/u8-strstr-tests: New file.
8493         * modules/unistr/u16-strstr-tests: New file.
8494         * modules/unistr/u32-strstr-tests: New file.
8495         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8496         * tests/unistr/test-u8-strstr.c: New file.
8497         * tests/unistr/test-u16-strstr.c: New file.
8498         * tests/unistr/test-u32-strstr.c: New file.
8499
8500 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8501             Bruno Haible  <bruno@clisp.org>
8502
8503         Make uN_strstr functions O(n) worst-case.
8504         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8505         16-bit and 32-bit unit cases, use the unibyte algorithm from
8506         lib/mbsstr.c.
8507         * lib/unistr/u8-strstr.c: Include <string.h>.
8508         (UNIT_IS_UINT8_T): New macro.
8509         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8510         (U_STRLEN, U_STRNLEN): New macros.
8511         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8512         (U_STRLEN, U_STRNLEN): New macros.
8513         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8514         (configure.ac): Update required libunistring version.
8515         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8516         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8517         malloca.
8518         (configure.ac): Update required libunistring version.
8519         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8520         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8521         malloca.
8522         (configure.ac): Update required libunistring version.
8523
8524 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8525             Bruno Haible  <bruno@clisp.org>
8526
8527         Prepare for faster uN_strstr functions.
8528         * lib/str-kmp.h: Support definable UNITs.
8529         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8530         needle_len argument.
8531         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8532         * lib/mbscasestr.c (mbscasestr): Likewise.
8533
8534 2011-01-21  Pádraig Brady <P@draigBrady.com>
8535
8536         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8537         * tests/test-malloca.c (main): Unset the environment variable
8538         to greatly speed up the test.
8539         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8540         * modules/malloca-tests: Depend on unsetenv.
8541
8542 2011-01-21  Pádraig Brady <P@draigBrady.com>
8543
8544         ignore-value: remove stdint dependency
8545         * lib/ignore-value.h: Remove <stdint.h>
8546         * modules/ignore-value: Remove stdint dependency.
8547
8548 2011-01-21  Jim Meyering  <meyering@redhat.com>
8549
8550         maint.mk: adjust variable name to be consistent with other gl_ vars
8551         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8552         to be lower case.
8553
8554 2011-01-20  Jim Meyering  <meyering@redhat.com>
8555
8556         maint.mk: make "check" depend on public-submodule-commit by default
8557         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8558
8559 2011-01-20  Bruno Haible  <bruno@clisp.org>
8560
8561         mbfile, mbiter: Complete change from 2008-12-21.
8562         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8563         * m4/mbiter.m4 (gl_MBITER): Likewise.
8564
8565 2011-01-20  Jim Meyering  <meyering@redhat.com>
8566
8567         init.sh: insert space between each function name and "()"
8568         * tests/init.sh: Make it a little easier to see that a function's
8569         name is "warn_", and not "warn" when looking at the first part of
8570         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8571
8572 2011-01-20  Jim Meyering  <meyering@redhat.com>
8573
8574         mountlist: clean up code formatting
8575         * lib/mountlist.c (read_file_system_list): Split a long line,
8576         correct bracing style, use NULL in place of "(struct statfs *)0",
8577         don't parenthesize return value, add spaces around "=" and after
8578         ";-in-for-stmt".
8579
8580 2011-01-14  Markus Duft <mduft@gentoo.org>
8581
8582         mountlist: add support for Interix
8583         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8584         Apply statvfs to all entries of /dev/fs.
8585         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8586         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8587
8588 2011-01-20  Jim Meyering  <meyering@redhat.com>
8589
8590         maint.mk: improve the public-submodule-commit rule
8591         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8592         to suppress printing of its commands... unless V=1.
8593         Add git submodule's --quiet option to suppress printing of e.g.,
8594         "Entering gnulib" output.
8595         "cd" into $(srcdir) before running git submodule.
8596
8597 2011-01-20  Bruno Haible  <bruno@clisp.org>
8598
8599         include_next: Fix bug introduced on 2011-01-18.
8600         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8601         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8602         ac_cv_header_... variable if the second argument is not 'check'.
8603         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8604         gl_NEXT_HEADERS_INTERNAL.
8605
8606 2011-01-20  Bruno Haible  <bruno@clisp.org>
8607
8608         Allow the user to avoid the GNULIB_TEST_* macros.
8609         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8610         Suggested by Paul Eggert.
8611
8612 2011-01-14  Jim Meyering  <meyering@redhat.com>
8613
8614         bootstrap: avoid failure when there is no .gitmodules file
8615         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8616         has been assigned to, even when its value is the empty string.
8617         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8618         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8619         Reported by John W. Eaton <jwe@gnu.org>.
8620
8621 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8622
8623         assume <ctype.h>, ..., <time.h> exist
8624         For years gnulib has been assuming the existence of the headers
8625         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8626         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8627         them, since they don't appear to be needed.
8628         * README (Portability guidelines): Document this.
8629         * lib/flock.c: Assume <fcntl.h> exists.
8630         * lib/regex_internal.h: Assume <locale.h> exists.
8631         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8633         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8634         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8635         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8636         * m4/regex.m4 (gl_REGEX): Likewise.
8637         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8638         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8639         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8640         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8641         * tests/test-argp.c: Likewise.
8642         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8643
8644         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8645         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8646         AA_APPLE_UNIVERSAL_BUILD.  See
8647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8648         * NEWS: Document this.
8649
8650 2011-01-19  Eric Blake  <eblake@redhat.com>
8651
8652         c-stack: assume stack overflow if SA_SIGINFO unsupported
8653         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8654         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8655         sigaction will work.
8656         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8657         behavior match Linux.
8658         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8659
8660         stdbool-tests: accomodate Haiku
8661         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8662
8663         binary-io: fix O_TEXT on Haiku
8664         * modules/binary-io (Depends-on): Add fcntl-h.
8665         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8666         than blindly undefining O_TEXT.
8667         Reported by Scott McCreary.
8668
8669 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8670
8671         include_next: do not check for standard headers like stddef.h
8672
8673         I found this problem when modifying Emacs to use gnulib.
8674         I noticed that it added HAVE_STDDEF_H to config.h, even though
8675         gnulib always assumes <stddef.h> exists as per README and this
8676         symbol is unnecessary.
8677         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8678         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8679         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8680         faster for headers like stddef.h that are known to exist.
8681         (gl_CHECK_NEXT_HEADERS): Use it.
8682         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8683         rather than gl_CHECK_NEXT_HEADERS.
8684         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8685         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8686
8687 2011-01-18  Eric Blake  <eblake@redhat.com>
8688
8689         ansi-c++-opt: skip C++ dependency style if C++ is unused
8690         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8691         tests when we know C++ compilation is not desired.
8692         Reported by Scott McCreary.
8693
8694 2011-01-18  Bruno Haible  <bruno@clisp.org>
8695
8696         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8697         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8698         (main): Perform test also when getrlimit and setrlimit don't exist or
8699         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8700         limiting the address space size using setrlimit, compare the address
8701         space size before and after the the test.
8702         * tests/test-dprintf-posix2.c: Likewise.
8703         * tests/test-fprintf-posix3.sh: Update skip messages.
8704         * tests/test-dprintf-posix2.sh: Likewise.
8705         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8706         * modules/dprintf-posix-tests (Depends-on): Likewise.
8707         Reported by Bruce Korb <bkorb@gnu.org> and
8708         Gary V. Vaughan <gary@gnu.org>.
8709
8710 2011-01-18  Bruno Haible  <bruno@clisp.org>
8711
8712         get-rusage-as: Improvement for Cygwin.
8713         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8714         areas that are merely reserved.
8715
8716 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8717
8718         strftime: remove dependencies on multibyte modules
8719
8720         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8721         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8722         only if __osf__ is defined, and I suspect OSF doesn't need these
8723         other modules.  If my guess is wrong, we'll need to come up with a
8724         variant of strftime that doesn't need the multibyte modules.
8725
8726         I discovered this problem when attempting modify Emacs to use the
8727         strftime module.  With the previous gnulib, this caused Emacs to
8728         need 31 new files, ranging from lib/config.charset to
8729         m4/wint_t.m4.  This was overkill and I expect would be offputting
8730         to the Emacs maintainers.  After this change, only 6 new files are
8731         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8732         stdbool.m4, and tm_gmtoff.m4.
8733
8734         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8735         Suggested by Bruno Haible in
8736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8737         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8738         and do not check for wchar.h.
8739         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8740         (Depends-on): Remove mbrlen, mbsinit, wchar.
8741
8742 2011-01-18  Bruno Haible  <bruno@clisp.org>
8743
8744         Tests for module 'get-rusage-as'.
8745         * modules/get-rusage-as-tests: New file.
8746         * tests/test-get-rusage-as.c: New file.
8747
8748         New module 'get-rusage-as'.
8749         * modules/get-rusage-as: New file.
8750         * lib/resource-ext.h: New file.
8751         * lib/get-rusage-as.c: New file.
8752
8753 2011-01-17  Eric Blake  <eblake@redhat.com>
8754
8755         sigaction: relax license from LGPLv3+ to LGPLv2+
8756         * modules/sigaction (License): Relax to LGPLv2+.
8757
8758 2011-01-14  Bruno Haible  <bruno@clisp.org>
8759
8760         filemode: Make function declarations usable in C++ mode.
8761         * lib/filemode.h: Enclose function declarations in extern "C" block.
8762         Reported by John W. Eaton <jwe@gnu.org>.
8763
8764 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8765
8766         save-cwd: no longer include "xgetcwd.h"
8767         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8768         This avoids a compilation failure in projects that use save-cwd
8769         without also using the xgetcwd module.
8770
8771 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8772
8773         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8774         This is so that a program like Emacs, which needs only dtoastr,
8775         does not have to bother with distributing and compiling ftoastr
8776         and ldtoastr.
8777         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8778         * modules/dtoastr, modules/ldtoastr: New files.
8779         * modules/ftoastr: Now works just for 'float'.
8780         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8781         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8782         dtoastr.c, ldtoastr.c.
8783
8784 2011-01-11  Jim Meyering  <meyering@redhat.com>
8785
8786         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8787         There is no need to work around the lack of the fchdir function,
8788         since gnulib can now provide a replacement when required.
8789         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8790         * modules/save-cwd (Depends-on): Add fchdir.
8791
8792 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8793
8794         openat, save-cwd: avoid xmalloc
8795
8796         This removes a direct (but undocumented) dependency of openat on
8797         xalloc, along with an indirect dependency via save-cwd.  It also
8798         removes a dependency of save-cwd on xgetcwd, and thereby
8799         indirectly on xalloc.  This change causes the openat substitute
8800         to fall back on save_cwd when memory is tight, and for save_cwd to
8801         fail instead of dying when memory is tight, but that's good enough.
8802         Problem and initial idea for fix reported by Bastien Roucaries in
8803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8804
8805         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8806         xalloc.h (for xmalloc).
8807         (openat_proc_name): Use malloc, not xmalloc.
8808         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8809         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8810
8811         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8812         This avoids heap allocation for file names whose lengths are in
8813         the range 512..1023, with the upper bound increasing to at most
8814         4031 depending on the platform's PATH_MAX.  (We do not want
8815         pathmax.h here as it might supply a non-constant PATH_MAX.)
8816         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8817         Perhaps they should be moved to malloca.h?
8818         (OPENAT_BUFFER_SIZE): Use them.
8819
8820 2011-01-10  Bruno Haible  <bruno@clisp.org>
8821
8822         doc: Update users.txt.
8823         * users.txt: Add recutils.
8824
8825 2011-01-09  Karl Berry  <karl@gnu.org>
8826
8827         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8828
8829         * doc/configmake.texi: New file.
8830         * doc/gnulib.texi: Include it.
8831         * modules/configmake: Move documentation from here.
8832
8833 2011-01-09  Bruno Haible  <bruno@clisp.org>
8834
8835         Update to Unicode 6.0.0.
8836         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8837         (get_lbp): Update for Unicode 6.0.0.
8838         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8839         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8840         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8841         U+11001, U+11038..U+11046. Remove U+06DE.
8842         (uc_width): Fix bounds of planes.
8843         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8844         lib/uniwidth/width.c.
8845         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8846         trailing whitespace removed.
8847         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8848         without comments, but with the original copyright notice.
8849         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8850         * lib/unicase/ignorable.h: Likewise.
8851         * lib/unicase/tocasefold.h: Likewise.
8852         * lib/unicase/tolower.h: Likewise.
8853         * lib/unicase/totitle.h: Likewise.
8854         * lib/unicase/toupper.h: Likewise.
8855         * lib/unictype/bidi_of.h: Likewise.
8856         * lib/unictype/blocks.h: Likewise.
8857         * lib/unictype/categ_C.h: Likewise.
8858         * lib/unictype/categ_Cn.h: Likewise.
8859         * lib/unictype/categ_L.h: Likewise.
8860         * lib/unictype/categ_Ll.h: Likewise.
8861         * lib/unictype/categ_Lm.h: Likewise.
8862         * lib/unictype/categ_Lo.h: Likewise.
8863         * lib/unictype/categ_Lu.h: Likewise.
8864         * lib/unictype/categ_M.h: Likewise.
8865         * lib/unictype/categ_Mc.h: Likewise.
8866         * lib/unictype/categ_Me.h: Likewise.
8867         * lib/unictype/categ_Mn.h: Likewise.
8868         * lib/unictype/categ_N.h: Likewise.
8869         * lib/unictype/categ_Nd.h: Likewise.
8870         * lib/unictype/categ_No.h: Likewise.
8871         * lib/unictype/categ_P.h: Likewise.
8872         * lib/unictype/categ_Po.h: Likewise.
8873         * lib/unictype/categ_S.h: Likewise.
8874         * lib/unictype/categ_Sc.h: Likewise.
8875         * lib/unictype/categ_Sk.h: Likewise.
8876         * lib/unictype/categ_Sm.h: Likewise.
8877         * lib/unictype/categ_So.h: Likewise.
8878         * lib/unictype/categ_of.h: Likewise.
8879         * lib/unictype/combining.h: Likewise.
8880         * lib/unictype/ctype_alnum.h: Likewise.
8881         * lib/unictype/ctype_alpha.h: Likewise.
8882         * lib/unictype/ctype_graph.h: Likewise.
8883         * lib/unictype/ctype_lower.h: Likewise.
8884         * lib/unictype/ctype_print.h: Likewise.
8885         * lib/unictype/ctype_punct.h: Likewise.
8886         * lib/unictype/ctype_upper.h: Likewise.
8887         * lib/unictype/decdigit.h: Likewise.
8888         * lib/unictype/digit.h: Likewise.
8889         * lib/unictype/numeric.h: Likewise.
8890         * lib/unictype/pr_alphabetic.h: Likewise.
8891         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8892         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8893         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8894         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8895         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8896         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8897         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8898         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8899         * lib/unictype/pr_case_ignorable.h: Likewise.
8900         * lib/unictype/pr_cased.h: Likewise.
8901         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8902         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8903         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8904         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8905         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8906         * lib/unictype/pr_combining.h: Likewise.
8907         * lib/unictype/pr_composite.h: Likewise.
8908         * lib/unictype/pr_currency_symbol.h: Likewise.
8909         * lib/unictype/pr_decimal_digit.h: Likewise.
8910         * lib/unictype/pr_deprecated.h: Likewise.
8911         * lib/unictype/pr_format_control.h: Likewise.
8912         * lib/unictype/pr_grapheme_base.h: Likewise.
8913         * lib/unictype/pr_grapheme_extend.h: Likewise.
8914         * lib/unictype/pr_grapheme_link.h: Likewise.
8915         * lib/unictype/pr_id_continue.h: Likewise.
8916         * lib/unictype/pr_id_start.h: Likewise.
8917         * lib/unictype/pr_ideographic.h: Likewise.
8918         * lib/unictype/pr_lowercase.h: Likewise.
8919         * lib/unictype/pr_math.h: Likewise.
8920         * lib/unictype/pr_numeric.h: Likewise.
8921         * lib/unictype/pr_other_alphabetic.h: Likewise.
8922         * lib/unictype/pr_other_id_continue.h: Likewise.
8923         * lib/unictype/pr_other_math.h: Likewise.
8924         * lib/unictype/pr_punctuation.h: Likewise.
8925         * lib/unictype/pr_sentence_terminal.h: Likewise.
8926         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8927         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8928         * lib/unictype/pr_unified_ideograph.h: Likewise.
8929         * lib/unictype/pr_uppercase.h: Likewise.
8930         * lib/unictype/pr_xid_continue.h: Likewise.
8931         * lib/unictype/pr_xid_start.h: Likewise.
8932         * lib/unictype/scripts.h: Likewise.
8933         * lib/unictype/scripts_byname.gperf: Likewise.
8934         * lib/unictype/sy_java_ident.h: Likewise.
8935         * lib/unigbrk/gbrkprop.h: Likewise.
8936         * lib/unilbrk/lbrkprop1.h: Likewise.
8937         * lib/unilbrk/lbrkprop2.h: Likewise.
8938         * lib/uninorm/decomposition-table2.h: Likewise.
8939         * lib/uniwbrk/wbrkprop.h: Likewise.
8940         * tests/unicase/test-cased.c: Likewise.
8941         * tests/unicase/test-ignorable.c: Likewise.
8942         * tests/unicase/test-uc_tolower.c: Likewise.
8943         * tests/unicase/test-uc_totitle.c: Likewise.
8944         * tests/unicase/test-uc_toupper.c: Likewise.
8945         * tests/unictype/test-categ_C.c: Likewise.
8946         * tests/unictype/test-categ_Cn.c: Likewise.
8947         * tests/unictype/test-categ_L.c: Likewise.
8948         * tests/unictype/test-categ_Ll.c: Likewise.
8949         * tests/unictype/test-categ_Lm.c: Likewise.
8950         * tests/unictype/test-categ_Lo.c: Likewise.
8951         * tests/unictype/test-categ_Lu.c: Likewise.
8952         * tests/unictype/test-categ_M.c: Likewise.
8953         * tests/unictype/test-categ_Mc.c: Likewise.
8954         * tests/unictype/test-categ_Me.c: Likewise.
8955         * tests/unictype/test-categ_Mn.c: Likewise.
8956         * tests/unictype/test-categ_N.c: Likewise.
8957         * tests/unictype/test-categ_Nd.c: Likewise.
8958         * tests/unictype/test-categ_No.c: Likewise.
8959         * tests/unictype/test-categ_P.c: Likewise.
8960         * tests/unictype/test-categ_Po.c: Likewise.
8961         * tests/unictype/test-categ_S.c: Likewise.
8962         * tests/unictype/test-categ_Sc.c: Likewise.
8963         * tests/unictype/test-categ_Sk.c: Likewise.
8964         * tests/unictype/test-categ_Sm.c: Likewise.
8965         * tests/unictype/test-categ_So.c: Likewise.
8966         * tests/unictype/test-ctype_alnum.c: Likewise.
8967         * tests/unictype/test-ctype_alpha.c: Likewise.
8968         * tests/unictype/test-ctype_graph.c: Likewise.
8969         * tests/unictype/test-ctype_lower.c: Likewise.
8970         * tests/unictype/test-ctype_print.c: Likewise.
8971         * tests/unictype/test-ctype_punct.c: Likewise.
8972         * tests/unictype/test-ctype_upper.c: Likewise.
8973         * tests/unictype/test-decdigit.h: Likewise.
8974         * tests/unictype/test-digit.h: Likewise.
8975         * tests/unictype/test-numeric.h: Likewise.
8976         * tests/unictype/test-pr_alphabetic.c: Likewise.
8977         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8978         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8979         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8980         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8981         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8982         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8983         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8984         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8985         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8986         * tests/unictype/test-pr_cased.c: Likewise.
8987         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8988         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8989         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8990         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8991         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8992         * tests/unictype/test-pr_combining.c: Likewise.
8993         * tests/unictype/test-pr_composite.c: Likewise.
8994         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8995         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8996         * tests/unictype/test-pr_deprecated.c: Likewise.
8997         * tests/unictype/test-pr_format_control.c: Likewise.
8998         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8999         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9000         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9001         * tests/unictype/test-pr_id_continue.c: Likewise.
9002         * tests/unictype/test-pr_id_start.c: Likewise.
9003         * tests/unictype/test-pr_ideographic.c: Likewise.
9004         * tests/unictype/test-pr_lowercase.c: Likewise.
9005         * tests/unictype/test-pr_math.c: Likewise.
9006         * tests/unictype/test-pr_numeric.c: Likewise.
9007         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9008         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9009         * tests/unictype/test-pr_other_math.c: Likewise.
9010         * tests/unictype/test-pr_punctuation.c: Likewise.
9011         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9012         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9013         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9014         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9015         * tests/unictype/test-pr_uppercase.c: Likewise.
9016         * tests/unictype/test-pr_xid_continue.c: Likewise.
9017         * tests/unictype/test-pr_xid_start.c: Likewise.
9018         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9019         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9020         changes.
9021         * lib/unictype/categ_Cc.h: Likewise.
9022         * lib/unictype/categ_Cf.h: Likewise.
9023         * lib/unictype/categ_Co.h: Likewise.
9024         * lib/unictype/categ_Cs.h: Likewise.
9025         * lib/unictype/categ_Lt.h: Likewise.
9026         * lib/unictype/categ_Nl.h: Likewise.
9027         * lib/unictype/categ_Pc.h: Likewise.
9028         * lib/unictype/categ_Pd.h: Likewise.
9029         * lib/unictype/categ_Pe.h: Likewise.
9030         * lib/unictype/categ_Pf.h: Likewise.
9031         * lib/unictype/categ_Pi.h: Likewise.
9032         * lib/unictype/categ_Ps.h: Likewise.
9033         * lib/unictype/categ_Z.h: Likewise.
9034         * lib/unictype/categ_Zl.h: Likewise.
9035         * lib/unictype/categ_Zp.h: Likewise.
9036         * lib/unictype/categ_Zs.h: Likewise.
9037         * lib/unictype/ctype_blank.h: Likewise.
9038         * lib/unictype/ctype_cntrl.h: Likewise.
9039         * lib/unictype/ctype_digit.h: Likewise.
9040         * lib/unictype/ctype_space.h: Likewise.
9041         * lib/unictype/ctype_xdigit.h: Likewise.
9042         * lib/unictype/mirror.h: Likewise.
9043         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9044         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9045         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9046         * lib/unictype/pr_bidi_control.h: Likewise.
9047         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9048         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9049         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9050         * lib/unictype/pr_bidi_pdf.h: Likewise.
9051         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9052         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9053         * lib/unictype/pr_dash.h: Likewise.
9054         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9055         * lib/unictype/pr_diacritic.h: Likewise.
9056         * lib/unictype/pr_extender.h: Likewise.
9057         * lib/unictype/pr_hex_digit.h: Likewise.
9058         * lib/unictype/pr_hyphen.h: Likewise.
9059         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9060         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9061         * lib/unictype/pr_ignorable_control.h: Likewise.
9062         * lib/unictype/pr_iso_control.h: Likewise.
9063         * lib/unictype/pr_join_control.h: Likewise.
9064         * lib/unictype/pr_left_of_pair.h: Likewise.
9065         * lib/unictype/pr_line_separator.h: Likewise.
9066         * lib/unictype/pr_logical_order_exception.h: Likewise.
9067         * lib/unictype/pr_non_break.h: Likewise.
9068         * lib/unictype/pr_not_a_character.h: Likewise.
9069         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9070         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9071         * lib/unictype/pr_other_id_start.h: Likewise.
9072         * lib/unictype/pr_other_lowercase.h: Likewise.
9073         * lib/unictype/pr_other_uppercase.h: Likewise.
9074         * lib/unictype/pr_paired_punctuation.h: Likewise.
9075         * lib/unictype/pr_paragraph_separator.h: Likewise.
9076         * lib/unictype/pr_pattern_syntax.h: Likewise.
9077         * lib/unictype/pr_pattern_white_space.h: Likewise.
9078         * lib/unictype/pr_private_use.h: Likewise.
9079         * lib/unictype/pr_quotation_mark.h: Likewise.
9080         * lib/unictype/pr_radical.h: Likewise.
9081         * lib/unictype/pr_soft_dotted.h: Likewise.
9082         * lib/unictype/pr_space.h: Likewise.
9083         * lib/unictype/pr_titlecase.h: Likewise.
9084         * lib/unictype/pr_variation_selector.h: Likewise.
9085         * lib/unictype/pr_white_space.h: Likewise.
9086         * lib/unictype/pr_zero_width.h: Likewise.
9087         * lib/unictype/sy_c_ident.h: Likewise.
9088         * lib/unictype/sy_c_whitespace.h: Likewise.
9089         * lib/unictype/sy_java_whitespace.h: Likewise.
9090         * lib/uninorm/composition-table.gperf: Likewise.
9091         * lib/uninorm/decomposition-table1.h: Likewise.
9092         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9093         LB8.
9094         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9095         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9096         * modules/unictype/*: Bump version number of expected libunistring
9097         version.
9098
9099 2011-01-09  Bruno Haible  <bruno@clisp.org>
9100
9101         Update to Unicode 5.2.0.
9102         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9103         trailing whitespace removed.
9104
9105 2011-01-09  Bruno Haible  <bruno@clisp.org>
9106
9107         New Unicode character properties, from Unicode 5.2.0.
9108         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9109         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9110         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9111         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9112         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9113         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9114         uc_is_property_cased, uc_is_property_case_ignorable,
9115         uc_is_property_changes_when_lowercased,
9116         uc_is_property_changes_when_uppercased,
9117         uc_is_property_changes_when_titlecased,
9118         uc_is_property_changes_when_casefolded,
9119         uc_is_property_changes_when_casemapped): New declarations.
9120         * lib/unictype/pr_byname.gperf: Add the new properties.
9121         * modules/unictype/property-byname (Depends-on): Depend on the new
9122         properties modules.
9123         * modules/unictype/property-all (Depends-on): Likewise.
9124         * MODULES.html.sh (Unicode string functions): Add
9125         unictype/property-case-ignorable, unictype/property-cased,
9126         unictype/property-changes-when-casefolded,
9127         unictype/property-changes-when-casemapped,
9128         unictype/property-changes-when-lowercased,
9129         unictype/property-changes-when-titlecased,
9130         unictype/property-changes-when-uppercased.
9131
9132         New module 'unictype/property-changes-when-casemapped'.
9133         * modules/unictype/property-changes-when-casemapped: New file.
9134         * lib/unictype/pr_changes_when_casemapped.c: New file.
9135         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9136         generated by gen-uni-tables.
9137         * modules/unictype/property-changes-when-casemapped-tests: New file.
9138         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9139         automatically generated by gen-uni-tables.
9140
9141         New module 'unictype/property-changes-when-casefolded'.
9142         * modules/unictype/property-changes-when-casefolded: New file.
9143         * lib/unictype/pr_changes_when_casefolded.c: New file.
9144         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9145         generated by gen-uni-tables.
9146         * modules/unictype/property-changes-when-casefolded-tests: New file.
9147         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9148         automatically generated by gen-uni-tables.
9149
9150         New module 'unictype/property-changes-when-titlecased'.
9151         * modules/unictype/property-changes-when-titlecased: New file.
9152         * lib/unictype/pr_changes_when_titlecased.c: New file.
9153         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9154         generated by gen-uni-tables.
9155         * modules/unictype/property-changes-when-titlecased-tests: New file.
9156         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9157         automatically generated by gen-uni-tables.
9158
9159         New module 'unictype/property-changes-when-uppercased'.
9160         * modules/unictype/property-changes-when-uppercased: New file.
9161         * lib/unictype/pr_changes_when_uppercased.c: New file.
9162         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9163         generated by gen-uni-tables.
9164         * modules/unictype/property-changes-when-uppercased-tests: New file.
9165         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9166         automatically generated by gen-uni-tables.
9167
9168         New module 'unictype/property-changes-when-lowercased'.
9169         * modules/unictype/property-changes-when-lowercased: New file.
9170         * lib/unictype/pr_changes_when_lowercased.c: New file.
9171         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9172         generated by gen-uni-tables.
9173         * modules/unictype/property-changes-when-lowercased-tests: New file.
9174         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9175         automatically generated by gen-uni-tables.
9176
9177         New module 'unictype/property-case-ignorable'.
9178         * modules/unictype/property-case-ignorable: New file.
9179         * lib/unictype/pr_case_ignorable.c: New file.
9180         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9181         by gen-uni-tables.
9182         * modules/unictype/property-case-ignorable-tests: New file.
9183         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9184         generated by gen-uni-tables.
9185
9186         New module 'unictype/property-cased'.
9187         * modules/unictype/property-cased: New file.
9188         * lib/unictype/pr_cased.c: New file.
9189         * lib/unictype/pr_cased.h: New file, automatically generated by
9190         gen-uni-tables.
9191         * modules/unictype/property-cased-tests: New file.
9192         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9193         gen-uni-tables.
9194
9195 2011-01-09  Bruno Haible  <bruno@clisp.org>
9196
9197         Update to Unicode 5.2.0.
9198         * lib/gen-uni-tables.c (output_predicate, output_category,
9199         output_combclass, output_bidi_category, output_decimal_digit_test,
9200         output_decimal_digit, output_digit_test, output_digit,
9201         output_numeric_test, output_numeric, output_mirror, output_scripts,
9202         output_scripts_byname, output_blocks, output_ident_category): Fix
9203         comment header.
9204         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9205         get_wbp.
9206         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9207         items.
9208         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9209         Changes_When_Lowercased, Changes_When_Uppercased,
9210         Changes_When_Titlecased, Changes_When_Casefolded,
9211         Changes_When_Casemapped.
9212         (is_property_alphabetic, is_property_default_ignorable_code_point):
9213         Update for Unicode 5.2.0.
9214         (is_property_cased, is_property_case_ignorable,
9215         is_property_changes_when_lowercased,
9216         is_property_changes_when_uppercased,
9217         is_property_changes_when_titlecased,
9218         is_property_changes_when_casefolded,
9219         is_property_changes_when_casemapped): New functions.
9220         (output_properties): Output also the properties cased, case_ignorable,
9221         changes_when_lowercased, changes_when_uppercased,
9222         changes_when_titlecased, changes_when_casefolded,
9223         changes_when_casemapped.
9224         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9225         Unicode TR#11 revision 17 -> 19.
9226         (LBP_CP): New enumeration value.
9227         (LBP_*): Adjust values accordingly.
9228         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9229         TR#14 revision 22 -> 24.
9230         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9231         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9232         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9233         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9234         is_WBP_MIDLETTER.
9235         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9236         the code1 and code2 of each composition rule.
9237         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9238         * lib/unicase/ignorable.h: Likewise.
9239         * lib/unicase/tocasefold.h: Likewise.
9240         * lib/unicase/tolower.h: Likewise.
9241         * lib/unicase/totitle.h: Likewise.
9242         * lib/unicase/toupper.h: Likewise.
9243         * lib/unictype/bidi_of.h: Likewise.
9244         * lib/unictype/blocks.h: Likewise.
9245         * lib/unictype/categ_C.h: Likewise.
9246         * lib/unictype/categ_Cf.h: Likewise.
9247         * lib/unictype/categ_Cn.h: Likewise.
9248         * lib/unictype/categ_L.h: Likewise.
9249         * lib/unictype/categ_Ll.h: Likewise.
9250         * lib/unictype/categ_Lm.h: Likewise.
9251         * lib/unictype/categ_Lo.h: Likewise.
9252         * lib/unictype/categ_Lu.h: Likewise.
9253         * lib/unictype/categ_M.h: Likewise.
9254         * lib/unictype/categ_Mc.h: Likewise.
9255         * lib/unictype/categ_Mn.h: Likewise.
9256         * lib/unictype/categ_N.h: Likewise.
9257         * lib/unictype/categ_Nd.h: Likewise.
9258         * lib/unictype/categ_Nl.h: Likewise.
9259         * lib/unictype/categ_No.h: Likewise.
9260         * lib/unictype/categ_P.h: Likewise.
9261         * lib/unictype/categ_Pd.h: Likewise.
9262         * lib/unictype/categ_Po.h: Likewise.
9263         * lib/unictype/categ_S.h: Likewise.
9264         * lib/unictype/categ_Sc.h: Likewise.
9265         * lib/unictype/categ_So.h: Likewise.
9266         * lib/unictype/categ_of.h: Likewise.
9267         * lib/unictype/combining.h: Likewise.
9268         * lib/unictype/ctype_alnum.h: Likewise.
9269         * lib/unictype/ctype_alpha.h: Likewise.
9270         * lib/unictype/ctype_graph.h: Likewise.
9271         * lib/unictype/ctype_lower.h: Likewise.
9272         * lib/unictype/ctype_print.h: Likewise.
9273         * lib/unictype/ctype_punct.h: Likewise.
9274         * lib/unictype/ctype_upper.h: Likewise.
9275         * lib/unictype/decdigit.h: Likewise.
9276         * lib/unictype/digit.h: Likewise.
9277         * lib/unictype/numeric.h: Likewise.
9278         * lib/unictype/pr_alphabetic.h: Likewise.
9279         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9280         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9281         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9282         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9283         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9284         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9285         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9286         * lib/unictype/pr_combining.h: Likewise.
9287         * lib/unictype/pr_composite.h: Likewise.
9288         * lib/unictype/pr_currency_symbol.h: Likewise.
9289         * lib/unictype/pr_dash.h: Likewise.
9290         * lib/unictype/pr_decimal_digit.h: Likewise.
9291         * lib/unictype/pr_deprecated.h: Likewise.
9292         * lib/unictype/pr_diacritic.h: Likewise.
9293         * lib/unictype/pr_extender.h: Likewise.
9294         * lib/unictype/pr_grapheme_base.h: Likewise.
9295         * lib/unictype/pr_grapheme_extend.h: Likewise.
9296         * lib/unictype/pr_grapheme_link.h: Likewise.
9297         * lib/unictype/pr_id_continue.h: Likewise.
9298         * lib/unictype/pr_id_start.h: Likewise.
9299         * lib/unictype/pr_ideographic.h: Likewise.
9300         * lib/unictype/pr_ignorable_control.h: Likewise.
9301         * lib/unictype/pr_logical_order_exception.h: Likewise.
9302         * lib/unictype/pr_lowercase.h: Likewise.
9303         * lib/unictype/pr_numeric.h: Likewise.
9304         * lib/unictype/pr_other_alphabetic.h: Likewise.
9305         * lib/unictype/pr_punctuation.h: Likewise.
9306         * lib/unictype/pr_sentence_terminal.h: Likewise.
9307         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9308         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9309         * lib/unictype/pr_unified_ideograph.h: Likewise.
9310         * lib/unictype/pr_uppercase.h: Likewise.
9311         * lib/unictype/pr_xid_continue.h: Likewise.
9312         * lib/unictype/pr_xid_start.h: Likewise.
9313         * lib/unictype/pr_zero_width.h: Likewise.
9314         * lib/unictype/scripts.h: Likewise.
9315         * lib/unictype/scripts_byname.gperf: Likewise.
9316         * lib/unictype/sy_java_ident.h: Likewise.
9317         * lib/unigbrk/gbrkprop.h: Likewise.
9318         * lib/unilbrk/lbrkprop1.h: Likewise.
9319         * lib/unilbrk/lbrkprop2.h: Likewise.
9320         * lib/unilbrk/lbrktables.h: Likewise.
9321         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9322         LBP_CP. Implement rule LB30.
9323         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9324         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9325         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9326         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9327         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9328         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9329         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9330         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9331         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9332         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9333         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9334         bits instead of 16 bits in the code1 and code2 of each composition
9335         rule.
9336         (uc_composition): Update for Unicode 5.2.0.
9337         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9338         * lib/uninorm/decomposition-table2.h: Likewise.
9339         * lib/uniwbrk/wbrkprop.h: Likewise.
9340         * tests/unicase/test-cased.c: Likewise.
9341         * tests/unicase/test-ignorable.c: Likewise.
9342         * tests/unicase/test-uc_tolower.c: Likewise.
9343         * tests/unicase/test-uc_totitle.c: Likewise.
9344         * tests/unicase/test-uc_toupper.c: Likewise.
9345         * tests/unictype/test-categ_C.c: Likewise.
9346         * tests/unictype/test-categ_Cf.c: Likewise.
9347         * tests/unictype/test-categ_Cn.c: Likewise.
9348         * tests/unictype/test-categ_L.c: Likewise.
9349         * tests/unictype/test-categ_Ll.c: Likewise.
9350         * tests/unictype/test-categ_Lm.c: Likewise.
9351         * tests/unictype/test-categ_Lo.c: Likewise.
9352         * tests/unictype/test-categ_Lu.c: Likewise.
9353         * tests/unictype/test-categ_M.c: Likewise.
9354         * tests/unictype/test-categ_Mc.c: Likewise.
9355         * tests/unictype/test-categ_Mn.c: Likewise.
9356         * tests/unictype/test-categ_N.c: Likewise.
9357         * tests/unictype/test-categ_Nd.c: Likewise.
9358         * tests/unictype/test-categ_Nl.c: Likewise.
9359         * tests/unictype/test-categ_No.c: Likewise.
9360         * tests/unictype/test-categ_P.c: Likewise.
9361         * tests/unictype/test-categ_Pd.c: Likewise.
9362         * tests/unictype/test-categ_Po.c: Likewise.
9363         * tests/unictype/test-categ_S.c: Likewise.
9364         * tests/unictype/test-categ_Sc.c: Likewise.
9365         * tests/unictype/test-categ_So.c: Likewise.
9366         * tests/unictype/test-ctype_alnum.c: Likewise.
9367         * tests/unictype/test-ctype_alpha.c: Likewise.
9368         * tests/unictype/test-ctype_graph.c: Likewise.
9369         * tests/unictype/test-ctype_lower.c: Likewise.
9370         * tests/unictype/test-ctype_print.c: Likewise.
9371         * tests/unictype/test-ctype_punct.c: Likewise.
9372         * tests/unictype/test-ctype_upper.c: Likewise.
9373         * tests/unictype/test-decdigit.h: Likewise.
9374         * tests/unictype/test-digit.h: Likewise.
9375         * tests/unictype/test-numeric.h: Likewise.
9376         * tests/unictype/test-pr_alphabetic.c: Likewise.
9377         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9378         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9379         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9380         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9381         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9382         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9383         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9384         * tests/unictype/test-pr_combining.c: Likewise.
9385         * tests/unictype/test-pr_composite.c: Likewise.
9386         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9387         * tests/unictype/test-pr_dash.c: Likewise.
9388         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9389         * tests/unictype/test-pr_deprecated.c: Likewise.
9390         * tests/unictype/test-pr_diacritic.c: Likewise.
9391         * tests/unictype/test-pr_extender.c: Likewise.
9392         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9393         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9394         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9395         * tests/unictype/test-pr_id_continue.c: Likewise.
9396         * tests/unictype/test-pr_id_start.c: Likewise.
9397         * tests/unictype/test-pr_ideographic.c: Likewise.
9398         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9399         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9400         * tests/unictype/test-pr_lowercase.c: Likewise.
9401         * tests/unictype/test-pr_numeric.c: Likewise.
9402         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9403         * tests/unictype/test-pr_punctuation.c: Likewise.
9404         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9405         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9406         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9407         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9408         * tests/unictype/test-pr_uppercase.c: Likewise.
9409         * tests/unictype/test-pr_xid_continue.c: Likewise.
9410         * tests/unictype/test-pr_xid_start.c: Likewise.
9411         * tests/unictype/test-pr_zero_width.c: Likewise.
9412         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9413         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9414         changed behaviour: line breaking is now disallowed between a letter
9415         or '=' and '('.
9416         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9417         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9418         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9419         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9420         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9421         lib/uniwidth/width.c.
9422         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9423         without comments, but with the original copyright notice.
9424         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9425         changes.
9426         * lib/unictype/categ_Cc.h: Likewise.
9427         * lib/unictype/categ_Co.h: Likewise.
9428         * lib/unictype/categ_Cs.h: Likewise.
9429         * lib/unictype/categ_Lt.h: Likewise.
9430         * lib/unictype/categ_Me.h: Likewise.
9431         * lib/unictype/categ_Pc.h: Likewise.
9432         * lib/unictype/categ_Pe.h: Likewise.
9433         * lib/unictype/categ_Pf.h: Likewise.
9434         * lib/unictype/categ_Pi.h: Likewise.
9435         * lib/unictype/categ_Ps.h: Likewise.
9436         * lib/unictype/categ_Sk.h: Likewise.
9437         * lib/unictype/categ_Sm.h: Likewise.
9438         * lib/unictype/categ_Z.h: Likewise.
9439         * lib/unictype/categ_Zl.h: Likewise.
9440         * lib/unictype/categ_Zp.h: Likewise.
9441         * lib/unictype/categ_Zs.h: Likewise.
9442         * lib/unictype/ctype_blank.h: Likewise.
9443         * lib/unictype/ctype_cntrl.h: Likewise.
9444         * lib/unictype/ctype_digit.h: Likewise.
9445         * lib/unictype/ctype_space.h: Likewise.
9446         * lib/unictype/ctype_xdigit.h: Likewise.
9447         * lib/unictype/mirror.h: Likewise.
9448         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9449         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9450         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9451         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9452         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9453         * lib/unictype/pr_bidi_control.h: Likewise.
9454         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9455         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9456         * lib/unictype/pr_bidi_pdf.h: Likewise.
9457         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9458         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9459         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9460         * lib/unictype/pr_format_control.h: Likewise.
9461         * lib/unictype/pr_hex_digit.h: Likewise.
9462         * lib/unictype/pr_hyphen.h: Likewise.
9463         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9464         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9465         * lib/unictype/pr_iso_control.h: Likewise.
9466         * lib/unictype/pr_join_control.h: Likewise.
9467         * lib/unictype/pr_left_of_pair.h: Likewise.
9468         * lib/unictype/pr_line_separator.h: Likewise.
9469         * lib/unictype/pr_math.h: Likewise.
9470         * lib/unictype/pr_non_break.h: Likewise.
9471         * lib/unictype/pr_not_a_character.h: Likewise.
9472         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9473         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9474         * lib/unictype/pr_other_id_continue.h: Likewise.
9475         * lib/unictype/pr_other_id_start.h: Likewise.
9476         * lib/unictype/pr_other_lowercase.h: Likewise.
9477         * lib/unictype/pr_other_math.h: Likewise.
9478         * lib/unictype/pr_other_uppercase.h: Likewise.
9479         * lib/unictype/pr_paired_punctuation.h: Likewise.
9480         * lib/unictype/pr_paragraph_separator.h: Likewise.
9481         * lib/unictype/pr_pattern_syntax.h: Likewise.
9482         * lib/unictype/pr_pattern_white_space.h: Likewise.
9483         * lib/unictype/pr_private_use.h: Likewise.
9484         * lib/unictype/pr_quotation_mark.h: Likewise.
9485         * lib/unictype/pr_radical.h: Likewise.
9486         * lib/unictype/pr_soft_dotted.h: Likewise.
9487         * lib/unictype/pr_space.h: Likewise.
9488         * lib/unictype/pr_titlecase.h: Likewise.
9489         * lib/unictype/pr_variation_selector.h: Likewise.
9490         * lib/unictype/pr_white_space.h: Likewise.
9491         * lib/unictype/sy_c_ident.h: Likewise.
9492         * lib/unictype/sy_c_whitespace.h: Likewise.
9493         * lib/unictype/sy_java_whitespace.h: Likewise.
9494         * modules/uni*/*: Bump version number of expected libunistring version.
9495         Reported by Simon Josefsson.
9496
9497 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9498
9499         useless-if-before-free: fix typo in --help and make the internal,
9500         automatic version date update process work once again.
9501         --help output contained a NUL character instead of the
9502         backslash-zero that was intended.  Also, the "must lie within
9503         the first 8 lines" line is on line 9, and hence not getting
9504         automatically updated.
9505         * build-aux/useless-if-before-free: Fix the former by adding a
9506         backslash, and the latter by condensing the three lines of what-it-does
9507         to a single line, leaving one line of slack for the future.
9508
9509 2011-01-09  Bruno Haible  <bruno@clisp.org>
9510
9511         uniwidth/width: Fix width of U+1D173..U+1D17A.
9512         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9513         symbolic_width, output_width_property_test): New functions.
9514         (main): Invoke output_nonspacing_property, output_width_property_test.
9515         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9516         U+1D173..U+1D17A.
9517         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9518         1.
9519         * modules/uniwidth/*: Bump version number of expected libunistring
9520         version.
9521         * modules/unilbrk/*: Likewise.
9522
9523 2011-01-08  Bruno Haible  <bruno@clisp.org>
9524
9525         uninorm tests: Preserve copyright of Unicode data file.
9526         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9527         Mention modifications.
9528
9529 2011-01-08  Bruno Haible  <bruno@clisp.org>
9530
9531         gen-uni-tables: Prepare for Unicode 5.2.0.
9532         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9533         (debug_output_lbp, output_lbp): Update.
9534
9535 2011-01-08  Bruno Haible  <bruno@clisp.org>
9536
9537         unilbrk: Clarify gen-uni-tables.c code.
9538         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9539         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9540         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9541
9542 2011-01-07  Bruno Haible  <bruno@clisp.org>
9543
9544         strtod: Restore errno when successfully parsing Infinity or NaN.
9545         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9546         restore the original errno.
9547
9548 2011-01-07  Bruno Haible  <bruno@clisp.org>
9549
9550         remove test: Avoid failure on HP-UX 11.
9551         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9552
9553 2011-01-07  Bruno Haible  <bruno@clisp.org>
9554
9555         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9556         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9557         error code.
9558
9559 2011-01-07  Pádraig Brady <P@draigBrady.com>
9560
9561         ignore-value: fixup comments, and add Eric Blake
9562         as an author since he rewrote the macros.
9563         * lib/ignore-value.h (ignore_value):  State that
9564         we now support aggregates.  Also specify exactly
9565         when the GCC warn_unused_result feature was added.
9566
9567 2011-01-06  Eric Blake  <eblake@redhat.com>
9568
9569         ignore-value: support aggregate types
9570         * lib/ignore-value.h (ignore_value): Provide separate gcc
9571         definition.
9572         * modules/ignore-value-tests: New test module.
9573         * tests/test-ignore-value.c: New test.
9574
9575         maint.mk: improve sc_prohibit_strcmp regex
9576         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9577         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9578         definition of STRNEQ.
9579
9580         signal: work around Haiku issue with SIGBUS
9581         * lib/siglist.h: Add comment.
9582         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9583         strsignal's favoring of SIGSEGV.
9584         * tests/test-signal.c (main): Avoid test failure.
9585         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9586         Reported by Scott McCreary.
9587
9588         maint.mk: add pre-release check to ensure submodule commits are public
9589         * top/maint.mk (public-submodule-commit): New rule.
9590         (submodule-checks): New variable.
9591         (alpha beta stable): Depend on the variable.
9592
9593 2011-01-05  Pádraig Brady <P@draigBrady.com>
9594         and Jim Meyering  <meyering@redhat.com>
9595
9596         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9597         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9598         (ATTRIBUTE_DEPRECATED): Define.
9599         (_ignore_case): New function.
9600         (ignore_value): New macro, to replace the old function.
9601         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9602         * modules/ignore-value (Depends-on): Add stdint.
9603
9604 2011-01-04  Eric Blake  <eblake@redhat.com>
9605
9606         doc: regenerate INSTALL
9607         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9608         @firstparagraphindent support, now that autoconf dropped it.
9609         (INSTALL_PRELUDE): Reinstate old macro.
9610         * doc/install.texi: Resync from autoconf.
9611         * doc/INSTALL: Reflect recent autoconf update.
9612         * doc/INSTALL.ISO: Likewise.
9613         * doc/INSTALL.UTF-8: Likewise.
9614         Reported by Karl Berry.
9615
9616 2011-01-04  Bruce Korb  <address@hidden>
9617
9618         git-version-gen: avoid a sub-shell
9619         * build-aux/git-version-gen: Redirect stderr in `...` via
9620         "exec 2>...", rather than via an added sub-shell.
9621
9622 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9623
9624         git-version-gen: use (...) rather than sh -c '...'
9625         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9626         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9627
9628 2011-01-03  Jim Meyering  <meyering@redhat.com>
9629
9630         git-version-gen: convert leading TABs to spaces
9631         * build-aux/git-version-gen: Expand leading TABs.
9632
9633         git-version-gen: handle failed "git rev-list"
9634         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9635         from git and proceeding as if it had succeeded but printed no SHA1
9636         checksums, suppress the diagnostic and handle the failure.
9637         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9638
9639         git-version-gen: include command name in one more diagnostic
9640         * build-aux/git-version-gen: When the required .tarball-version file
9641         was missing or unreadable, you might see the diagnostic from "cat",
9642         but no trace of the name of the invoking script.  Now, you still see
9643         the diagnostic from cat, but also get one from "git-version-gen: ".
9644         Inspired by a patch from Bruce Korb.
9645
9646         update-copyright: adjust test to match changed code
9647         * tests/test-update-copyright.sh: Change test's expected output
9648         to match new actual output.
9649
9650 2011-01-02  Bruno Haible  <bruno@clisp.org>
9651
9652         getlogin_r: Avoid test failure on HP-UX 11.
9653         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9654         ERANGE when the second argument is zero.
9655         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9656         portability problem.
9657
9658 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9659
9660         * build-aux/update-copyright: doc Simon's changes
9661
9662 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9663
9664         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9665         environment variable.
9666
9667 2011-01-02  Bruno Haible  <bruno@clisp.org>
9668
9669         unigbrk: Avoid gcc warnings.
9670         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9671         unused variable.
9672         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9673         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9674         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9675         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9676         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9677         Change type of first argument to 'const char *'.
9678         (main): Remove unused variable.
9679         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9680         type of first argument to 'const char *'.
9681         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9682         Likewise.
9683         (main): Change type of variable 's'.
9684         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9685         to 'int'.
9686
9687 2011-01-02  Bruno Haible  <bruno@clisp.org>
9688
9689         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9690         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9691         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9692         bug.
9693         * lib/pwrite.c: Undo 2010-12-31 patch.
9694         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9695
9696 2011-01-02  Bruno Haible  <bruno@clisp.org>
9697
9698         pread: Fix test whether it works.
9699         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9700
9701 2011-01-02  Bruno Haible  <bruno@clisp.org>
9702
9703         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9704         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9705         ends in "6". Don't require a specific month name. Try also the locale
9706         names found on HP-UX 11 and Solaris 7.
9707
9708 2011-01-02  Bruno Haible  <bruno@clisp.org>
9709
9710         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9711         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9712         C linkage.
9713         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9714
9715 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9716
9717         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9718         for consistency, since the "cluster" term is not used elsewhere.
9719         * lib/unigbrk.in.h: Update name.
9720         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9721         * lib/unigbrk/u16-grapheme-next.c: Update name.
9722         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9723         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9724         * lib/unigbrk/u32-grapheme-next.c: Update name.
9725         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9726         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9727         * lib/unigbrk/u8-grapheme-next.c: Update name.
9728         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9729         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9730         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9731         Suggested by Bruno Haible.
9732
9733 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9734
9735         Remove module 'u8-grapheme-len' as too redundant with
9736         'u8-grapheme-next'.
9737         * modules/unigbrk/u8-grapheme-len: Delete file.
9738         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9739         * lib/unigbrk.in.h: Remove prototype for deleted function.
9740         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9741         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9742
9743         Remove module 'u16-grapheme-len' as too redundant with
9744         'u16-grapheme-next'.
9745         * modules/unigbrk/u16-grapheme-len: Delete file.
9746         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9747         * lib/unigbrk.in.h: Remove prototype for deleted function.
9748         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9749         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9750
9751         Remove module 'u32-grapheme-len' as too redundant with
9752         'u32-grapheme-next'.
9753         * modules/unigbrk/u32-grapheme-len: Delete file.
9754         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9755         * lib/unigbrk.in.h: Remove prototype for deleted function.
9756         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9757         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9758
9759         Suggested by Bruno Haible.
9760
9761 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9762
9763         * unigbrk.in.h: Fix typo: "ben" => "been".
9764         Reported by Bruno Haible.
9765
9766 2011-01-01  Jim Meyering  <meyering@redhat.com>
9767
9768         maint: update almost all copyright ranges to include 2011
9769         Run the new "make update-copyright" rule.
9770
9771 2011-01-01  Jim Meyering  <meyering@redhat.com>
9772
9773         maint: update-copyright: exempt doc/INSTALL*
9774         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9775         since they are generated.  Suggested by Bruno Haible.
9776
9777 2011-01-01  Jim Meyering  <meyering@redhat.com>
9778
9779         maint: refine the update-copyright rule
9780         * Makefile (update-copyright): Also exclude any file that includes
9781         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9782         code that merely generates the comment.
9783
9784 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9785
9786         New module 'u8-grapheme-len'.
9787         * modules/unigbrk/u8-grapheme-len: New file.
9788         * modules/unigbrk/u8-grapheme-len-tests: New file.
9789         * lib/unigbrk.in.h: Add prototype for new function.
9790         * lib/unigbrk/u8-grapheme-len.c: New file.
9791         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9792
9793         New module 'u16-grapheme-len'.
9794         * modules/unigbrk/u16-grapheme-len: New file.
9795         * modules/unigbrk/u16-grapheme-len-tests: New file.
9796         * lib/unigbrk.in.h: Add prototype for new function.
9797         * lib/unigbrk/u16-grapheme-len.c: New file.
9798         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9799
9800         New module 'u32-grapheme-len'.
9801         * modules/unigbrk/u32-grapheme-len: New file.
9802         * modules/unigbrk/u32-grapheme-len-tests: New file.
9803         * lib/unigbrk.in.h: Add prototype for new function.
9804         * lib/unigbrk/u32-grapheme-len.c: New file.
9805         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9806
9807         New module 'u8-grapheme-next'.
9808         * modules/unigbrk/u8-grapheme-next: New file.
9809         * modules/unigbrk/u8-grapheme-next-tests: New file.
9810         * lib/unigbrk.in.h: Add prototype for new function.
9811         * lib/unigbrk/u8-grapheme-next.c: New file.
9812         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9813
9814         New module 'u16-grapheme-next'.
9815         * modules/unigbrk/u16-grapheme-next: New file.
9816         * modules/unigbrk/u16-grapheme-next-tests: New file.
9817         * lib/unigbrk.in.h: Add prototype for new function.
9818         * lib/unigbrk/u16-grapheme-next.c: New file.
9819         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9820
9821         New module 'u32-grapheme-next'.
9822         * modules/unigbrk/u32-grapheme-next: New file.
9823         * modules/unigbrk/u32-grapheme-next-tests: New file.
9824         * lib/unigbrk.in.h: Add prototype for new function.
9825         * lib/unigbrk/u32-grapheme-next.c: New file.
9826         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9827
9828         New module 'u8-grapheme-prev'.
9829         * modules/unigbrk/u8-grapheme-prev: New file.
9830         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9831         * lib/unigbrk.in.h: Add prototype for new function.
9832         * lib/unigbrk/u8-grapheme-prev.c: New file.
9833         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9834
9835         New module 'u16-grapheme-prev'.
9836         * modules/unigbrk/u16-grapheme-prev: New file.
9837         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9838         * lib/unigbrk.in.h: Add prototype for new function.
9839         * lib/unigbrk/u16-grapheme-prev.c: New file.
9840         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9841
9842         New module 'u32-grapheme-prev'.
9843         * modules/unigbrk/u32-grapheme-prev: New file.
9844         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9845         * lib/unigbrk.in.h: Add prototype for new function.
9846         * lib/unigbrk/u32-grapheme-prev.c: New file.
9847         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9848
9849         New module 'u8-grapheme-breaks'.
9850         * modules/unigbrk/u8-grapheme-breaks: New file.
9851         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9852         * lib/unigbrk.in.h: Add prototype for new function.
9853         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9854         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9855
9856         New module 'u16-grapheme-breaks'.
9857         * modules/unigbrk/u16-grapheme-breaks: New file.
9858         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9859         * lib/unigbrk.in.h: Add prototype for new function.
9860         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9861         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9862
9863         New module 'u32-grapheme-breaks'.
9864         * modules/unigbrk/u32-grapheme-breaks: New file.
9865         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9866         * lib/unigbrk.in.h: Add prototype for new function.
9867         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9868         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9869
9870         New module 'ulc-grapheme-breaks'.
9871         * modules/unigbrk/ulc-grapheme-breaks: New file.
9872         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9873         * m4/locale-ar.m4: New file.
9874         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9875         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9876         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9877
9878 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9879
9880         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9881         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9882         modified how this file was generated before I initially submitted
9883         the module, but failed to regenerate it.  This meant that several
9884         of the level2 entries were wrong.
9885         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9886         Remove the division-by-2 that is folded into the table now that
9887         gbrkprop.h has been regenerated properly.  Now -1 entries are
9888         handled correctly.
9889
9890         New module 'unigbrk/uc-gbrk-prop-tests'.
9891         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9892         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9893         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9894         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9895
9896 2011-01-01  Bruno Haible  <bruno@clisp.org>
9897
9898         Avoid use of hexadecimal escapes.
9899         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9900         instead of hexadecimal escapes.
9901
9902 2011-01-01  Jim Meyering  <meyering@redhat.com>
9903
9904         maint: new rule to update copyright year ranges
9905         * Makefile (update-copyright): New rule.
9906
9907         maint: indent with TABs in Makefile
9908         * Makefile: Expand leading sequences of spaces to TABs
9909
9910         version-etc: update the copyright year it reports
9911         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9912
9913 2010-12-31  Bruno Haible  <bruno@clisp.org>
9914
9915         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9916         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9917         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9918         zero.
9919
9920 2010-12-31  Bruno Haible  <bruno@clisp.org>
9921
9922         pwrite: Work around HP-UX 11.11 bug.
9923         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9924         works and set REPLACE_PWRITE if not.
9925         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9926         function.
9927         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9928
9929 2010-12-31  Bruno Haible  <bruno@clisp.org>
9930
9931         pread: Work around HP-UX 11 bugs.
9932         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9933         and set REPLACE_PREAD if not.
9934         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9935
9936 2010-12-31  Eric Blake  <eblake@redhat.com>
9937
9938         nl_langinfo: fix YESEXPR on Irix 6.5
9939         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9940         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9941         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9942         it.
9943
9944 2010-12-31  Bruno Haible  <bruno@clisp.org>
9945
9946         iconv: Document HP-UX 11 bug.
9947         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9948
9949 2010-12-31  Bruno Haible  <bruno@clisp.org>
9950
9951         ldexpl: Fix link error on HP-UX 11.
9952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9953         LDEXPL_LIBM, using $ISNANL_LIBM.
9954
9955 2010-12-31  Eric Blake  <eblake@redhat.com>
9956
9957         ftello: avoid compilation failure with SunStudio c89
9958         * lib/ftello.c (ftello): Use lseek, not llseek.
9959
9960         tests: avoid failing coreutils tests on cygwin
9961         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9962         (create_exe_shims_): Return 0 when skipping.
9963
9964 2010-12-31  Bruno Haible  <bruno@clisp.org>
9965
9966         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9967         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9968
9969 2010-12-31  Bruno Haible  <bruno@clisp.org>
9970
9971         waitpid: Fix link error in C++ mode.
9972         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9973
9974 2010-12-31  Bruno Haible  <bruno@clisp.org>
9975
9976         isnan: Use GCC built-ins when possible.
9977         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9978         __builtin_isnan.
9979         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9980         (isnan): Define using GCC built-ins for GCC >= 4.0.
9981
9982 2010-12-31  Bruno Haible  <bruno@clisp.org>
9983
9984         isnand: Fix mistake.
9985         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9986         __builtin_isnand.
9987
9988 2010-12-31  Bruno Haible  <bruno@clisp.org>
9989
9990         open: Avoid C++ error on HP-UX 11.
9991         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9992
9993 2010-12-31  Bruno Haible  <bruno@clisp.org>
9994
9995         time_r: Add missing declarations on HP-UX 11.
9996         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9997         instead of HAVE_LOCALTIME_R.
9998         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9999         HAVE_LOCALTIME_R always.
10000         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10001         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10002         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10003         HAVE_LOCALTIME_R.
10004         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10005         * doc/posix-functions/localtime_r.texi: Likewise.
10006
10007 2010-12-29  Eric Blake  <eblake@redhat.com>
10008
10009         mountlist: tweak previous commit
10010         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10011         Reported by Paul Eggert.
10012
10013         mountlist: fix local drive detection on cygwin
10014         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10015         that works for cygwin.
10016
10017 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10018
10019         ftoastr, snprintf: ftoastr + snprintf module
10020         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10021         since the snprintf module now should be good enough here.
10022         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10023         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10024         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10025         GNULIB_SNPRINTF only for the test directory, and the latter
10026         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10027         seems to suffice by itself.
10028
10029 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10030
10031         alloca: one step towards thread-safety
10032         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10033         need for a static variable.  All callers changed.  This does not
10034         make the alloca replacement thread-safe, but it's one step.
10035
10036         tests: minor indenting change
10037         * tests/init.sh: Sync from coreutils housekeeping patch
10038         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10039         to keep lines within 80 columns.
10040
10041 2010-12-28  Jim Meyering  <meyering@redhat.com>
10042
10043         regex: don't infloop on persistent failing calloc
10044         * lib/regexec.c (build_trtable): Return failure indication upon
10045         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10046         In glibc, this was fixed for version 2.13:
10047         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10048
10049 2010-12-28  Bruno Haible  <bruno@clisp.org>
10050             Paul Eggert <eggert@cs.ucla.edu>
10051
10052         linkat: Make implementation robust against system behaviour variations.
10053         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10054         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10055         way, and to -2 if it needs a generic runtime test.
10056         * lib/linkat.c (solaris_optimized_link_immediate,
10057         solaris_optimized_link_follow): New functions.
10058         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10059         (check_same_link): Use it.
10060
10061 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10062
10063         New module 'unigbrk/base'.
10064         * modules/unigbrk/base: New file.
10065         * lib/unigbrk.in.h: New file.
10066
10067         New module 'unigbrk/uc-gbrk-prop'.
10068         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10069         * modules/unigbrk/uc-gbrk-prop: New file.
10070         * lib/unigbrk/gbrkprop.h: New file.
10071         * lib/unigbrk/uc-gbrk-prop.c: New file.
10072
10073         New module 'unigbrk/uc-is-grapheme-break'.
10074         * modules/unigbrk/uc-is-grapheme-break: New file.
10075         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10076         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10077         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10078         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10079         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10080
10081         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10082
10083 2010-12-27  Bruno Haible  <bruno@clisp.org>
10084
10085         linkat test: Avoid failure on Solaris 11 2010-11.
10086         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10087
10088 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10089
10090         utimens: work around glibc rounding bug on more platforms
10091         * lib/utimens.c (fdutimens): Work around rounding bug even if
10092         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10093         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10094
10095 2010-12-27  Bruno Haible  <bruno@clisp.org>
10096
10097         select tests: Improve comments.
10098         * tests/test-select.c (do_select): Add comments.
10099
10100 2010-12-27  Bruno Haible  <bruno@clisp.org>
10101
10102         select tests: Safer way of handling timeout.
10103         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10104         at every invocation.
10105
10106 2010-12-27  Bruno Haible  <bruno@clisp.org>
10107
10108         select tests: Use 'bool' where appropriate.
10109         * tests/test-select.c (connect_to_socket): Change argument type to
10110         'bool'.
10111
10112 2010-12-27  Bruno Haible  <bruno@clisp.org>
10113
10114         select tests: Use existing modules.
10115         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10116         (configure.ac): Don't test for unistd.h.
10117         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10118         declared in <unistd.h>.
10119
10120 2010-12-27  Bruno Haible  <bruno@clisp.org>
10121
10122         mbrtowc: Work around a Solaris 7 bug.
10123         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10124         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10125         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10126         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10127         MBRTOWC_NULL_ARG1_BUG.
10128         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10129         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10130         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10131         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10132
10133 2010-12-27  Jim Meyering  <meyering@redhat.com>
10134
10135         read-file.c: tweak syntax
10136         * lib/read-file.c (fread_file): Remove space after "*" in function
10137         definitions.
10138
10139 2010-12-27  Bruno Haible  <bruno@clisp.org>
10140
10141         times test: Avoid gcc warnings on OSF/1.
10142         * tests/test-times.c (main): Cast printf arguments from clock_t to
10143         'long int'.
10144
10145 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10146
10147         utimens: work around glibc rounding bug on older Linux kernels
10148         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10149         on Linux with a glibc whose utimes might not work, then work
10150         around a longstanding glibc bug involving rounding rather than
10151         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10153
10154 2010-12-26  Bruno Haible  <bruno@clisp.org>
10155
10156         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10157         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10158         _GL_CXXALIAS_SYS.
10159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10160
10161 2010-12-26  Bruno Haible  <bruno@clisp.org>
10162
10163         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10164         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10165         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10166         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10167         looking for the declaration.
10168         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10169         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10170         problem.
10171         * doc/posix-functions/inet_pton.texi: Likewise.
10172
10173 2010-12-26  Bruno Haible  <bruno@clisp.org>
10174
10175         arpa_inet: Use the common idioms with C++ support.
10176         * lib/arpa_inet.in.h: Include c++defs.h.
10177         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10178         support.
10179         * modules/arpa_inet (Depends-on): Add c++defs.
10180         (Makefile.am): Substitute the contents of c++defs.h.
10181         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10182         * modules/arpa_inet-c++-tests: New file.
10183         * tests/test-arpa_inet-c++.cc: New file.
10184
10185 2010-12-25  Bruno Haible  <bruno@clisp.org>
10186
10187         Fix more C++ link errors on Solaris 8.
10188         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10189         $(LIB_EACCESS).
10190         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10191         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10192         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10193         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10194         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10195
10196 2010-12-25  Bruno Haible  <bruno@clisp.org>
10197
10198         printf-posix: Fix link error when a non-GCC compiler is used.
10199         * lib/stdio.in.h (printf): When not using GCC, override printf
10200         correctly.
10201         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10202
10203 2010-12-25  Bruno Haible  <bruno@clisp.org>
10204
10205         strerror_r-posix: Update doc.
10206         * doc/posix-functions/strerror_r.texi: Update doc about the return
10207         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10208
10209 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10210
10211         utimens: simplify the logic of the previous change
10212         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10213         This should not affect whether the test succeeds or fails.
10214
10215         utimens: configure better on hosts with NFS clock skew
10216         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10217         uses the clock of the local host.  It might use the clock of the
10218         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10220
10221 2010-12-25  Bruno Haible  <bruno@clisp.org>
10222
10223         ptsname test: Avoid failure on Solaris.
10224         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10225         open a pseudo-terminal; don't use BSD-style ptys.
10226         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10227
10228 2010-12-25  Bruno Haible  <bruno@clisp.org>
10229
10230         ptsname: Avoid ERANGE failure on some systems.
10231         * lib/ptsname.c (buffer): Increase size.
10232
10233 2010-12-25  Bruno Haible  <bruno@clisp.org>
10234
10235         rename, renameat: Avoid test failures at NFS mounted locations.
10236         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10237         so that subsequent mkdir calls succeed.
10238
10239 2010-12-25  Bruno Haible  <bruno@clisp.org>
10240
10241         iswblank: Fix C++ link error on Solaris 8.
10242         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10243         _GL_FUNCDECL_SYS.
10244
10245 2010-12-25  Bruno Haible  <bruno@clisp.org>
10246
10247         unistd: Fix C++ link error on Solaris 8.
10248         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10249
10250 2010-12-25  Bruno Haible  <bruno@clisp.org>
10251
10252         readlink doc: Mention an old glibc bug.
10253         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10254
10255 2010-12-25  Bruno Haible  <bruno@clisp.org>
10256
10257         fcntl-h: Fix for use of C++ on glibc systems.
10258         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10259         also on glibc systems in C++ mode.
10260         Reported by Gary V. Vaughan <gary@gnu.org>.
10261
10262 2010-12-25  Bruno Haible  <bruno@clisp.org>
10263
10264         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10265         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10266
10267 2010-12-25  Bruno Haible  <bruno@clisp.org>
10268
10269         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10270         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10271         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10272         test whether truncl works according to ISO C 99 with IEC 60559.
10273         * m4/truncl-ieee.m4: New file.
10274         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10275         m4/signbit.m4.
10276         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10277
10278 2010-12-25  Bruno Haible  <bruno@clisp.org>
10279
10280         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10281         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10282         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10283         test whether ceill works according to ISO C 99 with IEC 60559.
10284         * m4/ceill-ieee.m4: New file.
10285         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10286         m4/signbit.m4.
10287         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10288
10289 2010-12-25  Bruno Haible  <bruno@clisp.org>
10290
10291         Ensure all prerequisites of <wchar.h> are included.
10292         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10293         before <wchar.h>.
10294         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10295         gl_MBRLEN_NUL_RETVAL): Likewise.
10296         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10297         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10298         AC_FUNC_MBRTOWC): Likewise.
10299         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10300         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10301         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10302         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10303         Likewise.
10304         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10305         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10306         (gl_WCHAR_H): Improve comments.
10307         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10308
10309 2010-12-25  Bruno Haible  <bruno@clisp.org>
10310
10311         strtok_r: Fix C syntax error in autoconf macro.
10312         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10313         characters in test program.
10314
10315 2010-12-24  Bruno Haible  <bruno@clisp.org>
10316
10317         ceil, trunc, round: Fix gcc warnings.
10318         * lib/ceil.c (MIN): Undefine before redefining.
10319         * lib/trunc.c (MIN): Likewise.
10320         * lib/round.c (MIN): Likewise.
10321         Include <math.h> first.
10322
10323 2010-12-24  Bruno Haible  <bruno@clisp.org>
10324
10325         select tests: Avoid failures on OSF/1 5.1.
10326         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10327         failure of closing the last socket; it may fail with ECONNRESET.
10328
10329 2010-12-24  Eric Blake  <eblake@redhat.com>
10330
10331         stdint: avoid HP-UX 10.20 preprocessor bug
10332         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10333         than #if.
10334         * tests/test-floor2.c (main): Likewise.
10335         Reported by Peter O'Gorman.
10336
10337         pipe: make obsoletion transition easier
10338         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10339         * modules/pipe (Files): Include revived file.
10340         (Include): Drop reference, to mirror getdate's behavior.
10341
10342 2010-12-24  Bruno Haible  <bruno@clisp.org>
10343
10344         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10345         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10346         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10347         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10348
10349 2010-12-24  Bruno Haible  <bruno@clisp.org>
10350
10351         gethostname: Ensure declaration on NonStop Kernel.
10352         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10354
10355 2010-12-24  Bruno Haible  <bruno@clisp.org>
10356
10357         sys_select: Ensure all necessary types on NonStop Kernel.
10358         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10359         include <sys/time.h>.
10360         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10361         NonStop Kernel.
10362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10363
10364 2010-12-24  Bruno Haible  <bruno@clisp.org>
10365
10366         sys_select: Remove unneeded include.
10367         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10368         have <sys/select.h>.
10369
10370 2010-12-24  Bruno Haible  <bruno@clisp.org>
10371
10372         gethostname: Provide a fallback for HOST_NAME_MAX.
10373         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10374         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10375         instead.
10376         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10377
10378 2010-12-24  Bruno Haible  <bruno@clisp.org>
10379
10380         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10381         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10382         (SA_RESTART): Likewise.
10383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10384
10385 2010-12-24  Bruno Haible  <bruno@clisp.org>
10386
10387         signal: Define NSIG.
10388         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10389         * tests/test-signal.c (nsig): New variable.
10390         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10391
10392 2010-12-24  Bruno Haible  <bruno@clisp.org>
10393
10394         rename, renameat: Avoid test failures on OSF/1 5.1.
10395         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10396         alternative error codes.
10397         * tests/test-renameat.c (main): Likewise.
10398
10399 2010-12-24  Bruno Haible  <bruno@clisp.org>
10400
10401         *printf: Detect large precisions bug on Solaris 10/SPARC.
10402         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10403         by Paul Eggert.
10404         * tests/test-snprintf-posix.h (test_function): Add this test code here
10405         too.
10406         * tests/test-sprintf-posix.h (test_function): Likewise.
10407         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10408         * tests/test-vasprintf-posix.c (test_function): Likewise.
10409         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10410         around by gnulib.
10411         * doc/posix-functions/printf.texi: Likewise.
10412         * doc/posix-functions/snprintf.texi: Likewise.
10413         * doc/posix-functions/sprintf.texi: Likewise.
10414         * doc/posix-functions/vfprintf.texi: Likewise.
10415         * doc/posix-functions/vprintf.texi: Likewise.
10416         * doc/posix-functions/vsnprintf.texi: Likewise.
10417         * doc/posix-functions/vsprintf.texi: Likewise.
10418         * doc/posix-functions/dprintf.texi: Undo last commit.
10419         * doc/posix-functions/vdprintf.texi: Likewise.
10420
10421 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10422
10423         tests: port test-fdutimensat.c to Solaris 8
10424         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10425         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10426         On Solaris 8, it fails with errno == ENOSYS, because there is no
10427         futimens (so it can't use the fd), and there is no lutimens (so it
10428         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10429
10430         vsnprintf: make more consistent with snprintf; doc fixes
10431
10432         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10433         the byte count return problem was promoted from the snprintf-posix
10434         to the snprintf module.
10435         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10436         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10437         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10438         * tests/test-snprintf.c (main): Check the byte count returned.
10439         * tests/test-vsnprintf.c (main): Likewise.
10440
10441 2010-12-23  Eric Blake  <eblake@redhat.com>
10442
10443         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10444         * modules/sigpipe (License): Relax license.
10445
10446 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10447
10448         doc: document Solaris printf bug with large float precisions
10449         * doc/posix-functions/dprintf.texi (dprintf):
10450         * doc/posix-functions/fprintf.texi (fprintf):
10451         * doc/posix-functions/printf.texi (printf):
10452         * doc/posix-functions/snprintf.texi (snprintf):
10453         * doc/posix-functions/sprintf.texi (sprintf):
10454         * doc/posix-functions/vdprintf.texi (vdprintf):
10455         * doc/posix-functions/vfprintf.texi (vfprintf):
10456         * doc/posix-functions/vprintf.texi (vprintf):
10457         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10458         * doc/posix-functions/vsprintf.texi (vsprintf):
10459         Mention that these functions mishandle large floating point
10460         precisions on Solaris 10.  The same bug is also present in Solaris
10461         8, and I assume earlier.  This causes "cd gnulib-tests; make
10462         check" to fail on Solaris 8 (and I assume, later) when building
10463         the latest coreutils, in test-vasprintf-posix's call to
10464         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10465         the wide flavors (e.g., wprintf) so this patch just updates the
10466         documentation for the narrow ones.
10467
10468         test-posixtm.c: add two tests
10469         * tests/test-posixtm.c: Add two tests, to highlight the
10470         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10471         around this bug; this is merely to document it.
10472
10473 2010-12-22  Bruno Haible  <bruno@clisp.org>
10474
10475         getlogin_r: Work around portability problem on OSF/1.
10476         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10477         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10478         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10479         test for a truncated result.
10480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10481         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10482         * modules/getlogin_r (Depends-on): Add memchr.
10483         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10484
10485 2010-12-22  Bruno Haible  <bruno@clisp.org>
10486
10487         ptsname: Avoid test failure on OSF/1 5.1.
10488         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10489         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10490         (same_slave): New function.
10491         (main): Use it to compare ptsname's result with the expected file name.
10492
10493 2010-12-22  Bruno Haible  <bruno@clisp.org>
10494
10495         Port extended stdio modules to HP NonStop Kernel.
10496         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10497         macros.
10498         * lib/fbufmode.c: Update comments.
10499         * lib/fflush.c: Likewise.
10500         * lib/fpurge.c: Likewise.
10501         * lib/freadable.c: Likewise.
10502         * lib/freadahead.c: Likewise.
10503         * lib/freading.c: Likewise.
10504         * lib/freadptr.c: Likewise.
10505         * lib/freadseek.c: Likewise.
10506         * lib/fseeko.c: Likewise.
10507         * lib/fseterr.c: Likewise.
10508         * lib/fwritable.c: Likewise.
10509         * lib/fwriting.c: Likewise.
10510         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10511
10512 2010-12-22  Bruno Haible  <bruno@clisp.org>
10513
10514         ttyname_r: Work around bug on OSF/1 5.1.
10515         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10516         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10517         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10518         present.
10519         * lib/ttyname_r.c (ttyname_r): Update comments.
10520
10521 2010-12-22  Bruno Haible  <bruno@clisp.org>
10522
10523         round: Implement result sign according to IEEE 754.
10524         * lib/round.c (MIN, MINUS_ZERO): New macros.
10525         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10526         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10527         * tests/test-round-ieee.c (main): Likewise.
10528         * tests/test-roundl-ieee.c (main): Likewise.
10529
10530         trunc: Implement result sign according to IEEE 754.
10531         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10532         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10533         * tests/test-trunc2.c: Include minus-zero.h.
10534         (MINUS_ZERO): New macro.
10535         (trunc_reference): Keep in sync with lib/trunc.c.
10536         * tests/test-truncf2.c: Include minus-zero.h.
10537         (MINUS_ZERO): New macro.
10538         (truncf_reference): Keep in sync with lib/trunc.c.
10539         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10540         * tests/test-trunc-ieee.c (main): Likewise.
10541         * tests/test-truncl-ieee.c (main): Likewise.
10542
10543         ceil: Implement result sign according to IEEE 754.
10544         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10545         (FUNC): Return -0.0 for -1 < x < 0.
10546         * tests/test-ceil2.c: Include minus-zero.h.
10547         (MINUS_ZERO): New macro.
10548         (ceil_reference): Keep in sync with lib/ceil.c.
10549         * tests/test-ceilf2.c: Include minus-zero.h.
10550         (MINUS_ZERO): New macro.
10551         (ceilf_reference): Keep in sync with lib/ceil.c.
10552         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10553         * tests/test-ceil-ieee.c (main): Likewise.
10554         * tests/test-ceill-ieee.c (main): Likewise.
10555
10556         floor: Implement result sign according to IEEE 754.
10557         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10558         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10559         * tests/test-floorf2.c (floorf_reference): Likewise.
10560         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10561         * tests/test-floor-ieee.c (main): Likewise.
10562         * tests/test-floorl-ieee.c (main): Likewise.
10563
10564 2010-12-22  Bruno Haible  <bruno@clisp.org>
10565
10566         getaddrinfo: Update doc.
10567         * doc/posix-functions/gai_strerror.texi: Return type is also different
10568         on AIX and HP-UX.
10569
10570 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10571
10572         getaddrinfo, inet_ntop: Update doc for Solaris.
10573         * doc/posix-functions/gai_strerror.texi: Return type is also an
10574         issue on Solaris 9 and earlier.
10575         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10576         on Solaris 10 and earlier.
10577
10578 2010-12-21  Bruno Haible  <bruno@clisp.org>
10579
10580         New module 'roundl-ieee'.
10581         * modules/roundl-ieee: New file.
10582         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10583         test whether roundl works according to ISO C 99 with IEC 60559.
10584         * m4/roundl-ieee.m4: New file.
10585         * modules/roundl-ieee-tests: New file.
10586         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10587         * tests/test-roundl.c (main): Remove signbit tests.
10588         * modules/roundl-tests (Depends-on): Remove signbit.
10589         * doc/posix-functions/roundl.texi: Mention the new module.
10590
10591 2010-12-21  Bruno Haible  <bruno@clisp.org>
10592
10593         New module 'truncl-ieee'.
10594         * modules/truncl-ieee: New file.
10595         * modules/truncl-ieee-tests: New file.
10596         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10597         * tests/test-truncl.c (main): Remove signbit tests.
10598         * modules/truncl-tests (Depends-on): Remove signbit.
10599         * doc/posix-functions/truncl.texi: Mention the new module.
10600
10601 2010-12-21  Bruno Haible  <bruno@clisp.org>
10602
10603         New module 'ceill-ieee'.
10604         * modules/ceill-ieee: New file.
10605         * modules/ceill-ieee-tests: New file.
10606         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10607         * tests/test-ceill.c (main): Remove signbit tests.
10608         * modules/ceill-tests (Depends-on): Remove signbit.
10609         * doc/posix-functions/ceill.texi: Mention the new module.
10610
10611 2010-12-21  Bruno Haible  <bruno@clisp.org>
10612
10613         New module 'floorl-ieee'.
10614         * modules/floorl-ieee: New file.
10615         * modules/floorl-ieee-tests: New file.
10616         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10617         * tests/test-floorl.c (main): Remove signbit tests.
10618         * modules/floorl-tests (Depends-on): Remove signbit.
10619         * doc/posix-functions/floorl.texi: Mention the new module.
10620
10621 2010-12-21  Bruno Haible  <bruno@clisp.org>
10622
10623         New module 'round-ieee'.
10624         * modules/round-ieee: New file.
10625         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10626         whether round works according to ISO C 99 with IEC 60559.
10627         * m4/round-ieee.m4: New file.
10628         * modules/round-ieee-tests: New file.
10629         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10630         * tests/test-round1.c (main): Remove signbit tests.
10631         * modules/round-tests (Depends-on): Remove 'signbit'.
10632         * doc/posix-functions/round.texi: Mention the new module.
10633
10634 2010-12-21  Bruno Haible  <bruno@clisp.org>
10635
10636         New module 'trunc-ieee'.
10637         * modules/trunc-ieee: New file.
10638         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10639         whether trunc works according to ISO C 99 with IEC 60559.
10640         * m4/trunc-ieee.m4: New file.
10641         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10643         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10644         * modules/trunc-ieee-tests: New file.
10645         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10646         * tests/test-trunc1.c (main): Remove signbit tests.
10647         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10648         * doc/posix-functions/trunc.texi: Mention the new module.
10649
10650 2010-12-21  Bruno Haible  <bruno@clisp.org>
10651
10652         New module 'ceil-ieee'.
10653         * modules/ceil-ieee: New file.
10654         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10655         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10656         ISO C 99 with IEC 60559.
10657         * m4/ceil-ieee.m4: New file.
10658         * modules/ceil (Files): Add lib/ceil.c.
10659         (Depends-on): Add 'float'.
10660         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10661         * lib/math.in.h (ceil): New declaration.
10662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10663         REPLACE_CEIL.
10664         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10665         * modules/ceil-ieee-tests: New file.
10666         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10667         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10668         * doc/posix-functions/ceil.texi: Mention the new module.
10669
10670 2010-12-21  Bruno Haible  <bruno@clisp.org>
10671
10672         New module 'floor-ieee'.
10673         * modules/floor-ieee: New file.
10674         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10675         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10676         ISO C 99 with IEC 60559.
10677         * m4/floor-ieee.m4: New file.
10678         * modules/floor (Files): Add lib/floor.c.
10679         (Depends-on): Add 'float'.
10680         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10681         * lib/math.in.h (floor): New declaration.
10682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10683         REPLACE_FLOOR.
10684         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10685         * modules/floor-ieee-tests: New file.
10686         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10687         * tests/test-math-c++.cc: Check the signature of 'floor'.
10688         * doc/posix-functions/floor.texi: Mention the new module.
10689
10690 2010-12-21  Bruno Haible  <bruno@clisp.org>
10691
10692         New module 'roundf-ieee'.
10693         * modules/roundf-ieee: New file.
10694         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10695         test whether roundf works according to ISO C 99 with IEC 60559.
10696         * m4/roundf-ieee.m4: New file.
10697         * modules/roundf-ieee-tests: New file.
10698         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10699         * tests/test-roundf1.c (main): Remove signbit tests.
10700         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10701         * doc/posix-functions/roundf.texi: Mention the new module.
10702
10703 2010-12-21  Bruno Haible  <bruno@clisp.org>
10704
10705         New module 'truncf-ieee'.
10706         * modules/truncf-ieee: New file.
10707         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10708         test whether truncf works according to ISO C 99 with IEC 60559.
10709         * m4/truncf-ieee.m4: New file.
10710         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10712         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10713         * modules/truncf-ieee-tests: New file.
10714         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10715         * tests/test-truncf1.c (main): Remove signbit tests.
10716         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10717         * doc/posix-functions/truncf.texi: Mention the new module.
10718
10719 2010-12-21  Bruno Haible  <bruno@clisp.org>
10720
10721         New module 'ceilf-ieee'.
10722         * modules/ceilf-ieee: New file.
10723         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10724         test whether ceilf works according to ISO C 99 with IEC 60559.
10725         * m4/ceilf-ieee.m4: New file.
10726         * modules/ceilf-ieee-tests: New file.
10727         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10728         * tests/test-ceilf1.c (main): Remove signbit tests.
10729         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10730         * doc/posix-functions/ceilf.texi: Mention the new module.
10731
10732 2010-12-21  Bruno Haible  <bruno@clisp.org>
10733
10734         New module 'floorf-ieee'.
10735         * modules/floorf-ieee: New file.
10736         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10737         test whether floorf works according to ISO C 99 with IEC 60559.
10738         * m4/floorf-ieee.m4: New file.
10739         * modules/floorf-ieee-tests: New file.
10740         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10741         * tests/test-floorf1.c (main): Remove signbit tests.
10742         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10743         * doc/posix-functions/floorf.texi: Mention the new module.
10744
10745 2010-12-21  Bruno Haible  <bruno@clisp.org>
10746
10747         Support for minus zero in autoconf macros.
10748         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10749         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10750         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10751         * tests/minus-zero.h: Update comments.
10752
10753 2010-12-21  Bruno Haible  <bruno@clisp.org>
10754
10755         Tests for module 'ceil'.
10756         * modules/ceil-tests: New file.
10757         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10758         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10759
10760 2010-12-21  Bruno Haible  <bruno@clisp.org>
10761
10762         Tests for module 'floor'.
10763         * modules/floor-tests: New file.
10764         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10765         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10766
10767 2010-12-21  Bruno Haible  <bruno@clisp.org>
10768
10769         math: Fix indentation.
10770         * lib/math.in.h (floorf): Fix indentation.
10771
10772 2010-12-21  Bruno Haible  <bruno@clisp.org>
10773
10774         Fix cross-compilation guesses on Solaris.
10775         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10776         not match "solaris2.10".
10777         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10778         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10779         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10780
10781 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10782
10783         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10784         This fixes a problem observed with the latest coreutils snapshot
10785         that caused a test to fail on Solaris 8.  src/csplit.c's call
10786         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10787         earlier, instead of returning the number of bytes that would have
10788         been generated; this causes csplit to incorrectly report memory
10789         exhaustion.
10790         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10791         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10792         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10793         comments to match.
10794         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10795         Fix typo in matching older versions of Solaris: "solaris2.10"
10796         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10797         only for guessing while cross-compiling.
10798         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10799
10800 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10801
10802         ftoastr: fix comment again
10803         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10805         Also, simplify example a bit by using flags = 0.
10806
10807 2010-12-20  Bruno Haible  <bruno@clisp.org>
10808
10809         round*, trunc*: Update documentation regarding glibc.
10810         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10811         * doc/posix-functions/round.texi: Likewise.
10812         * doc/posix-functions/roundl.texi: Likewise.
10813         * doc/posix-functions/truncf.texi: Likewise.
10814         * doc/posix-functions/trunc.texi: Likewise.
10815         * doc/posix-functions/truncl.texi: Likewise.
10816
10817 2010-12-20  Bruno Haible  <bruno@clisp.org>
10818
10819         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10820         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10821         * doc/posix-functions/round.texi: Likewise.
10822         * doc/posix-functions/roundl.texi: Likewise.
10823
10824 2010-12-20  Bruno Haible  <bruno@clisp.org>
10825
10826         ttyname_r: Add missing declaration on HP-UX 11.
10827         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10828         HAVE_TTYNAME_R.
10829         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10830         declared. Set HAVE_TTYNAME_R always.
10831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10832         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10833         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10834         HAVE_TTYNAME_R.
10835         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10836
10837 2010-12-20  Bruno Haible  <bruno@clisp.org>
10838
10839         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10840         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10841         * doc/posix-functions/getlogin_r.texi: Likewise.
10842         * tests/test-getlogin.c: Include <errno.h>.
10843         (main): Avoid test failure on HP-UX 11.11.
10844         * tests/test-getlogin_r.c (main): Likewise.
10845
10846 2010-12-20  Bruno Haible  <bruno@clisp.org>
10847
10848         getlogin_r: Add missing declaration on HP-UX 11.
10849         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10850         declared also when it exists as a function.
10851         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10852
10853 2010-12-20  Bruno Haible  <bruno@clisp.org>
10854
10855         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10856         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10857         through wcrtomb.
10858
10859 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10860
10861         ftoastr: fix comment
10862         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10864
10865 2010-12-19  Bruno Haible  <bruno@clisp.org>
10866
10867         isnan: Ensure it is a macro.
10868         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10869         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10870         Solaris.
10871
10872 2010-12-19  Bruno Haible  <bruno@clisp.org>
10873
10874         ldexpl test: Fix link error on OSF/1 5.1.
10875         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10876
10877 2010-12-19  Bruno Haible  <bruno@clisp.org>
10878
10879         wctype: Make it work in C++ mode on OSF/1 5.1.
10880         * lib/wctype.in.h (iswblank): Declare but not define here.
10881         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10882         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10883         * modules/wctype (Files): Add lib/iswblank.c.
10884
10885 2010-12-19  Bruno Haible  <bruno@clisp.org>
10886
10887         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10888         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10889         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10890
10891 2010-12-19  Bruno Haible  <bruno@clisp.org>
10892
10893         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10895         _POSIX_PII_SOCKET.
10896         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10897         * doc/posix-functions/recvfrom.texi: Likewise.
10898         * doc/posix-functions/send.texi: Likewise.
10899         * doc/posix-functions/sendto.texi: Likewise.
10900
10901 2010-12-19  Bruno Haible  <bruno@clisp.org>
10902
10903         tcgetsid: Add missing declaration on OSF/1 5.1.
10904         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10905         HAVE_TCGETSID.
10906         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10907         Don't set HAVE_TCGETSID.
10908         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10909         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10910         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10911         HAVE_TCGETSID.
10912         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10913
10914 2010-12-19  Bruno Haible  <bruno@clisp.org>
10915
10916         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10917         * lib/stdio.in.h: During the include_next statement, let recursive
10918         includes of this file include only the system header file.
10919
10920 2010-12-19  Bruno Haible  <bruno@clisp.org>
10921
10922         iconv_open: Fix regression from 2010-12-04.
10923         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10924         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10925
10926 2010-12-19  Bruno Haible  <bruno@clisp.org>
10927
10928         stdbool test: Avoid a gcc warning.
10929         * tests/test-stdbool.c (main): Fail if e1 is false.
10930         Reported by Jim Meyering.
10931
10932 2010-12-19  Jim Meyering  <meyering@redhat.com>
10933
10934         setenv: restore to working order
10935         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10936         mistakenly removed.
10937         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10938         HAVE_SETENV.
10939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10940         HAVE_SETENV.
10941
10942 2010-12-19  Bruno Haible  <bruno@clisp.org>
10943
10944         Document some different function declarations on OSF/1 5.1.
10945         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10946         * doc/posix-functions/inet_ntop.texi: Likewise.
10947         * doc/posix-functions/gethostname.texi: Likewise.
10948         * lib/unistd.in.h (gethostname): Update comment.
10949
10950 2010-12-19  Bruno Haible  <bruno@clisp.org>
10951
10952         doc: Mention vasprintf-posix module.
10953         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10954         the 'vasprintf-posix' module.
10955         * doc/glibc-functions/vasprintf.texi: Likewise.
10956
10957 2010-12-19  Bruno Haible  <bruno@clisp.org>
10958
10959         unsetenv: Add missing declaration on OSF/1 5.1.
10960         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10961         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10962         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10964         not HAVE_UNSETENV.
10965         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10966         HAVE_UNSETENV.
10967         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10968
10969 2010-12-19  Bruno Haible  <bruno@clisp.org>
10970
10971         setenv: Add missing declaration on OSF/1 5.1.
10972         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10973         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10974         declared. Don't set HAVE_SETENV.
10975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10976         not HAVE_SETENV.
10977         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10978         HAVE_SETENV.
10979         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10980
10981 2010-12-19  Bruno Haible  <bruno@clisp.org>
10982
10983         nl_langinfo tests: Avoid gcc warning.
10984         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10985
10986 2010-12-19  Bruno Haible  <bruno@clisp.org>
10987
10988         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10989         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10990         _GL_CXXALIAS_SYS.
10991
10992 2010-12-19  Bruno Haible  <bruno@clisp.org>
10993
10994         stdbool: Relax test.
10995         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10996         address to 'bool' work in static initializer, for compilers other than
10997         GCC.
10998
10999 2010-12-19  Bruno Haible  <bruno@clisp.org>
11000
11001         ftello: Add missing declaration on OSF/1 5.1.
11002         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11003         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11005         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11006         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11007
11008 2010-12-19  Bruno Haible  <bruno@clisp.org>
11009
11010         fseeko: Add missing declaration on OSF/1 5.1.
11011         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11012         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11014         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11015         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11016
11017 2010-12-19  Bruno Haible  <bruno@clisp.org>
11018
11019         fchdir: Add missing declaration on OSF/1 5.1.
11020         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11023         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11024         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11025
11026 2010-12-19  Bruno Haible  <bruno@clisp.org>
11027
11028         relocatable-prog-wrapper: Separate from relocatable-prog.
11029         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11030         uninstall-relocwrapper rule here.
11031         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11032         Reported by Ian Beckwith <ianb@erislabs.net>.
11033
11034 2010-12-19  Bruno Haible  <bruno@clisp.org>
11035
11036         unistr/u8-mbsnlen: Add missing dependency.
11037         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11038         Reported by Ian Beckwith <ianb@erislabs.net>.
11039
11040 2010-12-19  Bruno Haible  <bruno@clisp.org>
11041
11042         iconv: Make it possible again to use this module without 'iconv-h'.
11043         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11044         if it is not defined.
11045         Reported by Ian Beckwith <ianb@erislabs.net>.
11046
11047 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11048
11049         acl: port to Solaris 8 when copying from tmpfs to ufs
11050         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11051         error number.  Problem observed on Solaris 8 with latest
11052         coreutils, with "mv A B", where A is on a tmpfs file system and B
11053         is on a ufs file system.  This caused coreutils' mv/part-symlink
11054         test to fail.
11055
11056         tests: set fail=0 at start
11057         * tests/init.sh (setup_): Move fail=0 initialization here ...
11058         (mktempd_): ... from here, so that tests can rely on fail being
11059         set to 0 initially.  This fixes a problem in coreutils; see:
11060         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11061
11062 2010-12-18  Bruno Haible  <bruno@clisp.org>
11063
11064         memmem-simple: Stylistic changes.
11065         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11066         Fix preprocessor directive indentation.
11067
11068 2010-12-15  Pádraig Brady <P@draigBrady.com>
11069
11070         memmem, memmem-simple: reorganize and expand empty needle check
11071         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11072         functional checks to memmem-simple so that one has a fully functional
11073         memmem by using just this module.
11074         Restrict the performance only check to the memmem module.
11075         Also expand the empty needle check to ensure the correct
11076         pointer is returned, not just a non NULL pointer.
11077         * doc/glibc-functions/memmem.texi: Rearrange the portability
11078         documentation to correlate with the rearranged checks.
11079         Clarify exactly how the memmem and memmem-simple modules
11080         relate to each other.
11081
11082 2010-12-15  Pádraig Brady <P@draigBrady.com>
11083             Bruno Haible  <bruno@clisp.org>
11084
11085         Improve cross-compilation guesses for uClibc.
11086         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11087         that uClibc does not have the glibc bug.
11088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11089         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11090
11091 2010-12-14  Eric Blake  <eblake@redhat.com>
11092
11093         configmake: provide fallbacks for oldest supported autotools
11094         * m4/configmake.m4: New file.
11095         * modules/configmake (Files): Ship it.
11096         (configure.ac): Use it to guarantee fallbacks.
11097
11098 2010-12-13  Pádraig Brady <P@draigBrady.com>
11099
11100         read-file: Improve handling of large files
11101         * lib/read-file.c (fread_file): Minimize realloc()s
11102         for regular files, and better manage sizes around SIZE_MAX.
11103
11104 2010-12-13  Eric Blake  <eblake@redhat.com>
11105
11106         cloexec, fcntl: relax license
11107         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11108         consent from all contributors.
11109         * modules/fcntl (License): Likewise.
11110
11111 2010-12-10  Bruno Haible  <bruno@clisp.org>
11112
11113         Tests for module 'pipe-posix'.
11114         * modules/pipe-posix-tests: New file.
11115         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11116
11117 2010-12-10  Bruno Haible  <bruno@clisp.org>
11118
11119         pipe-posix: Make it work in C++ mode.
11120         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11121         (pipe): Use common idiom, not a macro definition.
11122         * lib/pipe.c: New file.
11123         * m4/pipe.m4: New file.
11124         * modules/pipe-posix (Description): Enhance.
11125         (Files): Add lib/pipe.c, m4/pipe.m4.
11126         (configure.ac): Invoke gl_FUNC_PIPE.
11127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11128         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11129         * tests/test-unistd-c++.cc: Check the signature of pipe.
11130
11131 2010-12-10  Bruno Haible  <bruno@clisp.org>
11132
11133         Rename module 'pipe' to 'spawn-pipe'.
11134         * modules/spawn-pipe: New file, renamed from modules/pipe.
11135         (Files, configure.ac, Makefile.am): Update.
11136         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11137         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11138         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11139         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11140         "spawn-pipe.h" instead of "pipe.h".
11141         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11142         to gl_SPAWN_PIPE.
11143         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11144         (Files, Makefile.am): Update.
11145         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11146         Update.
11147         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11148         Include "spawn-pipe.h" instead of "pipe.h".
11149         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11150         * lib/javacomp.c: Likewise.
11151         * lib/javaversion.c: Likewise.
11152         * lib/pipe-filter-gi.c: Likewise.
11153         * lib/pipe-filter-ii.c: Likewise.
11154         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11155         * modules/javacomp (Depends-on): Likewise.
11156         * modules/javaversion (Depends-on): Likewise.
11157         * modules/pipe-filter-gi (Depends-on): Likewise.
11158         * modules/pipe-filter-ii (Depends-on): Likewise.
11159         * MODULES.html.sh (Executing programs): Update.
11160         * NEWS: Mention the change.
11161
11162 2010-12-10  Eric Blake  <eblake@redhat.com>
11163
11164         pipe-posix: new module
11165         * modules/pipe-posix: New file.
11166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11167         (gl_UNISTD_H): Check for declaration.
11168         * modules/unistd (Makefile.am): Substitute it.
11169         * lib/unistd.in.h (pipe): Provide it for mingw.
11170         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11171         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11172
11173 2010-12-07  Bruno Haible  <bruno@clisp.org>
11174
11175         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11176         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11177         u8_strcmp_gnu.
11178         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11179
11180 2010-12-06  Bruno Haible  <bruno@clisp.org>
11181
11182         Update internal documentation.
11183         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11184
11185 2010-12-04  Bruno Haible  <bruno@clisp.org>
11186
11187         Put more information about failed tests into the test return codes.
11188         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11189         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11190         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11192         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11193         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11194         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11195         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11196         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11197         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11198         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11199         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11200         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11201         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11202         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11203         returns a bit mask.
11204         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11205         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11206         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11207         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11208         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11209         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11212         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11213         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11214         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11215         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11216         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11217         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11218         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11219         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11220         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11221         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11222         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11223         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11225         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11226         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11227         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11228         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11229         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11230         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11231         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11232         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11233         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11234         gl_PRINTF_PRECISION): Likewise.
11235         * m4/regex.m4 (gl_REGEX): Likewise.
11236         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11238         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11239         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11243         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11244         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11245         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11246         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11247         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11248         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11249         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11250         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11251         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11252         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11253         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11255         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11256         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11257         enumerated value.
11258         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11259
11260 2010-12-04  Bruno Haible  <bruno@clisp.org>
11261
11262         Update for Solaris 11 2010-11.
11263         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11264         Express, released in November 2010.
11265
11266 2010-12-04  Bruno Haible  <bruno@clisp.org>
11267
11268         nproc: Relax license.
11269         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11270         and Paul Eggert.
11271         Requested by Ludovic Courtès <ludo@gnu.org>.
11272
11273 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11274
11275         utimecmp: fine-grained src to nearby coarse-grained dest
11276
11277         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11278         and the source is on a file system with higher-resolution time
11279         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11280         not work, and the time stamps are close together, the algorithm to
11281         determine the exact resolution from the read-back mtime was buggy:
11282         it had a "!=" where it should have had an "==".  This bug has been
11283         in the code ever since it was introduced to gnulib.
11284         Problem reported by Dan Jacobson in
11285         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11286
11287 2010-11-30  Bruno Haible  <bruno@clisp.org>
11288
11289         strerror_r-posix: Fix autoconf test.
11290         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11291
11292 2010-11-28  Bruno Haible  <bruno@clisp.org>
11293             Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         Tests for module 'getdomainname'.
11296         * modules/getdomainname-tests: New file.
11297         * tests/test-getdomainname.c: New file, based on
11298         tests/test-gethostname.c.
11299
11300 2010-11-28  Bruno Haible  <bruno@clisp.org>
11301             Paul Eggert  <eggert@cs.ucla.edu>
11302
11303         getdomainname: Use the system function when possible.
11304         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11305         (getdomainname): Replace if needed. Provide the declaration if it is
11306         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11307         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11308         (getdomainname): When the system has getdomainname, call the system
11309         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11310         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11311         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11312         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11313         the function if its second argument is of type 'int' or if it is found
11314         in libnsl.
11315         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11316         <sys/systeminfo.h> and sysinfo().
11317         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11319         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11320         HAVE_GETDOMAINNAME.
11321         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11322         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11323         * doc/glibc-functions/getdomainname.texi: Document the problems with
11324         the getdomainname declaration.
11325
11326 2010-11-28  Bruno Haible  <bruno@clisp.org>
11327
11328         sys_socket: Ensure ss_family field on AIX.
11329         * lib/sys_socket.in.h (ss_family): New macro definition.
11330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11331         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11332         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11333         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11334         * modules/sys_socket (Makefile.am): Substitute
11335         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11336         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11337
11338 2010-11-27  Bruno Haible  <bruno@clisp.org>
11339
11340         readline: Improve configure output.
11341         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11342         "checking for readline..." result understandable.
11343
11344 2010-11-27  Bruno Haible  <bruno@clisp.org>
11345
11346         *printf-posix: Detect a bug on Solaris 10/x86.
11347         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11348         for floating-point output.
11349         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11350         directive.
11351         * tests/test-snprintf-posix.h (test_function): Likewise.
11352         * tests/test-sprintf-posix.h (test_function): Likewise.
11353         * tests/test-vasprintf-posix.c (test_function): Likewise.
11354         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11355         * doc/posix-functions/printf.texi: Likewise.
11356         * doc/posix-functions/snprintf.texi: Likewise.
11357         * doc/posix-functions/sprintf.texi: Likewise.
11358         * doc/posix-functions/vfprintf.texi: Likewise.
11359         * doc/posix-functions/vprintf.texi: Likewise.
11360         * doc/posix-functions/vsnprintf.texi: Likewise.
11361         * doc/posix-functions/vsprintf.texi: Likewise.
11362         * doc/glibc-functions/obstack_printf.texi: Likewise.
11363         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11364
11365 2010-11-27  Bruno Haible  <bruno@clisp.org>
11366
11367         Fix link error when module libunistring-optional is in use.
11368         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11369         * modules/striconveha-tests (Makefile.am): Likewise.
11370
11371 2010-11-27  Bruno Haible  <bruno@clisp.org>
11372
11373         regex: Mention link dependencies.
11374         * modules/regex (Link): New section.
11375         * modules/rpmatch (Link): Likewise.
11376         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11377
11378 2010-11-27  Bruno Haible  <bruno@clisp.org>
11379
11380         ftoastr: Fix compilation error on Solaris.
11381         * lib/ftoastr.c: Include <config.h>.
11382
11383 2010-11-27  Bruno Haible  <bruno@clisp.org>
11384
11385         getloadavg: Update documentation.
11386         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11387
11388 2010-11-27  Bruno Haible  <bruno@clisp.org>
11389
11390         sys_socket: Fix test whether the functions are declared.
11391         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11392         not <sys/select.h>.
11393
11394 2010-11-27  Bruno Haible  <bruno@clisp.org>
11395
11396         getpass: Make sure to get system declaration on some platforms.
11397         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11398         gl_USE_SYSTEM_EXTENSIONS.
11399         * modules/getpass (Depends-on): Add extensions.
11400
11401 2010-11-26  Bruno Haible  <bruno@clisp.org>
11402
11403         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11404         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11405         'iconv' module is present.
11406         (ICONV_CONST): New macro.
11407         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11408         ICONV_CONST.
11409         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11410         set ICONV_CONST.
11411         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11412         here.
11413         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11414         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11415         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11416         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11417         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11418         present.
11419
11420 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         ftoastr: comment fix
11423         * lib/ftoastr.c: "little" -> "little or no" in comment
11424
11425 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11426
11427         stdint: port to GCC 4.3 + OSX + Octave
11428         On this platform, stdint.h is buggy and defines int64_t to long
11429         long int.  The replacement defined it to long int, causing
11430         problems with C++ style name mangling.  Instead, trust the system
11431         definition if INT64_MAX is defined, and likewise for the unsigned
11432         variant.   Problem reported by Jarno Rajahalme in
11433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11434         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11435         and don't mess with int64_t and INT64_MAX in this case.
11436         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11437
11438 2010-11-24  Bruno Haible  <bruno@clisp.org>
11439
11440         doc: Corrections regarding MacOS X 10.4 and 10.5.
11441         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11442         MacOS X.
11443         Reported by Simon Josefsson.
11444
11445 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11446
11447         Uninstall ".bin" files installed by relocwrapper.
11448         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11449         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11450         unless it is already there.
11451
11452 2010-11-21  Bruno Haible  <bruno@clisp.org>
11453
11454         Update for NetBSD 5.0.
11455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11456         NetBSD; the test fails on NetBSD 5.0.
11457         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11458         about NetBSD.
11459
11460 2010-11-21  Bruno Haible  <bruno@clisp.org>
11461
11462         Update for HP-UX 11.23 and HP-UX 11.31.
11463         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11464         HP-UX.
11465
11466 2010-11-21  Bruno Haible  <bruno@clisp.org>
11467
11468         Update for MacOS X 10.5.
11469         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11470         MacOS X; the test fails on MacOS X 10.5.8.
11471         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11472         about MacOS X.
11473
11474 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11475
11476         bootstrap: add bootstrap_sync option.
11477         See discussion at
11478         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11479         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11480         * build-aux/bootstrap: Accept --bootstrap-sync to update
11481         bootstrap if it is not identical to the local gnulib's
11482         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11483         enable this by default.  Accept --no-bootstrap-sync to disable
11484         it.
11485
11486 2010-11-20  Bruno Haible  <bruno@clisp.org>
11487
11488         Ensure that <features.h> is included before __GLIBC__ is tested.
11489         * lib/printf-parse.h: Include <features.h>.
11490         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11491         Reported by Mike Frysinger <vapier@gentoo.org>.
11492
11493         Ensure that <features.h> is included before __GLIBC__ is tested.
11494         * lib/wchar.in.h: Include <features.h>.
11495         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11496         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11497         Reported by Mike Frysinger <vapier@gentoo.org>.
11498
11499         Ensure that <features.h> is included before __GLIBC__ is tested.
11500         * lib/arpa_inet.in.h: Include <features.h>.
11501         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11502         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11503         Reported by Mike Frysinger <vapier@gentoo.org>.
11504
11505         Ensure that <features.h> is included before __GLIBC__ is tested.
11506         * build-aux/link-warning.h: Include <features.h>.
11507         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11508         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11509         Reported by Mike Frysinger <vapier@gentoo.org>.
11510
11511         Ensure that <features.h> is included before __GLIBC__ is tested.
11512         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11513         Reported by Mike Frysinger <vapier@gentoo.org>.
11514
11515 2010-11-20  Bruno Haible  <bruno@clisp.org>
11516
11517         memmem: Fix autoconf test.
11518         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11519
11520 2010-11-20  Bruno Haible  <bruno@clisp.org>
11521
11522         Port to uClibc.
11523         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11524         * lib/fcntl.in.h: Likewise.
11525         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11526         * lib/mbrtowc.c (mbrtowc): Likewise.
11527         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11528         * lib/strerror_r.c: Likewise.
11529         * lib/unistr/u8-strnlen.c: Likewise.
11530         * lib/vasnprintf.c (decimal_point_char): Likewise.
11531         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11532         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11534         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11535         * tests/test-sigaction.c (handler, main): Likewise.
11536         * lib/freading.h: Treat uClibc like a non-glibc platform.
11537         * lib/freading.c: Likewise.
11538         * lib/gettext.h: Likewise.
11539         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11540         Likewise.
11541         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11542         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11543         * lib/propername.c (proper_name_utf8): Likewise.
11544         * lib/spawn.in.h: Likewise.
11545         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11546         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11547         mem_cd_iconveh_internal): Likewise.
11548         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11549         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11550         strstr, strcasestr): Likewise.
11551         * lib/unicodeio.c (unicode_to_mb): Likewise.
11552         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11553         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11554         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11555         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11556         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11557         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11558         * lib/unistr/u8-stpncpy.c: Likewise.
11559         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11560         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11561         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11562         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11563         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11564         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11565         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11568         Likewise.
11569         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11570         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11571         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11573         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11574         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11575         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11576         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11577         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11578         * tests/test-striconveha.c (main): Likewise.
11579         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11580         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11581         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11582         * doc/posix-functions/getline.texi: Likewise.
11583         Reported by Mike Frysinger <vapier@gentoo.org>.
11584
11585 2010-11-20  Bruno Haible  <bruno@clisp.org>
11586
11587         nproc: Fix condition.
11588         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11589         HAVE_PTHREAD_AFFINITY_NP.
11590
11591 2010-11-20  Bruno Haible  <bruno@clisp.org>
11592
11593         Fix a comment.
11594         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11595
11596 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11597
11598         ftoastr: don't assume snprintf
11599         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11600         Implement a subset of snprintf here, by using sprintf safely.
11601         * modules/ftoastr (Depends-on): Remove snprintf.
11602
11603 2010-11-19  Jim Meyering  <meyering@redhat.com>
11604
11605         test-rename.h: fix compilation failure
11606         * tests/test-rename.h (test_rename): Add omitted "}".
11607
11608 2010-11-17  Jim Meyering  <meyering@redhat.com>
11609
11610         maint.mk: add a URL discussing the no-@acronym policy
11611         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11612
11613 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11614
11615         ftoastr: depend on snprintf, improve comments
11616         * lib/ftoastr.c: Also mention Loitsch's draft.
11617         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11618         needed in the current implementation, but it might simplify
11619         speeding up the code later.
11620         * modules/ftoastr: Depend on snprintf; this improves portability.
11621         Suggested by Bruno Haible in the same email.
11622
11623         ftoastr: port to hosts lacking strtof and strtold
11624         Problem reported by Bruno Haible in
11625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11626         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11627         environment and strtold (and presumably strtof) are not available.
11628         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11629         (configure.ac): Require gl_C99_STRTOLD.
11630
11631 2010-11-18  Bruno Haible  <bruno@clisp.org>
11632
11633         c-strtold: Avoid link error on AIX 7.
11634         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11635         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11636         (gl_C_STRTOLD): Test whether strtold_l exists.
11637         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11638
11639 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11640
11641         intprops: new macro INT_BITS_STRLEN_BOUND
11642         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11643         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11644         not exposed.  Also, it uses a slightly tighter bound than before;
11645         though this makes no practical difference, we might as well be as
11646         tight as we easily can.
11647
11648         ftoastr: new module, for lossless conversion of floats to short strings
11649         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11650         * modules/ftoastr: New files.
11651
11652 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11653
11654         bootstrap: port to Solaris sed
11655         * build-aux/bootstrap (get_version): Port to Solaris sed.
11656         See Ralf Wildenhues's note in
11657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11658
11659 2010-11-14  Jim Meyering  <meyering@redhat.com>
11660
11661         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11662         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11663         and move definition closer to sole use.
11664
11665 2010-11-13  Jim Meyering  <meyering@redhat.com>
11666
11667         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11668         Now we require at least autoconf-2.59, which means the work-around
11669         is no longer needed.
11670         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11671         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11672         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11673         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11674         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11675
11676 2010-11-13  Bruno Haible  <bruno@clisp.org>
11677
11678         rename, renameat: Avoid test failures at NFS mounted locations.
11679         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11680         functions.
11681         (test_rename): Use assert_nonexistent.
11682         * tests/test-rename.c: Include <dirent.h>.
11683         * tests/test-renameat.c: Likewise.
11684         Reported by Gary V. Vaughan <gary@gnu.org>.
11685
11686         rename, renameat: Document Linux bug with NFS
11687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11688         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11689         * doc/posix-functions/renameat.texi: Likewise.
11690         Suggested by Eric Blake.
11691
11692 2010-11-13  Bruno Haible  <bruno@clisp.org>
11693
11694         rename test: Add comments.
11695         * tests/test-rename.h (test_rename): Add structure and comments.
11696
11697 2010-11-13  Eric Blake  <eblake@redhat.com>
11698
11699         maintainer-makefile: cover a few more files
11700         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11701         scripts generated within C files, for libvirt.
11702
11703 2010-11-13  Bruno Haible  <bruno@clisp.org>
11704
11705         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11706         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11707         character, return the number of bytes that belong together, not always
11708         1.
11709         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11710         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11711         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11712         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11713         number of bytes of an invalid character.
11714         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11715         (main): Invoke it.
11716         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11717         results.
11718         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11719         malformed byte sequences.
11720         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11721         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11722         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11723         Reported by Ben Pfaff and Paolo Bonzini.
11724
11725 2010-11-13  Bruno Haible  <bruno@clisp.org>
11726
11727         openat: Work around glibc bug with fchownat() and empty file names.
11728         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11729         (gl_FUNC_FCHOWNAT): Invoke it.
11730         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11731         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11732         Reported by Gary V. Vaughan <gary@gnu.org>.
11733
11734 2010-11-13  Bruno Haible  <bruno@clisp.org>
11735
11736         openat: Ensure autoconf macro ordering.
11737         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11738         gl_USE_SYSTEM_EXTENSIONS.
11739         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11740
11741 2010-11-13  Bruno Haible  <bruno@clisp.org>
11742
11743         Update comments.
11744         * lib/unistr/u8-check.c: Update file name in comments.
11745         * lib/unistr/u8-mblen.c: Likewise.
11746         * lib/unistr/u8-prev.c: Likewise.
11747         * lib/unistr/u8-strmblen.c: Likewise.
11748         * lib/unistr/u8-strmbtouc.c: Likewise.
11749
11750 2010-11-13  Jim Meyering  <meyering@redhat.com>
11751
11752         tests: avoid test failure on Solaris 10 due to lack of PATH export
11753         * tests/test-update-copyright.sh: Don't forget to export PATH.
11754
11755         init.sh: ensure that IFS is defined, just in case...
11756         * tests/init.sh (setup_): Ensure that IFS is defined,
11757         so that saving and restoring it works as expected.  This
11758         appears to be useful at least for an old version of dash
11759         from a long time ago (RH 6).  See here for details:
11760         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11761
11762         maint.mk: tighten "test a == b" check
11763         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11764         test to files that contain something like #!/bin/sh.
11765         Without this, coreutils would get two false positives in
11766         the comments of C source files.
11767
11768 2010-11-12  Eric Blake  <eblake@redhat.com>
11769
11770         bootstrap: fix typo in previous attempt
11771         * build-aux/bootstrap (buildreq): Correct the grouping.
11772         Reported by Paul Eggert.
11773
11774         maintainer-makefile: prohibit test x == x
11775         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11776         Based on a report by Matthias Bolte.
11777
11778         bootstrap: allow FreeBSD gzip
11779         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11780         which has no '.' and goes to stderr.
11781         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11782         Reported by Matthias Bolte.
11783
11784         maintainer-makefile: check for i18n setup
11785         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11786         will likely work.
11787
11788 2010-11-12  Bruno Haible  <bruno@clisp.org>
11789
11790         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11791         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11792         * lib/nanosleep.c (nanosleep): Likewise.
11793
11794 2010-11-11  Bruno Haible  <bruno@clisp.org>
11795
11796         fcntl-h: Fix for use of C++ on glibc systems.
11797         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11798         also on glibc systems in C++ mode.
11799         Reported by Gary V. Vaughan <gary@gnu.org>.
11800
11801 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11802
11803         mknod: avoid false failure with dash
11804         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11805
11806 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11807
11808         unlink: Fix "is it should" typo in diagnostic.
11809         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11810         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11811
11812 2010-11-11  Bruno Haible  <bruno@clisp.org>
11813
11814         Tests for module 'strerror_r-posix'.
11815         * modules/strerror_r-posix-tests: New file.
11816         * tests/test-strerror_r.c: New file.
11817         * tests/test-string-c++.cc: Check the signature of strerror_r.
11818
11819         New module 'strerror_r-posix'.
11820         * lib/string.in.h (strerror_r): New declaration.
11821         * lib/strerror_r.c: New file.
11822         * m4/strerror_r.m4: New file.
11823         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11824         of strerror_r.
11825         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11826         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11827         * modules/strerror_r-posix: New file.
11828         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11829         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11830         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11831         portability problems.
11832
11833 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11834
11835         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11836         line is also considered for output. Quoted function name in shell
11837         command, so temporary files for functions like MyClass::operator()
11838         are removed correctly without errors.
11839
11840 2010-11-09  Bruno Haible  <bruno@clisp.org>
11841
11842         * doc/posix-functions/strerror.texi: List more failing platforms.
11843
11844         * doc/posix-functions/strerror.texi: Add a comment.
11845
11846 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11847
11848         fdopendir: fix bug on MacOS X when low on file descriptors
11849
11850         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11851         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11852         All callers changed.
11853         (fdopendir): Invoke save_cwd at the top level, not after using
11854         multiple dup() calls to use up file descriptors.  Then retry
11855         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11856         less than the maximum number of open file descriptors, because
11857         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11858         on Mac OS X 10.6.4 for tar 1.24
11859         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11860         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11861         and for tar 1.25
11862         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11863
11864 2010-11-07  Bruno Haible  <bruno@clisp.org>
11865
11866         vasnprintf: Support I flag on glibc systems.
11867         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11868         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11869         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11870         snprintf function.
11871         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11872         glibc systems.
11873         * tests/test-vasnprintf-posix3.c: New file.
11874         * modules/vasnprintf-posix-tests (Files): Add it.
11875         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11876
11877 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11878
11879         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11880         * MODULES.html.sh: For compiler warnings, use name
11881         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11882
11883 2010-11-05  Eric Blake  <eblake@redhat.com>
11884
11885         ceil, floor: avoid spurious failure with icc
11886         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11887         [denormals-as-zero] when optimizing without -mieee-fp option.
11888         * tests/test-floorf2.c (floorf_reference): Likewise.
11889         * tests/test-ceilf1.c (dummy): New function.
11890         (main): Use it to outsmart icc's optimization.
11891         * tests/test-floorf1.c (dummy, main): Likewise.
11892
11893         tests: require working signbit
11894         * modules/ceilf-tests (Depends-on): Add signbit.
11895         * modules/ceill-tests (Depends-on): Likewise.
11896         * modules/floorf-tests (Depends-on): Likewise.
11897         * modules/floorl-tests (Depends-on): Likewise.
11898         * modules/round-tests (Depends-on): Likewise.
11899         * modules/roundf-tests (Depends-on): Likewise.
11900         * modules/roundl-tests (Depends-on): Likewise.
11901         * modules/trunc-tests (Depends-on): Likewise.
11902         * modules/truncf-tests (Depends-on): Likewise.
11903         * modules/truncl-tests (Depends-on): Likewise.
11904
11905         strtod: work around icc bug
11906         * lib/strtod.c (minus_zero): Define to working value.
11907         (strtod): Use it to avoid icc bug.
11908
11909         copysign: enhance tests
11910         * modules/copysign-tests (Files): Add minus-zero.h.
11911         * tests/test-copysign.c (main): Also test zeros.
11912
11913 2010-11-04  Eric Blake  <eblake@redhat.com>
11914
11915         ceil, floor, round, trunc: enhance tests of -0
11916         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11917         * tests/test-ceill.c (main): Likewise.
11918         * tests/test-floorf1.c (main): Likewise.
11919         * tests/test-floorl.c (main): Likewise.
11920         * tests/test-round1.c (main): Likewise.
11921         * tests/test-roundf1.c (main): Likewise.
11922         * tests/test-roundl.c (main): Likewise.
11923         * tests/test-trunc1.c (main): Likewise.
11924         * tests/test-truncf1.c (main): Likewise.
11925         * tests/test-truncl.c (main): Likewise.
11926
11927 2010-11-04  Eric Blake  <eblake@redhat.com>
11928
11929         frexp, tests: work around ICC bug with -zero
11930         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11931         works with more compilers.
11932         * tests/minus-zero.h: New file.
11933         * modules/ceilf-tests (Files): Include it.
11934         * modules/ceill-tests (Files): Likewise.
11935         * modules/floorf-tests (Files): Likewise.
11936         * modules/floorl-tests (Files): Likewise.
11937         * modules/frexp-nolibm-tests (Files): Likewise.
11938         * modules/frexp-tests (Files): Likewise.
11939         * modules/frexpl-nolibm-tests (Files): Likewise.
11940         * modules/frexpl-tests (Files): Likewise.
11941         * modules/isnan-tests (Files): Likewise.
11942         * modules/isnand-nolibm-tests (Files): Likewise.
11943         * modules/isnand-tests (Files): Likewise.
11944         * modules/isnanf-nolibm-tests (Files): Likewise.
11945         * modules/isnanf-tests (Files): Likewise.
11946         * modules/isnanl-nolibm-tests (Files): Likewise.
11947         * modules/isnanl-tests (Files): Likewise.
11948         * modules/round-tests (Files): Likewise.
11949         * modules/roundf-tests (Files): Likewise.
11950         * modules/roundl-tests (Files): Likewise.
11951         * modules/ldexpl-tests (Files): Likewise.
11952         * modules/signbit-tests (Files): Likewise.
11953         * modules/snprintf-posix-tests (Files): Likewise.
11954         * modules/sprintf-posix-tests (Files): Likewise.
11955         * modules/strtod-tests (Files): Likewise.
11956         * modules/trunc-tests (Files): Likewise.
11957         * modules/truncf-tests (Files): Likewise.
11958         * modules/truncl-tests (Files): Likewise.
11959         * modules/vsnprintf-posix-tests (Files): Likewise.
11960         * modules/vsprintf-posix-tests (Files): Likewise.
11961         * modules/vasnprintf-posix-tests (Files): Likewise.
11962         * modules/vasprintf-posix-tests (Files): Likewise.
11963         * tests/test-ceilf1.c (main): Use it.
11964         * tests/test-ceill.c (main): Likewise.
11965         * tests/test-floorf1.c (main): Likewise.
11966         * tests/test-floorl.c (main): Likewise.
11967         * tests/test-frexp.c (main): Likewise.
11968         * tests/test-frexpl.c (main): Likewise.
11969         * tests/test-isnan.c (main): Likewise.
11970         * tests/test-isnand.h (main): Likewise.
11971         * tests/test-isnanf.h (main): Likewise.
11972         * tests/test-isnanl.h (main): Likewise.
11973         * tests/test-ldexpl.c (main): Likewise.
11974         * tests/test-round.c (main): Likewise.
11975         * tests/test-roundf.c (main): Likewise.
11976         * tests/test-roundl.c (main): Likewise.
11977         * tests/test-signbit.c (test_signbitf, test_signbitd)
11978         (test_signbitl): Likewise.
11979         * tests/test-snprintf-posix.h (test_function): Likewise.
11980         * tests/test-sprintf-posix.h (test_function): Likewise.
11981         * tests/test-strtod.c (main): Likewise.
11982         * tests/test-trunc1.c (main): Likewise.
11983         * tests/test-truncf1.c (main): Likewise.
11984         * tests/test-truncl.c (main): Likewise.
11985
11986         isnanl: work around icc bug
11987         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11988
11989 2010-11-03  Eric Blake  <eblake@redhat.com>
11990
11991         tests: fix compiler warnings
11992         * tests/test-getopt.h (test_getopt): Fix condition.
11993         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11994         * tests/test-pipe2.c (main): Likewise.
11995         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11996
11997         utimens: fix broken m4 test
11998         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11999
12000 2010-10-28  Bruno Haible  <bruno@clisp.org>
12001
12002         posix_spawn*, getdtablesize: Relax license.
12003         * modules/posix_spawn (License): Change to LGPLv2+.
12004         * modules/posix_spawnp (License): Likewise.
12005         * modules/posix_spawn-internal (License): Likewise.
12006         * modules/posix_spawnattr_init (License): Likewise.
12007         * modules/posix_spawnattr_getflags (License): Likewise.
12008         * modules/posix_spawnattr_setflags (License): Likewise.
12009         * modules/posix_spawnattr_getpgroup (License): Likewise.
12010         * modules/posix_spawnattr_setpgroup (License): Likewise.
12011         * modules/posix_spawnattr_getschedparam (License): Likewise.
12012         * modules/posix_spawnattr_setschedparam (License): Likewise.
12013         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12014         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12015         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12016         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12017         * modules/posix_spawnattr_getsigmask (License): Likewise.
12018         * modules/posix_spawnattr_setsigmask (License): Likewise.
12019         * modules/posix_spawnattr_destroy (License): Likewise.
12020         * modules/posix_spawn_file_actions_init (License): Likewise.
12021         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12022         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12023         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12024         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12025         * modules/getdtablesize (License): Likewise.
12026         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12027
12028 2010-10-26  Bruno Haible  <bruno@clisp.org>
12029
12030         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12031         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12032         Cygwin and mingw.
12033         Suggested by Eric Blake.
12034
12035 2010-10-26  Bruno Haible  <bruno@clisp.org>
12036
12037         stdio: Work around compilation error due to renameat() on Solaris 10.
12038         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12039         * lib/renameat.c: Don't include <unistd.h> here.
12040         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12041         Reported by Paul Eggert and Eric Blake.
12042
12043 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12044
12045         renameat: port to Solaris 10, which declares renameat in unistd.h
12046
12047         * lib/renameat.c: Include unistd.h before stdio.h, because
12048         Solaris 10 declares renameat in unistd.h.  Problem encountered
12049         when building GNU tar 1.24 on Solaris 10.
12050
12051 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12052
12053         fdopendir: fix C89 compilation
12054         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12055         compilers.
12056
12057 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         inttostr: simplify by removing unnecessary redundancy
12060         * lib/anytostr.c: Don't include verify.h.
12061         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12062         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12063         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12064         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12065         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12066         Likewise.
12067         * modules/inttostr (Depends-on): Remove 'verify'.
12068
12069 2010-10-23  Bruno Haible  <bruno@clisp.org>
12070
12071         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12072         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12073         Reported by Eric Blake.
12074
12075 2010-10-23  Bruno Haible  <bruno@clisp.org>
12076
12077         Tests: Fix LOCALE_JA on MirBSD 10.
12078         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12079         to an UTF-8 locale.
12080         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12081         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12082         Reported by Eric Blake.
12083
12084 2010-10-21  Bruno Haible  <bruno@clisp.org>
12085
12086         nl_langinfo test: Avoid test failure on NetBSD 5.
12087         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12088         Reported by Eric Blake.
12089
12090 2010-10-21  Eric Blake  <eblake@redhat.com>
12091
12092         c-stack: work around libsigsegv 2.8 bug
12093         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12094         overflow on at least PowerPC64.
12095
12096 2010-10-17  Bruno Haible  <bruno@clisp.org>
12097
12098         userspec: Drop redundant file.
12099         * modules/userspec (Files): Remove lib/inttostr.h.
12100
12101 2010-10-17  Bruno Haible  <bruno@clisp.org>
12102
12103         nl_langinfo tests: Silence some warnings.
12104         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12105         Reported by Jim Meyering.
12106
12107 2010-10-17  Bruno Haible  <bruno@clisp.org>
12108
12109         Make use of GCC's attribute __alloc_size__.
12110         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12111         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12112         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12113         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12114         __alloc_size__.
12115         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12116         Suggested by Jim Meyering.
12117
12118 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12119
12120         bootstrap: anchor .gitignore entries.
12121         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12122         with...
12123         (insert_vc_ignore): ... this new function, which prepends `/' to
12124         all .gitignore entries before passing them to
12125         insert_sorted_if_absent.
12126
12127 2010-10-16  Bruno Haible  <bruno@clisp.org>
12128
12129         nextafter: Fix configure check.
12130         * modules/nextafter (configure.ac): Correct expected prototype.
12131
12132 2010-10-16  Bruno Haible  <bruno@clisp.org>
12133
12134         termios: Update documentation.
12135         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12136
12137 2010-10-16  Bruno Haible  <bruno@clisp.org>
12138
12139         tests: Make them compile with TinyCC.
12140         * tests/test-strstr.c (main): Remove parentheses around array
12141         initializer.
12142
12143 2010-10-15  Eric Blake  <eblake@redhat.com>
12144
12145         ignore-value: make header idempotent
12146         * lib/ignore-value.h: Add double-inclusion guards.
12147         Reported by Stefan Berger.
12148
12149 2010-10-15  Jim Meyering  <meyering@redhat.com>
12150
12151         GNUmakefile: handle "stable" target, not "major"
12152         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12153         lists in maint.mk and announce-gen.  Without this, "make stable"
12154         would fail to ensure that $(VERSION) is up to date.
12155
12156 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12157
12158         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12159         & co.
12160
12161 2010-10-14  Bruno Haible  <bruno@clisp.org>
12162
12163         vasnprintf: Don't set errno to 0.
12164         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12165         block that sets it to 0.
12166         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12167
12168 2010-10-14  Bruno Haible  <bruno@clisp.org>
12169
12170         socketlib: Fix.
12171         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12172         gl_PREREQ_SYS_H_WINSOCK2.
12173         Reported by Ian Beckwith <ianb@erislabs.net>.
12174
12175 2010-10-13  Jim Meyering  <meyering@redhat.com>
12176
12177         test-select-stdin.c: avoid warn_unused_result warnings
12178         * tests/test-select-stdin.c: Include "macros.h".
12179         ASSERT that read and fflush succeed.
12180
12181 2010-10-13  Jim Meyering  <meyering@redhat.com>
12182
12183         git-version-gen: do require git-VC'd files in cwd
12184         * build-aux/git-version-gen: Reject a git version string
12185         if there are no commits associated with the current directory.
12186         This avoids an unlikely false-positive (unrelated dir whose parent
12187         repository also contains a tag matching v*), as pointed out
12188         by Giuseppe Scrivano in
12189         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12190
12191 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12192
12193         argv-iter: omit nonconforming declaration
12194         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12195         enum arg_iter_err declaration, which doesn't conform to C99.
12196         Solaris 10 cc warns about this.
12197
12198 2010-10-13  Eric Blake  <eblake@redhat.com>
12199
12200         termios: fix compilation on mingw
12201         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12202         (gl_TERMIOS_H): Adjust it on mingw.
12203         * modules/termios (Makefile.am): Substitute new key.
12204         * lib/termios.in.h (includes): Make include_next conditional.
12205         * doc/posix-headers/termios.texi (termios.h): Update
12206         documentation.
12207         Reported by Daniel P. Berrange.
12208
12209 2010-10-13  Jim Meyering  <meyering@redhat.com>
12210
12211         git-version-gen: don't require that .git/ be in the current dir
12212         * build-aux/git-version-gen: Adjust this script so that it works
12213         when run from any working directory beneath the top-level .git/-
12214         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12215         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12216
12217         test-select: avoid warn_unused_result warnings
12218         * tests/test-select.c: Include "macros.h".
12219         ASSERT that each call to read, write, and pipe succeeds.
12220         While not technically required, also check each "close".
12221         * modules/select-tests (Files): Add tests/macros.h.
12222
12223         test-symlinkat: remove declaration of unused local
12224         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12225
12226         test-inttostr: avoid shadowing warnings
12227         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12228         and use malloc rather than the stack for the same reason as
12229         mentioned in the comment justifying the other allocation.
12230
12231 2010-10-11  Bruno Haible  <bruno@clisp.org>
12232
12233         stdlib: Allow multiple gnulib generated replacements to coexist.
12234         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12235         Reported by Sam Steingold <sds@gnu.org>.
12236
12237 2010-10-11  Jim Meyering  <meyering@redhat.com>
12238
12239         fix a documentation typo
12240         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12241
12242 2010-10-11  Eric Blake  <eblake@redhat.com>
12243
12244         futimens: work around Solaris 11 bug
12245         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12246         * tests/test-futimens.h (test_futimens): Enhance, rather than
12247         weaken test.
12248         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12249
12250 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12251
12252         Indentation.
12253         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12254         higher-level operators more to the left.
12255
12256 2010-10-11  Jim Meyering  <meyering@redhat.com>
12257
12258         test-futimens: avoid unwarranted test failure on Solaris 5.11
12259         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12260         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12261         because it tries to dereference the NULL name argument.
12262
12263 2010-10-11  Bruno Haible  <bruno@clisp.org>
12264
12265         Indentation.
12266         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12267         indentation.
12268
12269 2010-10-11  Jim Meyering  <meyering@redhat.com>
12270
12271         spawn.in.h: make indentation consistent with parentheses
12272         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12273         Make indentation consistent with parentheses.
12274
12275 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12276
12277         Fix mismatched parens in previous commit
12278         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12279         parens.
12280
12281 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12282
12283         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12284
12285         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12286         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12287         * lib/malloca.c: Include "verify.h".
12288         (verify1): Remove, replacing with a verify call.
12289         * lib/relocwrapper.c (verify1): Likewise.
12290         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12291         Likewise.
12292         * modules/malloca (Depends-on): Add 'verify'.
12293         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12294         * modules/vasnprintf (Depends-on): Add 'verify'.
12295         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12296         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12297         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12298         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12299         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12300         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12301         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12302
12303         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12304
12305         Formerly the style was sometimes 2*X - 1, because the C standard
12306         was wrongly thought to disallow ?: in integral constant expressions.
12307         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12308         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12309         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12310         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12311         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12312         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12313         verify that time_t cannot be floating.
12314
12315 2010-10-08  Eric Blake  <eblake@redhat.com>
12316
12317         time: enforce recent POSIX ruling that time_t is integral
12318         * lib/time.in.h (__time_t_must_be_integral): Detect any
12319         problematic systems, allowing the rest of gnulib to assume POSIX.
12320
12321 2010-10-08  Jim Meyering  <meyering@redhat.com>
12322
12323         fdopendir: fix a bug on systems lacking openat and /proc support
12324         OpenBSD 4.7 is one such system.  The most noticeable effect was
12325         failure of any application making nontrivial use of fts: rm, du,
12326         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12327           ./rm: traversal failed: `a': Bad file descriptor
12328         Debugging that, you see that even though FD 6 was closed just
12329         prior to the opendir call in fd_clone_opendir, its resulting
12330         dir->dd_fd was 8, rather than the expected value of 6:
12331
12332         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12333         93                close (fd);
12334         (gdb) n
12335         94                dir = fd_clone_opendir (dupfd);
12336         (gdb) n
12337         95                saved_errno = errno;
12338         (gdb) p dir->dd_fd
12339         $11 = 8
12340
12341         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12342         The problem is that on OpenBSD, fd_clone_opendir has to resort
12343         to using the old-style save/restore CWD mechanism, due to its
12344         lack of openat/proc support, and *that* would steal the FD (6)
12345         that opendir was supposed to use.
12346
12347         The fix is to squirrel away the desired FD so that save_cwd uses a
12348         different one, and then free the dest FD right before calling opendir.
12349         That guarantees opendir will use the required file descriptor.
12350
12351         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12352
12353 2010-10-08  Bruno Haible  <bruno@clisp.org>
12354
12355         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12356         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12357
12358 2010-10-08  Bruno Haible  <bruno@clisp.org>
12359
12360         nanosleep: Make replacement POSIX compliant.
12361         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12362         is out of range.
12363         Reported by Jim Meyering.
12364
12365 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         bootstrap: add hook for altering gnulib.mk, for Bison
12368         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12369         the Bison bootstrapping process can rewrite file names and variables
12370         in this file before later parts of 'bootstrap' use the file.
12371         Bison wants to include lib/gnulib.mk from the top-level makefile,
12372         so it needs the file names in this file to be relative to the top
12373         level, not relative to lib; plus it needs variable names to be
12374         rewritten.
12375         (slurp): Use the new function.
12376
12377         bootstrap: reformat for readability
12378         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12379
12380 2010-10-08  Eric Blake  <eblake@redhat.com>
12381
12382         docs: update cygwin progress
12383         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12384         1.7.7.
12385         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12386         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12387         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12388         * doc/posix-functions/carg.texi (carg): Likewise.
12389         * doc/posix-functions/cargf.texi (cargf): Likewise.
12390         * doc/posix-functions/casin.texi (casin): Likewise.
12391         * doc/posix-functions/casinf.texi (casinf): Likewise.
12392         * doc/posix-functions/casinh.texi (casinh): Likewise.
12393         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12394         * doc/posix-functions/catan.texi (catan): Likewise.
12395         * doc/posix-functions/catanf.texi (catanf): Likewise.
12396         * doc/posix-functions/catanh.texi (catanh): Likewise.
12397         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12398         * doc/posix-functions/ccos.texi (ccos): Likewise.
12399         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12400         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12401         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12402         * doc/posix-functions/cexp.texi (cexp): Likewise.
12403         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12404         * doc/posix-functions/cimag.texi (cimag): Likewise.
12405         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12406         * doc/posix-functions/clog.texi (clog): Likewise.
12407         * doc/posix-functions/clogf.texi (clogf): Likewise.
12408         * doc/posix-functions/conj.texi (conj): Likewise.
12409         * doc/posix-functions/conjf.texi (conjf): Likewise.
12410         * doc/posix-functions/cpow.texi (cpow): Likewise.
12411         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12412         * doc/posix-functions/cproj.texi (cproj): Likewise.
12413         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12414         * doc/posix-functions/creal.texi (creal): Likewise.
12415         * doc/posix-functions/crealf.texi (crealf): Likewise.
12416         * doc/posix-functions/csin.texi (csin): Likewise.
12417         * doc/posix-functions/csinf.texi (csinf): Likewise.
12418         * doc/posix-functions/csinh.texi (csinh): Likewise.
12419         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12420         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12421         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12422         * doc/posix-functions/ctan.texi (ctan): Likewise.
12423         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12424         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12425         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12426         * doc/posix-headers/complex.texi (complex.h): Likewise.
12427
12428 2010-10-07  Jim Meyering  <meyering@redhat.com>
12429
12430         parse-datetime: avoid compilation failure on OpenBSD 4.7
12431         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12432         This works around a compilation failure on OpenBSD 4.7:
12433         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12434
12435 2010-10-07  Eric Blake  <eblake@redhat.com>
12436
12437         docs: update cygwin progress
12438         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12439         1.7.6.
12440         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12441         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12442         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12443         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12444         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12445         Likewise.
12446         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12447         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12448         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12449         Likewise.
12450         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12451         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12452         Likewise.
12453         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12454         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12455         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12456         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12457         Likewise.
12458         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12459         Likewise.
12460         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12461
12462         docs: update parse-datetime history
12463         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12464         documentation of this function's history and alternatives.
12465
12466         cygwin: use more robust version check
12467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12468         exclude an eventual cygwin 1.9.1.
12469         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12471         (gl_FUNC_STRCASESTR): Likewise.
12472         Reported by Bruno Haible.
12473
12474 2010-10-06  Bruno Haible  <bruno@clisp.org>
12475
12476         string, sys_select: Avoid #including large headers unless necessary.
12477         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12478         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12479         OSF/1, BeOS, Haiku.
12480         Reported by Jim Meyering.
12481
12482 2010-10-05  Eric Blake  <eblake@redhat.com>
12483
12484         memmem, strstr, strcasestr: fix bug with long periodic needle
12485         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12486         periodic needle having false positive.
12487         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12488         and cygwin 1.7.7.
12489         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12491         (gl_FUNC_STRCASESTR): Likewise.
12492         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12493         * tests/test-memmem.c (main): Expose the bug.
12494         * tests/test-strcasestr.c (main): Likewise.
12495         * tests/test-strstr.c (main): Likewise.
12496         * tests/test-c-strcasestr.c (main): Likewise.
12497         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12498         * doc/posix-functions/strstr.texi (strstr): Likewise.
12499         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12500         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12501
12502 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12503
12504         parse-datetime: do some more renaming
12505         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12506         parse_datetime, not get_date.  Mention the renaming.
12507         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12508         in comments.
12509         * m4/bison.m4: Likewise.
12510
12511 2010-10-05  Eric Blake  <eblake@redhat.com>
12512
12513         parse-datetime: better name than get_date
12514         * NEWS: Reword the deprecation notice.
12515         * modules/get_date: Rename to modules/parse-datetime.
12516         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12517         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12518         * lib/get_date.y: Rename to lib/parse-datetime.y.
12519         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12520         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12521         * doc/getdate.texi: Provide fallback wrapper.
12522         * lib/getdate.h: Move guts, and wrap...
12523         * lib/parse-datetime.h: ...new file.
12524         * lib/parse-datetime.y (get_date): Rename...
12525         (parse_datetime): ...to this.
12526         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12527         (gl_PARSE_DATETIME): ...to this.
12528         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12529         documentation.
12530         * modules/getdate (Files): Provide fallback docs and header.
12531         (Notice, Depends-on): Update references.
12532         * tests/test-parse-datetime.c: Likewise.
12533         * DEPENDENCIES: Likewise.
12534         * MODULES.html.sh (Date and time <time.h>): Likewise.
12535         * doc/parse-datetime.texi (Date input formats)
12536         (Authors of parse_datetime): Likewise.
12537         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12538         (Include): Likewise.
12539         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12540         * gnulib-tool: Likewise.
12541         * m4/bison.m4 (gl_BISON): Likewise.
12542         Suggested by Bruno Haible.
12543
12544 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         more ports to Solaris tr, which needs [] around ranges
12547         * gnulib-tool: Solaris tr needs [] around ranges.
12548         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12549         * tests/test-pipe-filter-gi1.c (main): Likewise.
12550         * tests/test-pipe-filter-ii1.c (main): Likewise.
12551
12552 2010-10-05  Eric Blake  <eblake@redhat.com>
12553
12554         bootstrap: fix Solaris regression
12555         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12556         around ranges.
12557         Reported by Pádraig Brady.
12558
12559         bootstrap: work with pkg-config
12560         * build-aux/bootstrap (check_versions): Also transliterate - in
12561         prerequisite name.
12562         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12563         prerequisites that were already found, to avoid confusion.
12564         Reported by Justin Clift.
12565
12566         faccessat: remove unused wrappers
12567         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12568         presence of these wrappers dragged in -lgen on Solaris.
12569         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12570
12571 2010-10-05  Jim Meyering  <meyering@redhat.com>
12572
12573         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12574         * Makefile (sc_pragma_columns): New syntax-check rule.
12575
12576 2010-10-04  Bruno Haible  <bruno@clisp.org>
12577
12578         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12579         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12580         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12581         Reported by Bruce Korb and Eric Blake.
12582
12583 2010-10-04  Bruno Haible  <bruno@clisp.org>
12584
12585         threadlib: Make option --with-libpth-prefix work.
12586         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12587         use $LIBPTH, not just -lpth.
12588
12589 2010-10-04  Bruno Haible  <bruno@clisp.org>
12590
12591         Avoid line length limitation from HP NonStop system header files.
12592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12593         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12594         * lib/ctype.in.h: Likewise.
12595         * lib/dirent.in.h: Likewise.
12596         * lib/errno.in.h: Likewise.
12597         * lib/fcntl.in.h: Likewise.
12598         * lib/float.in.h: Likewise.
12599         * lib/getopt.in.h: Likewise.
12600         * lib/iconv.in.h: Likewise.
12601         * lib/inttypes.in.h: Likewise.
12602         * lib/langinfo.in.h: Likewise.
12603         * lib/locale.in.h: Likewise.
12604         * lib/math.in.h: Likewise.
12605         * lib/netdb.in.h: Likewise.
12606         * lib/netinet_in.in.h: Likewise.
12607         * lib/poll.in.h: Likewise.
12608         * lib/pthread.in.h: Likewise.
12609         * lib/pty.in.h: Likewise.
12610         * lib/sched.in.h: Likewise.
12611         * lib/se-selinux.in.h: Likewise.
12612         * lib/search.in.h: Likewise.
12613         * lib/signal.in.h: Likewise.
12614         * lib/spawn.in.h: Likewise.
12615         * lib/stdarg.in.h: Likewise.
12616         * lib/stddef.in.h: Likewise.
12617         * lib/stdint.in.h: Likewise.
12618         * lib/stdio.in.h: Likewise.
12619         * lib/stdlib.in.h: Likewise.
12620         * lib/string.in.h: Likewise.
12621         * lib/strings.in.h: Likewise.
12622         * lib/sys_file.in.h: Likewise.
12623         * lib/sys_ioctl.in.h: Likewise.
12624         * lib/sys_select.in.h: Likewise.
12625         * lib/sys_socket.in.h: Likewise.
12626         * lib/sys_stat.in.h: Likewise.
12627         * lib/sys_time.in.h: Likewise.
12628         * lib/sys_times.in.h: Likewise.
12629         * lib/sys_utsname.in.h: Likewise.
12630         * lib/sys_wait.in.h: Likewise.
12631         * lib/sysexits.in.h: Likewise.
12632         * lib/termios.in.h: Likewise.
12633         * lib/time.in.h: Likewise.
12634         * lib/unistd.in.h: Likewise.
12635         * lib/wchar.in.h: Likewise.
12636         * lib/wctype.in.h: Likewise.
12637         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12638         * modules/ctype (Makefile.am): Likewise.
12639         * modules/dirent (Makefile.am): Likewise.
12640         * modules/errno (Makefile.am): Likewise.
12641         * modules/fcntl-h (Makefile.am): Likewise.
12642         * modules/float (Makefile.am): Likewise.
12643         * modules/getopt-posix (Makefile.am): Likewise.
12644         * modules/iconv-h (Makefile.am): Likewise.
12645         * modules/inttypes (Makefile.am): Likewise.
12646         * modules/langinfo (Makefile.am): Likewise.
12647         * modules/locale (Makefile.am): Likewise.
12648         * modules/math (Makefile.am): Likewise.
12649         * modules/netdb (Makefile.am): Likewise.
12650         * modules/netinet_in (Makefile.am): Likewise.
12651         * modules/poll-h (Makefile.am): Likewise.
12652         * modules/pthread (Makefile.am): Likewise.
12653         * modules/pty (Makefile.am): Likewise.
12654         * modules/sched (Makefile.am): Likewise.
12655         * modules/search (Makefile.am): Likewise.
12656         * modules/selinux-h (Makefile.am): Likewise.
12657         * modules/signal (Makefile.am): Likewise.
12658         * modules/spawn (Makefile.am): Likewise.
12659         * modules/stdarg (Makefile.am): Likewise.
12660         * modules/stddef (Makefile.am): Likewise.
12661         * modules/stdint (Makefile.am): Likewise.
12662         * modules/stdio (Makefile.am): Likewise.
12663         * modules/stdlib (Makefile.am): Likewise.
12664         * modules/string (Makefile.am): Likewise.
12665         * modules/strings (Makefile.am): Likewise.
12666         * modules/sys_file (Makefile.am): Likewise.
12667         * modules/sys_ioctl (Makefile.am): Likewise.
12668         * modules/sys_select (Makefile.am): Likewise.
12669         * modules/sys_socket (Makefile.am): Likewise.
12670         * modules/sys_stat (Makefile.am): Likewise.
12671         * modules/sys_time (Makefile.am): Likewise.
12672         * modules/sys_times (Makefile.am): Likewise.
12673         * modules/sys_utsname (Makefile.am): Likewise.
12674         * modules/sys_wait (Makefile.am): Likewise.
12675         * modules/sysexits (Makefile.am): Likewise.
12676         * modules/termios (Makefile.am): Likewise.
12677         * modules/time (Makefile.am): Likewise.
12678         * modules/unistd (Makefile.am): Likewise.
12679         * modules/wchar (Makefile.am): Likewise.
12680         * modules/wctype (Makefile.am): Likewise.
12681
12682 2010-10-04  Bruno Haible  <bruno@clisp.org>
12683
12684         read-file tests: Avoid a test failure on NonStop Kernel.
12685         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12686         a regular file.
12687         Reported by Joachim Schmitz <schmitz@hp.com>.
12688
12689 2010-10-03  Bruno Haible  <bruno@clisp.org>
12690
12691         gnulib-tool: Fixes for --create-testdir with --libtool.
12692         * gnulib-tool (func_get_automake_snippet): Don't augment
12693         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12694         an executable.
12695         (func_create_testdir): Handle module 'alloca' like func_import.
12696         Reported by Bruce Korb <bruce.korb@gmail.com>.
12697
12698 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12699
12700         Avoid some lines longer than 80 characters.
12701         * lib/stdint.in.h: Break long comment lines.
12702         * lib/math.in.h: Likewise.
12703         (_GL_NUM_UINT_WORDS): New macro, for readability.
12704         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12705         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12706         * lib/stdlib.in.h: Likewise.
12707         * lib/spawn.in.h: Likewise.
12708         * lib/sys_socket.in.h: Update an URL.
12709         * lib/sys_stat.in.h: Break long line.
12710
12711 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12712
12713         Improve pmccabe2html.
12714         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12715         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12716         when the sources change. Remove the line in the HTML about "Used
12717         ranges" (which implied that there might be other unused ranges),
12718         rename "Resume" to "Summary" (easier to understand for more users).
12719         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12720         styles, and some unnecessary blank lines.
12721
12722 2010-10-03  Bruno Haible  <bruno@clisp.org>
12723             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12724
12725         acl: Add support for ACLs on NonStop Kernel.
12726         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12727         Check whether the function aclsort() exists.
12728         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12729         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12730         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12731         (acl_nontrivial [HAVE_ACLSORT]: New function.
12732         (file_has_acl): Implement for NonStop Kernel.
12733         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12734         (qset_acl): Implement for NonStop Kernel.
12735         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12736         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12737         (main): Implement for NonStop Kernel.
12738         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12739         Kernel. Handle this flavor.
12740         * tests/test-set-mode-acl.sh: Likewise.
12741         * tests/test-copy-acl.sh: Likewise.
12742         * tests/test-copy-file.sh: Likewise.
12743
12744 2010-10-03  Bruno Haible  <bruno@clisp.org>
12745
12746         Info about ACLs on NonStop Kernel.
12747         * doc/acl-resources.txt: Add info about NonStop Kernel.
12748         References by Joachim Schmitz <schmitz@hp.com>.
12749
12750 2010-10-02  Bruno Haible  <bruno@clisp.org>
12751
12752         Define missing EDQUOT on NonStop Kernel.
12753         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12754         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12756         missing.
12757         * doc/posix-headers/errno.texi: Mention the NSK bug.
12758         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12759         Reported by Joachim Schmitz <schmitz@hp.com>.
12760
12761 2010-10-02  Bruno Haible  <bruno@clisp.org>
12762
12763         Update doc for POSIX:2008.
12764         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12765         Update URL of POSIX specification.
12766
12767 2010-10-02  Bruno Haible  <bruno@clisp.org>
12768
12769         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12770         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12771         from gnulib, not from Automake.
12772
12773 2010-10-02  Bruno Haible  <bruno@clisp.org>
12774
12775         New module 'system-posix'.
12776         * modules/system-posix: New file.
12777         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12778         module is present.
12779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12780         GNULIB_SYSTEM_POSIX.
12781         * modules/stdlib (Depends-on): Remove sys_wait.
12782         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12783         * doc/posix-functions/system.texi: Mention the new module.
12784         * doc/posix-headers/stdlib.texi: Likewise.
12785         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12786         define test_sys_wait_macros to a no-op.
12787         Reported by Sam Steingold <sds@gnu.org>.
12788
12789 2010-09-30  Bruno Haible  <bruno@clisp.org>
12790
12791         More renaming from 'getdate' to 'get_date'.
12792         * doc/get_date.texi: Renamed from doc/getdate.texi.
12793         * modules/get_date (Files): Update.
12794         * MODULES.html.sh (Date and time <time.h>): Update.
12795         * DEPENDENCIES: Update.
12796         * gnulib-tool: Update comment.
12797         * m4/bison.m4 (gl_BISON): Likewise.
12798         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12799
12800 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12801
12802         bootstrap: support ACLOCAL_FLAGS during aclocal
12803         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12804         can add additional -I dir for third-party .m4 files.
12805
12806 2010-09-30  Eric Blake  <eblake@redhat.com>
12807
12808         bootstrap: use glibtoolize on MacOS
12809         * build-aux/bootstrap (check_versions): Convert libtool into
12810         libtoolize.
12811         (tool search): Move libtool check earlier, and look for
12812         glibtoolize for MacOS.
12813         (gnulib_tool_options): Auto-add --libtool when appropriate.
12814         Reported by Justin Clift.
12815
12816         poll: fix typo that broke test on MacOS
12817         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12818         Reported by Justin Clift.
12819
12820         getdate: rename to get_date
12821         Note: getdate.h is not renamed, to minimize client impact.
12822         * modules/getdate: Mark obsolete.  Move old contents...
12823         * modules/get_date: ...to new module name.
12824         * modules/getdate-tests: Move...
12825         * modules/get_date-tests: ...here.
12826         * m4/getdate.m4: Move...
12827         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12828         * lib/getdate.y: Move...
12829         * lib/get_date.y: ...here.
12830         * tests/test-getdate.c: Move...
12831         * tests/test-get_date.c: ...here.
12832         * doc/posix-functions/getdate.texi (getdate): Update name.
12833         * NEWS: Mention the change.
12834
12835 2010-09-29  Bruno Haible  <bruno@clisp.org>
12836
12837         Separate the module 'waitpid' from the module 'sys_wait'.
12838         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12839         present.
12840         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12841         gl_MODULE_INDICATOR_FOR_TESTS.
12842         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12843         * modules/sys_wait (Depends-on): Remove waitpid.
12844         (Makefile.am): Substitute GNULIB_WAITPID.
12845         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12846         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12847         signature only if the 'waitpid' module is present.
12848         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12849         * NEWS: Mention the change.
12850         * modules/grantpt (Depends-on): Add waitpid.
12851         * modules/wait-process (Depends-on): Likewise.
12852
12853 2010-09-29  Bruno Haible  <bruno@clisp.org>
12854
12855         More tests for module 'sys_wait'.
12856         * modules/sys_wait-c++-tests: New file.
12857         * tests/test-sys_wait-c++.cc: New file.
12858         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12859         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12860
12861 2010-09-29  Bruno Haible  <bruno@clisp.org>
12862
12863         New module 'waitpid'.
12864         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12865         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12866         Don't include <process.h>.
12867         (waitpid): Declare only, using modern idiom.
12868         * m4/waitpid.m4: New file.
12869         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12870         * modules/waitpid: New file.
12871         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12872         (Makefile.am): Update.
12873         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12874
12875 2010-09-28  Bruno Haible  <bruno@clisp.org>
12876
12877         poll: Assume ANSI C.
12878         * lib/poll.c (poll): Use an ANSI C declaration.
12879
12880 2010-09-28  Bruno Haible  <bruno@clisp.org>
12881
12882         poll-h: Create poll.h on all platforms.
12883         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12884         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12885         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12886         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12887         (gl_REPLACE_POLL_H): Don't set POLL_H.
12888         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12889         * modules/poll-h (Depends-on): Add include_next.
12890         (Makefile.am): Create poll.h unconditionally. Substitute also
12891         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12892
12893 2010-09-28  Bruno Haible  <bruno@clisp.org>
12894
12895         Tests for module 'poll-h'.
12896         * modules/poll-h-c++-tests: New file.
12897         * tests/test-poll-h-c++.cc: New file.
12898
12899         Tests for module 'poll-h'.
12900         * modules/poll-h-tests: New file.
12901         * tests/test-poll-h.c: New file.
12902
12903 2010-09-28  Bruno Haible  <bruno@clisp.org>
12904
12905         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12906         * modules/poll-h (Depends-on): Add 'extensions'.
12907
12908 2010-09-28  Bruno Haible  <bruno@clisp.org>
12909
12910         New module 'poll-h'.
12911         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12912         (poll): Use modern idiom.
12913         * modules/poll-h: New file.
12914         * modules/poll (Files): Remove lib/poll.in.h.
12915         (Depends-on): Add poll-h.
12916         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12917         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12918         * m4/poll_h.m4: New file.
12919         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12920         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12921         and invoke gl_REPLACE_POLL_H.
12922         * lib/poll.c: Use common idiom.
12923         * tests/test-poll.c: Likewise.
12924         * doc/posix-headers/poll.texi: Mention the poll-h module.
12925         Suggested by Eric Blake.
12926
12927 2010-09-26  Bruno Haible  <bruno@clisp.org>
12928
12929         sys_wait: Implement WSTOPSIG.
12930         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12931         Reported by Simon Josefsson.
12932
12933 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12934
12935         stdlib, sys_wait: Avoid compilation error on mingw.
12936         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12937
12938 2010-09-26  Bruno Haible  <bruno@clisp.org>
12939
12940         stdlib tests: Avoid code duplication.
12941         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12942         * modules/sys_wait-tests (Files): Likewise.
12943         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12944         * tests/test-stdlib.c: Include test-sys_wait.h.
12945         (main): Invoke test_sys_wait_macros.
12946         * tests/test-sys_wait.c: Include test-sys_wait.h.
12947         (main): Invoke test_sys_wait_macros.
12948
12949 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12950
12951         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12952         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12953         sure Windows sockets are working before calling getaddrinfo.
12954         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12955         * doc/gnulib.texi (Windows sockets): Fix typo.
12956
12957 2010-09-25  Bruno Haible  <bruno@clisp.org>
12958
12959         Tests for module 'regex-quote'.
12960         * modules/regex-quote-tests: New file.
12961         * tests/test-regex-quote.c: New file.
12962
12963         New module 'regex-quote'.
12964         * lib/regex-quote.h: New file.
12965         * lib/regex-quote.c: New file.
12966         * modules/regex-quote: New file.
12967         Suggested by Reuben Thomas <rrt@sc3d.org>.
12968
12969 2010-09-24  Bruno Haible  <bruno@clisp.org>
12970
12971         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12972         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12973
12974 2010-09-23  Bruno Haible  <bruno@clisp.org>
12975
12976         setenv: Relax license.
12977         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12978         Blake.
12979         Requested by Eric Blake.
12980
12981 2010-09-22  Bruno Haible  <bruno@clisp.org>
12982
12983         termios: Relax license.
12984         * modules/termios (License): Change to LGPLv2+.
12985         Requested by Eric Blake.
12986
12987 2010-09-22  Bruno Haible  <bruno@clisp.org>
12988
12989         threadlib: Allow the package to change the default to 'no'.
12990         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12991         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12992         Reported by Paul Eggert.
12993
12994 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12995             Bruno Haible  <bruno@clisp.org>
12996
12997         Fix endless loop in mbmemcasecoll.
12998         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12999         byte.
13000         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13001
13002 2010-09-22  Bruno Haible  <bruno@clisp.org>
13003
13004         Tests for module 'memcoll'.
13005         * modules/memcoll-tests: New file.
13006         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13007
13008         memcoll, xmemcoll: Clarify size vs. length.
13009         * modules/memcoll.c (memcoll0): Clarify specification.
13010         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13011         passed to collate_error.
13012
13013 2010-09-22  Bruno Haible  <bruno@clisp.org>
13014
13015         Tests for module 'memcasecmp'.
13016         * modules/memcasecmp-tests: New file.
13017         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13018
13019 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13020
13021         * lib/pthread.in.h: Add split double-inclusion guard, and include
13022         system <pthread.h> if there is one.  Use @@-style as in other
13023         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13024         pthread.h doesn't.
13025         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13026         (pthread_mutexattr_settype, pthread_mutex_trylock):
13027         New static inline functions, if there's no system <pthread.h>.
13028         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13029         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13030         Approximate with mutexes if the system lacks spinlocks, as in
13031         MacOS.
13032         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13033         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13034         @@-style.  Check for spinlocks separately.
13035         (gl_PTHREAD_DEFAULTS): New macro.
13036         * modules/pthread: Redo to use a more typical style for in.h files.
13037
13038 2010-09-21  Eric Blake  <eblake@redhat.com>
13039
13040         net_if: enhance tests
13041         * tests/test-net_if.c (main): Move signature checks earlier.
13042         Print failures to stderr.
13043         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13044         Document the bug that we do not yet fix.
13045
13046 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13047
13048         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13049         about gnulib, not GSS.
13050
13051 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13052
13053         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13054         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13055         for Emacs.
13056         * build-aux/pmccabe2html: Make Makefile.am example code more
13057         cut-and-paste friendly.
13058
13059 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13060
13061         * tests/test-net_if.c: New file.
13062         * modules/net_if-tests: New file.
13063
13064 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         pthread: add pthread_spin_destroy
13067         * lib/pthread.in.h (pthread_spin_destroy): New function.
13068
13069 2010-09-19  Bruno Haible  <bruno@clisp.org>
13070
13071         gnulib-tool: Fix --help output.
13072         * gnulib-tool (func_usage): Fix help message.
13073         Reported by Reuben Thomas <rrt@sc3d.org>.
13074
13075 2010-09-18  Jim Meyering  <meyering@redhat.com>
13076
13077         maint.mk: avoid unexpanded \n in two diagnostics
13078         * top/maint.mk (sc_prohibit_always_true_header_tests):
13079         Don't use a literal \n in a halt=... assignment.  It would not be
13080         expanded, and the two \n bytes would appear in the diagnostic output
13081         rather than the desired newline.  Use halt=$$(printf ... instead.
13082         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13083
13084 2010-09-18  Bruno Haible  <bruno@clisp.org>
13085
13086         netinet_in: Doc tweak.
13087         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13088         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13089
13090 2010-09-18  Jim Meyering  <meyering@redhat.com>
13091
13092         init.sh: correct an outdated comment
13093         * tests/init.sh (create_exe_shims_):  s/function/alias/
13094
13095         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13096         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13097         a file named "*.exe" is removed between the glob expansion and the
13098         processing of that oddly named file.
13099
13100 2010-09-17  Eric Blake  <eblake@redhat.com>
13101
13102         mirbsd: add some more support
13103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13104         in BSD family.
13105         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13106         devices as OpenBSD.
13107         * m4/host-os.m4 (mirbsd): Add MirBSD.
13108
13109         tests: fix unportable assumption on sys/wait.h
13110         * tests/test-sys_wait.c (main): Relax test.
13111         * tests/test-stdlib.c (main): Likewise.
13112
13113         init.sh: accomodate directory with no .exes
13114         * tests/init.sh: Accomodate directory containing only scripts.
13115
13116         tests: avoid compiler warning
13117         * tests/test-stdlib.c (main): Use the variable.
13118
13119         fdutimens, fdutimensat: update signature, again
13120         * lib/utimens.h (gl_futimens): Delete, and move signature...
13121         (fdutimens): ...here.
13122         (fdutimensat): Rearrange signature.
13123         (lutimensat): Rename variable for clarity.
13124         * lib/fdutimensat.c (fdutimensat): Update signature.
13125         * lib/utimens.c (fdutimens): Likewise.
13126         (gl_futimens): Delete.
13127         (utimens, lutimens): Update callers.
13128         * lib/futimens.c (futimens): Likewise.
13129         * tests/test-fdutimensat.c: Likewise.
13130         * tests/test-utimens.c: Likewise.
13131         * tests/test-futimens.h: Update comment.
13132         * NEWS: Mention this.
13133         Suggested by Paul Eggert.
13134
13135 2010-09-17  Bruno Haible  <bruno@clisp.org>
13136
13137         Take over the maintenance of some older macros from Autoconf.
13138         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13139         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13140         GNU Autoconf.
13141         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13142         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13143
13144 2010-09-17  Eric Blake  <eblake@redhat.com>
13145
13146         fdutimensat: drop atflag validation
13147         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13148         with valid fd, to close a race scenario where futimens is
13149         unsupported and FILE was replaced by a symlink.
13150         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13151         accordingly.
13152         Suggested by Paul Eggert.
13153
13154 2010-09-16  Bruno Haible  <bruno@clisp.org>
13155
13156         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13157         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13158
13159 2010-09-16  Bruno Haible  <bruno@clisp.org>
13160
13161         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13162         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13163         login_tty exists.
13164         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13165
13166 2010-09-16  Bruno Haible  <bruno@clisp.org>
13167
13168         login_tty: Make the replacement code work on BSD systems.
13169         * lib/login_tty.c: Include <sys/ioctl.h>.
13170         (login_tty): Use ioctl TIOCSCTTY when available.
13171         * modules/login_tty (Depends-on): Add sys_ioctl.
13172         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13173
13174 2010-09-16  Bruno Haible  <bruno@clisp.org>
13175
13176         login_tty: Stricter unit test.
13177         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13178         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13179         and tcgetsid() after login_tty.
13180         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13181
13182 2010-09-16  Bruno Haible  <bruno@clisp.org>
13183
13184         New module 'tcgetsid'.
13185         * lib/tcgetsid.c: New file.
13186         * m4/tcgetsid.m4: New file.
13187         * modules/tcgetsid: New file.
13188         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13189         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13190         GNULIB_TCGETSID, HAVE_TCGETSID.
13191         * lib/termios.in.h: Include <sys/types.h>.
13192         (tcgetsid): New declaration.
13193         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13194         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13195         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13196         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13197
13198 2010-09-16  Bruno Haible  <bruno@clisp.org>
13199
13200         Tests for module 'termios'.
13201         * modules/termios-c++-tests: New file.
13202         * modules/termios-tests: New file.
13203         * tests/test-termios-c++.cc: New file.
13204         * tests/test-termios.c: New file.
13205
13206         New module 'termios'.
13207         * modules/termios: New file.
13208         * lib/termios.in.h: New file.
13209         * m4/termios_h.m4: New file.
13210         * doc/posix-headers/termios.texi: Mention the new module.
13211
13212 2010-09-16  Eric Blake  <eblake@redhat.com>
13213
13214         fdutimensat: add an atflag parameter
13215         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13216         * lib/utimens.h (fdutimensat): Update prototype.
13217         * tests/test-fdutimensat.c: Adjust test to match.
13218         * NEWS: Document the change.
13219         Suggested by Paul Eggert.
13220
13221 2010-09-16  Bruno Haible  <bruno@clisp.org>
13222
13223         Fix typos in comments.
13224         * lib/striconveh.h: Fix typo in comment.
13225         * lib/login_tty.c (login_tty): Likewise.
13226
13227 2010-09-15  Bruno Haible  <bruno@clisp.org>
13228
13229         stdlib: clarify MirBSD WEXITSTATUS bug
13230         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13231         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13232
13233 2010-09-15  Eric Blake  <eblake@redhat.com>
13234
13235         stdlib: work around MirBSD WEXITSTATUS bug
13236         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13237         * modules/stdlib (Depends-on): Add sys_wait.
13238         * tests/test-sys_wait.c (main): Enhance test.
13239         * tests/test-stdlib.c (main): Likewise.
13240         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13241
13242         docs: mention MacOS issue with WEXITSTATUS(constant)
13243         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13244         issue.
13245         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13246
13247         strnlen: add tests
13248         * modules/strnlen-tests: New file.
13249         * tests/test-strnlen.c: Likewise.
13250
13251 2010-09-14  Bruno Haible  <bruno@clisp.org>
13252
13253         unistr/base: Avoid link errors when module 'libunistring' is also used.
13254         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13255         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13256         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13257         Declare also when HAVE_LIBUNISTRING is set.
13258         Reported by Pádraig Brady <P@draigbrady.com>.
13259
13260 2010-09-14  Eric Blake  <eblake@redhat.com>
13261
13262         test-rawmemchr: make more robust
13263         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13264         (Depends-on, configure.ac): Add needed prerequisites to use it.
13265         * modules/memchr-tests (Files, Depends-on, configure.ac):
13266         Likewise, to avoid implicit reliance on memchr module prereqs.
13267         * tests/test-memchr.c (main): Ensure proper masking.
13268         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13269         reads.
13270
13271         memchr: detect glibc Alpha bug
13272         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13273         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13274         Alpha.
13275         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13276         * tests/test-memchr.c (main): Enhance test.
13277         Reported by Nelson H. F. Beebe.
13278
13279 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13280
13281         fts, getcwd, glob: audit for dirfd returning -1
13282         * lib/fts.c (opendir): Remove #define; no longer used.
13283         (opendirat): New arg PDIR_FD.  All callers changed.
13284         (fts_build, _opendir2): Use new opendirat to avoid the need for
13285         dirfd, or for checking whether dirfd returns a negative value.
13286         Don't use opendir; always use openat followed by fdopendir.
13287         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13288         it.
13289         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13290         returns -1 here.
13291         * modules/fts (Depends-on): Remove dirfd.
13292         * modules/getcwd (Depends-on): Likewise.
13293
13294 2010-09-13  Eric Blake  <eblake@redhat.com>
13295
13296         float: fix broken MirBSD header
13297         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13298         * doc/posix-headers/float.texi (float.h): Document it.
13299
13300 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13301
13302         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13303         * lib/fts.c (opendirat): New arg extra_flags.
13304         (__opendir2): Use it to avoid following symlinks when opening
13305         a directory, if symlinks are not supposed to be followed.  See
13306         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13307
13308         fdopendir: preserve argument fd before returning
13309         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13310         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13311         (fdopendir): Use them, arranging for FD to be open to the same
13312         directory that it was when it started.  (It might be temporarily
13313         closed while fdopendir is running, so this not thread- or
13314         signal-safe.)  Be careful to do the right thing even when file
13315         descriptors are scarce and dup fails with errno == EMFILE.  See
13316         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13317
13318 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13319
13320         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13321         * NEWS: Document change.
13322         * m4/regex.m4: Disable test for regoff_t size.
13323
13324 2010-09-13  Jim Meyering  <meyering@redhat.com>
13325
13326         fts: don't operate on an invalid file descriptor after failed dup
13327         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13328         negative file descriptor.
13329
13330 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13331
13332         savedir: add streamsavedir, deprecate fdsavedir
13333         * NEWS: Mention deprecation of fdsavedir.
13334         * lib/savedir.c (streamsavedir): New extern function, whose name
13335         ends in "savedir" to be consistent with the others.  This differs
13336         from savedirstream in that it doesn't close its argument.  The
13337         next version of GNU tar will use this instead of fdsavedir, to
13338         avoid some race conditions and conserve file descriptors.
13339         (savedirstream): Reimplement as a wrapper around streamsavedir.
13340         (fdsavedir): Add a comment deprecating this function.  As far as
13341         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13342         * lib/savedir.h (streamsavedir): New decl.
13343         (fdsavedir): Add a comment deprecating this.
13344
13345 2010-09-10  Bruno Haible  <bruno@clisp.org>
13346
13347         langinfo: Fix last commit.
13348         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13349         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13351
13352 2010-09-10  Bruno Haible  <bruno@clisp.org>
13353
13354         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13355         * lib/progreloc.c (O_EXEC): Define fallback.
13356
13357 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13358
13359         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13360         * NEWS: Document recent changes to fcntl-h.
13361         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13362         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13363         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13364         Similarly for O_SEARCH; this last was already true, but not documented.
13365         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13366         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13367         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13368         Likewise.
13369         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13370         is zero, not whether it is defined.
13371         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13372         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13373         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13374
13375 2010-09-10  Bruno Haible  <bruno@clisp.org>
13376
13377         langinfo, nl_langinfo: Fix for IRIX 5.3.
13378         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13379         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13380         HAVE_LANGINFO_YESEXPR.
13381         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13382         HAVE_LANGINFO_YESEXPR.
13383         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13384         HAVE_LANGINFO_T_FMT_AMPM is 0.
13385         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13386         HAVE_LANGINFO_YESEXPR is 0.
13387         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13388         NOEXPR.
13389         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13390         * doc/posix-functions/nl_langinfo.texi: Likewise.
13391         Reported by Eric Blake.
13392
13393 2010-09-10  Bruno Haible  <bruno@clisp.org>
13394
13395         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13396         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13397         on FreeBSD 8.0 and OpenBSD 4.6.
13398         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13399         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13400         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13401         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13402         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13403         ac_includes_default.
13404         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13405
13406 2010-09-09  Eric Blake  <eblake@redhat.com>
13407
13408         strsignal: work around NetBSD bug
13409         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13410         * lib/string.in.h (includes): Likewise.
13411         * doc/posix-functions/strsignal.texi (strsignal): Document the
13412         bug.
13413         Reported by Nelson H. F. Beebe.
13414
13415         gnulib-tool: work with NetBSD /bin/sh
13416         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13417         (func_get_description, func_get_comment, func_get_status)
13418         (func_get_notice, func_get_applicability, func_get_filelist)
13419         (func_get_dependencies, func_get_autoconf_early_snippet)
13420         (func_get_autoconf_snippet, func_get_automake_snippet)
13421         (func_get_include_directive, func_get_link_directive)
13422         (func_get_license, func_get_maintainer, func_import): Avoid
13423         shell syntax errors from parsing syntax extensions.
13424
13425 2010-09-09  Bruno Haible  <bruno@clisp.org>
13426
13427         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13428         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13429         a reliable way to determine whether the 'alias' command works.
13430
13431 2010-09-08  Jim Meyering  <meyering@redhat.com>
13432
13433         init.sh: penalize a set-x-impaired shell; don't disqualify it
13434         * tests/init.sh: Too many shells corrupt application stderr when
13435         you set -x, so we can't afford to disqualify them, since at least
13436         on Irix-6.5, that would disqualify all bourne shells.
13437         Instead, use a two-pass approach.
13438         On the first pass, try to find a shell that meets the stricter
13439         condition that set -x does not corrupt stderr.
13440         If no shell meets the stricter condition, retest each candidate
13441         shell, but without that extra condition.  Finally, when
13442         VERBOSE=yes is requested and set -x might cause trouble, simply
13443         issue a warning and refrain from enabling debug output.
13444
13445 2010-09-08  Eric Blake  <eblake@redhat.com>
13446
13447         unsetenv: fix OpenBSD bug
13448         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13449         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13450         documentation.
13451         Reported by Jim Meyering.
13452
13453         strtod: work around IRIX 6.5 bug
13454         * lib/strtod.c (strtod): Reparse number on shorter string if
13455         exponent parse was invalid.
13456         * tests/test-strtod.c (main): Add check for "0x1p 2".
13457         Reported by Tom G. Christensen.
13458
13459         getopt: optimize previous patch
13460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13461         empty variable.  Speed up awk script.
13462         Reported by Paolo Bonzini.
13463
13464 2010-09-08  Jim Meyering  <meyering@redhat.com>
13465
13466         test.sh: disqualify shells for which set -x corrupts stderr
13467         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13468         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13469         appear in stderr output.  For example, this command:
13470             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13471         prints "P=1" on those two systems:
13472
13473 2010-09-08  Bruno Haible  <bruno@clisp.org>
13474
13475         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13476         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13477         commands, because some shells ignore redirections when there is an
13478         error in the command lookup.
13479         Reported by Eric Blake.
13480
13481 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13482
13483         * lib/regex.h: Fix a mention of `regex_compile' (should be
13484         `re_compile_pattern').
13485         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13486         (re_set_registers): Correct name of parameter in comment.
13487
13488         * doc/regex.texi: Add documentation for missing syntax flags.
13489         Remove commented-out documentation of defunct syntax option
13490         RE_NO_EMPTY_ALTS.
13491         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13492         Add documentation of re_set_registers.
13493         Document trick to re-use a pattern buffer by setting fastmap manually.
13494         Update documentation of struct re_pattern_buffer per public members.
13495         Uncomment documentation of equivalence class operators and
13496         collating symbol operators, since they are now implemented,
13497         Explain leftmost-longest matching in relation to alternatives.
13498         Tidy documentation of substring matching.
13499         Remove POSIX documentation, which is done better in
13500         glibc, and refer the reader there. Keep BSD API documentation, as
13501         that is not readily available elsewhere.
13502
13503 2010-09-07  Eric Blake  <eblake@redhat.com>
13504
13505         getopt: handle POSIXLY_CORRECT set but not exported
13506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13507         export state of POSIXLY_CORRECT, due to bash set -o posix.
13508         Reported by Dustin J. Mitchell.
13509
13510 2010-09-05  Bruno Haible  <bruno@clisp.org>
13511
13512         gnulib-tool: Highlight the changed options.
13513         * gnulib-tool (func_usage): Display the --import, --add-import,
13514         --remove-import explanations in bold font.
13515
13516 2010-09-06  Karl Berry  <karl@gnu.org>
13517
13518         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13519
13520 2010-09-05  Bruno Haible  <bruno@clisp.org>
13521
13522         uniwidth/width: Update comment.
13523         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13524         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13525
13526 2010-09-05  Bruno Haible  <bruno@clisp.org>
13527
13528         isinf, isnan: Relax license.
13529         * modules/isinf (License): Change from GPL to LGPL, with consent from
13530         Ben Pfaff.
13531         * modules/isnan (License): Likewise.
13532         Requested by Ludovic Courtès.
13533
13534 2010-09-04  Bruno Haible  <bruno@clisp.org>
13535
13536         gnulib-tool: Help migration from --import to --add-import or --update.
13537         * gnulib-tool: Emit a verbose error message when --import is used
13538         without any module name.
13539
13540 2010-09-04  Bruno Haible  <bruno@clisp.org>
13541
13542         Update doc about gnulib-tool.
13543         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13544         'gnulib-tool --update' in more detail.
13545         Reported by Eric Blake.
13546
13547 2010-09-04  Bruno Haible  <bruno@clisp.org>
13548
13549         gnulib-tool: Change --import. New options --add/remove-import.
13550         * gnulib-tool: New options --add-import, --remove-import.
13551         (func_usage): Document them.
13552         (have_associative): Define always.
13553         (func_import): In import mode, don't merge the specified settings with
13554         the cached settings. Implement remove-import mode.
13555         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13556         Explain when to use them versus --import.
13557         (Simple update): Use --add-import instead of --import.
13558         * NEWS: Mention the change.
13559
13560 2010-09-04  Bruno Haible  <bruno@clisp.org>
13561
13562         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13563         separate gnulib.mk.
13564
13565 2010-09-04  Bruno Haible  <bruno@clisp.org>
13566
13567         gnulib-tool: Don't talk about CVS any more.
13568         * gnulib-tool (func_usage, func_import): Write "version control"
13569         instead of CVS.
13570
13571 2010-09-04  Jim Meyering  <meyering@redhat.com>
13572
13573         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13574         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13575         false positives (whose names may be ill-chosen) when searching
13576         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13577         would cause a false-positive.
13578
13579         avoid coreutils "make distcheck" failure
13580         Coreutils tests with an absolute build directory name that contains
13581         a space.  Not quoting this directory name caused a failure.
13582         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13583         * tests/test-vc-list-files-cvs.sh: Likewise.
13584
13585 2010-09-04  Bruno Haible  <bruno@clisp.org>
13586
13587         gnulib-tool: Avoid error when run in a package without Makefile.am.
13588         * gnulib-tool: When collecting the m4dirs in a package that does not
13589         have a Makefile.am, eliminate those directories that contain no
13590         gnulib-cache.m4. Fix expression that counts these directories.
13591
13592 2010-09-04  Bruno Haible  <bruno@clisp.org>
13593
13594         update-copyright test: Improve output when perl is missing or too old.
13595         * tests/test-update-copyright.sh: Move test of Perl version down after
13596         the test whether Perl exists. Provide an explanation relating Perl's
13597         error message to Automake's SKIP: message.
13598
13599 2010-09-04  Bruno Haible  <bruno@clisp.org>
13600
13601         Don't augment PATH in TESTS_ENVIRONMENT.
13602         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13603         set abs_aux_dir instead of augmenting PATH.
13604         * modules/vc-list-files-tests (Makefile.am): Likewise.
13605         * tests/test-update-copyright.sh: Augment PATH here.
13606         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13607         path_prepend_.
13608         * tests/test-vc-list-files-git.sh: Likewise.
13609
13610 2010-09-04  Jim Meyering  <meyering@redhat.com>
13611
13612         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13613         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13614
13615 2010-09-04  Bruno Haible  <bruno@clisp.org>
13616
13617         strdup: Fix compilation error in C++ mode.
13618         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13619         the macro.
13620
13621 2010-09-04  Bruno Haible  <bruno@clisp.org>
13622
13623         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13624         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13625         macro into a function.
13626         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13627
13628 2010-09-04  Bruno Haible  <bruno@clisp.org>
13629
13630         Set PATH_SEPARATOR the same way autoconf does.
13631         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13632         the value of PATH_SEPARATOR the same way autoconf-generated configure
13633         scripts do.
13634         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13635         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13636
13637 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13638
13639         Set PATH_SEPARATOR the same way autoconf does.
13640         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13641         the same way autoconf-generated configure scripts do.
13642         * posix-modules: Likewise.
13643
13644 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13645
13646         hash: fix safe_hasher const typo
13647         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13648         const; otherwise, there is a type error later.
13649
13650 2010-09-02  Jim Meyering  <meyering@redhat.com>
13651
13652         test-update-copyright.sh: require perl 5.8.0
13653         * tests/test-update-copyright.sh: Require 5.8.0,
13654         which Tom G. Christensen has confirmed is adequate,
13655         while 5.6.1 is not.
13656
13657 2010-09-02  Eric Blake  <eblake@redhat.com>
13658
13659         tests: init.sh improvements for re-exec'ing with zsh
13660         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13661         -vx through shell re-exec.
13662         Reported by Tom G. Christensen.
13663
13664         wctype: fix typo in previous commit
13665         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13666         Reported by Ludovic Courtès.
13667
13668 2010-09-02  Jim Meyering  <meyering@redhat.com>
13669
13670         test-update-copyright.sh: skip test if Perl is too old
13671         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13672         Reported by Tom G. Christensen.
13673
13674 2010-09-02  Bruno Haible  <bruno@clisp.org>
13675
13676         wctype: Avoid compilation error on IRIX 6.5.30.
13677         * lib/wctype.in.h (iswblank): Declare with a replacement if
13678         REPLACE_ISWBLANK is set.
13679         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13680         declared. Set REPLACE_ISWBLANK.
13681         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13682         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13683         * doc/posix-headers/wctype.texi: Likewise.
13684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13685
13686 2010-09-01  Bruno Haible  <bruno@clisp.org>
13687
13688         New module 'socketlib'.
13689         * modules/socketlib: New file.
13690         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13691         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13692         * modules/sockets (Depends-on): Add socketlib.
13693         Suggested by Sam Steingold <sds@gnu.org>.
13694
13695 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13696
13697         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13698
13699         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13700         when one needs search access to a directory but not read access.
13701         On systems where it is available, it works in some cases where
13702         O_RDONLY does not, namely on directories that are searchable but
13703         not readable, and which need only to be searchable.  If O_SEARCH
13704         is not available, fall back to the traditional method of using
13705         O_RDONLY.
13706
13707         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13708         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13709         when opening a directory that needs only to be searchable.
13710         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13711         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13712         * lib/openat-proc.c (openat_proc_name): Likewise.
13713         * lib/openat.c (openat_needs_fchdir): Likewise.
13714         * lib/save-cwd.c (save_cwd): Likewise.
13715         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13716
13717 2010-08-28  Bruno Haible  <bruno@clisp.org>
13718
13719         New module 'host-cpu-c-abi'.
13720         * modules/host-cpu-c-abi: New file.
13721         * m4/host-cpu-c-abi.m4: New file, based on part of
13722         clisp/src/m4/general.m4.
13723         Requested by Sam Steingold <sds@gnu.org>.
13724
13725 2010-08-31  Eric Blake  <eblake@redhat.com>
13726         and Jim Meyering  <meyering@redhat.com>
13727
13728         hash: factor, and guard against misbehaving hasher function
13729         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13730         of table->hasher's return value.  Also protect against a hash value
13731         so large that adding it to table->bucket results in a NULL pointer.
13732         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13733         Use it in place of open-coded check-and-abort.
13734
13735 2010-08-30  Bruno Haible  <bruno@clisp.org>
13736
13737         hash: silence spurious clang warning
13738         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13739         Reported by Eric Blake.
13740
13741 2010-08-30  Eric Blake  <eblake@redhat.com>
13742
13743         strstr, memmem, strcasestr: avoid leaked shell message
13744         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13745         FreeBSD.
13746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13748
13749         tests: silence clang warning
13750         * tests/test-malloca.c (do_allocation): Avoid dead store.
13751
13752 2010-08-29  Bruno Haible  <bruno@clisp.org>
13753
13754         gettext: Fix recent mistake.
13755         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13756
13757 2010-08-29  Bruno Haible  <bruno@clisp.org>
13758
13759         selinux-h: Offer a --without-selinux option.
13760         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13761         --without-selinux was specified, skip all tests and define
13762         HAVE_SELINUX_SELINUX_H to 0.
13763         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13764         set LIB_SELINUX to empty.
13765         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13766         gl_LIBSELINUX. If --without-selinux was specified, replace
13767         selinux/context.h.
13768         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13769
13770 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13771             Bruno Haible  <bruno@clisp.org>
13772
13773         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13774         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13775         of HAVE_REALLOC.
13776         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13777         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13778         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13779         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13780
13781 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13782             Bruno Haible  <bruno@clisp.org>
13783
13784         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13785         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13786         HAVE_CALLOC.
13787         * lib/xmalloc.c: Update accordingly.
13788         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13789         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13790         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13791
13792 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13793             Bruno Haible  <bruno@clisp.org>
13794
13795         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13796         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13797         HAVE_MALLOC.
13798         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13799         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13800         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13801
13802 2010-08-29  Bruno Haible  <bruno@clisp.org>
13803
13804         Update modules list.
13805         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13806         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13807         (String handling <string.h>): Add astrxfrm.
13808         (File system functions): Add readlinkat.
13809
13810 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13811
13812         Tests for module 'realloc-gnu'.
13813         * modules/realloc-gnu-tests: New file.
13814         * tests/test-realloc-gnu.c: New file.
13815
13816         Tests for module 'calloc-gnu'.
13817         * modules/calloc-gnu-tests: New file.
13818         * tests/test-calloc-gnu.c: New file.
13819
13820         Tests for module 'malloc-gnu'.
13821         * modules/malloc-gnu-tests: New file.
13822         * tests/test-malloc-gnu.c: New file.
13823
13824 2010-08-28  Bruno Haible  <bruno@clisp.org>
13825
13826         Rename module 'realloc' -> 'realloc-gnu'.
13827         * modules/realloc-gnu: New file, copied from modules/realloc.
13828         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13829         obsolete.
13830         * modules/mgetgroups (Depends-on): Update.
13831         * doc/posix-functions/realloc.texi: Update.
13832         * NEWS: Mention the change.
13833
13834         Rename module 'calloc' -> 'calloc-gnu'.
13835         * modules/calloc-gnu: New file, copied from modules/calloc.
13836         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13837         obsolete.
13838         * doc/posix-functions/calloc.texi: Update.
13839         * NEWS: Mention the change.
13840
13841         Rename module 'malloc' -> 'malloc-gnu'.
13842         * modules/malloc-gnu: New file, copied from modules/malloc.
13843         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13844         obsolete.
13845         * modules/argp (Depends-on): Update.
13846         * modules/regex (Depends-on): Update.
13847         * doc/posix-functions/malloc.texi: Update.
13848         * NEWS: Mention the change.
13849
13850 2010-08-28  Eric Blake  <eblake@redhat.com>
13851
13852         pread, pwrite: add missing dependency
13853         * modules/pread (Depends-on): Add extensions.
13854         * modules/pwrite (Depends-on): Likewise.
13855
13856 2010-08-28  Bruno Haible  <bruno@clisp.org>
13857
13858         unistr/u*-strchr: Fix tests dependencies.
13859         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13860         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13861         Reported by Ian Beckwith <ianb@erislabs.net>.
13862
13863 2010-08-28  Bruno Haible  <bruno@clisp.org>
13864
13865         read-file: Don't occupy too much unused memory.
13866         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13867
13868 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13869             Eric Blake  <eblake@redhat.com>
13870             Bruno Haible  <bruno@clisp.org>
13871
13872         read-file: Avoid memory reallocations with regular files.
13873         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13874         (fread_file): With regular files, use the remaining length as the
13875         initial buffer size.  Check against overflow.
13876         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13877         sys_stat.
13878
13879 2010-08-28  Bruno Haible  <bruno@clisp.org>
13880
13881         ftello: Relax license.
13882         * modules/ftello (License): Relax to LGPLv2+.
13883         Reported by Eric Blake.
13884
13885 2010-08-28  Bruno Haible  <bruno@clisp.org>
13886
13887         Avoid relocwrapper link errors due to gnulib replacement functions.
13888         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13889         function.
13890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13891
13892 2010-08-28  Bruno Haible  <bruno@clisp.org>
13893
13894         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13895         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13896         defined.
13897         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13898         Suggested by Eric Blake.
13899
13900 2010-08-28  Bruno Haible  <bruno@clisp.org>
13901
13902         sys_socket, netdb: Ensure socklen_t gets defined.
13903         * modules/sys_socket (Depends-on): Add socklen.
13904         * modules/netdb (Depends-on): Likewise.
13905         * modules/getaddrinfo (Depends-on): Remove socklen.
13906         * modules/getsockopt (Depends-on): Likewise.
13907         * modules/setsockopt (Depends-on): Likewise.
13908         * tests/test-sys_socket.c: Check that socklen_t is defined.
13909         * tests/test-netdb.c: Likewise.
13910         * m4/socklen.m4: Update comments.
13911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13912
13913 2010-08-27  Eric Blake  <eblake@redhat.com>
13914
13915         login_tty: add missing dependency
13916         * modules/login_tty (Depends-on): Add pty.
13917
13918 2010-08-26  Eric Blake  <eblake@redhat.com>
13919
13920         lib-symbol-versions: fix m4 quoting
13921         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13922         format for AC_LINK_IFELSE.
13923
13924         glob: fix compile test
13925         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13926
13927         btowc: fix missing file
13928         * modules/btowc (Files): Also ship locale-fr.m4.
13929
13930         lseek: fix link test
13931         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13932         AC_LINK_IFELSE.
13933
13934         include_next: silence autoconf 2.68 warning
13935         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13936         AC_COMPILE_IFELSE as special.
13937         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13938         autoconf < 2.68.
13939
13940         acl: fix compilation test
13941         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13942         AC_COMPILE_IFELSE.
13943
13944 2010-08-26  Bruno Haible  <bruno@clisp.org>
13945
13946         Modernize AC_TRY_RUN invocations.
13947         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13948         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13949         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13950         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13951         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13952         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13953         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13955         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13956         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13957         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13958         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13959         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13960         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13962         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13963         gl_MBRLEN_NUL_RETVAL): Likewise.
13964         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13965         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13966         Likewise.
13967         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13968         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13969         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13970         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13971         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13972         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13973         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13974         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13975         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13976         Likewise.
13977         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13978         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13980         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13981         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13982         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13984         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13985         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13987
13988 2010-08-26  Bruno Haible  <bruno@clisp.org>
13989
13990         Modernize AC_TRY_LINK invocations.
13991         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13992         AC_TRY_LINK.
13993         * m4/argp.m4 (gl_ARGP): Likewise.
13994         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13995         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13996         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13997         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13998         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13999         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14000         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14001         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14002         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14003         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14004         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14005         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14006         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14007         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14008         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14009         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14010         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14011         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14012         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14013         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14014         Likewise.
14015         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14016         Likewise.
14017         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14018         Likewise.
14019         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14021         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14022         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14023         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14024         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14025         * m4/servent.m4 (gl_SERVENT): Likewise.
14026         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14027         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14028         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14029         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14030         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14031         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14032         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14033         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14034         * modules/tsearch-tests (configure.ac): Likewise.
14035
14036 2010-08-26  Bruno Haible  <bruno@clisp.org>
14037
14038         Modernize AC_TRY_COMPILE invocations.
14039         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14040         AC_TRY_COMPILE.
14041         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14042         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14043         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14044         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14045         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14046         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14047         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14048         * m4/lock.m4 (gl_LOCK): Likewise.
14049         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14050         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14051         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14052         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14053         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14054         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14055         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14057         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14058         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14059         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14060         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14061         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14062         extraneous semicolon.
14063
14064 2010-08-26  Jim Meyering  <meyering@redhat.com>
14065
14066         stat-time: relax license LGPL
14067         * modules/stat-time (License): Change from GPL to LGPL,
14068         with consent from all contributors, for use in libguile.
14069         Requested by Ludovic Courtès.
14070
14071 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14072
14073         poll: return immediately on POLLHUP.
14074         * lib/poll.c (poll): Always set timeout before wait_timeout is
14075         computed.
14076
14077 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14078
14079         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14080         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14081         rmdir ("dir/.//"), unlinkat.
14082
14083 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14084
14085         stdbool: avoid spurious failure with modern xlc
14086         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14087
14088 2010-08-24  Bruno Haible  <bruno@clisp.org>
14089
14090         getloadavg: simplify code
14091         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14092         gl_have_func. Update comments.
14093
14094 2010-08-24  Eric Blake  <eblake@redhat.com>
14095
14096         getloadavg: don't define SVR4 on cygwin
14097         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14098         only define SVR4 when -lkvm is required.
14099         Reported by Yaakov Selkowitz.
14100
14101 2010-08-24  Bruno Haible  <bruno@clisp.org>
14102
14103         priv-set: fix comment
14104         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14105
14106 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14107
14108         priv-set: fix comments
14109         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14110         to match code, as suggested by David Bartley in:
14111         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14112
14113 2010-08-23  Eric Blake  <eblake@redhat.com>
14114
14115         stdbool: avoid rejecting clang
14116         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14117         * tests/test-stdbool.c: Enable more tests if using the system
14118         <stdbool.h> instead of the gnulib replacement.
14119         (main): Move xlc bug test to a runtime test for all compilers.
14120         Reported by Anders Kaseorg.
14121
14122         argz: fix shell quoting issue
14123         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14124         Reported by Charles Wilson.
14125
14126 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14127             Erik Faye-Lund <kusmabite@gmail.com>
14128
14129         poll, select: handle ERROR_BROKEN_PIPE.
14130         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14131         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14132         * lib/select.c (win32_compute_revents): Do not mark a pipe
14133         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14134
14135 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14136
14137         fts: allow compilation with C++
14138         * lib/fts_.h: Specify extern "C" linkage with C++.
14139
14140 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14141
14142         Fix gnulib-tool sed script de-commentation for AIX sed.
14143         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14144         sed.
14145
14146 2010-08-17  Eric Blake  <eblake@redhat.com>
14147
14148         test-stddef: test for (some) offsetof bugs
14149         * tests/test-stddef.c: Enhance test to ensure correct type of
14150         offsetof.
14151         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14152         that we are not fixing at this time.
14153
14154 2010-08-15  Bruno Haible  <bruno@clisp.org>
14155
14156         stpncpy: Allow stpncpy to be defined as a macro.
14157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14158         if it's already correctly declared.
14159         * lib/string.in.h (stpncpy): Undefine before redefining.
14160         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14161
14162 2010-08-14  Bruno Haible  <bruno@clisp.org>
14163
14164         Rename module 'memxfrm' to 'amemxfrm'.
14165         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14166         (amemxfrm): Renamed from memxfrm.
14167         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14168         (amemxfrm): Renamed from memxfrm.
14169         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14170         * NEWS: Mention the change.
14171         * MODULES.html.sh (String handling <string.h>): Update.
14172         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14173         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14174         * lib/unicase/u16-casexfrm.c: Likewise.
14175         * lib/unicase/u32-casexfrm.c: Likewise.
14176         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14177         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14178         * lib/uninorm/u16-normxfrm.c: Likewise.
14179         * lib/uninorm/u32-normxfrm.c: Likewise.
14180         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14181         memxfrm.
14182         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14183         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14184         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14185         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14186         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14187         Suggested by Paul Eggert.
14188
14189 2010-08-14  Bruno Haible  <bruno@clisp.org>
14190
14191         Tests for module 'astrxfrm'.
14192         * modules/astrxfrm-tests: New file.
14193         * tests/test-astrxfrm.c: New file.
14194
14195         New module 'astrxfrm'.
14196         * lib/astrxfrm.h: New file.
14197         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14198         * modules/astrxfrm: New file.
14199
14200 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14201
14202         regex: Tweak doc.
14203         * doc/regex.texi (Overview): Don't mention regex.c.
14204         (GNU Regular Expression Compiling): Likewise.
14205         (Match-end-of-line Operator): Mention 'not_eol'.
14206
14207 2010-08-14  Brian Gough  <bjg@gnu.org>
14208             Bruno Haible  <bruno@clisp.org>
14209
14210         git-merge-changelog: add doc relating to use with bzr and hg.
14211         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14212
14213 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14214
14215         pthread: fix pthread.h creation for srcdir != builddir
14216         * modules/pthread (Makefile.am): Fix the rule to work also in a
14217         non-srcdir build.
14218
14219 2010-08-13  Karl Berry  <karl@gnu.org>
14220
14221         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14222         * doc/posix-*/*: force line break before @url of POSIX
14223         specifications.
14224         Suggested by Werner Lemberg.
14225
14226 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14227
14228         strtod: fix const diagnostic
14229         * lib/strtod.c (strtod): Don't assign const char * to char *,
14230         as this elicits a warning from GCC when warnings are enabled.
14231
14232 2010-08-10  Pádraig Brady <P@draigbrady.com>
14233         and Eric Blake  <eblake@redhat.com>
14234
14235         copy-acl: ignore ENOTSUP on HP-UX
14236         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14237         so that it is available for HP-UX.
14238         * lib/copy-acl.c (qcopy_acl): Use it.
14239         Reported by Patrick M. Callahan.
14240
14241 2010-08-10  Eric Blake  <eblake@redhat.com>
14242
14243         open, chown: relax license
14244         * modules/open (License): Change to LGPLv2+, with consent by all
14245         authors, for use in augeas.
14246         * modules/chown (License): Likewise.
14247         * modules/lchown (Likewise): Likewise.
14248         Requested by Adam Stokes.
14249
14250 2010-08-09  Karl Berry  <karl@gnu.org>
14251
14252         * build-aux/ar-lib: new file, import from Automake.
14253         * config/srclist.txt: autocheck for updates.
14254
14255 2010-08-09  Eric Blake  <eblake@redhat.com>
14256
14257         readlinkat: adjust client modules
14258         * modules/areadlinkat (Depends-on): Use readlinkat, not
14259         symlinkat.
14260         * modules/areadlinkat-with-size (Depends-on): Likewise.
14261
14262         mknod: be more vocal about danger of running tests as root
14263         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14264         root, since that is just asking for problems.
14265         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14266
14267         readlinkat: split into its own module
14268         * modules/symlinkat: Split readlinkat...
14269         * modules/readlinkat: ...into separate module.
14270         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14271         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14272         * lib/symlinkat.c (readlinkat): Move...
14273         * lib/readlinkat.c: ...into new file.
14274         * modules/symlinkat-tests: Split readlinkat test...
14275         * modules/readlinkat-tests: ...into separate module.
14276         * tests/test-symlinkat.c: Split...
14277         * tests/test-readlinkat.c: ...into new file.
14278         * NEWS: Document the split.
14279         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14280         * lib/unistd.in.h (readlinkat): Likewise.
14281         Suggested by Bruno Haible.
14282
14283 2010-08-08  Bruno Haible  <bruno@clisp.org>
14284
14285         memxfrm: Speed up.
14286         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14287         that usually only one call to strxfrm is necessary for each string
14288         part.
14289         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14290
14291 2010-08-07  Karl Berry  <karl@gnu.org>
14292
14293         * doc/posix-headers/limits.texi,
14294         * doc/posix-functions/malloc.texi,
14295         * doc/posix-functions/strsignal.texi: missing @item.
14296         * doc/ld-version-script.texi: spurious leading i.
14297         * doc/regex.texi (Interval Operators): no commas inside @var.
14298
14299 2010-08-01  Bruno Haible  <bruno@clisp.org>
14300
14301         Integrate the regex documentation.
14302         * doc/gnulib.texi: Define 'cn' index.
14303         (Regular expressions): New a chapter that includes regex.texi and
14304         regexprops-generic.texi.
14305         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14306         syntax.
14307
14308         Whitespace cleanup.
14309         * doc/regex.texi: Remove trailing spaces.
14310
14311         Add regex documentation.
14312         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14313         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14314         Written by Kathy A. Hargreaves and Karl Berry.
14315
14316 2010-08-01  Bruno Haible  <bruno@clisp.org>
14317
14318         link: Update documentation.
14319         * doc/posix-functions/link.texi: Update regarding Solaris.
14320
14321 2010-07-31  Bruno Haible  <bruno@clisp.org>
14322
14323         Update modules list.
14324         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14325         (String handling <string.h>): Add memcmp2, memxfrm.
14326         (Container data structures): Add xlist, xsublist, xoset.
14327         (Core language properties): Add alignof, unused-parameter.
14328         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14329         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14330         (Unibyte characters <ctype.h>): New section.
14331         (String handling <string.h>): New section.
14332         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14333         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14334         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14335         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14336         tan, tanh, tanl, y0, y1, yn.
14337         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14338         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14339         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14340         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14341         unlockpt, vdprintf, vdprintf-posix.
14342         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14343         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14344         xconcat-filename.
14345         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14346         getdtablesize, pipe2, pipe2-safer.
14347         (Security): New section.
14348         (Networking functions): Add accept4.
14349         (Signal handling): Add sigpipe.
14350         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14351         mbmemcasecoll.
14352         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14353         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14354         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14355         pipe-filter-ii.
14356         (Misc): Add argp-version-etc, login_tty, parse-duration.
14357
14358 2010-07-31  Bruno Haible  <bruno@clisp.org>
14359
14360         Improve doc in MODULES.html.
14361         * modules/linkat (Description): Add the word "function".
14362         * modules/mkfifo (Description): Likewise.
14363         * modules/mknod (Description): Likewise.
14364         * modules/remove (Description): Likewise.
14365         * modules/renameat (Description): Likewise.
14366         * modules/stat (Description): Likewise.
14367         * modules/symlink (Description): Likewise.
14368         * modules/unlink (Description): Likewise.
14369
14370 2010-07-31  Bruno Haible  <bruno@clisp.org>
14371
14372         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14373         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14374         option --enable/disable-c++ instead of --enable/disable-cxx.
14375         * NEWS: Mention the change.
14376
14377 2010-07-31  Bruno Haible  <bruno@clisp.org>
14378
14379         readlink, areadlink: Relax test a bit.
14380         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14381         alternative to ENOTDIR.
14382         * tests/test-areadlink.h (test_areadlink): Likewise.
14383         Reported by Rainer Tammer.
14384
14385 2010-07-31  Bruno Haible  <bruno@clisp.org>
14386
14387         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14388         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14389         character, perform the search using U_STRCHR.
14390         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14391         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14392         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14393         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14394         Suggested by Paolo Bonzini.
14395
14396 2010-07-31  Bruno Haible  <bruno@clisp.org>
14397
14398         unistr/u*-strstr: Fix dependencies.
14399         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14400         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14401         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14402
14403 2010-07-31  Bruno Haible  <bruno@clisp.org>
14404
14405         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14406         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14407         the beginning of the loop.
14408         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14409         cases in 'switch' statement.
14410
14411         unistr/u8-strchr: Fix several bugs.
14412         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14413         the string. When not found, return NULL, not a pointer near the end.
14414
14415         More tests for unistr/u8-strchr.
14416         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14417         that the function does not read past the first occurrence of the byte
14418         being searched.
14419         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14420         * tests/unistr/test-u16-strchr.c (main): New function.
14421         * tests/unistr/test-u32-strchr.c (main): New function.
14422
14423 2010-07-31  Bruno Haible  <bruno@clisp.org>
14424
14425         posix-modules: Ignore backup files of documentation files.
14426         * posix-modules: grep only through files named *.texi.
14427
14428 2010-07-31  Bruno Haible  <bruno@clisp.org>
14429
14430         symlinkat: Fix documentation.
14431         * doc/posix-functions/readlinkat.texi: Fix module name.
14432
14433 2010-07-31  Bruno Haible  <bruno@clisp.org>
14434
14435         fchownat: Replace also when chown has the trailing slash bug.
14436         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14437         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14438         introduced on 2010-04-10.
14439         Reported by Rainer Tammer.
14440
14441 2010-07-31  Bruno Haible  <bruno@clisp.org>
14442
14443         linkat: Work around AIX 7.1 bug.
14444         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14445         whether linkat handles trailing slash correctly. If not, replace linkat
14446         and define LINKAT_TRAILING_SLASH_BUG.
14447         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14448         check whether (fd1,file1) points to a directory if file1 or file2 ends
14449         in a slash. Code taken from lib/link.c.
14450         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14451         Reported by Rainer Tammer.
14452
14453 2010-07-31  Bruno Haible  <bruno@clisp.org>
14454
14455         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14456         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14457         This disables an xlc optimization that was causing wrong test results.
14458         Reported by Rainer Tammer.
14459
14460 2010-07-31  Bruno Haible  <bruno@clisp.org>
14461
14462         iconv: Work around AIX 6.1..7.1 bug.
14463         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14464         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14465         cross-compiling, guess no on all versions of AIX.
14466         Reported by Rainer Tammer.
14467
14468 2010-07-31  Bruno Haible  <bruno@clisp.org>
14469
14470         readlink: Relax test a bit.
14471         * tests/test-readlink.h (test_readlink): Allow different errno value
14472         when readlink is called with a file name that ends in / and refers to
14473         a file.
14474         Suggested by Eric Blake.
14475         Reported by Rainer Tammer.
14476
14477 2010-07-31  Bruno Haible  <bruno@clisp.org>
14478
14479         copysign: Does not require -lm on glibc systems.
14480         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14481         gl_COMMON_DOUBLE_MATHFUNC.
14482         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14483
14484 2010-07-31  Bruno Haible  <bruno@clisp.org>
14485
14486         duplocale: Work around AIX 7.1 bug.
14487         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14488         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14489         * lib/duplocale.c (rpl_duplocale): Update comment.
14490         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14491         Reported by Rainer Tammer.
14492
14493 2010-07-30  Bruno Haible  <bruno@clisp.org>
14494
14495         dirfd: Avoid link error on AIX 7.1.
14496         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14497         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14498         exist, set REPLACE_DIRFD.
14499         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14500         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14501         * doc/posix-functions/dirfd.texi: Update.
14502         Reported by Rainer Tammer.
14503
14504 2010-07-30  Eric Blake  <eblake@redhat.com>
14505
14506         strtod: next round of AIX fixes
14507         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14508         exponent.
14509         * tests/test-strtod.c (main): Enhance tests.
14510         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14511         Reported by Rainer Tammer.
14512
14513         futimens: fix configure check
14514         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14515         Reported by Bruno Haible.
14516
14517 2010-07-30  Bruno Haible  <bruno@clisp.org>
14518
14519         getline: Update regarding AIX.
14520         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14521         Reported by Rainer Tammer.
14522
14523 2010-07-30  Bruno Haible  <bruno@clisp.org>
14524
14525         wcwidth: Drop replacement on AIX 7.
14526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14527         AIX 7.
14528         Reported by Rainer Tammer.
14529
14530 2010-07-30  Bruno Haible  <bruno@clisp.org>
14531
14532         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14534         a 'char *'.
14535         Reported by Rainer Tammer.
14536
14537 2010-07-30  Bruno Haible  <bruno@clisp.org>
14538
14539         unlink: Update regarding AIX.
14540         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14541         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14542         Reported by Rainer Tammer.
14543
14544 2010-07-30  Bruno Haible  <bruno@clisp.org>
14545
14546         symlink: Update regarding AIX.
14547         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14548         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14549         Reported by Rainer Tammer.
14550
14551 2010-07-30  Bruno Haible  <bruno@clisp.org>
14552
14553         strndup: Update regarding AIX.
14554         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14555         AIX 7.
14556         Reported by Rainer Tammer.
14557
14558 2010-07-30  Bruno Haible  <bruno@clisp.org>
14559
14560         stat: Update regarding AIX.
14561         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14562         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14563         Reported by Rainer Tammer.
14564
14565 2010-07-30  Bruno Haible  <bruno@clisp.org>
14566
14567         truncl: Fix autoconf test.
14568         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14569         whether truncl works.
14570         Reported by Rainer Tammer.
14571
14572 2010-07-30  Bruno Haible  <bruno@clisp.org>
14573
14574         round: Update regarding AIX.
14575         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14576         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14577         Reported by Rainer Tammer.
14578
14579 2010-07-30  Bruno Haible  <bruno@clisp.org>
14580
14581         rename: Update regarding AIX.
14582         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14583         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14584         Reported by Rainer Tammer.
14585
14586 2010-07-30  Bruno Haible  <bruno@clisp.org>
14587
14588         printf.m4: Update regarding AIX.
14589         * m4/printf.m4: Update comments regarding AIX.
14590         Reported by Rainer Tammer.
14591
14592 2010-07-30  Bruno Haible  <bruno@clisp.org>
14593
14594         iconv: Update regarding AIX.
14595         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14596         AIX 7.
14597         Reported by Rainer Tammer.
14598
14599 2010-07-30  Bruno Haible  <bruno@clisp.org>
14600
14601         getopt: Update regarding AIX.
14602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14603         no on AIX.
14604         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14605         Reported by Rainer Tammer.
14606
14607 2010-07-30  Bruno Haible  <bruno@clisp.org>
14608
14609         ldexpl; Update regarding AIX.
14610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14611         on AIX 7.
14612         Reported by Rainer Tammer.
14613
14614 2010-07-30  Bruno Haible  <bruno@clisp.org>
14615
14616         frexpl: Update regarding AIX.
14617         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14618         on AIX 7.
14619         Reported by Rainer Tammer.
14620
14621 2010-07-30  Bruno Haible  <bruno@clisp.org>
14622
14623         open, fopen: Update regarding AIX.
14624         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14625         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14626         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14627         * doc/posix-functions/fopen.texi: Likewise.
14628         Reported by Rainer Tammer.
14629
14630 2010-07-30  Bruno Haible  <bruno@clisp.org>
14631
14632         chown: Update doc regarding AIX.
14633         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14634         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14635         Reported by Rainer Tammer.
14636
14637 2010-07-30  Eric Blake  <eblake@redhat.com>
14638
14639         strtod: fix bug in replacement function on AIX
14640         * lib/strtod.c (strtod): Special case broken "0x" parse in
14641         underlying strtod.
14642         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14643         * doc/posix-functions/strtod.texi (strtod): Likewise.
14644         Reported by Rainer Tammer.
14645
14646 2010-07-30  Bruno Haible  <bruno@clisp.org>
14647
14648         mbrlen: Fix cross-compilation guess for AIX.
14649         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14650         guess. Leftover from 2008-12-22.
14651
14652 2010-07-30  Bruno Haible  <bruno@clisp.org>
14653
14654         mbrtowc: Fix cross-compilation guess for AIX.
14655         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14656         guess. Leftover from 2008-12-21.
14657
14658 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14659
14660         init.sh: work around trap limitation of some shells
14661         * tests/init.sh (setup_): Move exit trap outside of shell function.
14662
14663 2010-07-29  Eric Blake  <eblake@redhat.com>
14664
14665         strtod: aid debugging
14666         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14667         understanding why strtod is rejected.
14668
14669 2010-07-28  Bruno Haible  <bruno@clisp.org>
14670
14671         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14672         * lib/unistr/u8-chr.c: Include <string.h>.
14673         * tests/unistr/test-u8-chr.c: Likewise.
14674         * tests/unistr/test-u16-chr.c: Likewise.
14675         * tests/unistr/test-u32-chr.c: Likewise.
14676         * tests/unistr/test-u8-strchr.c: Likewise.
14677         * tests/unistr/test-u16-strchr.c: Likewise.
14678         * tests/unistr/test-u32-strchr.c: Likewise.
14679         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14680         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14681         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14682         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14683
14684 2010-07-28  Bruno Haible  <bruno@clisp.org>
14685
14686         Use spaces for indentation, not tabs.
14687         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14688
14689 2010-07-27  Bruno Haible  <bruno@clisp.org>
14690
14691         mbspcasecmp: Fix function specification.
14692         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14693         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14694         Reported by Eric Blake <eblake@redhat.com>.
14695
14696 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14697
14698         timespec: use cast and not conditional, as truncation isn't possible
14699         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14700         instead of a conditional.  Comment about the situation in more detail.
14701         This undoes most of the 2009-10-29 patch.
14702
14703 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14704
14705         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14706         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14707         * lib/unistr/u8-strchr.c: Likewise.
14708         * modules/unistr/u8-chr: Depend on memchr.
14709
14710         unistr/u*-strchr: add tests
14711         * modules/unistr/u8-strchr-tests: New file.
14712         * modules/unistr/u16-strchr-tests: New file.
14713         * modules/unistr/u32-strchr-tests: New file.
14714         * tests/unistr/test-strchr.h: New file.
14715         * tests/unistr/test-u8-strchr.c: New file.
14716         * tests/unistr/test-u16-strchr.c: New file.
14717         * tests/unistr/test-u32-strchr.c: New file.
14718
14719         unistr/u*-chr: test multibyte sequences more
14720         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14721         test vector.
14722         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14723         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14724         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14725
14726         unistr/u*-chr: test multibyte sequences
14727         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14728
14729         unistr/u*-chr: prepare for multibyte tests
14730         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14731         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14732         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14733         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14734         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14735         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14736
14737 2010-07-18  Bruno Haible  <bruno@clisp.org>
14738
14739         unistr/u8-strchr: Optimize non-ASCII argument case.
14740         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14741         because the first byte often matches anyway.
14742         Reported by Pádraig Brady <P@draigbrady.com>.
14743
14744 2010-07-15  Karl Berry  <karl@gnu.org>
14745
14746         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14747
14748 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14749
14750         getcwd: on Solaris, work better if ancestors are inaccessible
14751         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14752         buffer and size, try again with a large buffer.  This works better
14753         on Solaris, since its getcwd succeeds even if the path to the root
14754         is inaccessible, and this is helpful in common cases such as .zfs
14755         hidden directories.  Problem reported by J Chapman Flack in
14756         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14757         Use system getcwd if it's declared, not merely if it's partly
14758         working; use the partly-working test only to avoid needless effort
14759         if the system getcwd fails.
14760         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14761         comment that was already obsolete and is now even more obsolete.
14762         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14763         now might call strdup.
14764
14765 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14766
14767         pthread: Add enough so that coreutils/src/sort.c compiles.
14768         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14769         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14770         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14771         Include <sys/types.h>, in case it defines pthread_t.
14772         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14773         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14774         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14775         (pthread_rwlockattr_t, pthread_spinlock_t):
14776         New typedefs, if HAVE_PTHREAD_T is not defined.
14777         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14778         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14779         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14780         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14781         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14782         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14783         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14784         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14785         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14786         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14787         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14788         New macros.
14789         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14790         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14791         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14792         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14793         (pthread_spin_unlock): New dummy functions.
14794         (pthread_create): Return EAGAIN; don't set errno.
14795         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14796         require AC_C_INLINE.
14797         * modules/pthread (Depends-on): Add sched, time.
14798         (pthread.h): Use AM_V_GEN.
14799
14800 2010-07-13  Bruno Haible  <bruno@clisp.org>
14801
14802         striconveh: Don't malloc memory if the result buffer is sufficient.
14803         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14804         buffer if its size is sufficient.
14805         Reported by Ludovic Courtès <ludo@gnu.org>.
14806
14807 2010-07-13  Bruno Haible  <bruno@clisp.org>
14808
14809         strtod: Add safety check.
14810         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14811
14812 2010-07-12  Bruno Haible  <bruno@clisp.org>
14813
14814         Unify tests that set gl_cv_func_ldexpl_no_libm.
14815         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14816         gl_FUNC_LDEXPL.
14817         (gl_FUNC_LDEXPL): Invoke it.
14818         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14819
14820 2010-07-12  Bruno Haible  <bruno@clisp.org>
14821
14822         Unify tests that set gl_cv_func_ldexp_no_libm.
14823         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14824         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14825         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14826         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14827         * modules/strtod (Files): Add m4/ldexp.m4.
14828
14829 2010-07-12  Bruno Haible  <bruno@clisp.org>
14830
14831         Unify tests that set gl_cv_func_frexpl_no_libm.
14832         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14833         gl_FUNC_FREXPL_NO_LIBM.
14834         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14835         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14836
14837 2010-07-12  Bruno Haible  <bruno@clisp.org>
14838
14839         Unify tests that set gl_cv_func_frexp_no_libm.
14840         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14841         gl_FUNC_FREXP_NO_LIBM.
14842         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14843         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14844
14845 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14846
14847         memcoll: clarify sizes versus lengths, document better, and tweak perf
14848         * lib/memcoll.c (strcoll_loop, memcoll0):
14849         Improve quality of descriptive comments.  Name variables
14850         consistently as to whether they are lengths (which do not include
14851         terminating null) versus sizes (which do).
14852         * lib/xmemcoll.c (xmemcoll0): Likewise.
14853         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14854         returned when s1size == 0; this is easier to compile and saves
14855         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14856
14857 2010-07-12  Bruno Haible  <bruno@clisp.org>
14858
14859         Tests for module '_Exit'.
14860         * modules/_Exit-tests: New file.
14861         * tests/test-_Exit.sh: New file.
14862         * tests/test-_Exit.c: New file.
14863
14864         New module '_Exit'.
14865         * lib/stdlib.in.h (__attribute__): New macro.
14866         (_Exit): New declaration.
14867         * lib/_Exit.c: New file.
14868         * m4/_Exit.m4: New file.
14869         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14870         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14871         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14872         * modules/_Exit: New file.
14873         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14874         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14875
14876 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14877
14878         strtod: make it more-accurate typically, and don't require libm
14879         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14880         Include limits.h.  Don't include string.h.
14881         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14882         (locale_isspace): New function, so that no casts are needed to
14883         check whether *s is a space.
14884         (ldexp): Provide an unused dummy if not available.
14885         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14886         (strtod): Use them.  This implementation prefers to use the
14887         underlying strtod if available, falling back on our own code
14888         only to fix known bugs.  This is more likely to produce an
14889         accurate result.  Also, it avoids the use of libm functions.
14890         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14891         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14892         was absent, but it caused a test failure with coreutils.
14893         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14894         with libm.
14895         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14896         * modules/strtod-tests (Makefile.am): Likewise.
14897
14898 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14899             Bruno Haible  <bruno@clisp.org>
14900
14901         unistr/u8-strchr: Optimize ASCII argument case.
14902         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14903
14904 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14905
14906         (x)memcoll: minor tweaks
14907         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14908         is after the type that it qualifies.
14909         (memcoll0): Likewise.
14910         * lib/memcoll.h (memcoll0): Likewise.
14911         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14912         * lib/xmemcoll.h (xmemcoll0): Likewise.
14913         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14914         differs from memcoll in that the NUL byte is part of the argument.
14915         Omit the abort-checks, as performance is a real issue here.  Plus,
14916         the checks were wrong anyway (an off-by-one error).  Omit local
14917         variable 'diff', as it's a bit clearer that way.
14918         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14919         no longer needed.
14920
14921 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14922
14923         (x)memcoll: speedup when input is known to be NUL delimited
14924         * lib/memcoll.c: Include stdlib.
14925         (memcoll0): New function.
14926         (strcoll_loop): New function, refactored for use in both memcoll
14927         and memcoll0.
14928         * lib/memcoll.h (memcoll0): Add prototype.
14929         * lib/xmemcoll.c (xmemcoll0): New function.
14930         (collate_error): New function, refactored for use in both xmemcoll
14931         and xmemcoll0.
14932         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14933         * m4/memcoll.m4: add inline invocation.
14934
14935 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14936
14937         * build-aux/bootstrap: Remove any local translations
14938         from the translation project synchronization directory,
14939         so that local only translations are not distributed.
14940
14941 2010-07-04  Bruno Haible  <bruno@clisp.org>
14942
14943         fsusage: Clarify which code applies to which platforms.
14944         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14945         platform.
14946         * lib/fsusage.c (get_fs_usage): Likewise.
14947
14948 2010-07-04  Bruno Haible  <bruno@clisp.org>
14949
14950         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14951         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14952         Reported by Martin Lambers <marlam@marlam.de>.
14953
14954 2010-07-04  Jim Meyering  <meyering@redhat.com>
14955
14956         hash: once again explicitly disallow insertion of NULL
14957         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14958         inserting a NULL pointer cannot work with these functions.
14959         Add a comment with details.
14960         This reverts part of the 2010-07-01 commit, 5bef1a35
14961         "hash: extend module to deal with non-pointer keys".
14962
14963 2010-07-01  Bruno Haible  <bruno@clisp.org>
14964
14965         stdbool: Update doc.
14966         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14967         Info from Christian Weisgerber <naddy@mips.inka.de>.
14968
14969 2010-07-01  Jim Meyering  <meyering@redhat.com>
14970
14971         hash: extend module to deal with non-pointer keys
14972         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14973         but that allows insertion of non-pointer entries.
14974         Do not disallow an ENTRY value of NULL.
14975         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14976         * lib/hash.h (hash_insert0): Declare.
14977
14978 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14979
14980         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14981         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14982         not present (i.e. with autoconf 2.59 and when using gettextize, not
14983         gnulib), require AC_GNU_SOURCE instead.
14984
14985 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14986
14987         idpriv-drop: Fix tests.
14988         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14989         not to the test-idpriv-droptemp program.
14990
14991 2010-06-29  Bruno Haible  <bruno@clisp.org>
14992
14993         string: Fix syntax error with g++ 2.96.
14994         * lib/string.in.h (__pure__): Remove definition.
14995         (_GL_ATTRIBUTE_PURE): New macro.
14996         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14997         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14998         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14999
15000 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15001
15002         unitypes: Fix bug introduced on 2010-05-18.
15003         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15004
15005 2010-06-22  Eric Blake  <eblake@redhat.com>
15006
15007         memmem: slight optimization
15008         * lib/str-two-way.h (critical_factorization): Update comments.
15009         Reduce work during factorization phase.
15010         Reported by Carlos Bueno <carlos@bueno.org>.
15011
15012 2010-06-21  Bruno Haible  <bruno@clisp.org>
15013
15014         Fix HAVE_CALLOC_POSIX misnomer.
15015         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15016         !HAVE_CALLOC_POSIX.
15017         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15018         HAVE_CALLOC_POSIX.
15019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15020         instead of HAVE_CALLOC_POSIX.
15021         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15022         HAVE_CALLOC_POSIX.
15023
15024         Use modern idiom for calloc() replacement.
15025         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15026         AC_FUNC_CALLOC.
15027         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15028         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15029         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15030         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15031         (gl_REPLACE_CALLOC): New macro.
15032
15033 2010-06-21  Bruno Haible  <bruno@clisp.org>
15034
15035         Fix HAVE_REALLOC_POSIX misnomer.
15036         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15037         !HAVE_REALLOC_POSIX.
15038         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15039         HAVE_REALLOC_POSIX.
15040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15041         instead of HAVE_REALLOC_POSIX.
15042         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15043         HAVE_REALLOC_POSIX.
15044
15045         Use modern idiom for realloc() replacement.
15046         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15047         AC_FUNC_REALLOC.
15048         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15049         Autoconf's AC_FUNC_REALLOC.
15050         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15051         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15052         (gl_REPLACE_REALLOC): New macro.
15053         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15054
15055 2010-06-21  Bruno Haible  <bruno@clisp.org>
15056
15057         Fix HAVE_MALLOC_POSIX misnomer.
15058         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15059         !HAVE_MALLOC_POSIX.
15060         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15061         HAVE_MALLOC_POSIX.
15062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15063         instead of HAVE_MALLOC_POSIX.
15064         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15065         HAVE_MALLOC_POSIX.
15066
15067         Use modern idiom for malloc() replacement.
15068         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15069         AC_FUNC_MALLOC.
15070         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15071         Autoconf's AC_FUNC_MALLOC.
15072         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15073         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15074         (gl_REPLACE_MALLOC): New macro.
15075         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15076
15077 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15078
15079         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15080         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15081         This macro takes 3 arguments, not 4.
15082
15083 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15084
15085         ipv6: fix detection under mingw
15086         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15087         in6_addr.
15088
15089 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15090
15091         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15092         that strtod() works when cross-compiling to a glibc version known
15093         to work.
15094
15095 2010-06-15  Bruno Haible  <bruno@clisp.org>
15096
15097         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15098
15099 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15100
15101         select: Correct timeout.
15102         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15103
15104 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15105
15106         git-version-gen: init shell var to avoid env var influence
15107         * build-aux/git-version-gen (v): Init shell var to empty.
15108
15109 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15110
15111         priv-set: Don't assume that priv.h exists merely because getppriv does.
15112         See Jan Andersen's bug report about AIX 5L in
15113         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15114         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15115         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15116         * lib/priv-set.h: Likewise.
15117         * tests/test-priv-set.c: Likewise.
15118
15119 2010-06-13  Bruno Haible  <bruno@clisp.org>
15120
15121         relocatable: Make it easier to test whether to install wrappers.
15122         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15123         RELOCATABLE_VIA_WRAPPER.
15124
15125 2010-06-13  Bruno Haible  <bruno@clisp.org>
15126
15127         gnulib-tool: Display specified modules and dependencies differently.
15128         * gnulib-tool (func_show_module_list): New function.
15129         (func_import, func_create_testdir): Invoke it.
15130         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15131
15132 2010-06-13  Bruno Haible  <bruno@clisp.org>
15133
15134         gnulib-tool: Align code of func_import and func_create_testdir.
15135         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15136         specified_modules.
15137
15138 2010-06-12  Jim Meyering  <meyering@redhat.com>
15139
15140         test-inttostr: avoid spurious failure on Solaris 9
15141         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15142         to accept "%ju".  Reported by Bruno Haible.
15143
15144 2010-06-11  Jim Meyering  <meyering@redhat.com>
15145
15146         test-sys_socket: mark variables as used more readably
15147         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15148         as "used" explicitly via (void) statement casts.  This is more
15149         readable than using them in an artificial return expression.
15150         Suggestion from Bruno Haible.
15151
15152 2010-06-11  Bruno Haible  <bruno@clisp.org>
15153
15154         Avoid some more warnings from "gcc -Wwrite-strings".
15155         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15156         to 'const char *'.
15157         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15158         * tests/test-c-strcasestr.c (main): Likewise.
15159         * tests/test-mbscasestr1.c (main): Likewise.
15160         * tests/test-mbscasestr2.c (main): Likewise.
15161         * tests/test-memmem.c (main): Likewise.
15162         * tests/test-strstr.c (main): Likewise.
15163         * tests/test-strcasestr.c (main): Likewise.
15164
15165 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15166
15167         init.sh: change framework_failure_ to fail with status 99, not 1
15168         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15169         automake's parallel-tests rule that this is an unexpected failure,
15170         even if the test is listed in XFAIL_TESTS.
15171
15172 2010-06-11  Jim Meyering  <meyering@redhat.com>
15173
15174         test-inttostr: avoid warnings about 4-6KB literal strings
15175         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15176         Include "macros.h", for its definition of ASSERT.
15177         (CK): s/assert/ASSERT/
15178         * modules/inttostr-tests (Files): Add macros.h.
15179
15180         init.sh: don't use $ME_ or skip_ before they are defined
15181         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15182         their first uses.  Also hoist their companions: warn_, fail_,
15183         framework_failure_, $stderr_fileno.  Prompted by a patch from
15184         Stefano Lattarini.
15185
15186         test-sys_socket: avoid set-but-not-used warnings from gcc
15187         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15188         avoid warning about set-but-not-used variables.
15189
15190         test-xvasprintf: avoid 'const' discard warnings
15191         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15192         "const" when assigning from literal strings.
15193         (test_xasprintf): Add "void" in function argument list to placate
15194         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15195
15196         tests: avoid compilation warnings in argmatch and exclude tests...
15197         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15198         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15199         Since it always exits, declare with the "noreturn" attribute.
15200         * tests/test-argmatch.c: Likewise.
15201
15202         tests: avoid 'const' discard warnings in mbsstr tests
15203         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15204         * tests/test-mbsstr2.c (main): Likewise.
15205
15206         test-verify: avoid warning from gcc's -Wmissing-declarations
15207         * tests/test-verify.c (function): Declare to be static.
15208
15209         test-inttostr.c: include <string.h> for use of strcmp
15210         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15211
15212         test-linkat: avoid failed assertion on "other" architectures
15213         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15214         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15215         sparc: https://bugs.launchpad.net/bugs/591968
15216
15217 2010-06-11  Jim Meyering  <meyering@redhat.com>
15218
15219         printf.m4: avoid autoconf's "Expanded Before Required" warning
15220         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15221         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15222         autoconf warning.
15223
15224 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15225
15226         Replacement header templates are now named with ".in", not "_".
15227         * doc/gnulib-intro.texi: Correct.
15228
15229 2010-06-10  Jim Meyering  <meyering@redhat.com>
15230
15231         inttostr-tests: depend on snprintf, not snprintf-posix
15232         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15233         snprintf-posix, to avoid this aclocal failure:
15234           missing file gnulib-tests/vasnprintf.c
15235           configure.ac:45: error: expected source file, required through \
15236           AC_LIBSOURCES, not found
15237
15238 2010-06-10  Jim Meyering  <meyering@redhat.com>
15239
15240         inttostr: add a new function, inttostr, and tests
15241         The namesake function was not available.  The existence of the
15242         template file, inttostr.c makes its addition nontrivial.
15243         * lib/anytostr.c: Rename from inttostr.c.
15244         (anytostr): Rename from inttostr.
15245         * lib/inttostr.c: New file.
15246         * modules/inttostr (Files): Add anytostr.c.
15247         (Makefile.am): Set lib_SOURCES instead of ...
15248         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15249         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15250         * lib/offtostr.c: Likewise.
15251         * lib/uinttostr.c: Likewise.
15252         * lib/umaxtostr.c: Likewise.
15253         * modules/inttostr-tests: New file.
15254         * tests/test-inttostr.c: New file.  Test these functions.
15255
15256 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15257             Bruno Haible  <bruno@clisp.org>
15258
15259         Add "Extending Gnulib" chapter to manual.
15260         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15261         chapter.
15262         (Extending Gnulib): New chapter.
15263         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15264         chapter.
15265
15266 2010-06-09  Bruno Haible  <bruno@clisp.org>
15267
15268         Avoid relocwrapper link errors due to gnulib replacement functions.
15269         * lib/areadlink.c: Use the system's malloc, realloc functions.
15270         (areadlink): Set errno to ENOMEM explicitly.
15271         * modules/areadlink (Depends-on): Remove malloc-posix.
15272         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15273
15274 2010-06-09  Bruno Haible  <bruno@clisp.org>
15275
15276         Avoid relocwrapper link errors due to gnulib replacement functions.
15277         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15278         * lib/malloca.c: Likewise.
15279         * lib/relocatable.c: Likewise.
15280         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15281         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15282         * lib/setenv.c: Use the system's malloc, realloc functions.
15283         * lib/strerror.c: Use the system's sprintf function.
15284         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15285
15286 2010-06-04  Bruno Haible  <bruno@clisp.org>
15287
15288         Prefer documented low-level autoconf macro names.
15289         * m4/lib-link.m4: Use m4_translit instead of translit.
15290         * m4/environ.m4: Likewise.
15291         * m4/mathfunc.m4: Likewise.
15292         * m4/onceonly.m4: Likewise.
15293         * m4/stdint.m4: Likewise.
15294         Suggested by Eric Blake.
15295
15296 2010-06-04  Martin Lambers  <marlam@marlam.de>
15297             Bruno Haible  <bruno@clisp.org>
15298
15299         havelib: Allow library names with '+' characters.
15300         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15301         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15302
15303 2010-06-09  Bruno Haible  <bruno@clisp.org>
15304
15305         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15306         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15307         realloc failed.
15308
15309 2010-06-08  Peter Simons  <simons@cryp.to>
15310
15311         maint.mk: make the news-check rule more configurable
15312         * top/maint.mk (news-check-lines-spec): New variable.
15313         (news-check): Use "sed -n 1,10p" in place of "head".
15314
15315 2010-06-07  Jim Meyering  <meyering@redhat.com>
15316
15317         do-release-commit-and-tag: fix typo in --help
15318         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15319
15320         regex: avoid new dead-code warning with gcc-4.6.0
15321         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15322         if-block containing a while-loop.  It's been unused for at least
15323         5 years.
15324
15325 2010-06-05  Bruno Haible  <bruno@clisp.org>
15326
15327         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15328         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15329
15330 2010-06-04  Bruno Haible  <bruno@clisp.org>
15331
15332         Update to GNU gettext 0.18.1.
15333         * modules/gettext (configure.ac): Require gettext infrastructure from
15334         version 0.18.1.
15335
15336 2010-06-03  Bruno Haible  <bruno@clisp.org>
15337
15338         Don't use AC_LIBOBJ with file names in subdirectories.
15339         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15340         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15341         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15342         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15343         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15344         gl_LIBUNISTRING_LIBSOURCE.
15345         (Makefile.am): Augment lib_SOURCES here, conditionally.
15346         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15347
15348 2010-06-03  Bruno Haible  <bruno@clisp.org>
15349
15350         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15351         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15352         expansion does not end with a newline.
15353         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15354         unnecessary newline.
15355
15356 2010-06-03  Bruno Haible  <bruno@clisp.org>
15357
15358         Reduce dependencies.
15359         * tests/test-quotearg.h: New file, extracted from
15360         tests/test-quotearg.c.
15361         * tests/test-quotearg-simple.c: New file, extracted from
15362         tests/test-quotearg.c.
15363         * tests/test-quotearg.c: Don't include <ctype.h>.
15364         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15365         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15366         use_quote_double_quotes, use_quotearg_colon): Moved to
15367         tests/test-quotearg.h.
15368         (results_g, flag_results, custom_quotes, custom_results): Moved
15369         to tests/test-quotearg-simple.c.
15370         (main): Moved the part that does not depend on gettext to
15371         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15372         performed.
15373         * modules/quotearg-simple: New file.
15374         * modules/quotearg-simple-tests: New file.
15375         * modules/quotearg (Depends-on): Add quotearg-simple.
15376         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15377         (Files): Add tests/test-quotearg.h.
15378         Reported by Paolo Bonzini.
15379
15380 2010-06-03  Bruno Haible  <bruno@clisp.org>
15381
15382         Reduce dependencies.
15383         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15384
15385 2010-06-03  Bruno Haible  <bruno@clisp.org>
15386
15387         time: Undefine more broken macros.
15388         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15389         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15390         Reported by Eric Blake.
15391
15392 2010-06-03  Bruno Haible  <bruno@clisp.org>
15393
15394         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15395         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15396         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15397         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15398         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15399         Reported by Ludovic Courtès <ludo@gnu.org>.
15400
15401 2010-06-02  Eric Blake  <eblake@redhat.com>
15402
15403         time: work with mingw + pthreads-win32 library
15404         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15405         if timespec is defined only in pthread.h.
15406         * modules/time (Makefile.am): Substitute it.
15407         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15408         <pthread.h>, when needed.
15409         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15410         from the library.
15411
15412 2010-05-31  Bruno Haible  <bruno@clisp.org>
15413
15414         Avoid expanding two macros in the wrong order.
15415         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15416         gl_LIBUNISTRING if it is defined.
15417         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15418         autoconf >= 2.64.
15419         Reported by Ludovic Courtès <ludo@gnu.org>.
15420
15421 2010-05-27  Jim Meyering  <meyering@redhat.com>
15422
15423         maint.mk: also prohibit "#undef" of always-defined symbols
15424         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15425         Allow more than one space before the symbol name.
15426         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15427         the regexp uses alternation.
15428
15429 2010-05-26  Eric Blake  <eblake@redhat.com>
15430
15431         maint.mk: avoid echo -e
15432         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15433         Convert all uses of echo -* to printf.
15434         Reported by Matthias Bolte.
15435
15436 2010-05-25  Bruno Haible  <bruno@clisp.org>
15437
15438         Update to GNU gettext 0.18, part 2.
15439         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15440         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15441
15442 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15443
15444         Add missing include in test-pwrite.c.
15445         * tests/test-pwrite.c: Include string.h, for strcmp.
15446
15447 2010-05-24  Bruno Haible  <bruno@clisp.org>
15448
15449         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15450
15451 2010-05-24  Bruno Haible  <bruno@clisp.org>
15452
15453         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15454         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15455         iconveh_error argument.
15456         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15457         U_STRCONV_TO_LOCALE.
15458         * lib/unistr/u16-strcoll.c: Likewise.
15459         * lib/unistr/u32-strcoll.c: Likewise.
15460         * modules/unistr/u8-strcoll (Depends-on): Add
15461         uniconv/u8-strconv-to-enc, localcharset. Remove
15462         uniconv/u8-strconv-to-locale.
15463         (configure.ac): Bump version number.
15464         * modules/unistr/u16-strcoll (Depends-on): Add
15465         uniconv/u16-strconv-to-enc, localcharset. Remove
15466         uniconv/u16-strconv-to-locale.
15467         (configure.ac): Bump version number.
15468         * modules/unistr/u32-strcoll (Depends-on): Add
15469         uniconv/u32-strconv-to-enc, localcharset. Remove
15470         uniconv/u32-strconv-to-locale.
15471         (configure.ac): Bump version number.
15472
15473 2010-05-24  Bruno Haible  <bruno@clisp.org>
15474
15475         Avoid a test failure on NetBSD 5.0.
15476         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15477         an iconv() bug.
15478
15479 2010-05-24  Bruno Haible  <bruno@clisp.org>
15480
15481         Adjust #include directive style.
15482         * modules/regex (Includes): Recommend to write <regex.h>.
15483
15484 2010-05-24  Bruno Haible  <bruno@clisp.org>
15485
15486         regex: Don't require alloca.
15487         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15488         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15489         only inside if (0).
15490
15491 2010-05-23  Jim Meyering  <meyering@redhat.com>
15492
15493         test-renameat.c: include <sys/stat.h>
15494         * tests/test-renameat.c: Include <sys/stat.h>; required for
15495         definition of S_IS* macros.
15496
15497 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15498
15499         Update maintainer documentation for 'relocatable-prog' module.
15500         * doc/relocatable-maint.texi: Update.
15501         Comments by Bruno Haible.
15502
15503 2010-05-23  Bruno Haible  <bruno@clisp.org>
15504
15505         git-merge-changelog: Enable --split-merged-entry by default.
15506         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15507         (usage): Don't mention this option any more.
15508         Reported by Ralf Wildenhues.
15509
15510 2010-05-23  Jim Meyering  <meyering@redhat.com>
15511
15512         test-pwrite: do not leave behind a test file named "out"
15513         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15514         The trivial-looking use of init.sh is really necessary.
15515         It ensures that the temporary file, "out", is created in
15516         a temporary directory, and removed upon termination.
15517         * tests/test-pwrite.sh: Re-add file.
15518         * modules/pwrite-tests: Reference it.
15519
15520 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15521
15522         Fix output redirection buglet in init.sh.
15523         * tests/init.sh: Fix redirection of stderr.
15524
15525 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15526
15527         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15528
15529 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15530
15531         * modules/valgrind-tests: New file.
15532         * m4/valgrind-tests.m4: New file.
15533         * doc/valgrind-tests.texi: New file.
15534         * doc/gnulib.texi (Running self-tests under valgrind): New
15535         section.
15536
15537 2010-05-19  Bruno Haible  <bruno@clisp.org>
15538
15539         Clean up dead code in recent commit.
15540         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15541         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15542         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15543         Suggested by Paolo Bonzini.
15544
15545 2010-05-19  Bruno Haible  <bruno@clisp.org>
15546
15547         Avoid valgrind error reports from libunistring.
15548         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15549         * modules/libunistring (Files): Add it.
15550         * modules/libunistring-optional (Files): Likewise.
15551
15552 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15553             Bruno Haible  <bruno@clisp.org>
15554
15555         New module 'libunistring-optional'.
15556         * modules/libunistring-optional: New file.
15557         * m4/libunistring-base.m4: New file.
15558         * m4/libunistring-optional.m4: New file.
15559         * lib/unicase.in.h: Renamed from lib/unicase.h.
15560         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15561         * lib/unictype.in.h: Renamed from lib/unictype.h.
15562         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15563         * lib/uniname.in.h: Renamed from lib/uniname.h.
15564         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15565         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15566         * lib/unistr.in.h: Renamed from lib/unistr.h.
15567         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15568         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15569         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15570         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15571         gl_LIBUNISTRING. If the library was found, determine the installed
15572         version and set LIBUNISTRING_VERSION.
15573         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15574         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15575         handle a configuration option --with-included-libunistring.
15576         * modules/libunistring (Files): Add m4/absolute-header.m4.
15577         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15578         Add m4/libunistring-base.m4.
15579         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15580         (Makefile.am): Build unicase.h from unicase.in.h.
15581         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15582         Add m4/libunistring-base.m4.
15583         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15584         (Makefile.am): Build uniconv.h from uniconv.in.h.
15585         * modules/unictype/base (Files): Use unictype.in.h instead of
15586         unictype.h. Add m4/libunistring-base.m4.
15587         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15588         (Makefile.am): Build unictype.h from unictype.in.h.
15589         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15590         Add m4/libunistring-base.m4.
15591         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15592         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15593         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15594         Add m4/libunistring-base.m4.
15595         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15596         (Makefile.am): Build uniname.h from uniname.in.h.
15597         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15598         Add m4/libunistring-base.m4.
15599         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15600         (Makefile.am): Build uninorm.h from uninorm.in.h.
15601         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15602         unistdio.h. Add m4/libunistring-base.m4.
15603         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15604         (Makefile.am): Build unistdio.h from unistdio.in.h.
15605         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15606         Add m4/libunistring-base.m4.
15607         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15608         (Makefile.am): Build unistr.h from unistr.in.h.
15609         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15610         Add m4/libunistring-base.m4.
15611         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15612         (Makefile.am): Build unitypes.h from unitypes.in.h.
15613         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15614         Add m4/libunistring-base.m4.
15615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15616         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15617         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15618         uniwidth.h. Add m4/libunistring-base.m4.
15619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15620         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15621         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15622         instead of augmenting lib_SOURCES.
15623         * modules/unicase/empty-suffix-context: Likewise.
15624         * modules/unicase/locale-language: Likewise.
15625         * modules/unicase/tolower: Likewise.
15626         * modules/unicase/totitle: Likewise.
15627         * modules/unicase/toupper: Likewise.
15628         * modules/unicase/u8-casecmp: Likewise.
15629         * modules/unicase/u8-casecoll: Likewise.
15630         * modules/unicase/u8-casefold: Likewise.
15631         * modules/unicase/u8-casexfrm: Likewise.
15632         * modules/unicase/u8-ct-casefold: Likewise.
15633         * modules/unicase/u8-ct-tolower: Likewise.
15634         * modules/unicase/u8-ct-totitle: Likewise.
15635         * modules/unicase/u8-ct-toupper: Likewise.
15636         * modules/unicase/u8-is-cased: Likewise.
15637         * modules/unicase/u8-is-casefolded: Likewise.
15638         * modules/unicase/u8-is-lowercase: Likewise.
15639         * modules/unicase/u8-is-titlecase: Likewise.
15640         * modules/unicase/u8-is-uppercase: Likewise.
15641         * modules/unicase/u8-prefix-context: Likewise.
15642         * modules/unicase/u8-suffix-context: Likewise.
15643         * modules/unicase/u8-tolower: Likewise.
15644         * modules/unicase/u8-totitle: Likewise.
15645         * modules/unicase/u8-toupper: Likewise.
15646         * modules/unicase/u16-casecmp: Likewise.
15647         * modules/unicase/u16-casecoll: Likewise.
15648         * modules/unicase/u16-casefold: Likewise.
15649         * modules/unicase/u16-casexfrm: Likewise.
15650         * modules/unicase/u16-ct-casefold: Likewise.
15651         * modules/unicase/u16-ct-tolower: Likewise.
15652         * modules/unicase/u16-ct-totitle: Likewise.
15653         * modules/unicase/u16-ct-toupper: Likewise.
15654         * modules/unicase/u16-is-cased: Likewise.
15655         * modules/unicase/u16-is-casefolded: Likewise.
15656         * modules/unicase/u16-is-lowercase: Likewise.
15657         * modules/unicase/u16-is-titlecase: Likewise.
15658         * modules/unicase/u16-is-uppercase: Likewise.
15659         * modules/unicase/u16-prefix-context: Likewise.
15660         * modules/unicase/u16-suffix-context: Likewise.
15661         * modules/unicase/u16-tolower: Likewise.
15662         * modules/unicase/u16-totitle: Likewise.
15663         * modules/unicase/u16-toupper: Likewise.
15664         * modules/unicase/u32-casecmp: Likewise.
15665         * modules/unicase/u32-casecoll: Likewise.
15666         * modules/unicase/u32-casefold: Likewise.
15667         * modules/unicase/u32-casexfrm: Likewise.
15668         * modules/unicase/u32-ct-casefold: Likewise.
15669         * modules/unicase/u32-ct-tolower: Likewise.
15670         * modules/unicase/u32-ct-totitle: Likewise.
15671         * modules/unicase/u32-ct-toupper: Likewise.
15672         * modules/unicase/u32-is-cased: Likewise.
15673         * modules/unicase/u32-is-casefolded: Likewise.
15674         * modules/unicase/u32-is-lowercase: Likewise.
15675         * modules/unicase/u32-is-titlecase: Likewise.
15676         * modules/unicase/u32-is-uppercase: Likewise.
15677         * modules/unicase/u32-prefix-context: Likewise.
15678         * modules/unicase/u32-suffix-context: Likewise.
15679         * modules/unicase/u32-tolower: Likewise.
15680         * modules/unicase/u32-totitle: Likewise.
15681         * modules/unicase/u32-toupper: Likewise.
15682         * modules/unicase/ulc-casecmp: Likewise.
15683         * modules/unicase/ulc-casecoll: Likewise.
15684         * modules/unicase/ulc-casexfrm: Likewise.
15685         * modules/uniconv/u8-conv-from-enc: Likewise.
15686         * modules/uniconv/u8-conv-to-enc: Likewise.
15687         * modules/uniconv/u8-strconv-from-enc: Likewise.
15688         * modules/uniconv/u8-strconv-from-locale: Likewise.
15689         * modules/uniconv/u8-strconv-to-enc: Likewise.
15690         * modules/uniconv/u8-strconv-to-locale: Likewise.
15691         * modules/uniconv/u16-conv-from-enc: Likewise.
15692         * modules/uniconv/u16-conv-to-enc: Likewise.
15693         * modules/uniconv/u16-strconv-from-enc: Likewise.
15694         * modules/uniconv/u16-strconv-from-locale: Likewise.
15695         * modules/uniconv/u16-strconv-to-enc: Likewise.
15696         * modules/uniconv/u16-strconv-to-locale: Likewise.
15697         * modules/uniconv/u32-conv-from-enc: Likewise.
15698         * modules/uniconv/u32-conv-to-enc: Likewise.
15699         * modules/uniconv/u32-strconv-from-enc: Likewise.
15700         * modules/uniconv/u32-strconv-from-locale: Likewise.
15701         * modules/uniconv/u32-strconv-to-enc: Likewise.
15702         * modules/uniconv/u32-strconv-to-locale: Likewise.
15703         * modules/unictype/bidicategory-byname: Likewise.
15704         * modules/unictype/bidicategory-name: Likewise.
15705         * modules/unictype/bidicategory-of: Likewise.
15706         * modules/unictype/bidicategory-test: Likewise.
15707         * modules/unictype/block-list: Likewise.
15708         * modules/unictype/block-test: Likewise.
15709         * modules/unictype/category-C: Likewise.
15710         * modules/unictype/category-Cc: Likewise.
15711         * modules/unictype/category-Cf: Likewise.
15712         * modules/unictype/category-Cn: Likewise.
15713         * modules/unictype/category-Co: Likewise.
15714         * modules/unictype/category-Cs: Likewise.
15715         * modules/unictype/category-L: Likewise.
15716         * modules/unictype/category-Ll: Likewise.
15717         * modules/unictype/category-Lm: Likewise.
15718         * modules/unictype/category-Lo: Likewise.
15719         * modules/unictype/category-Lt: Likewise.
15720         * modules/unictype/category-Lu: Likewise.
15721         * modules/unictype/category-M: Likewise.
15722         * modules/unictype/category-Mc: Likewise.
15723         * modules/unictype/category-Me: Likewise.
15724         * modules/unictype/category-Mn: Likewise.
15725         * modules/unictype/category-N: Likewise.
15726         * modules/unictype/category-Nd: Likewise.
15727         * modules/unictype/category-Nl: Likewise.
15728         * modules/unictype/category-No: Likewise.
15729         * modules/unictype/category-P: Likewise.
15730         * modules/unictype/category-Pc: Likewise.
15731         * modules/unictype/category-Pd: Likewise.
15732         * modules/unictype/category-Pe: Likewise.
15733         * modules/unictype/category-Pf: Likewise.
15734         * modules/unictype/category-Pi: Likewise.
15735         * modules/unictype/category-Po: Likewise.
15736         * modules/unictype/category-Ps: Likewise.
15737         * modules/unictype/category-S: Likewise.
15738         * modules/unictype/category-Sc: Likewise.
15739         * modules/unictype/category-Sk: Likewise.
15740         * modules/unictype/category-Sm: Likewise.
15741         * modules/unictype/category-So: Likewise.
15742         * modules/unictype/category-Z: Likewise.
15743         * modules/unictype/category-Zl: Likewise.
15744         * modules/unictype/category-Zp: Likewise.
15745         * modules/unictype/category-Zs: Likewise.
15746         * modules/unictype/category-and: Likewise.
15747         * modules/unictype/category-and-not: Likewise.
15748         * modules/unictype/category-byname: Likewise.
15749         * modules/unictype/category-name: Likewise.
15750         * modules/unictype/category-none: Likewise.
15751         * modules/unictype/category-of: Likewise.
15752         * modules/unictype/category-or: Likewise.
15753         * modules/unictype/category-test: Likewise.
15754         * modules/unictype/combining-class: Likewise.
15755         * modules/unictype/ctype-alnum: Likewise.
15756         * modules/unictype/ctype-alpha: Likewise.
15757         * modules/unictype/ctype-blank: Likewise.
15758         * modules/unictype/ctype-cntrl: Likewise.
15759         * modules/unictype/ctype-digit: Likewise.
15760         * modules/unictype/ctype-graph: Likewise.
15761         * modules/unictype/ctype-lower: Likewise.
15762         * modules/unictype/ctype-print: Likewise.
15763         * modules/unictype/ctype-punct: Likewise.
15764         * modules/unictype/ctype-space: Likewise.
15765         * modules/unictype/ctype-upper: Likewise.
15766         * modules/unictype/ctype-xdigit: Likewise.
15767         * modules/unictype/decimal-digit: Likewise.
15768         * modules/unictype/digit: Likewise.
15769         * modules/unictype/mirror: Likewise.
15770         * modules/unictype/numeric: Likewise.
15771         * modules/unictype/property-alphabetic: Likewise.
15772         * modules/unictype/property-ascii-hex-digit: Likewise.
15773         * modules/unictype/property-bidi-arabic-digit: Likewise.
15774         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15775         * modules/unictype/property-bidi-block-separator: Likewise.
15776         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15777         * modules/unictype/property-bidi-common-separator: Likewise.
15778         * modules/unictype/property-bidi-control: Likewise.
15779         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15780         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15781         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15782         * modules/unictype/property-bidi-european-digit: Likewise.
15783         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15784         * modules/unictype/property-bidi-left-to-right: Likewise.
15785         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15786         * modules/unictype/property-bidi-other-neutral: Likewise.
15787         * modules/unictype/property-bidi-pdf: Likewise.
15788         * modules/unictype/property-bidi-segment-separator: Likewise.
15789         * modules/unictype/property-bidi-whitespace: Likewise.
15790         * modules/unictype/property-byname: Likewise.
15791         * modules/unictype/property-combining: Likewise.
15792         * modules/unictype/property-composite: Likewise.
15793         * modules/unictype/property-currency-symbol: Likewise.
15794         * modules/unictype/property-dash: Likewise.
15795         * modules/unictype/property-decimal-digit: Likewise.
15796         * modules/unictype/property-default-ignorable-code-point: Likewise.
15797         * modules/unictype/property-deprecated: Likewise.
15798         * modules/unictype/property-diacritic: Likewise.
15799         * modules/unictype/property-extender: Likewise.
15800         * modules/unictype/property-format-control: Likewise.
15801         * modules/unictype/property-grapheme-base: Likewise.
15802         * modules/unictype/property-grapheme-extend: Likewise.
15803         * modules/unictype/property-grapheme-link: Likewise.
15804         * modules/unictype/property-hex-digit: Likewise.
15805         * modules/unictype/property-hyphen: Likewise.
15806         * modules/unictype/property-id-continue: Likewise.
15807         * modules/unictype/property-id-start: Likewise.
15808         * modules/unictype/property-ideographic: Likewise.
15809         * modules/unictype/property-ids-binary-operator: Likewise.
15810         * modules/unictype/property-ids-trinary-operator: Likewise.
15811         * modules/unictype/property-ignorable-control: Likewise.
15812         * modules/unictype/property-iso-control: Likewise.
15813         * modules/unictype/property-join-control: Likewise.
15814         * modules/unictype/property-left-of-pair: Likewise.
15815         * modules/unictype/property-line-separator: Likewise.
15816         * modules/unictype/property-logical-order-exception: Likewise.
15817         * modules/unictype/property-lowercase: Likewise.
15818         * modules/unictype/property-math: Likewise.
15819         * modules/unictype/property-non-break: Likewise.
15820         * modules/unictype/property-not-a-character: Likewise.
15821         * modules/unictype/property-numeric: Likewise.
15822         * modules/unictype/property-other-alphabetic: Likewise.
15823         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15824         * modules/unictype/property-other-grapheme-extend: Likewise.
15825         * modules/unictype/property-other-id-continue: Likewise.
15826         * modules/unictype/property-other-id-start: Likewise.
15827         * modules/unictype/property-other-lowercase: Likewise.
15828         * modules/unictype/property-other-math: Likewise.
15829         * modules/unictype/property-other-uppercase: Likewise.
15830         * modules/unictype/property-paired-punctuation: Likewise.
15831         * modules/unictype/property-paragraph-separator: Likewise.
15832         * modules/unictype/property-pattern-syntax: Likewise.
15833         * modules/unictype/property-pattern-white-space: Likewise.
15834         * modules/unictype/property-private-use: Likewise.
15835         * modules/unictype/property-punctuation: Likewise.
15836         * modules/unictype/property-quotation-mark: Likewise.
15837         * modules/unictype/property-radical: Likewise.
15838         * modules/unictype/property-sentence-terminal: Likewise.
15839         * modules/unictype/property-soft-dotted: Likewise.
15840         * modules/unictype/property-space: Likewise.
15841         * modules/unictype/property-terminal-punctuation: Likewise.
15842         * modules/unictype/property-test: Likewise.
15843         * modules/unictype/property-titlecase: Likewise.
15844         * modules/unictype/property-unassigned-code-value: Likewise.
15845         * modules/unictype/property-unified-ideograph: Likewise.
15846         * modules/unictype/property-uppercase: Likewise.
15847         * modules/unictype/property-variation-selector: Likewise.
15848         * modules/unictype/property-white-space: Likewise.
15849         * modules/unictype/property-xid-continue: Likewise.
15850         * modules/unictype/property-xid-start: Likewise.
15851         * modules/unictype/property-zero-width: Likewise.
15852         * modules/unictype/scripts: Likewise.
15853         * modules/unictype/syntax-c-ident: Likewise.
15854         * modules/unictype/syntax-c-whitespace: Likewise.
15855         * modules/unictype/syntax-java-ident: Likewise.
15856         * modules/unictype/syntax-java-whitespace: Likewise.
15857         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15858         * modules/unilbrk/u8-width-linebreaks: Likewise.
15859         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15860         * modules/unilbrk/u16-width-linebreaks: Likewise.
15861         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15862         * modules/unilbrk/u32-width-linebreaks: Likewise.
15863         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15864         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15865         * modules/uniname/uniname: Likewise.
15866         * modules/uninorm/canonical-decomposition: Likewise.
15867         * modules/uninorm/composition: Likewise.
15868         * modules/uninorm/decomposing-form: Likewise.
15869         * modules/uninorm/decomposition: Likewise.
15870         * modules/uninorm/filter: Likewise.
15871         * modules/uninorm/nfc: Likewise.
15872         * modules/uninorm/nfd: Likewise.
15873         * modules/uninorm/nfkc: Likewise.
15874         * modules/uninorm/nfkd: Likewise.
15875         * modules/uninorm/u8-normalize: Likewise.
15876         * modules/uninorm/u8-normcmp: Likewise.
15877         * modules/uninorm/u8-normcoll: Likewise.
15878         * modules/uninorm/u8-normxfrm: Likewise.
15879         * modules/uninorm/u16-normalize: Likewise.
15880         * modules/uninorm/u16-normcmp: Likewise.
15881         * modules/uninorm/u16-normcoll: Likewise.
15882         * modules/uninorm/u16-normxfrm: Likewise.
15883         * modules/uninorm/u32-normalize: Likewise.
15884         * modules/uninorm/u32-normcmp: Likewise.
15885         * modules/uninorm/u32-normcoll: Likewise.
15886         * modules/uninorm/u32-normxfrm: Likewise.
15887         * modules/unistdio/u8-asnprintf: Likewise.
15888         * modules/unistdio/u8-asprintf: Likewise.
15889         * modules/unistdio/u8-snprintf: Likewise.
15890         * modules/unistdio/u8-sprintf: Likewise.
15891         * modules/unistdio/u8-u8-asnprintf: Likewise.
15892         * modules/unistdio/u8-u8-asprintf: Likewise.
15893         * modules/unistdio/u8-u8-snprintf: Likewise.
15894         * modules/unistdio/u8-u8-sprintf: Likewise.
15895         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15896         * modules/unistdio/u8-u8-vasprintf: Likewise.
15897         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15898         * modules/unistdio/u8-u8-vsprintf: Likewise.
15899         * modules/unistdio/u8-vasnprintf: Likewise.
15900         * modules/unistdio/u8-vasprintf: Likewise.
15901         * modules/unistdio/u8-vsnprintf: Likewise.
15902         * modules/unistdio/u8-vsprintf: Likewise.
15903         * modules/unistdio/u16-asnprintf: Likewise.
15904         * modules/unistdio/u16-asprintf: Likewise.
15905         * modules/unistdio/u16-snprintf: Likewise.
15906         * modules/unistdio/u16-sprintf: Likewise.
15907         * modules/unistdio/u16-u16-asnprintf: Likewise.
15908         * modules/unistdio/u16-u16-asprintf: Likewise.
15909         * modules/unistdio/u16-u16-snprintf: Likewise.
15910         * modules/unistdio/u16-u16-sprintf: Likewise.
15911         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15912         * modules/unistdio/u16-u16-vasprintf: Likewise.
15913         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15914         * modules/unistdio/u16-u16-vsprintf: Likewise.
15915         * modules/unistdio/u16-vasnprintf: Likewise.
15916         * modules/unistdio/u16-vasprintf: Likewise.
15917         * modules/unistdio/u16-vsnprintf: Likewise.
15918         * modules/unistdio/u16-vsprintf: Likewise.
15919         * modules/unistdio/u32-asnprintf: Likewise.
15920         * modules/unistdio/u32-asprintf: Likewise.
15921         * modules/unistdio/u32-snprintf: Likewise.
15922         * modules/unistdio/u32-sprintf: Likewise.
15923         * modules/unistdio/u32-u32-asnprintf: Likewise.
15924         * modules/unistdio/u32-u32-asprintf: Likewise.
15925         * modules/unistdio/u32-u32-snprintf: Likewise.
15926         * modules/unistdio/u32-u32-sprintf: Likewise.
15927         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15928         * modules/unistdio/u32-u32-vasprintf: Likewise.
15929         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15930         * modules/unistdio/u32-u32-vsprintf: Likewise.
15931         * modules/unistdio/u32-vasnprintf: Likewise.
15932         * modules/unistdio/u32-vasprintf: Likewise.
15933         * modules/unistdio/u32-vsnprintf: Likewise.
15934         * modules/unistdio/u32-vsprintf: Likewise.
15935         * modules/unistdio/ulc-asnprintf: Likewise.
15936         * modules/unistdio/ulc-asprintf: Likewise.
15937         * modules/unistdio/ulc-fprintf: Likewise.
15938         * modules/unistdio/ulc-snprintf: Likewise.
15939         * modules/unistdio/ulc-sprintf: Likewise.
15940         * modules/unistdio/ulc-vasnprintf: Likewise.
15941         * modules/unistdio/ulc-vasprintf: Likewise.
15942         * modules/unistdio/ulc-vfprintf: Likewise.
15943         * modules/unistdio/ulc-vsnprintf: Likewise.
15944         * modules/unistdio/ulc-vsprintf: Likewise.
15945         * modules/unistr/u8-check: Likewise.
15946         * modules/unistr/u8-chr: Likewise.
15947         * modules/unistr/u8-cmp: Likewise.
15948         * modules/unistr/u8-cmp2: Likewise.
15949         * modules/unistr/u8-cpy: Likewise.
15950         * modules/unistr/u8-cpy-alloc: Likewise.
15951         * modules/unistr/u8-endswith: Likewise.
15952         * modules/unistr/u8-mblen: Likewise.
15953         * modules/unistr/u8-mbsnlen: Likewise.
15954         * modules/unistr/u8-mbtouc: Likewise.
15955         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15956         * modules/unistr/u8-mbtoucr: Likewise.
15957         * modules/unistr/u8-move: Likewise.
15958         * modules/unistr/u8-next: Likewise.
15959         * modules/unistr/u8-prev: Likewise.
15960         * modules/unistr/u8-set: Likewise.
15961         * modules/unistr/u8-startswith: Likewise.
15962         * modules/unistr/u8-stpcpy: Likewise.
15963         * modules/unistr/u8-stpncpy: Likewise.
15964         * modules/unistr/u8-strcat: Likewise.
15965         * modules/unistr/u8-strchr: Likewise.
15966         * modules/unistr/u8-strcmp: Likewise.
15967         * modules/unistr/u8-strcoll: Likewise.
15968         * modules/unistr/u8-strcpy: Likewise.
15969         * modules/unistr/u8-strcspn: Likewise.
15970         * modules/unistr/u8-strdup: Likewise.
15971         * modules/unistr/u8-strlen: Likewise.
15972         * modules/unistr/u8-strmblen: Likewise.
15973         * modules/unistr/u8-strmbtouc: Likewise.
15974         * modules/unistr/u8-strncat: Likewise.
15975         * modules/unistr/u8-strncmp: Likewise.
15976         * modules/unistr/u8-strncpy: Likewise.
15977         * modules/unistr/u8-strnlen: Likewise.
15978         * modules/unistr/u8-strpbrk: Likewise.
15979         * modules/unistr/u8-strrchr: Likewise.
15980         * modules/unistr/u8-strspn: Likewise.
15981         * modules/unistr/u8-strstr: Likewise.
15982         * modules/unistr/u8-strtok: Likewise.
15983         * modules/unistr/u8-to-u16: Likewise.
15984         * modules/unistr/u8-to-u32: Likewise.
15985         * modules/unistr/u8-uctomb: Likewise.
15986         * modules/unistr/u16-check: Likewise.
15987         * modules/unistr/u16-chr: Likewise.
15988         * modules/unistr/u16-cmp: Likewise.
15989         * modules/unistr/u16-cmp2: Likewise.
15990         * modules/unistr/u16-cpy: Likewise.
15991         * modules/unistr/u16-cpy-alloc: Likewise.
15992         * modules/unistr/u16-endswith: Likewise.
15993         * modules/unistr/u16-mblen: Likewise.
15994         * modules/unistr/u16-mbsnlen: Likewise.
15995         * modules/unistr/u16-mbtouc: Likewise.
15996         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15997         * modules/unistr/u16-mbtoucr: Likewise.
15998         * modules/unistr/u16-move: Likewise.
15999         * modules/unistr/u16-next: Likewise.
16000         * modules/unistr/u16-prev: Likewise.
16001         * modules/unistr/u16-set: Likewise.
16002         * modules/unistr/u16-startswith: Likewise.
16003         * modules/unistr/u16-stpcpy: Likewise.
16004         * modules/unistr/u16-stpncpy: Likewise.
16005         * modules/unistr/u16-strcat: Likewise.
16006         * modules/unistr/u16-strchr: Likewise.
16007         * modules/unistr/u16-strcmp: Likewise.
16008         * modules/unistr/u16-strcoll: Likewise.
16009         * modules/unistr/u16-strcpy: Likewise.
16010         * modules/unistr/u16-strcspn: Likewise.
16011         * modules/unistr/u16-strdup: Likewise.
16012         * modules/unistr/u16-strlen: Likewise.
16013         * modules/unistr/u16-strmblen: Likewise.
16014         * modules/unistr/u16-strmbtouc: Likewise.
16015         * modules/unistr/u16-strncat: Likewise.
16016         * modules/unistr/u16-strncmp: Likewise.
16017         * modules/unistr/u16-strncpy: Likewise.
16018         * modules/unistr/u16-strnlen: Likewise.
16019         * modules/unistr/u16-strpbrk: Likewise.
16020         * modules/unistr/u16-strrchr: Likewise.
16021         * modules/unistr/u16-strspn: Likewise.
16022         * modules/unistr/u16-strstr: Likewise.
16023         * modules/unistr/u16-strtok: Likewise.
16024         * modules/unistr/u16-to-u32: Likewise.
16025         * modules/unistr/u16-to-u8: Likewise.
16026         * modules/unistr/u16-uctomb: Likewise.
16027         * modules/unistr/u32-check: Likewise.
16028         * modules/unistr/u32-chr: Likewise.
16029         * modules/unistr/u32-cmp: Likewise.
16030         * modules/unistr/u32-cmp2: Likewise.
16031         * modules/unistr/u32-cpy: Likewise.
16032         * modules/unistr/u32-cpy-alloc: Likewise.
16033         * modules/unistr/u32-endswith: Likewise.
16034         * modules/unistr/u32-mblen: Likewise.
16035         * modules/unistr/u32-mbsnlen: Likewise.
16036         * modules/unistr/u32-mbtouc: Likewise.
16037         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16038         * modules/unistr/u32-mbtoucr: Likewise.
16039         * modules/unistr/u32-move: Likewise.
16040         * modules/unistr/u32-next: Likewise.
16041         * modules/unistr/u32-prev: Likewise.
16042         * modules/unistr/u32-set: Likewise.
16043         * modules/unistr/u32-startswith: Likewise.
16044         * modules/unistr/u32-stpcpy: Likewise.
16045         * modules/unistr/u32-stpncpy: Likewise.
16046         * modules/unistr/u32-strcat: Likewise.
16047         * modules/unistr/u32-strchr: Likewise.
16048         * modules/unistr/u32-strcmp: Likewise.
16049         * modules/unistr/u32-strcoll: Likewise.
16050         * modules/unistr/u32-strcpy: Likewise.
16051         * modules/unistr/u32-strcspn: Likewise.
16052         * modules/unistr/u32-strdup: Likewise.
16053         * modules/unistr/u32-strlen: Likewise.
16054         * modules/unistr/u32-strmblen: Likewise.
16055         * modules/unistr/u32-strmbtouc: Likewise.
16056         * modules/unistr/u32-strncat: Likewise.
16057         * modules/unistr/u32-strncmp: Likewise.
16058         * modules/unistr/u32-strncpy: Likewise.
16059         * modules/unistr/u32-strnlen: Likewise.
16060         * modules/unistr/u32-strpbrk: Likewise.
16061         * modules/unistr/u32-strrchr: Likewise.
16062         * modules/unistr/u32-strspn: Likewise.
16063         * modules/unistr/u32-strstr: Likewise.
16064         * modules/unistr/u32-strtok: Likewise.
16065         * modules/unistr/u32-to-u16: Likewise.
16066         * modules/unistr/u32-to-u8: Likewise.
16067         * modules/unistr/u32-uctomb: Likewise.
16068         * modules/uniwbrk/u8-wordbreaks: Likewise.
16069         * modules/uniwbrk/u16-wordbreaks: Likewise.
16070         * modules/uniwbrk/u32-wordbreaks: Likewise.
16071         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16072         * modules/uniwbrk/wordbreak-property: Likewise.
16073         * modules/uniwidth/u8-strwidth: Likewise.
16074         * modules/uniwidth/u8-width: Likewise.
16075         * modules/uniwidth/u16-strwidth: Likewise.
16076         * modules/uniwidth/u16-width: Likewise.
16077         * modules/uniwidth/u32-strwidth: Likewise.
16078         * modules/uniwidth/u32-width: Likewise.
16079         * modules/uniwidth/width: Likewise.
16080         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16081         with $(LIBUNISTRING).
16082         * modules/unicase/ignorable-tests: Likewise.
16083         * modules/unicase/locale-language-tests: Likewise.
16084         * modules/unicase/tolower-tests: Likewise.
16085         * modules/unicase/totitle-tests: Likewise.
16086         * modules/unicase/toupper-tests: Likewise.
16087         * modules/unicase/u8-casecmp-tests: Likewise.
16088         * modules/unicase/u8-casecoll-tests: Likewise.
16089         * modules/unicase/u8-casefold-tests: Likewise.
16090         * modules/unicase/u8-is-cased-tests: Likewise.
16091         * modules/unicase/u8-is-casefolded-tests: Likewise.
16092         * modules/unicase/u8-is-lowercase-tests: Likewise.
16093         * modules/unicase/u8-is-titlecase-tests: Likewise.
16094         * modules/unicase/u8-is-uppercase-tests: Likewise.
16095         * modules/unicase/u8-tolower-tests: Likewise.
16096         * modules/unicase/u8-totitle-tests: Likewise.
16097         * modules/unicase/u8-toupper-tests: Likewise.
16098         * modules/unicase/u16-casecmp-tests: Likewise.
16099         * modules/unicase/u16-casecoll-tests: Likewise.
16100         * modules/unicase/u16-casefold-tests: Likewise.
16101         * modules/unicase/u16-is-cased-tests: Likewise.
16102         * modules/unicase/u16-is-casefolded-tests: Likewise.
16103         * modules/unicase/u16-is-lowercase-tests: Likewise.
16104         * modules/unicase/u16-is-titlecase-tests: Likewise.
16105         * modules/unicase/u16-is-uppercase-tests: Likewise.
16106         * modules/unicase/u16-tolower-tests: Likewise.
16107         * modules/unicase/u16-totitle-tests: Likewise.
16108         * modules/unicase/u16-toupper-tests: Likewise.
16109         * modules/unicase/u32-casecmp-tests: Likewise.
16110         * modules/unicase/u32-casecoll-tests: Likewise.
16111         * modules/unicase/u32-casefold-tests: Likewise.
16112         * modules/unicase/u32-is-cased-tests: Likewise.
16113         * modules/unicase/u32-is-casefolded-tests: Likewise.
16114         * modules/unicase/u32-is-lowercase-tests: Likewise.
16115         * modules/unicase/u32-is-titlecase-tests: Likewise.
16116         * modules/unicase/u32-is-uppercase-tests: Likewise.
16117         * modules/unicase/u32-tolower-tests: Likewise.
16118         * modules/unicase/u32-totitle-tests: Likewise.
16119         * modules/unicase/u32-toupper-tests: Likewise.
16120         * modules/unicase/ulc-casecmp-tests: Likewise.
16121         * modules/unicase/ulc-casecoll-tests: Likewise.
16122         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16123         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16124         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16125         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16126         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16127         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16128         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16129         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16130         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16131         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16132         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16133         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16134         * modules/unictype/bidicategory-byname-tests: Likewise.
16135         * modules/unictype/bidicategory-name-tests: Likewise.
16136         * modules/unictype/bidicategory-of-tests: Likewise.
16137         * modules/unictype/bidicategory-test-tests: Likewise.
16138         * modules/unictype/block-list-tests: Likewise.
16139         * modules/unictype/block-of-tests: Likewise.
16140         * modules/unictype/block-test-tests: Likewise.
16141         * modules/unictype/category-C-tests: Likewise.
16142         * modules/unictype/category-Cc-tests: Likewise.
16143         * modules/unictype/category-Cf-tests: Likewise.
16144         * modules/unictype/category-Cn-tests: Likewise.
16145         * modules/unictype/category-Co-tests: Likewise.
16146         * modules/unictype/category-Cs-tests: Likewise.
16147         * modules/unictype/category-L-tests: Likewise.
16148         * modules/unictype/category-Ll-tests: Likewise.
16149         * modules/unictype/category-Lm-tests: Likewise.
16150         * modules/unictype/category-Lo-tests: Likewise.
16151         * modules/unictype/category-Lt-tests: Likewise.
16152         * modules/unictype/category-Lu-tests: Likewise.
16153         * modules/unictype/category-M-tests: Likewise.
16154         * modules/unictype/category-Mc-tests: Likewise.
16155         * modules/unictype/category-Me-tests: Likewise.
16156         * modules/unictype/category-Mn-tests: Likewise.
16157         * modules/unictype/category-N-tests: Likewise.
16158         * modules/unictype/category-Nd-tests: Likewise.
16159         * modules/unictype/category-Nl-tests: Likewise.
16160         * modules/unictype/category-No-tests: Likewise.
16161         * modules/unictype/category-P-tests: Likewise.
16162         * modules/unictype/category-Pc-tests: Likewise.
16163         * modules/unictype/category-Pd-tests: Likewise.
16164         * modules/unictype/category-Pe-tests: Likewise.
16165         * modules/unictype/category-Pf-tests: Likewise.
16166         * modules/unictype/category-Pi-tests: Likewise.
16167         * modules/unictype/category-Po-tests: Likewise.
16168         * modules/unictype/category-Ps-tests: Likewise.
16169         * modules/unictype/category-S-tests: Likewise.
16170         * modules/unictype/category-Sc-tests: Likewise.
16171         * modules/unictype/category-Sk-tests: Likewise.
16172         * modules/unictype/category-Sm-tests: Likewise.
16173         * modules/unictype/category-So-tests: Likewise.
16174         * modules/unictype/category-Z-tests: Likewise.
16175         * modules/unictype/category-Zl-tests: Likewise.
16176         * modules/unictype/category-Zp-tests: Likewise.
16177         * modules/unictype/category-Zs-tests: Likewise.
16178         * modules/unictype/category-and-not-tests: Likewise.
16179         * modules/unictype/category-and-tests: Likewise.
16180         * modules/unictype/category-byname-tests: Likewise.
16181         * modules/unictype/category-name-tests: Likewise.
16182         * modules/unictype/category-none-tests: Likewise.
16183         * modules/unictype/category-of-tests: Likewise.
16184         * modules/unictype/category-or-tests: Likewise.
16185         * modules/unictype/category-test-withtable-tests: Likewise.
16186         * modules/unictype/combining-class-tests: Likewise.
16187         * modules/unictype/ctype-alnum-tests: Likewise.
16188         * modules/unictype/ctype-alpha-tests: Likewise.
16189         * modules/unictype/ctype-blank-tests: Likewise.
16190         * modules/unictype/ctype-cntrl-tests: Likewise.
16191         * modules/unictype/ctype-digit-tests: Likewise.
16192         * modules/unictype/ctype-graph-tests: Likewise.
16193         * modules/unictype/ctype-lower-tests: Likewise.
16194         * modules/unictype/ctype-print-tests: Likewise.
16195         * modules/unictype/ctype-punct-tests: Likewise.
16196         * modules/unictype/ctype-space-tests: Likewise.
16197         * modules/unictype/ctype-upper-tests: Likewise.
16198         * modules/unictype/ctype-xdigit-tests: Likewise.
16199         * modules/unictype/decimal-digit-tests: Likewise.
16200         * modules/unictype/digit-tests: Likewise.
16201         * modules/unictype/mirror-tests: Likewise.
16202         * modules/unictype/numeric-tests: Likewise.
16203         * modules/unictype/property-alphabetic-tests: Likewise.
16204         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16205         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16206         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16207         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16208         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16209         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16210         * modules/unictype/property-bidi-control-tests: Likewise.
16211         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16212         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16213         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16214         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16215         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16216         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16217         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16218         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16219         * modules/unictype/property-bidi-pdf-tests: Likewise.
16220         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16221         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16222         * modules/unictype/property-byname-tests: Likewise.
16223         * modules/unictype/property-combining-tests: Likewise.
16224         * modules/unictype/property-composite-tests: Likewise.
16225         * modules/unictype/property-currency-symbol-tests: Likewise.
16226         * modules/unictype/property-dash-tests: Likewise.
16227         * modules/unictype/property-decimal-digit-tests: Likewise.
16228         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16229         * modules/unictype/property-deprecated-tests: Likewise.
16230         * modules/unictype/property-diacritic-tests: Likewise.
16231         * modules/unictype/property-extender-tests: Likewise.
16232         * modules/unictype/property-format-control-tests: Likewise.
16233         * modules/unictype/property-grapheme-base-tests: Likewise.
16234         * modules/unictype/property-grapheme-extend-tests: Likewise.
16235         * modules/unictype/property-grapheme-link-tests: Likewise.
16236         * modules/unictype/property-hex-digit-tests: Likewise.
16237         * modules/unictype/property-hyphen-tests: Likewise.
16238         * modules/unictype/property-id-continue-tests: Likewise.
16239         * modules/unictype/property-id-start-tests: Likewise.
16240         * modules/unictype/property-ideographic-tests: Likewise.
16241         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16242         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16243         * modules/unictype/property-ignorable-control-tests: Likewise.
16244         * modules/unictype/property-iso-control-tests: Likewise.
16245         * modules/unictype/property-join-control-tests: Likewise.
16246         * modules/unictype/property-left-of-pair-tests: Likewise.
16247         * modules/unictype/property-line-separator-tests: Likewise.
16248         * modules/unictype/property-logical-order-exception-tests: Likewise.
16249         * modules/unictype/property-lowercase-tests: Likewise.
16250         * modules/unictype/property-math-tests: Likewise.
16251         * modules/unictype/property-non-break-tests: Likewise.
16252         * modules/unictype/property-not-a-character-tests: Likewise.
16253         * modules/unictype/property-numeric-tests: Likewise.
16254         * modules/unictype/property-other-alphabetic-tests: Likewise.
16255         * modules/unictype/property-other-default-ignorable-code-point-tests:
16256         Likewise.
16257         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16258         * modules/unictype/property-other-id-continue-tests: Likewise.
16259         * modules/unictype/property-other-id-start-tests: Likewise.
16260         * modules/unictype/property-other-lowercase-tests: Likewise.
16261         * modules/unictype/property-other-math-tests: Likewise.
16262         * modules/unictype/property-other-uppercase-tests: Likewise.
16263         * modules/unictype/property-paired-punctuation-tests: Likewise.
16264         * modules/unictype/property-paragraph-separator-tests: Likewise.
16265         * modules/unictype/property-pattern-syntax-tests: Likewise.
16266         * modules/unictype/property-pattern-white-space-tests: Likewise.
16267         * modules/unictype/property-private-use-tests: Likewise.
16268         * modules/unictype/property-punctuation-tests: Likewise.
16269         * modules/unictype/property-quotation-mark-tests: Likewise.
16270         * modules/unictype/property-radical-tests: Likewise.
16271         * modules/unictype/property-sentence-terminal-tests: Likewise.
16272         * modules/unictype/property-soft-dotted-tests: Likewise.
16273         * modules/unictype/property-space-tests: Likewise.
16274         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16275         * modules/unictype/property-test-tests: Likewise.
16276         * modules/unictype/property-titlecase-tests: Likewise.
16277         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16278         * modules/unictype/property-unified-ideograph-tests: Likewise.
16279         * modules/unictype/property-uppercase-tests: Likewise.
16280         * modules/unictype/property-variation-selector-tests: Likewise.
16281         * modules/unictype/property-white-space-tests: Likewise.
16282         * modules/unictype/property-xid-continue-tests: Likewise.
16283         * modules/unictype/property-xid-start-tests: Likewise.
16284         * modules/unictype/property-zero-width-tests: Likewise.
16285         * modules/unictype/scripts-tests: Likewise.
16286         * modules/unictype/syntax-c-ident-tests: Likewise.
16287         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16288         * modules/unictype/syntax-java-ident-tests: Likewise.
16289         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16290         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16291         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16292         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16293         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16294         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16295         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16296         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16297         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16298         * modules/uniname/uniname-tests: Likewise.
16299         * modules/uninorm/canonical-decomposition-tests: Likewise.
16300         * modules/uninorm/compat-decomposition-tests: Likewise.
16301         * modules/uninorm/composition-tests: Likewise.
16302         * modules/uninorm/decomposing-form-tests: Likewise.
16303         * modules/uninorm/decomposition-tests: Likewise.
16304         * modules/uninorm/filter-tests: Likewise.
16305         * modules/uninorm/nfc-tests: Likewise.
16306         * modules/uninorm/nfd-tests: Likewise.
16307         * modules/uninorm/nfkc-tests: Likewise.
16308         * modules/uninorm/nfkd-tests: Likewise.
16309         * modules/uninorm/u8-normcmp-tests: Likewise.
16310         * modules/uninorm/u8-normcoll-tests: Likewise.
16311         * modules/uninorm/u16-normcmp-tests: Likewise.
16312         * modules/uninorm/u16-normcoll-tests: Likewise.
16313         * modules/uninorm/u32-normcmp-tests: Likewise.
16314         * modules/uninorm/u32-normcoll-tests: Likewise.
16315         * modules/unistdio/u8-asnprintf-tests: Likewise.
16316         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16317         * modules/unistdio/u8-vasprintf-tests: Likewise.
16318         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16319         * modules/unistdio/u8-vsprintf-tests: Likewise.
16320         * modules/unistdio/u16-asnprintf-tests: Likewise.
16321         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16322         * modules/unistdio/u16-vasprintf-tests: Likewise.
16323         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16324         * modules/unistdio/u16-vsprintf-tests: Likewise.
16325         * modules/unistdio/u32-asnprintf-tests: Likewise.
16326         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16327         * modules/unistdio/u32-vasprintf-tests: Likewise.
16328         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16329         * modules/unistdio/u32-vsprintf-tests: Likewise.
16330         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16331         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16332         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16333         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16334         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16335         * modules/unistr/u8-check-tests: Likewise.
16336         * modules/unistr/u8-chr-tests: Likewise.
16337         * modules/unistr/u8-cmp-tests: Likewise.
16338         * modules/unistr/u8-cmp2-tests: Likewise.
16339         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16340         * modules/unistr/u8-cpy-tests: Likewise.
16341         * modules/unistr/u8-mblen-tests: Likewise.
16342         * modules/unistr/u8-mbsnlen-tests: Likewise.
16343         * modules/unistr/u8-mbtouc-tests: Likewise.
16344         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16345         * modules/unistr/u8-mbtoucr-tests: Likewise.
16346         * modules/unistr/u8-move-tests: Likewise.
16347         * modules/unistr/u8-next-tests: Likewise.
16348         * modules/unistr/u8-prev-tests: Likewise.
16349         * modules/unistr/u8-set-tests: Likewise.
16350         * modules/unistr/u8-stpcpy-tests: Likewise.
16351         * modules/unistr/u8-stpncpy-tests: Likewise.
16352         * modules/unistr/u8-strcat-tests: Likewise.
16353         * modules/unistr/u8-strcmp-tests: Likewise.
16354         * modules/unistr/u8-strcoll-tests: Likewise.
16355         * modules/unistr/u8-strcpy-tests: Likewise.
16356         * modules/unistr/u8-strdup-tests: Likewise.
16357         * modules/unistr/u8-strlen-tests: Likewise.
16358         * modules/unistr/u8-strmblen-tests: Likewise.
16359         * modules/unistr/u8-strmbtouc-tests: Likewise.
16360         * modules/unistr/u8-strncat-tests: Likewise.
16361         * modules/unistr/u8-strncmp-tests: Likewise.
16362         * modules/unistr/u8-strncpy-tests: Likewise.
16363         * modules/unistr/u8-strnlen-tests: Likewise.
16364         * modules/unistr/u8-to-u16-tests: Likewise.
16365         * modules/unistr/u8-to-u32-tests: Likewise.
16366         * modules/unistr/u8-uctomb-tests: Likewise.
16367         * modules/unistr/u16-check-tests: Likewise.
16368         * modules/unistr/u16-chr-tests: Likewise.
16369         * modules/unistr/u16-cmp-tests: Likewise.
16370         * modules/unistr/u16-cmp2-tests: Likewise.
16371         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16372         * modules/unistr/u16-cpy-tests: Likewise.
16373         * modules/unistr/u16-mblen-tests: Likewise.
16374         * modules/unistr/u16-mbsnlen-tests: Likewise.
16375         * modules/unistr/u16-mbtouc-tests: Likewise.
16376         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16377         * modules/unistr/u16-mbtoucr-tests: Likewise.
16378         * modules/unistr/u16-move-tests: Likewise.
16379         * modules/unistr/u16-next-tests: Likewise.
16380         * modules/unistr/u16-prev-tests: Likewise.
16381         * modules/unistr/u16-set-tests: Likewise.
16382         * modules/unistr/u16-stpcpy-tests: Likewise.
16383         * modules/unistr/u16-stpncpy-tests: Likewise.
16384         * modules/unistr/u16-strcat-tests: Likewise.
16385         * modules/unistr/u16-strcmp-tests: Likewise.
16386         * modules/unistr/u16-strcoll-tests: Likewise.
16387         * modules/unistr/u16-strcpy-tests: Likewise.
16388         * modules/unistr/u16-strdup-tests: Likewise.
16389         * modules/unistr/u16-strlen-tests: Likewise.
16390         * modules/unistr/u16-strmblen-tests: Likewise.
16391         * modules/unistr/u16-strmbtouc-tests: Likewise.
16392         * modules/unistr/u16-strncat-tests: Likewise.
16393         * modules/unistr/u16-strncmp-tests: Likewise.
16394         * modules/unistr/u16-strncpy-tests: Likewise.
16395         * modules/unistr/u16-strnlen-tests: Likewise.
16396         * modules/unistr/u16-to-u32-tests: Likewise.
16397         * modules/unistr/u16-to-u8-tests: Likewise.
16398         * modules/unistr/u16-uctomb-tests: Likewise.
16399         * modules/unistr/u32-check-tests: Likewise.
16400         * modules/unistr/u32-chr-tests: Likewise.
16401         * modules/unistr/u32-cmp-tests: Likewise.
16402         * modules/unistr/u32-cmp2-tests: Likewise.
16403         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16404         * modules/unistr/u32-cpy-tests: Likewise.
16405         * modules/unistr/u32-mblen-tests: Likewise.
16406         * modules/unistr/u32-mbsnlen-tests: Likewise.
16407         * modules/unistr/u32-mbtouc-tests: Likewise.
16408         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16409         * modules/unistr/u32-mbtoucr-tests: Likewise.
16410         * modules/unistr/u32-move-tests: Likewise.
16411         * modules/unistr/u32-next-tests: Likewise.
16412         * modules/unistr/u32-prev-tests: Likewise.
16413         * modules/unistr/u32-set-tests: Likewise.
16414         * modules/unistr/u32-stpcpy-tests: Likewise.
16415         * modules/unistr/u32-stpncpy-tests: Likewise.
16416         * modules/unistr/u32-strcat-tests: Likewise.
16417         * modules/unistr/u32-strcmp-tests: Likewise.
16418         * modules/unistr/u32-strcoll-tests: Likewise.
16419         * modules/unistr/u32-strcpy-tests: Likewise.
16420         * modules/unistr/u32-strdup-tests: Likewise.
16421         * modules/unistr/u32-strlen-tests: Likewise.
16422         * modules/unistr/u32-strmblen-tests: Likewise.
16423         * modules/unistr/u32-strmbtouc-tests: Likewise.
16424         * modules/unistr/u32-strncat-tests: Likewise.
16425         * modules/unistr/u32-strncmp-tests: Likewise.
16426         * modules/unistr/u32-strncpy-tests: Likewise.
16427         * modules/unistr/u32-strnlen-tests: Likewise.
16428         * modules/unistr/u32-to-u16-tests: Likewise.
16429         * modules/unistr/u32-to-u8-tests: Likewise.
16430         * modules/unistr/u32-uctomb-tests: Likewise.
16431         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16432         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16433         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16434         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16435         * modules/uniwidth/u8-strwidth-tests: Likewise.
16436         * modules/uniwidth/u8-width-tests: Likewise.
16437         * modules/uniwidth/u16-strwidth-tests: Likewise.
16438         * modules/uniwidth/u16-width-tests: Likewise.
16439         * modules/uniwidth/u32-strwidth-tests: Likewise.
16440         * modules/uniwidth/u32-width-tests: Likewise.
16441         * modules/uniwidth/width-tests: Likewise.
16442
16443 2010-05-18  Richard Jones  <rjones@redhat.com>
16444
16445         doc: users.txt: list hivex
16446         * users.txt: Add hivex.
16447
16448 2010-05-18  Richard Jones  <rjones@redhat.com>
16449
16450         doc: users.txt: list febootstrap
16451         * users.txt: Add febootstrap.
16452
16453 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16454
16455         bootstrap: fix an error when gnulib is not used as a git submodule
16456         * build-aux/bootstrap (gnulib_path): If its length is zero then
16457         assign "gnulib" to it.
16458         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16459
16460 2010-05-16  Bruno Haible  <bruno@clisp.org>
16461
16462         Avoid autoconf warnings about AM_ICONV.
16463         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16464         2.64.
16465
16466 2010-05-16  Bruno Haible  <bruno@clisp.org>
16467
16468         absolute-header: Make the macro usable in more situations.
16469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16470         from gl_ABSOLUTE_HEADER.
16471         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16472
16473 2010-05-16  James Youngman  <jay@gnu.org>
16474
16475         doc: update users.txt
16476         * users.txt: Add CSSC.
16477
16478 2010-05-16  Jim Meyering  <meyering@redhat.com>
16479
16480         init.sh: fix an error in the previous change; add more comments
16481         * tests/init.sh: Compare exit code in loop against 9, not 2.
16482         Patch by Bruno Haible.
16483         Make the two tests more similar by adding an empty "then" clause.
16484         Add comments.
16485
16486         init.sh: avoid unnecessary shell re-exec
16487         * tests/init.sh: Improve the re-exec-required check to first test the
16488         current shell.  If it passes the test, do not search for a shell that
16489         does pass, and do not re-exec.  This test is particularly contorted to
16490         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16491         of $(...) evokes a syntax error and causes immediate shell exit with
16492         status 2.  Bruno Haible reported that the re-exec made it impossible
16493         to single-step through any init.sh-using script.
16494
16495 2010-05-16  Bruno Haible  <bruno@clisp.org>
16496
16497         Fix collision between gnulib's and libintl's printf replacements.
16498         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16499         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16500         (printf): When using GNU C, map the __printf__ function to rpl_printf
16501         via __asm__. When not using GNU C, define rpl_printf instead of
16502         __printf__.
16503         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16504         commit.
16505         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16506         commit.
16507         * m4/asm-underscore.m4: New file.
16508         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16509         * modules/stdio (Files): Add m4/asm-underscore.m4.
16510         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16511         Reported by Ben Pfaff.
16512
16513 2010-05-16  Bruno Haible  <bruno@clisp.org>
16514
16515         verify: Avoid skipping the test on openSUSE 11.0.
16516         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16517
16518 2010-05-13  Bruno Haible  <bruno@clisp.org>
16519
16520         Avoid useless warnings from G++.
16521         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16522         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16523         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16524
16525 2010-05-11  Jim Meyering  <meyering@redhat.com>
16526
16527         maint.mk: tweak preceding change
16528         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16529         regexps tighter by anchoring at EOL, and make the new group "shy"
16530         for slightly decreased overhead.
16531
16532 2010-05-11  Eric Blake  <eblake@redhat.com>
16533
16534         maint.mk: gnulib doesn't guarantee NSIG
16535         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16536
16537 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16538
16539         test-pwrite.c: Remove unused variable declaration.
16540         * tests/test-pwrite.c (main): Remove read_buf declaration.
16541
16542         Remove useless test-pwrite.sh file.
16543         * tests/test-pwrite.sh: Delete file.
16544         * modules/pwrite-tests: Remove references.
16545         Reported by Bruno Haible.
16546
16547 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16548
16549         init.sh: fix a typo
16550         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16551
16552 2010-05-10  Jim Meyering  <meyering@redhat.com>
16553
16554         maint.mk: avoid using a temporary file in the always-defined-macros check
16555         * top/maint.mk (.re-defmac): Remove rule.
16556         (gl_trap_): Remove definition.
16557         (sc_prohibit_always-defined_macros): Rewrite not to create and
16558         depend on a temporary file.  Instead, depend on GNU grep's ability
16559         to read a list of regular expressions from stdin when given "-f -".
16560
16561 2010-05-09  Bruno Haible  <bruno@clisp.org>
16562
16563         Update to GNU gettext 0.18, part 1.
16564         * m4/gettext.m4: Update to GNU gettext 0.18.
16565         * m4/intl.m4: Likewise.
16566         * m4/po.m4: Likewise.
16567         * modules/gettext (Files): Add m4/fcntl-o.m4.
16568         (configure.ac): Require gettext infrastructure from version 0.18.
16569
16570 2010-05-09  Jim Meyering  <meyering@redhat.com>
16571
16572         init.sh: enable MALLOC_PERTURB_
16573         * tests/init.sh: Enable glibc's malloc-perturbing option.
16574
16575         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16576         With my recent change in init.sh from the two-line form:
16577             -#   : ${srcdir=.}
16578             -#   . "$srcdir/init.sh"; path_prepend_ .
16579             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16580         I noticed that using the one-line form would cause this test
16581         to fail with a false-positive, or to stop working altogether,
16582         depending on whether help-version changed or all the tests did.
16583         * top/maint.mk (_hv_regex): Remove this definition.
16584         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16585         (_hv_regex_strong): Use a stronger regex to check for conformance.
16586         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16587         Give a separate diagnostic for lack of conforming use.
16588
16589         maint.mk: prohibit definition of symbols defined by gnulib
16590         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16591         definition of symbols defined by gnulib.
16592
16593 2010-05-09  Bruno Haible  <bruno@clisp.org>
16594
16595         acl: Avoid test failure on Cygwin-hosted mingw.
16596         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16597
16598 2010-05-09  Bruno Haible  <bruno@clisp.org>
16599
16600         error: Use system's fcntl function.
16601         * lib/error.c (fcntl): Undefine.
16602
16603 2010-05-09  Jim Meyering  <meyering@redhat.com>
16604
16605         verify: adjust formatting to be more consistent
16606         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16607         argument-list '('s, and after one comma.
16608
16609 2010-05-09  Bruno Haible  <bruno@clisp.org>
16610
16611         error: More reliable output on mingw.
16612         * lib/error.c: Include <windows.h>.
16613         (is_open): New function.
16614         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16615         defined.
16616
16617 2010-05-09  Bruno Haible  <bruno@clisp.org>
16618
16619         vasnprintf: Fix syntax errors in libintl build on mingw.
16620         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16621         pad_ourselves and prec_ourselves after use.
16622
16623 2010-05-08  Bruno Haible  <bruno@clisp.org>
16624
16625         * lib/config.charset: Update comments for Cygwin 1.7.
16626         * lib/localcharset.c: Likewise.
16627
16628 2010-05-07  Jim Meyering  <meyering@redhat.com>
16629
16630         init.sh: improve comments
16631         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16632         . "${srcdir=.}/init.sh"; path_prepend_ .
16633         Add a note about path_prepend_ and the alternative of using
16634         TESTS_ENVIRONMENT.
16635
16636 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16637
16638         exclude: Unescape hashed patterns in wildcard mode.
16639         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16640         to the hash list.
16641         * tests/test-exclude8.sh: New test case.
16642         * modules/exclude-tests: Add new test.
16643
16644 2010-05-05  Eric Blake  <eblake@redhat.com>
16645
16646         verify: automate tests
16647         * modules/verify-tests: New module.
16648         * tests/test-verify.sh: New file.
16649         * tests/test-verify.c: Guard each negative test with a unique id.
16650         Also avoid warning about unused left hand of comma expressions.
16651
16652 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16653
16654         Further improvements to verify.h, suggested by Eric Blake.
16655         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16656         the GL_* versions, to avoid collision with OpenGL.
16657         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16658         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16659         than testing merely whether it's defined.
16660
16661         Modify verify.h to pacify gcc -Wredundant_decls.
16662         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16663         These use the prefix "GL_" since they're likely to be useful elsewhere.
16664         We may need to break them out into a different .h file.
16665         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16666         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16667         of verify_function__.
16668
16669 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16670
16671         Tests for module pwrite.
16672         * modules/pwrite-tests: New file.
16673         * tests/test-pwrite.sh: New file.
16674         * tests/test-pwrite.c: New file.
16675
16676         New module pwrite.
16677         * lib/unistd.in.h (pwrite): New declaration.
16678         * lib/pwrite.c: New file, from glibc with modifications.
16679         * m4/pwrite.m4: New file.
16680         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16681         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16682         REPLACE_PWRITE.
16683         * modules/pwrite: New file.
16684         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16685         REPLACE_PWRITE.
16686         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16687         * doc/posix-functions/pwrite.texi: Mention the new module.
16688
16689 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16690
16691         pread: Update documentation.
16692         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16693
16694 2010-05-04  Eric Blake  <eblake@redhat.com>
16695
16696         docs: update cygwin progress
16697         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16698         this bug.
16699         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16700         Added in cygwin 1.7.2.
16701         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16702         Likewise.
16703         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16704         Likewise.
16705         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16706         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16707         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16708         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16709         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16710         Mention nproc module.
16711         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16712         bug in cygwin 1.7.5 addition.
16713         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16714         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16715         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16716         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16717         1.7.5.
16718         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16719         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16720         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16721         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16722         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16723         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16724         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16725         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16726         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16727         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16728         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16729         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16730         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16731         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16732         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16733         Likewise.
16734         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16735         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16736         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16737         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16738         Likewise.
16739         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16740         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16741         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16742         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16743         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16744         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16745         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16746         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16747         Likewise.
16748         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16749         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16750         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16751         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16752         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16753         Likewise.
16754         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16755         Likewise.
16756         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16757         Likewise.
16758         * doc/glibc-functions/xdrrec_endofrecord.texi
16759         (xdrrec_endofrecord): Likewise.
16760         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16761         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16762         Likewise.
16763         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16764         Likewise.
16765
16766 2010-05-04  Jim Meyering  <meyering@redhat.com>
16767
16768         gendocs.sh: make its "-s FILE" option more useful
16769         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16770         $PACKAGE to reflect the probably-different basename of "FILE".
16771
16772 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16773
16774         bootstrap: don't ignore download_po_files failure
16775         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16776         failure.
16777
16778 2010-05-03  Jim Meyering  <meyering@redhat.com>
16779
16780         maint.mk: allow to pass options to gendocs.sh
16781         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16782         (gendocs_options_): New overridable variable.
16783
16784         gnu-web-doc-update: don't ignore configure or build failure
16785         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16786
16787         announce-gen: backslash-escape '@'s in --help output
16788         * build-aux/announce-gen: Fix syntax errors.
16789
16790         maint.mk, announce-gen: allow project-specific announcement mail headers
16791         * top/maint.mk (translation_project_): Define default.
16792         (announcement_Cc_, announcement_mail_headers_): Likewise.
16793         (announcement): Invoke announce-gen with new --mail-headers option.
16794         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16795
16796         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16797         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16798         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16799         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16800         line in the "err2" output file when running "make check" in verbose
16801         mode (i.e., with set -x enabled).
16802
16803 2010-05-03  Bruno Haible  <bruno@clisp.org>
16804
16805         wctob: Fix for weird platforms.
16806         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16807         argument value.
16808
16809 2010-05-03  Jim Meyering  <meyering@redhat.com>
16810
16811         maint.mk: prohibit unwarranted use of <strings.h>
16812         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16813         strings.h in a file that does not also use strcasecmp, strncasecmp,
16814         ffs or ffsll.
16815
16816         maint.mk: remove obsolete comments
16817         * top/maint.mk: Remove stale, commented-out rules.
16818
16819 2010-05-02  Bruno Haible  <bruno@clisp.org>
16820
16821         wcwidth: Declare also when it's aliased.
16822         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16823         macro.
16824
16825 2010-05-02  Bruno Haible  <bruno@clisp.org>
16826
16827         Fix regression from 2010-04-25.
16828         * gnulib-tool (func_modules_transitive_closure): Check the status of
16829         all modules, not only of the tests that are of the form foo-tests where
16830         foo is a module.
16831
16832 2010-05-02  Bruno Haible  <bruno@clisp.org>
16833
16834         wctob: Work around nasty Cygwin 1.7.2 bug.
16835         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16836         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16837
16838 2010-05-01  Bruno Haible  <bruno@clisp.org>
16839
16840         fpurge: Sharper test.
16841         * tests/test-fpurge.c (main): Add one more ftell check.
16842         * modules/fpurge-tests (Depends-on): Add ftell.
16843         Suggested by Eric Blake.
16844
16845 2010-05-01  Bruno Haible  <bruno@clisp.org>
16846
16847         ftello: Another test.
16848         * tests/test-ftello3.c: New file.
16849         * modules/ftello-tests (Files): Add it.
16850         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16851         MOSTLYCLEANFILES.
16852
16853         ftell: Another test.
16854         * tests/test-ftell3.c: New file.
16855         * modules/ftell-tests (Files): Add it.
16856         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16857         MOSTLYCLEANFILES.
16858
16859 2010-05-01  Bruno Haible  <bruno@clisp.org>
16860
16861         ftell, ftello: Work around Solaris bug.
16862         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16863         * lib/ftello.c: Include stdio-impl.h.
16864         (ftello): On Solaris, when _IOWRT is set, compute the result without
16865         looking at _IOREAD.
16866         * modules/ftello (Files): Add lib/stdio-impl.h.
16867         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16868         * doc/posix-functions/ftello.texi: Likewise.
16869         Reported by Eric Blake.
16870
16871 2010-05-01  Bruno Haible  <bruno@clisp.org>
16872
16873         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16874         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16875         the _IOWRT flag is also set.
16876
16877 2010-05-01  Bruno Haible  <bruno@clisp.org>
16878
16879         Fix doc about a HP-UX stdio bug.
16880         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16881         * doc/posix-functions/ftello.texi: Likewise.
16882
16883 2010-05-01  Bruno Haible  <bruno@clisp.org>
16884
16885         lseek test: Fix failure on Solaris.
16886         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16887         output.
16888
16889 2010-04-30  Jim Meyering  <meyering@redhat.com>
16890
16891         bootstrap: don't ignore failure to generate po*/Makevars
16892         * build-aux/bootstrap (with_gettext): Don't ignore failure
16893         to create po/Makevars or runtime-po/Makevars.
16894
16895 2010-04-29  Eric Blake  <eblake@redhat.com>
16896
16897         headers: relax license to LGPLv2+
16898         * modules/fcntl-h (License): Relax license.
16899         * modules/getopt-posix (License): Likewise.
16900         * modules/locale (License): Likewise.
16901         * modules/math (License): Likewise.
16902         * modules/pty (License): Likewise.
16903         * modules/sched (License): Likewise.
16904         * modules/search (License): Likewise.
16905         * modules/spawn (License): Likewise.
16906         * modules/stdarg (License): Likewise.
16907         * modules/sysexits (License): Likewise.
16908
16909 2010-04-29  Jim Meyering  <meyering@redhat.com>
16910
16911         inttypes: relax license to LGPLv2+
16912         * modules/inttypes (License): Relax license.
16913
16914 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16915
16916         * top/maint.mk (indent): Run twice to produce idempotent results.
16917
16918 2010-04-28  Bruno Haible  <bruno@clisp.org>
16919
16920         getdate: Generate getdate.c in the source directory.
16921         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16922         MOSTLYCLEANFILES.
16923         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16924
16925 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16926
16927         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16928         is not declared as a const *; avoid warnings in that case.
16929
16930 2010-04-28  Eric Blake  <eblake@redhat.com>
16931
16932         canonicalize-lgpl: avoid compiler warning
16933         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16934         declaration' / 'extraneous semicolon' warning with some compilers.
16935         Reported by Andreas Gruenbacher.
16936
16937 2010-04-28  Jim Meyering  <meyering@redhat.com>
16938
16939         init.sh: ensure a more reliable exit status when exiting via trap
16940         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16941         Inspired by patches from Dmitry V. Levin.
16942         Also trap on signal 3 (SIGQUIT).
16943
16944 2010-04-27  Bruno Haible  <bruno@clisp.org>
16945
16946         Update doc about utimes().
16947         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16948         'utimens' module.
16949         Reported by Andreas Gruenbacher <agruen@suse.de>.
16950
16951 2010-04-27  Eric Blake  <eblake@redhat.com>
16952
16953         full-read, full-write: relax license
16954         * modules/full-read (License): Drop to LGPLv2+.
16955         * modules/full-write (License): Likewise.
16956         * modules/safe-read (License): Likewise.
16957         * modules/safe-write (License): Likewise.
16958
16959         pthread: mention library for linking
16960         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16961
16962 2010-04-27  Jim Meyering  <meyering@redhat.com>
16963
16964         maint.mk: fix a bug introduced in last change
16965         * top/maint.mk (gl_assured_headers_): Now that all names are on
16966         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16967         is not anchored to end of word, it should be adequate.
16968
16969         maint.mk: avoid side-effect in latest syntax-check
16970         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16971         to run commands via $(shell...), and hence to incur cost only when
16972         the new rule is actually run.
16973
16974         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16975         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16976         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16977         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16978         (gl_assured_headers_, az_, AZ_): Define.
16979         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16980
16981 2010-04-26  Jim Meyering  <jim@meyering.net>
16982             Bruno Haible  <bruno@clisp.org>
16983
16984         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16985         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16986         Prompted by an exchange with Gilles Espinasse.
16987
16988 2010-04-26  Jim Meyering  <meyering@redhat.com>
16989
16990         git-version-gen: aesthetic tweak
16991         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16992         so that the command remains on a single line.
16993
16994 2010-04-26  Eric Blake  <eblake@redhat.com>
16995
16996         git-version-gen: allow use on EBCDIC hosts
16997         * build-aux/git-version-gen (dirty): Use literal rather than tying
16998         ourselves to ascii.
16999         Reported by Steve Goetze.
17000
17001 2010-04-25  Bruno Haible  <bruno@clisp.org>
17002
17003         netdb: Add support for GNULIB_POSIXCHECK.
17004         * lib/netdb.in.h: Include warn-on-use.h.
17005         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17006         functions are used when GNULIB_POSIXCHECK is defined and the
17007         getaddrinfo module is not in use.
17008         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17009         freeaddrinfo, gai_strerror, getnameinfo are declared.
17010         * modules/netdb (Depends-on): Add warn-on-use.
17011         (Makefile.am): Include warn-on-use.h in netdb.h.
17012
17013 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17014
17015         build: avoid "make check" failure without .git/ directory
17016         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17017         there is no .git/ directory.
17018
17019 2010-04-25  Bruno Haible  <bruno@clisp.org>
17020
17021         ptsname: Fix misuse of ttyname_r.
17022         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17023         of errno.
17024
17025 2010-04-25  Bruno Haible  <bruno@clisp.org>
17026
17027         ttyname_r: Make it work on Solaris 10.
17028         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17029         if the system function has the POSIX declaration. Test whether the
17030         function fails if the buffer is less than 128 bytes large.
17031         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17032         system's ttyname_r function. Provide a reasonably large buffer.
17033         * modules/ttyname_r (Depends-on): Add extensions.
17034         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17035
17036 2010-04-25  Bruno Haible  <bruno@clisp.org>
17037
17038         Use the 'extensions' module for some more functions on Solaris.
17039         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17040         module.
17041         * doc/posix-functions/ctime_r.texi: Likewise.
17042         * doc/posix-functions/getgrgid_r.texi: Likewise.
17043         * doc/posix-functions/getgrnam_r.texi: Likewise.
17044         * doc/posix-functions/getpwnam_r.texi: Likewise.
17045         * doc/posix-functions/getpwuid_r.texi: Likewise.
17046         * doc/posix-functions/readdir_r.texi: Likewise.
17047         * doc/posix-functions/sigwait.texi: Likewise.
17048         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17049         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17050
17051 2010-04-25  Bruno Haible  <bruno@clisp.org>
17052
17053         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17054         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17055         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17056         * lib/ttyname_r.c: Include <limits.h>.
17057         (ttyname_r): Define using the system's ttyname_r function, if it exists
17058         and not on Solaris.
17059         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17060         set.
17061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17062         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17063         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17064         Reported by Simon Josefsson.
17065
17066 2010-04-25  Bruno Haible  <bruno@clisp.org>
17067
17068         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17069         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17070         * doc/posix-functions/ctime_r.texi: Likewise.
17071         * doc/posix-functions/getgrgid_r.texi: Likewise.
17072         * doc/posix-functions/getgrnam_r.texi: Likewise.
17073         * doc/posix-functions/getlogin_r.texi: Likewise.
17074         * doc/posix-functions/getpwnam_r.texi: Likewise.
17075         * doc/posix-functions/getpwuid_r.texi: Likewise.
17076         * doc/posix-functions/readdir_r.texi: Likewise.
17077         * doc/posix-functions/sigwait.texi: Likewise.
17078         * doc/posix-functions/ttyname_r.texi: Likewise.
17079         Reported by Simon Josefsson.
17080
17081 2010-04-25  Bruno Haible  <bruno@clisp.org>
17082
17083         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17084         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17085         also to --create-testdir.
17086         (func_acceptable): Don't consider the status of *-tests modules here.
17087         (func_modules_transitive_closure): Consider it here, before including a
17088         test module.
17089         (func_import, func_create_testdir): Set inc_all_direct_tests,
17090         inc_all_indirect_tests.
17091         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17092         --create-testdir and --create-megatestdir.
17093
17094 2010-04-25  Bruno Haible  <bruno@clisp.org>
17095
17096         gnulib-tool: Add --without-*-tests options.
17097         * gnulib-tool (func_usage): Document the --without-*-tests options.
17098         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17099         excl_unportable_tests): New variables.
17100         Fail if they are specified with --import or --update.
17101         (func_acceptable): Respect the excl_*_tests variables.
17102         (func_import): Set the excl_*_tests variables to empty.
17103
17104 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17105             Bruno Haible  <bruno@clisp.org>
17106
17107         Work around a MacOS X 10.4 bug with openpty.
17108         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17109         * tests/test-openpty.c (main): Close the master side explicitly.
17110
17111 2010-04-25  Bruno Haible  <bruno@clisp.org>
17112
17113         strnlen: Fix a C++ test error on MacOS X and Solaris.
17114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17115         the function is not declared.
17116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17117         Simon Josefsson.
17118
17119 2010-04-24  Bruno Haible  <bruno@clisp.org>
17120
17121         Avoid a gcc warning.
17122         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17123         of correct type for %08lx directive.
17124         Reported by Eric Blake.
17125
17126 2010-04-24  Bruno Haible  <bruno@clisp.org>
17127
17128         vasnprintf: Correct errno value in case of out-of-memory.
17129         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17130         or sprintf. Use the errno value from SNPRINTF or sprintf.
17131         Reported by Ian Beckwith <ianb@erislabs.net>.
17132
17133 2010-04-24  Bruno Haible  <bruno@clisp.org>
17134
17135         ansi-c++-opt: Find correct compiler when cross-compiling.
17136         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17137         AC_CHECK_PROGS.
17138         Reported by Simon Josefsson.
17139
17140 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17141
17142         vc-list-files: Add support for subversion
17143         * build-aux/vc-list-files: Use "svn list" to generate the list of
17144         files controlled by subversion.
17145
17146 2010-04-23  Jim Meyering  <meyering@redhat.com>
17147
17148         vc-list-files tests: convert to use init.sh
17149         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17150         path_prepend_.
17151         Use Exit, not exit.
17152         Use skip_ rather than open coding it.
17153         Remove trap set-up and compare definitions.
17154         * tests/test-vc-list-files-git.sh: Likewise.
17155         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17156
17157 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17158
17159         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17160         backup files.
17161
17162 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17163
17164         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17165
17166 2010-04-20  Eric Blake  <eblake@redhat.com>
17167
17168         tests: be robust to ignored SIGPIPE
17169         * tests/test-select-in.sh: Consume all output.
17170         * tests/test-lseek.sh: Check correct exit status, while avoiding
17171         EPIPE.
17172
17173 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17174             Bruno Haible  <bruno@clisp.org>
17175
17176         visibility: Don't use -fvisibility if it leads to a warning.
17177         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17178         yes, don't pretend that visibility works if it leads to a warning.
17179         Reported by Mike Gran <spk121@yahoo.com>.
17180
17181 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17182
17183         * build-aux/bootstrap: Use "git -h" for testing for supported options
17184         instead of "git --help".  The short-form option only shows a summary,
17185         and doesn't layout the full man page.  Grep for the full option name
17186         in the summary, too.
17187
17188 2010-04-19  Bruno Haible  <bruno@clisp.org>
17189
17190         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17191         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17192         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17193         mention of RELOCATABLE_STRIP.
17194         Reported by Sylvain Beucler <beuc@beuc.net>.
17195
17196 2010-04-19  Bruno Haible  <bruno@clisp.org>
17197
17198         * lib/diffseq.h: Fix typo in comment.
17199         Reported by Eric Blake.
17200
17201 2010-04-19  Bruno Haible  <bruno@clisp.org>
17202
17203         ioctl: Move autoconf macro to a .m4 file.
17204         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17205         * modules/ioctl (Files): Add it.
17206         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17207         Reported by Ian Beckwith <ianb@erislabs.net>.
17208
17209 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17210             Bruno Haible  <bruno@clisp.org>
17211
17212         diffseq: Accommodate use-case with abstract arrays.
17213         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17214         is not defined.
17215         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17216         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17217
17218 2010-04-18  Bruno Haible  <bruno@clisp.org>
17219
17220         * doc/posix-headers/stdbool.texi: More precise wording.
17221
17222 2010-04-17  Jim Meyering  <meyering@redhat.com>
17223
17224         maint.mk: use gnu-style indentation in an embedded perl script
17225         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17226         Rename variable: s/two/last_two_bytes/
17227
17228 2010-04-16  Eric Blake  <eblake@redhat.com>
17229
17230         test-stdbool: skip test that fails with Solaris CC
17231         * tests/test-stdbool.c (f): Skip test that causes compilation
17232         error under buggy C++ compiler.
17233         * lib/stdbool.in.h: Document the limitation.
17234         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17235
17236         setenv: allow compilation with C++
17237         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17238         register keyword.
17239
17240         stdint: allow test to pass with C++
17241         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17242
17243         getopt: allow compilation with C++
17244         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17245         struct.
17246         * lib/getopt.c (_getopt_internal_r): Use correct type.
17247         Reported by Dagobert Michelson, via Joel E. Denny.
17248
17249 2010-04-16  Bruno Haible  <bruno@clisp.org>
17250
17251         Override netdb.h always.
17252         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17254         Reported by Ludovic Courtès <ludo@gnu.org>.
17255
17256 2010-04-15  Bruno Haible  <bruno@clisp.org>
17257
17258         openpty: Fix mistake from 2010-03-21.
17259         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17260         Reported by Simon Josefsson.
17261
17262 2010-04-15  Eric Blake  <eblake@redhat.com>
17263
17264         test-forkpty: fix expected signature
17265         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17266         Reported by Simon Josefsson.
17267
17268 2010-04-15  Jim Meyering  <meyering@redhat.com>
17269
17270         maint.mk: texinfo_suffix_re_: correct the default regexp
17271         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17272
17273         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17274         make it configurable via texinfo_suffix_re_.
17275
17276 2010-04-14  Eric Blake  <eblake@redhat.com>
17277
17278         strtok_r: relax license to LGPLv2+
17279         * modules/strtok_r (License): Relax license.
17280         Reported by Matthias Bolte.
17281
17282 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17283
17284         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17285         version 1.4.4 by default instead of requiring the libgcrypt
17286         version used during build.  This makes it possible to use the
17287         application with older but still binary compatible libgcrypt
17288         versions.
17289
17290 2010-04-13  Eric Blake  <eblake@redhat.com>
17291
17292         getopt-gnu: match recent glibc fixes and posix ruling
17293         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17294         '+' handling, when requesting extensions.
17295         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17296         'W;' handling.
17297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17298         * doc/posix-functions/getopt.texi (getopt): Document this.
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: merge bug fixes from glibc
17304         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17305         diagnostics.  Honor '+:' correctly.  Reject ';'.
17306
17307         getopt-posix: detect MacOS bug
17308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17309         optind when missing a required argument.
17310         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17311         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17312         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17313         Likewise.
17314
17315         getopt-posix: avoid spurious failure on Solaris
17316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17317         an indicator that setting optind=1 is sufficient for reset.
17318
17319         getopt-posix: avoid spurious failure on FreeBSD
17320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17321         in POSIX mode, since the m4 test uses it.
17322
17323         gnulib-tool: silence warning on BSD sh
17324         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17325
17326 2010-04-13  Jim Meyering  <meyering@redhat.com>
17327
17328         doc: users.txt: GNU patch now uses gnulib
17329         * users.txt: Add patch.
17330
17331 2010-04-12  Jim Meyering  <meyering@redhat.com>
17332
17333         maint.mk: generate more concise timing data for syntax-check rules
17334         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17335         " done" from each line that reports a syntax-check test duration.
17336
17337 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17338
17339         git-version-gen: use "git update-index..." rather than "git status"
17340         * build-aux/git-version-gen: Use git update-index --refresh, not
17341         "git status".  With some versions of git, "git status" would fail
17342         to update the index and result in an unwarranted "-dirty" suffix.
17343
17344 2010-04-11  Jim Meyering  <meyering@redhat.com>
17345
17346         openat: correct formatting (no semantic change)
17347         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17348         Suggested by Bruno Haible.
17349
17350 2010-04-11  Bruno Haible  <bruno@clisp.org>
17351
17352         Stricter declaration checking in testdirs.
17353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17354         If for_tests is true, augment AM_CPPFLAGS to define
17355         GNULIB_STRICT_CHECKING.
17356         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17357         GNULIB_STRICT_CHECKING is defined, verify that the function is
17358         declared.
17359
17360 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17361             Bruno Haible  <bruno@clisp.org>
17362
17363         libunistring: Improve configure output.
17364         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17365         Don't say "consider installing GNU libunistring" when checking again
17366         with libiconv.
17367
17368 2010-04-11  Bruno Haible  <bruno@clisp.org>
17369
17370         libunistring: Correct value of $LTLIBUNISTRING.
17371         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17372         correct the value of $LTLIBUNISTRING.
17373
17374 2010-04-11  Bruno Haible  <bruno@clisp.org>
17375
17376         havelib: Add static libraries to LIBS in the right order.
17377         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17378         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17379
17380 2010-04-11  Bruno Haible  <bruno@clisp.org>
17381
17382         libunistring: Detect libunistring also when it depends on libiconv.
17383         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17384         the second AC_LIB_HAVE_LINKFLAGS invocation.
17385
17386 2010-04-11  James Youngman  <jay@gnu.org>
17387
17388         close-stream: declare local scalars to be "const"
17389         * lib/close-stream.c (close_stream): Make boolean variables const
17390         to document the fact that we set but do not change them.
17391
17392 2010-04-11  Bruno Haible  <bruno@clisp.org>
17393
17394         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17395
17396 2010-04-11  Jim Meyering  <meyering@redhat.com>
17397
17398         maint.mk: don't include dist-check.mk
17399         * top/maint.mk: Remove bogus include directive.
17400
17401         maint.mk: improve empty-line-at-EOF check
17402         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17403         solution, rather than tail+Perl-based one.  The latter would read
17404         a few kilobytes from the end of each file, and did not handle empty
17405         files properly.
17406
17407         maint.mk: print the elapsed time for each syntax-check rule
17408         * top/maint.mk (sc_m_rules_): Save start time in a file.
17409         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17410         (local-check): Interpose the .z rules
17411
17412 2010-04-11  Jim Meyering  <meyering@redhat.com>
17413
17414         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17415         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17416         empty file with one that ends in an empty line.
17417
17418 2010-04-10  Bruno Haible  <bruno@clisp.org>
17419
17420         mkdir: Make it work on mingw64.
17421         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17422         * lib/mkdir.c: Update comment.
17423         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17424
17425 2010-04-10  Bruno Haible  <bruno@clisp.org>
17426
17427         Don't override improved macro from newer autoconf.
17428         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17429         autoconf >= 2.62.
17430         Reported by Joel E. Denny <jdenny@clemson.edu>.
17431
17432 2010-04-10  Jim Meyering  <meyering@redhat.com>
17433
17434         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17435         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17436
17437         maint.mk: correct a diagnostic
17438         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17439         in diagnostic; now use $prohibit.
17440
17441 2010-04-10  Bruno Haible  <address@hidden>
17442
17443         fchownat: Fix a C++ test error on Solaris 8.
17444         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17445         the function does not exist.
17446
17447 2010-04-10  Bruno Haible  <bruno@clisp.org>
17448
17449         vasnprintf: Add more tests.
17450         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17451         (test_function): Test converting an invalid wide string.
17452
17453         vasnprintf: Correct handling of unconvertible wide string arguments.
17454         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17455         VASNPRINTF.
17456         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17457         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17458         smaller than the expected maximum need for the directive. Set errno to
17459         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17460         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17462         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17463         * modules/vasnprintf (Files): Add m4/printf.m4.
17464         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17465
17466 2010-04-10  Bruno Haible  <bruno@clisp.org>
17467
17468         vasnprintf: Fix crash in %ls directive.
17469         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17470         string is passed as argument to %ls, with no precision and no width.
17471         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17472
17473 2010-04-10  Bruno Haible  <bruno@clisp.org>
17474
17475         vasnprintf: Fix multiple test failures on mingw.
17476         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17477         _snprintf, or snwprintf, not _snwprintf.
17478
17479 2010-04-10  Bruno Haible  <bruno@clisp.org>
17480
17481         write: Fix a C++ test error on mingw.
17482         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17483
17484 2010-04-10  Bruno Haible  <bruno@clisp.org>
17485
17486         vasnprintf test: Reduce code duplication.
17487         * tests/test-vasnprintf.c (test_function): New function, extracted from
17488         test_vasnprintf.
17489         (test_vasnprintf, test_asnprintf): Invoke it.
17490
17491 2010-04-10  Bruno Haible  <bruno@clisp.org>
17492
17493         strnlen: Fix warning in C++ mode on MacOS X.
17494         * lib/string.in.h (strnlen): Use the modern idiom.
17495         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17496         defining strnlen as a macro already in <config.h>.
17497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17498         REPLACE_STRNLEN.
17499         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17500         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17501
17502 2010-04-08  James Youngman  <jay@gnu.org>
17503
17504         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17505         the example.
17506
17507 2010-04-09  Jim Meyering  <meyering@redhat.com>
17508
17509         maint.mk: print better diagnostic when there is no $(_hv_file)
17510         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17511         announce that when $(_hv_file) (aka help-version) does not exist.
17512
17513         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17514         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17515         not try to interpret its random input bytes.  Jarno Rajahalme reported
17516         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17517         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17518         (mktempd_): Likewise, just in case.
17519
17520         ftruncate: add two years to projected module removal date: 2012
17521         * m4/ftruncate.m4: Adjust comments.
17522
17523         ftruncate: mark module as obsolete; even MinGW provides it, now
17524         * modules/ftruncate (Status): Obsolete.
17525         (Notice): Say that.
17526         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17528
17529 2010-04-08  Bruno Haible  <bruno@clisp.org>
17530
17531         Fix side effects from tests-related modules.
17532         * modules/dprintf-posix (Comment): New section.
17533         * modules/fprintf-posix (Comment): Likewise.
17534         * modules/obstack-printf-posix (Comment): Likewise.
17535         * modules/printf-posix (Comment): Likewise.
17536         * modules/snprintf-posix (Comment): Likewise.
17537         * modules/sprintf-posix (Comment): Likewise.
17538         * modules/vasnprintf-posix (Comment): Likewise.
17539         * modules/vasprintf-posix (Comment): Likewise.
17540         * modules/vdprintf-posix (Comment): Likewise.
17541         * modules/vfprintf-posix (Comment): Likewise.
17542         * modules/vprintf-posix (Comment): Likewise.
17543         * modules/vsnprintf-posix (Comment): Likewise.
17544         * modules/vsprintf-posix (Comment): Likewise.
17545         * modules/xprintf-posix (Comment): Likewise.
17546         * modules/xvasprintf-posix (Comment): Likewise.
17547         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17548         * modules/floorf-tests (Depends-on): Likewise.
17549         * modules/round-tests (Depends-on): Likewise.
17550         * modules/roundf-tests (Depends-on): Likewise.
17551         * modules/trunc-tests (Depends-on): Likewise.
17552         * modules/truncf-tests (Depends-on): Likewise.
17553         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17554         'fprintf-posix' module is not present.
17555         * tests/test-floorf2.c (check): Likewise.
17556         * tests/test-trunc2.c (check): Likewise.
17557         * tests/test-truncf2.c (check): Likewise.
17558         * tests/test-round2.c (equal): Likewise.
17559         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17560
17561 2010-04-07  Karl Berry  <karl@gnu.org>
17562
17563         * config/srclist.txt,
17564         * config/srclistvars.sh,
17565         * config/srclist-update: doc fixes.
17566
17567 2010-04-07  Jim Meyering  <meyering@redhat.com>
17568
17569         maint.mk: add a PATH crosschecking syntax-check rule
17570         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17571         Useful if you use a test like the one in help-version (coreutils,
17572         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17573         printed by prog --version.
17574
17575 2010-04-06  Bruno Haible  <bruno@clisp.org>
17576
17577         Fix link error on mingw.
17578         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17579         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17580
17581 2010-04-06  Bruno Haible  <bruno@clisp.org>
17582
17583         Assume rmdir exists.
17584         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17585
17586 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17587
17588         doc: update users.txt
17589         * users.txt: Add gcal.
17590
17591 2010-04-06  Jim Meyering  <meyering@redhat.com>
17592
17593         init.sh: simply unset TMPDIR rather than risking env -i
17594         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17595         although it probably works fine on all Unix-based systems, some
17596         systems (Cygwin?) cannot tolerate a totally cleared environment.
17597         Suggestion from Eric Blake.
17598
17599 2010-04-06  Jim Meyering  <meyering@redhat.com>
17600
17601         init.sh: portability fix: use env's POSIX-specified -i option not -u
17602         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17603         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17604
17605 2010-04-05  Bruno Haible  <bruno@clisp.org>
17606
17607         btowc: Work around Cygwin 1.7.2 bug.
17608         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17609         does not map NUL to 0.
17610         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17611
17612 2010-04-05  Bruno Haible  <bruno@clisp.org>
17613
17614         Make the multithread modules work on Cygwin 1.7.2.
17615         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17616         imported symbols can be declared weak, so that it returns "no" on
17617         Cygwin 1.7.2.
17618
17619 2010-04-05  Bruno Haible  <bruno@clisp.org>
17620
17621         Use the module 'strncat'.
17622         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17623
17624         Tests for module 'strncat'.
17625         * modules/strncat-tests: New file.
17626         * tests/test-strncat.c: New file.
17627
17628         New module 'strncat'.
17629         * lib/string.in.h (strncat): New declaration.
17630         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17631         * m4/strncat.m4: New file, based on m4/memchr.m4.
17632         * modules/strncat: New file.
17633         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17634         is declared.
17635         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17636         REPLACE_STRNCAT.
17637         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17638         REPLACE_STRNCAT.
17639         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17640         module.
17641         * tests/test-string-c++.cc: Check signature of strncat.
17642
17643 2010-04-05  Jim Meyering  <meyering@redhat.com>
17644
17645         xstrtoumax-tests: convert to use init.sh
17646         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17647         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17648         Use Exit, not exit.
17649         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17650
17651         xstrtoimax-tests: convert to use init.sh
17652         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17653         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17654         Use Exit, not exit.
17655         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17656
17657 2010-04-05  Bruno Haible  <bruno@clisp.org>
17658
17659         sys_socket: Avoid #define replacements in C++ mode.
17660         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17661         warning to the function if possible, rather than #defining the symbol
17662         to a dysfunctional alias.
17663
17664 2010-04-05  Bruno Haible  <bruno@clisp.org>
17665
17666         fseeko: Fix C++ test error on mingw.
17667         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17668         gl_FUNC_FSEEKO.
17669         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17670         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17671         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17672         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17673
17674 2010-04-05  Bruno Haible  <bruno@clisp.org>
17675
17676         duplocale: Improve test output.
17677         * tests/test-duplocale.c (main): Print reason for skipped test.
17678
17679 2010-04-05  Bruno Haible  <bruno@clisp.org>
17680
17681         Assume rmdir exists.
17682         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17683         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17684
17685 2010-04-05  Bruno Haible  <bruno@clisp.org>
17686
17687         Fix link error on Solaris 8 with cc.
17688         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17689
17690 2010-04-05  Bruno Haible  <bruno@clisp.org>
17691
17692         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17693         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17694
17695 2010-04-05  Bruno Haible  <bruno@clisp.org>
17696
17697         vasprintf: Update documentation.
17698         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17699
17700 2010-04-05  Bruno Haible  <bruno@clisp.org>
17701
17702         ptsname: Improve test.
17703         * tests/test-ptsname.c (main): Also try the various master names of BSD
17704         systems.
17705
17706 2010-04-05  Bruno Haible  <bruno@clisp.org>
17707
17708         memchr: Avoid a possible C++ test error.
17709         * lib/string.in.h (memchr): Provide declaration if function is missing.
17710         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17711         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17713         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17714
17715 2010-04-05  Bruno Haible  <bruno@clisp.org>
17716
17717         strtok_r: Improve idiom.
17718         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17719         AC_LIBOBJ is used.
17720
17721 2010-04-05  Bruno Haible  <bruno@clisp.org>
17722
17723         strdup: Improve idiom.
17724         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17725         AC_LIBOBJ is used.
17726         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17727         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17728         when AC_LIBOBJ is used.
17729
17730 2010-04-05  Bruno Haible  <bruno@clisp.org>
17731
17732         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17733         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17734         don't set REPLACE_MBSINIT to 1.
17735         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17736         don't set REPLACE_MBRTOWC to 1.
17737         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17738         exist, don't set REPLACE_MBSRTOWCS to 1.
17739         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17740         exist, don't set REPLACE_MBSNRTOWCS to 1.
17741         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17742         don't set REPLACE_WCRTOMB to 1.
17743         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17744         exist, don't set REPLACE_WCSRTOMBS to 1.
17745         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17746         exist, don't set REPLACE_WCSNRTOMBS to 1.
17747
17748 2010-04-05  Bruno Haible  <bruno@clisp.org>
17749
17750         ldexpl: Improve idiom.
17751         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17752         make sure to set HAVE_DECL_LDEXPL to 0.
17753
17754 2010-04-05  Jim Meyering  <meyering@redhat.com>
17755
17756         xstrtol-tests: convert to use init.sh
17757         * modules/xstrtol-tests (Files): Add tests/init.sh.
17758         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17759         Use Exit, not exit.
17760         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17761
17762         atexit-tests: convert to use init.sh
17763         * modules/atexit-tests (Files): Add tests/init.sh.
17764         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17765         Use Exit, not exit.
17766         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17767
17768         init.sh: fix typo
17769         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17770
17771         init.sh: make it easier for a test script to write to the tty, ...
17772         when using automake's parallel-tests mode.
17773         * tests/init.sh (stderr_fileno_): Define overridable variable.
17774         (warn_): New function, to use it.
17775         (fail_, skip_, framework_failure_): Use warn_.
17776
17777 2010-04-04  Bruno Haible  <bruno@clisp.org>
17778
17779         btowc: Avoid warning.
17780         * lib/btowc.c: Include <stdlib.h>.
17781         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17782
17783 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17784             Bruno Haible  <bruno@clisp.org>
17785
17786         wchar: Port to NetBSD 1.5.
17787         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17788         * lib/wctype.in.h (WEOF): Likewise.
17789
17790 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17791             Bruno Haible  <bruno@clisp.org>
17792
17793         Port extended stdio to NetBSD 1.5.
17794         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17795         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17796         older.
17797
17798 2010-04-04  Bruno Haible  <bruno@clisp.org>
17799
17800         string: Remove unused substitution.
17801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17802         HAVE_DECL_STRERROR.
17803         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17804
17805 2010-04-04  Bruno Haible  <bruno@clisp.org>
17806
17807         strtod: Avoid a possible C++ test error.
17808         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17809         set REPLACE_STRTOD.
17810
17811 2010-04-04  Bruno Haible  <bruno@clisp.org>
17812
17813         strerror: Update documentation.
17814         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17815
17816 2010-04-04  Bruno Haible  <bruno@clisp.org>
17817
17818         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17819         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17820         _GL_CXXALIAS_SYS_CAST.
17821
17822 2010-04-04  Bruno Haible  <bruno@clisp.org>
17823
17824         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17825         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17826         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17827         REPLACE_FREXPL to 1.
17828         * doc/posix-functions/frexpl.texi: Update documentation.
17829
17830 2010-04-04  Bruno Haible  <bruno@clisp.org>
17831
17832         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17833         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17834
17835 2010-04-04  Bruno Haible  <bruno@clisp.org>
17836
17837         Implement nanosleep for native Windows.
17838         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17839
17840 2010-04-04  Bruno Haible  <bruno@clisp.org>
17841
17842         math: Fix some C++ test errors on Solaris 8.
17843         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17844
17845 2010-04-04  Bruno Haible  <bruno@clisp.org>
17846
17847         math: Fix some C++ test errors on Cygwin.
17848         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17849         truncl): Provide declaration if the system does not have it.
17850         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17851         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17852         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17853         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17854         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17855         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17856         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17857         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17858         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17859         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17860         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17861         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17862         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17863         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17864         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17865         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17867         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17868         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17869         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17870         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17871         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17872
17873 2010-04-04  Bruno Haible  <bruno@clisp.org>
17874
17875         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17876         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17877         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17878         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17879         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17880         * m4/isinf.m4 (gl_ISINF): Likewise.
17881         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17882
17883 2010-04-04  Bruno Haible  <bruno@clisp.org>
17884
17885         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17886         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17887
17888 2010-04-04  Bruno Haible  <bruno@clisp.org>
17889
17890         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17891         * modules/tmpfile (configure.ac): Update.
17892
17893         tmpfile: Fix C++ test error on mingw.
17894         * lib/stdio.in.h (tmpfile): New declaration.
17895         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17896         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17897         * modules/tmpfile (Depends-on): Add stdio.
17898         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17899         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17900         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17901         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17902         REPLACE_TMPFILE.
17903         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17904
17905 2010-04-04  Bruno Haible  <bruno@clisp.org>
17906
17907         ioctl: Fix C++ test error on mingw.
17908         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17909         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17910         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17911
17912 2010-04-03  Bruno Haible  <bruno@clisp.org>
17913
17914         wcwidth: Fix C++ test error on mingw.
17915         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17917         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17918
17919 2010-04-03  Bruno Haible  <bruno@clisp.org>
17920
17921         nanosleep: Fix C++ test error on mingw.
17922         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17923         * lib/time.in.h (nanosleep): Use modern idiom.
17924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17925         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17926         REPLACE_NANOSLEEP to 1.
17927         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17928         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17929
17930 2010-04-03  Bruno Haible  <bruno@clisp.org>
17931
17932         strptime: Fix C++ test error on mingw.
17933         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17934         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17935         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17936         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17938         not REPLACE_STRPTIME.
17939         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17940         REPLACE_STRPTIME.
17941
17942 2010-04-03  Bruno Haible  <bruno@clisp.org>
17943
17944         timegm: Fix C++ test error on mingw.
17945         * lib/time.in.h (timegm): Use modern idiom.
17946         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17947         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17948         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17949         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17950
17951 2010-04-03  Bruno Haible  <bruno@clisp.org>
17952
17953         timegm: Assume declaration if function exists.
17954         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17955         if it exists. Don't clobber ac_cv_func_timegm.
17956
17957 2010-04-03  Bruno Haible  <bruno@clisp.org>
17958
17959         time_r: Fix C++ test error on mingw.
17960         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17961         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17962         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17963         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17964         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17965
17966 2010-04-03  Bruno Haible  <bruno@clisp.org>
17967
17968         time_r: Minor updates.
17969         * modules/time_r (Description): Mention the provided functions.
17970         * lib/time_r.c: Don't include <string.h>.
17971         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17972         * doc/posix-functions/localtime_r.texi: Likewise.
17973
17974 2010-04-03  Bruno Haible  <bruno@clisp.org>
17975
17976         time: Fix regression introduced on 2010-03-08.
17977         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17978         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17979
17980 2010-04-03  Jim Meyering  <meyering@redhat.com>
17981
17982         maint.mk: don't silently disable project-specific syntax-check rules
17983         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17984         that they need to convert their project-specific syntax-check rules
17985         to use the new _sc_search_regexp.
17986
17987 2010-04-03  Bruno Haible  <bruno@clisp.org>
17988
17989         fchdir: Fix regression introduced on 2010-03-08.
17990         * lib/unistd.in.h (fchdir): Fix declaration.
17991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17993         REPLACE_FCHDIR.
17994         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17995         REPLACE_FCHDIR.
17996
17997 2010-04-03  Bruno Haible  <bruno@clisp.org>
17998
17999         getpagesize: Fix C++ test error on mingw.
18000         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18001         system does not declare the function.
18002         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18003         declared.
18004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18005         HAVE_DECL_GETPAGESIZE.
18006         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18007
18008 2010-04-03  Bruno Haible  <bruno@clisp.org>
18009
18010         stdio: Make C++ tests work on mingw.
18011         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18012         does not declare the function.
18013
18014 2010-04-03  Bruno Haible  <bruno@clisp.org>
18015
18016         ftello: Fix C++ test error on mingw.
18017         * lib/stdio.in.h (ftello): Use modern idiom.
18018         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18019         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18020         is missing and that it needs to be replaced.
18021         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18023         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18024
18025 2010-04-03  Bruno Haible  <bruno@clisp.org>
18026
18027         fseeko: Fix C++ test error on mingw.
18028         * lib/stdio.in.h (fseeko): Use modern idiom.
18029         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18030         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18031         is missing and that it needs to be replaced.
18032         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18034         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18035
18036 2010-04-03  Bruno Haible  <bruno@clisp.org>
18037
18038         mkstemp: Fix C++ test error on mingw.
18039         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18041         function is missing and that it needs to be replaced.
18042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18043         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18044
18045 2010-04-03  Bruno Haible  <bruno@clisp.org>
18046
18047         stpncpy: Fix C++ test error on mingw.
18048         * lib/string.in.h (stpncpy): Use modern idiom.
18049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18050         function is missing and that it needs to be replaced.
18051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18052         REPLACE_STPNCPY.
18053         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18054
18055 2010-04-03  Bruno Haible  <bruno@clisp.org>
18056
18057         sys_stat: Fix C++ test error on mingw.
18058         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18059         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18060
18061 2010-04-03  Bruno Haible  <bruno@clisp.org>
18062
18063         pty: Update doc.
18064         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18065
18066 2010-04-03  Bruno Haible  <bruno@clisp.org>
18067
18068         unistd: Fix C++ test error on mingw.
18069         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18070
18071 2010-04-03  Bruno Haible  <bruno@clisp.org>
18072
18073         Update doc regarding mingw.
18074         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18075         * doc/glibc-functions/login_tty.texi: Likewise.
18076         * doc/glibc-functions/forkpty.texi: Likewise.
18077
18078 2010-04-03  Bruno Haible  <bruno@clisp.org>
18079
18080         stdlib: Avoid compilation failure of c-strtold on mingw.
18081         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18082
18083 2010-04-03  Bruno Haible  <bruno@clisp.org>
18084
18085         locale: Make C++ tests work on Cygwin and mingw.
18086         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18087         cannot provide the function.
18088         Reported by Simon Josefsson.
18089
18090 2010-04-03  Bruno Haible  <bruno@clisp.org>
18091
18092         localename: Port to MacOS X 10.6.
18093         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18094         memory layout of the locales in MacOS X 10.6 as well.
18095         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18096
18097 2010-04-02  Bruno Haible  <bruno@clisp.org>
18098
18099         gnulib-tool: Ensure that long-running tests are executed last.
18100         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18101         running tests after the one for the other tests.
18102
18103 2010-04-02  Bruno Haible  <bruno@clisp.org>
18104
18105         gnulib-tool: Ensure the tests in the main directory are executed first.
18106         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18107         start with the current directory.
18108
18109 2010-04-02  Bruno Haible  <bruno@clisp.org>
18110
18111         Tests for module 'havelib', moved here from GNU gettext.
18112         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18113         modifications.
18114         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18115         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18116         with modifications.
18117         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18118         modifications.
18119         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18120         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18121         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18122         with modifications.
18123         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18124         with modifications.
18125         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18126         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18127         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18128         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18129         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18130         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18131         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18132         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18133         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18134         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18135         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18136         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18137         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18138         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18139         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18140         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18141         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18142         with modifications.
18143         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18144         with modifications.
18145         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18146         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18147         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18148         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18149         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18150         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18151         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18152         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18153         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18154         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18155         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18156         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18157         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18158         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18159         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18160         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18161         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18162         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18163         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18164         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18165         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18166         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18167         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18168         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18169         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18170         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18171         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18172         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18173         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18174         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18175         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18176         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18177         * tests/havelib/rpathx/rpathx.c: New file, from
18178         gettext/autoconf-lib-link.
18179         * tests/havelib/rpathx/Makefile.am: New file, from
18180         gettext/autoconf-lib-link.
18181         * tests/havelib/rpathx/configure.ac: New file, from
18182         gettext/autoconf-lib-link with modifications.
18183         * tests/havelib/rpathy/rpathy.c: New file, from
18184         gettext/autoconf-lib-link.
18185         * tests/havelib/rpathy/Makefile.am: New file, from
18186         gettext/autoconf-lib-link.
18187         * tests/havelib/rpathy/configure.ac: New file, from
18188         gettext/autoconf-lib-link with modifications.
18189         * tests/havelib/rpathz/rpathz.c: New file, from
18190         gettext/autoconf-lib-link.
18191         * tests/havelib/rpathz/Makefile.am: New file, from
18192         gettext/autoconf-lib-link.
18193         * tests/havelib/rpathz/configure.ac: New file, from
18194         gettext/autoconf-lib-link with modifications.
18195         * tests/havelib/rpathlx/usex.c: New file, from
18196         gettext/autoconf-lib-link.
18197         * tests/havelib/rpathlx/Makefile.am: New file, from
18198         gettext/autoconf-lib-link.
18199         * tests/havelib/rpathlx/configure.ac: New file, from
18200         gettext/autoconf-lib-link with modifications.
18201         * tests/havelib/rpathly/usey.c: New file, from
18202         gettext/autoconf-lib-link.
18203         * tests/havelib/rpathly/Makefile.am: New file, from
18204         gettext/autoconf-lib-link.
18205         * tests/havelib/rpathly/configure.ac: New file, from
18206         gettext/autoconf-lib-link with modifications.
18207         * tests/havelib/rpathlz/usez.c: New file, from
18208         gettext/autoconf-lib-link.
18209         * tests/havelib/rpathlz/Makefile.am: New file, from
18210         gettext/autoconf-lib-link.
18211         * tests/havelib/rpathlz/configure.ac: New file, from
18212         gettext/autoconf-lib-link with modifications.
18213         * tests/havelib/rpathlyx/usey.c: New file, from
18214         gettext/autoconf-lib-link.
18215         * tests/havelib/rpathlyx/Makefile.am: New file, from
18216         gettext/autoconf-lib-link.
18217         * tests/havelib/rpathlyx/configure.ac: New file, from
18218         gettext/autoconf-lib-link with modifications.
18219         * tests/havelib/rpathlzyx/usez.c: New file, from
18220         gettext/autoconf-lib-link.
18221         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18222         gettext/autoconf-lib-link.
18223         * tests/havelib/rpathlzyx/configure.ac: New file, from
18224         gettext/autoconf-lib-link with modifications.
18225         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18226         with modifications.
18227
18228 2010-04-02  Bruno Haible  <bruno@clisp.org>
18229
18230         gnulib-tool: Create distributed built sources also for the tests.
18231         * gnulib-tool (func_create_testdir): Also generate distributed built
18232         sources in the tests directory.
18233
18234 2010-04-02  Bruno Haible  <bruno@clisp.org>
18235
18236         gnulib-tool: Obey user's environment variables.
18237         * gnulib-tool (func_create_testdir): When creating built sources,
18238         respect the environment variables for autoconf, automake, etc. given by
18239         the user.
18240
18241 2010-04-02  Bruno Haible  <bruno@clisp.org>
18242
18243         gnulib-tool: Provide the value of --m4-base to modules.
18244         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18245         of gl_m4_base.
18246
18247 2010-04-02  Eric Blake  <eblake@redhat.com>
18248
18249         maint.mk: fix some fallout
18250         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18251         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18252
18253 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18254
18255         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18256         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18257         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18258         (sc_cast_of_x_alloc_return_value): Likewise.
18259         (sc_cast_of_alloca_return_value): Likewise.
18260         (sc_space_tab): Likewise.
18261         (sc_prohibit_atoi_atof): Likewise.
18262         (sc_prohibit_magic_number_exit): Likewise.
18263         (sc_error_exit_success): Likewise.
18264         (sc_file_system): Likewise.
18265         (sc_prohibit_have_config_h): Likewise.
18266         (sc_require_config_h): Likewise.
18267         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18268         (sc_obsolete_symbols): Likewise.
18269         (sc_changelog): Likewise.
18270         (sc_program_name): Likewise.
18271         (sc_the_the): Likewise.
18272         (sc_trailing_blank): Likewise.
18273         (sc_two_space_separator_in_usage): Likewise.
18274         (sc_useless_cpp_parens): Likewise.
18275         (sc_GPL_version): Likewise.
18276         (sc_GFDL_version): Likewise.
18277         (sc_texinfo_acronym): Likewise.
18278         (sc_prohibit_cvs_keyword): Likewise.
18279         (sc_prohibit_stat_st_blocks): Likewise.
18280         (sc_prohibit_S_IS_definition): Likewise.
18281         (sc_redundant_const): Likewise.
18282         (sc_makefile_TAB_only_indentation): Likewise.
18283         (sc_m4_quote_check): Likewise.
18284         (sc_makefile_path_separator_check): Likewise.
18285         (sc_copyright_check): Likewise.
18286         (sc_Wundef_boolean): Likewise.
18287         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18288
18289         maint.mk: match 0 or more whitespace-before-function-call '('
18290         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18291         that have zero or two-and-more spaces between the function name
18292         and the open parenthesis.
18293         (sc_error_message_warn_fatal): Likewise.
18294         (sc_error_message_uppercase): Likewise.
18295         (sc_error_message_period): Likewise.
18296
18297 2010-03-31  Eric Blake  <eblake@redhat.com>
18298
18299         maint.mk: check for [ as well as test
18300         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18301         Based on a libvirt report by Matthias Bolte.
18302
18303         gnumakefile: don't squelch _version output
18304         * top/GNUmakefile (_version): Create one-shot dependency rather
18305         than using $(shell) when version must be regenerated.
18306         (_autoreconf): Run verbosely, by default.
18307
18308         sys_time: avoid compiler warnings
18309         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18310         unconditional, fixing regression from 2010-03-29.
18311         Reported by Simon Josefsson.
18312
18313 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18314
18315         maint.mk: s/_header_without_use/_sc_header_without_use/
18316         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18317         (sc_prohibit_assert_without_use): Use the new name.
18318         (sc_prohibit_close_stream_without_use): Likewise.
18319         (sc_prohibit_getopt_without_use): Likewise.
18320         (sc_prohibit_quotearg_without_use): Likewise.
18321         (sc_prohibit_quote_without_use): Likewise.
18322         (sc_prohibit_long_options_without_use): Likewise.
18323         (sc_prohibit_inttostr_without_use): Likewise.
18324         (sc_prohibit_ignore_value_without_use): Likewise.
18325         (sc_prohibit_error_without_use): Likewise.
18326         (sc_prohibit_xalloc_without_use): Likewise.
18327         (sc_prohibit_hash_without_use): Likewise.
18328         (sc_prohibit_hash_pjw_without_use): Likewise.
18329         (sc_prohibit_safe_read_without_use): Likewise.
18330         (sc_prohibit_argmatch_without_use): Likewise.
18331         (sc_prohibit_canonicalize_without_use): Likewise.
18332         (sc_prohibit_root_dev_ino_without_use): Likewise.
18333         (sc_prohibit_openat_without_use): Likewise.
18334         (sc_prohibit_c_ctype_without_use): Likewise.
18335         (sc_prohibit_signal_without_use): Likewise.
18336         (sc_prohibit_intprops_without_use): Likewise.
18337
18338 2010-03-30  Eric Blake  <eblake@redhat.com>
18339
18340         maint: improve module indicators
18341         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18342         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18343         columns, and avoid extra macro expansion.
18344
18345         fdopendir: work around FreeBSD bug
18346         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18348         * modules/dirent (Makefile.am): Substitute it.
18349         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18350         declaration.
18351         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18352         fix.
18353         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18354
18355 2010-03-29  Bruno Haible  <bruno@clisp.org>
18356
18357         Emit #pragma system_header after the inclusion guard, not before.
18358         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18359         guard that spans the entire file, not before. This enables an
18360         optimization in GCC's preprocessor.
18361         * lib/ctype.in.h: Likewise.
18362         * lib/dirent.in.h: Likewise.
18363         * lib/errno.in.h: Likewise.
18364         * lib/float.in.h: Likewise.
18365         * lib/getopt.in.h: Likewise.
18366         * lib/iconv.in.h: Likewise.
18367         * lib/langinfo.in.h: Likewise.
18368         * lib/locale.in.h: Likewise.
18369         * lib/math.in.h: Likewise.
18370         * lib/netdb.in.h: Likewise.
18371         * lib/netinet_in.in.h: Likewise.
18372         * lib/pty.in.h: Likewise.
18373         * lib/sched.in.h: Likewise.
18374         * lib/se-selinux.in.h: Likewise.
18375         * lib/search.in.h: Likewise.
18376         * lib/spawn.in.h: Likewise.
18377         * lib/stdarg.in.h: Likewise.
18378         * lib/stdint.in.h: Likewise.
18379         * lib/string.in.h: Likewise.
18380         * lib/strings.in.h: Likewise.
18381         * lib/sys_file.in.h: Likewise.
18382         * lib/sys_ioctl.in.h: Likewise.
18383         * lib/sys_time.in.h: Likewise.
18384         * lib/sys_times.in.h: Likewise.
18385         * lib/sys_utsname.in.h: Likewise.
18386         * lib/sys_wait.in.h: Likewise.
18387         * lib/sysexits.in.h: Likewise.
18388         * lib/wctype.in.h: Likewise.
18389
18390 2010-03-28  James Youngman  <jay@gnu.org>
18391
18392         save-cwd: don't leak a file descriptor when the caller execs.
18393         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18394         saved file descriptor.
18395         * modules/save-cwd (Depends-on): Depend on cloexec.
18396
18397 2010-03-29  Bruno Haible  <bruno@clisp.org>
18398
18399         Remove vestiges of fts-lgpl module.
18400         * lib/fts_.h: Assume GNULIB_FTS is 1.
18401         * lib/fts.c: Likewise.
18402         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18403
18404 2010-03-28  Bruno Haible  <bruno@clisp.org>
18405
18406         Fix definition of tests witness macro.
18407         * gnulib-tool (func_import): Fix definition of witness macro.
18408
18409 2010-03-28  Bruno Haible  <bruno@clisp.org>
18410
18411         Fix ioctl's protoype on glibc systems.
18412         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18413         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18414         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18415         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18416         signature. If not, arrange to replace the ioctl function.
18417         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18418         REPLACE_IOCTL.
18419         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18420         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18421         Reported by Ludovic Courtès <ludo@gnu.org>.
18422
18423 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18424
18425         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18426         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18427         made it so grep -r --include=GLOB* ... did not work.
18428
18429 2010-03-26  Jim Meyering  <meyering@redhat.com>
18430             Eric Blake  <eblake@redhat.com>
18431
18432         maint.mk: prohibit use of test's -o and -a operators
18433         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18434
18435 2010-03-28  Bruno Haible  <bruno@clisp.org>
18436
18437         Remove unused GNULIB_XYZ macro definitions.
18438         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18439         invocation.
18440
18441 2010-03-28  Bruno Haible  <bruno@clisp.org>
18442
18443         Mark privileged tests modules.
18444         * modules/idpriv-drop-tests (Status): New section.
18445         * modules/idpriv-droptemp-tests (Status): New section.
18446
18447 2010-03-28  Bruno Haible  <bruno@clisp.org>
18448
18449         Split C++ tests into separate tests modules.
18450         * modules/dirent-c++-tests: New file, extracted from
18451         modules/dirent-tests.
18452         * modules/dirent-tests: Depend on it.
18453         * modules/fcntl-h-c++-tests: New file, extracted from
18454         modules/fcntl-h-tests.
18455         * modules/fcntl-h-tests: Depend on it.
18456         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18457         * modules/glob-tests: Depend on it.
18458         * modules/iconv-h-c++-tests: New file, extracted from
18459         modules/iconv-h-tests.
18460         * modules/iconv-h-tests: Depend on it.
18461         * modules/langinfo-c++-tests: New file, extracted from
18462         modules/langinfo-tests.
18463         * modules/langinfo-tests: Depend on it.
18464         * modules/locale-c++-tests: New file, extracted from
18465         modules/locale-tests.
18466         * modules/locale-tests: Depend on it.
18467         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18468         * modules/math-tests: Depend on it.
18469         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18470         * modules/pty-tests: Depend on it.
18471         * modules/search-c++-tests: New file, extracted from
18472         modules/search-tests.
18473         * modules/search-tests: Depend on it.
18474         * modules/signal-c++-tests: New file, extracted from
18475         modules/signal-tests.
18476         * modules/signal-tests: Depend on it.
18477         * modules/spawn-c++-tests: New file, extracted from
18478         modules/spawn-tests.
18479         * modules/spawn-tests: Depend on it.
18480         * modules/stdio-c++-tests: New file, extracted from
18481         modules/stdio-tests.
18482         * modules/stdio-tests: Depend on it.
18483         * modules/stdlib-c++-tests: New file, extracted from
18484         modules/stdlib-tests.
18485         * modules/stdlib-tests: Depend on it.
18486         * modules/string-c++-tests: New file, extracted from
18487         modules/string-tests.
18488         * modules/string-tests: Depend on it.
18489         * modules/sys_ioctl-c++-tests: New file, extracted from
18490         modules/sys_ioctl-tests.
18491         * modules/sys_ioctl-tests: Depend on it.
18492         * modules/sys_select-c++-tests: New file, extracted from
18493         modules/sys_select-tests.
18494         * modules/sys_select-tests: Depend on it.
18495         * modules/sys_socket-c++-tests: New file, extracted from
18496         modules/sys_socket-tests.
18497         * modules/sys_socket-tests: Depend on it.
18498         * modules/sys_stat-c++-tests: New file, extracted from
18499         modules/sys_stat-tests.
18500         * modules/sys_stat-tests: Depend on it.
18501         * modules/sys_time-c++-tests: New file, extracted from
18502         modules/sys_time-tests.
18503         * modules/sys_time-tests: Depend on it.
18504         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18505         * modules/time-tests: Depend on it.
18506         * modules/unistd-c++-tests: New file, extracted from
18507         modules/unistd-tests.
18508         * modules/unistd-tests: Depend on it.
18509         * modules/wchar-c++-tests: New file, extracted from
18510         modules/wchar-tests.
18511         * modules/wchar-tests: Depend on it.
18512         * modules/wctype-c++-tests: New file, extracted from
18513         modules/wctype-tests.
18514         * modules/wctype-tests: Depend on it.
18515         Reported by Simon Josefsson.
18516
18517 2010-03-28  Bruno Haible  <bruno@clisp.org>
18518
18519         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18520         * gnulib-tool (func_exists_module): New function, extracted from
18521         func_verify_module.
18522         (func_verify_module): Use it.
18523         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18524         'foo' only if 'foo' exists.
18525         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18526         module.
18527
18528 2010-03-28  Bruno Haible  <bruno@clisp.org>
18529
18530         gnulib-tool: Add support for special categories of tests.
18531         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18532         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18533         (func_usage): Document them.
18534         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18535         inc_unportable_tests, inc_all_tests): New variables.
18536         (func_acceptable): Consider these variables.
18537         (func_modules_transitive_closure): Make it work when the 'Status' field
18538         consists of multiple words.
18539         (func_import): Store and restore the values of inc_cxx_tests,
18540         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18541         inc_all_tests in gnulib-comp.m4.
18542         (func_create_testdir): Set inc_all_tests to true.
18543         * doc/gnulib.texi (Extra tests modules): New section.
18544         Suggested by Jim Meyering.
18545
18546 2010-03-28  Bruno Haible  <bruno@clisp.org>
18547
18548         ansi-c++-opt: Allow turning off the C++ build by default.
18549         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18550         gl_CXX_CHOICE_DEFAULT_NO is defined.
18551         Requested by Eric Blake.
18552
18553 2010-03-28  Bruno Haible  <bruno@clisp.org>
18554
18555         unistd: Avoid #define replacements in C++ mode.
18556         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18557         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18558         setsockopt, shutdown, select): In C++, attach a warning to the function
18559         if possible, rather than #defining the symbol to a dysfunctional alias.
18560         Reported by John W. Eaton <jwe@gnu.org>.
18561
18562 2010-03-28  Bruno Haible  <bruno@clisp.org>
18563
18564         Fix link errors on mingw.
18565         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18566         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18567         $(LIBSOCKET).
18568         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18569         $(LIBSOCKET).
18570
18571 2010-03-28  Bruno Haible  <bruno@clisp.org>
18572             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18573
18574         lib-ignore: Determine different options for different compilers.
18575         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18576         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18577         Add comments.
18578         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18579         * NEWS: Mention the change.
18580
18581 2010-03-27  Bruno Haible  <bruno@clisp.org>
18582
18583         Remove unused GNULIB_XYZ macro definitions.
18584         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18585         * modules/fseek (configure.ac): Likewise.
18586         * modules/ioctl (configure.ac): Likewise.
18587         * modules/open (configure.ac): Likewise.
18588         * modules/stdlib-safer (configure.ac): Likewise.
18589
18590 2010-03-27  Bruno Haible  <bruno@clisp.org>
18591
18592         Add a remark about certain modules.
18593         * modules/malloc (Comment): New section.
18594         * modules/realloc (Comment): Likewise.
18595         * modules/sigpipe (Comment): Likewise.
18596
18597 2010-03-27  Bruno Haible  <bruno@clisp.org>
18598
18599         Resolve conflict between the two kinds of module indicators.
18600         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18601         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18602         * modules/canonicalize (configure.ac): Invoke
18603         gl_MODULE_INDICATOR_FOR_TESTS.
18604         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18605         GNULIB_XYZ.
18606         * tests/test-dirent-c++.cc: Likewise.
18607         * tests/test-dirent-safer.c: Likewise.
18608         * tests/test-dup2.c: Likewise.
18609         * tests/test-fchdir.c: Likewise.
18610         * tests/test-fcntl-h-c++.cc: Likewise.
18611         * tests/test-getopt.c: Likewise.
18612         * tests/test-getopt.h: Likewise.
18613         * tests/test-langinfo-c++.cc: Likewise.
18614         * tests/test-locale-c++.cc: Likewise.
18615         * tests/test-math-c++.cc: Likewise.
18616         * tests/test-pty-c++.cc: Likewise.
18617         * tests/test-search-c++.cc: Likewise.
18618         * tests/test-signal-c++.cc: Likewise.
18619         * tests/test-spawn-c++.cc: Likewise.
18620         * tests/test-stdio-c++.cc: Likewise.
18621         * tests/test-stdlib-c++.cc: Likewise.
18622         * tests/test-string-c++.cc: Likewise.
18623         * tests/test-sys_ioctl-c++.cc: Likewise.
18624         * tests/test-sys_select-c++.cc: Likewise.
18625         * tests/test-sys_socket-c++.cc: Likewise.
18626         * tests/test-sys_stat-c++.cc: Likewise.
18627         * tests/test-sys_time-c++.cc: Likewise.
18628         * tests/test-time-c++.cc: Likewise.
18629         * tests/test-unistd-c++.cc: Likewise.
18630         * tests/test-wchar-c++.cc: Likewise.
18631         * tests/uninorm/test-u8-nfc.c: Likewise.
18632         * tests/uninorm/test-u8-nfd.c: Likewise.
18633         * tests/uninorm/test-u8-nfkc.c: Likewise.
18634         * tests/uninorm/test-u8-nfkd.c: Likewise.
18635         * tests/uninorm/test-u16-nfc.c: Likewise.
18636         * tests/uninorm/test-u16-nfd.c: Likewise.
18637         * tests/uninorm/test-u16-nfkc.c: Likewise.
18638         * tests/uninorm/test-u16-nfkd.c: Likewise.
18639         * tests/uninorm/test-u32-nfc.c: Likewise.
18640         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18641         * tests/uninorm/test-u32-nfd.c: Likewise.
18642         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18643         * tests/uninorm/test-u32-nfkc.c: Likewise.
18644         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18645         * tests/uninorm/test-u32-nfkd.c: Likewise.
18646         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18647         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18648
18649 2010-03-27  Bruno Haible  <bruno@clisp.org>
18650
18651         Distinguish two kinds of module indicators.
18652         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18653         gl_MODULE_INDICATOR.
18654         (gl_MODULE_INDICATOR): New macro.
18655         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18656         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18657         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18658         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18659         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18660         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18661         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18662         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18663         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18664         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18665         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18666         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18668         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18669         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18670         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18671         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18672         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18673         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18674         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18675         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18676         * modules/cloexec (configure.ac): Likewise.
18677         * modules/getopt-gnu (configure.ac): Likewise.
18678         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18679         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18680         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18681         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18682
18683 2010-03-27  Bruno Haible  <bruno@clisp.org>
18684
18685         New module description field 'Comment'.
18686         * gnulib-tool: New option --extract-comment.
18687         (func_usage): Document it.
18688         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18689         (func_get_comment): New function.
18690         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18691
18692 2010-03-27  Bruno Haible  <bruno@clisp.org>
18693
18694         Addendum to 2010-02-07 commit.
18695         * gnulib-tool (func_usage): Document --extract-applicability option.
18696
18697 2010-03-27  Bruno Haible  <bruno@clisp.org>
18698
18699         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18700         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18701         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18702         rather than link errors.
18703
18704 2010-03-27  Bruno Haible  <bruno@clisp.org>
18705
18706         Avoid side effects from tests-related modules on the compilation of lib.
18707         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18708         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18709         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18710         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18711         macro.
18712         (func_import): Define a witness macro. Assign it a value that depends
18713         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18714         tests-related modules.
18715         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18716         Reported by Jim Meyering.
18717
18718 2010-03-27  Bruno Haible  <bruno@clisp.org>
18719
18720         Factorize common .m4 code.
18721         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18722         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18723         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18724         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18725         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18726         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18727         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18728         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18729         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18730         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18731         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18732         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18733         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18734         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18735         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18736         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18737         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18738         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18739         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18740         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18741         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18742         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18743         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18744         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18745         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18746         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18747         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18748         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18749         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18750         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18751         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18752         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18753
18754 2010-03-27  Bruno Haible  <bruno@clisp.org>
18755
18756         Fix a compilation error on Cygwin with g++ >= 4.3.
18757         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18758         if it is undefined or if we alias it to chmod.
18759         (lstat): Don't warn about the use of this function if it is undefined
18760         or if we alias it to stat.
18761         Reported by Simon Josefsson.
18762
18763 2010-03-27  Bruno Haible  <bruno@clisp.org>
18764
18765         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18766         * modules/getlogin (configure.ac): Update.
18767
18768         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18769         * modules/getlogin_r (configure.ac): Update.
18770
18771         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18773         * modules/inet_ntop (configure.ac): Update.
18774
18775         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18776         * modules/inet_pton (configure.ac): Update.
18777
18778         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18779         * modules/mbslen (configure.ac): Update.
18780
18781         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18782         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18783         * modules/forkpty (configure.ac): Update.
18784         * modules/openpty (configure.ac): Update.
18785
18786 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18787
18788         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18789         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18790
18791 2010-03-25  Eric Blake  <eblake@redhat.com>
18792
18793         maint: use pragma consistently across replacement headers
18794         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18795         * lib/dirent.in.h (system_header): Likewise.
18796         * lib/errno.in.h (system_header): Likewise.
18797         * lib/float.in.h (system_header): Likewise.
18798         * lib/getopt.in.h (system_header): Likewise.
18799         * lib/iconv.in.h (system_header): Likewise.
18800         * lib/inttypes.in.h (system_header): Likewise.
18801         * lib/langinfo.in.h (system_header): Likewise.
18802         * lib/locale.in.h (system_header): Likewise.
18803         * lib/math.in.h (system_header): Likewise.
18804         * lib/netdb.in.h (system_header): Likewise.
18805         * lib/netinet_in.in.h (system_header): Likewise.
18806         * lib/pty.in.h (system_header): Likewise.
18807         * lib/sched.in.h (system_header): Likewise.
18808         * lib/se-selinux.in.h (system_header): Likewise.
18809         * lib/search.in.h (system_header): Likewise.
18810         * lib/spawn.in.h (system_header): Likewise.
18811         * lib/stdarg.in.h (system_header): Likewise.
18812         * lib/stdint.in.h (system_header): Likewise.
18813         * lib/string.in.h (system_header): Likewise.
18814         * lib/strings.in.h (system_header): Likewise.
18815         * lib/sys_file.in.h (system_header): Likewise.
18816         * lib/sys_ioctl.in.h (system_header): Likewise.
18817         * lib/sys_socket.in.h (system_header): Likewise.
18818         * lib/sys_times.in.h (system_header): Likewise.
18819         * lib/sys_utsname.in.h (system_header): Likewise.
18820         * lib/sys_wait.in.h (system_header): Likewise.
18821         * lib/sysexits.in.h (system_header): Likewise.
18822         * lib/unistd.in.h (system_header): Likewise.
18823         * lib/wctype.in.h (system_header): Likewise.
18824
18825         arpa/inet: fix mingw compilation warning
18826         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18827         Reported by Matthew Bolte.
18828
18829 2010-03-25  Bruno Haible  <bruno@clisp.org>
18830
18831         Avoid collision between gnulib wrapper and libintl wrapper.
18832         * lib/printf.c (printf): Don't define if a printf wrapper is already
18833         defined in intl/printf.c.
18834         Reported by Michel Boaventura <michel@michelboaventura.com>.
18835
18836 2010-03-25  Bruno Haible  <bruno@clisp.org>
18837
18838         Use ANSI C.
18839         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18840
18841 2010-03-25  Bruno Haible  <bruno@clisp.org>
18842
18843         Minor formatting changes.
18844         * lib/acosl.c: Insert space before function argument list.
18845         * lib/argz.c: Likewise.
18846         * lib/asinl.c: Likewise.
18847         * lib/expl.c: Likewise.
18848         * lib/gen-uni-tables.c: Likewise.
18849         * lib/gettext.h: Likewise.
18850         * lib/glthread/lock.h: Likewise.
18851         * lib/tanl.c: Likewise.
18852         * lib/uniname/uniname.c: Likewise.
18853         * tests/test-idpriv-drop.c: Likewise.
18854         * tests/test-idpriv-droptemp.c: Likewise.
18855         * tests/test-lock.c: Likewise.
18856         * tests/test-tls.c: Likewise.
18857         * lib/argp-help.c: Insert space before function-like macro argument
18858         list.
18859         * lib/memcmp.c: Likewise.
18860         * tests/test-base64.c: Likewise.
18861         * lib/localename.c: Insert space before sizeof's argument list.
18862         * lib/safe-alloc.h: Likewise.
18863         * lib/file-set.h: Insert space before macro argument list.
18864         * tests/test-argp.c: Likewise.
18865         * lib/argp-namefrob.h: Insert space before function parameter list.
18866         * lib/getaddrinfo.c: Likewise.
18867         * lib/netdb.in.h: Likewise.
18868         * lib/parse-duration.h: Likewise.
18869         * lib/parse-duration.c: Likewise.
18870         * lib/poll.c: Likewise.
18871         * lib/select.c: Likewise.
18872         * lib/trim.h: Likewise.
18873         * tests/test-usleep.c: Likewise.
18874         * lib/ldexpl.c: Insert space before function parameter list and before
18875         function argument list.
18876         * lib/logl.c: Likewise.
18877         * lib/sqrtl.c: Likewise.
18878         * lib/trim.c: Likewise.
18879         * lib/cosl.c: Use GNU style indentation. Insert space before function
18880         argument list.
18881         * lib/sinl.c: Likewise.
18882         * lib/tsearch.c: Insert space after 'for'.
18883         Reported by Jim Meyering.
18884
18885 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18886
18887         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18888         config header before grepping, as it's not present before
18889         autoreconf/configure are run.  Reported by Simon Josefsson.
18890
18891 2010-03-23  Bruno Haible  <bruno@clisp.org>
18892
18893         pt_chown: Make it work with automake < 1.11.
18894         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18895         Reported by Simon Josefsson.
18896
18897 2010-03-23  Bruno Haible  <bruno@clisp.org>
18898
18899         pt_chown: Don't depend on GPLed modules.
18900         * lib/pt_chown.c: Don't include idpriv.h.
18901         (main): Don't drop privileges.
18902         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18903         Reported by Simon Josefsson.
18904
18905 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18906
18907         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18908         suggestions from karl@freefriends.org (Karl Berry).
18909
18910 2010-03-22  Eric Blake  <eblake@redhat.com>
18911
18912         gethostname: further tweaks
18913         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18914         are overriding gethostname.
18915         Suggested by Bruno Haible.
18916
18917 2010-03-21  Bruno Haible  <bruno@clisp.org>
18918
18919         Fix comments.
18920         * lib/forkpty.c (rpl_forkpty): Fix comment.
18921         * lib/openpty.c (rpl_openpty): Likewise.
18922         Reported by Eric Blake.
18923
18924 2010-03-22  Eric Blake  <eblake@redhat.com>
18925
18926         gethostname: fix build on mingw
18927         * lib/unistd.in.h (includes): Work around fact that mingw
18928         <winsock2.h> re-includes <unistd.h>, by avoiding any
18929         redeclarations if we are being included by <winsock2.h>.
18930         Reported by Matthias Bolte.
18931
18932 2010-03-21  Bruno Haible  <bruno@clisp.org>
18933
18934         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18935         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18936         modifications.
18937         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18938         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18939         provide the replacement.
18940         * modules/forkpty (Depends-on): Add openpty, login_tty.
18941         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18942         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18943         * doc/glibc-functions/forkpty.texi: More supported platforms.
18944         * config/srclist.txt: Add forkpty.c (commented).
18945
18946 2010-03-21  Bruno Haible  <bruno@clisp.org>
18947
18948         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18949         (Makefile.am): Verify that PTY_LIB is defined.
18950
18951         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18952
18953 2010-03-21  Bruno Haible  <bruno@clisp.org>
18954
18955         Tests for module 'login_tty'.
18956         * modules/login_tty-tests: New file.
18957         * tests/test-login_tty.c: New file.
18958
18959         New module 'login_tty'.
18960         * lib/login_tty.c: New file.
18961         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18962         * modules/login_tty: New file.
18963         * doc/glibc-functions/login_tty.texi: Mention the new module.
18964
18965 2010-03-21  Bruno Haible  <bruno@clisp.org>
18966
18967         login_tty: Documentation.
18968         * doc/glibc-functions/login_tty.texi: New file.
18969         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18970
18971 2010-03-21  Bruno Haible  <bruno@clisp.org>
18972
18973         pty: Consistent macro naming.
18974         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18975         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18976         * modules/pty (configure.ac): Update.
18977
18978 2010-03-21  Bruno Haible  <bruno@clisp.org>
18979
18980         Tests for openpty: Make stricter.
18981         * tests/test-openpty.c (main): Add test of canonical processing and
18982         erase.
18983         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18984
18985         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18986         * lib/openpty.c (openpty): New replacement function.
18987         * lib/pty.in.h: Include <termios.h>.
18988         (openpty): Update declaration. Add comments.
18989         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18990         is not declared, arrange to provide the replacement. Check for _getpty
18991         and posix_openpt.
18992         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18993         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18994         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18995         * modules/pty-tests (test_pty_c___LDADD): New variable.
18996         * doc/glibc-functions/openpty.texi: More supported platforms.
18997
18998 2010-03-21  Bruno Haible  <bruno@clisp.org>
18999
19000         setenv: Tweaks.
19001         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19002         the test program.
19003         * doc/posix-functions/setenv.texi: Update platforms list.
19004
19005 2010-03-21  Bruno Haible  <bruno@clisp.org>
19006
19007         New module 'unlockpt'.
19008         * lib/unlockpt.c: New file, from glibc with modifications.
19009         * m4/unlockpt.m4: New file.
19010         * modules/unlockpt: New file.
19011         * lib/stdlib.in.h (unlockpt): New declaration.
19012         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19013         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19014         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19015         HAVE_UNLOCKPT.
19016         * doc/posix-functions/unlockpt.texi: Mention the new module.
19017         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19018         * config/srclist.txt: Add unlockpt.c (commented).
19019
19020 2010-03-21  Jim Meyering  <meyering@redhat.com>
19021
19022         maint.mk: prohibit inclusion of "intprops.h" without use
19023         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19024
19025 2010-03-21  Bruno Haible  <bruno@clisp.org>
19026
19027         New module 'grantpt'.
19028         * lib/grantpt.c: New file, from glibc with modifications.
19029         * m4/grantpt.m4: New file.
19030         * modules/grantpt: New file.
19031         * lib/stdlib.in.h (grantpt): New declaration.
19032         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19033         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19034         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19035         HAVE_GRANTPT.
19036         * doc/posix-functions/grantpt.texi: Mention the new module.
19037         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19038         * config/srclist.txt: Add grantpt.c (commented).
19039
19040 2010-03-21  Bruno Haible  <bruno@clisp.org>
19041
19042         New module 'pt_chown'.
19043         * lib/pt_chown.c: New file, from glibc with modifications.
19044         * lib/pty-private.h: New file, from glibc with modifications.
19045         * modules/pt_chown: New file.
19046         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19047
19048 2010-03-21  Bruno Haible  <bruno@clisp.org>
19049
19050         Tests for module 'ptsname'.
19051         * modules/ptsname-tests: New file.
19052         * tests/test-ptsname.c: New file.
19053
19054         New module 'ptsname'.
19055         * lib/ptsname.c: New file, from glibc with modifications.
19056         * m4/ptsname.m4: New file.
19057         * modules/ptsname: New file.
19058         * lib/stdlib.in.h (ptsname): New declaration.
19059         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19060         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19061         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19062         HAVE_PTSNAME.
19063         * doc/posix-functions/ptsname.texi: Mention the new module.
19064         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19065         * config/srclist.txt: Add ptsname.c (commented).
19066
19067 2010-03-21  Bruno Haible  <bruno@clisp.org>
19068
19069         Tests for module 'ttyname_r'.
19070         * modules/ttyname_r-tests: New file.
19071         * tests/test-ttyname_r.c: New file.
19072
19073         New module 'ttyname_r'.
19074         * lib/ttyname_r.c: New file.
19075         * m4/ttyname_r.m4: New file.
19076         * modules/ttyname_r: New file.
19077         * lib/unistd.in.h (ttyname_r): New declaration.
19078         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19079         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19080         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19081         HAVE_TTYNAME_R.
19082         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19083         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19084
19085 2010-03-20  Bruno Haible  <bruno@clisp.org>
19086
19087         signal: Undefine macro definitions in C++ mode.
19088         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19089         sigfillset): Undefine macro definitions from the system header in C++
19090         mode.
19091         Reported by John W. Eaton <jwe@gnu.org>.
19092
19093 2010-03-20  Bruno Haible  <bruno@clisp.org>
19094
19095         Ensure no #include statements inside extern "C" { ... }.
19096         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19097         contain #include statements.
19098         * lib/time.in.h: Likewise.
19099
19100 2010-03-20  Bruno Haible  <bruno@clisp.org>
19101
19102         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19103         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19104         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19105         Reported by John W. Eaton <jwe@gnu.org>.
19106
19107 2010-03-20  Bruno Haible  <bruno@clisp.org>
19108
19109         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19110         Reported by Jim Meyering.
19111
19112 2010-03-20  Bruno Haible  <bruno@clisp.org>
19113
19114         pipe: Set errno upon failure.
19115         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19116         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19117         errno value in error message.
19118
19119 2010-03-20  Bruno Haible  <bruno@clisp.org>
19120             Jim Meyering  <meyering@redhat.com>
19121
19122         lchown: Avoid "unused variable" warning.
19123         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19124
19125 2010-03-20  Bruno Haible  <bruno@clisp.org>
19126
19127         Work around unlink() bug on MacOS X 10.5.6.
19128         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19129         attempting to unlink a parent directory.
19130         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19131         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19132         activate for the replacement function.
19133         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19134
19135 2010-03-20  Bruno Haible  <bruno@clisp.org>
19136
19137         Fix link errors on Solaris 8.
19138         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19139         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19140
19141 2010-03-19  Jim Meyering  <meyering@redhat.com>
19142
19143         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19144         The _LIBC implementation of build_range_exp correctly honors the
19145         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19146         However, the non-_LIBC implementation would ignore that syntax-bit
19147         flag and return REG_ERANGE unconditionally.
19148         This change makes it honor that flag.
19149         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19150         Make two pointer parameters "const".
19151         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19152         (parse_bracket_exp): Update caller.
19153
19154         regex.m4: correct the reversed range endpoint ([b-a]) test
19155         * m4/regex.m4: When requiring that [b-a] evoke failure,
19156         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19157         test pass once again for x86-based systems.
19158
19159 2010-03-19  Bruno Haible  <bruno@clisp.org>
19160
19161         scandir: Fix link error on Solaris 8.
19162         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19163         macros.
19164
19165 2010-03-19  Bruno Haible  <bruno@clisp.org>
19166
19167         getusershell: Fix documentation.
19168         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19169         module.
19170         * doc/glibc-functions/setusershell.texi: Likewise.
19171
19172         getusershell: Provide declaration, missing on Solaris 9.
19173         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19174         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19175         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19176         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19178         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19179         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19180         HAVE_GETUSERSHELL.
19181         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19182
19183 2010-03-19  Bruno Haible  <bruno@clisp.org>
19184
19185         wctype: Provide iswblank function.
19186         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19187         exists and is fine.
19188         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19189         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19190         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19191         * doc/posix-functions/iswblank.texi: Update.
19192
19193 2010-03-19  Bruno Haible  <bruno@clisp.org>
19194
19195         Tests of module 'pty' in C++ mode.
19196         * modules/pty-tests: New file.
19197         * tests/test-pty-c++.cc: New file.
19198         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19199
19200 2010-03-19  Eric Blake  <eblake@redhat.com>
19201
19202         logb: fix documentation
19203         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19204         1.5 declaration bug.
19205
19206         forkpty, openpty: prefer glibc's const-safe prototype
19207         * lib/forkpty.c (rpl_forkpty): New file.
19208         * lib/openpty.c (rpl_openpty): Likewise.
19209         * modules/forkpty (Files): Distribute it.
19210         * modules/openpty (Files): Likewise.
19211         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19212         check...
19213         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19214         replacement for for non-const BSD signature.
19215         * modules/pty (Makefile.am): Substitute witnesses.
19216         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19217         * tests/test-forkpty.c: Update signature check.
19218         * tests/test-openpty.c: Likewise.
19219         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19220         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19221
19222         forkpty, openpty: split functions into new modules
19223         * modules/pty (Makefile.am): Substitute new witnesses.
19224         (Libraries): Move library detection...
19225         * modules/forkpty: ...into new module.
19226         * modules/openpty: Another new module.
19227         * modules/pty-tests: Rename and split...
19228         * modules/forkpty-tests: ...to this...
19229         * modules/openpty-tests: ...and this.
19230         * tests/test-pty.c: Rename and split...
19231         * tests/test-forkpty.c: ...to this...
19232         * tests/test-openpty.c: ...and this.
19233         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19234         (gl_PTY): Split library searching...
19235         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19236         (gl_FORKPTY, gl_OPENPTY): New macros.
19237         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19238         * NEWS: Mention the split.
19239         * MODULES.html.sh (Misc): Document the modules.
19240         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19241         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19242
19243         pty: improve replacement header
19244         * lib/pty.in.h: New file.
19245         * modules/pty (Files): Ship it.
19246         (Makefile.am): Always build replacement.
19247         * m4/pty.m4: Rename...
19248         * m4/pty_h.m4: ...to this.
19249         (gl_PTY): Modernize setting of witness macros; update check of
19250         forkpty to take proper advantage of cache.
19251         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19252
19253         getopt: avoid compiler warning
19254         * lib/getopt.c (attribute_hidden): Remove unused macro.
19255
19256 2010-03-18  Bruno Haible  <bruno@clisp.org>
19257
19258         Fix link errors on Solaris 8.
19259         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19260         * modules/search-tests (test_search_c___LDADD): Likewise.
19261         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19262         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19263         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19264         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19265         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19266         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19267         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19268
19269 2010-03-18  Bruno Haible  <bruno@clisp.org>
19270
19271         Fix bug introduced on 2010-03-14.
19272         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19273         (gl_SPAWN_H): Require it.
19274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19275         Reported by Simon Josefsson.
19276
19277 2010-03-18  Bruno Haible  <bruno@clisp.org>
19278
19279         Fix typo introduced on 2009-12-31.
19280         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19281         posix_spawn_file_actions_adddup2.
19282
19283 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19284         and Eric Blake  <eblake@redhat.com>
19285
19286         test-vc-list-files-git: make more robust
19287         * tests/test-vc-list-files-git.sh: Unset problematic environment
19288         variables.  Chain commands together.
19289
19290 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19291
19292         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19293         `AC_CHECK_DECL' invocation.
19294
19295 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19296
19297         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19298         appears before executable statements. Suggested by Petr Sumbera
19299         <Petr.Sumbera@Sun.COM>.
19300
19301 2010-03-14  Bruno Haible  <bruno@clisp.org>
19302
19303         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19304         portability problems. Instead use a simpler test.
19305         (main): Check that invalid arguments are rejected only on Linux.
19306
19307 2010-03-14  Bruno Haible  <bruno@clisp.org>
19308
19309         Fix bug introduced on 2009-12-31.
19310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19311         gl_PREREQ_SYS_H_WINSOCK2 always.
19312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19313         SYS_SOCKET_H variable.
19314         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19315         Update comments.
19316         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19317         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19318         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19319         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19320         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19321
19322 2010-03-14  Bruno Haible  <bruno@clisp.org>
19323
19324         Fix values returned by sinl, cosl.
19325         * lib/trigl.h: Add specification comments.
19326         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19327         that combines the values from the precomputed table with the values of
19328         the Chebyshev polynomials.
19329
19330 2010-03-14  Bruno Haible  <bruno@clisp.org>
19331
19332         Fix compilation error when modules 'posix_spawn[p]' are not used.
19333         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19334         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19335
19336 2010-03-14  Bruno Haible  <bruno@clisp.org>
19337
19338         Fix compilation error on mingw when module 'time_r' is not used.
19339         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19340         is 1.
19341         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19342         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19343         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19344         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19345
19346 2010-03-14  Bruno Haible  <bruno@clisp.org>
19347
19348         Fix compilation error with Sun C.
19349         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19350         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19351         instead of GCC specific ULONG_LONG_MAX.
19352         * lib/xstrtoll.c: Likewise.
19353         * lib/xstrtoull.c: Likewise.
19354
19355 2010-03-13  Bruno Haible  <bruno@clisp.org>
19356
19357         Allow the user to disable C++ code and tests.
19358         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19359         (gl_PROG_ANSI_CXX): Require it.
19360
19361 2010-03-13  Bruno Haible  <bruno@clisp.org>
19362
19363         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19364         cases.
19365
19366 2010-03-13  Bruno Haible  <bruno@clisp.org>
19367
19368         Test that gnulib does not break the standard C++ headers.
19369         * tests/test-locale-c++2.cc: New file.
19370         * modules/locale-tests (Files): Add it.
19371         (Makefile.am): Compile it for test-locale-c++.
19372         * tests/test-math-c++2.cc: New file.
19373         * modules/math-tests (Files): Add it.
19374         (Makefile.am): Compile it for test-math-c++.
19375         * tests/test-signal-c++2.cc: New file.
19376         * modules/signal-tests (Files): Add it.
19377         (Makefile.am): Compile it for test-signal-c++.
19378         * tests/test-stdio-c++2.cc: New file.
19379         * modules/stdio-tests (Files): Add it.
19380         (Makefile.am): Compile it for test-stdio-c++.
19381         * tests/test-stdlib-c++2.cc: New file.
19382         * modules/stdlib-tests (Files): Add it.
19383         (Makefile.am): Compile it for test-stdlib-c++.
19384         * tests/test-string-c++2.cc: New file.
19385         * modules/string-tests (Files): Add it.
19386         (Makefile.am): Compile it for test-string-c++.
19387         * tests/test-time-c++2.cc: New file.
19388         * modules/time-tests (Files): Add it.
19389         (Makefile.am): Compile it for test-time-c++.
19390         Reported by John W. Eaton <jwe@gnu.org>.
19391
19392 2010-03-13  Bruno Haible  <bruno@clisp.org>
19393
19394         * gnulib-tool (func_usage): Clarify which options are available for
19395         --create-testdir and --create-megatestdir.
19396
19397 2010-03-13  Bruno Haible  <bruno@clisp.org>
19398
19399         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19400         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19401         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19402         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19403         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19404         when appropriate.
19405         Reported by Jim Meyering.
19406
19407 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19408
19409         * gnulib-tool (func_import): Explain origin of code.
19410
19411 2010-03-12  Bruno Haible  <bruno@clisp.org>
19412
19413         Fix problem with automake's definition of CXXLINK.
19414         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19415         Reported by Simon Josefsson and Ludovic Courtès.
19416
19417 2010-03-12  Bruno Haible  <bruno@clisp.org>
19418
19419         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19420         stable releases.
19421
19422 2010-03-11  Bruno Haible  <bruno@clisp.org>
19423
19424         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19425         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19426         whether the system provides one variant or multiple variants of the
19427         function.
19428         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19429         C++ compilers.
19430         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19431         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19432         Reported by Jim Meyering.
19433
19434 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19435
19436         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19437
19438 2010-03-08  Bruno Haible  <bruno@clisp.org>
19439
19440         gnulib-tool: Add support for --libtool in --create-testdir.
19441         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19442         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19443
19444 2010-03-08  Eric Blake  <eblake@redhat.com>
19445
19446         gnulib-tool.texi: mention possibility of git submodule
19447         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19448         submodules.
19449         * doc/.gitignore: Ignore another generated file.
19450
19451 2010-03-08  Karl Berry  <karl@gnu.org>
19452
19453         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19454         of committing gnulib files while skipping others.
19455
19456 2010-03-07  Bruno Haible  <bruno@clisp.org>
19457
19458         Tests of module 'wctype' in C++ mode.
19459         * tests/test-wctype-c++.cc: New file.
19460         * modules/wctype-tests (Files): Add it and tests/signature.h.
19461         (Depends-on): Add ansi-c++-opt.
19462         (Makefile.am): Arrange to compile and run test-wctype-c++.
19463
19464         Tests of module 'wchar' in C++ mode.
19465         * tests/test-wchar-c++.cc: New file.
19466         * modules/wchar-tests (Files): Add it and tests/signature.h.
19467         (Depends-on): Add ansi-c++-opt.
19468         (Makefile.am): Arrange to compile and run test-wchar-c++.
19469         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19470         gl_MODULE_INDICATOR.
19471
19472         Tests of module 'unistd' in C++ mode.
19473         * tests/test-unistd-c++.cc: New file.
19474         * modules/unistd-tests (Files): Add it and tests/signature.h.
19475         (Depends-on): Add ansi-c++-opt.
19476         (Makefile.am): Arrange to compile and run test-unistd-c++.
19477         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19478         gl_MODULE_INDICATOR.
19479
19480         Tests of module 'time' in C++ mode.
19481         * tests/test-time-c++.cc: New file.
19482         * modules/time-tests (Files): Add it and tests/signature.h.
19483         (Depends-on): Add ansi-c++-opt.
19484         (Makefile.am): Arrange to compile and run test-time-c++.
19485         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19486
19487         Tests of module 'sys_time' in C++ mode.
19488         * tests/test-sys_time-c++.cc: New file.
19489         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19490         (Depends-on): Add ansi-c++-opt.
19491         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19492         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19493         gl_MODULE_INDICATOR.
19494
19495         Tests of module 'sys_stat' in C++ mode.
19496         * tests/test-sys_stat-c++.cc: New file.
19497         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19498         (Depends-on): Add ansi-c++-opt.
19499         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19500         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19501         gl_MODULE_INDICATOR.
19502
19503         Tests of module 'sys_socket' in C++ mode.
19504         * tests/test-sys_socket-c++.cc: New file.
19505         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19506         (Depends-on): Add ansi-c++-opt.
19507         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19508         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19509         gl_MODULE_INDICATOR.
19510
19511         Tests of module 'sys_select' in C++ mode.
19512         * tests/test-sys_select-c++.cc: New file.
19513         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19514         (Depends-on): Add ansi-c++-opt.
19515         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19516         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19517         gl_MODULE_INDICATOR.
19518
19519         Tests of module 'sys_ioctl' in C++ mode.
19520         * tests/test-sys_ioctl-c++.cc: New file.
19521         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19522         (Depends-on): Add ansi-c++-opt.
19523         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19524         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19525         gl_MODULE_INDICATOR.
19526
19527         Tests of module 'string' in C++ mode.
19528         * tests/test-string-c++.cc: New file.
19529         * modules/string-tests (Files): Add it and tests/signature.h.
19530         (Depends-on): Add ansi-c++-opt.
19531         (Makefile.am): Arrange to compile and run test-string-c++.
19532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19533         gl_MODULE_INDICATOR.
19534
19535         Tests of module 'stdlib' in C++ mode.
19536         * tests/test-stdlib-c++.cc: New file.
19537         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19538         (Depends-on): Add ansi-c++-opt.
19539         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19540         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19541         gl_MODULE_INDICATOR.
19542
19543         Tests of module 'stdio' in C++ mode.
19544         * tests/test-stdio-c++.cc: New file.
19545         * modules/stdio-tests (Files): Add it and tests/signature.h.
19546         (Depends-on): Add ansi-c++-opt.
19547         (Makefile.am): Arrange to compile and run test-stdio-c++.
19548         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19549         gl_MODULE_INDICATOR.
19550
19551         Tests of module 'spawn' in C++ mode.
19552         * tests/test-spawn-c++.cc: New file.
19553         * modules/spawn-tests (Files): Add it and tests/signature.h.
19554         (Depends-on): Add ansi-c++-opt.
19555         (Makefile.am): Arrange to compile and run test-spawn-c++.
19556         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19557         gl_MODULE_INDICATOR.
19558
19559         Tests of module 'signal' in C++ mode.
19560         * tests/test-signal-c++.cc: New file.
19561         * modules/signal-tests (Files): Add it and tests/signature.h.
19562         (Depends-on): Add ansi-c++-opt.
19563         (Makefile.am): Arrange to compile and run test-signal-c++.
19564         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19565         gl_MODULE_INDICATOR.
19566
19567         Tests of module 'search' in C++ mode.
19568         * tests/test-search-c++.cc: New file.
19569         * modules/search-tests (Files): Add it and tests/signature.h.
19570         (Depends-on): Add ansi-c++-opt.
19571         (Makefile.am): Arrange to compile and run test-search-c++.
19572         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19573         gl_MODULE_INDICATOR.
19574
19575         Tests of module 'math' in C++ mode.
19576         * tests/test-math-c++.cc: New file.
19577         * modules/math-tests (Files): Add it and tests/signature.h.
19578         (Depends-on): Add ansi-c++-opt.
19579         (Makefile.am): Arrange to compile and run test-math-c++.
19580         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19581
19582         Tests of module 'locale' in C++ mode.
19583         * tests/test-locale-c++.cc: New file.
19584         * modules/locale-tests (Files): Add it and tests/signature.h.
19585         (Depends-on): Add ansi-c++-opt.
19586         (Makefile.am): Arrange to compile and run test-locale-c++.
19587         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19588         gl_MODULE_INDICATOR.
19589
19590         Tests of module 'langinfo' in C++ mode.
19591         * tests/test-langinfo-c++.cc: New file.
19592         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19593         (Depends-on): Add ansi-c++-opt.
19594         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19595         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19596         gl_MODULE_INDICATOR.
19597
19598         Tests of module 'iconv-h' in C++ mode.
19599         * tests/test-iconv-h-c++.cc: New file.
19600         * modules/iconv-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-iconv-h-c++.
19603
19604         Tests of module 'glob' in C++ mode.
19605         * tests/test-glob-c++.cc: New file.
19606         * modules/glob-tests (Files): Add it.
19607         (Depends-on): Add ansi-c++-opt.
19608         (Makefile.am): Arrange to compile and run test-glob-c++.
19609
19610         Tests of module 'fcntl-h' in C++ mode.
19611         * tests/test-fcntl-h-c++.cc: New file.
19612         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19613         (Depends-on): Add ansi-c++-opt.
19614         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19615         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19616         gl_MODULE_INDICATOR.
19617
19618         Tests of module 'dirent' in C++ mode.
19619         * tests/test-dirent-c++.cc: New file.
19620         * modules/dirent-tests (Files): Add it and tests/signature.h.
19621         (Depends-on): Add ansi-c++-opt.
19622         (Makefile.am): Arrange to compile and run test-dirent-c++.
19623         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19624         gl_MODULE_INDICATOR.
19625
19626         New module 'ansi-c++-opt'.
19627         * modules/ansi-c++-opt: New file.
19628         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19629
19630         Document C++ namespace mode.
19631         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19632
19633         wctype: Avoid #define replacements in C++ mode.
19634         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19635         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19636         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19637         In C++, define a namespaced alias symbol.
19638         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19639         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19640         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19641         rule.
19642
19643         wchar: Avoid #define replacements in C++ mode.
19644         * lib/wchar.in.h: Include c++defs.h.
19645         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19646         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19647         symbol.
19648         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19649         * modules/wchar (Depends-on): Add c++defs.
19650         (Makefile.am): Update wchar.h rule.
19651
19652         unistd: Avoid #define replacements in C++ mode.
19653         * lib/unistd.in.h: Include c++defs.h.
19654         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19655         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19656         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19657         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19658         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19659         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19660         symbol.
19661         (environ): Update.
19662         * modules/unistd (Depends-on): Add c++defs.
19663         (Makefile.am): Update unistd.h rule.
19664
19665         time: Avoid #define replacements in C++ mode.
19666         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19667         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19668         define a namespaced alias symbol.
19669         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19670         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19671         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19672         * modules/time (Depends-on): Add c++defs, warn-on-use.
19673         (Makefile.am): Update time.h rule.
19674         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19675         * modules/nanosleep (configure.ac): Likewise.
19676         * modules/strptime (configure.ac): Likewise.
19677         * modules/timegm (configure.ac): Likewise.
19678
19679         sys_time: Avoid #define replacements in C++ mode.
19680         * lib/sys_time.in.h: Include c++defs.h.
19681         (gettimeofday): In C++, define a namespaced alias symbol.
19682         * modules/sys_time (Depends-on): Add c++defs.
19683         (Makefile.am): Update sys/time.h rule.
19684
19685         sys_stat: Avoid #define replacements in C++ mode.
19686         * lib/sys_stat.in.h: Include c++defs.h.
19687         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19688         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19689         namespaced alias symbol.
19690         In C++, define a namespaced alias symbol.
19691         * modules/sys_stat (Depends-on): Add c++defs.
19692         (Makefile.am): Update sys/stat.h rule.
19693
19694         sys_socket: Avoid #define replacements in C++ mode.
19695         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19696         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19697         definitions also when the system has a <sys/socket.h>.
19698         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19699         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19700         In C++, define a namespaced alias symbol.
19701         * modules/sys_socket (Depends-on): Add c++defs.
19702         (Makefile.am): Update sys/socket.h rule.
19703
19704         sys_select: Avoid #define replacements in C++ mode.
19705         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19706         definitions also when the system has a <sys/select.h>.
19707         (select): In C++, define a namespaced alias symbol.
19708         * modules/sys_select (Depends-on): Add c++defs.
19709         (Makefile.am): Update sys/select.h rule.
19710
19711         sys_ioctl: Avoid #define replacements in C++ mode.
19712         * lib/sys_ioctl.in.h: Include c++defs.h.
19713         (ioctl): In C++, define a namespaced alias symbol.
19714         * modules/sys_ioctl (Depends-on): Add c++defs.
19715         (Makefile.am): Update sys/ioctl.h rule.
19716
19717         string: Avoid #define replacements in C++ mode.
19718         * lib/string.in.h: Include c++defs.h.
19719         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19720         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19721         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19722         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19723         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19724         * modules/string (Depends-on): Add c++defs.
19725         (Makefile.am): Update string.h rule.
19726
19727         stdlib: Avoid #define replacements in C++ mode.
19728         * lib/stdlib.in.h: Include c++defs.h.
19729         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19730         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19731         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19732         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19733         symbol.
19734         * modules/stdlib (Depends-on): Add c++defs.
19735         (Makefile.am): Update stdlib.h rule.
19736
19737         stdio: Avoid #define replacements in C++ mode.
19738         * lib/stdio.in.h: Include c++defs.h.
19739         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19740         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19741         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19742         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19743         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19744         namespaced alias symbol.
19745         * modules/stdio (Depends-on): Add c++defs.
19746         (Makefile.am): Update stdio.h rule.
19747
19748         spawn: Avoid #define replacements in C++ mode.
19749         * lib/spawn.in.h: Include c++defs.h.
19750         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19751         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19752         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19753         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19754         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19755         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19756         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19757         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19758         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19759         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19760         In C++, define a namespaced alias symbol.
19761         * modules/spawn (Depends-on): Add c++defs.
19762         (Makefile.am): Update spawn.h rule.
19763
19764         signal: Avoid #define replacements in C++ mode.
19765         * lib/signal.in.h: Include c++defs.h.
19766         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19767         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19768         namespaced alias symbol.
19769         * modules/signal (Depends-on): Add c++defs.
19770         (Makefile.am): Update signal.h rule.
19771
19772         search: Avoid #define replacements in C++ mode.
19773         * lib/search.in.h: Include c++defs.h.
19774         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19775         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19776         symbol.
19777         * modules/search (Depends-on): Add c++defs.
19778         (Makefile.am): Update search.h rule.
19779
19780         math: Avoid #define replacements in C++ mode.
19781         * lib/math.in.h: Include c++defs.h.
19782         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19783         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19784         trunc, truncl): In C++, define a namespaced alias symbol.
19785         * modules/math (Depends-on): Add c++defs.
19786         (Makefile.am): Update math.h rule.
19787
19788         locale: Avoid #define replacements in C++ mode.
19789         * lib/locale.in.h: Include c++defs.h.
19790         (duplocale): In C++, define a namespaced alias symbol.
19791         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19792         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19793         * modules/locale (Depends-on): Add c++defs.
19794         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19795
19796         langinfo: Avoid #define replacements in C++ mode.
19797         * lib/langinfo.in.h: Include c++defs.h.
19798         (nl_langinfo): In C++, define a namespaced alias symbol.
19799         * modules/langinfo (Depends-on): Add c++defs.
19800         (Makefile.am): Update langinfo.h rule.
19801
19802         iconv-h: Avoid #define replacements in C++ mode.
19803         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19804         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19805         symbol.
19806         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19807         whenever iconv is present.
19808         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19809         (Makefile.am): Update iconv.h rule.
19810
19811         glob: Avoid #define replacements in C++ mode.
19812         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19813         (_gl_glob_errfunc_fn): New type.
19814         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19815         symbol.
19816         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19817         (Makefile.am): Update glob.h rule.
19818
19819         fcntl-h: Avoid #define replacements in C++ mode.
19820         * lib/fcntl.in.h: Include c++defs.h.
19821         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19822         * modules/fcntl-h (Depends-on): Add c++defs.
19823         (Makefile.am): Update fcntl.h rule.
19824
19825         dirent: Avoid #define replacements in C++ mode.
19826         * lib/dirent.in.h: Include c++defs.h.
19827         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19828         namespaced alias symbol.
19829         (dirfd): Update declaration.
19830         * modules/dirent (Depends-on): Add c++defs.
19831         (Makefile.am): Update dirent.h rule.
19832
19833         ctype: Make it usable in C++ code.
19834         * lib/ctype.in.h: Include c++defs.h.
19835         (isblank): Declare as extern "C".
19836         * modules/ctype (Depends-on): Add c++defs.
19837         (Makefile.am): Update ctype.h rule.
19838
19839         New module 'c++defs'.
19840         * modules/c++defs: New file.
19841         * build-aux/c++defs.h: New file.
19842         Reported by John W. Eaton <jwe@gnu.org>.
19843
19844 2010-03-07  Bruno Haible  <bruno@clisp.org>
19845
19846         logb: Provide missing declaration for Cygwin.
19847         * lib/math.in.h (logb): New declaration.
19848         * m4/logb.m4: New file.
19849         * modules/logb (Files): Add m4/logb.m4.
19850         (Depends-on): Add math.
19851         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19852         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19854         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19855         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19856
19857 2010-03-07  Bruno Haible  <bruno@clisp.org>
19858
19859         Fix test-cond link error.
19860         * tests/test-cond.c: Include <stdio.h>.
19861
19862 2010-03-07  Bruno Haible  <bruno@clisp.org>
19863
19864         Fix test-dirent-safer link error.
19865         * modules/dirent-safer-tests (Makefile.am): Define
19866         test_dirent_safer_LDADD.
19867
19868 2010-03-07  Bruno Haible  <bruno@clisp.org>
19869
19870         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19871         among default module list.
19872
19873 2010-03-07  Bruno Haible  <bruno@clisp.org>
19874
19875         Fix link error on platforms with GNU libiconv.
19876         * modules/unistr/u8-strcoll-tests (Makefile): Define
19877         test_u8_strcoll_LDADD.
19878         * modules/unistr/u16-strcoll-tests (Makefile): Define
19879         test_u16_strcoll_LDADD.
19880         * modules/unistr/u32-strcoll-tests (Makefile): Define
19881         test_u32_strcoll_LDADD.
19882
19883 2010-03-07  Bruno Haible  <bruno@clisp.org>
19884
19885         Use POSIX declarations for socket functions.
19886         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19887         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19888         rpl_sendto): Change declaration to match POSIX.
19889         * lib/connect.c (rpl_connect): Likewise.
19890         * lib/accept.c (rpl_accept): Likewise.
19891         * lib/bind.c (rpl_bind): Likewise.
19892         * lib/getpeername.c (rpl_getpeername): Likewise.
19893         * lib/getsockname.c (rpl_getsockname): Likewise.
19894         * lib/recv.c (rpl_recv): Likewise.
19895         * lib/send.c (rpl_send): Likewise.
19896         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19897         * lib/sendto.c (rpl_sendto): Likewise.
19898
19899 2010-03-06  Bruno Haible  <bruno@clisp.org>
19900
19901         Clarify access, euidaccess, faccessat.
19902         * doc/posix-functions/faccessat.texi: Mention security problem under
19903         "Other problems", not "Portability problems".
19904         * doc/posix-functions/access.texi: Likewise. Mention a related security
19905         problem.
19906         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19907         * lib/euidaccess.c: Add comments about platforms.
19908         * lib/unistd.in.h (access, euidaccess): Add warnings.
19909
19910 2010-03-07  Bruno Haible  <bruno@clisp.org>
19911
19912         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19913         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19914         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19915         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19916         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19917         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19918         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19919         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19920         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19922         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19923         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19924         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19925         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19926         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19927         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19928         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19929         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19930         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19931         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19932         Likewise.
19933         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19934         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19935         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19936         Likewise.
19937         * tests/test-spawn.c (main): Make it work when
19938         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19939
19940 2010-03-07  Bruno Haible  <bruno@clisp.org>
19941
19942         Fix incorrect Makefile.am generation in German locale.
19943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19944         Execute sed command with character range in C locale.
19945
19946 2010-03-06  Bruno Haible  <bruno@clisp.org>
19947
19948         Tests for module 'iconv-h'.
19949         * modules/iconv-h-tests: New file.
19950         * tests/test-iconv-h.c: New file.
19951
19952         New module 'iconv-h'.
19953         * modules/iconv-h: New file.
19954         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19955         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19956         (configure.ac): Remove gl_ICONV_H.
19957         (Makefile.am): Remove rule for iconv.h.
19958
19959 2010-03-06  Bruno Haible  <bruno@clisp.org>
19960
19961         More consistent naming of *.m4 files.
19962         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19963         * modules/wctype (Files): Update.
19964
19965         More consistent naming of *.m4 files.
19966         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19967         * modules/wchar (Files): Update.
19968
19969 2010-03-06  Jim Meyering  <meyering@redhat.com>
19970
19971         euidaccess: relax license to LGPLv2+
19972         * modules/euidaccess (License): Relax to LGPLv2+.
19973
19974 2010-03-06  Bruno Haible  <bruno@clisp.org>
19975
19976         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19977         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19978         (Makefile.am): Augment lib_SOURCES instead.
19979
19980 2010-03-04  Jim Meyering  <meyering@redhat.com>
19981
19982         utime: remove obsolete module
19983         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19984         unnecessary for years, and has been marked as obsolete for 10 months.
19985         * modules/utime: Remove file.
19986         * lib/utime.c: Remove file.
19987         * m4/utime.m4: Remove file.
19988         * m4/utimes-null.m4: Remove file.
19989         * doc/posix-functions/utime.texi (utime): Remove reference to
19990         the module.  Move the sole "fixed by gnulib" item into the
19991         "problems not fixed by Gnulib" list.
19992         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19993
19994 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19995
19996         * modules/exit (License): Relax license to LGPLv2+.
19997         (Status): Mark as obsolete.
19998         * NEWS: Mention deprecated 'exit' module.
19999         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20000         of now obsolete 'exit'.
20001
20002 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20003
20004         fts-lgpl: remove unused module
20005         * modules/fts-lgpl: Remove.
20006         * MODULES.html.sh (func_all_modules): Adjust.
20007         * check-module (find_included_lib_files): Adjust.
20008         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20009
20010 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20011
20012         copy-acl: enhance Solaris ACL error handling
20013         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20014         * lib/set-mode-acl.c (qset_acl): Likewise.
20015
20016 2010-03-02  Bruno Haible  <bruno@clisp.org>
20017
20018         spawn: Don't override the system defined values on FreeBSD 8.
20019         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20020         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20021         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20022         if HAVE_POSIX_SPAWN is 1.
20023         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20024
20025 2010-03-01  Bruno Haible  <bruno@clisp.org>
20026
20027         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20028         regarding Automake.
20029
20030 2010-02-25  Bruno Haible  <bruno@clisp.org>
20031
20032         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20033         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20034         setting, not afterwards.
20035         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20036
20037 2010-02-24  Eric Blake  <eblake@redhat.com>
20038
20039         bootstrap, git-version-gen: use timestamp
20040         * build-aux/git-version-gen (scriptversion): Force UTC.
20041         * build-aux/bootstrap (scriptversion): New variable.
20042
20043         bootstrap: allow older git
20044         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20045         older than 1.6.4.  Requested by the libvirt project.
20046
20047 2010-02-23  Eric Blake  <eblake@redhat.com>
20048
20049         warn-on-use: work with old autoconf
20050         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20051         AS_VAR semantics of autoconf 2.60.
20052         Reported by Bruno Haible.
20053
20054         bootstrap: improve some comments
20055         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20056         clarification comments.
20057
20058         gettimeofday: provide correct function
20059         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20060         when replacement is declared, otherwise provide gettimeofday.
20061         Reported by Michael Goffioul.
20062
20063 2010-02-23  Jim Meyering  <meyering@redhat.com>
20064
20065         lib-ignore: relax license to "unlimited", not LGPLv2+
20066         * modules/lib-ignore (License): Relax to "unlimited".
20067
20068 2010-02-23  Jim Meyering  <meyering@redhat.com>
20069
20070         lib-ignore: relax license to LGPLv2+
20071         * modules/lib-ignore (License): Relax to LGPLv2+.
20072
20073 2010-02-22  Eric Blake  <eblake@redhat.com>
20074
20075         lseek: avoid bash 3.2 broken pipe bug
20076         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20077         warning from bash 3.2.
20078         Reported by Ben Pfaff, with analysis from Bruno Haible.
20079
20080         bootstrap: support non-FSF copyright holder
20081         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20082         bootstrap.conf override of COPYRIGHT_HOLDER.
20083         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20084
20085         bootstrap: interoperate with gettext 0.14.1
20086         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20087
20088         bootstrap: allow for alternate submodule location
20089         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20090         hardcoding submodule location.
20091         (gnulib_mk): Allow direct use of Makefile.am.
20092
20093         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20094         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20095         rather than reconfiguring where the submodule points.
20096
20097         gettimeofday: restore support for platforms that lack function
20098         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20099         replacement if function is missing.
20100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20101         * modules/sys_time (Makefile.am): Substitute it.
20102         * lib/sys_time.in.h (gettimeofday): Check it.
20103         Reported by Michael Goffioul.
20104
20105 2010-02-21  Bruno Haible  <bruno@clisp.org>
20106
20107         * lib/stdio.in.h (obstack_printf): Fix typo.
20108
20109 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20110
20111         vc-list-files: use bzr ls's -R option
20112         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20113         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20114
20115 2010-02-21  Jim Meyering  <meyering@redhat.com>
20116
20117         init.sh: fix EXEEXT shims to work also for names like test-prog
20118         * tests/init.sh: Re-exec a better shell, when needed.
20119         If the current shell lacks support for posix $(...), an init.sh-using
20120         test will now try to find a shell that supports that.  If EXEEXT is
20121         nonempty, we also require support for hyphen-in-alias-name and shell
20122         substitutions like ${var#glob}.  Failure to find such a shell results
20123         in a skipped test.
20124
20125 2010-02-21  Bruno Haible  <bruno@clisp.org>
20126
20127         Really work around around "broken pipe" error message from bash 3.2.
20128         * gnulib-tool (func_reset_sigpipe): Remove function.
20129         (echo): In bash 3.2, define to a function that uses printf.
20130         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20131
20132 2010-02-20  Bruno Haible  <bruno@clisp.org>
20133
20134         Restore support for automake 1.9.6 with autoconf 2.61.
20135         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20136         Reported by James Youngman <jay@gnu.org>.
20137
20138 2010-02-20  Bruno Haible  <bruno@clisp.org>
20139
20140         Improve *printf warning condition.
20141         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20142         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20143         and the function is overridden due to SIGPIPE emulation.
20144
20145 2010-02-20  Bruno Haible  <bruno@clisp.org>
20146
20147         * lib/stdio.in.h: Tweak comments.
20148
20149 2010-02-19  Bruno Haible  <bruno@clisp.org>
20150
20151         Make it easier to find modules. New gnulib-tool option '--find'.
20152         * gnulib-tool: New option --find.
20153         (func_usage): Document it.
20154         (func_sanitize_modulelist): New function, extracted from
20155         func_all_modules.
20156         (func_all_modules): Invoke it.
20157         * doc/gnulib-tool.texi (Which modules?): New node.
20158
20159 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20160
20161         * lib/sys_select.in.h: Provide select replacement even if
20162         sys/select.h exists on a system, for Interix.
20163
20164 2010-02-18  Jim Meyering  <meyering@redhat.com>
20165
20166         init.sh: don't use $(...) just yet
20167         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20168         to accommodate e.g., Solaris' /bin/sh.
20169
20170 2010-02-17  Bruno Haible  <bruno@clisp.org>
20171
20172         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20173         Reported by Ludovic Courtès <ludo@gnu.org>.
20174
20175 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20176
20177         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20178         linking with -lintl.
20179
20180 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20181
20182         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20183         if not provided by the system's netdb.h.  Reported by
20184         ludo@gnu.org (Ludovic Courtès).
20185
20186 2010-02-15  Jim Meyering  <meyering@redhat.com>
20187
20188         init.sh: improve portability and efficiency
20189         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20190         "dummy" in a for loop.
20191         Use '!', not '^' to select the complement of a character set used
20192         in a "case" statement.
20193         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20194         Suggestions from Eric Blake.
20195
20196         init.sh: automatically accommodate programs with the .exe suffix
20197         Automatically arrange for an invocation of "prog" to execute the
20198         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20199         may use the simpler "prog", yet still work when built on a system
20200         that requires specifying the added suffix.
20201         Do this by constructing a function named "prog" that invokes
20202         "prog.exe" for each .exe file in selected directories.
20203         * tests/init.sh (find_exe_basenames_): New function.
20204         (create_exe_shim_functions_): New function.
20205         (path_prepend_): Use it.
20206
20207         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20208         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20209         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20210
20211 2010-02-14  Jim Meyering  <meyering@redhat.com>
20212
20213         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20214         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20215         (sc_prohibit_hash_pjw_without_use): New rule.
20216
20217         maint.mk: allow the default upload destination dir to be overridden
20218         * top/maint.mk (upload_dest_dir_): Define with a default that
20219         preserves the status quo.
20220         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20221         Reported by Peter Simons.
20222
20223         maint.mk: prohibit inclusion of "hash.h" without_use
20224         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20225
20226 2010-02-10  Jim Meyering  <meyering@redhat.com>
20227
20228         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20229         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20230
20231 2010-02-09  Eric Blake  <ebb9@byu.net>
20232         and Bruno Haible  <bruno@clisp.org>
20233
20234         obstack-printf-posix: ensure declaration
20235         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20236         extracted from gl_FUNC_OBSTACK_PRINTF.
20237         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20238         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20239         Likewise.
20240         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20241         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20242         0.
20243
20244 2010-02-08  Bruno Haible  <bruno@clisp.org>
20245
20246         gnulib-tool: Fix typo in 2010-02-07 commit.
20247         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20248         Reported by Eric Blake.
20249
20250 2010-02-07  Bruno Haible  <bruno@clisp.org>
20251
20252         gnulib-tool: Fix up caching patches.
20253         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20254         option --no-cache. Use associative arrays when supported by the shell.
20255         (sed_comments): New variable.
20256         (modcache): Renamed from do_cache.
20257         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20258         abbreviate unnecessarily.
20259         (have_associative): New variable.
20260         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20261         way also for ksh and zsh.
20262         (func_init_sed_convert_to_cache_statements): New function, extracted
20263         from func_cache_lookup_module. Add support for associative arrays.
20264         Don't set the c_MODULE_cached variable here. Ignore all lines before
20265         the first field header. Remove only the final newline, not all trailing
20266         newlines. Support empty fields correctly. Limit the use of 'eval' to
20267         assignments.
20268         (func_get_description, func_get_status, func_get_notice,
20269         func_get_applicability, func_get_filelist, func_get_dependencies,
20270         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20271         func_get_automake_snippet, func_get_include_directive,
20272         func_get_link_directive, func_get_license, func_get_maintainer):
20273         Update documentation. List the unoptimized code first. Add support for
20274         associative arrays. Limit the use of 'eval' to assignments.
20275         (func_get_applicability): Undo stylistic pessimisations.
20276         (func_get_automake_snippet, func_get_include_directive): Reduce code
20277         duplication.
20278         (func_modules_transitive_closure, func_modules_add_dummy,
20279         func_modules_notice, func_modules_to_filelist, func_add_file,
20280         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20281         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20282         func_create_testdir, func_create_megatestdir): Update documentation.
20283
20284 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20285
20286         * gnulib-tool (func_cache_lookup_module): Store the module name
20287         belonging to the cache variable; error out if two different
20288         module names map to the same cache variable name.
20289
20290 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20291
20292         gnulib-tool: Make caching optional.
20293         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20294         Update matching short versions of --no-changelog.
20295         (func_usage): Update.
20296         (sed_extract_cache_prog): Renamed from ...
20297         (sed_extract_prog): ... this; revert to old extraction script.
20298         (func_get_description, func_get_status)
20299         (func_get_notice, func_get_applicability, func_get_filelist)
20300         (func_get_dependencies, func_get_autoconf_early_snippet)
20301         (func_get_autoconf_snippet, func_get_automake_snippet)
20302         (func_get_include_directive, func_get_link_directive)
20303         (func_get_license, func_get_maintainer): If $do_cache is false,
20304         use old, non-caching extraction scripts.
20305         Suggestion by Bruno Haible.
20306
20307 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20308
20309         gnulib-tool: cache module metainformation.
20310         * gnulib-tool (sed_extract_prog): Match newline before each
20311         header, and rewrite header to a shell variable suffix.
20312         (func_cache_var, func_cache_lookup_module): New functions,
20313         to turn a module name into a cache variable prefix, and to
20314         look up and cache module metainformation.
20315         (func_get_description, func_get_status)
20316         (func_get_notice, func_get_applicability, func_get_filelist)
20317         (func_get_dependencies, func_get_autoconf_early_snippet)
20318         (func_get_autoconf_snippet, func_get_automake_snippet)
20319         (func_get_include_directive, func_get_link_directive)
20320         (func_get_license, func_get_maintainer): Use
20321         func_cache_lookup_module.
20322
20323 2010-02-07  Bruno Haible  <bruno@clisp.org>
20324
20325         fnctl: Fix missing dependency.
20326         * modules/fcntl (Depends-on): Add getdtablesize.
20327         Reported by John W. Eaton <jwe@gnu.org>.
20328
20329 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20330
20331         Argp: fix recognition of short alias options.
20332
20333         * lib/argp-parse.c (convert_options): Fix improper use of
20334         `|' between character values.
20335         * tests/test-argp.c (group1_option): New alias option
20336         --read (-r).
20337         (group1_parser): Special handling for 'r'.
20338         (test15): New test case.
20339         (test_fun): Add test15.
20340         * tests/test-argp-2.sh: Update expected --help and --usage
20341         outputs.
20342
20343 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20344
20345         * tests/test-argp.c: Fix indentation.
20346
20347 2010-02-04  Eric Blake  <ebb9@byu.net>
20348
20349         gettimeofday: expose type of second argument
20350         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20351         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20352         * tests/test-gettimeofday.c: Use it to silence warning.
20353         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20354         the issue.
20355
20356 2010-02-03  Jim Meyering  <meyering@redhat.com>
20357
20358         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20359         * lib/regcomp.c (TYPE_SIGNED): Define.
20360         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20361
20362         regcomp.c: avoid a new -Wshadow warning
20363         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20364
20365 2010-02-01  Jim Meyering  <meyering@redhat.com>
20366
20367         removing useless parentheses in cpp #define directives
20368         For motivation, see commit c0221df4, "define STREQ(a,b)
20369         consistently, removing useless parentheses"
20370         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20371         * lib/mountlist.c (MNT_IGNORE): Likewise.
20372         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20373
20374 2010-02-01  Eric Blake  <ebb9@byu.net>
20375
20376         sys_time: use link-warning
20377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20378         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20379         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20380         * modules/sys_time (Depends-on): Add warn-on-use.
20381         (Makefile.am): Always build replacement.
20382         (configure.ac): Update substitutions.
20383         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20384         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20385         bother with SYS_TIME_H.
20386         * modules/gettimeofday (configure.ac): Declare indicator.
20387         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20388         in use.
20389
20390         closein-tests: silence compiler warning
20391         * tests/test-closein.c (main): Ignore fread result.
20392         * modules/closein-tests (Depends-on): Add ignore-value.
20393
20394         tests: silence warning about system return
20395         * tests/test-areadlink-with-size.c (main): Ignore system result.
20396         * tests/test-areadlink.c (main): Likewise.
20397         * tests/test-areadlinkat-with-size.c (main): Likewise.
20398         * tests/test-areadlinkat.c (main): Likewise.
20399         * tests/test-canonicalize-lgpl.c (main): Likewise.
20400         * tests/test-canonicalize.c (main): Likewise.
20401         * tests/test-chown.c (main): Likewise.
20402         * tests/test-fchownat.c (main): Likewise.
20403         * tests/test-fdutimensat.c (main): Likewise.
20404         * tests/test-fstatat.c (main): Likewise.
20405         * tests/test-futimens.c (main): Likewise.
20406         * tests/test-lchown.c (main): Likewise.
20407         * tests/test-link.c (main): Likewise.
20408         * tests/test-linkat.c (main): Likewise.
20409         * tests/test-lstat.c (main): Likewise.
20410         * tests/test-mkdir.c (main): Likewise.
20411         * tests/test-mkdirat.c (main): Likewise.
20412         * tests/test-mkfifo.c (main): Likewise.
20413         * tests/test-mkfifoat.c (main): Likewise.
20414         * tests/test-mknod.c (main): Likewise.
20415         * tests/test-readlink.c (main): Likewise.
20416         * tests/test-remove.c (main): Likewise.
20417         * tests/test-rename.c (main): Likewise.
20418         * tests/test-renameat.c (main): Likewise.
20419         * tests/test-rmdir.c (main): Likewise.
20420         * tests/test-symlink.c (main): Likewise.
20421         * tests/test-symlinkat.c (main): Likewise.
20422         * tests/test-unlink.c (main): Likewise.
20423         * tests/test-unlinkat.c (main): Likewise.
20424         * tests/test-utimens.c (main): Likewise.
20425         * tests/test-utimensat.c (main): Likewise.
20426         * modules/areadlink-tests (Depends-on): Add ignore-value.
20427         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20428         * modules/areadlinkat-tests (Depends-on): Likewise.
20429         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20430         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20431         * modules/canonicalize-tests (Depends-on): Likewise.
20432         * modules/chown-tests (Depends-on): Likewise.
20433         * modules/fdutimensat-tests (Depends-on): Likewise.
20434         * modules/futimens-tests (Depends-on): Likewise.
20435         * modules/lchown-tests (Depends-on): Likewise.
20436         * modules/link-tests (Depends-on): Likewise.
20437         * modules/linkat-tests (Depends-on): Likewise.
20438         * modules/lstat-tests (Depends-on): Likewise.
20439         * modules/mkdir-tests (Depends-on): Likewise.
20440         * modules/mkfifo-tests (Depends-on): Likewise.
20441         * modules/mkfifoat-tests (Depends-on): Likewise.
20442         * modules/mknod-tests (Depends-on): Likewise.
20443         * modules/openat-tests (Depends-on): Likewise.
20444         * modules/readlink-tests (Depends-on): Likewise.
20445         * modules/remove-tests (Depends-on): Likewise.
20446         * modules/rename-tests (Depends-on): Likewise.
20447         * modules/renameat-tests (Depends-on): Likewise.
20448         * modules/rmdir-tests (Depends-on): Likewise.
20449         * modules/symlink-tests (Depends-on): Likewise.
20450         * modules/symlinkat-tests (Depends-on): Likewise.
20451         * modules/unlink-tests (Depends-on): Likewise.
20452         * modules/utimens-tests (Depends-on): Likewise.
20453         * modules/utimensat-tests (Depends-on): Likewise.
20454
20455 2010-01-31  Bruno Haible  <bruno@clisp.org>
20456
20457         Perform the same test for many <math.h> functions.
20458         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20459         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20460         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20461         of gl_MATHFUNC.
20462         * modules/acos (configure.ac): Likewise.
20463         * modules/asin (configure.ac): Likewise.
20464         * modules/atan (configure.ac): Likewise.
20465         * modules/atan2 (configure.ac): Likewise.
20466         * modules/cbrt (configure.ac): Likewise.
20467         * modules/copysign (configure.ac): Likewise.
20468         * modules/cos (configure.ac): Likewise.
20469         * modules/cosh (configure.ac): Likewise.
20470         * modules/erf (configure.ac): Likewise.
20471         * modules/erfc (configure.ac): Likewise.
20472         * modules/exp (configure.ac): Likewise.
20473         * modules/fmod (configure.ac): Likewise.
20474         * modules/hypot (configure.ac): Likewise.
20475         * modules/j0 (configure.ac): Likewise.
20476         * modules/j1 (configure.ac): Likewise.
20477         * modules/jn (configure.ac): Likewise.
20478         * modules/lgamma (configure.ac): Likewise.
20479         * modules/log (configure.ac): Likewise.
20480         * modules/log10 (configure.ac): Likewise.
20481         * modules/log1p (configure.ac): Likewise.
20482         * modules/pow (configure.ac): Likewise.
20483         * modules/remainder (configure.ac): Likewise.
20484         * modules/sin (configure.ac): Likewise.
20485         * modules/sinh (configure.ac): Likewise.
20486         * modules/tan (configure.ac): Likewise.
20487         * modules/tanh (configure.ac): Likewise.
20488         * modules/y0 (configure.ac): Likewise.
20489         * modules/y1 (configure.ac): Likewise.
20490         * modules/yn (configure.ac): Likewise.
20491         Suggested by Paolo Bonzini.
20492
20493 2010-01-31  Bruno Haible  <bruno@clisp.org>
20494
20495         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20496
20497 2010-01-31  Bruno Haible  <bruno@clisp.org>
20498
20499         Work around getdelim() bug on FreeBSD 8.0.
20500         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20501         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20502         not work.
20503         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20504         is 1.
20505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20506         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20507         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20508         a non-zero size.
20509         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20510
20511 2010-01-31  Bruno Haible  <bruno@clisp.org>
20512
20513         Work around getline() bug on FreeBSD 8.0.
20514         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20515         and a non-zero size.
20516         * tests/test-getline.c (main): Likewise.
20517         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20518         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20519
20520 2010-01-28  Eric Blake  <ebb9@byu.net>
20521
20522         regex: fix build failure
20523         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20524         platforms.
20525
20526 2010-01-28  Jim Meyering  <meyering@redhat.com>
20527
20528         regex: do not ignore memory allocation failure
20529         * lib/regex_internal.c (create_cd_newstate): Detect
20530         re_node_set_init_copy failure.   Extracted from glibc commit
20531         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20532
20533         regex: sync more white-space changes from libc
20534         * lib/regex_internal.c: White-space only changes.
20535         * lib/regexec.c: Likewise.
20536
20537         regex: add many uses of __attribute_warn_unused_result__
20538         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20539         * lib/regexec.c: Likewise.
20540         Extracted from a messy glibc commit.
20541
20542         regcomp.c: spelling and merge-artifact from glibc
20543         * lib/regcomp.c: Merge remainder of glibc's
20544         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20545
20546         regcomp.c: sync white-space changes from glibc
20547         * lib/regcomp.c: Merge to accommodate white space
20548         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20549
20550         regcomp.c: do not ignore internal return values
20551         * lib/regcomp.c: Do not ignore internal return values.
20552         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20553         but without its white-space changes and spelling fixes.
20554
20555         regex_internal.h: define __attribute_warn_unused_result__
20556         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20557
20558         maint: add a syntax-check rule to check for vulnerable Makefile.in
20559         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20560
20561 2010-01-27  Jim Meyering  <meyering@redhat.com>
20562
20563         ncftpput-ftp: clean up spaces
20564         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20565         Remove trailing blanks.
20566
20567 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20568
20569         * build-aux/git-version-gen: Fix copyright statement.
20570         * build-aux/gnupload: Likewise.
20571         * tests/test-arcfour.c: Likewise.
20572         * tests/test-arctwo.c: Likewise.
20573         * tests/test-count-one-bits.c: Likewise.
20574         * tests/test-crc.c: Likewise.
20575         * tests/test-des.c: Likewise.
20576         * tests/test-gc-arcfour.c: Likewise.
20577         * tests/test-gc-arctwo.c: Likewise.
20578         * tests/test-gc-des.c: Likewise.
20579         * tests/test-gc-hmac-md5.c: Likewise.
20580         * tests/test-gc-hmac-sha1.c: Likewise.
20581         * tests/test-gc-md2.c: Likewise.
20582         * tests/test-gc-md4.c: Likewise.
20583         * tests/test-gc-md5.c: Likewise.
20584         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20585         * tests/test-gc-rijndael.c: Likewise.
20586         * tests/test-gc-sha1.c: Likewise.
20587         * tests/test-gc.c: Likewise.
20588         * tests/test-gethostname.c: Likewise.
20589         * tests/test-gettimeofday.c: Likewise.
20590         * tests/test-hash.c: Likewise.
20591         * tests/test-hmac-md5.c: Likewise.
20592         * tests/test-hmac-sha1.c: Likewise.
20593         * tests/test-md2.c: Likewise.
20594         * tests/test-md4.c: Likewise.
20595         * tests/test-md5.c: Likewise.
20596         * tests/test-memchr.c: Likewise.
20597         * tests/test-memchr2.c: Likewise.
20598         * tests/test-memcmp.c: Likewise.
20599         * tests/test-memmem.c: Likewise.
20600         * tests/test-memrchr.c: Likewise.
20601         * tests/test-rawmemchr.c: Likewise.
20602         * tests/test-read-file.c: Likewise.
20603         * tests/test-rijndael.c: Likewise.
20604         * tests/test-sockets.c: Likewise.
20605         * tests/test-strchrnul.c: Likewise.
20606         * tests/test-strstr.c: Likewise.
20607         * tests/test-strtod.c: Likewise.
20608         * build-aux/ncftpput-ftp: Likewise.
20609
20610 2010-01-26  Eric Blake  <ebb9@byu.net>
20611
20612         ignore-value: update recommended header name
20613         * modules/ignore-value (Include): Only use <> for headers that
20614         exist in glibc.
20615
20616 2010-01-26  Jim Meyering  <meyering@redhat.com>
20617
20618         test-userspec.c: avoid compiler warnings
20619         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20620         and "initialization discards qualifiers..." warnings.
20621         Put the first "uid" in its own scope, and make char* members "const".
20622
20623 2010-01-25  Bruno Haible  <bruno@clisp.org>
20624
20625         gnulib-tool: Make warning diagnostics consistent.
20626         * gnulib-tool (func_warning): New function.
20627         Use it everywhere where gnulib-tool produces output to stderr and it is
20628         not a fatal error.
20629
20630 2010-01-25  Bruno Haible  <bruno@clisp.org>
20631
20632         Fix test dependencies.
20633         * modules/xstrtol-tests (Depends-on): Add inttypes.
20634         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20635
20636 2010-01-25 Pádraig Brady <P@draigBrady.com>
20637
20638         syntax-check: detect incorrect boolean macro values in config.h
20639         * modules/maintainer-makefile (configure.ac): Parameterize the location
20640         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20641         The logic is from Eric Blake and the location indicated by Jim Meyering.
20642         Note the more natural CONFIG_HEADER name is prohibited by automake
20643         for backwards compatibility reasons.
20644         * top/maint.mk (sc_Wundef_boolean): New rule.
20645
20646 2010-01-25  Jim Meyering  <meyering@redhat.com>
20647
20648         bootstrap: detect MacOS 10.6's shasum, too
20649         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20650         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20651
20652 2010-01-23  Jim Meyering  <meyering@redhat.com>
20653
20654         xstrtoll: new module
20655         * modules/xstrtoll: New file.
20656         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20657         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20658         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20659         ./configure fails if you use this module and lack "long long".
20660         * modules/xstrtoll-tests: New module.
20661         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20662         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20663         new init.sh-based test framework.
20664
20665 2010-01-24  Bruno Haible  <bruno@clisp.org>
20666
20667         Tests for module 'yn'.
20668         * modules/yn-tests: New file.
20669         * tests/test-yn.c: New file.
20670
20671         Tests for module 'y1'.
20672         * modules/y1-tests: New file.
20673         * tests/test-y1.c: New file.
20674
20675         Tests for module 'y0'.
20676         * modules/y0-tests: New file.
20677         * tests/test-y0.c: New file.
20678
20679         Tests for module 'tanh'.
20680         * modules/tanh-tests: New file.
20681         * tests/test-tanh.c: New file.
20682
20683         Tests for module 'tan'.
20684         * modules/tan-tests: New file.
20685         * tests/test-tan.c: New file.
20686
20687         Tests for module 'sqrt'.
20688         * modules/sqrt-tests: New file.
20689         * tests/test-sqrt.c: New file.
20690
20691         Tests for module 'sinh'.
20692         * modules/sinh-tests: New file.
20693         * tests/test-sinh.c: New file.
20694
20695         Tests for module 'sin'.
20696         * modules/sin-tests: New file.
20697         * tests/test-sin.c: New file.
20698
20699         Tests for module 'rint'.
20700         * modules/rint-tests: New file.
20701         * tests/test-rint.c: New file.
20702
20703         Tests for module 'remainder'.
20704         * modules/remainder-tests: New file.
20705         * tests/test-remainder.c: New file.
20706
20707         Tests for module 'pow'.
20708         * modules/pow-tests: New file.
20709         * tests/test-pow.c: New file.
20710
20711         Tests for module 'nextafter'.
20712         * modules/nextafter-tests: New file.
20713         * tests/test-nextafter.c: New file.
20714
20715         Tests for module 'modf'.
20716         * modules/modf-tests: New file.
20717         * tests/test-modf.c: New file.
20718
20719         Tests for module 'logb'.
20720         * modules/logb-tests: New file.
20721         * tests/test-logb.c: New file.
20722
20723         Tests for module 'log1p'.
20724         * modules/log1p-tests: New file.
20725         * tests/test-log1p.c: New file.
20726
20727         Tests for module 'log10'.
20728         * modules/log10-tests: New file.
20729         * tests/test-log10.c: New file.
20730
20731         Tests for module 'log'.
20732         * modules/log-tests: New file.
20733         * tests/test-log.c: New file.
20734
20735         Tests for module 'lgamma'.
20736         * modules/lgamma-tests: New file.
20737         * tests/test-lgamma.c: New file.
20738
20739         Tests for module 'ldexp'.
20740         * modules/ldexp-tests: New file.
20741         * tests/test-ldexp.c: New file.
20742
20743         Tests for module 'jn'.
20744         * modules/jn-tests: New file.
20745         * tests/test-jn.c: New file.
20746
20747         Tests for module 'j1'.
20748         * modules/j1-tests: New file.
20749         * tests/test-j1.c: New file.
20750
20751         Tests for module 'j0'.
20752         * modules/j0-tests: New file.
20753         * tests/test-j0.c: New file.
20754
20755         Tests for module 'hypot'.
20756         * modules/hypot-tests: New file.
20757         * tests/test-hypot.c: New file.
20758
20759         Tests for module 'fmod'.
20760         * modules/fmod-tests: New file.
20761         * tests/test-fmod.c: New file.
20762
20763         Tests for module 'fabs'.
20764         * modules/fabs-tests: New file.
20765         * tests/test-fabs.c: New file.
20766
20767         Tests for module 'exp'.
20768         * modules/exp-tests: New file.
20769         * tests/test-exp.c: New file.
20770
20771         Tests for module 'erfc'.
20772         * modules/erfc-tests: New file.
20773         * tests/test-erfc.c: New file.
20774
20775         Tests for module 'erf'.
20776         * modules/erf-tests: New file.
20777         * tests/test-erf.c: New file.
20778
20779         Tests for module 'cosh'.
20780         * modules/cosh-tests: New file.
20781         * tests/test-cosh.c: New file.
20782
20783         Tests for module 'cos'.
20784         * modules/cos-tests: New file.
20785         * tests/test-cos.c: New file.
20786
20787         Tests for module 'copysign'.
20788         * modules/copysign-tests: New file.
20789         * tests/test-copysign.c: New file.
20790
20791         Tests for module 'cbrt'.
20792         * modules/cbrt-tests: New file.
20793         * tests/test-cbrt.c: New file.
20794
20795         Tests for module 'atan2'.
20796         * modules/atan2-tests: New file.
20797         * tests/test-atan2.c: New file.
20798
20799         Tests for module 'atan'.
20800         * modules/atan-tests: New file.
20801         * tests/test-atan.c: New file.
20802
20803         Tests for module 'asin'.
20804         * modules/asin-tests: New file.
20805         * tests/test-asin.c: New file.
20806
20807         Tests for module 'acos'.
20808         * modules/acos-tests: New file.
20809         * tests/test-acos.c: New file.
20810
20811 2010-01-24  Bruno Haible  <bruno@clisp.org>
20812
20813         Fix tests for common <math.h> functions.
20814         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20815         code snippet that references the function pointer, rather than merely
20816         calling the function. Substitute the FUNC_LIBM variable.
20817         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20818         * modules/acos (configure.ac): Likewise.
20819         * modules/asin (configure.ac): Likewise.
20820         * modules/atan (configure.ac): Likewise.
20821         * modules/atan2 (configure.ac): Likewise.
20822         * modules/cbrt (configure.ac): Likewise.
20823         * modules/copysign (configure.ac): Likewise.
20824         * modules/cos (configure.ac): Likewise.
20825         * modules/cosh (configure.ac): Likewise.
20826         * modules/erf (configure.ac): Likewise.
20827         * modules/erfc (configure.ac): Likewise.
20828         * modules/exp (configure.ac): Likewise.
20829         * modules/fabs (configure.ac): Likewise.
20830         * modules/fmod (configure.ac): Likewise.
20831         * modules/hypot (configure.ac): Likewise.
20832         * modules/j0 (configure.ac): Likewise.
20833         * modules/j1 (configure.ac): Likewise.
20834         * modules/jn (configure.ac): Likewise.
20835         * modules/ldexp (configure.ac): Likewise.
20836         * modules/lgamma (configure.ac): Likewise.
20837         * modules/log (configure.ac): Likewise.
20838         * modules/log10 (configure.ac): Likewise.
20839         * modules/log1p (configure.ac): Likewise.
20840         * modules/logb (configure.ac): Likewise.
20841         * modules/modf (configure.ac): Likewise.
20842         * modules/nextafter (configure.ac): Likewise.
20843         * modules/pow (configure.ac): Likewise.
20844         * modules/remainder (configure.ac): Likewise.
20845         * modules/rint (configure.ac): Likewise.
20846         * modules/sin (configure.ac): Likewise.
20847         * modules/sinh (configure.ac): Likewise.
20848         * modules/tan (configure.ac): Likewise.
20849         * modules/tanh (configure.ac): Likewise.
20850         * modules/y0 (configure.ac): Likewise.
20851         * modules/y1 (configure.ac): Likewise.
20852         * modules/yn (configure.ac): Likewise.
20853
20854 2010-01-24  Bruno Haible  <bruno@clisp.org>
20855
20856         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20857         * tests/test-acosl.c (x): New variable.
20858         (main): Store argument in x and fetch it from x.
20859         * tests/test-asinl.c (x): New variable.
20860         (main): Store argument in x and fetch it from x.
20861         * tests/test-atanl.c (x): New variable.
20862         (main): Store argument in x and fetch it from x.
20863         * tests/test-cosl.c (x): New variable.
20864         (main): Store argument in x and fetch it from x.
20865         * tests/test-expl.c (x): New variable.
20866         (main): Store argument in x and fetch it from x.
20867         * tests/test-logl.c (x): New variable.
20868         (main): Store argument in x and fetch it from x.
20869         * tests/test-sinl.c (x): New variable.
20870         (main): Store argument in x and fetch it from x.
20871         * tests/test-sqrtl.c (x): New variable.
20872         (main): Store argument in x and fetch it from x.
20873         * tests/test-tanl.c (x): New variable.
20874         (main): Store argument in x and fetch it from x.
20875
20876 2010-01-24  Bruno Haible  <bruno@clisp.org>
20877
20878         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20879         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20880         assignments to the initial TESTS_ENVIRONMENT.
20881         * doc/gnulib.texi (Unit test modules): Document it.
20882         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20883         TESTS_ENVIRONMENT.
20884         * modules/btowc-tests (Makefile.am): Likewise.
20885         * modules/c-stack-tests (Makefile.am): Likewise.
20886         * modules/c-strcase-tests (Makefile.am): Likewise.
20887         * modules/copy-file-tests (Makefile.am): Likewise.
20888         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20889         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20890         * modules/mbrtowc-tests (Makefile.am): Likewise.
20891         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20892         * modules/mbscasestr-tests (Makefile.am): Likewise.
20893         * modules/mbschr-tests (Makefile.am): Likewise.
20894         * modules/mbscspn-tests (Makefile.am): Likewise.
20895         * modules/mbsinit-tests (Makefile.am): Likewise.
20896         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20897         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20898         * modules/mbspbrk-tests (Makefile.am): Likewise.
20899         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20900         * modules/mbsrchr-tests (Makefile.am): Likewise.
20901         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20902         * modules/mbsspn-tests (Makefile.am): Likewise.
20903         * modules/mbsstr-tests (Makefile.am): Likewise.
20904         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20905         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20906         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20907         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20908         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20909         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20910         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20911         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20912         * modules/wcrtomb-tests (Makefile.am): Likewise.
20913         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20914         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20915         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20916         assignments from TESTS_ENVIRONMENT.
20917         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20918         augmentation.
20919         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20920         * modules/atexit-tests (Makefile.am): Likewise.
20921         * modules/binary-io-tests (Makefile.am): Likewise.
20922         * modules/closein-tests (Makefile.am): Likewise.
20923         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20924         * modules/exclude-tests (Makefile.am): Likewise.
20925         * modules/fflush-tests (Makefile.am): Likewise.
20926         * modules/fpending-tests (Makefile.am): Likewise.
20927         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20928         * modules/freadahead-tests (Makefile.am): Likewise.
20929         * modules/freadptr-tests (Makefile.am): Likewise.
20930         * modules/freadseek-tests (Makefile.am): Likewise.
20931         * modules/fseek-tests (Makefile.am): Likewise.
20932         * modules/fseeko-tests (Makefile.am): Likewise.
20933         * modules/ftell-tests (Makefile.am): Likewise.
20934         * modules/ftello-tests (Makefile.am): Likewise.
20935         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20936         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20937         * modules/lseek-tests (Makefile.am): Likewise.
20938         * modules/parse-duration-tests (Makefile.am): Likewise.
20939         * modules/perror-tests (Makefile.am): Likewise.
20940         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20941         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20942         * modules/pipe-tests (Makefile.am): Likewise.
20943         * modules/pread-tests (Makefile.am): Likewise.
20944         * modules/printf-posix-tests (Makefile.am): Likewise.
20945         * modules/select-tests (Makefile.am): Likewise.
20946         * modules/sigpipe-tests (Makefile.am): Likewise.
20947         * modules/tsearch-tests (Makefile.am): Likewise.
20948         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20949         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20950         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20951         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20952         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20953         * modules/version-etc-tests (Makefile.am): Likewise.
20954         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20955         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20956         * modules/xalloc-die-tests (Makefile.am): Likewise.
20957         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20958         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20959         * modules/xstrtol-tests (Makefile.am): Likewise.
20960         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20961         * modules/yesno-tests (Makefile.am): Likewise.
20962         Suggested by Jim Meyering.
20963
20964 2010-01-24  Bruno Haible  <bruno@clisp.org>
20965
20966         More documentation.
20967         * doc/gnulib.texi (Writing modules): New chapter.
20968         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20969         the new chapter.
20970
20971 2010-01-24  Jim Meyering  <meyering@redhat.com>
20972
20973         maint.mk: do not prepend "./" after filtering
20974         * top/maint.mk (_prepend_srcdir_prefix): New variable
20975         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20976         "./" when $(srcdir) is ".".
20977
20978         define STREQ(a,b) consistently, removing useless parentheses
20979         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20980         since the only risk is that "a" or "b" contains an unparenthesized
20981         comma, but if either did that, STREQ would have 3 or more arguments.
20982         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20983         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20984         * lib/hash-triple.c (STREQ): Likewise.
20985         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20986         * lib/getugroups.c (STREQ): Likewise.
20987
20988 2010-01-23  Jim Meyering  <meyering@redhat.com>
20989
20990         maint.mk: fix syntax-check in a non-srcdir build directory
20991         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20992         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20993
20994 2010-01-22  Jim Meyering  <meyering@redhat.com>
20995
20996         userspec: add unit tests
20997         * tests/test-userspec.c: New file.
20998         * modules/userspec-tests: Likewise.
20999
21000 2010-01-21  Jim Meyering  <meyering@redhat.com>
21001
21002         maint.mk: handle source file names containing "." robustly
21003         * top/maint.mk (_dot_escaped_srcdir): Define.
21004         (VC_LIST): Use it in LHS of sed substitution.
21005
21006 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21007
21008         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21009         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21010         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21011         from a non-srcdir build.
21012
21013 2010-01-20  Eric Blake  <ebb9@byu.net>
21014
21015         warn-on-use: use instead of link-warning
21016         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21017         * modules/unistd (Depends-on, Makefile.am): Likewise.
21018         * modules/arpa_inet (Depends-on): Replace link-warning with
21019         warn-on-use.
21020         (Makefile.am): Update rules accordingly.
21021         * modules/ctype (Depends-on, Makefile.am): Likewise.
21022         * modules/dirent (Depends-on, Makefile.am): Likewise.
21023         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21024         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21025         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21026         * modules/locale (Depends-on, Makefile.am): Likewise.
21027         * modules/math (Depends-on, Makefile.am): Likewise.
21028         * modules/search (Depends-on, Makefile.am): Likewise.
21029         * modules/signal (Depends-on, Makefile.am): Likewise.
21030         * modules/spawn (Depends-on, Makefile.am): Likewise.
21031         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21032         * modules/string (Depends-on, Makefile.am): Likewise.
21033         * modules/strings (Depends-on, Makefile.am): Likewise.
21034         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21035         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21036         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21037         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21038         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21039         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21040         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21041         * modules/wchar (Depends-on, Makefile.am): Likewise.
21042         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21043         should be poisoned.
21044         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21045         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21046         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21047         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21048         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21049         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21050         * m4/math_h.m4 (gl_MATH_H): Likewise.
21051         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21052         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21053         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21054         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21055         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21056         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21057         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21058         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21059         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21060         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21063         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21064         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21065         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21066         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21067         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21068         GL_LINK_WARNING.
21069         * lib/ctype.in.h: Likewise.
21070         * lib/dirent.in.h: Likewise.
21071         * lib/fcntl.in.h: Likewise.
21072         * lib/inttypes.in.h: Likewise.
21073         * lib/langinfo.in.h: Likewise.
21074         * lib/locale.in.h: Likewise.
21075         * lib/math.in.h: Likewise.
21076         * lib/search.in.h: Likewise.
21077         * lib/signal.in.h: Likewise.
21078         * lib/spawn.in.h: Likewise.
21079         * lib/stdio.in.h: Likewise.
21080         * lib/stdlib.in.h: Likewise.
21081         * lib/string.in.h: Likewise.
21082         * lib/strings.in.h: Likewise.
21083         * lib/sys_file.in.h: Likewise.
21084         * lib/sys_ioctl.in.h: Likewise.
21085         * lib/sys_select.in.h: Likewise.
21086         * lib/sys_socket.in.h: Likewise.
21087         * lib/sys_stat.in.h: Likewise.
21088         * lib/sys_times.in.h: Likewise.
21089         * lib/sys_utsname.in.h: Likewise.
21090         * lib/unistd.in.h: Likewise.
21091         * lib/wchar.in.h: Likewise.
21092
21093 2010-01-20  Bruno Haible  <bruno@clisp.org>
21094
21095         Avoid duplicate -lm.
21096         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21097         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21098         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21099         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21100         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21101         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21102         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21103         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21104         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21105         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21106         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21107         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21108         Reported by Paolo Bonzini.
21109
21110 2010-01-19  Bruno Haible  <bruno@clisp.org>
21111
21112         langinfo, nl_langinfo: Relicense under LGPLv2+.
21113         * modules/langinfo (License): Change to LGPLv2+.
21114         * modules/nl_langinfo (License): Likewise.
21115         Patch by David Lutterkort <lutter@redhat.com>.
21116
21117 2010-01-19  Bruno Haible  <bruno@clisp.org>
21118
21119         Avoid compilation error with cc on OSF/1 5.1.
21120         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21121         statement, not before.
21122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21123
21124 2010-01-18  Bruno Haible  <bruno@clisp.org>
21125
21126         Avoid a link error due to the __printf__ symbol.
21127         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21128         and 2.6.x.
21129         (__format__, __printf__): Remove definitions.
21130         * lib/argp-fmtstream.h: Likewise.
21131         * lib/argp.h: Likewise.
21132         * lib/error.h: Likewise.
21133         * lib/vasnprintf.h: Likewise.
21134         * lib/xprintf.h: Likewise.
21135         * lib/xvasprintf.h: Likewise.
21136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21137
21138 2010-01-18  Bruno Haible  <bruno@clisp.org>
21139
21140         Tests for module 'tanl'.
21141         * modules/tanl-tests: New file.
21142         * tests/test-tanl.c: New file.
21143
21144         Tests for module 'sqrtl'.
21145         * modules/sqrtl-tests: New file.
21146         * tests/test-sqrtl.c: New file.
21147
21148         Tests for module 'sinl'.
21149         * modules/sinl-tests: New file.
21150         * tests/test-sinl.c: New file.
21151
21152         Tests for module 'logl'.
21153         * modules/logl-tests: New file.
21154         * tests/test-logl.c: New file.
21155
21156         Tests for module 'expl'.
21157         * modules/expl-tests: New file.
21158         * tests/test-expl.c: New file.
21159
21160         Tests for module 'cosl'.
21161         * modules/cosl-tests: New file.
21162         * tests/test-cosl.c: New file.
21163
21164         Tests for module 'atanl'.
21165         * modules/atanl-tests: New file.
21166         * tests/test-atanl.c: New file.
21167
21168         Tests for module 'asinl'.
21169         * modules/asinl-tests: New file.
21170         * tests/test-asinl.c: New file.
21171
21172         Tests for module 'acosl'.
21173         * modules/acosl-tests: New file.
21174         * tests/test-acosl.c: New file.
21175
21176         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21177         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21178         tanl): Use the standard gnulib idiom.
21179         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21180         * lib/sinl.c: Likewise.
21181         * lib/tanl.c: Don't include trigl.c.
21182         (kernel_tanl): Make static.
21183         * lib/sincosl.c: Include trigl.h first.
21184         * lib/trigl.c: Likewise.
21185         * m4/acosl.m4: New file.
21186         * m4/asinl.m4: New file.
21187         * m4/atanl.m4: New file.
21188         * m4/cosl.m4: New file.
21189         * m4/expl.m4: New file.
21190         * m4/logl.m4: New file.
21191         * m4/sinl.m4: New file.
21192         * m4/sqrtl.m4: New file.
21193         * m4/tanl.m4: New file.
21194         * m4/mathl.m4: Remove file.
21195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21196         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21197         Don't initialize GNULIB_MATHL.
21198         * modules/acosl: New file.
21199         * modules/asinl: New file.
21200         * modules/atanl: New file.
21201         * modules/cosl: New file.
21202         * modules/expl: New file.
21203         * modules/logl: New file.
21204         * modules/sinl: New file.
21205         * modules/sqrtl: New file.
21206         * modules/tanl: New file.
21207         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21208         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21209         substitute GNULIB_MATHL.
21210         * modules/mathl: Rewritten.
21211         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21212         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21213         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21214         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21215         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21216         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21217         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21218         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21219         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21220
21221 2010-01-18  Bruno Haible  <bruno@clisp.org>
21222
21223         sqrt: Make gl_FUNC_SQRT requirable.
21224         * m4/sqrt.m4: New file.
21225         * modules/sqrt (Files): Add it.
21226         (configure.ac): Invoke gl_FUNC_SQRT.
21227
21228 2010-01-18  Bruno Haible  <bruno@clisp.org>
21229
21230         New modules for common <math.h> functions.
21231         * m4/mathfunc.m4: New file.
21232         * modules/acos: New file.
21233         * modules/asin: New file.
21234         * modules/atan: New file.
21235         * modules/atan2: New file.
21236         * modules/cbrt: New file.
21237         * modules/copysign: New file.
21238         * modules/cos: New file.
21239         * modules/cosh: New file.
21240         * modules/erf: New file.
21241         * modules/erfc: New file.
21242         * modules/exp: New file.
21243         * modules/fabs: New file.
21244         * modules/fmod: New file.
21245         * modules/hypot: New file.
21246         * modules/j0: New file.
21247         * modules/j1: New file.
21248         * modules/jn: New file.
21249         * modules/ldexp: New file.
21250         * modules/lgamma: New file.
21251         * modules/log: New file.
21252         * modules/log10: New file.
21253         * modules/log1p: New file.
21254         * modules/logb: New file.
21255         * modules/modf: New file.
21256         * modules/nextafter: New file.
21257         * modules/pow: New file.
21258         * modules/remainder: New file.
21259         * modules/rint: New file.
21260         * modules/sin: New file.
21261         * modules/sinh: New file.
21262         * modules/sqrt: New file.
21263         * modules/tan: New file.
21264         * modules/tanh: New file.
21265         * modules/y0: New file.
21266         * modules/y1: New file.
21267         * modules/yn: New file.
21268         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21269         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21270         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21271         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21272         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21273         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21274         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21275         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21276         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21277         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21278         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21279         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21280         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21281         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21282         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21283         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21284         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21285         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21286         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21287         * doc/posix-functions/log.texi: Mention the 'log' module.
21288         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21289         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21290         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21291         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21292         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21293         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21294         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21295         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21296         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21297         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21298         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21299         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21300         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21301         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21302         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21303         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21304
21305 2010-01-18  Jim Meyering  <meyering@redhat.com>
21306
21307         ignore-value: relax license to LGPLv2+
21308         * modules/ignore-value (License): Relax to LGPLv2+.
21309
21310         getdate: don't leak when TZ contains two or more '"'s
21311         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21312         double quote in TZ after the first one.
21313
21314         readtokens: do not leak internal token_lengths buffer
21315         * lib/readtokens.c (readtokens): Free the local, lengths,
21316         when the supplied "token_lengths" parameter is NULL.
21317
21318 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21319
21320         Fix a couple of missing LIBTHREAD link failures on AIX.
21321         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21322         $(LIBTHREAD).
21323         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21324
21325         Link test-poll against INET_PTON_LIB.
21326         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21327         for inet_pton on Solaris 10.
21328
21329 2010-01-17  Bruno Haible  <bruno@clisp.org>
21330
21331         unistdio/*-sprintf: Fix typo in module description.
21332         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21333         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21334         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21335         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21336         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21337         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21338         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21339         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21340
21341 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21342
21343         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21344         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21345         variables in shell case patterns, for AIX and HP-UX ksh.
21346
21347         Split large sed scripts, for HP-UX sed.
21348         * modules/stdio: Split sed scripts around 50 sed commands,
21349         to avoid HP-UX limit of 99 commands, in the near future.
21350         * modules/string: Likewise.
21351         * modules/unistd: Likewise.
21352
21353         gnulib-tool: avoid writing in the current directory.
21354         * gnulib-tool (func_emit_lib_Makefile_am)
21355         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21356         not in the current directory, so concurrent gnulib-tool
21357         instances do not interfere.
21358
21359 2010-01-16  Jim Meyering  <meyering@redhat.com>
21360
21361         doc: update users.txt
21362         * users.txt: Add grep.
21363         (diffutils, gzip): Update URLs.
21364
21365 2010-01-12  Bruno Haible  <bruno@clisp.org>
21366
21367         posix_spawn: Avoid test failure on Cygwin.
21368         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21369         characters.
21370         Reported by Simon Josefsson.
21371
21372 2010-01-12  Bruno Haible  <bruno@clisp.org>
21373
21374         * tests/test-cond.c (main): When skipping the test, show the reason.
21375
21376 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21377
21378         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21379
21380 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21381
21382         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21383         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21384
21385 2010-01-12  Eric Blake  <ebb9@byu.net>
21386
21387         build: guarantee AS_VAR_IF
21388         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21389         (gl_AS_VAR_IF): Move...
21390         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21391         Reported by Simon Josefsson.
21392
21393 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21394
21395         * lib/stdio.in.h: Fix typo.
21396
21397 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21398
21399         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21400         libgpg-error.
21401
21402 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21403
21404         * tests/test-xalloc-die.sh: Use $EXEEXT.
21405
21406 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21407             Bruno Haible  <bruno@clisp.org>
21408
21409         getlogin, getlogin_r: Avoid test failure.
21410         * tests/test-getlogin.c: Include <stdio.h>.
21411         (main): Skip the test when the function fails because stdin is not a
21412         tty.
21413         * tests/test-getlogin_r.c: Include <stdio.h>.
21414         (main): Skip the test when the function fails because stdin is not a
21415         tty.
21416
21417 2010-01-11  Eric Blake  <ebb9@byu.net>
21418
21419         tests: avoid more large file warnings
21420         * tests/test-fflush.c: Avoid warning about ftell use.
21421         * tests/test-fseek.c: Avoid warning about fseek use.
21422
21423 2010-01-10  Bruno Haible  <bruno@clisp.org>
21424
21425         nproc: Work better on Linux when /proc and /sys are not mounted.
21426         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21427         as lower bound when, on glibc/Linux systems,
21428         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21429         Suggested by Pádraig Brady <P@draigbrady.com>.
21430         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21431
21432         nproc: Refactor.
21433         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21434         extracted from num_processors.
21435         (num_processors): Call it.
21436
21437 2010-01-11  Jim Meyering  <meyering@redhat.com>
21438
21439         utimecmp: avoid new warning from upcoming gcc-4.5.0
21440         * lib/utimecmp.c (BILLION): Define using #define rather than an
21441         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21442
21443 2010-01-11  Eric Blake  <ebb9@byu.net>
21444
21445         math: add portability warnings for classification macros
21446         * modules/math (Depends-on): Add warn-on-use.
21447         (Makefile.am): Provide new substitutions.
21448         * m4/math_h.m4 (gl_MATH_H): Require inline.
21449         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21450         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21451         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21452         implement warnings.
21453
21454         unistd: warn on use of environ without module
21455         * modules/unistd (Depends-on): Add warn-on-use.
21456         (Makefile.am): Provide new substitutions.
21457         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21458         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21459
21460         stdio: warn on suspicious uses
21461         * modules/stdio (Depends-on): Add warn-on-use.
21462         (Makefile.am): Provide new substitutions.
21463         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21464         fseeko.
21465         * lib/stdio.in.h (gets): Always warn on use.
21466         (fseek, ftell): Adjust when warnings are issued, and honor
21467         _GL_NO_LARGE_FILES as a way to silence the warning.
21468         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21469         any warning about large file offsets.
21470         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21471         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21472         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21473         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21474         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21475         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21476         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21477         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21478
21479         warn-on-use: new module
21480         * modules/warn-on-use: New file.
21481         * build-aux/warn-on-use.h: Likewise.
21482         * m4/warn-on-use.m4: Likewise.
21483         * MODULES.html.sh (Support for building): Mention it.
21484
21485 2010-01-10  Bruno Haible  <bruno@clisp.org>
21486
21487         Tests for module 'unistr/u32-strdup'.
21488         * modules/unistr/u32-strdup-tests: New file.
21489         * tests/unistr/test-u32-strdup.c: New file.
21490
21491         Tests for module 'unistr/u16-strdup'.
21492         * modules/unistr/u16-strdup-tests: New file.
21493         * tests/unistr/test-u16-strdup.c: New file.
21494
21495         Tests for module 'unistr/u8-strdup'.
21496         * modules/unistr/u8-strdup-tests: New file.
21497         * tests/unistr/test-u8-strdup.c: New file.
21498         * tests/unistr/test-strdup.h: New file.
21499
21500         Tests for module 'unistr/u32-strncmp'.
21501         * modules/unistr/u32-strncmp-tests: New file.
21502         * tests/unistr/test-u32-strncmp.c: New file.
21503
21504         Tests for module 'unistr/u16-strncmp'.
21505         * modules/unistr/u16-strncmp-tests: New file.
21506         * tests/unistr/test-u16-strncmp.c: New file.
21507
21508         Tests for module 'unistr/u8-strncmp'.
21509         * modules/unistr/u8-strncmp-tests: New file.
21510         * tests/unistr/test-u8-strncmp.c: New file.
21511         * tests/unistr/test-strncmp.h: New file.
21512
21513         Tests for module 'unistr/u32-strcoll'.
21514         * modules/unistr/u32-strcoll-tests: New file.
21515         * tests/unistr/test-u32-strcoll.c: New file.
21516
21517         Tests for module 'unistr/u16-strcoll'.
21518         * modules/unistr/u16-strcoll-tests: New file.
21519         * tests/unistr/test-u16-strcoll.c: New file.
21520
21521         Tests for module 'unistr/u8-strcoll'.
21522         * modules/unistr/u8-strcoll-tests: New file.
21523         * tests/unistr/test-u8-strcoll.c: New file.
21524
21525         Tests for module 'unistr/u32-strcmp'.
21526         * modules/unistr/u32-strcmp-tests: New file.
21527         * tests/unistr/test-u32-strcmp.c: New file.
21528         * tests/unistr/test-u32-strcmp.h: New file.
21529
21530         Tests for module 'unistr/u16-strcmp'.
21531         * modules/unistr/u16-strcmp-tests: New file.
21532         * tests/unistr/test-u16-strcmp.c: New file.
21533         * tests/unistr/test-u16-strcmp.h: New file.
21534
21535         Tests for module 'unistr/u8-strcmp'.
21536         * modules/unistr/u8-strcmp-tests: New file.
21537         * tests/unistr/test-u8-strcmp.c: New file.
21538         * tests/unistr/test-u8-strcmp.h: New file.
21539         * tests/unistr/test-strcmp.h: New file.
21540
21541         Tests for module 'unistr/u32-strncat'.
21542         * modules/unistr/u32-strncat-tests: New file.
21543         * tests/unistr/test-u32-strncat.c: New file.
21544
21545         Tests for module 'unistr/u16-strncat'.
21546         * modules/unistr/u16-strncat-tests: New file.
21547         * tests/unistr/test-u16-strncat.c: New file.
21548
21549         Tests for module 'unistr/u8-strncat'.
21550         * modules/unistr/u8-strncat-tests: New file.
21551         * tests/unistr/test-u8-strncat.c: New file.
21552         * tests/unistr/test-strncat.h: New file.
21553
21554         Tests for module 'unistr/u32-strcat'.
21555         * modules/unistr/u32-strcat-tests: New file.
21556         * tests/unistr/test-u32-strcat.c: New file.
21557
21558         Tests for module 'unistr/u16-strcat'.
21559         * modules/unistr/u16-strcat-tests: New file.
21560         * tests/unistr/test-u16-strcat.c: New file.
21561
21562         Tests for module 'unistr/u8-strcat'.
21563         * modules/unistr/u8-strcat-tests: New file.
21564         * tests/unistr/test-u8-strcat.c: New file.
21565         * tests/unistr/test-strcat.h: New file.
21566
21567         Tests for module 'unistr/u32-stpncpy'.
21568         * modules/unistr/u32-stpncpy-tests: New file.
21569         * tests/unistr/test-u32-stpncpy.c: New file.
21570
21571         Tests for module 'unistr/u16-stpncpy'.
21572         * modules/unistr/u16-stpncpy-tests: New file.
21573         * tests/unistr/test-u16-stpncpy.c: New file.
21574
21575         Tests for module 'unistr/u8-stpncpy'.
21576         * modules/unistr/u8-stpncpy-tests: New file.
21577         * tests/unistr/test-u8-stpncpy.c: New file.
21578         * tests/unistr/test-stpncpy.h: New file.
21579
21580         Tests for module 'unistr/u32-strncpy'.
21581         * modules/unistr/u32-strncpy-tests: New file.
21582         * tests/unistr/test-u32-strncpy.c: New file.
21583
21584         Tests for module 'unistr/u16-strncpy'.
21585         * modules/unistr/u16-strncpy-tests: New file.
21586         * tests/unistr/test-u16-strncpy.c: New file.
21587
21588         Tests for module 'unistr/u8-strncpy'.
21589         * modules/unistr/u8-strncpy-tests: New file.
21590         * tests/unistr/test-u8-strncpy.c: New file.
21591         * tests/unistr/test-strncpy.h: New file.
21592
21593         Tests for module 'unistr/u32-stpcpy'.
21594         * modules/unistr/u32-stpcpy-tests: New file.
21595         * tests/unistr/test-u32-stpcpy.c: New file.
21596
21597         Tests for module 'unistr/u16-stpcpy'.
21598         * modules/unistr/u16-stpcpy-tests: New file.
21599         * tests/unistr/test-u16-stpcpy.c: New file.
21600
21601         Tests for module 'unistr/u8-stpcpy'.
21602         * modules/unistr/u8-stpcpy-tests: New file.
21603         * tests/unistr/test-u8-stpcpy.c: New file.
21604         * tests/unistr/test-stpcpy.h: New file.
21605
21606         Tests for module 'unistr/u32-strcpy'.
21607         * modules/unistr/u32-strcpy-tests: New file.
21608         * tests/unistr/test-u32-strcpy.c: New file.
21609
21610         Tests for module 'unistr/u16-strcpy'.
21611         * modules/unistr/u16-strcpy-tests: New file.
21612         * tests/unistr/test-u16-strcpy.c: New file.
21613
21614         Tests for module 'unistr/u8-strcpy'.
21615         * modules/unistr/u8-strcpy-tests: New file.
21616         * tests/unistr/test-u8-strcpy.c: New file.
21617         * tests/unistr/test-strcpy.h: New file.
21618
21619         Tests for module 'unistr/u32-strnlen'.
21620         * modules/unistr/u32-strnlen-tests: New file.
21621         * tests/unistr/test-u32-strnlen.c: New file.
21622
21623         Tests for module 'unistr/u16-strnlen'.
21624         * modules/unistr/u16-strnlen-tests: New file.
21625         * tests/unistr/test-u16-strnlen.c: New file.
21626
21627         Tests for module 'unistr/u8-strnlen'.
21628         * modules/unistr/u8-strnlen-tests: New file.
21629         * tests/unistr/test-u8-strnlen.c: New file.
21630         * tests/unistr/test-strnlen.h: New file.
21631
21632         Tests for module 'unistr/u32-strlen'.
21633         * modules/unistr/u32-strlen-tests: New file.
21634         * tests/unistr/test-u32-strlen.c: New file.
21635
21636         Tests for module 'unistr/u16-strlen'.
21637         * modules/unistr/u16-strlen-tests: New file.
21638         * tests/unistr/test-u16-strlen.c: New file.
21639
21640         Tests for module 'unistr/u8-strlen'.
21641         * modules/unistr/u8-strlen-tests: New file.
21642         * tests/unistr/test-u8-strlen.c: New file.
21643
21644         Tests for module 'unistr/u32-prev'.
21645         * modules/unistr/u32-prev-tests: New file.
21646         * tests/unistr/test-u32-prev.c: New file.
21647
21648         Tests for module 'unistr/u16-prev'.
21649         * modules/unistr/u16-prev-tests: New file.
21650         * tests/unistr/test-u16-prev.c: New file.
21651
21652         Tests for module 'unistr/u8-prev'.
21653         * modules/unistr/u8-prev-tests: New file.
21654         * tests/unistr/test-u8-prev.c: New file.
21655
21656         Tests for module 'unistr/u32-next'.
21657         * modules/unistr/u32-next-tests: New file.
21658         * tests/unistr/test-u32-next.c: New file.
21659
21660         Tests for module 'unistr/u16-next'.
21661         * modules/unistr/u16-next-tests: New file.
21662         * tests/unistr/test-u16-next.c: New file.
21663
21664         Tests for module 'unistr/u8-next'.
21665         * modules/unistr/u8-next-tests: New file.
21666         * tests/unistr/test-u8-next.c: New file.
21667
21668         Tests for module 'unistr/u32-strmbtouc'.
21669         * modules/unistr/u32-strmbtouc-tests: New file.
21670         * tests/unistr/test-u32-strmbtouc.c: New file.
21671
21672         Tests for module 'unistr/u16-strmbtouc'.
21673         * modules/unistr/u16-strmbtouc-tests: New file.
21674         * tests/unistr/test-u16-strmbtouc.c: New file.
21675
21676         Tests for module 'unistr/u8-strmbtouc'.
21677         * modules/unistr/u8-strmbtouc-tests: New file.
21678         * tests/unistr/test-u8-strmbtouc.c: New file.
21679
21680         Tests for module 'unistr/u32-strmblen'.
21681         * modules/unistr/u32-strmblen-tests: New file.
21682         * tests/unistr/test-u32-strmblen.c: New file.
21683
21684         Tests for module 'unistr/u16-strmblen'.
21685         * modules/unistr/u16-strmblen-tests: New file.
21686         * tests/unistr/test-u16-strmblen.c: New file.
21687
21688         Tests for module 'unistr/u8-strmblen'.
21689         * modules/unistr/u8-strmblen-tests: New file.
21690         * tests/unistr/test-u8-strmblen.c: New file.
21691
21692         Tests for module 'unistr/u32-cpy-alloc'.
21693         * modules/unistr/u32-cpy-alloc-tests: New file.
21694         * tests/unistr/test-u32-cpy-alloc.c: New file.
21695
21696         Tests for module 'unistr/u16-cpy-alloc'.
21697         * modules/unistr/u16-cpy-alloc-tests: New file.
21698         * tests/unistr/test-u16-cpy-alloc.c: New file.
21699
21700         Tests for module 'unistr/u8-cpy-alloc'.
21701         * modules/unistr/u8-cpy-alloc-tests: New file.
21702         * tests/unistr/test-u8-cpy-alloc.c: New file.
21703         * tests/unistr/test-cpy-alloc.h: New file.
21704
21705         Tests for module 'unistr/u32-mbsnlen'.
21706         * modules/unistr/u32-mbsnlen-tests: New file.
21707         * tests/unistr/test-u32-mbsnlen.c: New file.
21708
21709         Tests for module 'unistr/u16-mbsnlen'.
21710         * modules/unistr/u16-mbsnlen-tests: New file.
21711         * tests/unistr/test-u16-mbsnlen.c: New file.
21712
21713         Tests for module 'unistr/u8-mbsnlen'.
21714         * modules/unistr/u8-mbsnlen-tests: New file.
21715         * tests/unistr/test-u8-mbsnlen.c: New file.
21716
21717         Tests for module 'unistr/u32-chr'.
21718         * modules/unistr/u32-chr-tests: New file.
21719         * tests/unistr/test-u32-chr.c: New file.
21720
21721         Tests for module 'unistr/u16-chr'.
21722         * modules/unistr/u16-chr-tests: New file.
21723         * tests/unistr/test-u16-chr.c: New file.
21724
21725         Tests for module 'unistr/u8-chr'.
21726         * modules/unistr/u8-chr-tests: New file.
21727         * tests/unistr/test-u8-chr.c: New file.
21728         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21729
21730         Tests for module 'unistr/u32-cmp2'.
21731         * modules/unistr/u32-cmp2-tests: New file.
21732         * tests/unistr/test-u32-cmp2.c: New file.
21733
21734         Tests for module 'unistr/u16-cmp2'.
21735         * modules/unistr/u16-cmp2-tests: New file.
21736         * tests/unistr/test-u16-cmp2.c: New file.
21737
21738         Tests for module 'unistr/u8-cmp2'.
21739         * modules/unistr/u8-cmp2-tests: New file.
21740         * tests/unistr/test-u8-cmp2.c: New file.
21741         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21742
21743         Tests for module 'unistr/u32-cmp'.
21744         * modules/unistr/u32-cmp-tests: New file.
21745         * tests/unistr/test-u32-cmp.c: New file.
21746
21747         Tests for module 'unistr/u16-cmp'.
21748         * modules/unistr/u16-cmp-tests: New file.
21749         * tests/unistr/test-u16-cmp.c: New file.
21750
21751         Tests for module 'unistr/u8-cmp'.
21752         * modules/unistr/u8-cmp-tests: New file.
21753         * tests/unistr/test-u8-cmp.c: New file.
21754         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21755
21756         Tests for module 'unistr/u32-set'.
21757         * modules/unistr/u32-set-tests: New file.
21758         * tests/unistr/test-u32-set.c: New file.
21759
21760         Tests for module 'unistr/u16-set'.
21761         * modules/unistr/u16-set-tests: New file.
21762         * tests/unistr/test-u16-set.c: New file.
21763
21764         Tests for module 'unistr/u8-set'.
21765         * modules/unistr/u8-set-tests: New file.
21766         * tests/unistr/test-u8-set.c: New file.
21767         * tests/unistr/test-set.h: New file.
21768
21769         Tests for module 'unistr/u32-move'.
21770         * modules/unistr/u32-move-tests: New file.
21771         * tests/unistr/test-u32-move.c: New file.
21772
21773         Tests for module 'unistr/u16-move'.
21774         * modules/unistr/u16-move-tests: New file.
21775         * tests/unistr/test-u16-move.c: New file.
21776
21777         Tests for module 'unistr/u8-move'.
21778         * modules/unistr/u8-move-tests: New file.
21779         * tests/unistr/test-u8-move.c: New file.
21780         * tests/unistr/test-move.h: New file.
21781
21782         Tests for module 'unistr/u32-cpy'.
21783         * modules/unistr/u32-cpy-tests: New file.
21784         * tests/unistr/test-u32-cpy.c: New file.
21785
21786         Tests for module 'unistr/u16-cpy'.
21787         * modules/unistr/u16-cpy-tests: New file.
21788         * tests/unistr/test-u16-cpy.c: New file.
21789
21790         Tests for module 'unistr/u8-cpy'.
21791         * modules/unistr/u8-cpy-tests: New file.
21792         * tests/unistr/test-u8-cpy.c: New file.
21793         * tests/unistr/test-cpy.h: New file.
21794
21795 2010-01-09  Bruno Haible  <bruno@clisp.org>
21796
21797         Tests for module 'unistr/u32-uctomb'.
21798         * modules/unistr/u32-uctomb-tests: New file.
21799         * tests/unistr/test-u32-uctomb.c: New file.
21800
21801         Tests for module 'unistr/u16-uctomb'.
21802         * modules/unistr/u16-uctomb-tests: New file.
21803         * tests/unistr/test-u16-uctomb.c: New file.
21804
21805         Tests for module 'unistr/u8-uctomb'.
21806         * modules/unistr/u8-uctomb-tests: New file.
21807         * tests/unistr/test-u8-uctomb.c: New file.
21808
21809         Tests for module 'unistr/u32-mbtoucr'.
21810         * modules/unistr/u32-mbtoucr-tests: New file.
21811         * tests/unistr/test-u32-mbtoucr.c: New file.
21812
21813         Tests for module 'unistr/u16-mbtoucr'.
21814         * modules/unistr/u16-mbtoucr-tests: New file.
21815         * tests/unistr/test-u16-mbtoucr.c: New file.
21816
21817         Tests for module 'unistr/u8-mbtoucr'.
21818         * modules/unistr/u8-mbtoucr-tests: New file.
21819         * tests/unistr/test-u8-mbtoucr.c: New file.
21820
21821         Tests for module 'unistr/u32-mbtouc'.
21822         * modules/unistr/u32-mbtouc-tests: New file.
21823         * tests/unistr/test-u32-mbtouc.c: New file.
21824
21825         Tests for module 'unistr/u16-mbtouc'.
21826         * modules/unistr/u16-mbtouc-tests: New file.
21827         * tests/unistr/test-u16-mbtouc.c: New file.
21828
21829         Tests for module 'unistr/u8-mbtouc'.
21830         * modules/unistr/u8-mbtouc-tests: New file.
21831         * tests/unistr/test-u8-mbtouc.c: New file.
21832
21833         Tests for module 'unistr/u32-mbtouc-unsafe'.
21834         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21835         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21836         * tests/unistr/test-u32-mbtouc.h: New file.
21837
21838         Tests for module 'unistr/u16-mbtouc-unsafe'.
21839         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21840         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21841         * tests/unistr/test-u16-mbtouc.h: New file.
21842
21843         Tests for module 'unistr/u8-mbtouc-unsafe'.
21844         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21845         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21846         * tests/unistr/test-u8-mbtouc.h: New file.
21847
21848         Tests for module 'unistr/u32-mblen'.
21849         * modules/unistr/u32-mblen-tests: New file.
21850         * tests/unistr/test-u32-mblen.c: New file.
21851
21852         Tests for module 'unistr/u16-mblen'.
21853         * modules/unistr/u16-mblen-tests: New file.
21854         * tests/unistr/test-u16-mblen.c: New file.
21855
21856         Tests for module 'unistr/u8-mblen'.
21857         * modules/unistr/u8-mblen-tests: New file.
21858         * tests/unistr/test-u8-mblen.c: New file.
21859
21860         Tests for module 'unistr/u32-to-u16'.
21861         * modules/unistr/u32-to-u16-tests: New file.
21862         * tests/unistr/test-u32-to-u16.c: New file.
21863
21864         Tests for module 'unistr/u32-to-u8'.
21865         * modules/unistr/u32-to-u8-tests: New file.
21866         * tests/unistr/test-u32-to-u8.c: New file.
21867
21868         Tests for module 'unistr/u16-to-u32'.
21869         * modules/unistr/u16-to-u32-tests: New file.
21870         * tests/unistr/test-u16-to-u32.c: New file.
21871
21872         Tests for module 'unistr/u16-to-u8'.
21873         * modules/unistr/u16-to-u8-tests: New file.
21874         * tests/unistr/test-u16-to-u8.c: New file.
21875
21876         Tests for module 'unistr/u8-to-u32'.
21877         * modules/unistr/u8-to-u32-tests: New file.
21878         * tests/unistr/test-u8-to-u32.c: New file.
21879
21880         Tests for module 'unistr/u8-to-u16'.
21881         * modules/unistr/u8-to-u16-tests: New file.
21882         * tests/unistr/test-u8-to-u16.c: New file.
21883
21884         Tests for module 'unistr/u32-check'.
21885         * modules/unistr/u32-check-tests: New file.
21886         * tests/unistr/test-u32-check.c: New file.
21887
21888         Tests for module 'unistr/u16-check'.
21889         * modules/unistr/u16-check-tests: New file.
21890         * tests/unistr/test-u16-check.c: New file.
21891
21892         Tests for module 'unistr/u8-check'.
21893         * modules/unistr/u8-check-tests: New file.
21894         * tests/unistr/test-u8-check.c: New file.
21895
21896         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21897         (category_equals): New function.
21898         (main): Add more tests.
21899         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21900
21901         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21902
21903 2010-01-10  Bruno Haible  <bruno@clisp.org>
21904
21905         unistr/u*-strcoll: Try harder to distinguish different strings.
21906         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21907         compare s1 and s2 to see if they are different.
21908
21909 2010-01-10  Bruno Haible  <bruno@clisp.org>
21910
21911         unistr/u*-stpncpy: Fix the return value.
21912         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21913         description of the return value consistent with stpncpy in glibc.
21914         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21915         written non-NUL unit.
21916
21917 2010-01-10  Bruno Haible  <bruno@clisp.org>
21918
21919         unistr/u*-next: Add missing dependencies.
21920         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21921         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21922         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21923
21924 2010-01-10  Bruno Haible  <bruno@clisp.org>
21925
21926         unistr/u8-mbsnlen: Fix return value for incomplete character.
21927         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21928         u8_mblen.
21929         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21930         Remove unistr/u8-mblen.
21931         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21932         u16_mblen.
21933         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21934         Remove unistr/u16-mblen.
21935
21936 2010-01-10  Bruno Haible  <bruno@clisp.org>
21937
21938         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21939         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21940         Reported by Brian Gough <bjg@gnu.org> and
21941         Chris Clayton <chris2553@googlemail.com> via
21942         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21943
21944 2010-01-09  Bruno Haible  <bruno@clisp.org>
21945
21946         unistr/u16-to-u32: Reject invalid input.
21947         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21948         u16_mbtouc.
21949         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21950         Remove unistr/u16-mbtouc.
21951
21952         unistr/u16-to-u8: Reject invalid input.
21953         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21954         u16_mbtouc.
21955         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21956         Remove unistr/u16-mbtouc.
21957
21958         unistr/u8-to-u32: Reject invalid input.
21959         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21960         u8_mbtouc.
21961         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21962         Remove unistr/u8-mbtouc.
21963
21964         unistr/u8-to-u16: Reject invalid input.
21965         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21966         u8_mbtouc.
21967         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21968         Remove unistr/u8-mbtouc.
21969
21970 2010-01-09  Bruno Haible  <bruno@clisp.org>
21971
21972         Tests for module 'getlogin'.
21973         * modules/getlogin-tests: New file.
21974         * tests/test-getlogin.c: New file.
21975
21976         New module 'getlogin'.
21977         * lib/unistd.in.h (getlogin): New declaration.
21978         * lib/getlogin.c: New file.
21979         * m4/getlogin.m4: New file.
21980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21981         HAVE_GETLOGIN.
21982         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21983         HAVE_GETLOGIN.
21984         * modules/getlogin: New file.
21985         * doc/posix-functions/getlogin.texi: Mention the new module.
21986         Reported by John W. Eaton <jwe@gnu.org>.
21987
21988 2010-01-09  Bruno Haible  <bruno@clisp.org>
21989
21990         getlogin_r: Support for native Windows.
21991         * lib/getlogin_r.c: Include <windows.h>
21992         (getlogin_r): Implement for native Windows.
21993         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21994         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21995         via John W. Eaton <jwe@gnu.org>.
21996
21997 2010-01-09  Bruno Haible  <bruno@clisp.org>
21998
21999         getlogin_r: Small fixes.
22000         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22001         succeeds.
22002         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22003         before testing whether getlogin_r is declared. No need to set
22004         HAVE_DECL_GETLOGIN_R to 1.
22005         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22006
22007 2010-01-09  Bruno Haible  <bruno@clisp.org>
22008
22009         * lib/unistd.in.h (getlogin_r): Add comment.
22010
22011 2010-01-09  Bruno Haible  <bruno@clisp.org>
22012
22013         Tests for module 'getlogin_r'.
22014         * modules/getlogin_r-tests: New file.
22015         * tests/test-getlogin_r.c: New file.
22016
22017 2010-01-09  Jim Meyering  <meyering@redhat.com>
22018
22019         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22020         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22021         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22022
22023 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22024
22025         * lib/dup2.c (rpl_dup2): Improve comment.
22026
22027 2010-01-08  Eric Blake  <ebb9@byu.net>
22028
22029         maint.mk: allow packages to add makefile @@ exceptions
22030         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22031         (sc_makefile_check): Rename...
22032         (sc_makefile_at_at_check): ...to this, and use hook.
22033
22034         dup2: work around mingw bug
22035         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22036         Reported by Simon Josefsson.
22037
22038 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22039
22040         glob: Fix C++ compilation.
22041         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22042         C++.
22043
22044 2010-01-07  Bruno Haible  <bruno@clisp.org>
22045
22046         Fix indentation of wctype.in.h, broken since 2007-01-06.
22047         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22048
22049 2010-01-07  Bruno Haible  <bruno@clisp.org>
22050
22051         mbslen: Avoid collision with system function.
22052         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22053         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22054         * m4/mbslen.m4: New file.
22055         * modules/mbslen (Files): Add it.
22056         (configure.ac): Invoke gl_MBSLEN.
22057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22058         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22059         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22060         via Ian Beckwith <ianb@erislabs.net>.
22061
22062 2010-01-07  Bruno Haible  <bruno@clisp.org>
22063
22064         dirent: Document the last fix.
22065         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22066
22067 2010-01-07  Bruno Haible  <bruno@clisp.org>
22068
22069         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22070         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22071         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22072         va_list are defined.
22073         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22074         Reported by Eric Blake.
22075
22076 2010-01-07  Bruno Haible  <bruno@clisp.org>
22077
22078         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22079         * modules/xlist (Depends-on): Add 'list',
22080         * modules/xoset (Depends-on): Add 'oset'.
22081         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22082
22083 2010-01-07  Bruno Haible  <bruno@clisp.org>
22084
22085         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22086         * doc/posix-functions/strncasecmp.texi: Likewise.
22087
22088 2010-01-07  Bruno Haible  <bruno@clisp.org>
22089
22090         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22091
22092 2010-01-07  John W. Eaton  <jwe@octave.org>
22093
22094         wctype: allow C++ use
22095         * lib/wctype.in.h: Add extern "C" block for C++.
22096
22097 2010-01-06  Eric Blake  <ebb9@byu.net>
22098
22099         maint.mk: detect incorrect GFDL usage
22100         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22101
22102 2010-01-06  Jim Meyering  <meyering@redhat.com>
22103         and Eric Blake  <ebb9@byu.net>
22104
22105         maint.mk: ignore multi-line copyright in NEWS
22106         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22107
22108 2010-01-06  Eric Blake  <ebb9@byu.net>
22109
22110         select: add missing dependency
22111         * modules/select-tests (Depends-on): Move sockets dependency...
22112         * modules/select (Depends-on): ...here.
22113         Reported by Ian Beckwith.
22114
22115         doc: regenerate INSTALL
22116         * doc/INSTALL: Reflect recent autoconf update.
22117         * doc/INSTALL.ISO: Likewise.
22118         * doc/INSTALL.UTF-8: Likewise.
22119
22120         pread: fix compilation on glibc
22121         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22122         Reported by Ralf Wildenhues.
22123
22124         dirent: fix test failure
22125         * lib/dirent.in.h (includes): Guarantee ino_t.
22126         Reported by Ralf Wildenhues.
22127
22128 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22129
22130         linkat, renameat: avoid bad free
22131         * lib/at-func2.c (at_func2): Fix typo.
22132         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22133
22134 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22135
22136         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22137         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22138         to avoid failure of symlink test later.
22139
22140 2010-01-06  Eric Blake  <ebb9@byu.net>
22141
22142         stdio, unistd: guarantee ssize_t
22143         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22144         2008 are exposed when needed.
22145         * lib/stdio.in.h (includes): Likewise.
22146         Reported by Ralf Wildenhues.
22147
22148 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22149
22150         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22151         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22152         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22153
22154 2010-01-06  Jim Meyering  <meyering@redhat.com>
22155
22156         readtokens: this module *does* require xalloc.h
22157         It uses only functions that were omitted by the old syntax-check rule.
22158         * lib/readtokens.c: Include "xalloc.h" once again.
22159         * modules/readtokens (Depends-on): Add xalloc.
22160         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22161
22162 2010-01-05  Eric Blake  <ebb9@byu.net>
22163
22164         maint: support 'make announcement' from a VPATH build
22165         * top/maint.mk (announcement): Look for correct NEWS file.
22166
22167 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22168
22169         utimens (fdutimens): ignore a negative FD, per contract
22170         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22171         when we have a valid file descriptor.  Otherwise, using a brand
22172         new glibc (with just-patched futimens that now fails with EBADF)
22173         would cause this function to fail with ENOSYS.
22174         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22175         See also http://bugzilla.redhat.com/552320.
22176
22177 2010-01-05  Eric Blake  <ebb9@byu.net>
22178
22179         strcase: document what it provides
22180         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22181         gnulib module.
22182         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22183         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22184
22185 2010-01-05  Jim Meyering  <meyering@redhat.com>
22186
22187         maint: remove useless inclusions of "xalloc.h"
22188         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22189         * lib/readtokens.c: Likewise.
22190         * lib/same.c: Likewise.
22191         * modules/getloadavg (Depends-on): Remove xalloc.
22192         * modules/readtokens: Likewise.
22193         * modules/same: Likewise.
22194
22195         maint.mk: include 4 more function names in alloca.h-checking regexp
22196         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22197         regexp.  Before, we would give a false-positive (saying alloca.h
22198         is included unnecessarily) when the only uses involved omitted symbols.
22199
22200         xalloc.h: use consistent formatting
22201         * lib/xalloc.h: Move declarations to start in the first column.
22202
22203 2010-01-05  Eric Blake  <ebb9@byu.net>
22204
22205         mkdir: avoid xalloc
22206         * lib/mkdir.c (includes): Drop unused header.
22207         Reported by John W. Eaton.
22208
22209 2010-01-04  Jim Meyering  <meyering@redhat.com>
22210
22211         nl_langinfo: avoid configure-time syntax error
22212         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22213         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22214         the empty string.  Don't let that provoke a shell syntax error.
22215
22216         regcomp, regexec, fnmatch: avoid array bounds read error
22217         * lib/regcomp.c (build_equiv_class): From glibc:
22218         Use only the low 24 bits of a findidx return value as an index
22219         into the weights array.  Patch by Ulrich Drepper:
22220         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22221         * lib/regexec.c (check_node_accept_bytes): Likewise.
22222         * lib/fnmatch_loop.c (FCT): Likewise.
22223
22224         regcomp: skip collseq lookup when there are no rules
22225         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22226         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22227
22228         regcomp: recognize ill-formed { } expressions
22229         * lib/regcomp.c (parse_dup_op): From glibc:
22230         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22231
22232         regcomp: fix typo in comment
22233         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22234         s/satisfy/satisfies/.
22235
22236         regcomp: sync from glibc: remove dead store
22237         * lib/regcomp.c (duplicate_node_closure): Remove useless
22238         search_duplicated_node call and dead store.
22239
22240         regcomp: sync from glibc; always use nl_langinfo
22241         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22242         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22243         * modules/regex (Depends-on): Add nl_langinfo.
22244
22245 2010-01-04  Eric Blake  <ebb9@byu.net>
22246
22247         fdopendir: fix configure test
22248         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22249
22250 2010-01-01  Bruno Haible  <bruno@clisp.org>
22251
22252         wchar: Remove unused configure check.
22253         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22254
22255 2010-01-01  Eric Blake  <ebb9@byu.net>
22256
22257         headers: make check of system header explicit
22258         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22259         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22260         ourselves.
22261         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22263         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22264         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22265         internals.
22266         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22267         missing.
22268         Suggested by Bruno Haible.
22269
22270 2010-01-01  Jim Meyering  <meyering@redhat.com>
22271
22272         ChangeLog: tweak to eliminate unnecessary copyright line
22273         * ChangeLog: Remove a copyright line that was mistakenly updated
22274         by today's update-copyright run.  Reported by Eric Blake.
22275
22276         test-update-copyright: don't let envvar setting cause test failure
22277         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22278
22279 2010-01-01  Bruno Haible  <bruno@clisp.org>
22280
22281         localename: Avoid gcc warning.
22282         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22283         function if it is not used.
22284
22285 2010-01-01  Jim Meyering  <meyering@redhat.com>
22286
22287         update nearly all FSF copyright year lists to include 2010
22288         Use the same procedure as for 2009, outlined in
22289         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22290
22291         version-etc: set COPYRIGHT_YEAR to 2010
22292         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22293
22294 2009-12-31  Eric Blake  <ebb9@byu.net>
22295
22296         doc: correct availability of cygwin 1.5.x getopt
22297         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22298         variables.
22299         * doc/posix-functions/opterr.texi (opterr): Likewise.
22300         * doc/posix-functions/optind.texi (optind): Likewise.
22301         * doc/posix-functions/optopt.texi (optopt): Likewise.
22302         * doc/posix-functions/tzname.texi (tzname): Likewise.
22303
22304         openat: update maintainer
22305         * modules/openat (Maintainer): Add myself.
22306
22307         utimens: avoid shadowing warning
22308         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22309         buffers into one, to avoid shadowing, as well as avoiding a
22310         redundant stat.
22311         Reported by Jim Meyering.
22312
22313         test-dup2: avoid compiler warning
22314         * tests/test-dup2.c (is_inheritable): Only define if used.
22315
22316 2010-01-01  Bruno Haible  <bruno@clisp.org>
22317
22318         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22319         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22320         defined, use wctomb instead of wcrtomb.
22321
22322 2010-01-01  Bruno Haible  <bruno@clisp.org>
22323
22324         iconv: Reject native Solaris iconv.
22325         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22326         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22327
22328 2009-12-31  Bruno Haible  <bruno@clisp.org>
22329
22330         * tests/test-signal.c (main): Remove test of 'SIG'.
22331
22332 2009-12-31  Bruno Haible  <bruno@clisp.org>
22333
22334         spawn: Fix incomplete fix.
22335         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22336         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22337         warnings for GNULIB_POSIXCHECK again.
22338         Reported by Eric Blake.
22339
22340 2009-12-31  Bruno Haible  <bruno@clisp.org>
22341
22342         Avoid namespace pollution on glibc systems.
22343         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22344         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22345         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22346         glibc systems.
22347
22348 2009-12-31  Bruno Haible  <bruno@clisp.org>
22349
22350         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22351         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22352         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22353         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22354         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22355         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22356         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22357
22358 2009-12-31  Bruno Haible  <bruno@clisp.org>
22359
22360         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22361         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22362         afterwards.
22363
22364 2009-12-31  Bruno Haible  <bruno@clisp.org>
22365
22366         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22367         SYS_UTSNAME_H.
22368
22369 2009-12-31  Bruno Haible  <bruno@clisp.org>
22370
22371         spawn: Fix misapplied patch.
22372         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22373         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22374         warnings for GNULIB_POSIXCHECK.
22375
22376 2009-12-31  Bruno Haible  <bruno@clisp.org>
22377
22378         times: Update after sys_times changed.
22379         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22380         * modules/times (Files): Add it.
22381         (configure.ac): Invoke gl_FUNC_TIMES.
22382
22383 2009-12-31  Bruno Haible  <bruno@clisp.org>
22384
22385         Use AC_C_INLINE where necessary.
22386         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22387         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22389         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22390         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22391         * m4/mbiter.m4 (gl_MBITER): Likewise.
22392         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22393         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22394         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22395         * modules/u64 (configure.ac): Likewise.
22396
22397 2009-12-31  Bruno Haible  <bruno@clisp.org>
22398
22399         Use AC_C_INLINE instead of module 'inline' where possible.
22400         * modules/inline (Description): Clarify purpose.
22401         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22402         * modules/count-one-bits (Depends-on): Remove inline.
22403         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22404         * modules/openat (Depends-on): Remove inline.
22405         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22406         instead of depending on module 'inline'.
22407         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22408         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22409         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22410         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22411         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22412         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22413         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22414         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22415         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22416         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22417         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22418         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22419         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22420         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22421         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22422         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22423         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22424         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22425         Likewise.
22426         * modules/unictype/property-ascii-hex-digit (Depends-on,
22427         configure.ac): Likewise.
22428         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22429         configure.ac): Likewise.
22430         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22431         configure.ac): Likewise.
22432         * modules/unictype/property-bidi-block-separator (Depends-on,
22433         configure.ac): Likewise.
22434         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22435         configure.ac): Likewise.
22436         * modules/unictype/property-bidi-common-separator (Depends-on,
22437         configure.ac): Likewise.
22438         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22439         Likewise.
22440         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22441         configure.ac): Likewise.
22442         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22443         configure.ac): Likewise.
22444         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22445         configure.ac): Likewise.
22446         * modules/unictype/property-bidi-european-digit (Depends-on,
22447         configure.ac): Likewise.
22448         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22449         configure.ac): Likewise.
22450         * modules/unictype/property-bidi-left-to-right (Depends-on,
22451         configure.ac): Likewise.
22452         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22453         configure.ac): Likewise.
22454         * modules/unictype/property-bidi-other-neutral (Depends-on,
22455         configure.ac): Likewise.
22456         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22457         Likewise.
22458         * modules/unictype/property-bidi-segment-separator (Depends-on,
22459         configure.ac): Likewise.
22460         * modules/unictype/property-bidi-whitespace (Depends-on,
22461         configure.ac): Likewise.
22462         * modules/unictype/property-combining (Depends-on, configure.ac):
22463         Likewise.
22464         * modules/unictype/property-composite (Depends-on, configure.ac):
22465         Likewise.
22466         * modules/unictype/property-currency-symbol (Depends-on,
22467         configure.ac): Likewise.
22468         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22469         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22470         Likewise.
22471         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22472         configure.ac): Likewise.
22473         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22474         Likewise.
22475         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22476         Likewise.
22477         * modules/unictype/property-extender (Depends-on, configure.ac):
22478         Likewise.
22479         * modules/unictype/property-format-control (Depends-on, configure.ac):
22480         Likewise.
22481         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22482         Likewise.
22483         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22484         Likewise.
22485         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22486         Likewise.
22487         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22488         Likewise.
22489         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22490         Likewise.
22491         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22492         Likewise.
22493         * modules/unictype/property-id-start (Depends-on, configure.ac):
22494         Likewise.
22495         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22496         Likewise.
22497         * modules/unictype/property-ids-binary-operator (Depends-on,
22498         configure.ac): Likewise.
22499         * modules/unictype/property-ids-trinary-operator (Depends-on,
22500         configure.ac): Likewise.
22501         * modules/unictype/property-ignorable-control (Depends-on,
22502         configure.ac): Likewise.
22503         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22504         Likewise.
22505         * modules/unictype/property-join-control (Depends-on, configure.ac):
22506         Likewise.
22507         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22508         Likewise.
22509         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22510         Likewise.
22511         * modules/unictype/property-logical-order-exception (Depends-on,
22512         configure.ac): Likewise.
22513         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22514         Likewise.
22515         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22516         * modules/unictype/property-non-break (Depends-on, configure.ac):
22517         Likewise.
22518         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22519         Likewise.
22520         * modules/unictype/property-numeric (Depends-on, configure.ac):
22521         Likewise.
22522         * modules/unictype/property-other-alphabetic (Depends-on,
22523         configure.ac): Likewise.
22524         * modules/unictype/property-other-default-ignorable-code-point
22525         (Depends-on, configure.ac): Likewise.
22526         * modules/unictype/property-other-grapheme-extend (Depends-on,
22527         configure.ac): Likewise.
22528         * modules/unictype/property-other-id-continue (Depends-on,
22529         configure.ac): Likewise.
22530         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22531         Likewise.
22532         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22533         Likewise.
22534         * modules/unictype/property-other-math (Depends-on, configure.ac):
22535         Likewise.
22536         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22537         Likewise.
22538         * modules/unictype/property-paired-punctuation (Depends-on,
22539         configure.ac): Likewise.
22540         * modules/unictype/property-paragraph-separator (Depends-on,
22541         configure.ac): Likewise.
22542         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22543         Likewise.
22544         * modules/unictype/property-pattern-white-space (Depends-on,
22545         configure.ac): Likewise.
22546         * modules/unictype/property-private-use (Depends-on, configure.ac):
22547         Likewise.
22548         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22549         Likewise.
22550         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22551         Likewise.
22552         * modules/unictype/property-radical (Depends-on, configure.ac):
22553         Likewise.
22554         * modules/unictype/property-sentence-terminal (Depends-on,
22555         configure.ac): Likewise.
22556         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22557         Likewise.
22558         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22559         * modules/unictype/property-terminal-punctuation (Depends-on,
22560         configure.ac): Likewise.
22561         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22562         Likewise.
22563         * modules/unictype/property-unassigned-code-value (Depends-on,
22564         configure.ac): Likewise.
22565         * modules/unictype/property-unified-ideograph (Depends-on,
22566         configure.ac): Likewise.
22567         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22568         Likewise.
22569         * modules/unictype/property-variation-selector (Depends-on,
22570         configure.ac): Likewise.
22571         * modules/unictype/property-white-space (Depends-on, configure.ac):
22572         Likewise.
22573         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22574         Likewise.
22575         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22576         Likewise.
22577         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22578         Likewise.
22579         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22580         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22581         Likewise.
22582
22583 2009-12-31  Bruno Haible  <bruno@clisp.org>
22584
22585         Remove unnecessary AC_C_INLINE invocation.
22586         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22587         since 2009-08-21.
22588
22589 2009-12-31  Jim Meyering  <meyering@redhat.com>
22590
22591         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22592         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22593         With this change, we can all remove the gpg_key_ID = ... definition
22594         from our respective cfg.mk files.
22595
22596         maint.mk: create announcement template in ~/, not in /tmp
22597         * top/maint.mk (emit_upload_commands): Adjust.
22598         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22599         Remove temporary file, .ci-msg.
22600
22601 2009-12-31  Eric Blake  <ebb9@byu.net>
22602
22603         link-warning: always build headers with link warnings
22604         * modules/arpa_inet (Makefile.am): Always build replacement
22605         header.
22606         * modules/ctype (Makefile.am): Likewise.
22607         * modules/dirent (Makefile.am): Likewise.
22608         * modules/inttypes (Makefile.am): Likewise.
22609         * modules/langinfo (Makefile.am): Likewise.
22610         * modules/locale (Makefile.am): Likewise.
22611         * modules/spawn (Makefile.am): Likewise.
22612         * modules/sys_file (Makefile.am): Likewise.
22613         * modules/sys_ioctl (Makefile.am): Likewise.
22614         * modules/sys_select (Makefile.am): Likewise.
22615         * modules/sys_socket (Makefile.am): Likewise.
22616         * modules/sys_times (Makefile.am): Likewise.
22617         * modules/sys_utsname (Makefile.am): Likewise.
22618         * modules/sys_wait (Makefile.am): Likewise.
22619         * modules/wchar (Makefile.am): Likewise.
22620         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22621         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22622         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22623         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22624         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22625         Likewise.
22626         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22627         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22628         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22629         Likewise.
22630         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22631         Likewise.
22632         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22633         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22634         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22636         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22638         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22639         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22640         (gl_WCHAR_H_DEFAULTS): Likewise.
22641
22642 2009-12-31  Eric Blake  <ebb9@byu.net>
22643
22644         signal, spawn: use link warnings
22645         * lib/signal.in.h (sigset_t): Make unconditional.
22646         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22647         (sigpending, sigprocmask, sigaction): Add link warnings.
22648         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22649         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22650         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22651         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22652         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22653         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22654         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22655         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22656         (posix_spawn_file_actions_destroy)
22657         (posix_spawn_file_actions_addopen)
22658         (posix_spawn_file_actions_addclose)
22659         (posix_spawn_file_actions_adddup2): Likewise.
22660         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22661         * tests/test-signal.c (main): Enhance test.
22662
22663         spawn: improve wrapper support
22664         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22665         (gl_SPAWN_H_DEFAULTS): New defaults.
22666         * modules/spawn (Makefile.am): Substitute them.
22667         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22668         Only declare if missing or broken.
22669
22670         sys_times, sys_utsname: use include_next
22671         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22672         header.
22673         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22674         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22675         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22676         * modules/sys_times (Depends-on): Add include_next.
22677         (Makefile.am): Substitute additional values.
22678         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22679         * lib/sys_times.in.h (includes): Include native header, if
22680         available.
22681         * lib/sys_utsname.in.h (includes): Likewise.
22682         * tests/test-sys_times.c (main): Enhance test.
22683
22684         fdutimensat: revert prior patch
22685         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22686         utimens.h.
22687         Reported by Bruno Haible.
22688
22689 2009-12-30  Eric Blake  <ebb9@byu.net>
22690
22691         sys_wait: drop link-warning dependency
22692         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22693         link-warning efforts.
22694         * lib/sys_wait.in.h: Likewise.
22695
22696         fdutimensat: remove bogus dependency
22697         * modules/fdutimensat (Depends-on): Drop inline.
22698
22699         unistd: fix typo
22700         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22701
22702 2009-12-30  Bruno Haible  <bruno@clisp.org>
22703
22704         Fix compilation error with Solaris cc.
22705         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22706         * lib/unicase/u16-is-invariant.c: Likewise.
22707         * lib/unicase/u32-is-invariant.c: Likewise.
22708         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22709
22710 2009-12-30  Bruno Haible  <bruno@clisp.org>
22711
22712         Fix test crash.
22713         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22714         locales.
22715         Reported by Simon Josefsson <simon@josefsson.org>.
22716
22717 2009-12-30  Bruno Haible  <bruno@clisp.org>
22718
22719         Fix compilation error on most platforms.
22720         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22721         Reported by Simon Josefsson <simon@josefsson.org>
22722         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22723
22724 2009-12-30  Eric Blake  <ebb9@byu.net>
22725
22726         futimens, utimensat: work around ntfs-3g bug
22727         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22728         a ctime bug is present, and expand workaround to cover ntfs-3g.
22729         * lib/utimens.c (fdutimens, lutimens): Likewise.
22730         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22731         (validate_timespec): Adjust return value.
22732         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22733         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22734         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22735
22736 2009-12-29  Eric Blake  <ebb9@byu.net>
22737
22738         link-warning: make usage consistent
22739         * modules/ctype (Depends-on): Add link-warning.
22740         (Makefile.am): Update rules accordingly.
22741         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22742         * modules/locale (Depends-on, Makefile.am): Likewise.
22743         * modules/sys_file (Makefile.am): Likewise.
22744         * modules/getopt-posix (Makefile.am): Delete unused link warning
22745         efforts.
22746         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22747         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22748         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22749         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22750
22751         stdio: remove unused variables
22752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22753         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22754         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22755
22756         tests: test more substitute headers
22757         * modules/ctype-tests: New file.
22758         * modules/dirent-tests: Likewise.
22759         * modules/spawn-tests: Likewise.
22760         * modules/sys_file-tests: Likewise.
22761         * modules/sys_ioctl-tests: Likewise.
22762         * modules/sys_wait-tests: Likewise.
22763         * tests/test-ctype.c: Likewise.
22764         * tests/test-dirent.c: Likewise.
22765         * tests/test-spawn.c: Likewise.
22766         * tests/test-sys_file.c: Likewise.
22767         * tests/test-sys_ioctl.c: Likewise.
22768         * tests/test-sys_wait.c: Likewise.
22769         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22770         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22771         whether or not flock is in use.
22772
22773         tests: remove License section from module
22774         * modules/arpa_inet-tests: Remove unneeded section.
22775         * modules/byteswap-tests: Likewise.
22776         * modules/ceilf-tests: Likewise.
22777         * modules/ceill-tests: Likewise.
22778         * modules/crypto/des-tests: Likewise.
22779         * modules/crypto/gc-arcfour-tests: Likewise.
22780         * modules/crypto/gc-arctwo-tests: Likewise.
22781         * modules/crypto/gc-des-tests: Likewise.
22782         * modules/crypto/gc-hmac-md5-tests: Likewise.
22783         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22784         * modules/crypto/gc-md2-tests: Likewise.
22785         * modules/crypto/gc-md4-tests: Likewise.
22786         * modules/crypto/gc-md5-tests: Likewise.
22787         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22788         * modules/crypto/gc-rijndael-tests: Likewise.
22789         * modules/crypto/gc-sha1-tests: Likewise.
22790         * modules/crypto/gc-tests: Likewise.
22791         * modules/crypto/md2-tests: Likewise.
22792         * modules/crypto/md4-tests: Likewise.
22793         * modules/fcntl-h-tests: Likewise.
22794         * modules/floorf-tests: Likewise.
22795         * modules/floorl-tests: Likewise.
22796         * modules/frexp-nolibm-tests: Likewise.
22797         * modules/frexp-tests: Likewise.
22798         * modules/frexpl-nolibm-tests: Likewise.
22799         * modules/frexpl-tests: Likewise.
22800         * modules/getaddrinfo-tests: Likewise.
22801         * modules/inttypes-tests: Likewise.
22802         * modules/isfinite-tests: Likewise.
22803         * modules/isinf-tests: Likewise.
22804         * modules/ldexpl-tests: Likewise.
22805         * modules/locale-tests: Likewise.
22806         * modules/math-tests: Likewise.
22807         * modules/netdb-tests: Likewise.
22808         * modules/netinet_in-tests: Likewise.
22809         * modules/printf-frexp-tests: Likewise.
22810         * modules/printf-frexpl-tests: Likewise.
22811         * modules/priv-set-tests: Likewise.
22812         * modules/random_r-tests: Likewise.
22813         * modules/round-tests: Likewise.
22814         * modules/roundf-tests: Likewise.
22815         * modules/roundl-tests: Likewise.
22816         * modules/search-tests: Likewise.
22817         * modules/select-tests: Likewise.
22818         * modules/signal-tests: Likewise.
22819         * modules/stdbool-tests: Likewise.
22820         * modules/stddef-tests: Likewise.
22821         * modules/stdint-tests: Likewise.
22822         * modules/stdio-tests: Likewise.
22823         * modules/stdlib-tests: Likewise.
22824         * modules/string-tests: Likewise.
22825         * modules/strings-tests: Likewise.
22826         * modules/sys_select-tests: Likewise.
22827         * modules/sys_socket-tests: Likewise.
22828         * modules/sys_stat-tests: Likewise.
22829         * modules/sys_time-tests: Likewise.
22830         * modules/sys_utsname-tests: Likewise.
22831         * modules/sysexits-tests: Likewise.
22832         * modules/time-tests: Likewise.
22833         * modules/trunc-tests: Likewise.
22834         * modules/truncf-tests: Likewise.
22835         * modules/truncl-tests: Likewise.
22836         * modules/tsearch-tests: Likewise.
22837         * modules/unistd-tests: Likewise.
22838         * modules/wchar-tests: Likewise.
22839         * modules/wctype-tests: Likewise.
22840
22841         tests: fix license on several tests
22842         * tests/test-des.c: Update to GPLv3+.
22843         * tests/test-flock.c: Likewise.
22844         * tests/test-fsync.c: Likewise.
22845         * tests/test-futimens.h: Likewise.
22846         * tests/test-gc-arcfour.c: Likewise.
22847         * tests/test-gc-arctwo.c: Likewise.
22848         * tests/test-gc-des.c: Likewise.
22849         * tests/test-gc-hmac-md5.c: Likewise.
22850         * tests/test-gc-hmac-sha1.c: Likewise.
22851         * tests/test-gc-md2.c: Likewise.
22852         * tests/test-gc-md4.c: Likewise.
22853         * tests/test-gc-md5.c: Likewise.
22854         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22855         * tests/test-gc-rijndael.c: Likewise.
22856         * tests/test-gc-sha1.c: Likewise.
22857         * tests/test-gc.c: Likewise.
22858         * tests/test-getcwd.c: Likewise.
22859         * tests/test-link.c: Likewise.
22860         * tests/test-link.h: Likewise.
22861         * tests/test-lutimens.h: Likewise.
22862         * tests/test-md2.c: Likewise.
22863         * tests/test-md4.c: Likewise.
22864         * tests/test-mkdir.h: Likewise.
22865         * tests/test-rename.c: Likewise.
22866         * tests/test-rename.h: Likewise.
22867         * tests/test-safe-alloc.c: Likewise.
22868         * tests/test-utimens-common.h: Likewise.
22869         * tests/test-utimens.h: Likewise.
22870
22871         maint: sync license texts
22872         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22873         * doc/gpl-3.0.texi: Revert copyright year update.
22874         * doc/lgpl-3.0.texi: Likewise.
22875
22876 2009-12-29  Jim Meyering  <meyering@redhat.com>
22877
22878         update nearly all FSF copyright year lists to include 2009
22879         The files named by the following are exempted:
22880             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22881               test -f "$dst" && { echo "$dst"; continue; }
22882               test -d "$dst" || continue
22883               echo "$dst"/$(basename "$src")
22884             done > exempt
22885             git ls-files tests/unictype >> exempt
22886         In the remaining files, convert to all-interval notation if
22887         - there is already at least one year interval like 2000-2003
22888         - the file is maintained by me
22889         - the file is in lib/uni*/, where that style already prevails
22890         Otherwise, use update-copyright's default.
22891
22892 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22893         and Eric Blake  <ebb9@byu.net>
22894
22895         tests: don't require debug system() to pass
22896         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22897         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22898         * tests/test-unlink.h (test_unlink_func): Likewise.
22899         * tests/test-fstatat.c (main): ...into callers.
22900         * tests/test-lstat.c (main): Likewise.
22901         * tests/test-rmdir.c (main): Likewise.
22902         * tests/test-unlink.c (main): Likewise.
22903         * tests/test-unlinkat.c (main): Likewise.
22904         * tests/test-areadlink-with-size.c (main): Don't require a
22905         debug-only system call to pass, aiding cross-testing to mingw.
22906         * tests/test-areadlink.c (main): Likewise.
22907         * tests/test-areadlinkat-with-size.c (main): Likewise.
22908         * tests/test-areadlinkat.c (main): Likewise.
22909         * tests/test-canonicalize-lgpl.c (main): Likewise.
22910         * tests/test-canonicalize.c (main): Likewise.
22911         * tests/test-chown.c (main): Likewise.
22912         * tests/test-fchownat.c (main): Likewise.
22913         * tests/test-lchown.c (main): Likewise.
22914         * tests/test-fdutimensat.c (main): Likewise.
22915         * tests/test-futimens.c (main): Likewise.
22916         * tests/test-link.c (main): Likewise.
22917         * tests/test-linkat.c (main): Likewise.
22918         * tests/test-mkdir.c (main): Likewise.
22919         * tests/test-mkdirat.c (main): Likewise.
22920         * tests/test-mkfifo.c (main): Likewise.
22921         * tests/test-mkfifoat.c (main): Likewise.
22922         * tests/test-mknod.c (main): Likewise.
22923         * tests/test-readlink.c (main): Likewise.
22924         * tests/test-remove.c (main): Likewise.
22925         * tests/test-rename.c (main): Likewise.
22926         * tests/test-renameat.c (main): Likewise.
22927         * tests/test-symlink.c (main): Likewise.
22928         * tests/test-symlinkat.c (main): Likewise.
22929         * tests/test-utimens.c (main): Likewise.
22930         * tests/test-utimensat.c (main): Likewise.
22931
22932 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22933
22934         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22935         on $(UNUSED_PARAMETER_H) to avoid build failure.
22936
22937 2009-12-28  Jim Meyering  <meyering@redhat.com>
22938
22939         update-copyright: you may specify a max. line length other than 72
22940         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22941
22942         maint: use consistent FSF copyright line syntax
22943         * lib/posixtm.c: Add missing comma in FSF copyright line.
22944         * lib/posixtm.h: Likewise.
22945         * lib/getugroups.c: Add missing ", Inc.".
22946
22947         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22948         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22949         FSF copyright line.  Remove trailing blanks.
22950
22951 2009-12-28  Eric Blake  <ebb9@byu.net>
22952
22953         test-dup2: reduce dependencies
22954         * modules/cloexec (Configure.ac): Set witness.
22955         * modules/dup2-tests (Depends-on): Drop cloexec.
22956         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22957         not present.
22958         Suggested by Bruno Haible.
22959
22960 2009-12-26  Bruno Haible  <bruno@clisp.org>
22961
22962         Remove an unneeded dependency.
22963         * modules/fseterr (Depends-on): Remove dup2.
22964
22965 2009-12-26  Eric Blake  <ebb9@byu.net>
22966
22967         tests: use macros.h in more places
22968         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22969         (ASSERT_STREAM): Provide default of stderr.
22970         * tests/test-dirent-safer.c: Include macros.h, using alternate
22971         stream for assertions.
22972         * tests/test-dup-safer.c: Likewise.
22973         * tests/test-freopen-safer.c: Likewise.
22974         * tests/test-getopt.c: Likewise.
22975         * tests/test-openat-safer.c: Likewise.
22976         * tests/test-pipe.c: Likewise.
22977         * tests/test-popen-safer.c: Likewise.
22978         * modules/dirent-safer-tests (Files): Include macros.h.
22979         * modules/unistd-safer-tests (Files): Likewise.
22980         * modules/freopen-safer-tests (Files): Likewise.
22981         * modules/getopt-posix-tests (Files): Likewise.
22982         * modules/openat-safer-tests (Files): Likewise.
22983         * modules/pipe-tests (Files): Likewise.
22984
22985 2009-12-26  Bruno Haible  <bruno@clisp.org>
22986
22987         javacomp: Portability fix.
22988         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22989         that it also works on Solaris.
22990
22991 2009-12-26  Bruno Haible  <bruno@clisp.org>
22992
22993         localename: Fix storage allocation of gl_locale_name_thread's result.
22994         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22995         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22996         all platforms that have 'uselocale'.
22997         (gl_locale_name_thread_unsafe): New function, extracted from
22998         gl_locale_name_thread.
22999         (gl_locale_name_thread): Call struniq on all platforms that have
23000         'uselocale'.
23001         * tests/test-localename.c (test_locale_name_thread): Check that the
23002         resulting strings are permanently allocated.
23003         * modules/localename-tests (Depends-on): Add strdup.
23004
23005 2009-12-26  Bruno Haible  <bruno@clisp.org>
23006
23007         * tests/test-localename.c (categories): Fill in the strings.
23008
23009 2009-12-26  Jim Meyering  <meyering@redhat.com>
23010
23011         isdir: complete the removal of m4/isdir.m4
23012         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23013
23014         isdir: clean up, since at least grep still uses it
23015         * lib/isdir.c: Include "isdir.h".
23016         (S_ISDIR): Remove now-unneeded definition.
23017         * modules/isdir (Files): Add lib/isdir.h.
23018         * lib/isdir.h: New file, with declaration.
23019         * m4/isdir.m4: Remove file -- unneeded.
23020
23021 2009-12-25  Bruno Haible  <bruno@clisp.org>
23022
23023         selinux-h: Make generated .h files standalone.
23024         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23025         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23026         * lib/se-selinux.in.h: Likewise.
23027         * modules/selinux-h (Depends-on): Add unused-parameter.
23028         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23029         selinux/selinux.h and selinux/context.h.
23030         Suggested by Eric Blake.
23031
23032 2009-12-25  Bruno Haible  <bruno@clisp.org>
23033
23034         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23035         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23036         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23037         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23038         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23039
23040 2009-12-24  Bruno Haible  <bruno@clisp.org>
23041
23042         openat: Fix warning.
23043         * lib/openat-proc.c: Include <unistd.h>.
23044
23045 2009-12-24  Bruno Haible  <bruno@clisp.org>
23046
23047         New module 'unused-parameter'.
23048         * build-aux/unused-parameter.h: New file, extracted from earlier
23049         gnulib-common.m4.
23050         * modules/unused-parameter: New file.
23051         * lib/unistr.h: Include unused-parameter.h.
23052         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23053         _GL_UNUSED.
23054         * modules/unistr/base (Depends-on): Add unused-parameter.
23055
23056 2009-12-24  Bruno Haible  <bruno@clisp.org>
23057
23058         Add missing dependencies to 'extensions' module.
23059         * m4/extensions.m4: Add comment.
23060         * modules/accept4 (Depends-on): Add extensions.
23061         * modules/dup3 (Depends-on): Likewise.
23062         * modules/fcntl (Depends-on): Likewise.
23063         * modules/futimens (Depends-on): Likewise.
23064         * modules/mknod (Depends-on): Likewise.
23065         * modules/pipe2 (Depends-on): Likewise.
23066         * modules/stat-time (Depends-on): Likewise.
23067         * modules/strcasestr-simple (Depends-on): Likewise.
23068         * modules/strsignal (Depends-on): Likewise.
23069         * modules/utimensat (Depends-on): Likewise.
23070         * modules/localcharset (Depends-on): Likewise. Needed because of
23071         gl_FCNTL_O_FLAGS.
23072         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23073         AC_TYPE_MBSTATE_T.
23074         * modules/wcsnrtombs (Depends-on): Likewise.
23075         * modules/wcsrtombs (Depends-on): Likewise.
23076
23077 2009-12-24  Bruno Haible  <bruno@clisp.org>
23078
23079         binary-io: Avoid gcc warning due to SET_BINARY.
23080         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23081         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23082
23083 2009-12-24  Bruno Haible  <bruno@clisp.org>
23084
23085         Avoid future namespace pollution on glibc systems.
23086         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23087         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23088         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23089         glibc systems.
23090
23091 2009-12-24  Bruno Haible  <bruno@clisp.org>
23092
23093         Refactor common macros used in tests.
23094         * tests/macros.h: New file.
23095         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23096         and/or <stdlib.h>, if appropriate.
23097         (ASSERT, SIZEOF): Remove macros.
23098         * tests/test-areadlink-with-size.c: Likewise.
23099         * tests/test-areadlinkat.c: Likewise.
23100         * tests/test-areadlinkat-with-size.c: Likewise.
23101         * tests/test-argmatch.c: Likewise.
23102         * tests/test-argv-iter.c: Likewise.
23103         * tests/test-array-mergesort.c: Likewise.
23104         * tests/test-array_list.c: Likewise.
23105         * tests/test-array_oset.c: Likewise.
23106         * tests/test-avltree_list.c: Likewise.
23107         * tests/test-avltree_oset.c: Likewise.
23108         * tests/test-avltreehash_list.c: Likewise.
23109         * tests/test-base64.c: Likewise.
23110         * tests/test-binary-io.c: Likewise.
23111         * tests/test-bitrotate.c: Likewise.
23112         * tests/test-btowc.c: Likewise.
23113         * tests/test-byteswap.c: Likewise.
23114         * tests/test-c-ctype.c: Likewise.
23115         * tests/test-c-stack.c: Likewise.
23116         * tests/test-c-strcasecmp.c: Likewise.
23117         * tests/test-c-strcasestr.c: Likewise.
23118         * tests/test-c-strncasecmp.c: Likewise.
23119         * tests/test-c-strstr.c: Likewise.
23120         * tests/test-canonicalize-lgpl.c: Likewise.
23121         * tests/test-canonicalize.c: Likewise.
23122         * tests/test-carray_list.c: Likewise.
23123         * tests/test-ceilf1.c: Likewise.
23124         * tests/test-ceilf2.c: Likewise.
23125         * tests/test-ceill.c: Likewise.
23126         * tests/test-chown.c: Likewise.
23127         * tests/test-cloexec.c: Likewise.
23128         * tests/test-copy-acl.c: Likewise.
23129         * tests/test-copy-file.c: Likewise.
23130         * tests/test-count-one-bits.c: Likewise.
23131         * tests/test-dprintf-posix.c: Likewise.
23132         * tests/test-dup2.c: Likewise.
23133         * tests/test-dup3.c: Likewise.
23134         * tests/test-duplocale.c: Likewise.
23135         * tests/test-fbufmode.c: Likewise.
23136         * tests/test-fchdir.c: Likewise.
23137         * tests/test-fchownat.c: Likewise.
23138         * tests/test-fcntl-safer.c: Likewise.
23139         * tests/test-fcntl.c: Likewise.
23140         * tests/test-fdopendir.c: Likewise.
23141         * tests/test-fdutimensat.c: Likewise.
23142         * tests/test-fflush2.c: Likewise.
23143         * tests/test-file-has-acl.c: Likewise.
23144         * tests/test-filevercmp.c: Likewise.
23145         * tests/test-flock.c: Likewise.
23146         * tests/test-floorf1.c: Likewise.
23147         * tests/test-floorf2.c: Likewise.
23148         * tests/test-floorl.c: Likewise.
23149         * tests/test-fnmatch.c: Likewise.
23150         * tests/test-fopen.h: Likewise.
23151         * tests/test-fpending.c: Likewise.
23152         * tests/test-fprintf-posix.c: Likewise.
23153         * tests/test-fpurge.c: Likewise.
23154         * tests/test-freadable.c: Likewise.
23155         * tests/test-freadahead.c: Likewise.
23156         * tests/test-freading.c: Likewise.
23157         * tests/test-freadptr.c: Likewise.
23158         * tests/test-freadptr2.c: Likewise.
23159         * tests/test-freadseek.c: Likewise.
23160         * tests/test-freopen.c: Likewise.
23161         * tests/test-frexp.c: Likewise.
23162         * tests/test-frexpl.c: Likewise.
23163         * tests/test-fseek.c: Likewise.
23164         * tests/test-fseeko.c: Likewise.
23165         * tests/test-fstatat.c: Likewise.
23166         * tests/test-fstrcmp.c: Likewise.
23167         * tests/test-fsync.c: Likewise.
23168         * tests/test-ftell.c: Likewise.
23169         * tests/test-ftello.c: Likewise.
23170         * tests/test-func.c: Likewise.
23171         * tests/test-futimens.c: Likewise.
23172         * tests/test-fwritable.c: Likewise.
23173         * tests/test-fwriting.c: Likewise.
23174         * tests/test-getcwd.c: Likewise.
23175         * tests/test-getdate.c: Likewise.
23176         * tests/test-getdelim.c: Likewise.
23177         * tests/test-getdtablesize.c: Likewise.
23178         * tests/test-getgroups.c: Likewise.
23179         * tests/test-getline.c: Likewise.
23180         * tests/test-getndelim2.c: Likewise.
23181         * tests/test-glob.c: Likewise.
23182         * tests/test-hash.c: Likewise.
23183         * tests/test-i-ring.c: Likewise.
23184         * tests/test-iconv-utf.c: Likewise.
23185         * tests/test-iconv.c: Likewise.
23186         * tests/test-idpriv-drop.c: Likewise.
23187         * tests/test-idpriv-droptemp.c: Likewise.
23188         * tests/test-inet_ntop.c: Likewise.
23189         * tests/test-inet_pton.c: Likewise.
23190         * tests/test-isblank.c: Likewise.
23191         * tests/test-isfinite.c: Likewise.
23192         * tests/test-isinf.c: Likewise.
23193         * tests/test-isnan.c: Likewise.
23194         * tests/test-isnand.h: Likewise.
23195         * tests/test-isnanf.h: Likewise.
23196         * tests/test-isnanl.h: Likewise.
23197         * tests/test-lchown.c: Likewise.
23198         * tests/test-ldexpl.c: Likewise.
23199         * tests/test-link.c: Likewise.
23200         * tests/test-linkat.c: Likewise.
23201         * tests/test-linked_list.c: Likewise.
23202         * tests/test-linkedhash_list.c: Likewise.
23203         * tests/test-localename.c: Likewise.
23204         * tests/test-lseek.c: Likewise.
23205         * tests/test-lstat.c: Likewise.
23206         * tests/test-mbmemcasecmp.c: Likewise.
23207         * tests/test-mbmemcasecoll.c: Likewise.
23208         * tests/test-mbrtowc.c: Likewise.
23209         * tests/test-mbscasecmp.c: Likewise.
23210         * tests/test-mbscasestr1.c: Likewise.
23211         * tests/test-mbscasestr2.c: Likewise.
23212         * tests/test-mbscasestr3.c: Likewise.
23213         * tests/test-mbscasestr4.c: Likewise.
23214         * tests/test-mbschr.c: Likewise.
23215         * tests/test-mbscspn.c: Likewise.
23216         * tests/test-mbsinit.c: Likewise.
23217         * tests/test-mbsncasecmp.c: Likewise.
23218         * tests/test-mbsnrtowcs.c: Likewise.
23219         * tests/test-mbspbrk.c: Likewise.
23220         * tests/test-mbspcasecmp.c: Likewise.
23221         * tests/test-mbsrchr.c: Likewise.
23222         * tests/test-mbsrtowcs.c: Likewise.
23223         * tests/test-mbsspn.c: Likewise.
23224         * tests/test-mbsstr1.c: Likewise.
23225         * tests/test-mbsstr2.c: Likewise.
23226         * tests/test-mbsstr3.c: Likewise.
23227         * tests/test-memchr.c: Likewise.
23228         * tests/test-memchr2.c: Likewise.
23229         * tests/test-memcmp.c: Likewise.
23230         * tests/test-memmem.c: Likewise.
23231         * tests/test-memrchr.c: Likewise.
23232         * tests/test-mkdir.c: Likewise.
23233         * tests/test-mkdirat.c: Likewise.
23234         * tests/test-mkfifo.c: Likewise.
23235         * tests/test-mkfifoat.c: Likewise.
23236         * tests/test-mknod.c: Likewise.
23237         * tests/test-nanosleep.c: Likewise.
23238         * tests/test-nl_langinfo.c: Likewise.
23239         * tests/test-obstack-printf.c: Likewise.
23240         * tests/test-open.c: Likewise.
23241         * tests/test-openat.c: Likewise.
23242         * tests/test-pipe-filter-gi1.c: Likewise.
23243         * tests/test-pipe-filter-gi2-main.c: Likewise.
23244         * tests/test-pipe-filter-ii1.c: Likewise.
23245         * tests/test-pipe-filter-ii2-main.c: Likewise.
23246         * tests/test-pipe2.c: Likewise.
23247         * tests/test-popen.h: Likewise.
23248         * tests/test-posixtm.c: Likewise.
23249         * tests/test-pread.c: Likewise.
23250         * tests/test-printf-frexp.c: Likewise.
23251         * tests/test-printf-frexpl.c: Likewise.
23252         * tests/test-printf-posix.c: Likewise.
23253         * tests/test-priv-set.c: Likewise.
23254         * tests/test-quotearg.c: Likewise.
23255         * tests/test-random_r.c: Likewise.
23256         * tests/test-rawmemchr.c: Likewise.
23257         * tests/test-rbtree_list.c: Likewise.
23258         * tests/test-rbtree_oset.c: Likewise.
23259         * tests/test-rbtreehash_list.c: Likewise.
23260         * tests/test-readlink.c: Likewise.
23261         * tests/test-remove.c: Likewise.
23262         * tests/test-rename.c: Likewise.
23263         * tests/test-renameat.c: Likewise.
23264         * tests/test-rmdir.c: Likewise.
23265         * tests/test-round1.c: Likewise.
23266         * tests/test-roundf1.c: Likewise.
23267         * tests/test-roundl.c: Likewise.
23268         * tests/test-safe-alloc.c: Likewise.
23269         * tests/test-sameacls.c: Likewise.
23270         * tests/test-set-mode-acl.c: Likewise.
23271         * tests/test-setenv.c: Likewise.
23272         * tests/test-sigaction.c: Likewise.
23273         * tests/test-signbit.c: Likewise.
23274         * tests/test-sleep.c: Likewise.
23275         * tests/test-snprintf-posix.c: Likewise.
23276         * tests/test-snprintf.c: Likewise.
23277         * tests/test-sprintf-posix.c: Likewise.
23278         * tests/test-stat-time.c: Likewise.
23279         * tests/test-stat.c: Likewise.
23280         * tests/test-strcasestr.c: Likewise.
23281         * tests/test-strchrnul.c: Likewise.
23282         * tests/test-strerror.c: Likewise.
23283         * tests/test-striconv.c: Likewise.
23284         * tests/test-striconveh.c: Likewise.
23285         * tests/test-striconveha.c: Likewise.
23286         * tests/test-strsignal.c: Likewise.
23287         * tests/test-strstr.c: Likewise.
23288         * tests/test-strtod.c: Likewise.
23289         * tests/test-strverscmp.c: Likewise.
23290         * tests/test-symlink.c: Likewise.
23291         * tests/test-symlinkat.c: Likewise.
23292         * tests/test-trunc1.c: Likewise.
23293         * tests/test-trunc2.c: Likewise.
23294         * tests/test-truncf1.c: Likewise.
23295         * tests/test-truncf2.c: Likewise.
23296         * tests/test-truncl.c: Likewise.
23297         * tests/test-uname.c: Likewise.
23298         * tests/test-unlink.c: Likewise.
23299         * tests/test-unlinkat.c: Likewise.
23300         * tests/test-unsetenv.c: Likewise.
23301         * tests/test-usleep.c: Likewise.
23302         * tests/test-utimens.c: Likewise.
23303         * tests/test-utimensat.c: Likewise.
23304         * tests/test-vasnprintf-posix.c: Likewise.
23305         * tests/test-vasnprintf-posix2.c: Likewise.
23306         * tests/test-vasnprintf.c: Likewise.
23307         * tests/test-vasprintf-posix.c: Likewise.
23308         * tests/test-vasprintf.c: Likewise.
23309         * tests/test-vdprintf-posix.c: Likewise.
23310         * tests/test-vfprintf-posix.c: Likewise.
23311         * tests/test-vprintf-posix.c: Likewise.
23312         * tests/test-vsnprintf-posix.c: Likewise.
23313         * tests/test-vsnprintf.c: Likewise.
23314         * tests/test-vsprintf-posix.c: Likewise.
23315         * tests/test-wcrtomb.c: Likewise.
23316         * tests/test-wcsnrtombs.c: Likewise.
23317         * tests/test-wcsrtombs.c: Likewise.
23318         * tests/test-wctype.c: Likewise.
23319         * tests/test-wcwidth.c: Likewise.
23320         * tests/test-xfprintf-posix.c: Likewise.
23321         * tests/test-xmemdup0.c: Likewise.
23322         * tests/test-xprintf-posix.c: Likewise.
23323         * tests/test-xvasprintf.c: Likewise.
23324         * tests/unicase/test-locale-language.c: Likewise.
23325         * tests/unicase/test-mapping-part1.h: Likewise.
23326         * tests/unicase/test-predicate-part1.h: Likewise.
23327         * tests/unicase/test-u8-casecmp.c: Likewise.
23328         * tests/unicase/test-u8-casecoll.c: Likewise.
23329         * tests/unicase/test-u8-casefold.c: Likewise.
23330         * tests/unicase/test-u8-is-cased.c: Likewise.
23331         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23332         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23333         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23334         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23335         * tests/unicase/test-u8-tolower.c: Likewise.
23336         * tests/unicase/test-u8-totitle.c: Likewise.
23337         * tests/unicase/test-u8-toupper.c: Likewise.
23338         * tests/unicase/test-u16-casecmp.c: Likewise.
23339         * tests/unicase/test-u16-casecoll.c: Likewise.
23340         * tests/unicase/test-u16-casefold.c: Likewise.
23341         * tests/unicase/test-u16-is-cased.c: Likewise.
23342         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23343         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23344         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23345         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23346         * tests/unicase/test-u16-tolower.c: Likewise.
23347         * tests/unicase/test-u16-totitle.c: Likewise.
23348         * tests/unicase/test-u16-toupper.c: Likewise.
23349         * tests/unicase/test-u32-casecmp.c: Likewise.
23350         * tests/unicase/test-u32-casecoll.c: Likewise.
23351         * tests/unicase/test-u32-casefold.c: Likewise.
23352         * tests/unicase/test-u32-is-cased.c: Likewise.
23353         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23354         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23355         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23356         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23357         * tests/unicase/test-u32-tolower.c: Likewise.
23358         * tests/unicase/test-u32-totitle.c: Likewise.
23359         * tests/unicase/test-u32-toupper.c: Likewise.
23360         * tests/unicase/test-ulc-casecmp.c: Likewise.
23361         * tests/unicase/test-ulc-casecoll.c: Likewise.
23362         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23363         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23364         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23365         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23366         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23367         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23368         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23369         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23370         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23371         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23372         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23373         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23374         * tests/unictype/test-bidi_byname.c: Likewise.
23375         * tests/unictype/test-bidi_name.c: Likewise.
23376         * tests/unictype/test-bidi_of.c: Likewise.
23377         * tests/unictype/test-bidi_test.c: Likewise.
23378         * tests/unictype/test-block_list.c: Likewise.
23379         * tests/unictype/test-block_of.c: Likewise.
23380         * tests/unictype/test-block_test.c: Likewise.
23381         * tests/unictype/test-categ_and.c: Likewise.
23382         * tests/unictype/test-categ_and_not.c: Likewise.
23383         * tests/unictype/test-categ_byname.c: Likewise.
23384         * tests/unictype/test-categ_name.c: Likewise.
23385         * tests/unictype/test-categ_none.c: Likewise.
23386         * tests/unictype/test-categ_of.c: Likewise.
23387         * tests/unictype/test-categ_or.c: Likewise.
23388         * tests/unictype/test-categ_test_withtable.c: Likewise.
23389         * tests/unictype/test-combining.c: Likewise.
23390         * tests/unictype/test-decdigit.c: Likewise.
23391         * tests/unictype/test-digit.c: Likewise.
23392         * tests/unictype/test-mirror.c: Likewise.
23393         * tests/unictype/test-numeric.c: Likewise.
23394         * tests/unictype/test-pr_byname.c: Likewise.
23395         * tests/unictype/test-pr_test.c: Likewise.
23396         * tests/unictype/test-predicate-part1.h: Likewise.
23397         * tests/unictype/test-scripts.c: Likewise.
23398         * tests/unictype/test-sy_c_ident.c: Likewise.
23399         * tests/unictype/test-sy_java_ident.c: Likewise.
23400         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23401         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23402         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23403         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23404         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23405         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23406         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23407         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23408         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23409         * tests/uninorm/test-compat-decomposition.c: Likewise.
23410         * tests/uninorm/test-composition.c: Likewise.
23411         * tests/uninorm/test-decomposing-form.c: Likewise.
23412         * tests/uninorm/test-decomposition.c: Likewise.
23413         * tests/uninorm/test-u8-nfc.c: Likewise.
23414         * tests/uninorm/test-u8-nfd.c: Likewise.
23415         * tests/uninorm/test-u8-nfkc.c: Likewise.
23416         * tests/uninorm/test-u8-nfkd.c: Likewise.
23417         * tests/uninorm/test-u8-normcmp.c: Likewise.
23418         * tests/uninorm/test-u8-normcoll.c: Likewise.
23419         * tests/uninorm/test-u16-nfc.c: Likewise.
23420         * tests/uninorm/test-u16-nfd.c: Likewise.
23421         * tests/uninorm/test-u16-nfkc.c: Likewise.
23422         * tests/uninorm/test-u16-nfkd.c: Likewise.
23423         * tests/uninorm/test-u16-normcmp.c: Likewise.
23424         * tests/uninorm/test-u16-normcoll.c: Likewise.
23425         * tests/uninorm/test-u32-nfc.c: Likewise.
23426         * tests/uninorm/test-u32-nfd.c: Likewise.
23427         * tests/uninorm/test-u32-nfkc.c: Likewise.
23428         * tests/uninorm/test-u32-nfkd.c: Likewise.
23429         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23430         * tests/uninorm/test-u32-normcmp.c: Likewise.
23431         * tests/uninorm/test-u32-normcoll.c: Likewise.
23432         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23433         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23434         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23435         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23436         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23437         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23438         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23439         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23440         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23441         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23442         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23443         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23444         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23445         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23446         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23447         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23448         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23449         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23450         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23451         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23452         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23453         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23454         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23455         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23456         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23457         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23458         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23459         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23460         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23461         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23462         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23463         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23464         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23465         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23466         * tests/uniwidth/test-u8-width.c: Likewise.
23467         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23468         * tests/uniwidth/test-u16-width.c: Likewise.
23469         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23470         * tests/uniwidth/test-u32-width.c: Likewise.
23471         * tests/uniwidth/test-uc_width.c: Likewise.
23472         * tests/uniwidth/test-uc_width2.c: Likewise.
23473         * modules/acl-tests (Files): Add tests/macros.h.
23474         * modules/areadlink-tests (Files): Likewise.
23475         * modules/areadlink-with-size-tests (Files): Likewise.
23476         * modules/areadlinkat-tests (Files): Likewise.
23477         * modules/areadlinkat-with-size-tests (Files): Likewise.
23478         * modules/argmatch-tests (Files): Likewise.
23479         * modules/argv-iter-tests (Files): Likewise.
23480         * modules/array-list-tests (Files): Likewise.
23481         * modules/array-mergesort-tests (Files): Likewise.
23482         * modules/array-oset-tests (Files): Likewise.
23483         * modules/avltree-list-tests (Files): Likewise.
23484         * modules/avltree-oset-tests (Files): Likewise.
23485         * modules/avltreehash-list-tests (Files): Likewise.
23486         * modules/base64-tests (Files): Likewise.
23487         * modules/binary-io-tests (Files): Likewise.
23488         * modules/bitrotate-tests (Files): Likewise.
23489         * modules/btowc-tests (Files): Likewise.
23490         * modules/byteswap-tests (Files): Likewise.
23491         * modules/c-ctype-tests (Files): Likewise.
23492         * modules/c-stack-tests (Files): Likewise.
23493         * modules/c-strcase-tests (Files): Likewise.
23494         * modules/c-strcasestr-tests (Files): Likewise.
23495         * modules/c-strstr-tests (Files): Likewise.
23496         * modules/canonicalize-lgpl-tests (Files): Likewise.
23497         * modules/canonicalize-tests (Files): Likewise.
23498         * modules/carray-list-tests (Files): Likewise.
23499         * modules/ceilf-tests (Files): Likewise.
23500         * modules/ceill-tests (Files): Likewise.
23501         * modules/chown-tests (Files): Likewise.
23502         * modules/cloexec-tests (Files): Likewise.
23503         * modules/copy-file-tests (Files): Likewise.
23504         * modules/count-one-bits-tests (Files): Likewise.
23505         * modules/dprintf-posix-tests (Files): Likewise.
23506         * modules/dup2-tests (Files): Likewise.
23507         * modules/dup3-tests (Files): Likewise.
23508         * modules/duplocale-tests (Files): Likewise.
23509         * modules/fbufmode-tests (Files): Likewise.
23510         * modules/fchdir-tests (Files): Likewise.
23511         * modules/fcntl-safer-tests (Files): Likewise.
23512         * modules/fcntl-tests (Files): Likewise.
23513         * modules/fdopendir-tests (Files): Likewise.
23514         * modules/fdutimensat-tests (Files): Likewise.
23515         * modules/fflush-tests (Files): Likewise.
23516         * modules/filevercmp-tests (Files): Likewise.
23517         * modules/flock-tests (Files): Likewise.
23518         * modules/floorf-tests (Files): Likewise.
23519         * modules/floorl-tests (Files): Likewise.
23520         * modules/fnmatch-tests (Files): Likewise.
23521         * modules/fopen-safer-tests (Files): Likewise.
23522         * modules/fopen-tests (Files): Likewise.
23523         * modules/fpending-tests (Files): Likewise.
23524         * modules/fprintf-posix-tests (Files): Likewise.
23525         * modules/fpurge-tests (Files): Likewise.
23526         * modules/freadable-tests (Files): Likewise.
23527         * modules/freadahead-tests (Files): Likewise.
23528         * modules/freading-tests (Files): Likewise.
23529         * modules/freadptr-tests (Files): Likewise.
23530         * modules/freadseek-tests (Files): Likewise.
23531         * modules/freopen-tests (Files): Likewise.
23532         * modules/frexp-nolibm-tests (Files): Likewise.
23533         * modules/frexp-tests (Files): Likewise.
23534         * modules/frexpl-nolibm-tests (Files): Likewise.
23535         * modules/frexpl-tests (Files): Likewise.
23536         * modules/fseek-tests (Files): Likewise.
23537         * modules/fseeko-tests (Files): Likewise.
23538         * modules/fstrcmp-tests (Files): Likewise.
23539         * modules/fsync-tests (Files): Likewise.
23540         * modules/ftell-tests (Files): Likewise.
23541         * modules/ftello-tests (Files): Likewise.
23542         * modules/func-tests (Files): Likewise.
23543         * modules/futimens-tests (Files): Likewise.
23544         * modules/fwritable-tests (Files): Likewise.
23545         * modules/fwriting-tests (Files): Likewise.
23546         * modules/getcwd-tests (Files): Likewise.
23547         * modules/getdate-tests (Files): Likewise.
23548         * modules/getdelim-tests (Files): Likewise.
23549         * modules/getdtablesize-tests (Files): Likewise.
23550         * modules/getgroups-tests (Files): Likewise.
23551         * modules/getline-tests (Files): Likewise.
23552         * modules/getndelim2-tests (Files): Likewise.
23553         * modules/glob-tests (Files): Likewise.
23554         * modules/hash-tests (Files): Likewise.
23555         * modules/i-ring-tests (Files): Likewise.
23556         * modules/iconv-tests (Files): Likewise.
23557         * modules/iconv_open-utf-tests (Files): Likewise.
23558         * modules/idpriv-drop-tests (Files): Likewise.
23559         * modules/idpriv-droptemp-tests (Files): Likewise.
23560         * modules/inet_ntop-tests (Files): Likewise.
23561         * modules/inet_pton-tests (Files): Likewise.
23562         * modules/isblank-tests (Files): Likewise.
23563         * modules/isfinite-tests (Files): Likewise.
23564         * modules/isinf-tests (Files): Likewise.
23565         * modules/isnan-tests (Files): Likewise.
23566         * modules/isnand-nolibm-tests (Files): Likewise.
23567         * modules/isnand-tests (Files): Likewise.
23568         * modules/isnanf-nolibm-tests (Files): Likewise.
23569         * modules/isnanf-tests (Files): Likewise.
23570         * modules/isnanl-nolibm-tests (Files): Likewise.
23571         * modules/isnanl-tests (Files): Likewise.
23572         * modules/lchown-tests (Files): Likewise.
23573         * modules/ldexpl-tests (Files): Likewise.
23574         * modules/link-tests (Files): Likewise.
23575         * modules/linkat-tests (Files): Likewise.
23576         * modules/linked-list-tests (Files): Likewise.
23577         * modules/linkedhash-list-tests (Files): Likewise.
23578         * modules/localename-tests (Files): Likewise.
23579         * modules/lseek-tests (Files): Likewise.
23580         * modules/lstat-tests (Files): Likewise.
23581         * modules/mbmemcasecmp-tests (Files): Likewise.
23582         * modules/mbmemcasecoll-tests (Files): Likewise.
23583         * modules/mbrtowc-tests (Files): Likewise.
23584         * modules/mbscasecmp-tests (Files): Likewise.
23585         * modules/mbscasestr-tests (Files): Likewise.
23586         * modules/mbschr-tests (Files): Likewise.
23587         * modules/mbscspn-tests (Files): Likewise.
23588         * modules/mbsinit-tests (Files): Likewise.
23589         * modules/mbsncasecmp-tests (Files): Likewise.
23590         * modules/mbsnrtowcs-tests (Files): Likewise.
23591         * modules/mbspbrk-tests (Files): Likewise.
23592         * modules/mbspcasecmp-tests (Files): Likewise.
23593         * modules/mbsrchr-tests (Files): Likewise.
23594         * modules/mbsrtowcs-tests (Files): Likewise.
23595         * modules/mbsspn-tests (Files): Likewise.
23596         * modules/mbsstr-tests (Files): Likewise.
23597         * modules/memchr-tests (Files): Likewise.
23598         * modules/memchr2-tests (Files): Likewise.
23599         * modules/memcmp-tests (Files): Likewise.
23600         * modules/memmem-tests (Files): Likewise.
23601         * modules/memrchr-tests (Files): Likewise.
23602         * modules/mkdir-tests (Files): Likewise.
23603         * modules/mkfifo-tests (Files): Likewise.
23604         * modules/mkfifoat-tests (Files): Likewise.
23605         * modules/mknod-tests (Files): Likewise.
23606         * modules/nanosleep-tests (Files): Likewise.
23607         * modules/nl_langinfo-tests (Files): Likewise.
23608         * modules/obstack-printf-tests (Files): Likewise.
23609         * modules/open-tests (Files): Likewise.
23610         * modules/openat-tests (Files): Likewise.
23611         * modules/pipe-filter-gi-tests (Files): Likewise.
23612         * modules/pipe-filter-ii-tests (Files): Likewise.
23613         * modules/pipe2-tests (Files): Likewise.
23614         * modules/popen-safer-tests (Files): Likewise.
23615         * modules/popen-tests (Files): Likewise.
23616         * modules/posixtm-tests (Files): Likewise.
23617         * modules/pread-tests (Files): Likewise.
23618         * modules/printf-frexp-tests (Files): Likewise.
23619         * modules/printf-frexpl-tests (Files): Likewise.
23620         * modules/printf-posix-tests (Files): Likewise.
23621         * modules/priv-set-tests (Files): Likewise.
23622         * modules/quotearg-tests (Files): Likewise.
23623         * modules/random_r-tests (Files): Likewise.
23624         * modules/rawmemchr-tests (Files): Likewise.
23625         * modules/rbtree-list-tests (Files): Likewise.
23626         * modules/rbtree-oset-tests (Files): Likewise.
23627         * modules/rbtreehash-list-tests (Files): Likewise.
23628         * modules/readlink-tests (Files): Likewise.
23629         * modules/remove-tests (Files): Likewise.
23630         * modules/rename-tests (Files): Likewise.
23631         * modules/renameat-tests (Files): Likewise.
23632         * modules/rmdir-tests (Files): Likewise.
23633         * modules/round-tests (Files): Likewise.
23634         * modules/roundf-tests (Files): Likewise.
23635         * modules/roundl-tests (Files): Likewise.
23636         * modules/safe-alloc-tests (Files): Likewise.
23637         * modules/setenv-tests (Files): Likewise.
23638         * modules/sigaction-tests (Files): Likewise.
23639         * modules/signbit-tests (Files): Likewise.
23640         * modules/sleep-tests (Files): Likewise.
23641         * modules/snprintf-posix-tests (Files): Likewise.
23642         * modules/snprintf-tests (Files): Likewise.
23643         * modules/sprintf-posix-tests (Files): Likewise.
23644         * modules/stat-tests (Files): Likewise.
23645         * modules/stat-time-tests (Files): Likewise.
23646         * modules/strcasestr-tests (Files): Likewise.
23647         * modules/strchrnul-tests (Files): Likewise.
23648         * modules/strerror-tests (Files): Likewise.
23649         * modules/striconv-tests (Files): Likewise.
23650         * modules/striconveh-tests (Files): Likewise.
23651         * modules/striconveha-tests (Files): Likewise.
23652         * modules/strsignal-tests (Files): Likewise.
23653         * modules/strstr-tests (Files): Likewise.
23654         * modules/strtod-tests (Files): Likewise.
23655         * modules/strverscmp-tests (Files): Likewise.
23656         * modules/symlink-tests (Files): Likewise.
23657         * modules/symlinkat-tests (Files): Likewise.
23658         * modules/trunc-tests (Files): Likewise.
23659         * modules/truncf-tests (Files): Likewise.
23660         * modules/truncl-tests (Files): Likewise.
23661         * modules/uname-tests (Files): Likewise.
23662         * modules/unicase/cased-tests (Files): Likewise.
23663         * modules/unicase/ignorable-tests (Files): Likewise.
23664         * modules/unicase/locale-language-tests (Files): Likewise.
23665         * modules/unicase/tolower-tests (Files): Likewise.
23666         * modules/unicase/totitle-tests (Files): Likewise.
23667         * modules/unicase/toupper-tests (Files): Likewise.
23668         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23669         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23670         * modules/unicase/u8-casefold-tests (Files): Likewise.
23671         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23672         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23673         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23674         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23675         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23676         * modules/unicase/u8-tolower-tests (Files): Likewise.
23677         * modules/unicase/u8-totitle-tests (Files): Likewise.
23678         * modules/unicase/u8-toupper-tests (Files): Likewise.
23679         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23680         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23681         * modules/unicase/u16-casefold-tests (Files): Likewise.
23682         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23683         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23684         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23685         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23686         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23687         * modules/unicase/u16-tolower-tests (Files): Likewise.
23688         * modules/unicase/u16-totitle-tests (Files): Likewise.
23689         * modules/unicase/u16-toupper-tests (Files): Likewise.
23690         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23691         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23692         * modules/unicase/u32-casefold-tests (Files): Likewise.
23693         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23694         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23695         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23696         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23697         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23698         * modules/unicase/u32-tolower-tests (Files): Likewise.
23699         * modules/unicase/u32-totitle-tests (Files): Likewise.
23700         * modules/unicase/u32-toupper-tests (Files): Likewise.
23701         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23702         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23703         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23704         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23705         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23706         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23707         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23708         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23709         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23710         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23711         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23712         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23713         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23714         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23715         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23716         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23717         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23718         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23719         * modules/unictype/block-list-tests (Files): Likewise.
23720         * modules/unictype/block-of-tests (Files): Likewise.
23721         * modules/unictype/block-test-tests (Files): Likewise.
23722         * modules/unictype/category-C-tests (Files): Likewise.
23723         * modules/unictype/category-Cc-tests (Files): Likewise.
23724         * modules/unictype/category-Cf-tests (Files): Likewise.
23725         * modules/unictype/category-Cn-tests (Files): Likewise.
23726         * modules/unictype/category-Co-tests (Files): Likewise.
23727         * modules/unictype/category-Cs-tests (Files): Likewise.
23728         * modules/unictype/category-L-tests (Files): Likewise.
23729         * modules/unictype/category-Ll-tests (Files): Likewise.
23730         * modules/unictype/category-Lm-tests (Files): Likewise.
23731         * modules/unictype/category-Lo-tests (Files): Likewise.
23732         * modules/unictype/category-Lt-tests (Files): Likewise.
23733         * modules/unictype/category-Lu-tests (Files): Likewise.
23734         * modules/unictype/category-M-tests (Files): Likewise.
23735         * modules/unictype/category-Mc-tests (Files): Likewise.
23736         * modules/unictype/category-Me-tests (Files): Likewise.
23737         * modules/unictype/category-Mn-tests (Files): Likewise.
23738         * modules/unictype/category-N-tests (Files): Likewise.
23739         * modules/unictype/category-Nd-tests (Files): Likewise.
23740         * modules/unictype/category-Nl-tests (Files): Likewise.
23741         * modules/unictype/category-No-tests (Files): Likewise.
23742         * modules/unictype/category-P-tests (Files): Likewise.
23743         * modules/unictype/category-Pc-tests (Files): Likewise.
23744         * modules/unictype/category-Pd-tests (Files): Likewise.
23745         * modules/unictype/category-Pe-tests (Files): Likewise.
23746         * modules/unictype/category-Pf-tests (Files): Likewise.
23747         * modules/unictype/category-Pi-tests (Files): Likewise.
23748         * modules/unictype/category-Po-tests (Files): Likewise.
23749         * modules/unictype/category-Ps-tests (Files): Likewise.
23750         * modules/unictype/category-S-tests (Files): Likewise.
23751         * modules/unictype/category-Sc-tests (Files): Likewise.
23752         * modules/unictype/category-Sk-tests (Files): Likewise.
23753         * modules/unictype/category-Sm-tests (Files): Likewise.
23754         * modules/unictype/category-So-tests (Files): Likewise.
23755         * modules/unictype/category-Z-tests (Files): Likewise.
23756         * modules/unictype/category-Zl-tests (Files): Likewise.
23757         * modules/unictype/category-Zp-tests (Files): Likewise.
23758         * modules/unictype/category-Zs-tests (Files): Likewise.
23759         * modules/unictype/category-and-not-tests (Files): Likewise.
23760         * modules/unictype/category-and-tests (Files): Likewise.
23761         * modules/unictype/category-byname-tests (Files): Likewise.
23762         * modules/unictype/category-name-tests (Files): Likewise.
23763         * modules/unictype/category-none-tests (Files): Likewise.
23764         * modules/unictype/category-of-tests (Files): Likewise.
23765         * modules/unictype/category-or-tests (Files): Likewise.
23766         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23767         * modules/unictype/combining-class-tests (Files): Likewise.
23768         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23769         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23770         * modules/unictype/ctype-blank-tests (Files): Likewise.
23771         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23772         * modules/unictype/ctype-digit-tests (Files): Likewise.
23773         * modules/unictype/ctype-graph-tests (Files): Likewise.
23774         * modules/unictype/ctype-lower-tests (Files): Likewise.
23775         * modules/unictype/ctype-print-tests (Files): Likewise.
23776         * modules/unictype/ctype-punct-tests (Files): Likewise.
23777         * modules/unictype/ctype-space-tests (Files): Likewise.
23778         * modules/unictype/ctype-upper-tests (Files): Likewise.
23779         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23780         * modules/unictype/decimal-digit-tests (Files): Likewise.
23781         * modules/unictype/digit-tests (Files): Likewise.
23782         * modules/unictype/mirror-tests (Files): Likewise.
23783         * modules/unictype/numeric-tests (Files): Likewise.
23784         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23785         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23786         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23787         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23788         Likewise.
23789         * modules/unictype/property-bidi-block-separator-tests (Files):
23790         Likewise.
23791         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23792         Likewise.
23793         * modules/unictype/property-bidi-common-separator-tests (Files):
23794         Likewise.
23795         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23796         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23797         Likewise.
23798         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23799         Likewise.
23800         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23801         Likewise.
23802         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23803         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23804         Likewise.
23805         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23806         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23807         Likewise.
23808         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23809         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23810         * modules/unictype/property-bidi-segment-separator-tests (Files):
23811         Likewise.
23812         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23813         * modules/unictype/property-byname-tests (Files): Likewise.
23814         * modules/unictype/property-combining-tests (Files): Likewise.
23815         * modules/unictype/property-composite-tests (Files): Likewise.
23816         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23817         * modules/unictype/property-dash-tests (Files): Likewise.
23818         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23819         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23820         Likewise.
23821         * modules/unictype/property-deprecated-tests (Files): Likewise.
23822         * modules/unictype/property-diacritic-tests (Files): Likewise.
23823         * modules/unictype/property-extender-tests (Files): Likewise.
23824         * modules/unictype/property-format-control-tests (Files): Likewise.
23825         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23826         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23827         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23828         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23829         * modules/unictype/property-hyphen-tests (Files): Likewise.
23830         * modules/unictype/property-id-continue-tests (Files): Likewise.
23831         * modules/unictype/property-id-start-tests (Files): Likewise.
23832         * modules/unictype/property-ideographic-tests (Files): Likewise.
23833         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23834         * modules/unictype/property-ids-trinary-operator-tests (Files):
23835         Likewise.
23836         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23837         * modules/unictype/property-iso-control-tests (Files): Likewise.
23838         * modules/unictype/property-join-control-tests (Files): Likewise.
23839         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23840         * modules/unictype/property-line-separator-tests (Files): Likewise.
23841         * modules/unictype/property-logical-order-exception-tests (Files):
23842         Likewise.
23843         * modules/unictype/property-lowercase-tests (Files): Likewise.
23844         * modules/unictype/property-math-tests (Files): Likewise.
23845         * modules/unictype/property-non-break-tests (Files): Likewise.
23846         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23847         * modules/unictype/property-numeric-tests (Files): Likewise.
23848         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23849         * modules/unictype/property-other-default-ignorable-code-point-tests
23850         (Files): Likewise.
23851         * modules/unictype/property-other-grapheme-extend-tests (Files):
23852         Likewise.
23853         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23854         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23855         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23856         * modules/unictype/property-other-math-tests (Files): Likewise.
23857         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23858         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23859         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23860         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23861         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23862         * modules/unictype/property-private-use-tests (Files): Likewise.
23863         * modules/unictype/property-punctuation-tests (Files): Likewise.
23864         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23865         * modules/unictype/property-radical-tests (Files): Likewise.
23866         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23867         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23868         * modules/unictype/property-space-tests (Files): Likewise.
23869         * modules/unictype/property-terminal-punctuation-tests (Files):
23870         Likewise.
23871         * modules/unictype/property-test-tests (Files): Likewise.
23872         * modules/unictype/property-titlecase-tests (Files): Likewise.
23873         * modules/unictype/property-unassigned-code-value-tests (Files):
23874         Likewise.
23875         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23876         * modules/unictype/property-uppercase-tests (Files): Likewise.
23877         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23878         * modules/unictype/property-white-space-tests (Files): Likewise.
23879         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23880         * modules/unictype/property-xid-start-tests (Files): Likewise.
23881         * modules/unictype/property-zero-width-tests (Files): Likewise.
23882         * modules/unictype/scripts-tests (Files): Likewise.
23883         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23884         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23885         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23886         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23887         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23888         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23889         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23890         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23891         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23892         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23893         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23894         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23895         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23896         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23897         * modules/uninorm/composition-tests (Files): Likewise.
23898         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23899         * modules/uninorm/decomposition-tests (Files): Likewise.
23900         * modules/uninorm/filter-tests (Files): Likewise.
23901         * modules/uninorm/nfc-tests (Files): Likewise.
23902         * modules/uninorm/nfd-tests (Files): Likewise.
23903         * modules/uninorm/nfkc-tests (Files): Likewise.
23904         * modules/uninorm/nfkd-tests (Files): Likewise.
23905         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23906         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23907         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23908         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23909         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23910         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23911         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23912         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23913         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23914         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23915         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23916         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23917         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23918         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23919         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23920         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23921         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23922         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23923         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23924         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23925         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23926         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23927         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23928         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23929         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23930         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23931         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23932         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23933         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23934         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23935         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23936         * modules/uniwidth/u8-width-tests (Files): Likewise.
23937         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23938         * modules/uniwidth/u16-width-tests (Files): Likewise.
23939         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23940         * modules/uniwidth/u32-width-tests (Files): Likewise.
23941         * modules/uniwidth/width-tests (Files): Likewise.
23942         * modules/unlink-tests (Files): Likewise.
23943         * modules/unsetenv-tests (Files): Likewise.
23944         * modules/usleep-tests (Files): Likewise.
23945         * modules/utimens-tests (Files): Likewise.
23946         * modules/utimensat-tests (Files): Likewise.
23947         * modules/vasnprintf-posix-tests (Files): Likewise.
23948         * modules/vasnprintf-tests (Files): Likewise.
23949         * modules/vasprintf-posix-tests (Files): Likewise.
23950         * modules/vasprintf-tests (Files): Likewise.
23951         * modules/vdprintf-posix-tests (Files): Likewise.
23952         * modules/vfprintf-posix-tests (Files): Likewise.
23953         * modules/vprintf-posix-tests (Files): Likewise.
23954         * modules/vsnprintf-posix-tests (Files): Likewise.
23955         * modules/vsnprintf-tests (Files): Likewise.
23956         * modules/vsprintf-posix-tests (Files): Likewise.
23957         * modules/wcrtomb-tests (Files): Likewise.
23958         * modules/wcsnrtombs-tests (Files): Likewise.
23959         * modules/wcsrtombs-tests (Files): Likewise.
23960         * modules/wctype-tests (Files): Likewise.
23961         * modules/wcwidth-tests (Files): Likewise.
23962         * modules/xmemdup0-tests (Files): Likewise.
23963         * modules/xprintf-posix-tests (Files): Likewise.
23964         * modules/xvasprintf-tests (Files): Likewise.
23965
23966 2009-12-24  Eric Blake  <ebb9@byu.net>
23967
23968         test-nanosleep: fix typo
23969         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23970         patch.
23971         Reported by Bruno Haible.
23972
23973 2009-12-24  Bruno Haible  <bruno@clisp.org>
23974
23975         Reduce namespace pollution on glibc systems.
23976         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23977         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23978         systems.
23979         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23980         <getopt.h> on glibc systems.
23981         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23982         systems.
23983         * lib/fcntl.c: Include <unistd.h> here instead.
23984
23985 2009-12-24  Bruno Haible  <bruno@clisp.org>
23986
23987         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23988
23989 2009-12-24  Eric Blake  <ebb9@byu.net>
23990
23991         tests: add signature checks
23992         * tests/signature.h (SIGNATURE_CHECK): New file.
23993         * modules/atexit-tests (Files): Use it.
23994         * modules/btowc-tests (Files): Likewise.
23995         * modules/canonicalize-lgpl-tests (Files): Likewise.
23996         * modules/ceilf-tests (Files): Likewise.
23997         * modules/ceill-tests (Files): Likewise.
23998         * modules/chown-tests (Files): Likewise.
23999         * modules/dprintf-posix-tests (Files): Likewise.
24000         * modules/dup2-tests (Files): Likewise.
24001         * modules/dup3-tests (Files): Likewise.
24002         * modules/duplocale-tests (Files): Likewise.
24003         * modules/fchdir-tests (Files): Likewise.
24004         * modules/fcntl-tests (Files): Likewise.
24005         * modules/fdopendir-tests (Files): Likewise.
24006         * modules/fflush-tests (Files): Likewise.
24007         * modules/flock-tests (Files): Likewise.
24008         * modules/floorf-tests (Files): Likewise.
24009         * modules/floorl-tests (Files): Likewise.
24010         * modules/fnmatch-tests (Files): Likewise.
24011         * modules/fopen-tests (Files): Likewise.
24012         * modules/fprintf-posix-tests (Files): Likewise.
24013         * modules/freopen-tests (Files): Likewise.
24014         * modules/frexp-nolibm-tests (Files): Likewise.
24015         * modules/frexp-tests (Files): Likewise.
24016         * modules/frexpl-nolibm-tests (Files): Likewise.
24017         * modules/frexpl-tests (Files): Likewise.
24018         * modules/fseek-tests (Files): Likewise.
24019         * modules/fseeko-tests (Files): Likewise.
24020         * modules/fsync-tests (Files): Likewise.
24021         * modules/ftell-tests (Files): Likewise.
24022         * modules/ftello-tests (Files): Likewise.
24023         * modules/futimens-tests (Files): Likewise.
24024         * modules/getaddrinfo-tests (Files): Likewise.
24025         * modules/getcwd-tests (Files): Likewise.
24026         * modules/getdelim-tests (Files): Likewise.
24027         * modules/getdtablesize-tests (Files): Likewise.
24028         * modules/getgroups-tests (Files): Likewise.
24029         * modules/gethostname-tests (Files): Likewise.
24030         * modules/getline-tests (Files): Likewise.
24031         * modules/getopt-posix-tests (Files): Likewise.
24032         * modules/gettimeofday-tests (Files): Likewise.
24033         * modules/glob-tests (Files): Likewise.
24034         * modules/iconv-tests (Files): Likewise.
24035         * modules/inet_ntop-tests (Files): Likewise.
24036         * modules/inet_pton-tests (Files): Likewise.
24037         * modules/isblank-tests (Files): Likewise.
24038         * modules/lchown-tests (Files): Likewise.
24039         * modules/ldexpl-tests (Files): Likewise.
24040         * modules/link-tests (Files): Likewise.
24041         * modules/linkat-tests (Files): Likewise.
24042         * modules/lseek-tests (Files): Likewise.
24043         * modules/lstat-tests (Files): Likewise.
24044         * modules/mbrtowc-tests (Files): Likewise.
24045         * modules/mbsinit-tests (Files): Likewise.
24046         * modules/mbsnrtowcs-tests (Files): Likewise.
24047         * modules/mbsrtowcs-tests (Files): Likewise.
24048         * modules/memchr-tests (Files): Likewise.
24049         * modules/memcmp-tests (Files): Likewise.
24050         * modules/memmem-tests (Files): Likewise.
24051         * modules/memrchr-tests (Files): Likewise.
24052         * modules/mkdir-tests (Files): Likewise.
24053         * modules/mkfifo-tests (Files): Likewise.
24054         * modules/mkfifoat-tests (Files): Likewise.
24055         * modules/mknod-tests (Files): Likewise.
24056         * modules/nanosleep-tests (Files): Likewise.
24057         * modules/nl_langinfo-tests (Files): Likewise.
24058         * modules/obstack-printf-tests (Files): Likewise.
24059         * modules/open-tests (Files): Likewise.
24060         * modules/openat-tests (Files): Likewise.
24061         * modules/perror-tests (Files): Likewise.
24062         * modules/pipe2-tests (Files): Likewise.
24063         * modules/poll-tests (Files): Likewise.
24064         * modules/popen-tests (Files): Likewise.
24065         * modules/posix_spawn-tests (Files): Likewise.
24066         * modules/posix_spawnp-tests (Files): Likewise.
24067         * modules/pread-tests (Files): Likewise.
24068         * modules/printf-posix-tests (Files): Likewise.
24069         * modules/pty-tests (Files): Likewise.
24070         * modules/random_r-tests (Files): Likewise.
24071         * modules/rawmemchr-tests (Files): Likewise.
24072         * modules/readlink-tests (Files): Likewise.
24073         * modules/remove-tests (Files): Likewise.
24074         * modules/rename-tests (Files): Likewise.
24075         * modules/renameat-tests (Files): Likewise.
24076         * modules/rmdir-tests (Files): Likewise.
24077         * modules/round-tests (Files): Likewise.
24078         * modules/roundf-tests (Files): Likewise.
24079         * modules/roundl-tests (Files): Likewise.
24080         * modules/select-tests (Files): Likewise.
24081         * modules/setenv-tests (Files): Likewise.
24082         * modules/sigaction-tests (Files): Likewise.
24083         * modules/sleep-tests (Files): Likewise.
24084         * modules/snprintf-posix-tests (Files): Likewise.
24085         * modules/snprintf-tests (Files): Likewise.
24086         * modules/sprintf-posix-tests (Files): Likewise.
24087         * modules/stat-tests (Files): Likewise.
24088         * modules/strcasestr-tests (Files): Likewise.
24089         * modules/strchrnul-tests (Files): Likewise.
24090         * modules/strerror-tests (Files): Likewise.
24091         * modules/strsignal-tests (Files): Likewise.
24092         * modules/strstr-tests (Files): Likewise.
24093         * modules/strtod-tests (Files): Likewise.
24094         * modules/strverscmp-tests (Files): Likewise.
24095         * modules/symlink-tests (Files): Likewise.
24096         * modules/symlinkat-tests (Files): Likewise.
24097         * modules/times-tests (Files): Likewise.
24098         * modules/trunc-tests (Files): Likewise.
24099         * modules/truncf-tests (Files): Likewise.
24100         * modules/truncl-tests (Files): Likewise.
24101         * modules/tsearch-tests (Files): Likewise.
24102         * modules/uname-tests (Files): Likewise.
24103         * modules/unlink-tests (Files): Likewise.
24104         * modules/unsetenv-tests (Files): Likewise.
24105         * modules/usleep-tests (Files): Likewise.
24106         * modules/utimensat-tests (Files): Likewise.
24107         * modules/vasprintf-tests (Files): Likewise.
24108         * modules/vdprintf-posix-tests (Files): Likewise.
24109         * modules/vfprintf-posix-tests (Files): Likewise.
24110         * modules/vprintf-posix-tests (Files): Likewise.
24111         * modules/vsnprintf-posix-tests (Files): Likewise.
24112         * modules/vsnprintf-tests (Files): Likewise.
24113         * modules/vsprintf-posix-tests (Files): Likewise.
24114         * modules/wcrtomb-tests (Files): Likewise.
24115         * modules/wcsnrtombs-tests (Files): Likewise.
24116         * modules/wcsrtombs-tests (Files): Likewise.
24117         * modules/wcwidth-tests (Files): Likewise.
24118         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24119         * tests/test-isinf.c (isinf): Likewise.
24120         * tests/test-isnan.c (isnan): Likewise.
24121         * tests/test-signbit.c (signbit): Likewise.
24122         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24123         declaration, either as macro or with correct signature.
24124         (select): Ensure function under test is declared with correct
24125         signature in correct header.
24126         * tests/test-atexit.c (atexit): Likewise.
24127         * tests/test-btowc.c (btowc): Likewise.
24128         * tests/test-canonicalize-lgpl.c (realpath)
24129         (canonicalize_file_name): Likewise.
24130         * tests/test-ceilf1.c (ceilf): Likewise.
24131         * tests/test-ceill.c (ceill): Likewise.
24132         * tests/test-chown.c (chown): Likewise.
24133         * tests/test-dprintf-posix.c (dprintf): Likewise.
24134         * tests/test-dup2.c (dup2): Likewise.
24135         * tests/test-dup3.c (dup3): Likewise.
24136         * tests/test-duplocale.c (duplocale): Likewise.
24137         * tests/test-fchdir.c (fchdir): Likewise.
24138         * tests/test-fchownat.c (fchownat): Likewise.
24139         * tests/test-fcntl.c (fcntl): Likewise.
24140         * tests/test-fdopendir.c (fdopendir): Likewise.
24141         * tests/test-fflush.c (fflush): Likewise.
24142         * tests/test-flock.c (flock): Likewise.
24143         * tests/test-floorf1.c (floorf): Likewise.
24144         * tests/test-floorl.c (floorl): Likewise.
24145         * tests/test-fnmatch.c (fnmatch): Likewise.
24146         * tests/test-fopen.c (fopen): Likewise.
24147         * tests/test-fprintf-posix.c (fprintf): Likewise.
24148         * tests/test-freopen.c (freopen): Likewise.
24149         * tests/test-frexp.c (frexp): Likewise.
24150         * tests/test-frexpl.c (frexpl): Likewise.
24151         * tests/test-fseek.c (fseek): Likewise.
24152         * tests/test-fseeko.c (fseeko): Likewise.
24153         * tests/test-fstatat.c (fstatat): Likewise.
24154         * tests/test-fsync.c (fsync): Likewise.
24155         * tests/test-ftell.c (ftell): Likewise.
24156         * tests/test-ftello.c (ftello): Likewise.
24157         * tests/test-futimens.c (futimens): Likewise.
24158         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24159         (gai_strerror): Likewise.
24160         * tests/test-getcwd.c (getcwd): Likewise.
24161         * tests/test-getdelim.c (getdelim): Likewise.
24162         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24163         * tests/test-getgroups.c (getgroups): Likewise.
24164         * tests/test-gethostname.c (gethostname): Likewise.
24165         * tests/test-getline.c (getline): Likewise.
24166         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24167         Likewise.
24168         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24169         * tests/test-glob.c (glob, globfree): Likewise.
24170         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24171         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24172         * tests/test-inet_pton.c (inet_pton): Likewise.
24173         * tests/test-isblank.c (isblank): Likewise.
24174         * tests/test-lchown.c (lchown): Likewise.
24175         * tests/test-ldexpl.c (ldexpl): Likewise.
24176         * tests/test-link.c (link): Likewise.
24177         * tests/test-linkat.c (linkat): Likewise.
24178         * tests/test-lseek.c (lseek): Likewise.
24179         * tests/test-lstat.c (lstat): Likewise.
24180         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24181         * tests/test-mbsinit.c (mbsinit): Likewise.
24182         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24183         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24184         * tests/test-memchr.c (memchr): Likewise.
24185         * tests/test-memcmp.c (memcmp): Likewise.
24186         * tests/test-memmem.c (memmem): Likewise.
24187         * tests/test-memrchr.c (memrchr): Likewise.
24188         * tests/test-mkdir.c (mkdir): Likewise.
24189         * tests/test-mkdirat.c (mkdirat): Likewise.
24190         * tests/test-mkfifo.c (mkfifo): Likewise.
24191         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24192         * tests/test-mknod.c (mknod): Likewise.
24193         * tests/test-nanosleep.c (nanosleep): Likewise.
24194         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24195         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24196         Likewise.
24197         * tests/test-open.c (open): Likewise.
24198         * tests/test-openat.c (openat): Likewise.
24199         * tests/test-perror.c (perror): Likewise.
24200         * tests/test-pipe2.c (pipe2): Likewise.
24201         * tests/test-poll.c (poll): Likewise.
24202         * tests/test-popen.c (popen, pclose): Likewise.
24203         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24204         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24205         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24206         (posix_spawn_file_actions_destroy)
24207         (posix_spawn_file_actions_addclose)
24208         (posix_spawn_file_actions_addopen)
24209         (posix_spawn_file_actions_adddup2): Likewise.
24210         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24211         * tests/test-pread.c (pread): Likewise.
24212         * tests/test-printf-posix.c (printf): Likewise.
24213         * tests/test-pty.c (openpty, forkpty): Likewise.
24214         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24215         (random_r): Likewise.
24216         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24217         * tests/test-readlink.c (readlink): Likewise.
24218         * tests/test-remove.c (remove): Likewise.
24219         * tests/test-rename.c (rename): Likewise.
24220         * tests/test-renameat.c (renameat): Likewise.
24221         * tests/test-rmdir.c (rmdir): Likewise.
24222         * tests/test-round1.c (round): Likewise.
24223         * tests/test-roundf1.c (roundf): Likewise.
24224         * tests/test-roundl.c (roundl): Likewise.
24225         * tests/test-setenv.c (setenv): Likewise.
24226         * tests/test-sigaction.c (sigaction): Likewise.
24227         * tests/test-sleep.c (sleep): Likewise.
24228         * tests/test-snprintf.c (snprintf): Likewise.
24229         * tests/test-sprintf-posix.c (sprintf): Likewise.
24230         * tests/test-stat.c (stat): Likewise.
24231         * tests/test-stpncpy.c (stpncpy): Likewise.
24232         * tests/test-strcasestr.c (strcasestr): Likewise.
24233         * tests/test-strchrnul.c (strchrnul): Likewise.
24234         * tests/test-strerror.c (strerror): Likewise.
24235         * tests/test-strsignal.c (strsignal): Likewise.
24236         * tests/test-strstr.c (strstr): Likewise.
24237         * tests/test-strtod.c (strtod): Likewise.
24238         * tests/test-strverscmp.c (strverscmp): Likewise.
24239         * tests/test-symlink.c (symlink): Likewise.
24240         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24241         * tests/test-times.c (times): Likewise.
24242         * tests/test-trunc1.c (trunc): Likewise.
24243         * tests/test-truncf1.c (truncf): Likewise.
24244         * tests/test-truncl.c (truncl): Likewise.
24245         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24246         Likewise.
24247         * tests/test-uname.c (uname): Likewise.
24248         * tests/test-unlink.c (unlink): Likewise.
24249         * tests/test-unlinkat.c (unlinkat): Likewise.
24250         * tests/test-unsetenv.c (unsetenv): Likewise.
24251         * tests/test-usleep.c (usleep): Likewise.
24252         * tests/test-utimensat.c (utimensat): Likewise.
24253         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24254         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24255         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24256         * tests/test-vprintf-posix.c (vprintf): Likewise.
24257         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24258         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24259         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24260         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24261         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24262         * tests/test-wcwidth.c (wcwidth): Likewise.
24263
24264         build: pull in conditional headers during GNULIB_POSIXCHECK
24265         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24266         definitions from any conditionally-included headers.
24267         * lib/stdlib.in.h (includes): Likewise.
24268         * lib/unistd.in.h (includes): Likewise.
24269
24270 2009-12-24  Bruno Haible  <bruno@clisp.org>
24271
24272         * tests/test-argv-iter.c: Include header file being tested immediately
24273         after config.h.
24274         * tests/test-base64.c: Likewise.
24275         * tests/test-flock.c: Likewise.
24276         * tests/test-fsync.c: Likewise.
24277         * tests/test-getdate.c: Likewise.
24278         * tests/test-getndelim2.c: Likewise.
24279         * tests/test-isfinite.c: Likewise.
24280         * tests/test-isinf.c: Likewise.
24281         * tests/test-strerror.c: Likewise.
24282         * tests/test-strsignal.c: Likewise.
24283
24284 2009-12-23  Eric Blake  <ebb9@byu.net>
24285
24286         unistd: work around cygwin bug
24287         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24288         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24289         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24290
24291 2009-12-23  Bruno Haible  <bruno@clisp.org>
24292
24293         localename: More tests.
24294         * tests/test-localename.c (SIZEOF): New macro.
24295         (categories): New variable.
24296         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24297         test_locale_name_default): Add test w.r.t. thread locale.
24298         (test_locale_name_thread): New function.
24299         (main): Invoke it.
24300
24301         localename: Make aware of thread locale.
24302         * lib/localename.h (gl_locale_name_thread): New declaration.
24303         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24304         behaviour with respect to thread locale.
24305         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24306         <langinfo.h>, glthread/lock.h.
24307         (SIZE_BITS): New macro.
24308         (string_hash): New function.
24309         (struct hash_node): New type.
24310         (HASH_TABLE_SIZE): New macro.
24311         (struniq_hash_table, struniq_lock): New variables.
24312         (struniq): New function.
24313         (gl_locale_name_thread): New function.
24314         (gl_locale_name): Invoke it.
24315         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24316         * modules/localename (Depends-on): Add lock.
24317         Reported by Mike Gran <spk121@yahoo.com>.
24318
24319 2009-12-23  Eric Blake  <ebb9@byu.net>
24320
24321         va-args: new module
24322         * modules/va-args: New file.
24323         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24324         * MODULES.html.sh (Core language properties): Mention it.
24325
24326         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24327         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24328         named alias for __attribute__((__unused__)).
24329         * lib/chown.c: Update client.
24330         * lib/fchmodat.c: Likewise.
24331         * lib/fts.c: Likewise.
24332         * lib/getdate.y: Likewise.
24333         * lib/getgroups.c: Likewise.
24334         * lib/getopt.c: Likewise.
24335         * lib/getugroups.c: Likewise.
24336         * lib/mkdir.c: Likewise.
24337         * lib/mkfifo.c: Likewise.
24338         * lib/mkfifoat.c: Likewise.
24339         * lib/mknod.c: Likewise.
24340         * lib/mknodat.c: Likewise.
24341         * lib/readlink.c: Likewise.
24342         * lib/se-context.in.h: Likewise.
24343         * lib/se-selinux.in.h: Likewise.
24344         * lib/sockets.c: Likewise.
24345         * lib/symlink.c: Likewise.
24346         * lib/symlinkat.c: Likewise.
24347         * lib/unicodeio.c: Likewise.
24348         * lib/unistr.h: Likewise.
24349         * tests/test-areadlink.c: Likewise.
24350         * tests/test-areadlinkat.c: Likewise.
24351         * tests/test-filenamecat.c: Likewise.
24352         * tests/test-fseeko.c: Likewise.
24353         * tests/test-ftello.c: Likewise.
24354         * tests/test-getdate.c: Likewise.
24355         * tests/test-getgroups.c: Likewise.
24356         * tests/test-gethostname.c: Likewise.
24357         * tests/test-quotearg.c: Likewise.
24358         * tests/test-version-etc.c: Likewise.
24359         * tests/test-xalloc-die.c: Likewise.
24360         * tests/test-xfprintf-posix.c: Likewise.
24361         * tests/test-xprintf-posix.c: Likewise.
24362         * tests/test-xvasprintf.c: Likewise.
24363
24364         tests: avoid compiler warnings
24365         * tests/test-fcntl.c (main): Delete unused parameters.
24366         * tests/test-freopen-safer.c (main): Likewise.
24367         * tests/test-xalloc-die.c (main): Mark unused parameters.
24368         * tests/test-fseeko.c (main): Likewise.
24369         * tests/test-ftello.c (main): Likewise.
24370         * tests/test-nanosleep.c (main): Avoid declaration warning.
24371         * tests/test-sleep.c (main): Likewise.
24372         * tests/test-unsetenv.c (main): Silence warning about string
24373         literal.
24374         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24375
24376 2009-12-23  Bruno Haible  <bruno@clisp.org>
24377
24378         * tests/test-localename.c (test_locale_name): New function, extracted
24379         from main. Also test mixed situations.
24380         (test_locale_name_posix, test_locale_name_environ,
24381         test_locale_name_default): New functions.
24382         (main): Invoke them all.
24383         * modules/localename-tests (configure.ac): Test for newlocale.
24384
24385 2009-12-23  Bruno Haible  <bruno@clisp.org>
24386
24387         unistd: Ensure getcwd gets declared before being overridden.
24388         * lib/unistd.in.h: Conditionally include <io.h>.
24389
24390 2009-12-22  Bruno Haible  <bruno@clisp.org>
24391
24392         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24393         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24394         (gl_WCHAR_H): Invoke it.
24395         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24396         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24397         Reported by Karl Berry <karl@freefriends.org>.
24398
24399 2009-12-22  Eric Blake  <ebb9@byu.net>
24400
24401         math, unistd: avoid redundant includes
24402         * lib/math.in.h (isnan): No need to re-include <math.h>.
24403         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24404
24405         getsubopt: work around cygwin bug
24406         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24407         avoid conflicting with system getsubopt.
24408         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24409         bug.
24410
24411         getopt: synchronize from glibc
24412         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24413         parameter order.  Adjust all callers.
24414         (_getopt_internal_r, main): Adjust quoting in error messages.
24415         Drop considerations for outdated POSIX 1003.2 error message.
24416         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24417         callers.
24418         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24419
24420         test-getopt: test stderr behavior
24421         * modules/getopt-posix-tests (Depends-on): Add dup2.
24422         * tests/test-getopt.c (ASSERT): Avoid stderr.
24423         (main): Move stderr to a temporary file.
24424         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24425         Instead, add parameter to inform caller if output occurred.
24426         (test_getopt): Adjust all existing tests to expect silence, and
24427         add new tests of leading ":".
24428         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24429         glibc shortcomings with leading "-:" or "+:" in optstring.
24430         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24431         Likewise.
24432         * doc/posix-functions/getopt.texi (getopt): Likewise.
24433
24434         test-getopt: enhance test
24435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24436         supports optind=0.
24437         * tests/test-getopt.c (OPTIND_MIN): Move...
24438         * tests/test-getopt.h (OPTIND_MIN): ...here.
24439         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24440         Require that optind=0 works, since modern BSD supports it in
24441         addition to optreset, and since coreutils expects it.
24442         (test_getopt_long_only): New test.
24443         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24444         glibc shortcomings with 'W;', and enforcement of optind=0.
24445         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24446         Likewise.
24447
24448 2009-12-21  Bruno Haible  <bruno@clisp.org>
24449
24450         localename: Improvements for MacOS X and Cygwin.
24451         * lib/localename.h (gl_locale_name_environ): New declaration.
24452         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24453         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24454         (gl_locale_name_posix): Invoke it.
24455         (gl_locale_name_default): Add comments. Use Windows native API also on
24456         Cygwin.
24457
24458 2009-12-21  Bruno Haible  <bruno@clisp.org>
24459
24460         Update list of Win32 locale ids.
24461         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24462         (LANG_SAMI): Renamed from LANG_SAAMI.
24463         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24464         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24465         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24466         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24467         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24468         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24469         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24470         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24471         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24472         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24473         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24474         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24475         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24476         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24477         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24478         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24479         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24480         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24481         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24482         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24483         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24484         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24485         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24486         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24487         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24488         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24489         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24490         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24491         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24492         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24493         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24494         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24495         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24496         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24497         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24498         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24499         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24500         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24501         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24502         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24503         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24504         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24505         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24506         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24507         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24508         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24509         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24510         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24511         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24512         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24513         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24514         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24515         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24516         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24517         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24518         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24519         Add more languages and countries for Sami, Sorbian. Add more countries
24520         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24521         for Pashto. Change country for Syriac, Tswana.
24522
24523 2009-12-21  Eric Blake  <ebb9@byu.net>
24524
24525         test-utimens: avoid spurious failure
24526         * tests/test-chown.h (nap): Factor...
24527         * tests/nap.h: ...into new file.
24528         * tests/test-lchown.h (nap): Avoid duplication.
24529         * tests/test-utimens-common.h (nap): Use shared implementation,
24530         necessary on file systems with 1-second resolution.
24531         * modules/chown-tests (Files): Include new file.
24532         * modules/fdutimensat-tests (Files): Likewise.
24533         * modules/futimens-tests (Files): Likewise.
24534         * modules/lchown-tests (Files): Likewise.
24535         * modules/openat-tests (Files): Likewise.
24536         * modules/utimens-tests (Files): Likewise.
24537         * modules/utimensat-tests (Files): Likewise.
24538
24539 2009-12-19  Eric Blake  <ebb9@byu.net>
24540
24541         futimens, utimensat: work around Linux bug
24542         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24543         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24544         * lib/utimensat.c (rpl_utimensat): Work around it.
24545         * lib/futimens.c (rpl_futimens): Adjust comment.
24546
24547         utimens: work around Linux ctime bug
24548         * lib/utimens.c (detect_ctime_bug): New helper function.
24549         (update_timespec): Differentiate between workaround needed for
24550         this bug vs. what is needed for systems that lack utimensat.
24551         (fdutimens, lutimens): Work around bug.
24552
24553         utimens: check for ctime update
24554         * tests/test-utimens-common.h (check_ctime): Define.
24555         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24556         * tests/test-futimens.h (test_futimens): Likewise.
24557         * tests/test-lutimens.h (test_lutimens): Likewise.
24558         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24559         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24560
24561 2009-12-19  Bruno Haible  <bruno@clisp.org>
24562
24563         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24564         * tests/test-dprintf-posix2.sh: New file.
24565         * tests/test-dprintf-posix2.c: New file.
24566         * modules/dprintf-posix-tests (Files): Add them.
24567         (configure.ac): Check for getrlimit and setrlimit.
24568         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24569
24570 2009-12-19  Bruno Haible  <bruno@clisp.org>
24571
24572         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24573         * tests/test-fprintf-posix3.sh: New file.
24574         * tests/test-fprintf-posix3.c: New file.
24575         * modules/fprintf-posix-tests (Files): Add them.
24576         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24577
24578 2009-12-19  Eric Blake  <ebb9@byu.net>
24579
24580         dirfd: fix prototype
24581         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24582         * lib/dirfd.c (dirfd): Likewise.
24583
24584         canonicalize: reduce memory usage
24585         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24586         allocation to size.
24587         Reported by Solar Designer <solar@openwall.com>.
24588
24589 2009-12-19  Bruno Haible  <bruno@clisp.org>
24590
24591         New module attribute 'Applicability'.
24592         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24593         * gnulib-tool: New option --extract-applicability.
24594         (func_usage): Document it.
24595         (sed_extract_prog): Recognize it.
24596         (func_get_applicability): New function.
24597         (func_import): Generalize handling of 'link-warning' module.
24598         * modules/link-warning (Applicability): New section.
24599         * modules/arg-nonnull (Applicability): New section.
24600         Repoted by Simon Josefsson <simon@josefsson.org>.
24601
24602 2009-12-19  Bruno Haible  <bruno@clisp.org>
24603
24604         fflush: tweak
24605         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24606         * lib/fseeko.c (rpl_fseeko): Likewise.
24607
24608 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24609
24610         * lib/gl_list.h: Fix typo in comment.
24611
24612 2009-12-16  Eric Blake  <ebb9@byu.net>
24613
24614         fcntl: use to simplify other modules
24615         * modules/cloexec (Depends-on): Add fcntl.
24616         * modules/fchdir (Depends-on): Likewise.
24617         * modules/fd-safer-flag (Depends-on): Likewise.
24618         * modules/unistd-safer (Depends-on): Likewise.
24619         * modules/dup3 (configure.ac): Set module indicator.
24620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24621         missing.
24622         * lib/fchdir.c (_gl_register_dup): Fix comment.
24623         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24624         * lib/dup-safer.c (dup_safer): Likewise.
24625         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24626         * lib/dup3.c (dup3): Likewise.
24627         * tests/test-fchdir.c (main): Enhance test.
24628         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24629
24630         fcntl: port portions of fcntl to mingw
24631         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24632         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24633         replacement for mingw.
24634         * modules/fcntl (Description): Update.
24635         (Depends-on): Add dup2.
24636         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24637         * modules/fcntl-h (Makefile.am): Substitute it.
24638         * lib/fcntl.in.h (fcntl): Update declaration.
24639         (F_DUPFD, F_GETFD): New macros, when needed.
24640         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24641         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24642         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24643         we now guarantee.
24644
24645         fcntl: work around cygwin bug in F_DUPFD
24646         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24647         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24648         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24649         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24650         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24651
24652         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24653         * modules/fcntl (Files): List new files.
24654         (configure.ac): Run a test.
24655         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24656         * lib/fcntl.c (rpl_fcntl): Likewise.
24657         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24658         (gl_FCNTL_H): Always replace fcntl.h.
24659         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24660         * lib/fcntl.in.h (fcntl): Declare replacement.
24661         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24662         needed, plus a witness.
24663         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24664         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24665         * tests/test-fcntl.c: New file.
24666         * modules/fcntl-tests: Likewise.
24667
24668         binary-io: avoid potential compilation warning
24669         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24670         directives.
24671
24672         fflush: avoid compilation error on NetBSD
24673         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24674         between off_t and fpos_t, since the latter is sometimes a struct.
24675         * lib/fseeko.c (rpl_fseeko): Likewise.
24676         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24677
24678 2009-12-15  Eric Blake  <ebb9@byu.net>
24679
24680         fcntl-h, stdio, sys_ioctl: fix declarations
24681         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24682         function must not take arguments.
24683         * lib/sys_ioctl.in.h (ioctl): Likewise.
24684         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24685         (open): Add a link warning.
24686
24687 2009-12-15  Jim Meyering  <meyering@redhat.com>
24688
24689         areadlink, areadlink-with-size: relax license to LGPLv2+
24690         * modules/areadlink (License): Relax to LGPLv2+.
24691         * modules/areadlink-with-size (License): Likewise.
24692
24693 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24694             Bruno Haible  <bruno@clisp.org>
24695
24696         *printf: Fix memory leak.
24697         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24698         * lib/vfprintf.c (vfprintf): Likewise.
24699         * lib/dprintf.c (dprintf): Likewise.
24700         * lib/vdprintf.c (vdprintf): Likewise.
24701
24702 2009-12-14  Eric Blake  <ebb9@byu.net>
24703
24704         accept4: adjust module dependencies
24705         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24706
24707         utimens: one more try at avoiding compiler warning
24708         * lib/utimens.c (lutimens): Lower scope of result.
24709
24710 2009-12-13  Bruno Haible  <bruno@clisp.org>
24711
24712         Move the malloc checking from module 'list' to new module 'xlist'.
24713         * modules/xlist: New file.
24714         * lib/gl_xlist.h: New file.
24715         * lib/gl_xlist.c: New file.
24716         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24717         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24718         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24719         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24720         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24721         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24722         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24723         gl_sortedlist_nx_add): New declarations.
24724         (struct gl_list_implementation): Rename and change methods accordingly.
24725         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24726         (gl_list_nx_create): Renamed from gl_list_create.
24727         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24728         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24729         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24730         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24731         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24732         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24733         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24734         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24735         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24736         gl_list_create_empty.
24737         (gl_list_nx_create): Renamed from gl_list_create.
24738         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24739         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24740         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24741         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24742         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24743         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24744         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24745         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24746         * lib/gl_array_list.c: Don't include xalloc.h.
24747         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24748         NULL upon out-of-memory.
24749         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24750         out-of-memory.
24751         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24752         Change return type to 'int'.
24753         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24754         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24755         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24756         upon out-of-memory.
24757         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24758         upon out-of-memory.
24759         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24760         upon out-of-memory.
24761         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24762         upon out-of-memory.
24763         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24764         out-of-memory.
24765         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24766         Update.
24767         (gl_array_list_implementation): Update.
24768         * lib/gl_carray_list.c: Don't include xalloc.h.
24769         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24770         Return NULL upon out-of-memory.
24771         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24772         out-of-memory.
24773         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24774         Change return type to 'int'.
24775         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24776         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24777         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24778         upon out-of-memory.
24779         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24780         upon out-of-memory.
24781         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24782         out-of-memory.
24783         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24784         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24785         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24786         Update.
24787         (gl_carray_list_implementation): Update.
24788         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24789         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24790         gl_linked_create_empty. Return NULL upon out-of-memory.
24791         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24792         out-of-memory.
24793         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24794         Change return type to 'int'. Return -1 upon out-of-memory.
24795         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24796         out-of-memory.
24797         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24798         upon out-of-memory.
24799         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24800         upon out-of-memory.
24801         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24802         NULL upon out-of-memory.
24803         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24804         upon out-of-memory.
24805         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24806         out-of-memory.
24807         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24808         Update.
24809         * lib/gl_linked_list.c: Don't include xalloc.h.
24810         (gl_linked_list_implementation): Update.
24811         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24812         (add_to_bucket): Change return type to 'int'.
24813         (gl_linkedhash_list_implementation): Update.
24814         * lib/gl_anytree_list1.h (free_subtree): New function.
24815         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24816         gl_tree_create_empty. Return NULL upon out-of-memory.
24817         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24818         Change return type to 'int'. Return -1 upon out-of-memory.
24819         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24820         out-of-memory.
24821         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24822         (gl_tree_remove_node): New function, moved here from
24823         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24824         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24825         Update.
24826         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24827         malloc, not xmalloc. Return NULL upon out-of-memory.
24828         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24829         out-of-memory.
24830         (gl_tree_remove_node_from_tree): New function, extracted from
24831         gl_tree_remove_node.
24832         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24833         upon out-of-memory.
24834         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24835         out-of-memory.
24836         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24837         upon out-of-memory.
24838         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24839         upon out-of-memory.
24840         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24841         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24842         not xmalloc. Return NULL upon out-of-memory.
24843         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24844         out-of-memory.
24845         (gl_tree_remove_node_from_tree): New function, extracted from
24846         gl_tree_remove_node.
24847         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24848         upon out-of-memory.
24849         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24850         out-of-memory.
24851         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24852         upon out-of-memory.
24853         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24854         upon out-of-memory.
24855         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24856         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24857         gl_anytree_list1.h before gl_anyavltree_list2.h.
24858         (gl_avltree_list_implementation): Update.
24859         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24860         gl_anytree_list1.h before gl_anyavltree_list2.h.
24861         (gl_rbtree_list_implementation): Update.
24862         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24863         Change return type to 'int'. Return -1 upon out-of-memory. Use
24864         __builtin_expect.
24865         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24866         (gl_avltreehash_list_implementation): Update.
24867         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24868         (gl_rbtreehash_list_implementation): Update.
24869         * modules/array-list (Depends-on): Remove xalloc.
24870         * modules/carray-list (Depends-on): Likewise.
24871         * modules/linked-list (Depends-on): Likewise.
24872         * modules/linkedhash-list (Depends-on): Likewise.
24873         * modules/avltree-list (Depends-on): Likewise.
24874         * modules/rbtree-list (Depends-on): Likewise.
24875         * modules/avltreehash-list (Depends-on): Likewise.
24876         * modules/rbtreehash-list (Depends-on): Likewise.
24877
24878         * modules/xsublist: New file.
24879         * lib/gl_xsublist.h: New file.
24880         * lib/gl_xsublist.c: New file.
24881         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24882         (gl_sublist_nx_create): New declaration.
24883         * lib/gl_sublist.c: Don't include xalloc.h.
24884         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24885         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24886         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24887         Change return type to 'int'. Return -1 upon out-of-memory.
24888         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24889         upon out-of-memory.
24890         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24891         NULL upon out-of-memory.
24892         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24893         upon out-of-memory.
24894         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24895         NULL upon out-of-memory.
24896         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24897         NULL upon out-of-memory.
24898         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24899         upon out-of-memory.
24900         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24901         (gl_sublist_list_implementation): Update.
24902         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24903         upon out-of-memory.
24904         * modules/sublist (Depends-on): Remove xalloc.
24905
24906         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24907         * tests/test-carray_list.c: Likewise.
24908         * tests/test-linked_list.c: Likewise.
24909         * tests/test-linkedhash_list.c: Likewise.
24910         * tests/test-avltree_list.c: Likewise.
24911         * tests/test-rbtree_list.c: Likewise.
24912         * tests/test-avltreehash_list.c: Likewise.
24913         * tests/test-rbtreehash_list.c: Likewise.
24914         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24915         * modules/carray-list-tests (Makefile.am): Likewise.
24916         * modules/linked-list-tests (Makefile.am): Likewise.
24917         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24918         * modules/avltree-list-tests (Makefile.am): Likewise.
24919         * modules/rbtree-list-tests (Makefile.am): Likewise.
24920         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24921         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24922
24923         * NEWS: Mention the changes.
24924
24925         * lib/clean-temp.c: Include gl_xlist.h.
24926         * modules/clean-temp (Depends-on): Add xlist.
24927
24928         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24929         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24930
24931         * tests/test-array_oset.c: Include gl_xlist.h.
24932         * modules/array-oset-tests (Depends-on): Add xlist.
24933
24934         Reported by José E. Marchesi <jemarch@gnu.org>.
24935
24936 2009-12-13  Bruno Haible  <bruno@clisp.org>
24937
24938         Move the malloc checking from module 'oset' to new module 'xoset'.
24939         * modules/xoset: New file.
24940         * lib/gl_xoset.h: New file.
24941         * lib/gl_xoset.c: New file.
24942         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24943         declarations.
24944         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24945         (struct gl_oset_implementation): Rename and change methods accordingly.
24946         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24947         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24948         'int'. Mark as __warn_unused_result__.
24949         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24950         gl_oset_create_empty.
24951         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24952         'int'.
24953         * lib/gl_array_oset.c: Don't include xalloc.h.
24954         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24955         malloc, not xmalloc.
24956         (grow): Change return type to 'int'. Don't call xalloc_die.
24957         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24958         to 'int'.
24959         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24960         'int'.
24961         (gl_array_oset_implementation): Update.
24962         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24963         gl_tree_create_empty.
24964         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24965         'int'.
24966         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24967         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24968         xmalloc.
24969         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24970         not xmalloc.
24971         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24972         xmalloc.
24973         (gl_avltree_oset_implementation): Update.
24974         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24975         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24976         xmalloc.
24977         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24978         not xmalloc.
24979         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24980         xmalloc.
24981         (gl_rbtree_oset_implementation): Update.
24982         * modules/array-oset (Depends-on): Remove xalloc.
24983         * modules/avltree-oset (Depends-on): Likewise.
24984         * modules/rbtree-oset (Depends-on): Likewise.
24985         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24986         * tests/test-avltree_oset.c: Likewise.
24987         * tests/test-rbtree_oset.c: Likewise.
24988         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24989         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24990         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24991         * NEWS: Mention the change.
24992
24993 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24994
24995         maint.mk: allow a project to override release-prep commands
24996         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24997         commands into a new rule.
24998         (release-prep): New rule.
24999         (release-prep-hook): New overridable variable.
25000
25001 2009-12-13  Bruno Haible  <bruno@clisp.org>
25002
25003         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25004
25005 2009-12-13  Jim Meyering  <meyering@redhat.com>
25006
25007         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25008         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25009
25010 2009-12-12  Bruno Haible  <bruno@clisp.org>
25011
25012         duplocale: Tweak.
25013         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25014
25015 2009-12-12  Karl Berry  <karl@gnu.org>
25016
25017         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25018
25019 2009-12-12  Bruno Haible  <bruno@clisp.org>
25020
25021         * m4/po.m4: Undo incorrect untabification.
25022
25023 2009-12-12  Bruno Haible  <bruno@clisp.org>
25024
25025         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25026         * modules/c-strtod (Depends-on): Add locale.
25027         * modules/c-strtold (Depends-on): Likewise.
25028
25029 2009-12-12  Bruno Haible  <bruno@clisp.org>
25030
25031         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25032
25033 2009-12-11  Eric Blake  <ebb9@byu.net>
25034
25035         setenv: relax requirement in light of POSIX ruling
25036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25037         not NULL.
25038         * tests/test-setenv.c (main): Relax test.
25039         * tests/test-unsetenv.c (main): Likewise.
25040         * doc/posix-functions/setenv.texi (setenv): Document this.
25041         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25042
25043 2009-12-11  Bruno Haible  <bruno@clisp.org>
25044
25045         New module 'fd-safer-flag'.
25046         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25047         * lib/dup-safer.c (dup_safer_flag): Remove function.
25048         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25049         * lib/fd-safer.c (fd_safer_flag): Remove function.
25050         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25051         * modules/cloexec (configure.ac): Drop indicator macro.
25052         * modules/fd-safer-flag: New file.
25053         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25054         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25055         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25056
25057 2009-12-11  Bruno Haible  <bruno@clisp.org>
25058
25059         Tests for module 'nl_langinfo'.
25060         * modules/nl_langinfo-tests: New file.
25061         * tests/test-nl_langinfo.sh: New file.
25062         * tests/test-nl_langinfo.c: New file.
25063
25064         New module 'nl_langinfo'.
25065         * lib/nl_langinfo.c: New file.
25066         * m4/nl_langinfo.m4: New file.
25067         * modules/nl_langinfo: New file.
25068         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25069
25070 2009-12-11  Bruno Haible  <bruno@clisp.org>
25071
25072         Tests for module 'langinfo'.
25073         * modules/langinfo-tests: New file.
25074         * tests/test-langinfo.c: New file.
25075
25076         New module 'langinfo'.
25077         * lib/langinfo.in.h: New file.
25078         * m4/langinfo_h.m4: New file.
25079         * modules/langinfo: New file.
25080         * doc/posix-headers/langinfo.texi: Mention the new module.
25081
25082 2009-12-11  Bruno Haible  <bruno@clisp.org>
25083
25084         * lib/config.charset: Untabify.
25085
25086 2009-12-11  Bruno Haible  <bruno@clisp.org>
25087
25088         * modules/unistd-safer (configure.ac): Drop indicator macro.
25089
25090 2009-12-11  Bruno Haible  <bruno@clisp.org>
25091
25092         Move pipe2-safer code to its own file.
25093         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25094         * lib/pipe-safer.c (pipe2_safer): Remove function.
25095         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25096         (Makefile.am): Add it to lib_SOURCES.
25097
25098 2009-12-10  Bruno Haible  <bruno@clisp.org>
25099
25100         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25101
25102 2009-12-10  Bruno Haible  <bruno@clisp.org>
25103
25104         Declare which arguments expect non-NULL values, for GCC and clang.
25105         * build-aux/arg-nonnull.h: New file.
25106         * modules/arg-nonnull: New file.
25107         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25108         (inet_ntop, inet_pton): Use it.
25109         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25110         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25111         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25112         (open, openat): Use it.
25113         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25114         (fnmatch): Use it.
25115         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25116         (getopt, getopt_long, getopt_long_only): Use it.
25117         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25118         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25119         Use it.
25120         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25121         (iconv_open): Use it.
25122         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25123         (strtoimax, strtoumax): Use it.
25124         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25125         (duplocale): Use it.
25126         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25127         (frexp, frexpl): Use it.
25128         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25129         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25130         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25131         (tsearch, tfind, tdelete, twalk): Use it.
25132         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25133         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25134         sigpending): Use it.
25135         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25136         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25137         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25138         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25139         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25140         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25141         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25142         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25143         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25144         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25145         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25146         Use it.
25147         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25148         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25149         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25150         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25151         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25152         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25153         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25154         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25155         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25156         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25157         strtoull, unsetenv): Use it.
25158         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25159         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25160         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25161         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25162         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25163         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25164         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25165         (strcasecmp, strncasecmp): Use it.
25166         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25167         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25168         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25169         rpl_setsockopt): Use it.
25170         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25171         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25172         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25173         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25174         (gettimeofday): Use it.
25175         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25176         (times): Use it.
25177         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25178         (uname): Use it.
25179         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25180         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25181         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25182         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25183         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25184         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25185         unlinkat, write): Use it.
25186         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25187         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25188         * lib/argv-iter.h: Include arg-nonnull.h.
25189         (_ATTRIBUTE_NONNULL_): Remove macro.
25190         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25191         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25192         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25193         optimization.
25194         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25195         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25196         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25197         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25198         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25199         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25200         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25201         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25202         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25203         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25204         * modules/dirent (Depends-on): Add arg-nonnull.
25205         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25206         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25207         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25208         * modules/fnmatch (Depends-on): Add arg-nonnull.
25209         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25210         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25211         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25212         * modules/glob (Depends-on): Add arg-nonnull.
25213         (Makefile.am): Insert arg-nonnull.h into glob.h.
25214         * modules/iconv_open (Depends-on): Add arg-nonnull.
25215         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25216         * modules/inttypes (Depends-on): Add arg-nonnull.
25217         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25218         * modules/locale (Depends-on): Add arg-nonnull.
25219         (Makefile.am): Insert arg-nonnull.h into locale.h.
25220         * modules/math (Depends-on): Add arg-nonnull.
25221         (Makefile.am): Insert arg-nonnull.h into math.h.
25222         * modules/netdb (Depends-on): Add arg-nonnull.
25223         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25224         * modules/search (Depends-on): Add arg-nonnull.
25225         (Makefile.am): Insert arg-nonnull.h into search.h.
25226         * modules/signal (Depends-on): Add arg-nonnull.
25227         (Makefile.am): Insert arg-nonnull.h into signal.h.
25228         * modules/spawn (Depends-on): Add arg-nonnull.
25229         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25230         * modules/stdio (Depends-on): Add arg-nonnull.
25231         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25232         * modules/stdlib (Depends-on): Add arg-nonnull.
25233         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25234         * modules/string (Depends-on): Add arg-nonnull.
25235         (Makefile.am): Insert arg-nonnull.h into string.h.
25236         * modules/strings (Depends-on): Add arg-nonnull.
25237         (Makefile.am): Insert arg-nonnull.h into strings.h.
25238         * modules/sys_socket (Depends-on): Add arg-nonnull.
25239         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25240         * modules/sys_stat (Depends-on): Add arg-nonnull.
25241         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25242         * modules/sys_time (Depends-on): Add arg-nonnull.
25243         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25244         * modules/sys_times (Depends-on): Add arg-nonnull.
25245         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25246         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25247         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25248         * modules/time (Depends-on): Add arg-nonnull.
25249         (Makefile.am): Insert arg-nonnull.h into time.h.
25250         * modules/unistd (Depends-on): Add arg-nonnull.
25251         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25252         * modules/wchar (Depends-on): Add arg-nonnull.
25253         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25254         * modules/argv-iter (Depends-on): Add arg-nonnull.
25255         * tests/test-canonicalize.c (null_ptr): New function.
25256         (main): Use it.
25257         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25258         (main): Use it.
25259         * tests/test-memmem.c (null_ptr): New function.
25260         (main): Use it.
25261         Reported by Jim Meyering.
25262
25263 2009-12-10  Bruno Haible  <bruno@clisp.org>
25264
25265         Use spaces for indentation, not tabs.
25266         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25267         * m4/*.m4: Untabify.
25268         * build-aux/*.h: Untabify.
25269         * tests/**/*.[hc]: Untabify.
25270         * README: New section "Indent with spaces, not TABs", based on
25271         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25272         * NEWS: Mention the change.
25273
25274 2009-12-10  Bruno Haible  <bruno@clisp.org>
25275
25276         pty test: Fix link error.
25277         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25278         test_pty_LDADD.
25279
25280 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25281
25282         * modules/pty: New file.
25283         * modules/pty-tests: New file.
25284         * m4/pty.m4: New file.
25285         * tests/test-pty.c: New file.
25286         * doc/glibc-headers/pty.texi: Modified.
25287         * doc/glibc-functions/forkpty.texi: Modified.
25288         * doc/glibc-functions/openpty.texi: Modified.
25289
25290 2009-12-10  Bruno Haible  <bruno@clisp.org>
25291
25292         Avoid syntax error in C++ mode.
25293         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25294
25295 2009-12-10  Bruno Haible  <bruno@clisp.org>
25296
25297         Use sed with option -e.
25298         * gnulib-tool (func_version, func_emit_copyright_notice,
25299         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25300         option -e to sed.
25301         * modules/link-warning (Makefile.am): Likewise.
25302
25303 2009-12-10  Jim Meyering  <meyering@redhat.com>
25304
25305         mgetgroups: do not write bytes beyond end of malloc'd buffer
25306         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25307         username, we call getgroups with a one-element-shorter buffer,
25308         but still told it the length was original, max_n_groups.
25309
25310 2009-12-09  Eric Blake  <ebb9@byu.net>
25311
25312         cloexec: relax license
25313         * modules/cloexec (Maintainer): Add myself.
25314         (License): Use LGPL, not GPL.
25315
25316         link-warning: optimize generation
25317         * modules/link-warning (Makefile.am): Reduce process usage.
25318
25319 2009-12-09  Bruno Haible  <bruno@clisp.org>
25320
25321         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25322         workaround was added on 2009-11-17.
25323
25324 2009-12-09  Jim Meyering  <meyering@redhat.com>
25325             Bruno Haible  <bruno@clisp.org>
25326
25327         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25328         * modules/link-warning (Makefile.am): Make the comment-removing sed
25329         command more robust in the face of bootstrap-prepended comment lines.
25330
25331 2009-12-09  Bruno Haible  <bruno@clisp.org>
25332
25333         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25334         most one group.
25335
25336 2009-12-09  Simon Josefsson <simon@josefsson.org>
25337             Bruno Haible  <bruno@clisp.org>
25338
25339         * build-aux/link-warning.h: Add copyright notice.
25340         * modules/link-warning (Makefile.am): Generate link-warning.h from
25341         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25342         * NEWS: Mention change in link-warning module.
25343         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25344         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25345         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25346         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25347         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25348         * modules/math (Makefile.am): Add dependency to math.h.
25349         * modules/search (Makefile.am): Add dependency to search.h.
25350         * modules/signal (Makefile.am): Add dependency to signal.h.
25351         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25352         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25353         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25354         * modules/string (Makefile.am): Add dependency to string.h.
25355         * modules/strings (Makefile.am): Add dependency to strings.h.
25356         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25357         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25358         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25359         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25360         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25361         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25362         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25363         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25364         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25365
25366 2009-12-09  Bruno Haible  <bruno@clisp.org>
25367
25368         fchdir: Optimize away rpl_fstat when possible.
25369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25370         REPLACE_OPEN_DIRECTORY.
25371         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25372
25373 2009-12-09  Bruno Haible  <bruno@clisp.org>
25374
25375         * lib/fchdir.c: Update comment.
25376
25377 2009-12-09  Bruno Haible  <bruno@clisp.org>
25378
25379         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25380
25381 2009-12-08  Eric Blake  <ebb9@byu.net>
25382
25383         fchdir: avoid memory leak on re-registration.
25384         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25385
25386 2009-12-08  Jim Meyering  <meyering@redhat.com>
25387
25388         init.sh: avoid Solaris 10 /bin/sh portability problem
25389         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25390         sourced script:
25391           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25392           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25393           bar
25394         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25395         and two tests used that idiom.
25396         * tests/init.sh: Update suggested usage comments.
25397         (path_prepend_): New function, to be used in place
25398         of the --src-path=DIR option.
25399         (setup_): Move PATH-prepending code into path_prepend_.
25400         * tests/test-pread.sh: Adapt to new usage.
25401         * tests/test-xalloc-die.sh: Likewise.
25402
25403 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25404
25405         * doc/gnulib.texi (Glibc pty.h): Add.
25406         * doc/glibc-functions/forkpty.texi: Add.
25407         * doc/glibc-functions/openpty.texi: Add.
25408         Suggested by Bruno Haible.
25409
25410 2009-12-08  Eric Blake  <ebb9@byu.net>
25411
25412         fchdir: fix logic bugs
25413         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25414         * tests/test-fchdir.c (main): Enhance test.
25415         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25416         is in use.
25417
25418         dup2: fix logic bugs
25419         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25420         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25421         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25422         exists.
25423         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25424
25425 2009-12-07  Eric Blake  <ebb9@byu.net>
25426
25427         unlink: fix m4 detection
25428         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25429
25430         unistd-safer: add unit test
25431         * modules/unistd-safer-tests: New file.
25432         * tests/test-dup-safer.c: Likewise.
25433         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25434         * tests/test-dup2.c (setmode): Likewise.
25435         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25436
25437         cloexec: preserve text vs. binary across dup_cloexec
25438         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25439         mode.
25440         * modules/dup2-tests (Depends-on): Add binary-io.
25441         * modules/cloexec-tests (Depends-on): Likewise.
25442         * tests/test-dup2.c (setmode, is_mode): New helpers.
25443         (main): Add tests that translation mode is preserved.
25444         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25445         Reported by Bruno Haible.
25446
25447         mgetgroups: reduce duplicate listings
25448         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25449         resulting array.
25450         * tests/test-chown.h (test_chown): Simplify client.
25451         * tests/test-lchown.h (test_lchown): Likewise.
25452
25453 2009-12-06  Bruno Haible  <bruno@clisp.org>
25454
25455         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25456         value.
25457
25458 2009-12-06  Bruno Haible  <bruno@clisp.org>
25459
25460         * lib/progname.c: Include stdio.h, stdlib.h.
25461         (set_program_name): Reject a NULL argument.
25462
25463 2009-12-05  Eric Blake  <ebb9@byu.net>
25464
25465         pipe2-safer: new module
25466         * modules/pipe2-safer: New file.
25467         * lib/unistd-safer.h (pipe2_safer): New prototype.
25468         * lib/unistd--.h (pipe2): New wrapper.
25469         * lib/pipe-safer.c (pipe2_safer): New function.
25470         * modules/pipe (Depends-on): Add pipe2-safer.
25471         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25472
25473         stdlib-safer: preserve cloexec flag for mkostemp[s]
25474         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25475         fd_safer_flag.
25476
25477         unistd-safer: allow preservation of cloexec status via flag
25478         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25479         prototypes.
25480         * lib/dup-safer.c (dup_safer_flag): New function.
25481         * lib/fd-safer.c (fd_safer_flag): Likewise.
25482         * modules/cloexec (configure.ac): Set witness.
25483
25484         test-dup2: enhance test
25485         * modules/dup2-tests (Depends-on): Add cloexec.
25486         * tests/test-dup2.c (main): Enhance test.
25487
25488         cloexec: add dup_cloexec
25489         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25490         header and comments.
25491         * lib/cloexec.c (set_cloexec_flag): Add comments.
25492         (dup_cloexec): New function, with mingw implementation borrowed
25493         from...
25494         * lib/w32spawn.h (dup_noinherit): ...here.
25495         * modules/execute (Depends-on): Add cloexec.
25496         * modules/pipe (Depends-on): Likewise.
25497         * modules/cloexec (Depends-on): Add dup2.
25498         * modules/cloexec-tests (Files): New file.
25499         * tests/test-cloexec.c: Likewise.
25500
25501         test-xalloc-die: fix test for mingw
25502         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25503         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25504         directory and .exe suffix off argv[0] output.
25505
25506         test-fseeko: fix test for mingw
25507         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25508         than undefining fseek, so test will pass on mingw.
25509
25510 2009-12-05  Bruno Haible  <bruno@clisp.org>
25511
25512         * lib/progname.h (set_program_name): Clarify specification.
25513         * lib/progname.c (set_program_name): Likewise.
25514         Reported by Jim Meyering.
25515
25516 2009-12-05  Jim Meyering  <meyering@redhat.com>
25517
25518         maint.mk: backslash-escape parens in default regexp
25519         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25520         backslash-escape the literal parentheses.
25521
25522         maint.mk: news-date-check: use grep -E
25523         * top/maint.mk (today): Define a Make variable, not a...
25524         (news-date-check): ...shell variable.
25525         (news-date-regexp): Use the Make variable.
25526         Use grep's -E option.  Change the failing diagnostic to mention
25527         the variable, $(news-date-regexp).
25528
25529 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25530
25531         maintainer-makefile: allow customization of NEWS entry format
25532         * top/maint.mk (news-date-regexp): New overridable variable.
25533         (news-date-check): Use it.
25534
25535 2009-12-04  Eric Blake  <ebb9@byu.net>
25536
25537         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25538         * lib/mgetgroups.h (xgetgroups): New prototype.
25539         * lib/mgetgroups.c (xgetgroups): New wrapper.
25540         (mgetgroups): Handle ENOSYS.
25541         * modules/mgetgroups (Depends-on): Add realloc.
25542         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25543
25544         mgetgroups: avoid argument promotion issues with -1
25545         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25546         for invalid gid_t.
25547         * tests/test-chown.h (getegid, test_chown): Likewise.
25548         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25549
25550 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25551
25552         exclude: Fix header file problems.
25553         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25554
25555 2009-12-01  Jim Meyering  <meyering@redhat.com>
25556
25557         fts: fts_open: do not let an empty string cause immediate failure
25558         This is required in support of GNU rm, for which the command
25559         "rm A '' B" must process and remove both A and B, in spite of
25560         the empty string argument.
25561         * lib/fts.c (fts_open): Do not let the presence of an empty string
25562         cause fts_open to fail immediately.  Most fts-using tools must be
25563         able to process all arguments, in order, and can be expected to
25564         diagnose such arguments themselves.
25565
25566 2009-11-30  Eric Blake  <ebb9@byu.net>
25567
25568         utimens: fix compilation error
25569         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25570         Declare variable at right scope.
25571
25572 2009-11-29  Jim Meyering  <meyering@redhat.com>
25573
25574         bootstrap: handle perl-5.11's changed --version output
25575         * build-aux/bootstrap (get_version): Handle perl separately,
25576         since perl-5.11's --version output is different.
25577
25578 2009-11-28  Jim Meyering  <meyering@redhat.com>
25579
25580         userspec: depend on the inttostr module, too
25581         * modules/userspec (Depends-on): Add inttostr.
25582
25583         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25584         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25585         number of MAXUID when it evaluates to (uid_t) -1.
25586         Likewise for group ID.  Reported by Matt McCutchen in
25587         <http://savannah.gnu.org/bugs/?28113>
25588
25589         userspec: reformat to use spaces, not TABs
25590         * lib/userspec.c: Expand TABs to spaces.
25591         Add Emacs' "indent-tabs-mode: nil" hint.
25592
25593 2009-11-27  Eric Blake  <ebb9@byu.net>
25594
25595         getopt-gnu: flush out another BSD bug
25596         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25597         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25598         flush out BSD bug.
25599         * tests/test-getopt.h (test_getopt): End lists with NULL.
25600         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25601         (test_getopt_long_posix): Enhance test.
25602         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25603         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25604         getopt-gnu.
25605         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25606         Likewise.
25607
25608 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25609
25610         * modules/idpriv-droptemp-tests (Notice): Fix text.
25611
25612 2009-11-27  Jim Meyering  <meyering@redhat.com>
25613
25614         test-xalloc-die: avoid spurious failure due to libtool argv difference
25615         In a libtool-enabled project, this test would fail due to a difference
25616         in the emitted program name, e.g.,
25617         -test-xalloc-die: memory exhausted
25618         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25619         Use program to avoid that.
25620         * modules/xalloc-die-tests (Depends-on): Add progname.
25621         * tests/test-xalloc-die.c: Include progname.h".
25622         (program_name): Remove decl.
25623         (main): Call set_program_name.
25624         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25625
25626 2009-11-26  Richard Jones  <rjones@redhat.com>
25627
25628         w32sock: leave win32 error in place.
25629         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25630
25631 2009-11-26  Eric Blake  <ebb9@byu.net>
25632
25633         init.sh: suggest to use skip_ and fail_ functions in comments
25634         * tests/init.sh: Add a sentence.
25635
25636 2009-11-25  Bruno Haible  <bruno@clisp.org>
25637
25638         init.sh: add documentation in comments
25639         * tests/init.sh: Add some developer and user documentation.
25640
25641 2009-11-26  Jim Meyering  <meyering@redhat.com>
25642
25643         init.sh: accommodate even those who specify bogus srcdir manually
25644         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25645         configure-time tests to be sanitized, so that there is no need to
25646         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25647         (with no double quotes) suffices.  However, since tests may be
25648         invoked manually, and since you may explicitly set srcdir to the
25649         name of a directory containing spaces, do quote its uses here.
25650         * tests/test-pread.sh: Likewise.
25651         Suggested by Bruno Haible.
25652
25653         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25654         * tests/test-pread.sh: Write no data into the pipe, because
25655         test-pread actually reads none.  This avoids a diagnostic,
25656         "bash: echo: write error: Broken pipe", that arises in the unusual
25657         event something is ignoring SIGPIPE, and might be interpreted
25658         as some sort of failure.  Reported by Bruno Haible.
25659
25660 2009-11-25  Jim Meyering  <meyering@redhat.com>
25661
25662         test-pread: cover failure with ESPIPE and EINVAL
25663         * tests/test-pread.c (main): Test for failure, too.
25664         * tests/test-pread.sh: Invoke with stdin on a pipe.
25665         Suggested by Eric Blake.
25666
25667         pread: improvement and fix
25668         * modules/pread (Depends-on): Depend on lseek, for portability to
25669         e.g., mingw.  Suggested by Eric Blake.
25670         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25671
25672         unistd.in.h: correct declaration of pread
25673         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25674         Reported by Richard W.M. Jones.
25675
25676         test-pread.sh: distribute the test script
25677         * modules/pread-tests (Files): Include test-pread.sh.
25678
25679         test-pread.sh: clean up
25680         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25681         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25682         That is unnecessary, since it's always ".".
25683         Suggestion from Eric Blake.
25684
25685         test-pread.sh: make executable
25686         * tests/test-pread.sh: Set executable bit.
25687         Reported by Eric Blake.
25688
25689         correct typo in test-pread.sh
25690         * tests/test-pread.sh: Add #! line.
25691
25692         test pread
25693         * tests/test-pread.c: New file.
25694         * tests/test-pread.sh: Likewise.
25695         * modules/pread-tests: Likewise.
25696
25697         pread: new module
25698         * modules/pread: New file.
25699         * lib/unistd.in.h (pread): Define/declare.
25700         * lib/pread.c (pread): New file.
25701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25702         * modules/unistd (Makefile.am): Substitute witnesses.
25703         * doc/posix-functions/pread.texi (pread): Update.
25704         * MODULES.html.sh: Add pread.
25705
25706 2009-11-25  Jim Meyering  <meyering@redhat.com>
25707
25708         tests/init.sh: new file to be used via most *.sh tests
25709         * tests/init.sh: New file.
25710
25711 2009-11-25  Eric Blake  <ebb9@byu.net>
25712
25713         utimens: work around older Linux failure with symlinks
25714         * lib/utimens.c (lutimensat_works_really): New variable.
25715         (fdutimens, lutimens): Use it to manage kernels that support
25716         nanosecond times on files, but not on symlinks.
25717         Reported by OndÅ™ej Vašík.
25718
25719         utimes: fix configure grammar
25720         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25721
25722 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25723
25724         regex: Fix fastmap for multibyte character ranges.
25725         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25726         characters when a multibyte character range is included.
25727
25728 2009-11-22  Andy Wingo  <wingo@pobox.com>
25729
25730         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25731         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25732
25733 2009-11-24  Bruno Haible  <bruno@clisp.org>
25734
25735         doc: Most *_l functions exist in MacOS X 10.5.
25736         * doc/posix-functions/duplocale.texi: Update platforms list.
25737         * doc/posix-functions/freelocale.texi: Likewise.
25738         * doc/posix-functions/newlocale.texi: Likewise.
25739         * doc/posix-functions/uselocale.texi: Likewise.
25740         * doc/posix-functions/isalnum_l.texi: Likewise.
25741         * doc/posix-functions/isalpha_l.texi: Likewise.
25742         * doc/posix-functions/isblank_l.texi: Likewise.
25743         * doc/posix-functions/iscntrl_l.texi: Likewise.
25744         * doc/posix-functions/isdigit_l.texi: Likewise.
25745         * doc/posix-functions/isgraph_l.texi: Likewise.
25746         * doc/posix-functions/islower_l.texi: Likewise.
25747         * doc/posix-functions/isprint_l.texi: Likewise.
25748         * doc/posix-functions/ispunct_l.texi: Likewise.
25749         * doc/posix-functions/isspace_l.texi: Likewise.
25750         * doc/posix-functions/isupper_l.texi: Likewise.
25751         * doc/posix-functions/iswalnum_l.texi: Likewise.
25752         * doc/posix-functions/iswalpha_l.texi: Likewise.
25753         * doc/posix-functions/iswblank_l.texi: Likewise.
25754         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25755         * doc/posix-functions/iswctype_l.texi: Likewise.
25756         * doc/posix-functions/iswdigit_l.texi: Likewise.
25757         * doc/posix-functions/iswgraph_l.texi: Likewise.
25758         * doc/posix-functions/iswlower_l.texi: Likewise.
25759         * doc/posix-functions/iswprint_l.texi: Likewise.
25760         * doc/posix-functions/iswpunct_l.texi: Likewise.
25761         * doc/posix-functions/iswspace_l.texi: Likewise.
25762         * doc/posix-functions/iswupper_l.texi: Likewise.
25763         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25764         * doc/posix-functions/isxdigit_l.texi: Likewise.
25765         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25766         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25767         * doc/posix-functions/strcoll_l.texi: Likewise.
25768         * doc/posix-functions/strfmon_l.texi: Likewise.
25769         * doc/posix-functions/strftime_l.texi: Likewise.
25770         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25771         * doc/posix-functions/strxfrm_l.texi: Likewise.
25772         * doc/posix-functions/tolower_l.texi: Likewise.
25773         * doc/posix-functions/toupper_l.texi: Likewise.
25774         * doc/posix-functions/towctrans_l.texi: Likewise.
25775         * doc/posix-functions/towlower_l.texi: Likewise.
25776         * doc/posix-functions/towupper_l.texi: Likewise.
25777         * doc/posix-functions/wcscoll_l.texi: Likewise.
25778         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25779         * doc/posix-functions/wctrans_l.texi: Likewise.
25780         * doc/posix-functions/wctype_l.texi: Likewise.
25781         * doc/glibc-functions/strptime_l.texi: Likewise.
25782         * doc/glibc-functions/strtod_l.texi: Likewise.
25783         * doc/glibc-functions/strtof_l.texi: Likewise.
25784         * doc/glibc-functions/strtol_l.texi: Likewise.
25785         * doc/glibc-functions/strtold_l.texi: Likewise.
25786         * doc/glibc-functions/strtoll_l.texi: Likewise.
25787         * doc/glibc-functions/strtoul_l.texi: Likewise.
25788         * doc/glibc-functions/strtoull_l.texi: Likewise.
25789         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25790         * doc/glibc-functions/wcstod_l.texi: Likewise.
25791         * doc/glibc-functions/wcstof_l.texi: Likewise.
25792         * doc/glibc-functions/wcstol_l.texi: Likewise.
25793         * doc/glibc-functions/wcstold_l.texi: Likewise.
25794         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25795         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25796         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25797
25798 2009-11-24  Bruno Haible  <bruno@clisp.org>
25799
25800         duplocale: Fix logic bug.
25801         * lib/duplocale.c: Don't include <langinfo.h>.
25802         (_NL_LOCALE_NAME): Remove macro.
25803         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25804         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25805
25806 2009-11-23  Jim Meyering  <meyering@redhat.com>
25807
25808         test-update-copyright: don't hard-code /usr/bin/perl
25809         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25810         perl to print the current year.  Gilles Espinasse reported that
25811         the replaced use of perl was hard-coded as /usr/bin/perl.
25812
25813 2009-11-23  Bruno Haible  <bruno@clisp.org>
25814
25815         duplocale: Add support for glibc 2.3.x.
25816         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25817
25818 2009-11-22  Bruno Haible  <bruno@clisp.org>
25819
25820         vasnprintf: Tiny optimization.
25821         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25822         MacOS X.
25823
25824 2009-11-22  Bruno Haible  <bruno@clisp.org>
25825
25826         Tests for module 'duplocale'.
25827         * modules/duplocale-tests: New file.
25828         * tests/test-duplocale.c: New file.
25829
25830         New module 'duplocale'.
25831         * m4/duplocale.m4: New file.
25832         * lib/locale.in.h (duplocale): New declaration.
25833         * lib/duplocale.c: New file.
25834         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25835         gl_LOCALE_H_DEFAULTS): New macros.
25836         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25837         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25838         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25839         REPLACE_DUPLOCALE.
25840         * modules/duplocale: New file.
25841         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25842
25843 2009-11-22  Bruno Haible  <bruno@clisp.org>
25844
25845         * modules/locale-tests (configure.ac): Test for newlocale function.
25846         * tests/test-locale.c: When the system has extended locale functions,
25847         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25848
25849         locale: Make locale_t available when possible.
25850         * lib/locale.in.h: Include <xlocale.h> when it exists.
25851         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25852         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25853         * modules/locale (Depends-on): Add extensions.
25854         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25855         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25856
25857 2009-11-22  Bruno Haible  <bruno@clisp.org>
25858
25859         Add comments.
25860         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25861         invocation.
25862         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25863         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25864         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25865
25866 2009-11-22  Bruno Haible  <bruno@clisp.org>
25867
25868         error: account for the possibility of freopen (stdout).
25869         * lib/error.c: Include <unistd.h>.
25870         (flush_stdout): New function, extracted from error and error_at_line.
25871         Determine stdout's fd dynamically.
25872         (error, error_at_line): Invoke flush_stdout.
25873         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25874         * modules/error (Depends-on): Add unistd.
25875
25876 2009-11-22  Bruno Haible  <bruno@clisp.org>
25877
25878         diffseq: Add comment.
25879         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25880
25881 2009-11-22  Jim Meyering  <meyering@redhat.com>
25882
25883         c-stack: avoid defining an unused static function
25884         * lib/c-stack.c (find_stack_direction): Do not define this function
25885         when it will not be used.
25886
25887         diffseq: avoid spurious gcc warnings
25888         * lib/diffseq.h (IF_LINT2): Define.
25889         (compareseq): Use it to initialize two members of "part".
25890         This avoids two used-uninitialized warnings.
25891
25892 2009-11-21  Jim Meyering  <meyering@redhat.com>
25893
25894         c-stack: avoid "ignoring return value of `write'" warning
25895         * lib/c-stack.c: Include "ignore-value.h".
25896         (die): Explicitly ignore each write return value.
25897         * modules/c-stack (Depends-on): Add ignore-value.
25898
25899 2009-11-21  Bruno Haible  <bruno@clisp.org>
25900
25901         diffseq: reduce scope of variable 'best'.
25902         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25903         variable, earlier used for two different purposes.
25904
25905 2009-11-21  Jim Meyering  <meyering@redhat.com>
25906
25907         diffseq: remove useless assignment to "best"
25908         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25909         assignment.  At that point "best" is already guaranteed to be zero.
25910
25911 2009-11-20  Eric Blake  <ebb9@byu.net>
25912
25913         build: mention ftp redirector in release announcements
25914         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25915         values that used to come from cfg.mk; mention FTP redirect URL.
25916         * build-aux/announce-gen: Mention the mirror list.
25917         Suggested by Karl Berry.
25918
25919         nanosleep: improve port to mingw
25920         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25922         LIB_NANOSLEEP, but only when needed.
25923         * modules/select (Link): Document LIBSOCKET.
25924         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25925         enough.
25926
25927         nanosleep: work around cygwin bug
25928         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25929         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25930         bug.
25931         (getnow): Delete, not needed.
25932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25933         LIB_CLOCK_GETTIME.
25934         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25935         clock-time, gettime.
25936         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25937         bug.
25938         * modules/nanosleep-tests: New test.
25939         * tests/test-nanosleep.c: New file.
25940
25941         sleep: work around cygwin bug
25942         * lib/sleep.c (rpl_sleep): Work around the bug.
25943         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25944         (gl_PREREQ_SLEEP): Delete unused macro.
25945         * modules/sleep (Depends-on): Add verify.
25946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25947         * modules/unistd (Makefile.am): Substitute witness.
25948         * lib/unistd.in.h (sleep): Update prototype.
25949         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25950         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25951         * modules/sleep-tests (Depends-on): Check for alarm.
25952
25953 2009-11-20  Jim Meyering  <meyering@redhat.com>
25954
25955         maint.mk: improve sc_prohibit_magic_number_exit
25956         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25957         so it does not match uses like System.exit(1).
25958         Add comments showing how to correct all offenders.
25959
25960 2009-11-19  Eric Blake  <ebb9@byu.net>
25961
25962         xalloc-die-tests: add missing library
25963         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25964
25965         test-xvasprintf: silence compiler warnings
25966         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25967         empty string from gcc.
25968
25969 2009-11-19  Jim Meyering  <meyering@redhat.com>
25970
25971         xfreopen: new module, from coreutils
25972         * modules/xfreopen: New module.
25973         * lib/xfreopen.c: New file.
25974         * lib/xfreopen.h: New file.
25975         * MODULES.html.sh (File stream based Input/Output"): Add it.
25976
25977 2009-11-19  Eric Blake  <ebb9@byu.net>
25978
25979         manywarnings: depend on warnings
25980         * modules/manywarnings (Depends-on): Add warnings.
25981
25982         build: avoid compiler warnings
25983         * lib/select.c (rpl_select): Delete unused variable.
25984         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25985
25986 2009-11-18  Eric Blake  <ebb9@byu.net>
25987
25988         tests: avoid false negative with --with-packager
25989         * tests/test-version-etc.sh: Discard packager information.
25990         * tests/test-argp-version-etc-1.sh: Likewise.
25991         Reported by Mike Frysinger.
25992
25993         utimens: fix regression on Solaris
25994         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25995         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25996         can only change fd timestamps via futimesat.  Instead, use an
25997         additional witness macro to avoid BSD bug.
25998         Reported by Jim Meyering.
25999
26000 2009-11-17  Eric Blake  <ebb9@byu.net>
26001
26002         usleep: use it to simplify tests
26003         * modules/stat-time-tests (Depends-on): Add usleep.
26004         (configure.ac): Drop usleep check.
26005         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26006         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26007         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26008         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26009         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26010         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26011         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26012         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26013         Likewise.
26014         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26015         * tests/test-lchown.h (nap): Likewise.
26016         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26017         * tests/test-stat-time.c (nap): Likewise.
26018         * tests/test-utimens-common.h (nap): Update comments.
26019
26020         usleep: new module
26021         * modules/usleep: New file.
26022         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26023         * lib/usleep.c (usleep): Likewise.
26024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26025         * modules/unistd (Makefile.am): Substitute witnesses.
26026         * lib/unistd.in.h (usleep): Add declaration.
26027         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26028         * MODULES.html.sh (Date and time): Likewise.
26029         * modules/usleep-tests (Depends-on): New test.
26030         * tests/test-usleep.c: New file.
26031
26032         chown: work around OpenBSD bug
26033         * lib/chown.c (rpl_chown): Work around the bug.
26034         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26035         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26036         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26037         * modules/chown (Depends-on): Add stdbool.
26038         * modules/lchown (Depends-on): Likewise.
26039         * doc/posix-functions/chown.texi (chown): Document the bug.
26040         * doc/posix-functions/lchown.texi (lchown): Likewise.
26041         * tests/test-lchown.h (test_chown): Relax test.
26042
26043         mkstemp: avoid conflict with C++ keyword template
26044         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26045         * lib/mkostemp.c (mkostemp): Likewise.
26046         * lib/mkostemps.c (mkostemps): Likewise.
26047         * lib/mkstemp.c (mkstemp): Likewise.
26048         * lib/mkstemps.c (mkstemps): Likewise.
26049
26050         xalloc-die-tests: optimize
26051         * tests/test-xalloc-die.sh: Reduce number of processes.
26052
26053 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26054
26055         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26056         patch from ludo@gnu.org (Ludovic Courtès).
26057
26058 2009-11-17  Jim Meyering  <meyering@redhat.com>
26059
26060         version-etc: use proper license string
26061         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26062         * modules/version-etc-fsf: Likewise.
26063
26064 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26065
26066         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26067         printed to stdout.  Deal with EOL differences.
26068
26069 2009-11-17  Eric Blake  <ebb9@byu.net>
26070
26071         unsetenv: work around Solaris bug
26072         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26073         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26074         Reported by Jim Meyering.
26075
26076         vasnprintf: avoid compiler warnings
26077         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26078         variables.
26079         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26080
26081 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26082
26083         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26084         settings since xalloc-die is no longer the self test,
26085         xalloc-die.sh is.
26086
26087 2009-11-17  Jim Meyering  <meyering@redhat.com>
26088
26089         test-xalloc-die.sh: make the code agree with the commit log
26090         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26091         at the end, just in case you happen to have a test-xalloc-die
26092         program in some other PATH directory.
26093
26094         test-xalloc-die.sh: fix a portability bug
26095         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26096         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26097         Otherwise, argv[0] (as often seen in diagnostics) would be too
26098         system-dependent, sometimes with, and sometimes without the leading "./".
26099
26100         version-etc-fsf: relax license to LGPLv3+
26101         * modules/version-etc-fsf (License): Relax license.
26102
26103 2009-11-16  Eric Blake  <ebb9@byu.net>
26104
26105         xalloc-die-tests: avoid printing null pointer
26106         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26107         shell script.
26108         * tests/test-xalloc-die.c (program_name): Declare.
26109         * tests/test-xalloc-die.sh (tmpfiles): New file.
26110
26111         setenv, unsetenv: work around various bugs
26112         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26113         (setenv) [HAVE_SETENV]: Work around bugs.
26114         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26116         for bugs.
26117         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26118         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26120         * modules/stdlib (Makefile.am): Update substitutions.
26121         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26122         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26123         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26124         * modules/setenv-tests: New test.
26125         * modules/unsetenv-tests: Likewise.
26126         * tests/test-setenv.c: New file.
26127         * tests/test-unsetenv.c: Likewise.
26128
26129 2009-11-16  Jim Meyering  <meyering@redhat.com>
26130
26131         version-etc: relax license to LGPLv3+
26132         * modules/version-etc (License): Relax license.
26133
26134         better AC_REQUIRE expanded-before-required-warning avoidance
26135         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26136         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26137         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26138         which is no longer needed.
26139
26140 2009-11-16  Eric Blake  <ebb9@byu.net>
26141
26142         test-freading: clean up temporary file
26143         * tests/test-freading.c (main): Remove file on success, and use
26144         ASSERT more liberally.
26145         Reported by Jim Meyering.
26146
26147 2009-11-16  Jim Meyering  <meyering@redhat.com>
26148
26149         avoid new AC_REQUIRE expanded-before-required warnings
26150         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26151         merely using it.
26152         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26153         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26154
26155 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26156
26157         * tests/test-xalloc-die.c: New file.
26158         * modules/xalloc-die-tests: New file.
26159         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26160         XFAIL_TESTS so it can be appended by modules.
26161
26162 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26163
26164         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26165         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26166
26167 2009-11-14  Eric Blake  <ebb9@byu.net>
26168
26169         fnmatch: avoid compiler warning
26170         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26171         to silence compiler warning about mismatch signedness in ?:.
26172         Reported by Robert Millan.
26173
26174         intprops: add double-inclusion guard
26175         * lib/intprops.h: Allow idempotent includes.
26176         Suggested by Bruce Korb.
26177
26178         openat: detect Solaris fchownat bug
26179         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26180         penalizing glibc chownat when only lchownat is broken.
26181         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26182         trailing slash bugs.
26183         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26184         * modules/openat-tests (Files): Include more files.
26185         (Depends-on): Add mgetgroups, sleep, stat-time.
26186         (configure.ac): Add additional checks.
26187         (Makefile.am): Build new test.
26188         * tests/test-fchownat.c: New file.
26189
26190         lchown: detect Solaris and FreeBSD bug
26191         * lib/lchown.c (rpl_lchown): Work around bug.
26192         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26194         * modules/unistd (Makefile.am): Populate it.
26195         * lib/unistd.in.h (lchown): Update declaration.
26196         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26197         * modules/lchown-tests: New file.
26198         * tests/test-lchown.h (test_lchown): Likewise.
26199         * tests/test-lchown.c (main): Likewise.
26200
26201         chown: detect Solaris and FreeBSD bug
26202         * lib/chown.c (rpl_chown): Work around bug.
26203         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26204         (gl_PREREQ_CHOWN): Delete.
26205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26206         * modules/unistd (Makefile.am): Populate it.
26207         * lib/unistd.in.h (chown): Update declaration.
26208         * lib/lchown.c (chown): Update client.
26209         * modules/lchown (Depends-on): Add lstat.
26210         * doc/posix-functions/chown.texi (chown): Document the bug.
26211         * doc/posix-functions/getgroups.texi (getgroups): Document
26212         getgroups pitfall.
26213         * modules/chown-tests: New file.
26214         * tests/test-chown.h (test_chown): Likewise.
26215         * tests/test-chown.c (main): Likewise.
26216
26217 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26218
26219         gnulib-tool: correctly detect absence of m4 directories
26220         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26221
26222 2009-11-14  Jim Meyering  <meyering@redhat.com>
26223
26224         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26225         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26226
26227 2009-11-14  John W. Eaton  <jwe@gnu.org>
26228
26229         strftime.h: wrap funtion declaration in extern "C" block
26230         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26231
26232 2009-11-13  Eric Blake  <ebb9@byu.net>
26233
26234         getgroups: avoid compiler warning
26235         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26236
26237         getgroups: work around FreeBSD bug
26238         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26239         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26240         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26241         * tests/test-getgroups.c (main): Fix buffer overrun.
26242
26243         getgroups: avoid compilation failure
26244         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26245         * modules/getgroups (Depends-on): Add stdint.
26246
26247 2009-11-13  Jim Meyering  <meyering@redhat.com>
26248
26249         test-getgroups: avoid compilation failure
26250         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26251
26252 2009-11-13  Eric Blake  <ebb9@byu.net>
26253
26254         mgetgroups: new module, taken from coreutils
26255         * modules/mgetgroups: New file.
26256         * lib/mgetgroups.h: Likewise.
26257         * lib/mgetgroups.c (mgetgroups): Likewise.
26258         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26259         * MODULES.html.sh (Users and groups): Mention it.
26260
26261         getgroups: don't expose GETGROUPS_T to user
26262         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26263         an element at a time if GETGROUPS_T is wrong size.
26264         * lib/getugroups.h (getugroups): Change signature.
26265         * lib/unistd.in.h (getgroups): Likewise.
26266         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26267         signature needs fixing.
26268         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26269         AC_TYPE_GETGROUPS.
26270         * modules/group-member (Depends-on): Add getgroups.
26271         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26272         (group_member): Rely on getgroups replacement.
26273         * lib/getugroups.c (getugroups): Use gid_t.
26274         * tests/test-getgroups.c (main): Likewise.
26275         * NEWS: Mention the signature change.
26276         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26277         problem with signature.
26278         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26279         GETGROUPS_T is still useful for setgroups.
26280
26281         getgroups, getugroups: provide stubs for mingw
26282         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26283         * lib/getugroups.c (getugroups): Likewise.
26284         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26285         function.  Modernize replacement scheme.
26286         (gl_PREREQ_GETGROUPS): Delete.
26287         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26288         * modules/getgroups (configure.ac): Declare witness.
26289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26290         * modules/unistd (Depends-on): Substitute witness.
26291         * lib/unistd.in.h (getgroups): Declare replacement.
26292
26293         getgroups: avoid calling exit
26294         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26295         drop xalloc.
26296         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26297         dependencies.
26298         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26299         exiting, in the rare case of malloc failure.
26300
26301         getgroups: fix logic error
26302         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26303         has more than 20 groups.
26304         * modules/getgroups-tests: New test.
26305         * tests/test-getgroups.c: New file.
26306
26307 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26308
26309         * tests/test-base64.c: Improve.
26310
26311 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26312
26313         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26314         Blake <ebb9@byu.net>.
26315
26316 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26317
26318         * tests/test-xvasprintf.c: Add %s%s related checks.
26319
26320 2009-11-12  Eric Blake  <ebb9@byu.net>
26321
26322         version-etc: match standards.texi style
26323         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26324         and use <> only for URLs.
26325
26326 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26327
26328         fts: do not fail on a submount during traversal
26329         * lib/fts.c (fts_build): Read the stat info again after opening
26330         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26331         Original report at http://bugzilla.redhat.com/501848.
26332
26333 2009-11-12  Jim Meyering  <meyering@redhat.com>
26334
26335         bootstrap: sync from coreutils
26336         * build-aux/bootstrap (bootstrap_epilogue): New function.
26337         Use git_modules_config in one more place.  This make bootstrap's
26338         --gnulib-srcdir option more useful for testing.
26339
26340         bootstrap: generalize autoheader check
26341         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26342         AC_CONFIG_HEADERS.
26343
26344 2009-11-11  Eric Blake  <ebb9@byu.net>
26345
26346         mkfifoat: use new modules for Solaris and BSD bugs
26347         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26348         * lib/mkfifoat.c (mknodat): Split...
26349         * lib/mknodat.c (mknodat): ...into new file.
26350         * modules/mkfifoat (Files): Ship new file.
26351         (Depends-on): Add mkfifo, mknod.
26352         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26353         (Depends-on): Add symlink.
26354         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26355         redundant with test_mkfifo.h.
26356         (do_mkfifoat, do_mknodat): New helpers.
26357
26358         mknod: new module
26359         * modules/mknod: New file.
26360         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26361         * lib/mknod.c (mknod): Likewise.
26362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26363         defaults.
26364         * modules/sys_stat (Makefile.am): Substitute them.
26365         * lib/sys_stat.in.h (mknod): Declare replacement.
26366         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26367         Document it.
26368         * doc/posix-functions/mknod.texi (mknod): Likewise.
26369         * modules/mknod-tests: New test.
26370         * tests/test-mknod.c: Likewise.
26371
26372         mkfifo: new module
26373         * modules/mkfifo: New file.
26374         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26375         * lib/mkfifo.c (mkfifo): Likewise.
26376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26377         defaults.
26378         * modules/sys_stat (Makefile.am): Substitute them.
26379         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26380         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26381         Document it.
26382         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26383         * modules/mkfifo-tests: New test.
26384         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26385         from test-mkfifoat.c.
26386         * tests/test-mkfifo.c: New file.
26387
26388         readlink: detect FreeBSD bug
26389         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26390         slash on symlink.
26391         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26392         * tests/test-readlink.h (test_readlink): Enhance test.
26393
26394         symlink: detect FreeBSD bug
26395         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26396         slash on symlink.
26397         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26398         * tests/test-symlink.h (test_symlink): Enhance test.
26399
26400 2009-11-10  Eric Blake  <ebb9@byu.net>
26401
26402         link: detect FreeBSD bug
26403         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26404         symlink.
26405         * doc/posix-functions/link.texi (link): Document the bug.
26406         * tests/test-link.h (test_link): Enhance test.
26407         * tests/test-linkat.c (main): Update caller.
26408
26409         unlink, remove: detect FreeBSD bug
26410         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26411         slash on symlink.
26412         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26413         * doc/posix-functions/remove.texi (remove): Likewise.
26414         * tests/test-unlink.h (test_unlink): Enhance test.
26415         * tests/test-remove.c (main): Likewise.
26416
26417 2009-11-09  Eric Blake  <ebb9@byu.net>
26418
26419         rename: detect FreeBSD bug
26420         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26421         slash on symlink.
26422         * modules/renameat-tests (Depends-on): Add filenamecat.
26423         * tests/test-rename.h (test_rename): Allow one more errno.
26424         * tests/test-renameat.c (main): Likewise.
26425         * doc/posix-functions/rename.texi (rename): Document the bug.
26426
26427         open: detect FreeBSD bug
26428         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26429         symlink.
26430         * doc/posix-functions/open.texi (open): Document the bug.
26431         * doc/posix-functions/utimes.texi (utimes): Likewise.
26432         * tests/test-open.h (test_open): Add parameters, and test symlink
26433         handling.
26434         * tests/test-open.c (main): Adjust caller.
26435         * tests/test-fcntl-safer.c (main): Likewise.
26436         * modules/open-tests (Depends-on): Add stdbool, symlink.
26437         * modules/fcntl-safer-tests (Depends-on): Likewise.
26438         * tests/test-openat.c (main): Add test-open tests.
26439
26440         stat: detect FreeBSD bug
26441         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26442         symlink.
26443         * doc/posix-functions/stat.texi (stat): Document the bug.
26444         * tests/test-stat.h (test_stat_func): Add argument.
26445         * tests/test-stat.c (main): Adjust caller.
26446         * tests/test-fstatat.c (main): Likewise.
26447         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26448         Reported by Jim Meyering.
26449
26450 2009-11-09  James Youngman  <jay@gnu.org>
26451
26452         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26453         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26454
26455 2009-11-08  Jim Meyering  <meyering@redhat.com>
26456
26457         utimens: remove invalid futimesat call
26458         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26459         It used the file descriptor of the target file as the DIR_FD
26460         parameter and NULL as the file name.  That caused failure with
26461         errno == EFAULT on FreeBSD-8.0-rc2
26462
26463 2009-11-07  Eric Blake  <ebb9@byu.net>
26464
26465         fflush, freadseek: use fseeko, not fseek
26466         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26467         (clear_ungetc_buffer): Avoid potential problems on large files.
26468         * lib/freadseek.c (freadseek): Likewise.
26469         * modules/freadseek (Depends-on): Add fseeko.
26470         * modules/fseek (configure.ac): Set a witness.
26471         * tests/test-fflush.c (main): Use fseeko.
26472         * tests/test-fpurge.c (fseek): Disable link warning.
26473         * tests/test-freadable.c (fseek): Likewise.
26474         * tests/test-freading.c (fseek): Likewise.
26475         * tests/test-fseeko.c (fseek): Likewise.
26476         * tests/test-ftell.c (fseek): Likewise.
26477         * tests/test-ftello.c (fseek): Likewise.
26478         * tests/test-fwritable.c (fseek): Likewise.
26479         * tests/test-fwriting.c (fseek): Likewise.
26480
26481 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26482
26483         * modules/memchr (Depends-on): Drop getpagesize dependency.
26484
26485 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26486
26487         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26488         Reported by Ludovic Courtès.
26489         * build-aux/pmccabe2html: Improve example usage.
26490         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26491
26492 2009-11-06  Jim Meyering  <meyering@redhat.com>
26493
26494         do-release-commit-and-tag: New module.
26495         Automate the release-commit and tag process.
26496         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26497         * modules/do-release-commit-and-tag: New file.
26498         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26499
26500 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26501
26502         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26503         because test-select.c uses inet_pton.
26504
26505 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26506
26507         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26508         GETADDRINFO_LIB.  Bump serial number.
26509         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26510         Suggested by Eric Blake <ebb9@byu.net>.
26511
26512 2009-11-05  Eric Blake  <ebb9@byu.net>
26513
26514         strtod: detect darwin bug
26515         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26516         Reported by Leo Davis.
26517
26518         freopen-safer: new module
26519         * modules/freopen-safer: New module.
26520         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26521         * lib/freopen-safer.c (freopen_safer): New file.
26522         * lib/stdio-safer.h (freopen_safer): New declaration.
26523         * lib/stdio--.h (freopen): New override.
26524         * MODULES.html.sh (File stream based Input/Output): Mention it.
26525         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26526         freopen-safer module.
26527         * doc/posix-functions/stderr.texi (stderr): Likewise.
26528         * doc/posix-functions/stdin.texi (stdin): Likewise.
26529         * doc/posix-functions/stdout.texi (stdout): Likewise.
26530         * modules/freopen-safer-tests: New test.
26531         * tests/test-reopen-safer.c: New file.
26532
26533 2009-11-05  Jim Meyering  <meyering@redhat.com>
26534
26535         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26536         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26537
26538 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26539
26540         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26541
26542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26543
26544         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26545
26546 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26547
26548         Fix link error.
26549         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26550         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26551
26552 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26553
26554         * tests/test-func.c: Also test value of __func__.
26555
26556 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26557
26558         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26559         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26560
26561 2009-11-05  Bruno Haible  <bruno@clisp.org>
26562
26563         Fix link error.
26564         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26565         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26566         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26567
26568 2009-11-05  Bruno Haible  <bruno@clisp.org>
26569
26570         Tests for module 'inet_pton'.
26571         * modules/inet_pton-tests: New file.
26572         * tests/test-inet_pton.c: New file.
26573
26574 2009-11-05  Bruno Haible  <bruno@clisp.org>
26575
26576         Tests for module 'inet_ntop'.
26577         * modules/inet_ntop-tests: New file.
26578         * tests/test-inet_ntop.c: New file.
26579
26580 2009-11-04  Eric Blake  <ebb9@byu.net>
26581
26582         stdlib-safer: wrap all mkstemp variants
26583         * modules/mkostemp (configure.ac): Set witness.
26584         * modules/mkostemps (configure.ac): Likewise.
26585         * modules/mkstemps (configure.ac): Likewise.
26586         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26587         (mkstemps_safer): Wrap more functions.
26588         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26589         wrapping.
26590         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26591         (mkstemps_safer): Implement the wrappers.
26592
26593         mkstemps, mkostemps: new modules
26594         * modules/mkostemps: New module.
26595         * modules/mkstemps: Likewise.
26596         * lib/mkostemps.c (mkostemps): New file.
26597         * lib/mkstemps.c (mkstemps): Likewise.
26598         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26599         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26601         * modules/stdlib (Makefile.am): Substitute them.
26602         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26603         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26604         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26605         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26606         * MODULES.html.sh (File system functions): Mention them.
26607
26608         tempname: resync from glibc
26609         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26610         same values for __GT_FILE as glibc.  Abort even when assertions
26611         are disabled.
26612         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26613         match its value otherwise.  Allow idempotent inclusion.
26614         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26615         * lib/mkostemp.c (mkostemp): Likewise.
26616         * lib/mkstemp.c (mkstemp): Likewise.
26617         * lib/tmpfile.c (tmpfile): Likewise.
26618         * NEWS: Document this.
26619
26620         utimens: fix use of futimens on older Linux
26621         * lib/utimens.c (fdutimens): Use updated, rather than original,
26622         timespec to avoid bug in older Linux kernel.
26623         Reported by Simon Josefsson.
26624
26625 2009-11-04  Bruno Haible  <bruno@clisp.org>
26626
26627         Make num_processors more flexible and consistent.
26628         * lib/nproc.h (enum nproc_query): New type.
26629         (num_processors): Add a 'query' argument.
26630         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26631         (num_processors): Add a 'query' argument. Test the value of the
26632         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26633         mingw, count the number of CPUs available for the current process.
26634         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26635         Check for sched_getaffinity and sched_getaffinity_np.
26636         * modules/nproc (Depends-on): Add c-ctype, extensions.
26637         * NEWS: Mention the change.
26638
26639 2009-11-03  Bruno Haible  <bruno@clisp.org>
26640
26641         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26642
26643 2009-11-03  Jim Meyering  <meyering@redhat.com>
26644
26645         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26646         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26647         if it is defined.
26648
26649 2009-11-02  Eric Blake  <ebb9@byu.net>
26650
26651         mktime, timegm: share common declaration
26652         * lib/mktime-internal.h: New file.
26653         * lib/mktime.c: Use it rather than open-coding a declaration.
26654         * lib/timegm.c: Likewise.
26655         * modules/mktime (Files): Ship it.
26656         * modules/timegm (Files): Likewise.
26657         Suggested by Bruno Haible.
26658
26659         test-update-copyright: update test to match script changes
26660         * tests/test-update-copyright.sh: Avoid hard-coding perl
26661         location.  Don't update *.bak created by earlier runs.
26662
26663 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26664             Simon Josefsson  <simon@josefsson.org>
26665             Bruno Haible  <bruno@clisp.org>
26666
26667         Fix link error on Solaris 8.
26668         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26669         also in libnsl. Define also INET_PTON_LIB.
26670         * modules/inet_pton (Link): New section.
26671
26672 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26673             Bruno Haible  <bruno@clisp.org>
26674
26675         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26676         * modules/inet_ntop (Link): New section.
26677         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26678
26679 2009-11-02  Eric Blake  <ebb9@byu.net>
26680
26681         maint: avoid compiler warnings in m4 macros
26682         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26683         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26684
26685 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26686
26687         * m4/pmccabe2html.m4: Remove file.
26688         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26689         function.  Change maintainer.
26690         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26691         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26692         Courtès).
26693
26694 2009-10-31  Eric Blake  <ebb9@byu.net>
26695
26696         fseeko: fix m4 regression
26697         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26698         regression from 2009-10-27.
26699         Reported by Ralf Wildenhues.
26700
26701 2009-10-31  Jim Meyering  <meyering@redhat.com>
26702
26703         inttostr: aesthetics and improved (compile-time) safety
26704         Define inttype_is_signed rather than inttype_is_unsigned,
26705         since the sole use is via "#if inttype_is_signed".
26706         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26707         inttype_is_unsigned.
26708         * lib/offtostr.c (inttype_is_signed): Likewise.
26709         * lib/uinttostr.c (inttype_is_signed): Likewise.
26710         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26711         * lib/inttostr.c (inttostr): Use verify to cross-check the
26712         inttype_is_signed value and the signedness of the actual type.
26713         * modules/inttostr (Depends-on): Add verify.
26714
26715 2009-10-30  Eric Blake  <ebb9@byu.net>
26716
26717         build: avoid compiler warnings
26718         * lib/fchmodat.c (lchmod): Mark unused variables.
26719         * lib/getopt.c (_getopt_initialize): Likewise.
26720         * lib/mktime.c (__mktime_internal): Provide prototype.
26721         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26722         older gcc that do not understand #pragma GCC diagnostic.
26723         * lib/uinttostr.c (inttype_is_unsigned): Define.
26724         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26725
26726 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26727
26728         stat: fix compilation on AIX
26729         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26730         only see struct stat64.
26731
26732 2009-10-30  Eric Blake  <ebb9@byu.net>
26733
26734         exclude: make more robust
26735         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26736         rather than masking a coding bug.
26737         Suggested by Bruno Haible.
26738
26739 2009-10-30  Jim Meyering  <meyering@redhat.com>
26740
26741         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26742         Rather than putting #!/usr/bin/perl on the first line,
26743         start with a variant of what's recommended by "man perlrun" that
26744         invokes the first "perl" program from your shell's search path.
26745         * build-aux/gitlog-to-changelog: Replace #!... as above.
26746         Add a "Local Variables" perl mode setting.
26747         Prompted by a patch from Ludovic Courtès.
26748         Improved by Eric Blake.
26749         * build-aux/useless-if-before-free: Likewise.
26750         * build-aux/announce-gen: Likewise.
26751         * build-aux/update-copyright: Likewise.
26752
26753 2009-10-29  Eric Blake  <ebb9@byu.net>
26754
26755         filenamecat-lgpl: adjust clients
26756         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26757         filenamecat.
26758         * modules/renameat (Depends-on): Likewise.
26759
26760         filenamecat: split into filenamecat-lgpl
26761         * modules/filenamecat-lgpl: New module.
26762         * modules/filenamecat (Files): Move library-safe files into
26763         filenamecat-lgpl.
26764         (Depends-on): Add filenamecat-lgpl.
26765         (configure.ac): Declare witness.
26766         * lib/filenamecat.h (file_name_concat): Only declare when using
26767         GPL module.
26768         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26769         Move...
26770         * lib/filenamecat-lgpl.c: ...into new file.
26771         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26772         (gl_FILE_NAME_CONCAT): Use it.
26773         * MODULES.html.sh (File system functions): Mention new module.
26774
26775         argp: avoid memory leak
26776         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26777         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26778         base_name, since the latter malloc()s and can call exit().
26779         Leak introduced 2006-07-03.
26780
26781         dirname-lgpl: adjust clients that don't need full dirname
26782         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26783         * modules/filenamecat (Depends-on): Likewise.
26784         * modules/linkat (Depends-on): Likewise.
26785         * modules/mkancesdirs (Depends-on): Likewise.
26786         * modules/mkdir (Depends-on): Likewise.
26787         * modules/openat (Depends-on): Likewise.
26788         * modules/savewd (Depends-on): Likewise.
26789         * modules/rename (Depends-on): Likewise.
26790         (License): Relax license.
26791         * modules/mkdir-tests (Depends-on): Drop progname.
26792         (Makefile.am): Delete unneeded LDADD.
26793         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26794
26795         dirname: split into dirname-lgpl
26796         * modules/dirname-lgpl: New module.
26797         * modules/dirname (Files): Move library-safe files into
26798         dirname-lgpl.
26799         (Depends-on): Add dirname-lgpl.
26800         (configure.ac): Declare witness.
26801         * modules/double-slash-root (License): Relax license.
26802         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26803         module.
26804         * lib/dirname.c (dir_len, mdir_name): Move...
26805         * lib/dirname-lgpl.c: ...into new file.
26806         * lib/basename.c (last_component, base_len): Move...
26807         * lib/basename-lgpl.c: ...into new file.
26808         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26809         (gl_DIRNAME): Use it.
26810         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26811         Mention new module.
26812         * modules/dirname-tests (Depends-on): Add progname.
26813         * tests/test-dirname.c (program_name): Delete.
26814
26815         mkdir: make safe for libraries
26816         * modules/mkdir (Depends-on): Drop xalloc.
26817         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26818         exit.
26819
26820         tests: avoid some compiler warnings
26821         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26822         literals.
26823         * tests/test-memchr.c (main): Avoid type mismatch.
26824         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26825         * tests/test-base64.c (main): Likewise.
26826         * tests/test-getdelim.c (main): Likewise.
26827         * tests/test-gethostname.c (main): Likewise.
26828         * tests/test-getline.c (main): Likewise.
26829         * tests/test-netinet_in.c (main): Likewise.
26830         * tests/test-select.c (open_server_socket, main): Likewise.
26831         * tests/test-select-stdin.c (main): Likewise.
26832         * tests/test-sockets.c (main): Likewise.
26833         * tests/test-strsignal.c (main): Likewise.
26834         * tests/test-sys_select.c (main): Likewise.
26835         * tests/test-sys_socket.c (main): Likewise.
26836         * tests/test-u64.c (main): Likewise.
26837         * tests/test-xfprintf-posix.c (main): Likewise.
26838         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26839
26840         sockets: avoid compiler warning
26841         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26842
26843         maint: detect usage(1) and other suspicious exits
26844         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26845
26846 2009-10-29  Jim Meyering  <meyering@redhat.com>
26847
26848         timespec: long-to-int truncation could make timespec_cmp malfunction
26849         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26850         a multiple of 2^32 nanoseconds as no difference.
26851
26852 2009-10-28  Jim Meyering  <meyering@redhat.com>
26853
26854         fprintftime: wrap macro code argument in "do {...} while(0)"
26855         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26856         cpy macro must be a statement that can be followed by a semicolon.
26857         Now that the else clause contains a comment and is hence longer
26858         than one line, I require curly braces.  That in turn requires
26859         that we wrap this code block in the standard do...while(0).
26860
26861         fprintftime: remove stray semicolon from previous change
26862         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26863
26864         fprintftime: avoid a warning about ignored fwrite return value
26865         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26866         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26867         that is unsafe.
26868         * modules/fprintftime (Depends-on): Add ignore-value.
26869
26870         exclude: avoid an unwarranted warning
26871         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26872
26873 2009-10-27  Eric Blake  <ebb9@byu.net>
26874
26875         fseek: avoid compilation failure when fflush is replaced
26876         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26877         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26878         module is in use.
26879         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26880         module is not in use; since REPLACE_FSEEK worked otherwise.
26881         (GNULIB_FTELLO): Likewise for ftell.
26882         Reported by Ian Beckwith and others.
26883
26884 2009-10-27  Bruno Haible  <bruno@clisp.org>
26885
26886         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26887         Reported by Jim Meyering.
26888
26889 2009-10-27  Jim Meyering  <jim@meyering.net>
26890             Bruno Haible  <bruno@clisp.org>
26891
26892         Avoid warning despite dropping the return value of fwrite.
26893         * lib/unicodeio.c: Include ignore-value.h.
26894         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26895         * modules/unicodeio (Depends-on): Add ignore-value.
26896
26897 2009-10-26  Eric Blake  <ebb9@byu.net>
26898
26899         areadlinkat: fix fallback path
26900         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26901         pointer and zero.
26902
26903 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26904
26905         Use a better IO block size for modern systems
26906         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26907         * lib/md2.c: Likewise.
26908         * lib/md4.c: Likewise.
26909         * lib/md5.c: Likewise.
26910         * lib/sha1.c: Likewise.
26911         * lib/sha256.c: Likewise.
26912         * lib/sha512.c: Likewise.
26913
26914 2009-10-22  Eric Blake  <ebb9@byu.net>
26915
26916         tests: avoid several compiler warnings
26917         * tests/test-getcwd.c (main): Avoid buffer underflow.
26918         * tests/test-getdate.c (main): String literals are not safe with
26919         putenv, so use setenv.  Declare unused argument.
26920         * modules/getdate-tests (Depends-on): Add setenv.
26921         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26922         problems with string literals in char *.
26923         * tests/test-hash.c (main): Avoid shadowing declaration.
26924         (insert_new): Treat string literals as char const *.
26925         * tests/test-getopt.h (test_getopt): Likewise.
26926         (getopt_loop): Alter types to minimize casting elsewhere.
26927         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26928         (test_getopt_long_posix): Likewise.
26929         (do_getopt_long): Add wrapper to minimize casting.
26930         * tests/test-atexit.c (clear_temp_file): Use void.
26931         * tests/test-areadlink-with-size.c (main): Declare unused
26932         arguments.
26933         * tests/test-areadlink.c (main): Likewise.
26934         * tests/test-areadlinkat-with-size.c (main): Likewise.
26935         * tests/test-areadlinkat.c (main): Likewise.
26936         * tests/test-canonicalize-lgpl.c (main): Likewise.
26937         * tests/test-canonicalize.c (main): Likewise.
26938         * tests/test-dirent-safer.c (main): Likewise.
26939         * tests/test-dirname.c (main): Likewise.
26940         * tests/test-dup2.c (main): Likewise.
26941         * tests/test-fchdir.c (main): Likewise.
26942         * tests/test-fcntl-h.c (main): Likewise.
26943         * tests/test-fcntl-safer.c (main): Likewise.
26944         * tests/test-fdopendir.c (main): Likewise.
26945         * tests/test-fdutimensat.c (main): Likewise.
26946         * tests/test-fflush.c (main): Likewise.
26947         * tests/test-filenamecat.c (main): Likewise.
26948         * tests/test-filevercmp.c (main): Likewise.
26949         * tests/test-fopen-safer.c (main): Likewise.
26950         * tests/test-fopen.c (main): Likewise.
26951         * tests/test-fpending.c (main): Likewise.
26952         * tests/test-fpurge.c (main): Likewise.
26953         * tests/test-freading.c (main): Likewise.
26954         * tests/test-fstatat.c (main): Likewise.
26955         * tests/test-fsync.c (main): Likewise.
26956         * tests/test-futimens.c (main): Likewise.
26957         * tests/test-getndelim2.c (main): Likewise.
26958         * tests/test-gettimeofday.c (main): Likewise.
26959         * tests/test-getopt.c (main): Likewise.
26960         * tests/test-i-ring.c (main): Likewise.
26961         * tests/test-inttypes.c (main): Likewise.
26962         * tests/test-link.c (main): Likewise.
26963         * tests/test-lstat.c (main): Likewise.
26964         * tests/test-math.c (main): Likewise.
26965         * tests/test-md5.c (main): Likewise.
26966         * tests/test-memchr2.c (main): Likewise.
26967         * tests/test-memrchr.c (main): Likewise.
26968         * tests/test-mkdir.c (main): Likewise.
26969         * tests/test-mkdirat.c (main): Likewise.
26970         * tests/test-mkfifoat.c (main): Likewise.
26971         * tests/test-open.c (main): Likewise.
26972         * tests/test-openat-safer.c (main): Likewise.
26973         * tests/test-openat.c (main): Likewise.
26974         * tests/test-quotearg.c (main): Likewise.
26975         * tests/test-rawmemchr.c (main): Likewise.
26976         * tests/test-readlink.c (main): Likewise.
26977         * tests/test-remove.c (main): Likewise.
26978         * tests/test-rename.c (main): Likewise.
26979         * tests/test-renameat.c (main): Likewise.
26980         * tests/test-rmdir.c (main): Likewise.
26981         * tests/test-sha1.c (main): Likewise.
26982         * tests/test-signal.c (main): Likewise.
26983         * tests/test-sigaction.c (main): Likewise.
26984         * tests/test-stat.c (main): Likewise.
26985         * tests/test-stat-time.c (main): Likewise.
26986         * tests/test-stddef.c (main): Likewise.
26987         * tests/test-stdint.c (main): Likewise.
26988         * tests/test-stdio.c (main): Likewise.
26989         * tests/test-stdlib.c (main): Likewise.
26990         * tests/test-strchrnul.c (main): Likewise.
26991         * tests/test-strerror.c (main): Likewise.
26992         * tests/test-string.c (main): Likewise.
26993         * tests/test-strtod.c (main): Likewise.
26994         * tests/test-strverscmp.c (main): Likewise.
26995         * tests/test-symlink.c (main): Likewise.
26996         * tests/test-symlinkat.c (main): Likewise.
26997         * tests/test-sys_stat.c (main): Likewise.
26998         * tests/test-sys_time.c (main): Likewise.
26999         * tests/test-time.c (main): Likewise.
27000         * tests/test-unistd.c (main): Likewise.
27001         * tests/test-unlink.c (main): Likewise.
27002         * tests/test-unlinkat.c (main): Likewise.
27003         * tests/test-utimens.c (main): Likewise.
27004         * tests/test-utimensat.c (main): Likewise.
27005         * tests/test-version-etc.c (main): Likewise.
27006         * tests/test-wchar.c (main): Likewise.
27007         * tests/test-wctype.c (main): Likewise.
27008         * tests/test-xprintf-posix.c (main): Likewise.
27009         * tests/test-posixtm.c (main): Likewise.
27010         (STREQ): Delete unused macro.
27011         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27012         shadowed variables.
27013         * tests/test-memchr.c (main): Likewise.
27014
27015 2009-10-21  Eric Blake  <ebb9@byu.net>
27016
27017         areadlinkat: avoid failure on older glibc
27018         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27019         rather than mis-comparing 0 against FUNC_RESULT of char*.
27020
27021 2009-10-21  Bruno Haible  <bruno@clisp.org>
27022
27023         * modules/stpncpy (License): Relicense under LGPLv2+.
27024         Reported by David Lutterkort <lutter@redhat.com>.
27025
27026 2009-10-20  Eric Blake  <ebb9@byu.net>
27027
27028         utimensat: work around Solaris 9 bug
27029         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27030         has trailing slash bugs.
27031         * tests/test-lutimens.h (test_lutimens): Enhance test.
27032         * tests/test-utimens.h (test_utimens): Likewise.
27033         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27034         * doc/posix-functions/utimes.texi (utimes): Likewise.
27035         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27036         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27037         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27038         * doc/posix-functions/futimens.texi (futimens): Likewise.
27039
27040         fdutimensat: new module
27041         * modules/fdutimensat: New file.
27042         * lib/fdutimensat.c (fdutimensat): Likewise.
27043         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27044         * MODULES.html.sh (File system functions): Mention module.
27045         * modules/fdutimensat-tests: New test.
27046         * tests/test-fdutimensat.c: Likewise.
27047
27048         doc: regenerate INSTALL
27049         * doc/INSTALL: Reflect recent autoconf update.
27050         * doc/INSTALL.ISO: Likewise.
27051         * doc/INSTALL.UTF-8: Likewise.
27052
27053 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27054
27055         acl: warn if ACL support is not detected
27056         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27057
27058 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27059
27060         * lib/nproc.h: Add extern "C" block for C++.
27061
27062 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27063             Bruno Haible  <bruno@clisp.org>
27064
27065         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27066         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27067         * doc/posix-functions/isalpha.texi: Likewise.
27068         * doc/posix-functions/isblank.texi: Likewise.
27069         * doc/posix-functions/iscntrl.texi: Likewise.
27070         * doc/posix-functions/isdigit.texi: Likewise.
27071         * doc/posix-functions/isgraph.texi: Likewise.
27072         * doc/posix-functions/islower.texi: Likewise.
27073         * doc/posix-functions/isprint.texi: Likewise.
27074         * doc/posix-functions/ispunct.texi: Likewise.
27075         * doc/posix-functions/isspace.texi: Likewise.
27076         * doc/posix-functions/isupper.texi: Likewise.
27077         * doc/posix-functions/isxdigit.texi: Likewise.
27078
27079 2009-10-18  Bruno Haible  <bruno@clisp.org>
27080
27081         Tests for module 'isblank'.
27082         * modules/isblank-tests: New file.
27083         * tests/test-isblank.c: New file.
27084
27085         New module 'isblank'.
27086         * lib/isblank.c: New file.
27087         * m4/isblank.m4: New file.
27088         * modules/isblank: New file.
27089         * doc/posix-functions/isblank.texi: Mention the new module.
27090
27091 2009-10-18  Bruno Haible  <bruno@clisp.org>
27092
27093         New module 'ctype'.
27094         * lib/ctype.in.h: New file.
27095         * m4/ctype.m4: New file.
27096         * modules/ctype: New file.
27097         * doc/posix-headers/ctype.texi: Mention the new module.
27098
27099 2009-10-18  Jim Meyering  <meyering@redhat.com>
27100
27101         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27102         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27103         right after its initialization, rather than farther down.
27104         Keeping these in close proximity makes it easier to ensure
27105         that each such variable is initialized.  E.g.,
27106
27107             LIB_CLOCK_GETTIME=
27108             AC_SUBST([LIB_CLOCK_GETTIME])
27109
27110         This change also increments these serial numbers.
27111         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27112         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27114
27115 2009-10-18  Bruno Haible  <bruno@clisp.org>
27116
27117         Don't let environment variables perturb build.
27118         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27119         (gl_PREREQ_GETHRXTIME): ... not here.
27120
27121 2009-10-18  Bruno Haible  <bruno@clisp.org>
27122
27123         Avoid symlink attack in localcharset module.
27124         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27125         (O_NOFOLLOW): Define fallback.
27126         (get_charset_aliases): Don't open the file if it is a symbolic link.
27127         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27128         gl_FCNTL_H.
27129         (gl_FCNTL_H): Require it.
27130         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27131         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27132         Reported by Fergal Glynn <fglynn@veracode.com>.
27133
27134 2009-10-18  Bruno Haible  <bruno@clisp.org>
27135
27136         Implement nproc for mingw.
27137         * lib/nproc.c: Include <windows.h>
27138         (num_processors): On native Windows platforms, try GetSystemInfo.
27139
27140 2009-10-18  Bruno Haible  <bruno@clisp.org>
27141
27142         Implement nproc for IRIX.
27143         * lib/nproc.c: Include <sys/sysmp.h>.
27144         (num_processors): On IRIX systems, try sysmp.
27145         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27146
27147 2009-10-18  Bruno Haible  <bruno@clisp.org>
27148
27149         Implement nproc for HP-UX.
27150         * lib/nproc.c: Include <sys/pstat.h>
27151         (num_processors): On HP-UX systems, try pstat_getdynamic.
27152         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27153         pstat_getdynamic.
27154
27155 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27156             Bruno Haible  <bruno@clisp.org>
27157
27158         Implement nproc for NetBSD, OpenBSD.
27159         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27160         (ARRAY_SIZE): New macro.
27161         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27162         * m4/nproc.m4: New file.
27163         * modules/nproc (Files): Add m4/nproc.m4.
27164         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27165         (Makefile.am): Instead, augment lib_SOURCES.
27166
27167 2009-10-18  Bruno Haible  <bruno@clisp.org>
27168
27169         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27170         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27171         sys/param.h.
27172
27173 2009-10-16  Eric Blake  <ebb9@byu.net>
27174
27175         utimensat: new module
27176         * modules/utimensat: New file.
27177         * lib/utimensat.c (utimensat): Likewise.
27178         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27179         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27180         so we can work around Linux bugs.
27181         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27182         * modules/sys_stat (Makefile.am): Substitute them.
27183         * lib/sys_stat.in.h (utimensat): Declare it.
27184         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27185         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27186         * modules/utimensat-tests: New test.
27187         * tests/test-utimensat.c: Likewise.
27188
27189         utimens: let lutimens work on non-symlinks
27190         * lib/utimens.c (lutimens): Fall back to utimens rather than
27191         failing with ENOSYS, when file is not a symlink.
27192         (utimens): Reduce redirection.
27193         * tests/test-lutimens.h (test_lutimens): Update test to cover
27194         non-symlinks.
27195         * tests/test-utimens.h (test_utimens): Update test to cover
27196         symlinks.
27197         * tests/test-utimens.c (main): Update caller.
27198
27199         utimens: cache whether utimensat syscall works
27200         * lib/utimens.c (utimensat_works_really): New cache variable.
27201         (fdutimens, lutimens): Use it to avoid failing syscall.
27202
27203         test-stat-time, test-utimens: improve portability
27204         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27205         ext4 on alpha, and for cygwin.
27206         * tests/test-utimens-common.h: New file.
27207         (nap): Factor delays into single function.
27208         * tests/test-lutimens.h (test_lutimens): Use new header.
27209         * tests/test-futimens.h (test_futimens): Likewise.
27210         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27211         timestamps to occur from same machine, as was done previously for
27212         test_utimens.
27213         * modules/utimens-tests (Files): Ship new file.
27214         * modules/futimens-tests (Files): Likewise.
27215         Reported in part by Jim Meyering.
27216
27217         sys_stat: sort replacement declarations
27218         * lib/sys_stat.in.h: Sort declarations.
27219         * lib/futimens.c (futimens): Fix typo.
27220
27221 2009-10-15  Jim Meyering  <meyering@redhat.com>
27222
27223         don't let environment settings perturb build
27224         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27225         could cause a configure-time and/or build-time malfunction.
27226         Typically, a configure-time function-in-library test is performed
27227         via code like this:
27228
27229           LIB_VAR=
27230           AC_SUBST([LIB_VAR])
27231           prefix_saved_LIBS=$LIBS
27232             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27233                        [test "$ac_cv_search_FUNC" = "none required" ||
27234                         LIB_VAR=$ac_cv_search_FUNC])
27235           LIBS=$prefix_saved_LIBS
27236
27237         However, in each of the files affected by this change, the LIB_VAR=
27238         initialization was omitted.  Thus, when set in the environment, its
27239         value would propagate into generated Makefiles when FUNC is not found
27240         in LIB_NAME.
27241         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27242         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27244
27245 2009-10-14  Eric Blake  <ebb9@byu.net>
27246
27247         fchdir: avoid infinite recursion in mingw
27248         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27249         recursing.
27250
27251         test-stat-time: port to mingw
27252         * tests/test-stat-time.c (force_unlink): Return a value.
27253         (test_ctime) [W32]: Fix compilation error.
27254         (nap): Don't call usleep with too large an argument.  Use
27255         force_unlink.
27256         * doc/pastposix-functions/usleep.texi (usleep): Document the
27257         portability issue.
27258
27259 2009-10-13  Jim Meyering  <meyering@redhat.com>
27260
27261         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27262         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27263         * modules/pipe-filter-ii: Likewise.
27264         * modules/sys_socket-tests: Likewise.
27265         * modules/tsearch-tests: Likewise.
27266         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27267         (check): Depend on it.
27268
27269 2009-10-12  Eric Blake  <ebb9@byu.net>
27270
27271         utimens-tests: port to NFS file systems
27272         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27273         comparisons to avoid spurious failures from timestamp drift
27274         between NFS machines.
27275
27276 2009-10-12  Eric Blake  <ebb9@byu.net>
27277
27278         stat-time-tests: minor cleanups
27279         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27280         * tests/test-stat-time.c (nap): Separate assignment from call.
27281         Suggested by Paolo Bonzini and Bruno Haible.
27282
27283         sys_stat: guarantee struct timespec
27284         * lib/sys_stat.in.h (includes): Always include <time.h>
27285         * modules/sys_stat (Depends-on): Add time.
27286         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27287         mode_t permission values.
27288         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27289         get at subsecond timestamps.
27290
27291 2009-10-10  Eric Blake  <ebb9@byu.net>
27292
27293         futimens: new module
27294         * modules/futimens: New file.
27295         * lib/futimens.c (futimens): Likewise.
27296         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27297         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27298         we can work around Linux bugs.
27299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27300         * modules/sys_stat (Makefile.am): Substitute them.
27301         * lib/sys_stat.in.h (futimens): Declare it.
27302         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27303         * doc/posix-functions/futimens.texi (futimens): Likewise.
27304         * modules/futimens-tests: New test.
27305         * tests/test-futimens.c: Likewise.
27306
27307         utimens: introduce fdutimens
27308         * lib/utimens.h (fdutimens): New prototype.
27309         * lib/utimens.c (gl_futimens): Move guts...
27310         (fdutimens): ...to new interface.
27311         * tests/test-utimens.c (do_fdutimens): Use it.
27312
27313         utimens: add UTIME_NOW and UTIME_OMIT support
27314         * lib/utimens.c (validate_timespec, update_timespec): New helper
27315         functions.
27316         (gl_futimens, lutimens): Use them.
27317         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27318         stdbool, sys_stat.
27319         (Link): Mention resulting library dependency.
27320         * modules/utimecmp (Link): Likewise.
27321         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27322         (Makefile.am): Pick up library dependency.
27323         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27324         definition.
27325         * tests/test-sys_stat.c: Test the definitions.
27326         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27327         * NEWS: Document library dependency.
27328
27329         utimecmp: support symlink timestamps
27330         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27331         hashing when possible.  Use pathconf when available.
27332         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27333         * modules/utimecmp (Depends-on): Add lstat.
27334
27335         utimens: add lutimens interface
27336         * lib/utimens.c (lutimens): New function.
27337         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27338         * lib/utimens.h (lutimens): Declare new interface.
27339         * tests/test-utimens.c (main): Enhance test.
27340         * tests/test-lutimens.h (test_lutimens): New file.
27341         * modules/utimens-tests (Files): Distribute it.
27342         (Depends-on): Add symlink.
27343         (configure.ac): Check for usleep.
27344
27345         utimens: validate futimens usage
27346         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27347         fewer syscalls on failure later on.  Avoid compiler warning on
27348         mingw.
27349         * modules/utimens (Depends-on): Add dup2.
27350
27351         utimens: add test
27352         * modules/utimens-tests: New test.
27353         * tests/test-utimens.h: New file.
27354         * tests/test-futimens.h: Likewise.
27355         * tests/test-utimens.c: Likewise.
27356
27357         doc: mention timestamp portability issues
27358         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27359         instead.
27360         * doc/posix-functions/utime.texi (utime): Likewise.
27361         * doc/posix-functions/utimes.texi (utimes): Likewise.
27362         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27363         instead.
27364         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27365         module.
27366         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27367         Mention weakness with symlink timestamps.
27368         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27369         to utimensat/futimens instead.
27370         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27371
27372         test-dup2: enhance test
27373         * tests/test-dup2.c (main): Also check AT_FDCWD.
27374
27375         test-stat-time: avoid more spurious failures
27376         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27377         xfs; and avoid race if the two timestamps cross quantization edge.
27378
27379         relocatable: prefer 'file system' over 'filesystem'
27380         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27381         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27382         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27383         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27384         * lib/relocatable.c (compute_curr_prefix): Likewise.
27385
27386 2009-10-10  Jim Meyering  <meyering@redhat.com>
27387
27388         stat-time-tests: check for the usleep function
27389         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27390
27391 2009-10-10  Bruno Haible  <bruno@clisp.org>
27392
27393         * modules/xnanosleep: Put the Link section after the Include section.
27394
27395 2009-10-09  Eric Blake  <ebb9@byu.net>
27396
27397         dup2: work around FreeBSD 6.1 bug
27398         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27399         * doc/posix-functions/dup2.texi (dup2): Document it.
27400         Reported by Nelson H. F. Beebe and Jim Meyering.
27401
27402         test-stat-time: port to buggy NFS clients
27403         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27404         (test_ctime): Also skip test if mtime and ctime are skewed.
27405
27406         maint: prefer 'file system' over 'filesystem'
27407         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27408         * doc/posix-functions/lstat.texi (lstat): Likewise.
27409         * lib/file-has-acl.c (file_has_acl): Likewise.
27410         * lib/fwriteerror.c [TEST]: Likewise.
27411         * tests/test-areadlink.h (test_areadlink): Likewise.
27412         * tests/test-areadlinkat-with-size.c (main): Likewise.
27413         * tests/test-areadlinkat.c (main): Likewise.
27414         * tests/test-canonicalize-lgpl.c (main): Likewise.
27415         * tests/test-canonicalize.c (main): Likewise.
27416         * tests/test-fstatat.c (main): Likewise.
27417         * tests/test-linkat.c (main): Likewise.
27418         * tests/test-lstat.h (test_lstat_func): Likewise.
27419         * tests/test-mkdir.h (test_mkdir): Likewise.
27420         * tests/test-readlink.h (test_readlink): Likewise.
27421         * tests/test-remove.c (main): Likewise.
27422         * tests/test-rename.h (test_rename): Likewise.
27423         * tests/test-renameat.c (main): Likewise.
27424         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27425         * tests/test-symlink.h (test_symlink): Likewise.
27426         * tests/test-symlinkat.c (main): Likewise.
27427         * tests/test-unlink.h (test_unlink_func): Likewise.
27428         * tests/test-unlinkat.c (main): Likewise.
27429
27430         maint: make realtime library usage explicit
27431         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27432         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27433         * modules/settime (Link): Likewise.
27434         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27435
27436         test-stat-time: speed up execution
27437         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27438         warning on mingw.
27439         (nap): New helper function.
27440         (prepare_test): Use it to reduce sleep time.
27441         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27442         execution.
27443         * modules/stat-time-tests (configure.ac): Check for usleep.
27444
27445 2009-10-09  Jim Meyering  <meyering@redhat.com>
27446
27447         selinux-h: always use getfilecon wrappers
27448         * lib/getfilecon.c: New file.
27449         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27450         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27451         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27452         (fgetfilecon): Provide a stub.
27453         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27454         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27455         file unconditionally.
27456         When <selinux/selinux.h> is found, arrange to use wrappers.
27457         * modules/selinux-h (Files): Add getfilecon.c.
27458         (Makefile.am): Substitute include-next-related bits
27459         into the now-always-generated selinux/selinux.h file.
27460         * doc/glibc-functions/lgetfilecon.texi: New file.
27461         * doc/glibc-functions/fgetfilecon.texi: New file.
27462         * doc/glibc-functions/getfilecon.texi: New file.
27463         * doc/glibc-functions/getfilecon-desc.texi: New file.
27464         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27465         which to pull in the new files.
27466         * MODULES.html.sh (Misc): Add selinux-h.
27467
27468 2009-10-08  Jim Meyering  <meyering@redhat.com>
27469
27470         unistd: fix comment typo
27471         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27472
27473 2009-10-08  Eric Blake  <ebb9@byu.net>
27474
27475         areadlink: use SIZE_MAX consistently
27476         * modules/areadlink (Depends-on): Add stdint.
27477         * modules/areadlink-with-size (Depends-on): Likewise.
27478         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27479         gives NULL; drop sys/types, since unistd gives size_t; and add
27480         stdint for SIZE_MAX.
27481         (SIZE_MAX): Rely on headers.
27482         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27483         and add stdint.
27484         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27485         (SIZE_MAX): Likewise.
27486         (INITIAL_BUF_SIZE): Turn into enum.
27487         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27488
27489 2009-10-08  Jim Meyering  <meyering@redhat.com>
27490
27491         areadlinkat: avoid compilation failure
27492         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27493         Fix typo in comment.
27494
27495 2009-10-07  Eric Blake  <ebb9@byu.net>
27496
27497         areadlinkat-with-size: new module
27498         * modules/areadlinkat-with-size: New module.
27499         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27500         * lib/areadlink.h (areadlinkat): Declare it.
27501         * MODULES.html.sh (File system functions): Mention it.
27502         * modules/areadlinkat-with-size-tests: New test.
27503         * tests/test-areadlinkat-with-size.c: New file.
27504
27505         xreadlinkat: new module
27506         * modules/xreadlinkat: New module.
27507         * lib/xreadlinkat.c (xreadlinkat): New file.
27508         * lib/xreadlink.h (xreadlinkat): Declare it.
27509         * MODULES.html.sh (File system functions): Mention it.
27510
27511         areadlinkat: new module
27512         * lib/at-func.c (FUNC_FAIL): New define.
27513         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27514         * modules/areadlinkat: New module.
27515         * lib/linkat.c (areadlinkat): Move...
27516         * lib/areadlinkat.c (areadlinkat): ...to new file.
27517         * lib/areadlink.h (areadlinkat): Declare it.
27518         * modules/linkat (Depends-on): Add areadlinkat.
27519         * MODULES.html.sh (File system functions): Mention it.
27520         * modules/areadlinkat-tests: New test.
27521         * tests/test-areadlinkat.c: New file.
27522
27523         areadlink, areadlink-with-size: add tests
27524         * modules/areadlink-tests: New test.
27525         * modules/areadlink-with-size-tests: Likewise.
27526         * tests/test-areadlink.h: New file.
27527         * tests/test-areadlink.c: Likewise.
27528         * tests/test-areadlink-with-size.c: Likewise.
27529
27530         maint: minor cleanups
27531         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27532         _UNUSED_PARAMETER_ instead.
27533         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27534         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27535         * modules/linkat-tests (Files): Distribute test-link.h.
27536
27537         openat, utimens: whitespace cleanup
27538         * lib/openat.c: Prefer space throughout, rather than mix of 8
27539         spaces vs. tabs.
27540         * lib/at-func.c: Likewise.
27541         * lib/utimens.c: Likewise.
27542
27543         openat: avoid using wrong fd
27544         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27545         working directory chooses same fd.
27546         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27547
27548         mkdir, mkdirat: fix cygwin 1.5.x bug
27549         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27550         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27551         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27552         bug.
27553         (gl_PREREQ_MKDIR): Delete unused macro.
27554         * modules/mkdir (Files): Track file rename.
27555         (configure.ac): Update macro name.
27556         * modules/openat (Depends-on): Add mkdir.
27557         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27558
27559         mkdir, mkdirat: add tests
27560         * modules/mkdir-tests: New test.
27561         * tests/test-mkdir.h: New file.
27562         * tests/test-mkdir.c: Likewise.
27563         * tests/test-mkdirat.c: Likewise.
27564         * modules/openat-tests (Files): Add new files.
27565         (Makefile.am): Run new test.
27566
27567 2009-10-06  Eric Blake  <ebb9@byu.net>
27568
27569         doc: tweak *at function documentation
27570         * doc/posix-functions/faccessat.texi (faccessat): Mention
27571         known issue with replacement.
27572         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27573         * doc/posix-functions/linkat.texi (linkat): Likewise.
27574         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27575         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27576         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27577         * doc/posix-functions/renameat.texi (renameat): Likewise.
27578         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27579
27580         openat: fix GNU/Hurd bug in unlinkat
27581         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27582         broken.
27583         * doc/posix-functions/unlink.texi (unlink): Document this.
27584         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27585
27586         fdopendir: fix GNU/Hurd bug
27587         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27588         allowing non-directory fds.
27589         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27590         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27591         * modules/dirent (Makefile.am): Substitute it.
27592         * lib/dirent.in.h (fdopendir): Declare replacement.
27593         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27594         * tests/test-fdopendir.c (main): Test something other than
27595         /dev/null, since on Hurd that behaves like a directory.
27596
27597         test-symlink: port to GNU/Hurd
27598         * tests/test-symlink.h (test_symlink): Relax expected errno.
27599
27600         doc: tweak more cygwin information
27601         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27602         now compatible with glibc.
27603         * doc/posix-functions/getopt.texi (getopt): Likewise.
27604
27605         getopt-gnu: add another test
27606         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27607         guarantee behavior relied on by m4.
27608         * tests/test-getopt.c (main): Use it.
27609         * modules/getopt-posix-tests (Depends-on): Add setenv.
27610         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27611
27612         getopt: fix compilation on darwin
27613         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27614         include.
27615         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27616         Reported by Ludovic Courtès.
27617
27618 2009-10-06  Bruno Haible  <bruno@clisp.org>
27619
27620         * modules/size_max (Description): Discourage its use.
27621         Reported by Simon Josefsson.
27622
27623 2009-10-06  Jim Meyering  <meyering@redhat.com>
27624
27625         linkat: avoid compilation failure
27626         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27627
27628 2009-10-05  Eric Blake  <ebb9@byu.net>
27629
27630         linkat: support Linux 2.6.17
27631         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27632         linkat on Linux, but allow cache variable override.
27633         * lib/linkat.c (rpl_linkat): Define override.
27634         * modules/linkat (Depends-on): Add symlinkat.
27635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27636         * modules/unistd (Makefile.am): Substitute it.
27637         * lib/unistd.in.h (linkat): Declare replacement.
27638         Reported by Pádraig Brady.
27639
27640         quotearg: port test to systems with C.UTF-8 locale
27641         * tests/test-quotearg.c (struct result_strings): Add another
27642         member, differentiating between C.ASCII and C.UTF-8 handling.
27643         (compare_strings): Add parameter.
27644         (main): Adjust all callers.
27645
27646         getopt: avoid clash with FreeBSD _getopt_internal
27647         * lib/getopt.in.h (_getopt_internal): Override the name.
27648         * lib/getopt_int.h (includes): Pick up any overrides.
27649         Reported by Reuben Thomas.
27650
27651         hash: allow C89 compilation
27652         * lib/hash.c (check_tuning): Move declaration before statement.
27653         Reported by Reuben Thomas.
27654
27655 2009-10-05  Karl Berry  <karl@gnu.org>
27656
27657         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27658
27659 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27660             Bruno Haible  <bruno@clisp.org>
27661
27662         * lib/uname.c (uname): Use a table-driven algorithm to compute
27663         Windows NT versions.
27664
27665 2009-10-04  Bruno Haible  <bruno@clisp.org>
27666
27667         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27668         program_invocation_short_name.
27669         * modules/progname (configure.ac): Test for presence of
27670         program_invocation_short_name.
27671         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27672
27673 2009-10-04  Bruno Haible  <bruno@clisp.org>
27674
27675         * lib/progname.c (set_program_name): Fix comment.
27676         Reported by Jim Meyering.
27677
27678 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27679             Bruno Haible  <bruno@clisp.org>
27680
27681         * lib/uname.c: Include <string.h>.
27682         (uname): Do only one call to GetVersionEx in the common case.
27683
27684 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27685             Bruno Haible  <bruno@clisp.org>
27686
27687         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27688         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27689         (uname): Add support for Windows CE and various non-x86 CPU types.
27690
27691 2009-10-03  Bruno Haible  <bruno@clisp.org>
27692
27693         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27694         invocation to tests/configure.ac.
27695         Reported by Ian Beckwith <ianb@erislabs.net>.
27696
27697 2009-10-02  Eric Blake  <ebb9@byu.net>
27698
27699         fchdir: avoid compiler warning
27700         * lib/fchdir.c (canonicalize_file_name)
27701         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27702
27703         test-open: support mingw errno values
27704         * tests/test-open.h (test_open): Relax test.
27705         * tests/test-fopen.h (test_fopen): Likewise.
27706         * tests/test-openat-safer.c (main): Likewise.
27707
27708         open: fix opening directory on mingw
27709         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27710
27711         test-open: on GNU/Hurd, /dev/null is a directory
27712         * tests/test-fopen.h (main): Rename...
27713         (test_fopen): ...to this.  Use a guaranteed non-directory when
27714         confirming open behavior on trailing slash.
27715         * tests/test-openat-safer.c (main): Likewise.
27716         * tests/test-open.h (main): Likewise....
27717         (test_open): ...to this.
27718         * tests/test-fopen.c (main): Adjust caller.
27719         * tests/test-fopen-safer.c (main): Likewise.
27720         * tests/test-open.c (main): Likewise.
27721         * tests/test-fcntl-safer.c (main): Likewise.
27722         Reported by Samuel Thibault.
27723
27724         rename, fchdir: don't ignore chdir failure
27725         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27726         * lib/rename.c (rpl_rename) [W32]: Likewise.
27727         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27728         an empty destination directory if source cannot be renamed,
27729         although there is still possibility for failure.
27730         * doc/posix-functions/rename.texi (rename): Document the race.
27731         Reported by Jim Meyering.
27732
27733         maint: cleanup whitespace in recent commits
27734         * lib/rename.c (rpl_rename): Remove tabs.
27735         * tests/test-link.h (test_link): Likewise.
27736         * lib/fchdir.c (get_name): Likewise.
27737         Reported by Jim Meyering.
27738
27739 2009-10-02  Ben Pfaff  <blp@gnu.org>
27740
27741         relocatable-prog-wrapper: Add missing dependency on
27742         double-slash-root.
27743         * modules/relocatable-prog-wrapper: Add dependency.
27744         Reported by Ian Beckwith <ianb@erislabs.net>.
27745
27746 2009-10-02  Eric Blake  <ebb9@byu.net>
27747
27748         renameat: fix Solaris bugs
27749         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27750         needed fixing.
27751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27752         * modules/stdio (Makefile.am): Substitute it.
27753         * lib/stdio.in.h (renameat): Declare replacement.
27754         * lib/renameat.c (rpl_renameat): Implement fix.
27755
27756         renameat: new module
27757         * modules/renameat: New file.
27758         * lib/renameat.c (renameat): Likewise.
27759         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27761         * modules/stdio (Makefile.am): Substitute them.
27762         * lib/stdio.in.h (renameat): Declare it.
27763         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27764         * doc/posix-functions/renameat.texi (renameat): Likewise.
27765         * modules/renameat-tests: New test.
27766         * tests/test-renameat.c: Likewise.
27767
27768         rename: fix mingw bugs
27769         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27770         directory overwrite bugs.
27771
27772         rename: fix another cygwin 1.5 bug
27773         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27774         checks.
27775         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27776         unnecessary cygwin workarounds.  Also work around bug with moving
27777         full directory onto an empty one.
27778         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27779
27780         rename-dest-slash: merge into rename module
27781         * modules/rename-dest-slash (Status): Mark obsolete.
27782         (Depends-on): Add rename.
27783         (Files): Let rename do it all.
27784         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27785         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27786         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27787         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27788         * lib/rename.c (rpl_rename): Update comments.
27789
27790         rename: fix cygwin 1.5.x bugs
27791         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27792         * lib/rename.c (rpl_rename): Work around them.
27793         * modules/rename (Depends-on): Add same-inode.
27794
27795         rename: fix Solaris 10 bug
27796         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27797         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27798         was the only bug.
27799
27800         rename: fix Solaris 9 bug
27801         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27802         on non-directory.  Avoid calling exit.
27803         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27804         strdup.
27805         * modules/rename-tests (Depends-on): Drop lstat.
27806         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27807         (gl_PREREQ_RENAME): Delete unused macro.
27808
27809         rename-dest-slash: fix NetBSD bug
27810         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27811         links.
27812         * modules/rename-dest-slash (Depends-on): Add same-inode.
27813
27814         rename-tests: new test, exposes several platform bugs
27815         * modules/rename-tests: New file.
27816         * tests/test-rename.h: Likewise.
27817         * tests/test-rename.c: Likewise.
27818         * doc/posix-functions/rename.texi (rename): Improve documentation,
27819         including bugs that will eventually be fixed in gnulib.
27820
27821 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27822
27823         * lib/uname.c: Include <stdlib.h>
27824         (uname): Assume version info is available.
27825
27826 2009-10-02  Jim Meyering  <meyering@redhat.com>
27827
27828         gnu-web-doc-update: correct --help output
27829         * build-aux/gnu-web-doc-update: Make --help output relevant.
27830
27831         gnu-web-doc-update: add standard options
27832         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27833
27834         gnu-web-doc-update: New module.
27835         Use this script to automatically update the on-line web documentation
27836         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27837         * modules/gnu-web-doc-update: New file, from coreutils.
27838         * build-aux/gnu-web-doc-update: New script.
27839
27840 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27841
27842         link: LoadLibrary is not needed.
27843         * lib/link.c: Use GetModuleHandle.
27844
27845 2009-10-01  Eric Blake  <ebb9@byu.net>
27846
27847         getopt: bump serial number
27848         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27849         change.
27850
27851         tests: tighten link, rmdir, and remove tests
27852         * tests/test-link.h (includes): No need to use <config.h> here.
27853         Clean up if directory hard link was created, otherwise test for
27854         trailing '.'.
27855         * tests/test-linkat.c (main): Simplify.
27856         * tests/test-remove.c (main): Enhance test for trailing '.'.
27857         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27858
27859 2009-10-01  Jim Meyering  <meyering@redhat.com>
27860
27861         maint.mk: requiring "make major" was annoying, for a "minor" release.
27862         What is intended is "stable", to contrast with alpha and beta,
27863         so require "make stable", not "make major".
27864         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27865         (get_tool_versions): Likewise.
27866         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27867
27868 2009-09-30  Ben Pfaff  <blp@gnu.org>
27869
27870         Fix broken build of replacement for Windows tmpfile().
27871         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27872         flags argument added along with the 'mkostemp' module.
27873
27874 2009-09-28  Bruno Haible  <bruno@clisp.org>
27875
27876         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27877         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27878         to 'remove_elt'.
27879         (gl_list_remove): Update.
27880         * lib/gl_list.c (gl_list_remove): Update.
27881         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27882         to 'remove_elt'.
27883         (gl_oset_remove): Update.
27884         * lib/gl_list.c (gl_oset_remove): Update.
27885         Reported by Eric Blake.
27886
27887 2009-09-28  Eric Blake  <ebb9@byu.net>
27888
27889         doc: mention yet more cygwin 1.7 status
27890         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27891         cygwin.
27892         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27893         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27894
27895         argp: fix test failure
27896         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27897         that are not upper-case.  Pass correct range to tolower.
27898
27899 2009-09-27  Jim Meyering  <meyering@redhat.com>
27900
27901         test-yesno: work around sparc-dash here-document infelicity
27902         Without this change, the literal \177 byte in a here document
27903         would make dash 0.5.5.1-3 access uninitialized memory.
27904         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27905         Instead, use a marker, "@", and filter through tr to create the desired
27906         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27907
27908 2009-09-27  Bruno Haible  <bruno@clisp.org>
27909
27910         Disable untested support for new flavours of ACLs on AIX.
27911         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27912         progress.
27913         * lib/set-mode-acl.c (qset_acl): Likewise.
27914
27915 2008-12-07  Bruno Haible  <bruno@clisp.org>
27916
27917         Add support for new flavours of ACLs on AIX. (Untested.)
27918         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27919         (file_has_acl): Add support for newer AIX.
27920         * lib/set-mode-acl.c (qset_acl): Likewise.
27921         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27922         Rainer Tammer <tammer@tammer.net>.
27923
27924 2009-09-26  Eric Blake  <ebb9@byu.net>
27925
27926         argp: fix compilation of getopt
27927         * lib/getopt.in.h (includes): Use different guard than glibc.
27928         Reported by Sergey Poznyakoff.
27929
27930         doc: mention more cygwin 1.7 status
27931         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27932         bug.
27933         * doc/posix-functions/execl.texi (execl): Likewise.
27934         * doc/posix-functions/execle.texi (execle): Likewise.
27935         * doc/posix-functions/execlp.texi (execlp): Likewise.
27936         * doc/posix-functions/execv.texi (execv): Likewise.
27937         * doc/posix-functions/execve.texi (execve): Likewise.
27938         * doc/posix-functions/execvp.texi (execvp): Likewise.
27939         * doc/glibc-functions/canonicalize_file_name.texi
27940         (canonicalize_file_name): Cygwin 1.7 now provides this.
27941         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27942         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27943         on AT_SYMLINK_NOFOLLOW.
27944
27945 2009-09-24  Eric Blake  <ebb9@byu.net>
27946
27947         test-linkat: make test more robust
27948         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27949
27950         getopt: fix inclusion guards for cygwin
27951         * modules/getopt-posix (Depends-on): Add include-next.
27952         (Makefile.am): Substitute more items in replacement header.
27953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27954         <getopt.h>.
27955         * lib/getopt.in.h (includes): Use split inclusion guard, and
27956         prefer <getopt.h> over include <unistd.h> when one is present.
27957         (option): Also override name of 'struct option'.
27958
27959         same-inode: revert prior change; it is not yet ready
27960         * NEWS: Undo mention of this change.
27961         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27962         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27963         * lib/cycle-check.c (cycle_check): Likewise.
27964         * lib/same.c (same_name): Likewise.
27965         * lib/at-func2.c (at_func2): Likewise.
27966
27967 2009-09-23  Eric Blake  <ebb9@byu.net>
27968
27969         linkat: new module
27970         * modules/linkat: New file.
27971         * lib/at-func2.c (at_func2): Likewise.
27972         * lib/linkat.c (linkat): Likewise.
27973         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27974         * lib/openat-priv.h (at_func2): Add declaration.
27975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27976         * modules/unistd (Makefile.am): Substitute them.
27977         * lib/unistd.in.h (linkat): Declare it.
27978         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27979         * doc/posix-functions/linkat.texi (linkat): Likewise.
27980         * doc/posix-functions/link.texi (link): Tweak wording.
27981         * tests/test-link.c (main): Move guts...
27982         * tests/test-link.h (test_link): ...into new file.
27983         * modules/linkat-tests: New test.
27984         * tests/test-linkat.c: Likewise.
27985         * modules/link-tests (Files): Ship new file.
27986         (Depends-on): Add stdbool.
27987
27988         dirname: add library-safe mdir_name
27989         * lib/dirname.h (mdir_name): New prototype.
27990         * lib/dirname.c (dir_name): Move guts...
27991         (mdir_name): ...to new function that avoids xalloc_die.
27992
27993         fchdir: another mingw fix
27994         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27995         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27996         on mingw (where it has not yet been ported), and make it optional
27997         elsewhere.
27998         (_gl_register_fd): Use it.
27999
28000         same-inode: make SAME_INODE tri-state, to port to mingw
28001         * NEWS: Mention this change.
28002         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28003         st_ino always being 0.
28004         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28005         * lib/cycle-check.c (cycle_check): Likewise.
28006         * lib/same.c (same_name): Likewise.
28007
28008         lstat: avoid mingw compilation error
28009         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28010         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28011         lstat ourselves.
28012         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28013         was adequate.
28014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28015         the checks for lstat.
28016         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28017
28018         link: fix test failure on Solaris 9
28019         * lib/link.c (rpl_link): Don't assume link will catch bogus
28020         trailing slash on source.
28021
28022         test-symlinkat: enhance test
28023         * tests/test-readlink.c (main): Move guts...
28024         * tests/test-readlink.h (test_readlink): ...into new file.
28025         * tests/test-symlink.c (main): Move guts...
28026         * tests/test-symlink.h (test_symlink): ...into new file.
28027         * tests/test-symlinkat.c (main): Use new files for further
28028         coverage.
28029         (do_symlink, do_readlink): New helper functions.
28030         * modules/symlink-tests (Files): Ship new file.
28031         (Depends-on): Add stdbool.
28032         * modules/readlink-tests (Files): Ship new file.
28033         (Depends-on): Add stdbool.
28034         * modules/symlinkat-tests (Files): Use new files.
28035
28036 2009-09-23  Eric Blake  <ebb9@byu.net>
28037
28038         readlink: document portability issue with symlink length
28039         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28040         systems have bogus st_size on symlinks, and mention the
28041         areadlink-with-size module.
28042         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28043         * doc/posix-functions/readlink.texi (readlink): Mention the
28044         areadlink module, and ERANGE failure.
28045         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28046         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28047
28048         readlink: fix Solaris 9 bug with trailing slash
28049         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28050         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28051         * doc/posix-functions/readlink.texi (readlink): Document this.
28052         * modules/readlink-tests: New test.
28053         * tests/test-readlink.c: Likewise.
28054
28055         readlink: fix cygwin 1.5.x bug with return type
28056         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28057         * lib/unistd.in.h (readlink): Use ssize_t.
28058         * lib/readlink.c (readlink): Likewise.
28059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28060         * modules/unistd (Makefile.am): Substitute it.
28061         * lib/unistd.in.h (readlink): Declare replacement.
28062         * doc/posix-functions/readlink.texi (readlink): Document this.
28063
28064         symlink: use throughout gnulib
28065         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28066         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28067         symlink is not used.
28068         * modules/symlinkat (Depends-on): Add symlink.
28069         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28070         * modules/canonicalize-tests (Depends-on): Likewise.
28071         * modules/lstat-tests (Depends-on): Likewise.
28072         * modules/openat-tests (Depends-on): Likewise.
28073         * modules/remove-tests (Depends-on): Likewise.
28074         * modules/rmdir-tests (Depends-on): Likewise.
28075         * modules/unlink-tests (Depends-on): Likewise.
28076         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28077         * tests/test-canonicalize.c (symlink): Likewise.
28078         * tests/test-fstatat.c (symlink): Likewise.
28079         * tests/test-lstat.c (symlink): Likewise.
28080         * tests/test-remove.c (symlink): Likewise.
28081         * tests/test-rmdir.c (symlink): Likewise.
28082         * tests/test-unlink.c (symlink): Likewise.
28083         * tests/test-unlinkat.c (symlink): Likewise.
28084
28085         symlink: new module, for Solaris 9 bug
28086         * modules/symlink: New file.
28087         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28088         * lib/symlink.c: Likewise.
28089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28090         * modules/unistd (Makefile.am): Substitute them.
28091         * lib/unistd.in.h (symlink): Declare replacement.
28092         * MODULES.html.sh (File system functions): Mention it.
28093         * doc/posix-functions/symlink.texi (symlink): Likewise.
28094         * modules/symlink-tests: New test.
28095         * tests/test-symlink.c: Likewise.
28096
28097 2009-09-23  Bruno Haible  <bruno@clisp.org>
28098
28099         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28100         when needed.
28101         Test case: gnulib-tool --import --with-tests atexit inttypes.
28102         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28103
28104 2009-09-23  Bruno Haible  <bruno@clisp.org>
28105
28106         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28107         subcommand, not in a subshell.
28108
28109 2009-09-22  Eric Blake  <ebb9@byu.net>
28110
28111         unistd: sort replacement declarations
28112         * lib/unistd.in.h: Sort declarations.
28113
28114         open, openat: minor optimization
28115         * lib/open.c (open): If open succeeded, len is non-zero.
28116         * lib/openat.c (rpl_openat): Likewise.
28117
28118         link-follow: ensure correct result
28119         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28120         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28121         distinguish between possible failures.
28122
28123 2009-09-21  Eric Blake  <ebb9@byu.net>
28124
28125         fts: avoid compiler warning
28126         * lib/fts.c (dirent_inode_sort_may_be_useful)
28127         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28128
28129 2009-09-19  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/progreloc.c (canonicalize_file_name): New declaration.
28132
28133 2009-09-19  Eric Blake  <ebb9@byu.net>
28134
28135         link: fix quoting
28136         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28137
28138         openat: fix openat bugs on Solaris 9
28139         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28140         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28141         * modules/openat (Depends-on): Add open.
28142         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28143         * modules/fcntl-h (Makefile.am): Substitute it.
28144         * lib/fcntl.in.h (openat): Declare replacement.
28145         * doc/posix-functions/openat.texi (openat): Document this.
28146
28147         openat: move fstatat and unlinkat into correct files
28148         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28149         compiled.
28150         * lib/openat.c (fstatat, unlinkat): Move...
28151         * lib/fstatat.c (fstatat): ...into correct files.
28152         * lib/unlinkat.c (unlinkat): Likewise.
28153
28154         openat: fix unlinkat bugs on Solaris 9
28155         * lib/unlinkat.c (unlinkat): New file.
28156         * modules/openat (Depends-on): Add unlink.
28157         (Files): Distribute it.
28158         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28159         trailing slash behavior is broken.
28160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28161         * modules/unistd (Makefile.am): Substitute it.
28162         * lib/unistd.in.h (unlinkat): Declare replacement.
28163         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28164
28165         openat: fix fstatat bugs on Solaris 9
28166         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28167         stat.
28168         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28169
28170         test-unlinkat: enhance test, to expose Solaris 9 bug
28171         * tests/test-unlink.c (main): Factor guts...
28172         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28173         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28174         * tests/test-rmdir.c (main): Adjust caller.
28175         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28176         (unlinker): New helper function.
28177         (rmdirat): Enhance check.
28178         * modules/rmdir-tests (Depends-on): Add stdbool.
28179         * modules/unlink-tests (Depends-on): Likewise.
28180         (Files): Add test-unlink.h.
28181         * modules/openat-tests (Files): Likewise.
28182         (Depends-on): Add unlinkdir.
28183
28184         test-fstatat: new test, to expose Solaris 9 bugs
28185         * tests/test-stat.c (main): Factor guts...
28186         * tests/test-stat.h (test_stat_func): ...into new file.
28187         * tests/test-lstat.c (main): Factor guts...
28188         * tests/test-lstat.h (test_lstat_func): ...into new file.
28189         * tests/test-fstatat.c: New file.
28190         * modules/stat-tests (Files): Add test-stat.h.
28191         * modules/lstat-tests (Files): Add test-lstat.h.
28192         (Depends-on): Add stdbool.
28193         * modules/openat-tests (Depends-on): Add pathmax.
28194         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28195         (Makefile.am): Run new test.
28196
28197         remove: new module, for mingw and Solaris 9 bugs
28198         * modules/remove: New file.
28199         * lib/remove.c: Likewise.
28200         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28202         * modules/stdio (Makefile.am): Use them.
28203         * lib/stdio.in.h (remove): Declare replacement.
28204         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28205         * doc/posix-functions/remove.texi (remove): Likewise.
28206         * modules/remove-tests: New test.
28207         * tests/test-remove.c: Likewise.
28208
28209         unlink: new module, for Solaris 9 bug
28210         * modules/unlink: New file.
28211         * lib/unlink.c: Likewise.
28212         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28214         * modules/unistd (Makefile.am): Use them.
28215         * lib/unistd.in.h (stat): Declare replacement.
28216         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28217         * doc/posix-functions/unlink.texi (unlink): Likewise.
28218         * modules/unlink-tests: New test.
28219         * tests/test-unlink.c: Likewise.
28220
28221         lstat: fix Solaris 9 bug
28222         * lib/lstat.c (lstat): Also check for trailing slash on
28223         non-symlink, non-directories.  Use stat module to simplify logic.
28224         * doc/posix-functions/lstat.texi (lstat): Document it.
28225         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28226         (configure.ac): Check for symlink.
28227         * tests/test-lstat.c (main): Add more tests.
28228
28229         stat: add as dependency to other modules
28230         * modules/chown (Depends-on): Add stat.
28231         * modules/euidaccess (Depends-on): Likewise.
28232         * modules/fchdir (Depends-on): Likewise.
28233         * modules/isdir (Depends-on): Likewise.
28234         * modules/link (Depends-on): Likewise.
28235         * modules/lstat (Depends-on): Likewise.
28236         * modules/mkdir-p (Depends-on): Likewise.
28237         * modules/modechange (Depends-on): Likewise.
28238         * modules/open (Depends-on): Likewise.
28239         * modules/readlink (Depends-on): Likewise.
28240         * modules/same (Depends-on): Likewise.
28241
28242         stat: fix Solaris 9 bug
28243         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28244         slash.
28245         * lib/stat.c (rpl_stat): Work around it.
28246         * doc/posix-functions/stat.texi (stat): Update documentation.
28247
28248         stat: new module, for mingw bug
28249         * modules/stat: New file.
28250         * lib/stat.c: Likewise.
28251         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28253         * modules/sys_stat (Makefile.am): Use them.
28254         * lib/sys_stat.in.h (stat): Declare replacement.
28255         * lib/openat.c (fstatat): Deal with lstat and stat being function
28256         macros.
28257         * modules/openat (Depends-on): Add inline.
28258         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28259         * doc/posix-functions/stat.texi (stat): Likewise.
28260         * modules/stat-tests: New test.
28261         * tests/test-stat.c: Likewise.
28262
28263 2009-09-19  Jim Meyering  <meyering@redhat.com>
28264
28265         syntax-check: detect unnecessary inclusion of canonicalize.h
28266         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28267
28268 2009-09-19  Eric Blake  <ebb9@byu.net>
28269
28270         canonicalize-lgpl: adjust clients to use correct header
28271         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28272         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28273         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28274         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28275         * lib/progreloc.c (includes): Likewise.
28276
28277 2009-09-19  Jim Meyering  <meyering@redhat.com>
28278
28279         test-posixtm.c: correct a comment
28280         * tests/test-posixtm.c: Correct first-line comment.
28281         Spotted by Eric Blake.
28282
28283 2009-09-16  Jim Meyering  <meyering@redhat.com>
28284
28285         posixtm-tests: make T const-correct; add a test case
28286         * tests/test-posixtm.c (T): Declare const.
28287         Add a test for -(2^31+1).
28288         Remove useless can-succeed-only-in-2002 test.
28289
28290         posixtm-tests: adjust the sole failing test
28291         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28292         expected output matches what mktime now produces.  Cross-checked via
28293         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28294
28295         posixtm: move #ifdef'd tests into a new module
28296         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28297         * tests/test-posixtm.c: ... this new file.
28298         * modules/posixtm-tests: New module.
28299
28300 2009-09-19  Eric Blake  <ebb9@byu.net>
28301
28302         openat: simplify use of at-func.c
28303         * lib/at-func.c (includes): Include prerequisites here, to
28304         simplify requirements on client files.
28305         * lib/openat-priv.h: Add double-inclusion guard.
28306         * lib/faccessat.c (includes): Simplify.
28307         * lib/fchmodat.c (includes): Likewise.
28308         * lib/fchownat.c (includes): Likewise.
28309         * lib/mkdirat.c (includes): Likewise.
28310         * lib/mkfifoat.c (includes): Likewise.
28311         * lib/symlinkat.c (includes): Likewise.
28312
28313         openat: allow return of fd 0
28314         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28315         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28316         unistd-safer.
28317         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28318         <fcntl.h>; this module does not leak fds.
28319         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28320         must be allowed to return 0, leaving openat_safer to add the
28321         safety.
28322         (openat_permissive): Avoid writing to just-opened fd 2 if
28323         restoring the current directory fails.
28324         * lib/openat-die.c (openat_restore_fail): Add comment.
28325         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28326         (save_cwd): Guarantee safe fd, but without use of open_safer.
28327         * tests/test-openat.c: New test.
28328         * modules/openat-tests (Files, Makefile.am): Distribute and build
28329         new file.
28330
28331         relocatable-prog-wrapper: fix build
28332         * modules/relocatable-prog-wrapper (Files): Update name of
28333         canonicalize m4 file, broken on 2009-09-17.
28334         Reported by emad hajjar <aleppos@hotmail.com>.
28335
28336 2009-09-19  Bruno Haible  <bruno@clisp.org>
28337
28338         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28339         * lib/safe-alloc.c: Likewise.
28340         Reported by Ian Beckwith <ianb@erislabs.net>.
28341
28342 2009-09-18  Bruno Haible  <bruno@clisp.org>
28343
28344         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28345         Reported by <erobles@sensacd.com.mx>.
28346
28347 2009-09-17  Eric Blake  <ebb9@byu.net>
28348
28349         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28350         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28351         slashes when checking if last component is missing.
28352         * tests/test-canonicalize.c (main): Test this.
28353
28354         canonicalize, canonicalize-lgpl: honor // if distinct from /
28355         * modules/canonicalize (Files): Add double-slash-root.m4.
28356         * modules/canonicalize-lgpl (Files): Likewise.
28357         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28358         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28359         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28360         fallback definition.
28361         (canonicalize_filename_mode): Use it to protect //.
28362         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28363         (__realpath): Likewise.
28364         * tests/test-canonicalize.c (main): Test this.
28365         * tests/test-canonicalize-lgpl.c (main): Likewise.
28366         * modules/canonicalize-tests (Depends-on): Add same-inode.
28367         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28368
28369         canonicalize-lgpl: fix glibc bug with trailing slash
28370         * m4/canonicalize-lgpl.m4: Move contents...
28371         * m4/canonicalize.m4: ...here.
28372         (gl_CANONICALIZE_LGPL): Factor realpath check...
28373         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28374         glibc 2.3.5 bug, fixed 2005-04-27.
28375         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28376         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28377         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28378         * modules/canonicalize-lgpl (Files): Manage file rename.
28379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28380         * modules/stdlib (Makefile.am): Substitute witness.
28381         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28382         is needed.
28383         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28384         replacement is required.
28385         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28386         * doc/glibc-functions/canonicalize_file_name.texi
28387         (canonicalize_file_name): Document this.
28388         * doc/posix-functions/realpath.texi (realpath): Likewise.
28389
28390         canonicalize-lgpl: reject non-directory with trailing slash
28391         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28392         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28393         catches failures in glibc 2.3.5.
28394         * tests/test-canonicalize.c (main): Likewise.
28395
28396         canonicalize-lgpl: use native realpath if it works
28397         * lib/canonicalize-lgpl.c (realpath): Guard with
28398         FUNC_REALPATH_WORKS.
28399         * lib/stdlib.in.h (realpath): Make declaration optional based on
28400         HAVE_REALPATH.
28401         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28402         native realpath works.
28403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28404         * modules/stdlib (Makefile.am): Substitute witness.
28405
28406         canonicalize, canonicalize-lgpl: use <stdlib.h>
28407         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28408         (Include): Mention <stdlib.h>.
28409         (configure.ac): Mention functions we provide.
28410         * modules/canonicalize (configure.ac): Likewise.
28411         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28412         realpath if canonicalize_file_name is missing.
28413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28414         * modules/stdlib (Makefile.am): Substitute witnesses.
28415         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28416         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28417         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28418         * NEWS: Document this.
28419         * doc/glibc-functions/canonicalize_file_name.texi
28420         (canonicalize_file_name): Likewise.
28421         * doc/posix-functions/realpath.texi (realpath): Likewise.
28422         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28423
28424         test-canonicalize: consolidate into single C program
28425         * tests/test-canonicalize.sh: Delete; move setup into...
28426         * tests/test-canonicalize.c (main): ...the program, making it
28427         easier to run in debugger.  Add some tests.
28428         * modules/canonicalize-tests (Files): Remove unused file.
28429         (Depends-on): Add progname.
28430         (configure.ac, Makefile.am): Simplify.
28431
28432         test-canonicalize-lgpl: consolidate into single C program
28433         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28434         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28435         easier to run in debugger.  Add some tests.
28436         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28437         (configure.ac, Makefile.am): Simplify.
28438
28439         canonicalize: avoid resolvepath
28440         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28441         unnecessary checks.
28442         * lib/canonicalize.c (includes): Simplify.
28443         (canonicalize_file_name): Drop resolvepath implementation.
28444         * modules/canonicalize (Depends-on): Drop filenamecat.
28445
28446         canonicalize: don't lose errno
28447         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28448         over calls to free.
28449
28450         canonicalize: simplify errno handling
28451         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28452         assignment.
28453
28454         canonicalize, canonicalize-lgpl: update module dependencies
28455         * modules/canonicalize (Depends-on): Add extensions, lstat,
28456         pathmax, stdlib.
28457         (Files): Drop pathmax.h.
28458         (configure.ac): Adjust macro name.
28459         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28460         lstat, stdlib, sys_stat.
28461         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28462         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28463         extensions.
28464         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28465         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28466         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28467         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28468         declaration, if available.
28469         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28470         we can rely on the readlink module.
28471         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28472         (includes): Use <unistd.h> unconditionally.
28473
28474 2009-09-17  Eric Blake  <ebb9@byu.net>
28475
28476         maint: make Include sections of modules consistent
28477         * modules/alloca: Use only header name; no need to list #include.
28478         * modules/alloca-opt: Likewise.
28479         * modules/arpa_inet: Likewise.
28480         * modules/canon-host: Likewise.
28481         * modules/configmake: Likewise.
28482         * modules/dirent: Likewise.
28483         * modules/eealloc: Likewise.
28484         * modules/environ: Likewise.
28485         * modules/fchdir: Likewise.
28486         * modules/fcntl: Likewise.
28487         * modules/fcntl-h: Likewise.
28488         * modules/gethrxtime: Likewise.
28489         * modules/gettime: Likewise.
28490         * modules/ignore-value: Likewise.
28491         * modules/inet_ntop: Likewise.
28492         * modules/inet_pton: Likewise.
28493         * modules/inttypes: Likewise.
28494         * modules/isnand-nolibm: Likewise.
28495         * modules/isnanf-nolibm: Likewise.
28496         * modules/mbchar: Likewise.
28497         * modules/mbfile: Likewise.
28498         * modules/mbiter: Likewise.
28499         * modules/mbuiter: Likewise.
28500         * modules/netdb: Likewise.
28501         * modules/netinet_in: Likewise.
28502         * modules/nproc: Likewise.
28503         * modules/pagealign_alloc: Likewise.
28504         * modules/poll: Likewise.
28505         * modules/printf-frexp: Likewise.
28506         * modules/pthread: Likewise.
28507         * modules/putenv: Likewise.
28508         * modules/random_r: Likewise.
28509         * modules/relocatable-prog: Likewise.
28510         * modules/search: Likewise.
28511         * modules/select: Likewise.
28512         * modules/selinux-h: Likewise.
28513         * modules/settime: Likewise.
28514         * modules/signal: Likewise.
28515         * modules/size_max: Likewise.
28516         * modules/socklen: Likewise.
28517         * modules/ssize_t: Likewise.
28518         * modules/stdarg: Likewise.
28519         * modules/stdbool: Likewise.
28520         * modules/stddef: Likewise.
28521         * modules/stdint: Likewise.
28522         * modules/stdio: Likewise.
28523         * modules/stdlib: Likewise.
28524         * modules/string: Likewise.
28525         * modules/strings: Likewise.
28526         * modules/sys_file: Likewise.
28527         * modules/sys_ioctl: Likewise.
28528         * modules/sys_select: Likewise.
28529         * modules/sys_socket: Likewise.
28530         * modules/sys_stat: Likewise.
28531         * modules/sys_time: Likewise.
28532         * modules/sys_times: Likewise.
28533         * modules/sys_utsname: Likewise.
28534         * modules/sys_wait: Likewise.
28535         * modules/sysexits: Likewise.
28536         * modules/time: Likewise.
28537         * modules/times: Likewise.
28538         * modules/tmpfile: Likewise.
28539         * modules/trim: Likewise.
28540         * modules/unistd: Likewise.
28541         * modules/wchar: Likewise.
28542         * modules/wctype: Likewise.
28543
28544 2009-09-17  Bruno Haible  <bruno@clisp.org>
28545
28546         Make getdate.y compile on QNX and NetBSD 5 / i386.
28547         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28548         TIME_T_FITS_IN_LONG_INT.
28549         * lib/getdate.y (long_time_t): New type.
28550         (relative_time): Change type of 'seconds' field to long_time_t.
28551         (get_date): Update types of local variables. Check against overflow
28552         during conversion from long_time_t to time_t.
28553         Reported by Matt Kraai <kraai@ftbfs.org>
28554         and Hasso Tepper <hasso@netbsd.org>.
28555
28556 2009-09-17  Bruno Haible  <bruno@clisp.org>
28557
28558         * modules/COPYING: Update copyright years.
28559         * modules/README: Likeiwse.
28560         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28561         Reported by Ian Beckwith <ianb@erislabs.net>.
28562
28563 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28564
28565         * users.txt: Update references for gnuit package.
28566
28567 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28568
28569         * m4/getdelim.m4: Fix typo in copyright line.
28570
28571 2009-09-17  Bruno Haible  <bruno@clisp.org>
28572
28573         * lib/atoll.c: Use the standard header with GPL copyright.
28574         * lib/argz.in.h: Likewise.
28575         * lib/glob.c: Likewise.
28576         * lib/glob-libc.h: Likewise.
28577         * lib/random_r.c: Likewise.
28578         * lib/siglist.h: Likewise.
28579         * lib/strsignal.c: Likewise.
28580         Reported by Ian Beckwith <ianb@erislabs.net>.
28581
28582 2009-09-17  Eric Blake  <ebb9@byu.net>
28583
28584         rmdir: ensure correct dependency order
28585         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28586
28587 2009-09-17  Bruno Haible  <bruno@clisp.org>
28588
28589         Disable assertion that fails on NetBSD 5 / i386.
28590         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28591         Reported by Sam Steingold <sds@gnu.org>
28592         and Hasso Tepper <hasso@netbsd.org>.
28593
28594 2009-09-16  Eric Blake  <ebb9@byu.net>
28595
28596         unlinkdir: port to mingw
28597         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28598         on which no one can unlink a directory.
28599
28600         stdlib: sort witness names
28601         * modules/stdlib (Makefile.am): Sort replacements.
28602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28603         * lib/stdlib.in.h: Likewise.
28604
28605         parse-duration-tests: avoid link failure
28606         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28607         LIBINTL.
28608         Reported by Tom G. Christensen.
28609
28610         openat-tests: ensure unlinkat behaves like rmdir
28611         * tests/test-rmdir.c (main): Factor guts...
28612         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28613         * modules/rmdir-tests (Files): Ship new file.
28614         * modules/openat-tests: New test.
28615         * tests/test-unlinkat.c: Likewise.
28616
28617         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28618         * modules/rmdir-errno (Status, Notice): Now obsolete.
28619
28620         rmdir: work around cygwin 1.5.x and mingw bugs
28621         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28622         * lib/rmdir.c (rmdir): Work around it.
28623         * modules/rmdir (Status, Notice): No longer obsolete.
28624         (Files): Add dos.m4.
28625         (Depends-on): Add unistd.
28626         (configure.ac): Set witnesses.
28627         (License): Relax to LGPLv2+.
28628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28629         * modules/unistd (Makefile.am): Substitute witnesses.
28630         * lib/unistd.in.h (rmdir): Declare replacement.
28631         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28632         * modules/rmdir-tests: New tests.
28633         * tests/test-rmdir.c: Likewise.
28634
28635 2009-09-15  Eric Blake  <ebb9@byu.net>
28636
28637         fchdir: improve use of replacement functions
28638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28639         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28640         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28641         REPLACE_CLOSEDIR.
28642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28643         * modules/sys_stat (Makefile.am): Substitute correct witness.
28644         * modules/dirent (Makefile.am): Likewise.
28645         * modules/unistd (Makefile.am): Likewise.
28646         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28647         * lib/unistd.in.h (dup): Likewise.
28648         * lib/sys_stat.in.h (fstat): Likewise.
28649
28650         maint: ignore gnulib-tool temp files
28651         * .gitignore: Ignore files created during gnulib-tool --test.
28652
28653 2009-09-13  Jim Meyering  <meyering@redhat.com>
28654
28655         posixtm: don't reject a time that specify "60" as the number of seconds
28656         * lib/posixtm.c (posixtime): The code to reject invalid dates
28657         would also reject a time specified with the .60 suffix.
28658         But POSIX allows that, in order to accommodate leap seconds.
28659         So don't reject it.
28660         (main): Adjust tests accordingly.
28661         * modules/posixtm (Depends-on): Add stpcpy.
28662
28663 2009-09-11  Jim Meyering  <meyering@redhat.com>
28664
28665         announce-gen: include [$release_type] in emitted Subject:
28666         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28667         e.g., [stable] in the emitted Subject: line.
28668
28669 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28670
28671         Remove obsolete macros from several modules.
28672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28673         obsolete Autoconf macros with their modern counterparts.
28674         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28675         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28677         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28678         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28679         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28681         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28682         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28683         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28684         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28686         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28687         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28688         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28689         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28690         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28691         * m4/time_r.m4 (gl_TIME_R): Likewise.
28692         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28693         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28694         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28695
28696         Fix copyright header in build-aux scripts.
28697         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28698         recommendation.
28699         * build-aux/ncftpput-ftp: Likewise.
28700         * build-aux/update-copyright: Likewise.
28701
28702 2009-09-09  Eric Blake  <ebb9@byu.net>
28703
28704         test-link: allow Linux choice of errno
28705         * tests/test-link.c (main): Relax test for alternate error.
28706
28707         strndup: fix improper m4 caching
28708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28709         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28710         (gl_PREREQ_STRNDUP): Delete.
28711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28712         * modules/string (Makefile.am): Substitute it.
28713         * lib/string.in.h (strndup): Modernize prototype.
28714
28715         getcwd: port to mingw
28716         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28717         different from the POSIX assumptions made throughout the getcwd
28718         module; fortunately, the mingw getcwd does not need replacement.
28719         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28720         * modules/getcwd-tests: New test.
28721         * tests/test-getcwd.c: Likewise.
28722
28723         link: fix platform bugs
28724         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28725         * lib/link.c (link): Work around them.  Fix related mingw bug.
28726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28727         * modules/unistd (Makefile.am): Substitute it.
28728         * lib/unistd.in.h (link): Declare replacement.
28729         * doc/posix-functions/link.texi (link): Document this.
28730         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28731
28732         test-link: consolidate into single C program, test more cases
28733         * tests/test-link.sh: Delete.
28734         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28735         at least Cygwin and Solaris.
28736         * modules/link-tests (Files): Remove unused file.
28737         (Depends-on): Add errno, sys_stat.
28738         (Makefile.am): Simplify.
28739
28740 2009-09-08  Bruno Haible  <bruno@clisp.org>
28741
28742         Work around towlower, towupper bug on mingw.
28743         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28744         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28745         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28746         * doc/posix-functions/towupper.texi: Likewise.
28747         Reported by Eric Blake.
28748
28749 2009-09-08  Jim Meyering  <meyering@redhat.com>
28750
28751         build: don't try to run autoheader if we don't use it
28752         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28753         is not used in configure.ac.
28754
28755 2009-09-08  Eric Blake  <ebb9@byu.net>
28756
28757         euidaccess: fix compilation error
28758         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28759
28760         rawmemchr: relax license
28761         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28762         okay.
28763         Reported by Jim Meyering.
28764
28765         mkfifoat: new module
28766         * modules/mkfifoat: New file.
28767         * lib/mkfifoat.c: Likewise.
28768         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28770         * modules/sys_stat (Makefile.am): Use them.
28771         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28772         * MODULES.html.sh (File system functions): Mention module.
28773         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28774         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28775         * modules/mkfifoat-tests: New test.
28776         * tests/test-mkfifoat.c: Likewise.
28777
28778         strchrnul: relax license
28779         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28780         okay.
28781         Reported by Jim Meyering.
28782
28783 2009-09-08  Eric Blake  <ebb9@byu.net>
28784
28785         fstatat: fix compilation on Solaris
28786         * lib/fstatat.c (includes): Add fcntl.h.
28787         Reported by Pádraig Brady.
28788
28789 2009-09-07  Eric Blake  <ebb9@byu.net>
28790
28791         rename: modernize replacement
28792         * modules/rename (Depends-on): Add stdio.
28793         (configure.ac): Declare witness.
28794         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28795         stdio take care of replacement.
28796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28797         * modules/stdio (Makefile.am): Substitute them.
28798         * lib/stdio.in.h (rename): Declare replacement.
28799         * lib/rename.c (includes): Allow cross-compilation to non-windows
28800         machines.
28801         * doc/posix-functions/rename.texi (rename): Improve
28802         documentation.
28803
28804         stdio: sort witness names
28805         * modules/stdio (Makefile.am): Sort replacements.
28806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28807         * lib/stdio.in.h: Likewise.
28808
28809         getcwd: minor cleanups
28810         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28811         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28812
28813         openat: provide more convenience names
28814         * modules/faccessat (configure.ac): Add C witness.
28815         * lib/unistd.in.h (readlinkat): Fix typo.
28816         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28817         convenience wrappers.
28818         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28819         wrappers in syntax checks.
28820
28821 2009-09-06  Eric Blake  <ebb9@byu.net>
28822
28823         doc: fix comments in recent patches
28824         * lib/faccessat.c: Mention correct function.
28825         * lib/fchmodat.c: Likewise.
28826         * lib/fchownat.c: Likewise.
28827         * lib/symlinkat.c: Likewise.
28828         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28829         constants.
28830
28831         faccessat, symlinkat: continue cleanup of previous patch
28832         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28833         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28834         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28836         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28837         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28838         set.
28839
28840 2009-09-06  Bruno Haible  <bruno@clisp.org>
28841
28842         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28843         (fstatat): Declare if GNULIB_FSTATAT is set.
28844         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28845         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28846         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28847         * modules/fcntl-h (Files): Remove m4/openat.m4.
28848         * modules/sys_stat (Files): Remove m4/openat.m4.
28849         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28850         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28851         * modules/unistd (Files): Remove m4/openat.m4.
28852         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28853         GNULIB_OPENAT.
28854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28855         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28857         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28858         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28859         gl_OPENAT_DEFAULTS.
28860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28861         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28862         Don't require gl_OPENAT_DEFAULTS.
28863         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28864         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28865         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28866         (gl_OPENAT_DEFAULTS): Remove macro.
28867
28868 2009-09-06  Bruno Haible  <bruno@clisp.org>
28869
28870         * modules/openat (configure.ac): Remove unneeded witness.
28871
28872 2009-09-06  Bruno Haible  <bruno@clisp.org>
28873
28874         Set errno to ENOSYS when a function is entirely unsupported.
28875         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28876         EOPNOTSUPP.
28877         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28878         * modules/chown (Depends-on): Remove errno.
28879
28880 2009-09-06  Bruno Haible  <bruno@clisp.org>
28881
28882         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28883
28884 2009-09-06  Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28887
28888 2009-09-06  Ben Pfaff  <blp@gnu.org>
28889             Bruno Haible  <bruno@clisp.org>
28890
28891         Work around a glibc bug in strtok_r.
28892         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28893         Undefine if UNDEFINE_STRTOK_R is set.
28894         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28896         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28897         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28898         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28899         UNDEFINE_STRTOK_R.
28900         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28901
28902 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28903
28904         exclude: minor fix
28905         * lib/exclude.c: Include wctype.h
28906
28907 2009-09-06  Akim Demaille  <demaille@gostai.com>
28908
28909         bootstrap: improve error message
28910         * build-aux/bootstrap (find_tool): Upon failure, report the list
28911         of candidates.
28912         Honor the initial value of the envvar.
28913
28914 2009-09-05  Eric Blake  <ebb9@byu.net>
28915
28916         symlinkat: new module
28917         * modules/symlinkat: New file.
28918         * lib/symlinkat.c: Likewise.
28919         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28921         * modules/unistd (Makefile.am): Use them.
28922         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28923         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28924         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28925         * MODULES.html.sh (File system functions): Mention module.
28926         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28927         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28928         * modules/symlinkat-tests: New test.
28929         * tests/test-symlinkat.c: Likewise.
28930
28931         test-openat-safer: add more checks
28932         * tests/test-openat-safer.c (main): Check more code paths.
28933
28934 2009-09-05  Jim Meyering  <meyering@redhat.com>
28935
28936         syntax-check: detect unnecessary inclusion of openat.h
28937         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28938
28939 2009-09-05  Bruno Haible  <bruno@clisp.org>
28940
28941         Support towlower, towupper.
28942         * doc/posix-functions/towlower.texi: Mention module wctype.
28943         * doc/posix-functions/towupper.texi: Likewise.
28944         * lib/wctype.in.h (towlower, towupper): New functions.
28945         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28946         (ASSERT): New macro.
28947         (e): New variable.
28948         (main): Test also towlower, towupper. Test WEOF argument.
28949         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28950
28951 2009-09-05  Bruno Haible  <bruno@clisp.org>
28952
28953         Fix conversion behaviour when the input is invalid.
28954         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28955         mark occurring in first pass of indirect conversion.
28956         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28957         input.
28958         Found by clang's static analyzer.
28959
28960 2009-09-05  Bruno Haible  <bruno@clisp.org>
28961
28962         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28963         where direct conversion is possible.
28964
28965 2009-09-04  Eric Blake  <ebb9@byu.net>
28966
28967         openat: fail with ENOENT on empty name
28968         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28969         buffer.
28970
28971         link-follow: fix logic bug in prior patch
28972         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28973         reversed sense of yes and no in prior patch.  Avoid confusing
28974         compilation failure with desired semantics.
28975
28976         link-follow: accomodate mingw and cross-compilation
28977         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28978         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28979         cross-compilation results to -1, to make linkat easier to
28980         implement when cross-compiling.  Trivially support mingw.
28981         * modules/link-follow (configure.ac): Call new name.
28982         * NEWS: Mention this.
28983
28984 2009-09-03  Eric Blake  <ebb9@byu.net>
28985
28986         faccessat: compile replacement
28987         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28988         needed.
28989
28990         fts: fix compilation error
28991         * lib/fts.c (includes): Re-add "openat.h", for
28992         openat_needs_fchdir.
28993
28994         faccessat: new module
28995         * modules/faccessat: New file.
28996         * lib/faccessat.c: Likewise.
28997         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28999         * modules/unistd (Makefile.am): Use it.
29000         * lib/unistd.in.h (faccessat): Declare it.
29001         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29002         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29003         * MODULES.html.sh (File system functions): Mention it.
29004         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29005         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29006
29007         euidaccess: prefer POSIX over non-standard implementation
29008         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29009         * lib/euidaccess.c (euidaccess): Use it if available.
29010
29011         openat: make template easier to use
29012         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29013         AT_FUNC_F2 to be undefined.
29014         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29015         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29016         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29017         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29018         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29019         Likewise.
29020         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29021         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29022         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29023         Likewise.
29024
29025         openat: declare in POSIX headers
29026         * NEWS: Mention this.
29027         * modules/openat (configure.ac): Declare witnesses.
29028         (Depends-on): Add fcntl-h, sys_stat, unistd.
29029         (Include): Mention correct headers.
29030         * modules/fcntl-h (Depends-on): Add link-warning.
29031         (Files): Add openat.m4.
29032         (Makefile.am): Substitute witnesses.
29033         * modules/sys_stat (Files, Makefile.am): Likewise.
29034         * modules/unistd (Files, Makefile.am): Likewise.
29035         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29036         (gl_OPENAT_DEFAULTS): New macro.
29037         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29039         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29040         (SYS_STAT_H): Remove unused variable.
29041         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29042         * lib/fcntl--.h (includes): Remove unneeded header.
29043         * lib/openat-safer.c (includes): Likewise.
29044         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29045         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29046         appropriate headers.
29047         (__OPENAT_PREFIX): Delete.
29048         * lib/fcntl.in.h (openat): Provide declaration.
29049         (AT_FDCWD): Fix Solaris bug.
29050         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29051         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29052         * lib/fchmodat.c (includes):  Adjust to find declaration.
29053         * lib/fchownat.c (includes): Likewise.
29054         * lib/mkdirat.c (includes): Likewise.
29055         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29056         still visible.
29057
29058 2009-09-02  Eric Blake  <ebb9@byu.net>
29059
29060         errno: use consistently
29061         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29062         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29063         * lib/canonicalize.c (ELOOP): Likewise.
29064         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29065         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29066         * lib/lchown.c (EOPNOTSUPP): Likewise.
29067         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29068         * lib/savewd.c (ESTALE): Likewise.
29069         * lib/settime.c (ENOSYS): Likewise.
29070         * lib/utimens.c (ENOSYS): Likewise.
29071         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29072         * lib/chdir-safer.c (ELOOP): Likewise.
29073         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29074         * modules/c-stack (Depends-on): Add errno.
29075         * modules/canonicalize (Depends-on): Likewise.
29076         * modules/chdir-safer (Depends-on): Likewise.
29077         * modules/fdopendir (Depends-on): Likewise.
29078         * modules/inet_ntop (Depends-on): Likewise.
29079         * modules/inet_pton (Depends-on): Likewise.
29080         * modules/lchown (Depends-on): Likewise.
29081         * modules/openat (Depends-on): Likewise.
29082         * modules/savewd (Depends-on): Likewise.
29083         * modules/settime (Depends-on): Likewise.
29084         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29085
29086         fts: avoid leaking fds
29087         * modules/fts (Depends-on): Add cloexec.
29088         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29089         flag.
29090
29091         fts: make directory fds more robust
29092         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29093         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29094
29095         backupfile, chdir-long, fts, savedir: make safer
29096         * lib/backupfile.c (includes): Use "dirent--.h", since
29097         numbered_backup can write to stderr during readdir.
29098         * lib/savedir.c (includes): Likewise.
29099         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29100         emulation can write to stderr on failure.
29101         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29102         * lib/getcwd.c: Document why opendir_safer is unused.
29103         * lib/glob.c: Likewise.
29104         * lib/scandir.c: Likewise.
29105         * lib/openat-proc.c: Likewise, for open_safer.
29106         * modules/backupfile (Depends-on): Add dirent-safer.
29107         * modules/savedir (Depends-on): Likewise.
29108         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29109         * modules/chdir-long (Depends-on): Add openat-safer.
29110
29111         openat-safer: new module
29112         * modules/openat-safer: New file.
29113         * lib/openat-safer.c: Likewise.
29114         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29115         * lib/fcntl-safer.h (openat_safer): Declare.
29116         * lib/fcntl--.h (openat): Override.
29117         * MODULES.html.sh (File descriptor based I/O): Mention it.
29118         * lib/openat.h: Add double-inclusion guards.
29119         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29120         "fcntl--.h", so we can implement openat.
29121         * modules/openat-safer-tests: New test.
29122         * tests/test-openat-safer.c: New file.
29123
29124         dirent-safer: new module
29125         * modules/dirent-safer: New file.
29126         * lib/dirent--.h: Likewise.
29127         * lib/dirent-safer.h: Likewise.
29128         * lib/opendir-safer.c: Likewise.
29129         * m4/dirent-safer.m4: Likewise.
29130         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29131         * modules/dirent-safer-tests: New test.
29132         * tests/test-dirent-safer.c: New file.
29133         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29134
29135         fdopendir: optimize on mingw
29136         * lib/unistd.in.h (_gl_directory_name): New prototype.
29137         * lib/fchdir.c (_gl_directory_name): Implement it.
29138         (fchdir): Use it to simplify implementation.
29139         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29140         fchdir, when available, to avoid calling [f]chdir().
29141
29142         fdopendir: split into its own module
29143         * lib/openat.c (fdopendir): Move...
29144         * lib/fdopendir.c: ...into new file.
29145         * modules/fdopendir: New module.
29146         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29147         * modules/openat (Depends-on): Add fdopendir.
29148         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29149         fdopendir here.
29150         * modules/savedir (Depends-on): Only need fdopendir, not full
29151         openat.
29152         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29153         * lib/openat.h (fdopendir): Drop prototype.
29154         * lib/dirent.in.h (fdopendir): Provide prototype.
29155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29156         * modules/dirent (Makefile.am): Substitute them.
29157         * MODULES.html.sh (File system functions): Mention it.
29158         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29159         * modules/fdopendir-tests: New file.
29160         * tests/test-fdopendir.c: Likewise.
29161
29162         fchdir: use more consistent macro convention
29163         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29164         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29165         REPLACE_FCHDIR, rather than relying on config.h macros.
29166         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29167         inside a single make-time REPLACE_FCHDIR block, rather than using
29168         the config.h FCHDIR_REPLACEMENT.
29169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29170         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29171         Manage fstat replacement.
29172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29173         REPLACE_FCHDIR.
29174         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29175         (Makefile.am): Substitute REPLACE_FCHDIR.
29176         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29177         FCHDIR_REPLACEMENT.
29178         * lib/dup-safer.c (dup_safer): Likewise.
29179         * lib/dup2.c (rpl_dup2): Likewise.
29180         * lib/dup3.c (rpl_dup3): Likewise.
29181         * lib/open.c (rpl_open): Likewise.
29182
29183         fchdir: simplify error handling, and support dup3
29184         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29185         stdbool, malloc-posix, realloc-posix.
29186         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29187         (ensure_dirs_slot): Return false on allocation failure.
29188         (rpl_dup2): Delete.
29189         (_gl_register_dup): New function.
29190         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29191         (_gl_register_fd): Close fd on allocation failure.
29192         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29193         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29194         prototype.
29195         (rpl_dup2_fchdir): Delete prototype.
29196         * lib/open.c (open): Update caller.
29197         * lib/dup2.c (dup2): Track fchdir metadata.
29198         * lib/dup3.c (dup3): Likewise.
29199         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29201
29202 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29203
29204         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29205         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29206         don't pass arguments to AC_OUTPUT.
29207
29208 2009-09-02  Bruno Haible  <bruno@clisp.org>
29209
29210         * modules/mkdtemp (License): Relicense under LGPLv2+.
29211         Reported by Paolo Bonzini.
29212
29213 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29214
29215         Replace uses of obsolete autoconf macros in Jim's modules.
29216         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29217         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29218         can evoke a warning from autoconf when run with -Wobsolete
29219         enabled.  They were declared obsolete for good reasons (see
29220         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29221         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29222         should not continue using the deprecated macros.
29223         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29224         obsolete Autoconf macros with modern counterparts.
29225         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29226         * m4/dos.m4 (gl_AC_DOS): Likewise.
29227         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29229         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29230         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29231         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29232         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29233         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29234         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29235         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29236         Likewise.
29237         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29238         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29239         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29240         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29241         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29242         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29243
29244 2009-09-01  Eric Blake  <ebb9@byu.net>
29245
29246         fchdir: fix off-by-one bug in previous patch
29247         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29248         (_gl_unregister_fd): Delete useless if.
29249
29250 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29251
29252         maint.mk: sort the list of syntax-check rules
29253         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29254         easier to get a sense of progress when the rules are run sequentially
29255         and take a long time.
29256
29257 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29258
29259         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29260         * modules/netinet_in: Likewise.
29261         * modules/sys_file: Likewise.
29262         * modules/sys_ioctl: Likewise.
29263         * modules/sys_select: Likewise.
29264         * modules/sys_socket: Likewise.
29265         * modules/sys_stat: Likewise.
29266         * modules/sys_time: Likewise.
29267         * modules/sys_times: Likewise.
29268         * modules/sys_utsname: Likewise.
29269         * modules/sys_wait: Likewise.
29270
29271 2009-09-01  Jim Meyering  <meyering@redhat.com>
29272
29273         fts: help ensure that return values are not ignored
29274         * lib/fts_.h (__GNUC_PREREQ): Define.
29275         (__attribute_warn_unused_result__): Define.
29276         (fts_children, fts_close, fts_open, fts_read): Declare with
29277         __attribute_warn_unused_result__.
29278
29279         fts: fts_close now fails also when closing a dir file descriptor fails
29280         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29281         and propagate to caller, along with errno.
29282
29283         announce-gen: correct formatting in --help output
29284         * build-aux/announce-gen (usage): Move the one-line description in
29285         --help output "up", to where it belongs, just after Usage:.
29286
29287 2009-08-31  Eric Blake  <ebb9@byu.net>
29288
29289         fchdir: port to mingw
29290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29291         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29292         opened, then use a substitute.
29293         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29294         replacement.
29295         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29296         (_gl_register_fd): No need to check stat if open already filters
29297         all directories.
29298         (fchdir): Fix error condition to match POSIX.
29299         * modules/fchdir (Depends-on): Add sys_stat.
29300         * doc/posix-functions/open.texi (open): Document the limitation.
29301         * modules/fchdir-tests: New file.
29302         * tests/test-fchdir.c: Likewise.
29303
29304         canonicalize: allow cross-testing from cygwin to mingw
29305         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29306         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29307         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29308         Likewise.
29309         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29310         target does not support symlinks.
29311         * tests/test-canonicalize-lgpl.sh: Likewise.
29312
29313         chown: avoid compilation warning on mingw
29314         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29315         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29316         mingw.
29317         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29318         * modules/chown (Depends-on): Add errno.
29319
29320 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29321
29322         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29323         command.
29324
29325 2009-08-31  Jim Meyering  <meyering@redhat.com>
29326
29327         canonicalize: remove useless initialization
29328         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29329         initialization of local, "end".
29330
29331 2009-08-30  Bruno Haible  <bruno@clisp.org>
29332
29333         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29334         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29335         ENOSYS.
29336
29337 2009-08-30  Bruno Haible  <bruno@clisp.org>
29338
29339         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29340         /usr/xpg4/bin/tr when it exists.
29341         * tests/test-pipe-filter-gi1.sh: Likewise.
29342
29343 2009-08-30  Bruno Haible  <bruno@clisp.org>
29344
29345         Work around deficient /usr/bin/id program on Solaris.
29346         * tests/test-file-has-acl.sh (ID): New variable.
29347         * tests/test-set-mode-acl.sh (ID): Likewise.
29348         * tests/test-copy-acl.sh (ID): Likewise.
29349         * tests/test-copy-file.sh (ID): Likewise.
29350
29351 2009-08-30  Bruno Haible  <bruno@clisp.org>
29352
29353         New module 'xstriconveh'.
29354         * lib/xstriconveh.h: New file.
29355         * lib/xstriconveh.c: New file.
29356         * modules/xstriconveh: New file.
29357
29358 2009-08-30  Bruno Haible  <bruno@clisp.org>
29359
29360         Make it easier to use mem_cd_iconveh.
29361         * lib/striconveh.h (iconveh_t): New type.
29362         (iconveh_open, iconveh_close): New declarations.
29363         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29364         with a single 'const iconveh_t *' argument.
29365         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29366         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29367         with a single 'const iconveh_t *' argument.
29368         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29369         * tests/test-striconveh.c (main): Update.
29370         * NEWS: Mention the change.
29371
29372 2009-08-30  Bruno Haible  <bruno@clisp.org>
29373
29374         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29375         problem.
29376
29377 2009-08-30  Bruno Haible  <bruno@clisp.org>
29378
29379         Work around iconv_open problem on Solaris.
29380         * lib/iconv_open-solaris.gperf: New file.
29381         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29382         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29383         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29384         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29385         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29386         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29387
29388 2009-08-29  Jim Meyering  <meyering@redhat.com>
29389
29390         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29391         * top/maint.mk (cvs-check): Remove target; it was just an alias
29392         to the better-named vc-diff-check.
29393         (maintainer-distcheck): Remove rule.  It was used only from
29394         the (alpha/beta/major) target, and all of its commands but one
29395         were coreutils-specific.
29396         (vc-dist): Remove rule.
29397         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29398         Run vc-diff-check, not vc-dist.
29399         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29400
29401 2009-08-27  Bruno Haible  <bruno@clisp.org>
29402
29403         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29404         of 0.
29405
29406 2009-08-27  Bruno Haible  <bruno@clisp.org>
29407
29408         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29409         compilers.
29410         * doc/func.texi: Document the SunPRO C bug.
29411
29412 2009-08-27  Bruno Haible  <bruno@clisp.org>
29413
29414         Fix link error on Solaris.
29415         * tests/test-parse-duration.c (xstrdup): Remove function.
29416
29417 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29418
29419         ignore-value: handle pointer types, too
29420         * lib/ignore-value.h (__attribute__): Remove definition.
29421         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29422         of a more concise and more-often effective "(void) i" statement.
29423         (ignore_ptr): New function to suppress warnings from functions that
29424         return pointers, and to make it explicit that one function doesn't
29425         handle all cases.
29426
29427 2009-08-25  Bruno Haible  <bruno@clisp.org>
29428
29429         dup2: work around a Linux bug.
29430         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29431         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29432         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29433         Reported by Simon Josefsson.
29434
29435 2009-08-25  Jim Meyering  <meyering@redhat.com>
29436
29437         libguestfs uses gnulib
29438         * users.txt: Add libguestfs.
29439
29440 2009-08-24  Eric Blake  <ebb9@byu.net>
29441
29442         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29443         * lib/pipe2.c (includes): Add binary-io.h.
29444         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29445
29446 2009-08-24  Bruno Haible  <bruno@clisp.org>
29447
29448         Tolerate declared but missing accept4 syscall.
29449         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29450         available.
29451         * lib/sys_socket.in.h (accept4): If the function is already present,
29452         override it.
29453         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29454         * modules/accept4 (Makefile.am): Compile accept4.c always.
29455         Reported by Paolo Bonzini and Eric Blake.
29456
29457 2009-08-23  Bruno Haible  <bruno@clisp.org>
29458
29459         New module 'accept4'.
29460         * lib/sys_socket.in.h (accept4): New declaration.
29461         * lib/accept4.c: New file.
29462         * m4/accept4.m4: New file.
29463         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29464         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29465         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29466         HAVE_ACCEPT4.
29467         * modules/accept4: New file.
29468         * doc/glibc-functions/accept4.texi: Mention the new module.
29469
29470 2009-08-24  Jim Meyering  <meyering@redhat.com>
29471
29472         progname: also set global program_invocation_name, when possible
29473         Before this change, a libtool-enabled program that calls glibc's
29474         error function would report the program name as
29475         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29476         * modules/progname (configure.ac): Check for a declaration of
29477         program_invocation_name.
29478         * lib/progname.c:  Include <errno.h>.
29479         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29480         Set program_invocation_name.
29481
29482 2009-08-23  Bruno Haible  <bruno@clisp.org>
29483
29484         * lib/dup3.c: Include <string.h>.
29485
29486 2009-08-23  Bruno Haible  <bruno@clisp.org>
29487
29488         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29489         * lib/pipe2.c (pipe2): Likewise.
29490         Suggested by Eric Blake.
29491
29492 2009-08-23  Bruno Haible  <bruno@clisp.org>
29493
29494         Tolerate declared but missing dup3 syscall.
29495         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29496         * lib/unistd.in.h (dup3): If the function is already present,
29497         override it.
29498         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29499         * modules/dup3 (Makefile.am): Compile dup3.c always.
29500         Reported by Paolo Bonzini.
29501
29502 2009-08-23  Bruno Haible  <bruno@clisp.org>
29503
29504         Tolerate declared but missing pipe2 syscall.
29505         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29506         available.
29507         * lib/unistd.in.h (pipe2): If the function is already present,
29508         override it.
29509         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29510         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29511         Reported by Paolo Bonzini.
29512
29513 2009-08-23  Bruno Haible  <bruno@clisp.org>
29514
29515         * lib/pipe2.c (pipe2): Move #ifs inside function.
29516
29517 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29518
29519         quotearg: document limitations of quote_these_too
29520         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29521         those limitations are created.
29522         * lib/quotearg.h (set_char_quoting): Document that digits and
29523         letters that are special after backslash are not permitted.
29524         (quotearg_char): Cross-reference set_char_quoting documentation.
29525
29526 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29527
29528         quotearg: implement custom_quoting_style
29529         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29530         right_quote fields.
29531         (set_custom_quoting): New public function.
29532         (quotearg_buffer_restyled): Add left_quote and right_quote
29533         arguments, handle them very much like locale quoting, and update
29534         all uses.
29535         (quotearg_n_custom): New public function.
29536         (quotearg_n_custom_mem): New public function.
29537         (quotearg_custom): New public function.
29538         (quotearg_custom_mem): New public function.
29539         * lib/quotearg.h: Prototype and document new public functions.
29540         (enum quoting_style): For escape_quoting_style and
29541         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29542         ignored even though they're otherwise like c_quoting_style.
29543         Add custom_quoting_style member and document with comparison to
29544         clocale_quoting_style.
29545         * tests/test-quotearg.c (custom_quotes): New array.
29546         (custom_results): New array.
29547         (main): Extend to test custom quoting.
29548
29549 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29550
29551         quotearg: fix right quote escaping when it's in quote_these_too
29552         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29553         quote, be sure to prepend only one backslash.
29554         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29555         (main): Test it.
29556
29557 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29558
29559         quotearg-tests: test escaping of embedded locale quotes
29560         * tests/test-quotearg.c (struct result_strings): Add member for
29561         new input.
29562         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29563         (inputs): Add new input.
29564         (results_g): Add expected results.
29565         (flag_results): Likewise.
29566         (locale_results): Likewise.
29567         (compare_strings): Check those.
29568
29569 2009-08-23  Bruno Haible  <bruno@clisp.org>
29570
29571         Tests for module 'dup3'.
29572         * modules/dup3-tests: New file.
29573         * tests/test-dup3.c: New file.
29574
29575         New module 'dup3'.
29576         * lib/unistd.in.h (dup3): New declaration.
29577         * lib/dup3.c: New file.
29578         * m4/dup3.m4: New file.
29579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29580         HAVE_DUP3.
29581         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29582         * modules/dup3: New file.
29583         * doc/glibc-functions/dup3.texi: Mention the new module.
29584
29585 2009-08-23  Bruno Haible  <bruno@clisp.org>
29586
29587         Tweak the dup2 test.
29588         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29589         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29590         the test file is still empty. Fix argument order of lseek.
29591
29592 2009-08-23  Bruno Haible  <bruno@clisp.org>
29593
29594         Avoid test link errors when the modules getopt-gnu, gettext are used.
29595         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29597
29598 2009-08-23  Bruno Haible  <bruno@clisp.org>
29599
29600         Fix getdtablesize() on mingw.
29601         * lib/getdtablesize.c (getdtablesize): Implement differently.
29602         * lib/unistd.in.h (getdtablesize): Improve comment.
29603
29604 2009-08-23  Bruno Haible  <bruno@clisp.org>
29605
29606         New module 'mkostemp'.
29607         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29608         * lib/stdlib.in.h (mksotemp): New declaration.
29609         * lib/mkostemp.c: New file, from glibc with modifications.
29610         * lib/tempname.h (GT_FILE): Remove outdated comment.
29611         (gen_tempname): Add flags argument.
29612         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29613         (__GT_FILE): Map to 1.
29614         (small_open, large_open): Remove macros.
29615         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29616         * lib/mkstemp.c (mkstemp): Update.
29617         * lib/mkdtemp.c (mkdtemp): Likewise.
29618         * m4/mkostemp.m4: New file.
29619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29620         HAVE_MKOSTEMP.
29621         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29622         HAVE_MKOSTEMP.
29623         * modules/mkostemp: New file, based on modules/mkstemp.
29624         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29625         * NEWS: Mention the change.
29626
29627 2009-08-23  Bruno Haible  <bruno@clisp.org>
29628
29629         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29630         Reported by Eric Blake.
29631
29632 2009-08-23  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29635         Reported by Eric Blake.
29636
29637 2009-08-23  Bruno Haible  <bruno@clisp.org>
29638
29639         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29640         * modules/pipe2 (Depends-on): Likewise.
29641
29642 2009-08-23  Eric Blake  <ebb9@byu.net>
29643
29644         fcntl-h: add O_TTY_INIT support
29645         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29646         * tests/test-fcntl-h.c (o): Test it.
29647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29648
29649         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29650         * modules/fcntl: Move <fcntl.h> header replacement...
29651         * modules/fcntl-h: ...to new name, so as not to collide with
29652         like-named function.
29653         * tests/test-fcntl.c: Rename...
29654         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29655         * modules/fcntl-tests: Rename...
29656         * modules/fcntl-h-tests: ...to this.  Update test file name.
29657         * modules/chdir-long (Depends-on): Update clients.
29658         * modules/chdir-safer (Depends-on): Likewise.
29659         * modules/fcntl-safer (Depends-on): Likewise.
29660         * modules/fts (Depends-on): Likewise.
29661         * modules/mkancesdirs (Depends-on): Likewise.
29662         * modules/mkdir-p (Depends-on): Likewise.
29663         * modules/open (Depends-on): Likewise.
29664         * modules/savewd (Depends-on): Likewise.
29665         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29666         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29667
29668 2009-08-22  Bruno Haible  <bruno@clisp.org>
29669
29670         * modules/binary-io (License): Relicense under LGPL.
29671         * modules/pipe2 (License): Likewise.
29672
29673 2009-08-22  Bruno Haible  <bruno@clisp.org>
29674
29675         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29676         return value.
29677         * lib/pipe-filter-gi.c (filter_init): Likewise.
29678         Reported by Eric Blake.
29679
29680 2009-08-22  Bruno Haible  <bruno@clisp.org>
29681
29682         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29683         * modules/pipe (Depends-on): Add pipe2.
29684
29685 2009-08-22  Bruno Haible  <bruno@clisp.org>
29686
29687         Tests for module 'pipe2'.
29688         * modules/pipe2-tests: New file.
29689         * tests/test-pipe2.c: New file.
29690
29691         New module 'pipe2'.
29692         * lib/unistd.in.h (pipe2): New declaration.
29693         * lib/pipe2.c: New file.
29694         * m4/pipe2.m4: New file.
29695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29696         HAVE_PIPE2.
29697         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29698         * modules/pipe2: New file.
29699         * doc/glibc-functions/pipe2.texi: Mention the new module.
29700
29701 2009-08-22  Bruno Haible  <bruno@clisp.org>
29702
29703         Reference some new glibc functions.
29704         * doc/glibc-functions/accept4.texi: New file.
29705         * doc/glibc-functions/dup3.texi: New file.
29706         * doc/glibc-functions/mkostemp.texi: New file.
29707         * doc/glibc-functions/pipe2.texi: New file.
29708         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29709         (Glibc sys/socket.h): Refer to accept4.
29710         (Glibc unistd.h): Refer to dup3, pipe2.
29711         Reported by Eric Blake.
29712
29713 2009-08-22  Jim Meyering  <meyering@redhat.com>
29714             Bruno Haible  <bruno@clisp.org>
29715
29716         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29717         This makes it so packages using automake-1.11's silent-rules option
29718         can print e.g., a single "GEN    configmake.h" line, rather than
29719         the 30+ statements that perform the job.  If you want to see the
29720         actual commands, you can still run "make V=1".
29721         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29722         so that make output is abbreviated when those variables are defined
29723         appropriately.
29724         * modules/argz: Likewise.
29725         * modules/arpa_inet: Likewise.
29726         * modules/byteswap: Likewise.
29727         * modules/configmake: Likewise.
29728         * modules/dirent: Likewise.
29729         * modules/errno: Likewise.
29730         * modules/fcntl: Likewise.
29731         * modules/float: Likewise.
29732         * modules/fnmatch: Likewise.
29733         * modules/getopt-posix: Likewise.
29734         * modules/glob: Likewise.
29735         * modules/iconv_open: Likewise.
29736         * modules/inttypes: Likewise.
29737         * modules/localcharset: Likewise.
29738         * modules/locale: Likewise.
29739         * modules/math: Likewise.
29740         * modules/netdb: Likewise.
29741         * modules/netinet_in: Likewise.
29742         * modules/poll: Likewise.
29743         * modules/posix_spawnp-tests: Likewise.
29744         * modules/sched: Likewise.
29745         * modules/search: Likewise.
29746         * modules/selinux-h: Likewise.
29747         * modules/signal: Likewise.
29748         * modules/spawn: Likewise.
29749         * modules/stdarg: Likewise.
29750         * modules/stdbool: Likewise.
29751         * modules/stddef: Likewise.
29752         * modules/stdint: Likewise.
29753         * modules/stdio: Likewise.
29754         * modules/stdlib: Likewise.
29755         * modules/string: Likewise.
29756         * modules/strings: Likewise.
29757         * modules/sys_file: Likewise.
29758         * modules/sys_ioctl: Likewise.
29759         * modules/sys_select: Likewise.
29760         * modules/sys_socket: Likewise.
29761         * modules/sys_stat: Likewise.
29762         * modules/sys_time: Likewise.
29763         * modules/sys_times: Likewise.
29764         * modules/sys_utsname: Likewise.
29765         * modules/sys_wait: Likewise.
29766         * modules/sysexits: Likewise.
29767         * modules/time: Likewise.
29768         * modules/unistd: Likewise.
29769         * modules/wchar: Likewise.
29770         * modules/wctype: Likewise.
29771
29772 2009-08-22  Jim Meyering  <meyering@redhat.com>
29773
29774         announce-gen: detect write failure
29775         * build-aux/announce-gen: Add Coda at end.
29776         Remove equivalent-but-more-verbose block at top.
29777
29778 2009-08-19  Akim Demaille  <demaille@gostai.com>
29779
29780         bootstrap: --help to stdout.
29781         * bootstrap (usage): Don't send --help to stderr.
29782         Use a here doc instead of a long string.
29783
29784 2009-08-21  Eric Blake  <ebb9@byu.net>
29785
29786         test-popen-safer: split from test-popen
29787         * tests/test-popen.c (main): Move...
29788         * tests/test-popen.h: ...into new file.
29789         * tests/test-popen-safer2.c: New file.
29790         * modules/popen-tests (Files): Add test-popen.h.
29791         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29792         Suggested by Bruno Haible.
29793
29794         test-fcntl-safer: split from test-open
29795         * tests/test-open.c (main): Move...
29796         * tests/test-open.h: ...into new file.
29797         * tests/test-fcntl-safer.c: New file.
29798         * modules/open-tests (Files): Add test-open.h.
29799         * modules/fcntl-safer-tests: New file.
29800         Suggested by Bruno Haible.
29801
29802         test-fopen-safer: split from test-fopen
29803         * tests/test-fopen.c (main): Move...
29804         * tests/test-fopen.h: ...into new file.
29805         * tests/test-fopen-safer.c: New file.
29806         * modules/fopen-tests (Files): Add test-fopen.h.
29807         * modules/fopen-safer-tests: New file.
29808         Suggested by Bruno Haible.
29809
29810 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29811
29812         popen-safer: test O_CLOEXEC at run-time.
29813         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29814
29815 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29816
29817         fcntl: move more flags to the header
29818         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29819         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29820         * lib/fcntl.in.h: Do both things here.
29821
29822 2009-08-21  Jim Meyering  <meyering@redhat.com>
29823
29824         consistently remove $@-t before redirecting to it
29825         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29826         * modules/alloca-opt: Likewise.
29827         * modules/byteswap: Likewise.
29828         * modules/fnmatch: Likewise.
29829         * modules/getopt-posix: Likewise.
29830         * modules/glob: Likewise.
29831         * modules/poll: Likewise.
29832         * modules/posix_spawnp-tests: Likewise.
29833         * modules/sys_socket: Likewise.
29834         * modules/sysexits: Likewise.
29835
29836 2009-08-21  Eric Blake  <ebb9@byu.net>
29837
29838         popen: simplify access to original popen
29839         * lib/popen.c (rpl_popen): No need to worry about popen being a
29840         macro.
29841         Reported by Bruno Haible.
29842
29843 2009-08-20  Eric Blake  <ebb9@byu.net>
29844
29845         build: avoid some compiler warnings
29846         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29847         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29848         type.
29849         (new_exclude_segment, excluded_file_pattern_p)
29850         (excluded_file_name_p): Reduce scope.
29851         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29852         old-style declaration.
29853
29854 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29855
29856         * tests/test-exclude1.sh: Handle Windows EOL.
29857         * tests/test-exclude2.sh: Likewise.
29858         * tests/test-exclude3.sh: Likewise.
29859         * tests/test-exclude4.sh: Likewise.
29860         * tests/test-exclude5.sh: Likewise.
29861         * tests/test-exclude6.sh: Likewise.
29862         * tests/test-exclude7.sh: Likewise.
29863
29864 2009-08-19  Akim Demaille  <demaille@gostai.com>
29865
29866         bootstrap: find sha1sum when named gsha1sum.
29867         * bootstrap (find_tool): New.
29868         ($SHA1SUM): New.
29869         Use it.
29870
29871 2009-08-20  Jim Meyering  <meyering@redhat.com>
29872
29873         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29874         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29875         expression that converts "." in a file name to "\." in the resulting
29876         regexp.  Start with a dummy statement, so that prior shell variable
29877         definitions are expanded portably.  Reported by Simon Josefsson.
29878
29879 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29880
29881         Fix polling for writeability of a screen buffer.
29882         * lib/poll.c: Distinguish input and screen buffers for the
29883         Win32 implementation.
29884         * lib/select.c: Likewise.
29885
29886 2009-08-19  Eric Blake  <ebb9@byu.net>
29887
29888         popen-safer: prevent popen from clobbering std descriptors
29889         * modules/popen-safer: New file.
29890         * lib/popen-safer.c: Likewise.
29891         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29892         * lib/stdio--.h (popen): Provide override.
29893         * lib/stdio-safer.h (popen_safer): Provide declaration.
29894         * tests/test-popen.c (includes): Partially test this.
29895         * modules/popen-safer-tests: New file, for more tests.
29896         * tests/test-popen-safer.c: Likewise.
29897         * MODULES.html.sh (file stream based Input/Output): Mention it.
29898
29899         tests: test some of the *-safer modules
29900         * modules/fopen-safer (Depends-on): Add fopen.
29901         * modules/fcntl-safer (Depends-on): Add fcntl.
29902         * modules/stdlib-safer (Depends-on): Add stdlib.
29903         (configure.ac): Set indicator.
29904         * modules/unistd-safer (configure.ac): Likewise.
29905         * modules/tmpfile-safer (configure.ac): Likewise.
29906         (Depends-on): Add tmpfile.
29907         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29908         active.
29909         * tests/test-fopen.c (includes): Test safer versions when they are
29910         in use.
29911         * tests/test-open.c (includes): Likewise.
29912
29913         popen: fix cygwin 1.5 bug when stdin closed
29914         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29915         * modules/popen: New file.
29916         * modules/popen-tests: Likewise.
29917         * tests/test-popen.c: Likewise.
29918         * m4/popen.m4: Likewise.
29919         * lib/popen.c: Likewise.
29920         * lib/stdio.in.h (popen): New declaration.
29921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29922         * modules/stdio (Makefile.am): Likewise.
29923         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29924
29925 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29926
29927         maint.mk: give full control over update-copyright exclusions
29928         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29929         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29930         (update-copyright): Don't force inclusion of top-level
29931         ChangeLog.  Don't force exclusion of all COPYING files, but make
29932         them the default exclusion instead.
29933
29934 2009-08-16  Bruno Haible  <bruno@clisp.org>
29935
29936         Fix test failures on Solaris 10.
29937         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29938         tests when Solaris iconv() is used.
29939         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29940         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29941         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29942         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29943         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29944
29945 2009-08-16  Bruno Haible  <bruno@clisp.org>
29946
29947         Fix test failures on Solaris 10.
29948         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29949         'tr' program and pass it as first argument.
29950         * tests/test-pipe-filter-gi1.sh: Likewise.
29951         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29952         program as first argument.
29953         * tests/test-pipe-filter-gi1.c (main): Likewise.
29954
29955 2009-08-16  Eric Blake  <ebb9@byu.net>
29956
29957         fpurge: fix previous commits
29958         * modules/fpurge (Makefile.am): Make replacement conditional,
29959         partially reverting 2007-04-29 change; missed in previous
29960         attempt.
29961         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29962         is missing.
29963
29964 2009-08-16  Bruno Haible  <bruno@clisp.org>
29965
29966         Clarify fpurge's effect on the file position.
29967         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29968         * tests/test-fpurge.c (main): Make a second pass for checking the file
29969         position.
29970
29971 2009-08-16  Bruno Haible  <bruno@clisp.org>
29972
29973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29974         declaration of fpurge is missing.
29975         * tests/test-fpurge.c (main): Check that the file has not more contents
29976         than expected. Close the file before removing it.
29977
29978 2009-08-15  Eric Blake  <ebb9@byu.net>
29979
29980         fpurge: don't wrap working cygwin implementation
29981         * lib/fpurge.c (fpurge): Fix comment typo.
29982         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29983         1.7 to avoid replacement.
29984         * tests/test-fpurge.c (main): Enhance test.
29985
29986 2009-08-15  Eric Blake  <ebb9@byu.net>
29987         and Jim Meyering  <meyering@redhat.com>
29988
29989         test-update-copyright: skip if perl is insufficient
29990         * tests/test-update-copyright.sh: Failure to run maintainer tool
29991         should not cause testsuite failure on cygwin 1.5.
29992
29993 2009-08-14  Eric Blake  <ebb9@byu.net>
29994
29995         doc: mention more functions added in cygwin 1.7.0
29996         * doc/posix-headers/limits.texi (limits.h): Update for recent
29997         cygwin additions.
29998         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29999         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30000         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30001         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30002         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30003
30004 2009-08-14  Eric Blake  <ebb9@byu.net>
30005
30006         maint.mk: simplify update-copyright rule
30007         * top/maint.mk (update-copyright-local): Delete, and document how
30008         to do it in cfg.mk instead.
30009         (update-copyright-exclude-regexp): Delete, and document how to do
30010         it in .x-update-copyright instead.
30011         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30012         exclude ChangeLog.
30013
30014 2009-08-14  Bruno Haible  <bruno@clisp.org>
30015
30016         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30017
30018 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30019
30020         maint.mk: support update-copyright-env
30021         * top/maint.mk (update-copyright-env): Define place-holder.
30022         (update-copyright): Expand $(update-copyright-env) before
30023         invoking update-copyright.
30024
30025 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30026
30027         update-copyright: implement forced reformatting
30028         * build-aux/update-copyright: Implement and document
30029         UPDATE_COPYRIGHT_FORCE.
30030         * tests/test-update-copyright.sh: Test it.
30031
30032 2009-08-14  Eric Blake  <ebb9@byu.net>
30033         and Bruno Haible  <bruno@clisp.org>
30034
30035         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30036         * tests/test-locale.c: Revert previous patch related to NULL.
30037         * tests/test-stdio.c: Likewise.
30038         * tests/test-stdlib.c: Likewise.
30039         * tests/test-string.c: Likewise.
30040         * tests/test-unistd.c: Likewise.
30041         * modules/time-tests (Depends-on): Add verify.
30042         * modules/wchar-tests (Depends-on): Likewise.
30043         * tests/test-time.c: Test for NULL compliance.
30044         * tests/test-wchar.c: Likewise.
30045         * modules/locale (Depends-on): Add stddef.
30046         * modules/stdio (Depends-on): Likewise.
30047         * modules/stdlib (Depends-on): Likewise.
30048         * modules/string (Depends-on): Likewise.
30049         * modules/time (Depends-on): Likewise.
30050         * modules/unistd (Depends-on): Likewise.
30051         * modules/wchar (Depends-on): Likewise.
30052         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30053         * lib/stdlib.in.h (includes): Likewise.
30054         * lib/string.in.h (includes): Likewise.
30055         * lib/time.in.h (includes): Likewise.
30056         * lib/unistd.in.h (includes): Likewise.
30057         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30058         replaced.
30059         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30060         * m4/stddef_h.m4: New file.
30061         * modules/stddef: Likewise.
30062         * lib/stddef.in.h: Likewise.
30063         * modules/stddef-tests: Likewise.
30064         * tests/test-stddef.c: Likewise.
30065         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30066         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30067         * doc/posix-headers/locale.texi (locale.h): Likewise.
30068         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30069         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30070         * doc/posix-headers/string.texi (string.h): Likewise.
30071         * doc/posix-headers/time.texi (time.h): Likewise.
30072         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30073         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30074
30075 2009-08-14  Eric Blake  <ebb9@byu.net>
30076
30077         doc: improve git diff of texinfo files
30078         * .gitattributes: Add rule for *.texi files, with hint on how to
30079         use it.
30080         Copied from m4, and based on a report by Bruno Haible.
30081
30082 2009-08-14  Bruno Haible  <bruno@clisp.org>
30083
30084         Disable multithread support by default on Cygwin 1.5.x for real.
30085         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30086
30087 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30088
30089         update-copyright: much ado about intervals
30090         * build-aux/update-copyright: Implement and document
30091         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30092         of copyright year intervals.
30093         Also, document UPDATE_COPYRIGHT_YEAR.
30094         * tests/test-update-copyright.sh: Test it.
30095
30096         update-copyright: convert 2-digit to 4-digit years
30097         * build-aux/update-copyright: Implement and document.
30098         * tests/test-update-copyright.sh: Update.
30099
30100 2009-08-14  Jim Meyering  <meyering@redhat.com>
30101
30102         test-exclude: avoid coreutils "make check" failure
30103         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30104         just as in test-argmatch.c.
30105
30106 2009-08-13  Eric Blake  <ebb9@byu.net>
30107
30108         test-dup2: fix bad assumption
30109         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30110         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30111
30112         test-version-etc: fix CRLF portability issue
30113         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30114         recognize \r.
30115         * tests/test-argp-version-etc-1.sh: Likewise.
30116
30117         getopt: update client modules
30118         * modules/argp (Depends-on): Use getopt-gnu.
30119         * modules/git-merge-changelog (Depends-on): Likewise.
30120         * modules/long-options (Depends-on): Likewise.
30121         * modules/xstrtol (Depends-on): Likewise.
30122
30123 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30124
30125         * tests/test-version-etc.sh: Don't fail on different
30126         project/version.  Don't fail on CRLF differences.  Rewrite to use
30127         multiple -e instead of multiple sed forks, suggested by Eric Blake
30128         <ebb9@byu.net>.
30129         * tests/test-argp-version-etc-1.sh: Likewise.
30130
30131 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30132
30133         * tests/test-version-etc.sh: Don't fail on different
30134         project/version.
30135
30136 2009-08-12  Bruno Haible  <bruno@clisp.org>
30137
30138         Tests for modules 'getopt-posix', 'getopt-gnu'.
30139         * modules/getopt-posix-tests: New file.
30140         * tests/test-getopt.c: New file.
30141         * tests/test-getopt.h: New file.
30142         * tests/test-getopt_long.h: New file.
30143
30144         New modules 'getopt-posix', 'getopt-gnu'.
30145         * modules/getopt-gnu: New file, renamed from modules/getopt.
30146         * modules/getopt-posix: New file.
30147         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30148         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30149         (gl_GETOPT): Remove macro.
30150         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30151         Disable the test against BSD systems that declare optreset. Test
30152         against mingw bug. Test against lack of support of optional arguments
30153         on many platforms.
30154         * doc/glibc-headers/getopt.texi: Update module name and list of
30155         relevant platforms.
30156         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30157         'getopt-gnu' and more portability problems.
30158         * NEWS: Mention the changes.
30159
30160 2009-08-12  Bruno Haible  <bruno@clisp.org>
30161
30162         Ensure that optarg etc. get declared by <unistd.h>.
30163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30164         AC_USE_SYSTEM_EXTENSIONS.
30165         * modules/getopt (Depends-on): Add 'extensions'.
30166
30167 2009-08-12  Bruno Haible  <bruno@clisp.org>
30168
30169         Avoid test link errors.
30170         * modules/pipe-filter-ii-tests (Makefile.am): Define
30171         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30172         * modules/pipe-filter-gi-tests (Makefile.am): Define
30173         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30175
30176 2009-08-12  Bruno Haible  <bruno@clisp.org>
30177
30178         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30179         gl_GETOPT_SUBSTITUTE before.
30180         (gl_GETOPT): Use it.
30181         * m4/argp.m4 (gl_ARGP): Update.
30182         Reported by Sergey Poznyakoff.
30183
30184         * m4/getopt.m4: Reorder macros.
30185         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30186         (gl_GETOPT_SUBSTITUTE): Remove macro.
30187
30188 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30189
30190         Minor improvement in gitlog-to-changelog
30191
30192         * build-aux/gitlog-to-changelog: New option `--format' makes
30193         output format string configurable.
30194
30195 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30196
30197         Optimize exclude: use hash tables for non-wildcard patterns.
30198
30199         * lib/exclude.c: Include hash.h and mbuiter.h
30200         (struct exclude_pattern, exclude_segment): New data types.
30201         (struct exclude): Rewrite.
30202         (fnmatch_pattern_has_wildcards): New function.
30203         (new_exclude_segment, free_exclude_segment): New functions.
30204         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30205         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30206         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30207         * modules/exclude: Depend on hash and mbuiter.
30208
30209         * modules/exclude-tests: New file.
30210         * tests/test-exclude.c: New file.
30211         * tests/test-exclude1.sh: New file.
30212         * tests/test-exclude2.sh: New file.
30213         * tests/test-exclude3.sh: New file.
30214         * tests/test-exclude4.sh: New file.
30215         * tests/test-exclude5.sh: New file.
30216         * tests/test-exclude6.sh: New file.
30217         * tests/test-exclude7.sh: New file.
30218
30219 2009-08-12  Bruno Haible  <bruno@clisp.org>
30220
30221         Ensure that getopt() gets declared by <unistd.h>.
30222         * lib/unistd.in.h: Conditionally include getopt.h.
30223         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30224         Set GNULIB_UNISTD_H_GETOPT.
30225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30226         GNULIB_UNISTD_H_GETOPT.
30227         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30228
30229 2009-08-12  Bruno Haible  <bruno@clisp.org>
30230
30231         Clarify logic.
30232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30233         gl_replace_getopt instead of GETOPT_H.
30234
30235 2009-08-12  Bruno Haible  <bruno@clisp.org>
30236
30237         * m4/getopt.m4: Add comments.
30238
30239 2009-08-12  Bruno Haible  <bruno@clisp.org>
30240
30241         Disable multithread support by default on Cygwin 1.5.x.
30242         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30243         set gl_use_threads=no if not specified otherwise.
30244
30245 2009-08-11  Bruno Haible  <bruno@clisp.org>
30246
30247         Avoid compilation error on NetBSD 5.0.
30248         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30249         * tests/test-stdio.c: Likewise.
30250         * tests/test-stdlib.c: Likewise.
30251         * tests/test-string.c: Likewise.
30252         * tests/test-unistd.c: Likewise.
30253         Reported by Greg Troxel <gdt@ir.bbn.com>
30254         at <https://savannah.gnu.org/support/?106973>.
30255
30256 2009-08-11  Bruno Haible  <bruno@clisp.org>
30257
30258         * modules/dup2-tests (Depends-on): Remove close.
30259
30260         Undo 2009-07-19 commit.
30261         * modules/acl-tests (Depends-on): Remove close.
30262         * modules/binary-io-tests (Depends-on): Likewise.
30263         * modules/closein-tests (Depends-on): Likewise.
30264         * modules/flock-tests (Depends-on): Likewise.
30265         * modules/fsync-tests (Depends-on): Likewise.
30266         * modules/lseek-tests (Depends-on): Likewise.
30267         * modules/pipe-tests (Depends-on): Likewise.
30268         * modules/posix_spawn-tests (Depends-on): Likewise.
30269         * modules/posix_spawnp-tests (Depends-on): Likewise.
30270         * modules/stat-time-tests (Depends-on): Likewise.
30271         * modules/yesno-tests (Depends-on): Likewise.
30272
30273 2009-08-10  Bruno Haible  <bruno@clisp.org>
30274
30275         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30276
30277 2009-08-10  Bruno Haible  <bruno@clisp.org>
30278
30279         Fix a gcc warning.
30280         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30281
30282 2009-08-10  Bruno Haible  <bruno@clisp.org>
30283
30284         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30285         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30286         not only the first time.
30287         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30288         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30289         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30290         is 1, not only the the first time.
30291
30292 2009-08-10  Bruno Haible  <bruno@clisp.org>
30293
30294         Make it possible to use module 'gethostname' without module 'close'.
30295         * lib/unistd.in.h (close): Evoke a link error only if
30296         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30298         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30299         * modules/unistd (Makefile.am): Substitute
30300         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30301         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30302         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30303         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30304         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30305         * modules/sys_ioctl (Makefile.am): Substitute
30306         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30307         * modules/socket (configure.ac): On native Windows, set
30308         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30310         Reported by Sam Steingold <sds@gnu.org>.
30311
30312 2009-08-10  Bruno Haible  <bruno@clisp.org>
30313
30314         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30315         * modules/ioctl (configure.ac): Likewise.
30316
30317 2009-08-10  Bruno Haible  <bruno@clisp.org>
30318
30319         Avoid collision between gnulib wrapper and libintl wrapper.
30320         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30321         already defined in intl/printf.c.
30322         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30323         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30324
30325 2009-08-09  Bruno Haible  <bruno@clisp.org>
30326
30327         Make <sys/select.h> really self-contained, also on Solaris 10.
30328         * lib/sys_select.in.h: Include <string.h>.
30329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30330         Solaris 10 problem.
30331         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30332         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30333         Reported by Jim Meyering.
30334
30335 2009-08-09  Bruno Haible  <bruno@clisp.org>
30336
30337         Avoid warnings from 'aclocal' that are due to a use of macro name
30338         AM_XGETTEXT_OPTION that is not defined in automake.
30339         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30340         automake.
30341         * modules/error (configure.ac): Likewise.
30342         * modules/propername (configure.ac): Likewise.
30343         * modules/vasprintf (configure.ac): Likewise.
30344         * modules/verror (configure.ac): Likewise.
30345         * modules/xprintf (configure.ac): Likewise.
30346         * modules/xvasprintf (configure.ac): Likewise.
30347
30348 2009-08-08  Bruno Haible  <bruno@clisp.org>
30349
30350         Avoid compilation error in C++ mode.
30351         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30352         Reported by Sam Steingold <sds@gnu.org>.
30353
30354 2009-08-08  Bruno Haible  <bruno@clisp.org>
30355
30356         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30357         for the various Unix platforms.
30358         * doc/posix-headers/limits.texi: Update platforms list regarding
30359         HOST_NAME_MAX.
30360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30361
30362 2009-08-07  Jim Meyering  <meyering@redhat.com>
30363
30364         selinux-at: fix typo in a comment
30365         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30366         Spotted by Paolo Bonzini.
30367
30368         selinux-at: remove redundant m4 code, add documentation
30369         * modules/selinux-at (configure.ac): Remove redundant code.
30370         LIB_SELINUX is already set via the dependent module, selinux-h.
30371         (Include): Add quotes around selinux-at.h.
30372         * lib/selinux-at.h: Add documentation.
30373         Reported by Bruno Haible in
30374         http://marc.info/?l=gnulib-bug&m=124958988300749
30375
30376 2009-08-07  Bruno Haible  <bruno@clisp.org>
30377
30378         Avoid link error on MacOS X 10.3 and 10.4.
30379         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30380         on non-ELF systems.
30381         * lib/argp-pv.c (argp_program_version): Likewise.
30382         Reported by Simon Josefsson.
30383
30384 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30385
30386         * tests/test-version-etc.sh: Use $EXEEXT.
30387
30388 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30389
30390         update-copyright: update documentation to point to maint.mk
30391         * build-aux/update-copyright: Here.
30392
30393 2009-08-06  Jim Meyering  <meyering@redhat.com>
30394
30395         maint.mk: support update-copyright-local
30396         * top/maint.mk (update-copyright-local): Define place-holder.
30397         (update-copyright): Depend on $(update-copyright-local).
30398
30399 2009-08-06  Jim Meyering  <meyering@redhat.com>
30400
30401         selinux-at: new module
30402         Initially written for coreutils, this module will soon be
30403         used by findutils, too.
30404         * MODULES.html.sh [Misc]: Add selinux-at.
30405         * lib/selinux-at.h: New file, from coreutils.
30406         * lib/selinux-at.c: Likewise.
30407         * modules/selinux-at: Likewise.
30408         (License): Change from LGPL to GPL, since it depends
30409         on the GPL'd openat module.
30410
30411         doc: update README
30412         * README: Remove references to cogito.
30413         Remove cvs-repo-updating instructions from 2007.
30414         Don't imply that CVS is better if you have limited disk space.
30415
30416 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30417
30418         update-copyright: support C-style comments
30419         * build-aux/update-copyright: Implement and document.
30420         * tests/test-update-copyright.sh: Test.
30421
30422 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30423
30424         update-copyright: support omitted "(C)"
30425         * build-aux/update-copyright: Implement and document.  Also,
30426         allow variable whitespace before "(C)".
30427         * tests/test-update-copyright.sh: Test.
30428
30429 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30430
30431         update-copyright: don't trip on non-FSF copyright statements
30432         * build-aux/update-copyright: Fix so that the first correctly
30433         formatted FSF copyright statement is recognized no matter what
30434         appears before it.  Update documentation.
30435         * tests/test-update-copyright.sh: Test that.
30436
30437 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30438
30439         update-copyright: clean up code a little
30440         * build-aux/update-copyright: Append "_re" to the name of any
30441         variable holding a regular expression.
30442         Replace "old" and "new" with "stmt" in variable names.
30443         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30444         handled correctly.
30445         Format code more consistently.
30446
30447 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30448
30449         update-copyright-tests: improve portability
30450         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30451         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30452
30453 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30454
30455         update-copyright: support @copyright{} and &copy;
30456         * build-aux/update-copyright: Implement and document.
30457         * tests/test-update-copyright.sh: Test.
30458
30459 2009-08-04  Jim Meyering  <meyering@redhat.com>
30460
30461         update-copyright-tests: correctly test EOL=\r\n handling
30462         * tests/test-update-copyright.sh: Put \r at the end of some lines
30463         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30464
30465         maint.mk: make update-copyright exclusion list more configurable
30466         * top/maint.mk (update-copyright): Default to excluding COPYING,
30467         but allow an override, in case someone does want to update that file.
30468
30469         maint.mk: don't update copyright date in COPYING
30470         * top/maint.mk (update-copyright): Exclude COPYING.
30471
30472         maint.mk: add a copyright-updating rule
30473         * top/maint.mk (update-copyright): New rule.
30474         Derived from coreutils/Makefile.am.
30475
30476         update-copyright: rename some variables
30477         * build-aux/update-copyright: Rename a few variables for clarity.
30478         Tweak syntax.  List Joel E. Denny as coauthor.
30479
30480 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30481
30482         update-copyright: fix bug for 2-digit last year and add tests
30483         * build-aux/update-copyright: Fix bug.
30484         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30485         specified.
30486         * modules/update-copyright-tests: New
30487         * tests/test-update-copyright.sh: New.
30488
30489 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30490
30491         update-copyright: handle leading tabs in line prefix
30492         * build-aux/update-copyright: Count leading tabs as 8 spaces
30493         when computing margin.  This helps with the formatting of
30494         ChangeLogs, for example.
30495         Fix documentation a little.
30496
30497 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30498
30499         update-copyright: support EOL=\r\n
30500         * build-aux/update-copyright: Implement that.
30501
30502 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30503
30504         update-copyright: automatically format copyright statements
30505         * build-aux/update-copyright: Implement that.
30506         Also, be a little more predictable and safer by always failing
30507         when the full copyright format is not perfectly recognized as an
30508         unbroken whole.  Discussed at
30509         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30510         Rewrite documentation.
30511
30512 2009-08-03  Bruno Haible  <bruno@clisp.org>
30513
30514         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30515
30516 2009-08-02  Bruno Haible  <bruno@clisp.org>
30517
30518         Tests for module 'uname'.
30519         * modules/uname-tests: New file.
30520         * tests/test-uname.c: New file.
30521
30522         New module 'uname'.
30523         * lib/uname.c: New file.
30524         * m4/uname.m4: New file.
30525         * modules/uname: New file.
30526         * doc/posix-functions/uname.texi: Mention the new module.
30527
30528 2009-08-02  Bruno Haible  <bruno@clisp.org>
30529
30530         Tests for module 'sys_utsname'.
30531         * modules/sys_utsname-tests: New file.
30532         * tests/test-sys_utsname.c: New file.
30533
30534         New module 'sys_utsname'.
30535         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30536         * m4/sys_utsname_h.m4: New file.
30537         * modules/sys_utsname: New file.
30538         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30539
30540 2009-08-02  Bruno Haible  <bruno@clisp.org>
30541
30542         Implicitly initialize the sockets library.
30543         * lib/gethostname.c: Include sockets.h.
30544         (rpl_gethostname): Invoke gl_sockets_startup.
30545         * lib/socket.c: Include sockets.h.
30546         (rpl_socket): Invoke gl_sockets_startup.
30547         * modules/gethostname (Depends-on): Add sockets.
30548         * modules/socket (Depends-on): Likewise.
30549         * tests/test-poll.c: Don't include sockets.h.
30550         (main): Don't invoke gl_sockets_startup.
30551         * tests/test-select.c: Don't include sockets.h.
30552         (main): Don't invoke gl_sockets_startup.
30553
30554 2009-08-02  Bruno Haible  <bruno@clisp.org>
30555
30556         Allow multiple calls to gl_sockets_startup.
30557         * lib/sockets.c (initialized_sockets_version): New variable.
30558         (gl_sockets_startup): Do nothing if already called for this or a higher
30559         version.
30560         (gl_sockets_cleanup): Reset initialized_sockets_version.
30561
30562 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30563
30564         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30565         different project/version.
30566
30567 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30568             Bruno Haible  <bruno@clisp.org>
30569
30570         Tests for module 'pipe-filter-gi'.
30571         * modules/pipe-filter-gi-tests: New file.
30572         * tests/test-pipe-filter-gi1.sh: New file.
30573         * tests/test-pipe-filter-gi1.c: New file.
30574         * tests/test-pipe-filter-gi2.sh: New file.
30575         * tests/test-pipe-filter-gi2-main.c: New file.
30576         * tests/test-pipe-filter-gi2-child.c: New file.
30577
30578         New module 'pipe-filter-gi'.
30579         * lib/pipe-filter-gi.c: New file.
30580         * modules/pipe-filter-gi: New file.
30581
30582 2009-08-02  Bruno Haible  <bruno@clisp.org>
30583             Paolo Bonzini  <bonzini@gnu.org>
30584
30585         Tests for module 'pipe-filter-ii'.
30586         * modules/pipe-filter-ii-tests: New file.
30587         * tests/test-pipe-filter-ii1.sh: New file.
30588         * tests/test-pipe-filter-ii1.c: New file.
30589         * tests/test-pipe-filter-ii2.sh: New file.
30590         * tests/test-pipe-filter-ii2-main.c: New file.
30591         * tests/test-pipe-filter-ii2-child.c: New file.
30592
30593         New module 'pipe-filter-ii'.
30594         * lib/pipe-filter.h: New file.
30595         * lib/pipe-filter-ii.c: New file.
30596         * lib/pipe-filter-aux.h: New file.
30597         * modules/pipe-filter-ii: New file.
30598
30599 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30600
30601         * lib/gc-libgcrypt.c: Change copyright to FSF.
30602         * lib/gc-gnulib.c: Likewise.
30603
30604 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30605
30606         * lib/gethostname.c: Include limits.h.
30607
30608 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30609             Bruno Haible  <bruno@clisp.org>
30610
30611         Ensure HOST_NAME_MAX as part of the gethostname module.
30612         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30613         define also HOST_NAME_MAX.
30614         * tests/test-gethostname.c: Include <limits.h>.
30615         (main): Check also HOST_NAME_MAX.
30616         * doc/posix-headers/limits.texi: Document the mingw problem.
30617
30618 2009-08-02  Bruno Haible  <bruno@clisp.org>
30619
30620         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30621         Add comments.
30622
30623 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30624
30625         * lib/gethostname.c: Add Windows wrapper.
30626         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30627         * modules/gethostname: Depend on sys_socket & errno, for also
30628         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30629         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30630
30631 2009-07-31  Jim Meyering  <meyering@redhat.com>
30632
30633         getloadavg: fix symbol name in comment
30634         * lib/getloadavg.c: Correct a typo I introduced when adding
30635         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30636         Matt Kraai spotted the problem.
30637
30638 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30639
30640         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30641         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30642         code also if ! defined N_NAME_POINTER.
30643         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30644         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30645         but the n_name member is a 12-byte array.
30646
30647 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30648
30649         update-copyright: generalize comment handling
30650         * build-aux/update-copyright: Handle copyright statements
30651         within more comment styles.
30652         Document usage.
30653         Report any file with an external copyright holder or parse failure.
30654
30655 2009-07-29  Jim Meyering  <meyering@redhat.com>
30656
30657         mktime: correct setting of REPLACE_MKTIME
30658         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30659
30660         update-copyright: new module
30661         * modules/update-copyright: New file.
30662         * build-aux/update-copyright: New file.
30663         * MODULES.html.sh (maint+release support): Add update-copyright.
30664
30665 2009-07-27  Bruno Haible  <bruno@clisp.org>
30666
30667         Fix compilation error when <ctime> is used and mktime is replaced.
30668         * lib/time.in.h (mktime): New declaration.
30669         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30670         REPLACE_MKTIME instead of defining mktime in config.h.
30671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30672         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30673         Reported by Ross McFarland <rwmcfa1@neces.com>.
30674
30675 2009-07-27  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30678         Reported by Matt Kraai <mkraai@beckman.com>.
30679
30680 2009-07-25  Jim Meyering  <meyering@redhat.com>
30681
30682         maint.mk: avoid warnings about missing files
30683         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30684         diagnostic when .prev-version does not exist.
30685         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30686         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30687         nonexistent cfg.mk.
30688         Suggestions from Simon Josefsson.
30689
30690 2009-07-25  Bruno Haible  <bruno@clisp.org>
30691
30692         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30693         defined as macros. Needed on QNX 6.4.1.
30694         Reported by Matt Kraai <mkraai@beckman.com>.
30695
30696 2009-07-23  Jim Meyering  <meyering@redhat.com>
30697
30698         maint.mk: invoke "make dist" with a working value of XZ_OPT
30699         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30700
30701 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30702
30703         Make fseeko.c compile on QNX.
30704         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30705
30706 2009-07-22  Peter Simons  <simons@cryp.to>
30707
30708         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30709         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30710         * lib/md4.h: Likewise.
30711         * lib/md5.h: Likewise.
30712         * lib/sha1.h: Likewise.
30713         * lib/sha256.h: Likewise.
30714         * lib/sha512.h: Likewise.
30715
30716         tests-sha1: don't assign literal string to 'char *' variable
30717         * tests/test-sha1.c (main): Declare locals with "const" to match
30718         attributes of the right hand side.
30719
30720 2009-07-21  Eric Blake  <ebb9@byu.net>
30721
30722         dup2: fix more mingw problems
30723         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30724         fd to itself.
30725         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30726         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30727         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30728         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30729         care of mingw bugs.
30730
30731 2009-07-21  Jim Meyering  <meyering@redhat.com>
30732
30733         vc-list-files: avoid failure when /bin/sh is dash
30734         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30735         On some Debian based systems, /bin/sh is a symlink to dash, and running
30736         this command would omit the "/" following each 'tests' prefix:
30737           dash -x build-aux/vc-list-files -C . tests
30738         That is because bash and dash work differently:
30739           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30740           bash ok
30741           dash odd
30742
30743 2009-07-21  Eric Blake  <ebb9@byu.net>
30744
30745         dup2-tests: test previous patch
30746         * modules/dup2-tests: New file.
30747         * tests/test-dup2.c: Likewise.
30748         * tests/test-open.c (main): Avoid unspecified behavior.
30749         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30750         test.
30751
30752         dup2: work around mingw and cygwin 1.5 bug
30753         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30755         * modules/unistd (Makefile.am): Substitute it.
30756         * lib/unistd.in.h (dup2): Declare the replacement.
30757         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30758         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30759         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30760         * modules/execute (Depends-on): Add dup2.
30761         * modules/fseterr (Depends-on): Likewise.
30762         * modules/pipe (Depends-on): Likewise.
30763         * modules/posix_spawn-internal (Depends-on): Likewise.
30764
30765 2009-07-21  Bruno Haible  <bruno@clisp.org>
30766
30767         * modules/.gitattributes: New file.
30768
30769 2009-07-20  Bruno Haible  <bruno@clisp.org>
30770
30771         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30772         (main): Use it.
30773
30774 2009-07-20  Eric Blake  <ebb9@byu.net>
30775
30776         test-pipe: make a bit more robust.
30777         * tests/test-pipe.c (myerr): Allow error messages regardless of
30778         what we do to stderr.
30779         (test_pipe): Rearrange to avoid deadlock.
30780         (child_main): Try a larger read, to ensure we avoided deadlock.
30781         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30782         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30783         if misused.
30784
30785 2009-07-19  Jim Meyering  <meyering@redhat.com>
30786
30787         fts: avoid false-positive cycle-detection
30788         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30789         for each new command line argument.
30790
30791 2009-07-19  Bruno Haible  <bruno@clisp.org>
30792
30793         Fix build error on mingw with the modules sys_select and unistd.
30794         * modules/acl-tests (Depends-on): Add close.
30795         * modules/binary-io-tests (Depends-on): Likewise.
30796         * modules/closein-tests (Depends-on): Likewise.
30797         * modules/flock-tests (Depends-on): Likewise.
30798         * modules/fsync-tests (Depends-on): Likewise.
30799         * modules/lseek-tests (Depends-on): Likewise.
30800         * modules/pipe-tests (Depends-on): Likewise.
30801         * modules/posix_spawn-tests (Depends-on): Likewise.
30802         * modules/posix_spawnp-tests (Depends-on): Likewise.
30803         * modules/stat-time-tests (Depends-on): Likewise.
30804         * modules/yesno-tests (Depends-on): Likewise.
30805
30806 2009-07-19  Bruno Haible  <bruno@clisp.org>
30807
30808         Unify conditionals.
30809         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30810         macros, not at the compiler macros.
30811         * lib/pipe.c: Likewise.
30812         * lib/execute.c: Likewise.
30813         * lib/spawni.c: Likewise.
30814
30815 2009-07-19  Bruno Haible  <bruno@clisp.org>
30816
30817         Fix handling of closed stdin/stdout/stderr on mingw.
30818         * lib/w32spawn.h: Include unistd.h.
30819         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30820         file descriptor with O_NOINHERIT flag.
30821         (fd_safer_noinherit): New function, based on fd-safer.c.
30822         (dup_safer_noinherit): New function, based on dup-safer.c.
30823         (undup_safer_noinherit): New function.
30824         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30825         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30826         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30827         instead of fd_safer.
30828         * tests/test-pipe.c: Include <windows.h>.
30829         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30830         result.
30831
30832         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30833         from main.
30834         (test_pipe): Pass an extra argument for disambiguation.
30835         (main): Invoke parent_main or child_main.
30836
30837         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30838         consistently.
30839
30840 2009-07-18  Eric Blake  <ebb9@byu.net>
30841
30842         test-pipe: fix mingw build
30843         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30844
30845 2009-07-18  Bruno Haible  <bruno@clisp.org>
30846
30847         * modules/pipe-tests (Makefile.am): Fix typo.
30848
30849 2009-07-18  Eric Blake  <ebb9@byu.net>
30850
30851         error: fix mingw build
30852         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30853         Reported by Bruno Haible.
30854
30855         error: avoid undefined use of stdout
30856         * lib/error.c (error, error_at_line): Check that fd 1 is open
30857         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30858         is handling faults and the close_stdout module wants to report the
30859         detection of closed stdout as an error.
30860
30861 2009-07-17  Eric Blake  <ebb9@byu.net>
30862
30863         pipe: be robust in face of closed fds
30864         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30865         should cause child to misbehave.
30866         * modules/pipe-tests: New module.
30867         * tests/test-pipe.c: New file.
30868         * tests/test-pipe.sh: New file.
30869         Reported by Akim Demaille.
30870
30871 2009-07-14  Bruno Haible  <bruno@clisp.org>
30872
30873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30874         Reported by anonymous kc.
30875
30876 2009-07-07  Jim Meyering  <meyering@redhat.com>
30877
30878         maint.mk: don't look for translatable strings in *.m4 or *.mk
30879         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30880         when searching for translatable strings.
30881
30882 2009-07-05  Jim Meyering  <meyering@redhat.com>
30883
30884         remove superfluous parentheses in STREQ definition
30885         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30886         * lib/getugroups.c (STREQ): Likewise.
30887         * lib/fnmatch.c (STREQ): Likewise.
30888         Spotted by Bruno Haible.
30889
30890 2009-07-04  Jim Meyering  <meyering@redhat.com>
30891
30892         argv-iter: new module
30893         * MODULES.html.sh: Add argv-iter.
30894         * lib/argv-iter.c, lib/argv-iter.h: New files.
30895         * modules/argv-iter: New file.
30896         * modules/argv-iter-tests: New file.
30897         * tests/test-argv-iter.c: Test it.
30898
30899 2009-07-04  Bruno Haible  <bruno@clisp.org>
30900
30901         Fix assertion.
30902         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30903         contains more exact copies of a given entry than file2, leave the extra
30904         copies unpaired rather than aborting.
30905         Reported by Eric Blake.
30906
30907 2009-07-02  Bruno Haible  <bruno@clisp.org>
30908
30909         Speedup git-merge-changelog for git cherry-pick.
30910         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30911         (entries_mapping_get): New function, extracted from compute_mapping.
30912         (entries_mapping_reverse_get): New function.
30913         (compute_mapping): Add a 'full' argument. Return the result in a
30914         'struct entries_mapping'.
30915         (main): Update. Access the mappings through entries_mapping_get.
30916         Reported by Eric Blake.
30917
30918 2009-07-02  Bruno Haible  <bruno@clisp.org>
30919
30920         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30921         best_i.
30922
30923 2009-07-02  Bruno Haible  <bruno@clisp.org>
30924
30925         Speed up approximate search for matching ChangeLog entries.
30926         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30927         argument. Call fstrcmp_bounded instead of fstrcmp.
30928         (compute_mapping, try_split_merged_entry, main): Update callers.
30929
30930 2009-07-02  Bruno Haible  <bruno@clisp.org>
30931
30932         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30933
30934 2009-06-30  Bruno Haible  <bruno@clisp.org>
30935
30936         Reduce the number of uc_is_cased calls.
30937         * lib/unicase.h (casing_suffix_context_t): Add
30938         'first_char_except_ignorable' field.
30939         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30940         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30941         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30942         Update initializer.
30943         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30944         case-ignorable characters.
30945         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30946         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30947         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30948         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30949         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30950
30951 2009-06-30  Bruno Haible  <bruno@clisp.org>
30952
30953         Tests for module 'unicase/ignorable'.
30954         * modules/unicase/ignorable-tests: New file.
30955         * tests/unicase/test-ignorable.c: New file, generated by
30956         gen-uni-tables.
30957
30958         Tests for module 'unicase/cased'.
30959         * modules/unicase/cased-tests: New file.
30960         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30961         * tests/unicase/test-predicate-part1.h: New file, derived from
30962         tests/unictype/test-predicate-part1.h.
30963         * tests/unicase/test-predicate-part2.h: New file, same as
30964         tests/unictype/test-predicate-part2.h.
30965
30966         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30967         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30968         (output_casing_properties): New function.
30969         (main): Call it.
30970         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30971         * lib/unicase/cased.c: Include unictype/bitmap.h.
30972         (uc_is_cased): Define through a bitmap lookup.
30973         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30974         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30975         (uc_is_case_ignorable): Define through a bitmap lookup.
30976         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30977         lib/unictype/bitmap.h.
30978         (Depends-on): Add inline. Clean up.
30979         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30980         lib/unictype/bitmap.h.
30981         (Depends-on): Add inline. Clean up.
30982         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30983         recognition.
30984         * tests/unicase/test-u16-tolower.c (main): Likewise.
30985         * tests/unicase/test-u32-tolower.c (main): Likewise.
30986
30987 2009-06-30  Bruno Haible  <bruno@clisp.org>
30988
30989         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30990         * lib/unicase/u16-casemap.c: Likewise.
30991         * lib/unicase/u32-casemap.c: Likewise.
30992
30993 2009-06-29  Bruno Haible  <bruno@clisp.org>
30994
30995         Define u32_casefold as a wrapper around u32_ct_casefold.
30996         * lib/unicase/u32-casefold.c: Update.
30997         * modules/unicase/u32-casefold (Depends-on): Add
30998         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30999         unicase/empty-suffix-context. Clean up.
31000
31001         Define u16_casefold as a wrapper around u16_ct_casefold.
31002         * lib/unicase/u16-casefold.c: Update.
31003         * modules/unicase/u16-casefold (Depends-on): Add
31004         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31005         unicase/empty-suffix-context. Clean up.
31006
31007         Define u8_casefold as a wrapper around u8_ct_casefold.
31008         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31009         * lib/unicase/u8-casefold.c: Update.
31010         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31011         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31012
31013         Define u32_totitle as a wrapper around u32_ct_totitle.
31014         * lib/unicase/u32-totitle.c: Update.
31015         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31016         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31017
31018         Define u16_totitle as a wrapper around u16_ct_totitle.
31019         * lib/unicase/u16-totitle.c: Update.
31020         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31021         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31022
31023         Define u8_totitle as a wrapper around u8_ct_totitle.
31024         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31025         functions.
31026         (FUNC): Delegate to U_CT_TOTITLE.
31027         * lib/unicase/u8-totitle.c: Update.
31028         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31029         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31030
31031         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31032         invocation.
31033         * modules/unicase/u32-tolower (Depends-on): Add
31034         unicase/empty-prefix-context, unicase/empty-suffix-context.
31035
31036         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31037         invocation.
31038         * modules/unicase/u16-tolower (Depends-on): Add
31039         unicase/empty-prefix-context, unicase/empty-suffix-context.
31040
31041         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31042         * modules/unicase/u8-tolower (Depends-on): Add
31043         unicase/empty-prefix-context, unicase/empty-suffix-context.
31044
31045         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31046         invocation.
31047         * modules/unicase/u32-toupper (Depends-on): Add
31048         unicase/empty-prefix-context, unicase/empty-suffix-context.
31049
31050         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31051         invocation.
31052         * modules/unicase/u16-toupper (Depends-on): Add
31053         unicase/empty-prefix-context, unicase/empty-suffix-context.
31054
31055         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31056         * modules/unicase/u8-toupper (Depends-on): Add
31057         unicase/empty-prefix-context, unicase/empty-suffix-context.
31058
31059         New module 'unicase/u32-ct-casefold'.
31060         * lib/unicase/u32-ct-casefold.c: New file.
31061         * modules/unicase/u32-ct-casefold: New file.
31062
31063         New module 'unicase/u16-ct-casefold'.
31064         * lib/unicase/u16-ct-casefold.c: New file.
31065         * modules/unicase/u16-ct-casefold: New file.
31066
31067         New module 'unicase/u8-ct-casefold'.
31068         * lib/unicase/u8-ct-casefold.c: New file.
31069         * lib/unicase/u-ct-casefold.h: New file, derived from
31070         lib/unicase/u-casefold.h.
31071         * modules/unicase/u8-ct-casefold: New file.
31072
31073         New module 'unicase/u32-ct-totitle'.
31074         * lib/unicase/u32-ct-totitle.c: New file.
31075         * modules/unicase/u32-ct-totitle: New file.
31076
31077         New module 'unicase/u16-ct-totitle'.
31078         * lib/unicase/u16-ct-totitle.c: New file.
31079         * modules/unicase/u16-ct-totitle: New file.
31080
31081         New module 'unicase/u8-ct-totitle'.
31082         * lib/unicase/u8-ct-totitle.c: New file.
31083         * lib/unicase/u-ct-totitle.h: New file, derived from
31084         lib/unicase/u-totitle.h.
31085         * modules/unicase/u8-ct-totitle: New file.
31086
31087         New module 'unicase/u32-ct-tolower'.
31088         * lib/unicase/u32-ct-tolower.c: New file.
31089         * modules/unicase/u32-ct-tolower: New file.
31090
31091         New module 'unicase/u16-ct-tolower'.
31092         * lib/unicase/u16-ct-tolower.c: New file.
31093         * modules/unicase/u16-ct-tolower: New file.
31094
31095         New module 'unicase/u8-ct-tolower'.
31096         * lib/unicase/u8-ct-tolower.c: New file.
31097         * modules/unicase/u8-ct-tolower: New file.
31098
31099         New module 'unicase/u32-ct-toupper'.
31100         * lib/unicase/u32-ct-toupper.c: New file.
31101         * modules/unicase/u32-ct-toupper: New file.
31102
31103         New module 'unicase/u16-ct-toupper'.
31104         * lib/unicase/u16-ct-toupper.c: New file.
31105         * modules/unicase/u16-ct-toupper: New file.
31106
31107         New module 'unicase/u8-ct-toupper'.
31108         * lib/unicase/u8-ct-toupper.c: New file.
31109         * modules/unicase/u8-ct-toupper: New file.
31110
31111         Add context arguments to u*_casemap functions.
31112         * lib/unicase/unicasemap.h: Include unicase.h.
31113         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31114         suffix_context arguments.
31115         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31116         functions.
31117         (FUNC): Add prefix_context and suffix_context arguments. Use
31118         uc_is_cased and uc_is_case_ignorable.
31119         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31120         * lib/unicase/u16-casemap.c: Likewise.
31121         * lib/unicase/u32-casemap.c: Likewise.
31122         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31123         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31124         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31125         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31126         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31127         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31128
31129         New module 'unicase/u32-suffix-context'.
31130         * lib/unicase/u32-suffix-context.c: New file.
31131         * modules/unicase/u32-suffix-context: New file.
31132
31133         New module 'unicase/u16-suffix-context'.
31134         * lib/unicase/u16-suffix-context.c: New file.
31135         * modules/unicase/u16-suffix-context: New file.
31136
31137         New module 'unicase/u8-suffix-context'.
31138         * lib/unicase/u8-suffix-context.c: New file.
31139         * lib/unicase/u-suffix-context.h: New file.
31140         * modules/unicase/u8-suffix-context: New file.
31141
31142         New module 'unicase/empty-suffix-context'.
31143         * lib/unicase/empty-suffix-context.c: New file.
31144         * modules/unicase/empty-suffix-context: New file.
31145
31146         New module 'unicase/u32-prefix-context'.
31147         * lib/unicase/u32-prefix-context.c: New file.
31148         * modules/unicase/u32-prefix-context: New file.
31149
31150         New module 'unicase/u16-prefix-context'.
31151         * lib/unicase/u16-prefix-context.c: New file.
31152         * modules/unicase/u16-prefix-context: New file.
31153
31154         New module 'unicase/u8-prefix-context'.
31155         * lib/unicase/u8-prefix-context.c: New file.
31156         * lib/unicase/u-prefix-context.h: New file.
31157         * lib/unicase/context.h: New file.
31158         * modules/unicase/u8-prefix-context: New file.
31159
31160         New module 'unicase/empty-prefix-context'.
31161         * lib/unicase/empty-prefix-context.c: New file.
31162         * modules/unicase/empty-prefix-context: New file.
31163
31164         New module 'unicase/ignorable'.
31165         * lib/unicase/ignorable.c: New file.
31166         * modules/unicase/ignorable: New file.
31167
31168         New module 'unicase/cased'.
31169         * lib/unicase/caseprop.h: New file.
31170         * lib/unicase/cased.c: New file.
31171         * modules/unicase/cased: New file.
31172
31173         New functions for case mapping of substrings.
31174         * lib/unicase.h (casing_prefix_context_t): New type.
31175         (unicase_empty_prefix_context): New variable.
31176         (u8_casing_prefix_context, u16_casing_prefix_context,
31177         u32_casing_prefix_context, u8_casing_prefixes_context,
31178         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31179         declarations.
31180         (casing_suffix_context_t): New type.
31181         (unicase_empty_suffix_context): New variable.
31182         (u8_casing_suffix_context, u16_casing_suffix_context,
31183         u32_casing_suffix_context, u8_casing_suffixes_context,
31184         u16_casing_suffixes_context, u32_casing_suffixes_context,
31185         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31186         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31187         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31188         declarations.
31189
31190 2009-06-28  Jim Meyering  <meyering@redhat.com>
31191
31192         boostrap: indent only with spaces
31193         * build-aux/bootstrap: Indent only with spaces, never TABs.
31194
31195         bootstrap: split long lines
31196         * build-aux/bootstrap: Keep line length < 80.
31197
31198         bootstrap: sync from coreutils
31199         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31200         just as autoreconf does.  Verify a list of prerequisite
31201         package-name,version-number pairs if defined in bootstrap.conf.
31202         Refer to README-prereq, if prerequisites are not satisfied.
31203
31204 2009-06-27  Eric Blake  <ebb9@byu.net>
31205
31206         tests: add test for bogus NULL definition
31207         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31208         * tests/test-stdlib.c: Likewise.
31209         * tests/test-string.c: Likewise.
31210         * tests/test-locale.c: Likewise.
31211         * tests/test-unistd.c: Likewise.
31212         * modules/stdio-tests (Depends-on): Add verify.
31213         * modules/stdlib-tests (Depends-on): Likewise.
31214         * modules/string-tests (Depends-on): Likewise.
31215         * modules/locale-tests (Depends-on): Likewise.
31216         * modules/unistd-tests (Depends-on): Likewise.
31217
31218 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31219
31220         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31221         self-explaining comment.
31222         * m4/selinux-selinux-h: Update serial.
31223         (gl_LIBSELINUX): New macro, adding a warning for missing development
31224         packages to code extracted from...
31225         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31226         Add warning for missing development packages here, too.
31227
31228 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31229
31230         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31231
31232 2009-06-25  Eric Blake  <ebb9@byu.net>
31233
31234         version-etc: fix regression
31235         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31236         gcc.
31237         (version_etc): Use it, to catch bugs with trailing NULL.
31238         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31239         (version_etc_va): Fix logic bug.
31240         * modules/version-etc-tests: Add test.
31241         * tests/test-version-etc.c: New file.
31242         * tests/test-version-etc.sh: Likewise.
31243
31244 2009-06-25  Sam Steingold  <sds@gnu.org>
31245
31246         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31247         mbtowc declaration.
31248
31249 2009-06-25  Eric Blake  <ebb9@byu.net>
31250
31251         fpurge: migrate into <stdio.h>
31252         * lib/fpurge.h: Delete...
31253         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31254         * lib/fpurge.c (fpurge): Change declaring header.
31255         * modules/fpurge (Files): Drop deleted file.
31256         (Depends-on): Add stdio.
31257         (configure.ac): Set witness.
31258         * modules/stdio (Makefile.am): Support fpurge macros.
31259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31260         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31261         * lib/fflush.c: Update client.
31262         * tests/test-fpurge.c: Likewise.
31263         * NEWS: Mention the change.
31264
31265 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31266
31267         * lib/argp-version-etc.c (program_authors): Add const
31268         qualifier.
31269         * lib/version-etc.c: Fix typos in the comments.
31270         * modules/argp-version-etc: Depends on version-etc.
31271
31272 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31273
31274         argp-version-etc: new module.
31275
31276         * lib/argp-version-etc.c: New file.
31277         * lib/argp-version-etc.h: New file.
31278         * modules/argp-version-etc: New file.
31279         * modules/argp-version-etc-tests: New file.
31280         * tests/test-argp-version-etc.c: New test.
31281         * tests/test-argp-version-etc-1.sh: New test.
31282
31283 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31284
31285         Provide additional interfaces and documentation for version-etc
31286         module.
31287
31288         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31289         interfaces.
31290         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31291         prototypes.
31292
31293 2009-06-24  Bruno Haible  <bruno@clisp.org>
31294
31295         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31296         HAVE_LIB${NAME} macro.
31297         Reported by Sam Steingold <sds@gnu.org>.
31298
31299 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31300
31301         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31302         needed.
31303
31304 2009-06-21  Bruno Haible  <bruno@clisp.org>
31305
31306         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31307         work.
31308         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31309         together with LIB${NAME}, LTLIB${NAME}.
31310         Reported by Sam Steingold <sds@gnu.org>.
31311
31312 2009-06-20  Jim Meyering  <meyering@redhat.com>
31313
31314         tests: make sc_require_test_exit_idiom more generic
31315         * top/maint.mk (Exit_witness_file): New overridable variable.
31316         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31317         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31318
31319 2009-06-19  Jim Meyering  <meyering@redhat.com>
31320
31321         hash: reverse order of src/dst parameters in an internal interface
31322         * lib/hash.c (transfer_entries): Reverse order of parameters to
31323         put DST before SRC.  Adjust callers.
31324
31325         tests: test-hash: avoid wholesale duplication
31326         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31327         Instead, use a loop and add a single conditional.
31328
31329         tests: test-hash: allow seed selection via a command line argument
31330         * tests/test-hash.c (get_seed): New function.
31331         (main): Use it.
31332
31333 2009-06-19  Eric Blake  <ebb9@byu.net>
31334
31335         hash: avoid memory leak on allocation failure
31336         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31337         failure.  Factor repeated algorithm...
31338         (transfer_entries): ...into new helper routine.
31339         (hash_delete): React to hash_rehash return value.
31340
31341         hash: reduce memory pressure in hash_rehash no-op case
31342         * lib/hash.c (next_prime): Avoid overflow.
31343         (hash_initialize): Factor bucket size computation...
31344         (compute_bucket_size): ...into new helper function.
31345         (hash_rehash): Use new function and open coding to reduce memory
31346         pressure, and avoid a memory leak in USE_OBSTACK code.
31347         Reported by Jim Meyering.
31348
31349 2009-06-18  Eric Blake  <ebb9@byu.net>
31350
31351         hash: make rotation more obvious
31352         * modules/hash (Depends-on): Add bitrotate and stdint.
31353         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31354         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31355         (SIZE_MAX): Rely on headers for definition.
31356         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31357         (raw_hasher): Use rotr_sz.
31358         Suggested by Jim Meyering.
31359
31360         hash: fix memory leak in last patch
31361         * lib/hash.c (hash_rehash): Avoid memory leak.
31362
31363         hash: avoid no-op rehashing
31364         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31365
31366         hash: provide default callback functions
31367         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31368         (hash_initialize): Use them as defaults.
31369         * tests/test-hash.c (main): Test this.
31370
31371         hash: minor optimization
31372         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31373         when possible.
31374         (hash_initialize): Document this promise.
31375         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31376         * tests/test-hash.c (hash_compare_strings): Test this.
31377
31378 2009-06-18  Bruno Haible  <bruno@clisp.org>
31379
31380         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31381         going to be replaced anyway.
31382
31383 2009-06-18  Bruno Haible  <bruno@clisp.org>
31384
31385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31386         in one place.
31387         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31388         be replaced anyway.
31389
31390 2009-06-18  Eric Blake  <ebb9@byu.net>
31391
31392         hash: check for resize before insertion
31393         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31394         threshold before insertion, so that a pathological hash_rehash
31395         that fills every bucket can still trigger another rehash.
31396
31397 2009-06-18  Jim Meyering  <meyering@redhat.com>
31398
31399         hash-tests: add a loop around the small tests
31400         * tests/test-hash.c (main): Repeat small tests with selected
31401         small initial table sizes.
31402
31403 2009-06-17  Eric Blake  <ebb9@byu.net>
31404
31405         hash: minor cleanups
31406         * lib/hash.h (hash_entry): Make opaque, by moving...
31407         * lib/hash.c (hash_entry): ...here.
31408         (hash_insert): Clarify restrictions on what can be inserted.
31409         (hash_get_next): Clarify when it is safe to remove an element
31410         during traversal.
31411         (check_tuning): Skip verification when tuning is known safe.
31412         (hash_initialize): Clarify restrictions on tuning.
31413
31414 2009-06-17  Jim Meyering  <jim@meyering.net>
31415         and Eric Blake  <ebb9@byu.net>
31416
31417         hash-tests: new module
31418         * modules/hash-tests: New file.
31419         * tests/test-hash.c: New file.
31420
31421 2009-06-17  Eric Blake  <ebb9@byu.net>
31422
31423         strstr-simple: document new module
31424         * MODULES.html.sh: Document new module.
31425
31426         strstr, strcasestr: replace on platforms with broken memchr
31427         * modules/strstr: Split into...
31428         * modules/strstr-simple: ...new module that does not care about
31429         performance, but does care about glibc bug.
31430         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31431         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31432         if platform memchr is broken, per Debian bug 521737.
31433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31434         memchr.
31435         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31436         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31437         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31438         * modules/mountlist (Depends-on): Add strstr-simple.
31439         * modules/gen-uni-tables (Depends-on): Likewise.
31440         * modules/argz (Depends-on): Add strstr.
31441
31442 2009-06-17  Bruno Haible  <bruno@clisp.org>
31443
31444         * modules/posix_spawn-internal (Depends-on): Add errno.
31445
31446 2009-06-17  Bruno Haible  <bruno@clisp.org>
31447
31448         Define missing ESTALE on Interix 3.5.
31449         * lib/errno.in.h (ESTALE): Assign a value if missing.
31450         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31451         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31452         missing.
31453         * doc/posix-headers/errno.texi: Mention the Interix bug.
31454         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31455
31456 2009-06-15  Eric Blake  <ebb9@byu.net>
31457
31458         memchr, memchr2: add valgrind exception
31459         * lib/memchr.valgrind: New file.
31460         * lib/memchr2.valgrind: New file.
31461         * modules/memchr (Files): Distribute valgrind file.
31462         * modules/memchr2 (Files): Likewise.
31463
31464         docs: memchr is no longer obsolete
31465         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31466         * lib/string.in.h (memchr): Simplify logic.
31467
31468 2009-06-14  Jim Meyering  <meyering@redhat.com>
31469
31470         link-follow: fix the "checking..." message to not mention trailing slash
31471         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31472         never considered trailing slashes.
31473
31474 2009-06-14  Bruno Haible  <bruno@clisp.org>
31475
31476         * m4/memchr.m4: Mention also the bug on IA-64.
31477         * doc/posix-functions/memchr.texi: Likewise.
31478
31479 2009-06-12  Eric Blake  <ebb9@byu.net>
31480
31481         memchr: detect broken x86_64 and alpha implementations
31482         * modules/memchr-tests (Depends-on): Move mmap detection...
31483         * modules/memchr (Depends-on): ...here.
31484         (configure.ac): Set indicator.
31485         * lib/string.in.h (memchr): Declare replacement.
31486         * modules/string (Makefile.am): Trigger replacement.
31487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31488         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31489         bugs.
31490         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31491         * modules/getpagesize (License): Relax license.
31492
31493 2009-06-11  Bruno Haible  <bruno@clisp.org>
31494
31495         * lib/idpriv.h: Add more references.
31496
31497 2009-06-08  Bruno Haible  <bruno@clisp.org>
31498
31499         Tests for module 'idpriv-droptemp'.
31500         * modules/idpriv-droptemp-tests: New file.
31501         * tests/test-idpriv-droptemp.sh: New file.
31502         * tests/test-idpriv-droptemp.su.sh: New file.
31503         * tests/test-idpriv-droptemp.c: New file.
31504
31505         New module 'idpriv-droptemp'.
31506         * lib/idpriv-droptemp.c: New file.
31507         * modules/idpriv-droptemp: New file.
31508
31509 2009-06-08  Bruno Haible  <bruno@clisp.org>
31510
31511         Tests for module 'idpriv-drop'.
31512         * modules/idpriv-drop-tests: New file.
31513         * tests/test-idpriv-drop.sh: New file.
31514         * tests/test-idpriv-drop.su.sh: New file.
31515         * tests/test-idpriv-drop.c: New file.
31516
31517         New module 'idpriv-drop'.
31518         * lib/idpriv.h: New file.
31519         * lib-idpriv-drop.c: New file.
31520         * m4/idpriv.m4: New file.
31521         * modules/idpriv-drop: New file.
31522
31523 2009-06-08  Bruno Haible  <bruno@clisp.org>
31524
31525         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31526         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31527         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31528         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31529         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31530         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31531         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31532
31533 2009-06-08  Eric Blake  <ebb9@byu.net>
31534
31535         test-strstr: use memory fence, when possible
31536         * tests/test-strstr.c (main): Use memory fence, in order to be
31537         more likely to trigger Debian bug 521737.
31538         * modules/strstr-tests (Files): Pull in additional files.
31539
31540         memchr: no longer obsolete, for wider field testing
31541         * modules/memchr (Status, Notice): Delete, this module is no
31542         longer obsolete.
31543         * modules/vasnprintf (Depends-on): Add memchr.
31544
31545 2009-06-07  Jim Meyering  <meyering@redhat.com>
31546
31547         hash: declare some functions with the warn_unused_result attribute
31548         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31549
31550 2009-06-07  Bruno Haible  <bruno@clisp.org>
31551
31552         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31553         Reported by Eric Blake.
31554
31555 2009-06-06  Eric Blake  <ebb9@byu.net>
31556
31557         test-alignof: fix typo with long double
31558         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31559         compiler error.
31560
31561 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31562
31563         Escape non-texinfo { and }s.
31564         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31565         markup error.
31566
31567 2009-06-04  Jim Meyering  <meyering@redhat.com>
31568
31569         gitlog-to-changelog: don't infloop on an empty commit log
31570         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31571         Reported by Boris Petersen <transacid@centerim.org>.
31572
31573 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31574
31575         version-etc: extend for packagers
31576         Add three new configure options, intended for packagers:
31577           --with-packager="packager name"
31578           --with-packager-version="packager-specific version"
31579           --with-packager-bug-reports="packager bug reporting"
31580         An example with coreutils:
31581           $ ./configure \
31582             --with-packager=Gentoo \
31583             --with-packager-bug-report=http://bugs.gentoo.org/ \
31584             --with-packager-version="patchset 1.6"
31585           $ ./src/ls --version | head -n2
31586           ls (GNU coreutils) 7.1-dirty
31587           Packaged by Gentoo (patchset 1.6)
31588         Note that the bug reporting info via --help doesn't show up because
31589         coreutils uses its own custom emit_bug_reporting_address() implementation
31590         in src/system.h.  If it didn't, it'd look like:
31591           $ ./src/ls --help | tail -n4
31592           Report bugs to <bug-coreutils@gnu.org>.
31593           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31594           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31595           General help using GNU software: <http://www.gnu.org/gethelp/>.
31596         * lib/version-etc.c: Print new information, if provided.
31597         * m4/version-etc.m4: New file.
31598         * modules/version-etc (Files): Add m4/version-etc.m4.
31599         (configure.ac): Add gl_VERSION_ETC.
31600
31601 2009-05-31  Bruno Haible  <bruno@clisp.org>
31602
31603         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31604         and 'int64_t'.
31605         * modules/alignof-tests (Dependencies): Add stdint.
31606         Reported by Eric Blake.
31607
31608 2009-05-31  Bruno Haible  <bruno@clisp.org>
31609
31610         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31611         restriction due to compiler bugs.
31612         Reported by Eric Blake.
31613
31614 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31615             Bruno Haible  <bruno@clisp.org>
31616
31617         Fix test-alignof failure.
31618         * lib/alignof.h (alignof_slot): New macro.
31619         (alignof_type): New macro, with the same semantics as the previous
31620         'alignof'.
31621         (alignof): Alias to alignof_slot.
31622         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31623         check that the results are usable as constant expressions.
31624
31625 2009-05-31  Bruno Haible  <bruno@clisp.org>
31626
31627         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31628         * tests/test-memchr.c (main): Check that memchr does not read past the
31629         first occurrence of the byte.
31630         * tests/test-strstr.c (main): Update comment.
31631         Suggested by Eric Blake.
31632
31633 2009-05-30  Bruno Haible  <bruno@clisp.org>
31634
31635         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31636         detail how to use dumpbin.
31637         Reported by David Byron <dbyron@dbyron.com>.
31638
31639 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31640
31641         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31642
31643 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31644
31645         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31646
31647 2009-05-28  Bruno Haible  <bruno@clisp.org>
31648
31649         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31650         build-aux/ files.
31651
31652 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31653
31654         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31655
31656 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31657
31658         * gnulib-tool (sed_transform_main_lib_file)
31659         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31660         regexps.
31661
31662 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31663
31664         * tests/test-strstr.c: Add another self-test.
31665         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31666         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31667
31668 2009-05-23  Bruno Haible  <bruno@clisp.org>
31669
31670         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31671         change.
31672
31673 2009-05-21  Bruno Haible  <bruno@clisp.org>
31674
31675         Simplify use of mode_t varargs.
31676         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31677         uses 'mode_t' or 'int'.
31678         * lib/openat.c (openat): Likewise.
31679         * lib/open-safer.c (open_safer): Likewise.
31680         * m4/mode_t.m4: New file.
31681         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31682         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31683         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31684         * modules/open (Files): Add m4/mode_t.m4.
31685         * modules/openat (Files): Likewise.
31686         * modules/fcntl-safer (Files): Likewise.
31687         Suggested by Eric Blake.
31688
31689 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31690
31691         * doc/glibc-functions/fallocate.texi: New file.
31692         * doc/gnulib.texi: Include it.
31693
31694 2009-05-21  Eric Blake  <ebb9@byu.net>
31695             Bruno Haible  <bruno@clisp.org>
31696
31697         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31698         invocations.
31699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31700
31701 2009-05-21  Eric Blake  <ebb9@byu.net>
31702             Bruno Haible  <bruno@clisp.org>
31703
31704         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31705         include_next. Fix of 2008-11-20 commit.
31706         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31707         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31708         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31709         NEXT_MATH_H.
31710         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31711         instead of NEXT_MATH_H.
31712
31713 2009-05-21  Bruno Haible  <bruno@clisp.org>
31714
31715         Avoid redefinition warnings for SIZE_MAX.
31716         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31717         Reported by Simon Josefsson.
31718
31719 2009-05-21  Bruno Haible  <bruno@clisp.org>
31720
31721         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31722         AC_CACHE_VAL.
31723
31724 2009-05-20  Bruno Haible  <bruno@clisp.org>
31725
31726         Make zeroptr.h work on mingw.
31727         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31728         mprotect.
31729         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31730         * modules/memchr2-tests (configure.ac): Likewise.
31731         * modules/memcmp-tests (configure.ac): Likewise.
31732         * modules/memmem-tests (configure.ac): Likewise.
31733         * modules/memrchr-tests (configure.ac): Likewise.
31734         Reported by Simon Josefsson.
31735
31736 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31737
31738         * tests/test-glob.c: Include string.h for strcmp prototype.
31739
31740 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31741
31742         * modules/getdelim (Depends-on): Add explicit stdint, although it
31743         was implicitly already pulled in via realloc-posix.
31744         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31745
31746 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31747
31748         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31749         G. Christensen" <tgc@jupiterrise.com>.
31750         * m4/sys_socket_h.m4: Check for sa_family_t.
31751         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31752         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31753         * tests/test-sys_socket.c: Check that sa_family_t works.
31754
31755 2009-05-18  Eric Blake  <ebb9@byu.net>
31756
31757         maint.mk: allow gnulib_dir in VPATH build
31758         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31759
31760 2009-05-15  Jim Meyering  <meyering@redhat.com>
31761
31762         maint.mk: Give gnulib_dir a default definition.
31763         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31764         Thus, most packages no longer need to specify this variable in cfg.mk
31765
31766 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31767
31768         rename.m4: fix typos that would make non-mingw cross-configure fail
31769         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31770
31771 2009-05-13  Eric Blake  <ebb9@byu.net>
31772
31773         mmap-anon: avoid out-of-order autoconf expansion
31774         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31775         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31776         * modules/memchr-tests (Depends-on): Add extensions.
31777         * modules/memchr2-tests (Depends-on): Add extensions.
31778         * modules/memcmp-tests (Depends-on): Add extensions.
31779         * modules/memmem-tests (Depends-on): Add extensions.
31780         * modules/memrchr-tests (Depends-on): Add extensions.
31781
31782 2009-05-13  Bruno Haible  <bruno@clisp.org>
31783
31784         Make some tests ISO C 99 compliant.
31785         * tests/zerosize-ptr.h: New file.
31786         * tests/test-memchr.c: Include zerosize-ptr.h.
31787         (main): Use a zero-size object pointer instead of NULL.
31788         * tests/test-memchr2.c: Include zerosize-ptr.h.
31789         (main): Use a zero-size object pointer instead of NULL.
31790         * tests/test-memcmp.c: Include zerosize-ptr.h.
31791         (main): Use a zero-size object pointer instead of NULL.
31792         * tests/test-memmem.c: Include zerosize-ptr.h.
31793         (main): Use a zero-size object pointer instead of NULL.
31794         * tests/test-memrchr.c: Include zerosize-ptr.h.
31795         (main): Use a zero-size object pointer instead of NULL.
31796         * modules/memchr-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/memchr2-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         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31805         m4/mmap-anon.m4.
31806         (Depends-on): Add getpagesize.
31807         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31808         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31809         m4/mmap-anon.m4.
31810         (Depends-on): Add getpagesize.
31811         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31812         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31813         m4/mmap-anon.m4.
31814         (Depends-on): Add getpagesize.
31815         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31816
31817 2009-05-12  Bruno Haible  <bruno@clisp.org>
31818
31819         Tests for module 'alignof'.
31820         * modules/alignof-tests: New file.
31821         * tests/test-alignof.c: New file.
31822
31823 2009-05-12  Bruno Haible  <bruno@clisp.org>
31824
31825         Fix alignof macro.
31826         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31827         vendor compilers that are always correct.
31828
31829 2009-05-12  Bruno Haible  <bruno@clisp.org>
31830
31831         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31832         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31833         not whether its fully works.
31834
31835 2009-05-12  Bruno Haible  <bruno@clisp.org>
31836
31837         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31838
31839 2009-05-12  Jim Meyering  <meyering@redhat.com>
31840
31841         * top/maint.mk: Adjust backslash alignment.
31842
31843 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31844
31845         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31846
31847 2009-05-11  Eric Blake  <ebb9@byu.net>
31848
31849         argp: avoid undefined behavior
31850         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31851         macros.
31852
31853 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31854
31855         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31856         user.name to prevent git commit from complaining.
31857
31858 2009-05-10  Bruno Haible  <bruno@clisp.org>
31859
31860         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31861         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31862         it rewrites every file name only once.
31863         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31864
31865 2009-05-08  Bruno Haible  <bruno@clisp.org>
31866
31867         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31868         instead of 'max'.
31869
31870 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31871
31872         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31873         sockaddr_storage test.
31874
31875 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31876
31877         * modules/sys_socket (Makefile.am): Substitute
31878         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31879         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31880         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31881         * tests/test-sys_socket.c: Check sockaddr_storage.
31882
31883 2009-05-08  Bruno Haible  <bruno@clisp.org>
31884
31885         New module 'alignof'.
31886         * lib/alignof.h: New file.
31887         * modules/alignof: New file.
31888
31889 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31890             Bruno Haible  <bruno@clisp.org>
31891
31892         Fix test-file-has-acl on FreeBSD.
31893         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31894         mask is implicitly added.
31895         * tests/test-file-has-acl.c: Include <signal.h>.
31896         (main): Terminate the test after 5 seconds.
31897         * modules/acl-tests (configure.ac): Check for alarm function.
31898
31899 2009-05-04  Bruno Haible  <bruno@clisp.org>
31900
31901         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31902         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31903         * modules/errno (configure.ac): Drop AC_REQUIRE.
31904         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31905         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31906
31907 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31908
31909         * modules/glob-tests: New module.
31910         * tests/test-glob.c: Add.
31911
31912 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31913
31914         * modules/fnmatch-tests: New module.
31915         * tests/test-fnmatch.c: Add.
31916
31917 2009-05-04  Eric Blake  <ebb9@byu.net>
31918
31919         maint: make the new no-submodule-changes rule VPATH-safe
31920         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31921
31922 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31923             Bruno Haible  <bruno@clisp.org>
31924
31925         acl: Fix infinite loop on FreeBSD.
31926         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31927         of return value from acl_get_entry.
31928         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31929         Likewise.
31930
31931 2009-05-03  Bruno Haible  <bruno@clisp.org>
31932
31933         * lib/acl-internal.h (acl_entries): Clarify return value.
31934         * lib/acl_entries.c (acl_entries): Likewise.
31935
31936 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31937
31938         Bug fix in acl module.
31939         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31940
31941 2009-05-03  Bruno Haible  <bruno@clisp.org>
31942
31943         Create gperf-generated file in the source dir, not in the build dir.
31944         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31945         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31946         * modules/unicase/locale-language (unicase/locale-languages.h):
31947         Likewise.
31948         * modules/unicase/special-casing (unicase/special-casing-table.h):
31949         Likewise.
31950         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31951         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31952         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31953         Reported by Ralf Wildenhues.
31954
31955 2009-05-03  Bruno Haible  <bruno@clisp.org>
31956
31957         * modules/fnmatch (Description, configure.ac): Taken from
31958         fnmatch-posix.
31959         * modules/fnmatch-posix: Turn into a symbolic reference to the
31960         'fnmatch' module, and deprecate.
31961         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31962
31963 2009-05-03  Bruno Haible  <bruno@clisp.org>
31964
31965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31966         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31967         Reported by Ralf Wildenhues.
31968
31969 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31970
31971         * m4/fnmatch.m4: Fix fnmatch re-define.
31972
31973 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31974
31975         priv-set: new module and tests; adapt write-any-file
31976         * lib/priv-set.c: New file.
31977         * lib/priv-set.h: New file.
31978         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31979         * lib/write-any-file.c: Simplify by using priv-set module.
31980         * m4/priv-set.m4: New file.
31981         * modules/priv-set: New file.
31982         * modules/unlinkdir: Add dependency on priv-set module.
31983         * modules/write-any-file: Likewise.
31984
31985         Tests for module 'priv-set'.
31986         * modules/priv-set-tests: New file.
31987         * tests/test-priv-set.c: New file.
31988
31989 2009-05-03  Jim Meyering  <meyering@redhat.com>
31990             Bruno Haible  <bruno@clisp.org>
31991
31992         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31993         use the converted UTF-8 variant of the name instead.
31994
31995 2009-05-03  Jim Meyering  <meyering@redhat.com>
31996
31997         tests: tighten some getdate tests
31998         * tests/test-getdate.c (main): Tighten tests: require equality,
31999         not just greater than.  Set TZ envvar to UTC0.
32000
32001 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32002
32003         getdate: correctly interpret "next monday" when run on a Monday
32004         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32005         that e.g., "next tues" (when run on a tuesday) results in a date
32006         that is one week in the future, and not today's date.
32007         I.e., add a week when the wday is the same as the current one.
32008         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32009         and earlier by Martin Bernreuther and Jan Minář.
32010         * tests/test-getdate.c (main): Check that "next DAY" is always in
32011         the future and that "last DAY" is always in the past.
32012
32013 2009-05-02  Jim Meyering  <meyering@redhat.com>
32014
32015         build: ensure that a release build fails when a submodule is unclean
32016         * top/maint.mk (no-submodule-changes): New rule.
32017         (alpha beta major): Depend on it.
32018
32019 2009-05-02  Bruno Haible  <bruno@clisp.org>
32020
32021         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32022         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32023         shell variable gl_fnmatch_required to detect which variant is
32024         requested.
32025         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32026         gl_FUNC_FNMATCH_POSIX.
32027         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32028         exclude fnmatch-posix.
32029
32030 2009-05-02  Bruno Haible  <bruno@clisp.org>
32031
32032         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32033         * modules/mbsrtowcs (License): Change to LGPLv2+.
32034         * modules/strnlen1 (License): Likewise.
32035         Reported by Simon Josefsson.
32036
32037 2009-05-02  Bruno Haible  <bruno@clisp.org>
32038
32039         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32040         "cross".
32041         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32042         gnulib-tool was called with option --source-base=lib.
32043
32044 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32045
32046         Use automake *-local hooks without commands, for extensibility.
32047         * modules/localcharset (Makefile.am): Rename install-exec-local
32048         rule to install-exec-localcharset, and make it a prerequisite of
32049         install-exec-local.  Likewise, rename the uninstall-local rule to
32050         uninstall-localcharset, and make it a prerequisite of the former.
32051
32052 2009-05-01  Bruno Haible  <bruno@clisp.org>
32053
32054         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32055         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32056         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32058         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32059         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32060         m4/locale-zh.m4, m4/codeset.m4.
32061
32062         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32063         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32064         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32065         m4/locale-zh.m4.
32066
32067         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32068         REPLACE_WCRTOMB if mbstate_t must be replaced.
32069         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32070         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32071
32072 2009-05-01  Bruno Haible  <bruno@clisp.org>
32073
32074         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32075         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32076         dngettext, dcngettext, textdomain, bindtextdomain,
32077         bind_textdomain_codeset): Undefine before redefining.
32078
32079 2009-04-30  Bruno Haible  <bruno@clisp.org>
32080
32081         Fix bug introduced on 2009-04-25.
32082         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32083         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32084         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32085         is defined.
32086         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32087         is defined.
32088         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32089         is defined.
32090         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32091
32092 2009-04-28  Bruno Haible  <bruno@clisp.org>
32093
32094         Comment tweaks.
32095         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32096         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32097         * lib/unicase.h (u*_casexfrm): Likewise.
32098         Reported by Paolo Bonzini.
32099
32100 2009-04-28  Bruno Haible  <bruno@clisp.org>
32101
32102         Fix a compilation error.
32103         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32104         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32105         Reported by Jim Meyering.
32106
32107 2009-04-27  Bruno Haible  <bruno@clisp.org>
32108
32109         New module 'libunistring'.
32110         * modules/libunistring: New file.
32111         * m4/libunistring.m4: New file.
32112         * MODULES.html.sh (Unicode string functions): Add it.
32113
32114 2009-04-27  Eric Blake  <ebb9@byu.net>
32115
32116         maint.mk: allow package-specific header to provide <config.h>
32117         * top/maint.mk (sc_require_config_h): New variable.
32118         (sc_require_config_h, sc_require_config_h_first): Use it.
32119
32120 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32121
32122         * top/maint.mk (sc_avoid_if_before_free): Except
32123         useless-if-before-free script.
32124
32125 2009-04-27  Eric Blake  <ebb9@byu.net>
32126
32127         maintainer-makefile: depend on all required helper scripts
32128         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32129         useless-if-before-free.
32130         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32131         version, rather than assuming gnulib checkout is available.
32132         Reported by Simen Josefsson.
32133
32134 2009-04-26  Bruno Haible  <bruno@clisp.org>
32135
32136         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32137         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32138         "../" or "..".
32139
32140 2009-04-26  Bruno Haible  <bruno@clisp.org>
32141
32142         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32143         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32144         AC_LIB_HAVE_LINKFLAGS.
32145
32146 2009-04-26  Bruno Haible  <bruno@clisp.org>
32147
32148         Simplify calling convention of u*_conv_from_encoding.
32149         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32150         u32_conv_from_encoding): Expect a resultbuf argument and return the
32151         result directly as a pointer.
32152         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32153         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32154         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32155         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32156         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32157         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32158         Update.
32159         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32160         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32161         * lib/vasnprintf.c (VASNPRINTF): Update.
32162         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32163         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32164         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32165         * NEWS: Mention the change.
32166
32167 2009-04-26  Bruno Haible  <bruno@clisp.org>
32168
32169         Simplify calling convention of u*_conv_to_encoding.
32170         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32171         u32_conv_to_encoding): Expect a resultbuf argument and return the
32172         result directly as a pointer.
32173         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32174         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32175         freeing scaled_offsets if mem_iconveha failed.
32176         * lib/unicase/u-casexfrm.h (FUNC): Update.
32177         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32178         * lib/vasnprintf.c (VASNPRINTF): Update.
32179         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32180         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32181         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32182         * NEWS: Mention the change.
32183
32184 2009-04-26  Bruno Haible  <bruno@clisp.org>
32185
32186         Avoid test failures on AIX and OSF/1.
32187         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32188         malloc(0).
32189         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32190         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32191         Likewise.
32192         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32193         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32194         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32195         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32196         * doc/posix-functions/malloc.texi: Document the portability problem
32197         related to malloc(0).
32198
32199 2009-04-26  Bruno Haible  <bruno@clisp.org>
32200
32201         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32202         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32203         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32204
32205 2009-04-25  Bruno Haible  <bruno@clisp.org>
32206
32207         Avoid link error when creating a namespace clean library.
32208         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32209         as macro with arguments if already defined as an alias.
32210         * lib/signbitf.c (gl_signbitf): Don't undefine.
32211         * lib/signbitd.c (gl_signbitd): Don't undefine.
32212         * lib/signbitl.c (gl_signbitl): Don't undefine.
32213
32214 2009-04-25  Jim Meyering  <meyering@redhat.com>
32215
32216         vc-list-files: fix another quoting bug
32217         * build-aux/vc-list-files: Avoid sed backslash expansion
32218         of pathological directory names.
32219
32220 2009-04-25  Eric Blake  <ebb9@byu.net>
32221
32222         vc-list-files: fix shell quoting error
32223         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32224         timestamp.
32225
32226 2009-04-25  Jim Meyering  <meyering@redhat.com>
32227
32228         vc-list-files: restore lost functionality with subdir argument
32229         * build-aux/vc-list-files: When given a non-"." sub-directory
32230         argument, substitute the $dir/ prefix back onto each resulting name.
32231         Otherwise, coreutils' root_tests check would fail.
32232
32233 2009-04-24  Eric Blake  <ebb9@byu.net>
32234
32235         vc-list-files: ignore git symlinks
32236         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32237         than ls-files, to ignore git symlinks.
32238
32239         maint.mk: import improvements from m4
32240         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32241         (move_if_change): Delete unused macro.
32242         (news-date-check, vc-diff-check): Support VPATH builds.
32243         (announcement): Likewise.  Split --bootstrap-tools list...
32244         (boostrap-tools): ...into separate list, which can be overridden
32245         in cfg.mk.
32246         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32247         requiring dependency on useless-if-before-free module.
32248         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32249         Support VPATH builds.
32250
32251 2009-04-24  Jim Meyering  <meyering@redhat.com>
32252
32253         maint.mk: remove coreutils-specific rules and variables
32254         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32255         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32256         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32257
32258         maint.mk: remove obsolete rule
32259         * top/maint.mk (rel-check): Remove rule.
32260         (WGET, WGETFLAGS): Remove now-unused variables.
32261
32262 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32263
32264         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32265         consistency.
32266
32267         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32268         '$(PATH_SEPARATOR)' instead of ':'.
32269
32270 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32271
32272         * lib/getopt1.c (main): Use 'const' for static array.
32273
32274 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32275
32276         * top/maint.mk: Sync with coreutils.
32277         * NEWS: Explain incompatibilities.
32278
32279 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32280             Bruno Haible  <bruno@clisp.org>
32281
32282         Fix cross-compilation results.
32283         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32284         statement, as third argument of AC_TRY_RUN.
32285         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32286         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32287         Likewise.
32288         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32289         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32290         Likewise.
32291         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32292         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32293         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32294
32295 2009-04-20  Bruno Haible  <bruno@clisp.org>
32296
32297         Avoid test failure on mingw.
32298         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32299
32300 2009-04-20  Bruno Haible  <bruno@clisp.org>
32301
32302         Avoid compilation error on mingw.
32303         * modules/localename-tests (Depends-on): Add locale.
32304
32305 2009-04-19  Bruno Haible  <bruno@clisp.org>
32306
32307         Support for building a shared library on Windows platforms.
32308         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32309         (main): Test the presence of UNINORM_NFC here.
32310         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32311         (main): Test the presence of UNINORM_NFD here.
32312         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32313         (main): Test the presence of UNINORM_NFKC here.
32314         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32315         (main): Test the presence of UNINORM_NFKD here.
32316
32317 2009-04-19  Bruno Haible  <bruno@clisp.org>
32318
32319         Avoid a compiler warning.
32320         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32321         Change type of variable 'sequence'.
32322
32323 2009-04-19  Bruno Haible  <bruno@clisp.org>
32324
32325         * modules/configmake (Makefile.am): When the contents of configmake.h
32326         does not change, arrange to preserve its modification time.
32327
32328 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32329
32330         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32331         gettext domain.
32332
32333 2009-04-16  Jim Meyering  <meyering@redhat.com>
32334
32335         useless-if-before-free: improve conversion code
32336         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32337         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32338
32339 2009-04-14  Bruno Haible  <bruno@clisp.org>
32340
32341         * modules/fcntl (Depends-on): Add extensions.
32342         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32343
32344 2009-04-12  Ben Pfaff  <blp@gnu.org>
32345
32346         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32347         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32348
32349 2009-03-20  Ben Pfaff  <blp@gnu.org>
32350
32351         Make rename replace existing destinations on Windows.
32352         * m4/rename.m4: Add test for Mingw.
32353         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32354         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32355         * doc/posix-functions/rename.texi: Document.
32356
32357 2009-04-10  Bruno Haible  <bruno@clisp.org>
32358
32359         New include file "iconveh.h".
32360         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32361         * lib/striconveh.h: Include it.
32362         (enum iconv_ilseq_handler): Remove definition.
32363         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32364         striconveh.h.
32365         * lib/striconveha.c: Include striconveh.h.
32366         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32367         * modules/striconveh (Files): Add lib/iconveh.h.
32368         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32369         lib/striconveh.h.
32370
32371 2009-04-10  Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/uniconv.h: Update comment.
32374
32375 2009-04-10  Bruno Haible  <bruno@clisp.org>
32376
32377         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32378         always.
32379         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32380         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32381         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32382         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32383         "unistring-notinline.h", so that the function gets defined always.
32384         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32385         * lib/unistr/u8-uctomb.c: Likewise.
32386         * lib/unistr/u16-mbtouc.c: Likewise.
32387         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32388         * lib/unistr/u16-uctomb.c: Likewise.
32389         * lib/unistr/u32-mbtouc.c: Likewise.
32390         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32391         * lib/unistr/u32-uctomb.c: Likewise.
32392
32393 2009-04-10  Bruno Haible  <bruno@clisp.org>
32394
32395         Mark 'utime' obsolete.
32396         * modules/utime (Status, Notice): New sections.
32397         Suggested by Jim Meyering.
32398
32399         Fix cross-compile guess for utime test.
32400         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32401         autoconf.
32402         * doc/posix-functions/utime.texi: Give more precisions.
32403         Reported by Jan <ipif@ymail.com>.
32404
32405 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32406
32407         filevercmp: correct today's change
32408         * lib/filevercmp.c: Also handle coreutils' test inputs.
32409         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32410
32411         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32412         for reporting it.
32413         * lib/filevercmp.c: Special handle for "", "." and "..".
32414         * tests/test-filevercmp.c: Enlarge the set suite.
32415
32416 2009-04-07  Jim Meyering  <meyering@redhat.com>
32417
32418         useless-if-before-free: show how to remove braced useless free, too
32419         * build-aux/useless-if-before-free: still only in a comment, though.
32420
32421 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32422
32423         maint.mk: import changes to syntax-check macros from coreutils
32424         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32425         Use them in the relevant macros.
32426
32427 2009-04-06  Bruno Haible  <bruno@clisp.org>
32428
32429         Fix unportable use of bit-fields.
32430         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32431         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32432         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32433
32434 2009-04-06  Bruno Haible  <bruno@clisp.org>
32435
32436         Avoid test failures on AIX and OSF/1.
32437         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32438         that malloc(0) = NULL.
32439         * tests/unicase/test-u8-tolower.c (check): Likewise.
32440         * tests/unicase/test-u8-totitle.c (check): Likewise.
32441         * tests/unicase/test-u8-toupper.c (check): Likewise.
32442         * tests/unicase/test-u16-casefold.c (check): Likewise.
32443         * tests/unicase/test-u16-tolower.c (check): Likewise.
32444         * tests/unicase/test-u16-totitle.c (check): Likewise.
32445         * tests/unicase/test-u16-toupper.c (check): Likewise.
32446         * tests/unicase/test-u32-casefold.c (check): Likewise.
32447         * tests/unicase/test-u32-tolower.c (check): Likewise.
32448         * tests/unicase/test-u32-totitle.c (check): Likewise.
32449         * tests/unicase/test-u32-toupper.c (check): Likewise.
32450         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32451         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32452         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32453         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32454         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32455         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32456         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32457         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32458         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32459         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32460         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32461         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32462
32463 2009-04-05  Bruno Haible  <bruno@clisp.org>
32464
32465         Work around an autoconf limitation.
32466         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32467         comment line if it would be longer than 3 KB.
32468
32469 2009-04-05  Bruno Haible  <bruno@clisp.org>
32470
32471         Avoid test failure with libiconv-1.13.
32472         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32473         of the expected test results.
32474
32475 2009-04-05  Bruno Haible  <bruno@clisp.org>
32476
32477         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32478         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32479         that it should be installed.
32480
32481 2009-04-05  Bruno Haible  <bruno@clisp.org>
32482
32483         * gnulib-tool: New option --copy-file.
32484         (func_usage): Document it.
32485         (func_dest_tmpfilename): Moved out of func_import.
32486         (func_add_file, func_update_file): New functions, extracted from
32487         func_import.
32488         (func_import): Update.
32489
32490 2009-04-05  Karl Berry  <karl@gnu.org>
32491
32492         * README: prominently mention gnulib-tool.
32493         Rearrange sections so getting the code is near the top.
32494
32495 2009-04-05  Bruno Haible  <bruno@clisp.org>
32496
32497         * lib/unicase.h: Mention u*_cmp2.
32498         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32499         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32500         * lib/unicase/ulc-casecmp.c: Likewise.
32501         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32502         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32503         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32504         unistr/u8-cmp.
32505         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32506         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32507         unistr/u16-cmp.
32508         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32509         unistr/u32-cmp.
32510
32511         * lib/uninorm.h: Mention u*_cmp2.
32512         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32513         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32514         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32515         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32516         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32517         unistr/u8-cmp.
32518         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32519         unistr/u16-cmp.
32520         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32521         unistr/u32-cmp.
32522
32523         New module 'unistr/u32-cmp2'.
32524         * lib/unistr/u32-cmp2.c: New file.
32525         * modules/unistr/u32-cmp2: New file.
32526
32527         New module 'unistr/u16-cmp2'.
32528         * lib/unistr/u16-cmp2.c: New file.
32529         * modules/unistr/u16-cmp2: New file.
32530
32531         New module 'unistr/u8-cmp2'.
32532         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32533         * lib/unistr/u8-cmp2.c: New file.
32534         * lib/unistr/u-cmp2.h: New file.
32535         * modules/unistr/u8-cmp2: New file.
32536
32537 2009-04-05  Bruno Haible  <bruno@clisp.org>
32538
32539         * lib/unictype.h (uc_property_is_valid): New macro.
32540         * tests/unictype/test-pr_byname.c (main): Use it.
32541
32542         * lib/unistr.h: Doc fixes.
32543         * lib/uniconv.h: Doc fixes.
32544         * lib/unictype.h: Doc fixes.
32545
32546 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32547
32548         Port coreutils 7.2 to Solaris 8.
32549
32550         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32551         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32552         for Solaris 8.  This is a bit of a hack, as it means it's the
32553         caller's responsibility to add -lnsl if needed, but most likely it
32554         won't be needed since only getaddrinfo uses this and getaddrinfo
32555         isn't needed on Solaris 8.
32556
32557         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32558         problem to Solaris 8 encountered with coreutils 7.2, which
32559         resulted in a message "fnmatch.c:292: warning: passing argument 4
32560         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32561         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32562
32563 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32564
32565         * m4/ld-version-script.m4: Add FIXME comment.
32566
32567 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32568
32569         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32570         SOVERSION variable.
32571
32572 2009-04-02  Bruno Haible  <bruno@clisp.org>
32573
32574         * Makefile (info, html, dvi, pdf): Combine the rules.
32575         Suggested by Jim Meyering.
32576
32577 2009-04-01  Bruno Haible  <bruno@clisp.org>
32578
32579         * Makefile (info, html, dvi, pdf): New targets.
32580         Reported by Reuben Thomas <rrt@sc3d.org>.
32581
32582 2009-04-01  Bruno Haible  <bruno@clisp.org>
32583
32584         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32585         can be put into PATH.
32586         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32587
32588 2009-04-01  Bruno Haible  <bruno@clisp.org>
32589
32590         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32591
32592 2009-04-01  Bruno Haible  <bruno@clisp.org>
32593
32594         Rename module 'visibility'.
32595         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32596         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32597         * doc/gnulib.texi: Update.
32598         * MODULES.html.sh (Misc): Update.
32599         * NEWS: Mention the change.
32600
32601 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32602
32603         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32604         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32605         Eric Blake <ebb9@byu.net> for review.
32606         * MODULES.html.sh: Add lib-msvc-compat.
32607         * doc/gnulib.texi: Link to new section.
32608         * m4/ld-output-def.m4: New file.
32609         * doc/ld-output-def.texi: New file.
32610
32611 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32612
32613         Rename ld-version-script to lib-symbol-versions.  Suggested by
32614         Bruno Haible <bruno@clisp.org>.
32615         * modules/ld-version-script: Renamed to lib-symbol-versions.
32616         * doc/ld-version-script.texi: Fix module name.
32617         * MODULES.html.sh: Add lib-symbol-versions.
32618
32619 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32620
32621         * modules/u64-tests: New file.
32622         * tests/test-u64.c: New file.
32623
32624 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32625
32626         * MODULES.html.sh: Mention u64.
32627         * modules/u64: New module.
32628         * modules/crypto/sha512: Depend on u64 module instead of providing
32629         u64.h.
32630
32631 2009-03-27  Eric Blake  <ebb9@byu.net>
32632
32633         test-strerror: make debugging EAI_SYSTEM easier
32634         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32635         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32636         failure was EAI_SYSTEM.
32637
32638 2009-03-25  Bruno Haible  <bruno@clisp.org>
32639
32640         Fix a problem with --enable-relocatable on Solaris 7.
32641         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32642         since 2008-02-24.
32643
32644 2009-03-25  Eric Blake  <ebb9@byu.net>
32645
32646         test-sockets: avoid gcc warning
32647         * tests/test-sockets.c (main): Silence compiler warning.
32648
32649 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32650
32651         New modules nproc, pthread, contributed by Glen Lenker.
32652
32653         * MODULES.html.sh: Add pthread, nproc.
32654         * lib/nproc.c: New file.
32655         * lib/nproc.h: New file.
32656         * lib/pthread.in.h: New file.
32657         * m4/pthread.m4: New file.
32658         * modules/nproc: New file.
32659         * modules/pthread: New file.
32660
32661 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32662
32663         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32664         New variable.
32665
32666 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32667
32668         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32669         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32670         * tests/test-filevercmp.c: Add tests for backup suffixes.
32671
32672 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32673
32674         * modules/stdlib (Depends-on): Add stdint, needed when defining
32675         struct random_data on, for example, HP-UX 10.20.  Reported by
32676         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32677
32678 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32679
32680         * lib/readline.c (readline): Call fflush on stdout after printing
32681         prompt.
32682
32683 2009-03-20  Bruno Haible  <bruno@clisp.org>
32684
32685         Remove dependency from 'close' module to -lws2_32 on native Windows.
32686         * lib/close-hook.h: New file.
32687         * lib/close-hook.c: New file.
32688         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32689         w32sock.h.
32690         (_gl_close_fd_maybe_socket): Remove function.
32691         (rpl_close): Invoke execute_all_close_hooks instead of
32692         _gl_close_fd_maybe_socket.
32693         * lib/sockets.c: Include close-hook.h, w32sock.h.
32694         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32695         (close_sockets_hook): New variable.
32696         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32697         (gl_sockets_cleanup): Unregister it.
32698         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32699         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32700         * modules/close-hook: New file.
32701         * modules/close (Files): Remove lib/w32sock.h.
32702         (Depends-on): Add close-hook.
32703         (Link): Remove section.
32704         * modules/sockets (Files): Add lib/w32sock.h.
32705         (Depends-on): Add close-hook.
32706         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32707         invocation.
32708         * NEWS: Mention that LIB_CLOSE is gone.
32709
32710 2009-03-23  Eric Blake  <ebb9@byu.net>
32711
32712         signal-tests: test previous patch
32713         * tests/test-signal.c: New file.
32714         * modules/signal-tests: Likewise.
32715
32716         signal.h: always support 'volatile sig_atomic_t'
32717         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32718         (gl_SIGNAL_H_DEFAULTS): Add a default.
32719         * modules/signal (Makefile.am): Substitute if needed.
32720         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32721         users can blindly add volatile.
32722         * doc/posix-headers/signal.texi (signal.h): Document it.
32723         Reported by Matthew Woehlke.
32724
32725 2009-03-23  Jim Meyering  <meyering@redhat.com>
32726
32727         pathmax: PATH_MAX: use pathconf only when available
32728         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32729         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32730         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32731         This avoids a link failure in a PSP cross-compilation environment
32732         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32733
32734         * lib/vasnprintf.c (divide): Fix typo in comment.
32735
32736 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32737
32738         * gnulib-tool (func_filter_filelist): Fix comment.
32739
32740 2009-03-20  Bruno Haible  <bruno@clisp.org>
32741
32742         Make sockets.h self-contained.
32743         * lib/sockets.c: Include sockets.h first.
32744         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32745
32746 2009-03-19  Eric Blake  <ebb9@byu.net>
32747
32748         doc: mention more functions added in cygwin 1.7.0
32749         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32750         addition.
32751         * doc/posix-functions/log2f.texi: Likewise.
32752
32753 2009-03-19  Jim Meyering  <meyering@redhat.com>
32754
32755         fsusage: avoid syntax error due to statement-before-declaration
32756         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32757         after all declarations.  Reported by Matthew Woehlke in
32758         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32759
32760 2009-03-18  Eric Blake  <ebb9@byu.net>
32761
32762         build-aux/compile: sync from automake
32763         * build-aux/compile: New file, from automake.
32764         * config/srclist.txt: Mention build-aux/compile.
32765
32766 2009-03-17  Bruno Haible  <bruno@clisp.org>
32767
32768         * lib/git-merge-changelog.c: Fix typo in comment.
32769         Reported by Reuben Thomas <rrt@sc3d.org>.
32770
32771 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32772
32773         * m4/regex.m4: update and improve help for
32774         --without-included-regex.
32775
32776 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32777
32778         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32779         failure on missing include files.
32780
32781 2009-03-17  Eric Blake  <ebb9@byu.net>
32782
32783         doc: mention more functions added in cygwin 1.7.0
32784         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32785         addition.
32786         * doc/posix-functions/fwscanf.texi: Likewise.
32787         * doc/posix-functions/swprintf.texi: Likewise.
32788         * doc/posix-functions/swscanf.texi: Likewise.
32789         * doc/posix-functions/vfwprintf.texi: Likewise.
32790         * doc/posix-functions/vfwscanf.texi: Likewise.
32791         * doc/posix-functions/vswprintf.texi: Likewise.
32792         * doc/posix-functions/vswscanf.texi: Likewise.
32793         * doc/posix-functions/vwprintf.texi: Likewise.
32794         * doc/posix-functions/vwscanf.texi: Likewise.
32795         * doc/posix-functions/wcscasecmp.texi: Likewise.
32796         * doc/posix-functions/wcsdup.texi: Likewise.
32797         * doc/posix-functions/wcsftime.texi: Likewise.
32798         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32799         * doc/posix-functions/wprintf.texi: Likewise.
32800         * doc/posix-functions/wscanf.texi: Likewise.
32801         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32802
32803 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32804
32805         maint.mk: really add $(AM_MAKEFLAGS)
32806         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32807         was inadvertently omitted in the last commit.
32808         Spotted by Bruno Haible.
32809
32810         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32811         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32812         $(AM_MAKEFLAGS)' rather than plain `make'.
32813
32814         gnulib-tool: execute $MAKE not make
32815         * gnulib-tool: Default $MAKE to 'make'.
32816         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32817         than make.  Initialize $MAKE in the do-autobuild script.
32818
32819         gnulib-tool: use $MAKE not make in generated files
32820         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32821         make, in generated files.  Initialize $MAKE in the do-autobuild
32822         script.
32823
32824         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32825
32826         GNUmakefile: disable parallelism only for multiple, recursive targets
32827         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32828         additions in the Makefile.
32829         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32830         by Automake.
32831         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32832         are listed on the command line and at least one of them is
32833         listed in $(ALL_RECURSIVE_TARGETS).
32834
32835 2009-03-14  Bruno Haible  <bruno@clisp.org>
32836
32837         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32838         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32839         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32840         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32841         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32842         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32843         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32844         unistr/u8-uctomb.
32845         * modules/unistr/u8-strchr (Depends-on): Likewise.
32846         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32847         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32848         unistr/u16-uctomb.
32849         * modules/unistr/u16-strchr (Depends-on): Likewise.
32850         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32851
32852 2009-03-12  Bruno Haible  <bruno@clisp.org>
32853
32854         Work around select() bug on Interix 3.5.
32855         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32856         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32857         * m4/select.m4: New file.
32858         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32859         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32860         * modules/select (Files): Add m4/select.m4.
32861         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32862         * modules/nanosleep (Depends-on): Add select.
32863         * modules/poll (Depends-on): Likewise.
32864         * doc/posix-functions/select.texi: Mention the Interix bug.
32865         Reported by Markus Duft <mduft@gentoo.org>.
32866
32867         * lib/select.c: Renamed from lib/winsock-select.c.
32868         * modules/select (Files): Add lib/select.c, remove
32869         lib/winsock-select.c.
32870         (configure.ac): Update.
32871
32872 2009-03-12  Jim Meyering  <meyering@redhat.com>
32873
32874         avoid gcc warnings about unused macro definitions
32875         * lib/readtokens.c (STREQ): Remove unused definition.
32876         * lib/xmalloc.c (SIZE_MAX): Likewise.
32877         * lib/openat-die.c (N_): Likewise.
32878         * lib/mountlist.c (SIZE_MAX): Remove definition.
32879         Instead, include <stdint.h>.
32880         * lib/readutmp.c: Likewise.
32881         * modules/readutmp (Depends-on): Add stdint.
32882         * modules/mountlist (Depends-on): Add stdint.
32883         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32884
32885 2009-03-10  Bruno Haible  <bruno@clisp.org>
32886
32887         Tests for module 'mbmemcasecoll'.
32888         * modules/mbmemcasecoll-tests: New file.
32889         * tests/test-mbmemcasecoll1.sh: New file.
32890         * tests/test-mbmemcasecoll2.sh: New file.
32891         * tests/test-mbmemcasecoll3.sh: New file.
32892         * tests/test-mbmemcasecoll.c: New file.
32893
32894         New module 'mbmemcasecoll'.
32895         * lib/mbmemcasecoll.h: New file.
32896         * lib/mbmemcasecoll.c: New file.
32897         * modules/mbmemcasecoll: New file.
32898
32899         * tests/test-mbmemcasecmp.h: New file, extracted from
32900         tests/test-mbmemcasecmp.c.
32901         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32902         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32903         (main): Update.
32904         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32905
32906 2009-03-09  Bruno Haible  <bruno@clisp.org>
32907
32908         Tests for module 'mbmemcasecmp'.
32909         * modules/mbmemcasecmp-tests: New file.
32910         * tests/test-mbmemcasecmp1.sh: New file.
32911         * tests/test-mbmemcasecmp2.sh: New file.
32912         * tests/test-mbmemcasecmp3.sh: New file.
32913         * tests/test-mbmemcasecmp.c: New file.
32914
32915         New module 'mbmemcasecmp'.
32916         * lib/mbmemcasecmp.h: New file.
32917         * lib/mbmemcasecmp.c: New file.
32918         * modules/mbmemcasecmp: New file.
32919
32920 2009-03-09  Bruno Haible  <bruno@clisp.org>
32921
32922         Tests for module 'unicase/ulc-casecoll'.
32923         * modules/unicase/ulc-casecoll-tests: New file.
32924         * tests/unicase/test-ulc-casecoll1.sh: New file.
32925         * tests/unicase/test-ulc-casecoll2.sh: New file.
32926         * tests/unicase/test-ulc-casecoll.c: New file.
32927
32928         New module 'unicase/ulc-casecoll'.
32929         * lib/unicase.h (ulc_casecoll): New declaration.
32930         * lib/unicase/ulc-casecoll.c: New file.
32931         * modules/unicase/ulc-casecoll: New file.
32932
32933         New module 'unicase/ulc-casexfrm'.
32934         * lib/unicase.h (ulc_casexfrm): New declaration.
32935         * lib/unicase/ulc-casexfrm.c: New file.
32936         * modules/unicase/ulc-casexfrm: New file.
32937
32938 2009-03-09  Bruno Haible  <bruno@clisp.org>
32939
32940         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32941         invocations.
32942
32943         * m4/mbscasecmp.m4: Remove file.
32944         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32945         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32946
32947         * m4/mbscasestr.m4: Remove file.
32948         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32949         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32950
32951         * m4/mbschr.m4: Remove file.
32952         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32953         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32954
32955         * m4/mbscspn.m4: Remove file.
32956         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32957         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32958
32959         * m4/mbslen.m4: Remove file.
32960         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32961         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32962
32963         * m4/mbsncasecmp.m4: Remove file.
32964         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32965         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32966
32967         * m4/mbsnlen.m4: Remove file.
32968         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32969         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32970
32971         * m4/mbspbrk.m4: Remove file.
32972         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32973         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32974
32975         * m4/mbspcasecmp.m4: Remove file.
32976         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32977         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32978
32979         * m4/mbsrchr.m4: Remove file.
32980         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32981         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32982
32983         * m4/mbssep.m4: Remove file.
32984         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32985         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32986
32987         * m4/mbsspn.m4: Remove file.
32988         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32989         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32990
32991         * m4/mbsstr.m4: Remove file.
32992         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32993         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32994
32995         * m4/mbstok_r.m4: Remove file.
32996         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32997         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32998
32999         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33000
33001         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33002         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33003
33004         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33005
33006 2009-03-08  Bruno Haible  <bruno@clisp.org>
33007
33008         Tests for module 'unicase/ulc-casecmp'.
33009         * modules/unicase/ulc-casecmp-tests: New file.
33010         * tests/unicase/test-ulc-casecmp1.sh: New file.
33011         * tests/unicase/test-ulc-casecmp2.sh: New file.
33012         * tests/unicase/test-ulc-casecmp.c: New file.
33013
33014         New module 'unicase/ulc-casecmp'.
33015         * lib/unicase.h (ulc_casecmp): New declaration.
33016         * lib/unicase/ulc-casecmp.c: New file.
33017         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33018         'const SRC_UNIT *'.
33019         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33020         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33021         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33022         * modules/unicase/ulc-casecmp: New file.
33023
33024         Tests for module 'unicase/u32-is-cased'.
33025         * modules/unicase/u32-is-cased-tests: New file.
33026         * tests/unicase/test-u32-is-cased.c: New file.
33027
33028         Tests for module 'unicase/u16-is-cased'.
33029         * modules/unicase/u16-is-cased-tests: New file.
33030         * tests/unicase/test-u16-is-cased.c: New file.
33031
33032         Tests for module 'unicase/u8-is-cased'.
33033         * modules/unicase/u8-is-cased-tests: New file.
33034         * tests/unicase/test-u8-is-cased.c: New file.
33035         * tests/unicase/test-is-cased.h: New file.
33036
33037         New module 'unicase/u32-is-cased'.
33038         * lib/unicase/u32-is-cased.c: New file.
33039         * modules/unicase/u32-is-cased: New file.
33040
33041         New module 'unicase/u16-is-cased'.
33042         * lib/unicase/u16-is-cased.c: New file.
33043         * modules/unicase/u16-is-cased: New file.
33044
33045         New module 'unicase/u8-is-cased'.
33046         * lib/unicase/u8-is-cased.c: New file.
33047         * lib/unicase/u-is-cased.h: New file.
33048         * modules/unicase/u8-is-cased: New file.
33049
33050         Tests for module 'unicase/u32-is-casefolded'.
33051         * modules/unicase/u32-is-casefolded-tests: New file.
33052         * tests/unicase/test-u32-is-casefolded.c: New file.
33053
33054         Tests for module 'unicase/u16-is-casefolded'.
33055         * modules/unicase/u16-is-casefolded-tests: New file.
33056         * tests/unicase/test-u16-is-casefolded.c: New file.
33057
33058         Tests for module 'unicase/u8-is-casefolded'.
33059         * modules/unicase/u8-is-casefolded-tests: New file.
33060         * tests/unicase/test-u8-is-casefolded.c: New file.
33061         * tests/unicase/test-is-casefolded.h: New file.
33062
33063         New module 'unicase/u32-is-casefolded'.
33064         * lib/unicase/u32-is-casefolded.c: New file.
33065         * modules/unicase/u32-is-casefolded: New file.
33066
33067         New module 'unicase/u16-is-casefolded'.
33068         * lib/unicase/u16-is-casefolded.c: New file.
33069         * modules/unicase/u16-is-casefolded: New file.
33070
33071         New module 'unicase/u8-is-casefolded'.
33072         * lib/unicase/u8-is-casefolded.c: New file.
33073         * modules/unicase/u8-is-casefolded: New file.
33074
33075         Tests for module 'unicase/u32-is-titlecase'.
33076         * modules/unicase/u32-is-titlecase-tests: New file.
33077         * tests/unicase/test-u32-is-titlecase.c: New file.
33078
33079         Tests for module 'unicase/u16-is-titlecase'.
33080         * modules/unicase/u16-is-titlecase-tests: New file.
33081         * tests/unicase/test-u16-is-titlecase.c: New file.
33082
33083         Tests for module 'unicase/u8-is-titlecase'.
33084         * modules/unicase/u8-is-titlecase-tests: New file.
33085         * tests/unicase/test-u8-is-titlecase.c: New file.
33086         * tests/unicase/test-is-titlecase.h: New file.
33087
33088         New module 'unicase/u32-is-titlecase'.
33089         * lib/unicase/u32-is-titlecase.c: New file.
33090         * modules/unicase/u32-is-titlecase: New file.
33091
33092         New module 'unicase/u16-is-titlecase'.
33093         * lib/unicase/u16-is-titlecase.c: New file.
33094         * modules/unicase/u16-is-titlecase: New file.
33095
33096         New module 'unicase/u8-is-titlecase'.
33097         * lib/unicase/u8-is-titlecase.c: New file.
33098         * modules/unicase/u8-is-titlecase: New file.
33099
33100         Tests for module 'unicase/u32-is-lowercase'.
33101         * modules/unicase/u32-is-lowercase-tests: New file.
33102         * tests/unicase/test-u32-is-lowercase.c: New file.
33103
33104         Tests for module 'unicase/u16-is-lowercase'.
33105         * modules/unicase/u16-is-lowercase-tests: New file.
33106         * tests/unicase/test-u16-is-lowercase.c: New file.
33107
33108         Tests for module 'unicase/u8-is-lowercase'.
33109         * modules/unicase/u8-is-lowercase-tests: New file.
33110         * tests/unicase/test-u8-is-lowercase.c: New file.
33111         * tests/unicase/test-is-lowercase.h: New file.
33112
33113         New module 'unicase/u32-is-lowercase'.
33114         * lib/unicase/u32-is-lowercase.c: New file.
33115         * modules/unicase/u32-is-lowercase: New file.
33116
33117         New module 'unicase/u16-is-lowercase'.
33118         * lib/unicase/u16-is-lowercase.c: New file.
33119         * modules/unicase/u16-is-lowercase: New file.
33120
33121         New module 'unicase/u8-is-lowercase'.
33122         * lib/unicase/u8-is-lowercase.c: New file.
33123         * modules/unicase/u8-is-lowercase: New file.
33124
33125         Tests for module 'unicase/u32-is-uppercase'.
33126         * modules/unicase/u32-is-uppercase-tests: New file.
33127         * tests/unicase/test-u32-is-uppercase.c: New file.
33128
33129         Tests for module 'unicase/u16-is-uppercase'.
33130         * modules/unicase/u16-is-uppercase-tests: New file.
33131         * tests/unicase/test-u16-is-uppercase.c: New file.
33132
33133         Tests for module 'unicase/u8-is-uppercase'.
33134         * modules/unicase/u8-is-uppercase-tests: New file.
33135         * tests/unicase/test-u8-is-uppercase.c: New file.
33136         * tests/unicase/test-is-uppercase.h: New file.
33137
33138         New module 'unicase/u32-is-uppercase'.
33139         * lib/unicase/u32-is-uppercase.c: New file.
33140         * modules/unicase/u32-is-uppercase: New file.
33141
33142         New module 'unicase/u16-is-uppercase'.
33143         * lib/unicase/u16-is-uppercase.c: New file.
33144         * modules/unicase/u16-is-uppercase: New file.
33145
33146         New module 'unicase/u8-is-uppercase'.
33147         * lib/unicase/u8-is-uppercase.c: New file.
33148         * modules/unicase/u8-is-uppercase: New file.
33149
33150         New module 'unicase/u32-is-invariant'.
33151         * lib/unicase/u32-is-invariant.c: New file.
33152         * modules/unicase/u32-is-invariant: New file.
33153
33154         New module 'unicase/u16-is-invariant'.
33155         * lib/unicase/u16-is-invariant.c: New file.
33156         * modules/unicase/u16-is-invariant: New file.
33157
33158         New module 'unicase/u8-is-invariant'.
33159         * lib/unicase/u8-is-invariant.c: New file.
33160         * lib/unicase/invariant.h: New file.
33161         * lib/unicase/u-is-invariant.h: New file.
33162         * modules/unicase/u8-is-invariant: New file.
33163
33164         Tests for module 'unicase/u32-casecoll'.
33165         * modules/unicase/u32-casecoll-tests: New file.
33166         * tests/unicase/test-u32-casecoll.c: New file.
33167
33168         Tests for module 'unicase/u16-casecoll'.
33169         * modules/unicase/u16-casecoll-tests: New file.
33170         * tests/unicase/test-u16-casecoll.c: New file.
33171
33172         Tests for module 'unicase/u8-casecoll'.
33173         * modules/unicase/u8-casecoll-tests: New file.
33174         * tests/unicase/test-u8-casecoll.c: New file.
33175
33176         New module 'unicase/u32-casecoll'.
33177         * lib/unicase/u32-casecoll.c: New file.
33178         * modules/unicase/u32-casecoll: New file.
33179
33180         New module 'unicase/u16-casecoll'.
33181         * lib/unicase/u16-casecoll.c: New file.
33182         * modules/unicase/u16-casecoll: New file.
33183
33184         New module 'unicase/u8-casecoll'.
33185         * lib/unicase/u8-casecoll.c: New file.
33186         * lib/unicase/u-casecoll.h: New file.
33187         * modules/unicase/u8-casecoll: New file.
33188
33189         New module 'unicase/u32-casexfrm'.
33190         * lib/unicase/u32-casexfrm.c: New file.
33191         * modules/unicase/u32-casexfrm: New file.
33192
33193         New module 'unicase/u16-casexfrm'.
33194         * lib/unicase/u16-casexfrm.c: New file.
33195         * modules/unicase/u16-casexfrm: New file.
33196
33197         New module 'unicase/u8-casexfrm'.
33198         * lib/unicase/u8-casexfrm.c: New file.
33199         * lib/unicase/u-casexfrm.h: New file.
33200         * modules/unicase/u8-casexfrm: New file.
33201
33202         Tests for module 'unicase/u32-casecmp'.
33203         * modules/unicase/u32-casecmp-tests: New file.
33204         * tests/unicase/test-u32-casecmp.c: New file.
33205
33206         Tests for module 'unicase/u16-casecmp'.
33207         * modules/unicase/u16-casecmp-tests: New file.
33208         * tests/unicase/test-u16-casecmp.c: New file.
33209
33210         Tests for module 'unicase/u8-casecmp'.
33211         * modules/unicase/u8-casecmp-tests: New file.
33212         * tests/unicase/test-u8-casecmp.c: New file.
33213         * tests/unicase/test-casecmp.h: New file.
33214
33215         New module 'unicase/u32-casecmp'.
33216         * lib/unicase/u32-casecmp.c: New file.
33217         * modules/unicase/u32-casecmp: New file.
33218
33219         New module 'unicase/u16-casecmp'.
33220         * lib/unicase/u16-casecmp.c: New file.
33221         * modules/unicase/u16-casecmp: New file.
33222
33223         New module 'unicase/u8-casecmp'.
33224         * lib/unicase/u8-casecmp.c: New file.
33225         * lib/unicase/u-casecmp.h: New file.
33226         * modules/unicase/u8-casecmp: New file.
33227
33228         Tests for module 'unicase/u32-casefold'.
33229         * modules/unicase/u32-casefold-tests: New file.
33230         * tests/unicase/test-u32-casefold.c: New file.
33231
33232         Tests for module 'unicase/u16-casefold'.
33233         * modules/unicase/u16-casefold-tests: New file.
33234         * tests/unicase/test-u16-casefold.c: New file.
33235
33236         Tests for module 'unicase/u8-casefold'.
33237         * modules/unicase/u8-casefold-tests: New file.
33238         * tests/unicase/test-u8-casefold.c: New file.
33239
33240         New module 'unicase/u32-casefold'.
33241         * lib/unicase/u32-casefold.c: New file.
33242         * modules/unicase/u32-casefold: New file.
33243
33244         New module 'unicase/u16-casefold'.
33245         * lib/unicase/u16-casefold.c: New file.
33246         * modules/unicase/u16-casefold: New file.
33247
33248         New module 'unicase/u8-casefold'.
33249         * lib/unicase/u8-casefold.c: New file.
33250         * lib/unicase/u-casefold.h: New file.
33251         * modules/unicase/u8-casefold: New file.
33252
33253         New module 'unicase/tocasefold'.
33254         * lib/unicase/casefold.h: New file.
33255         * lib/unicase/tocasefold.c: New file.
33256         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33257         * modules/unicase/tocasefold: New file.
33258
33259         Tests for module 'unicase/u32-totitle'.
33260         * modules/unicase/u32-totitle-tests: New file.
33261         * tests/unicase/test-u32-totitle.c: New file.
33262
33263         Tests for module 'unicase/u16-totitle'.
33264         * modules/unicase/u16-totitle-tests: New file.
33265         * tests/unicase/test-u16-totitle.c: New file.
33266
33267         Tests for module 'unicase/u8-totitle'.
33268         * modules/unicase/u8-totitle-tests: New file.
33269         * tests/unicase/test-u8-totitle.c: New file.
33270
33271         New module 'unicase/u32-totitle'.
33272         * lib/unicase/u32-totitle.c: New file.
33273         * modules/unicase/u32-totitle: New file.
33274
33275         New module 'unicase/u16-totitle'.
33276         * lib/unicase/u16-totitle.c: New file.
33277         * modules/unicase/u16-totitle: New file.
33278
33279         New module 'unicase/u8-totitle'.
33280         * lib/unicase/u8-totitle.c: New file.
33281         * lib/unicase/u-totitle.h: New file.
33282         * modules/unicase/u8-totitle: New file.
33283
33284         Tests for module 'unicase/u32-tolower'.
33285         * modules/unicase/u32-tolower-tests: New file.
33286         * tests/unicase/test-u32-tolower.c: New file.
33287
33288         Tests for module 'unicase/u16-tolower'.
33289         * modules/unicase/u16-tolower-tests: New file.
33290         * tests/unicase/test-u16-tolower.c: New file.
33291
33292         Tests for module 'unicase/u8-tolower'.
33293         * modules/unicase/u8-tolower-tests: New file.
33294         * tests/unicase/test-u8-tolower.c: New file.
33295
33296         New module 'unicase/u32-tolower'.
33297         * lib/unicase/u32-tolower.c: New file.
33298         * modules/unicase/u32-tolower: New file.
33299
33300         New module 'unicase/u16-tolower'.
33301         * lib/unicase/u16-tolower.c: New file.
33302         * modules/unicase/u16-tolower: New file.
33303
33304         New module 'unicase/u8-tolower'.
33305         * lib/unicase/u8-tolower.c: New file.
33306         * modules/unicase/u8-tolower: New file.
33307
33308         Tests for module 'unicase/u32-toupper'.
33309         * modules/unicase/u32-toupper-tests: New file.
33310         * tests/unicase/test-u32-toupper.c: New file.
33311
33312         Tests for module 'unicase/u16-toupper'.
33313         * modules/unicase/u16-toupper-tests: New file.
33314         * tests/unicase/test-u16-toupper.c: New file.
33315
33316         Tests for module 'unicase/u8-toupper'.
33317         * modules/unicase/u8-toupper-tests: New file.
33318         * tests/unicase/test-u8-toupper.c: New file.
33319
33320         New module 'unicase/u32-toupper'.
33321         * lib/unicase/u32-toupper.c: New file.
33322         * modules/unicase/u32-toupper: New file.
33323
33324         New module 'unicase/u16-toupper'.
33325         * lib/unicase/u16-toupper.c: New file.
33326         * modules/unicase/u16-toupper: New file.
33327
33328         New module 'unicase/u8-toupper'.
33329         * lib/unicase/u8-toupper.c: New file.
33330         * modules/unicase/u8-toupper: New file.
33331
33332         New module 'unicase/u32-casemap'.
33333         * lib/unicase/u32-casemap.c: New file.
33334         * modules/unicase/u32-casemap: New file.
33335
33336         New module 'unicase/u16-casemap'.
33337         * lib/unicase/u16-casemap.c: New file.
33338         * modules/unicase/u16-casemap: New file.
33339
33340         New module 'unicase/u8-casemap'.
33341         * lib/unicase/unicasemap.h: New file.
33342         * lib/unicase/u8-casemap.c: New file.
33343         * lib/unicase/u-casemap.h: New file.
33344         * modules/unicase/u8-casemap: New file.
33345
33346         New module 'unicase/special-casing'.
33347         * lib/unicase/special-casing.h: New file.
33348         * lib/unicase/special-casing.c: New file.
33349         * lib/unicase/special-casing-table.gperf: New file, generated by
33350         gen-uni-tables.c.
33351         * modules/unicase/special-casing: New file.
33352
33353         Tests for module 'unicase/locale-language'.
33354         * modules/unicase/locale-language-tests: New file.
33355         * tests/unicase/test-locale-language.sh: New file.
33356         * tests/unicase/test-locale-language.c: New file.
33357
33358         New module 'unicase/locale-language'.
33359         * lib/unicase/locale-language.c: New file.
33360         * lib/unicase/locale-languages.gperf: New file.
33361         * modules/unicase/locale-language: New file.
33362
33363         Generate more tables for case conversion and case folding.
33364         * lib/gen-uni-tables.c (SCC_*): New enum items.
33365         (struct special_casing_rule): New type.
33366         (casing_rules, num_casing_rules, allocated_casing_rules): New
33367         variables.
33368         (add_casing_rule, fill_casing_rules): New functions.
33369         (struct casefold_rule): New type.
33370         (casefolding_rules, num_casefolding_rules,
33371         allocated_casefolding_rules): New variables.
33372         (fill_casefolding_rules): New function.
33373         (unicode_casefold): New variable.
33374         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33375         sort_casing_rules, output_casing_rules): New functions.
33376         (main): Accept to more arguments: SpecialCasing.txt and
33377         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33378         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33379         Output mapping for casefolding.
33380
33381         * lib/unicase.h: Include stdbool.h, uninorm.h.
33382         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33383         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33384         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33385         arguments.
33386         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33387         resultp arguments.
33388         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33389         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33390         resultp arguments.
33391         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33392         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33393         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33394         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33395         declarations.
33396         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33397
33398 2009-03-08  Bruno Haible  <bruno@clisp.org>
33399
33400         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33401         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33402         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33403         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33404
33405 2009-03-07  Bruno Haible  <bruno@clisp.org>
33406
33407         Adjust u*_normcmp, u*_normcoll API.
33408         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33409         u16_normcoll, u32_normcoll): Change failure conventions.
33410         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33411         errno and return -1.
33412         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33413
33414 2009-03-07  Bruno Haible  <bruno@clisp.org>
33415
33416         Tests for module 'uninorm/u32-normcoll'.
33417         * modules/uninorm/u32-normcoll-tests: New file.
33418         * tests/uninorm/test-u32-normcoll.c: New file.
33419
33420         Tests for module 'uninorm/u16-normcoll'.
33421         * modules/uninorm/u16-normcoll-tests: New file.
33422         * tests/uninorm/test-u16-normcoll.c: New file.
33423
33424         Tests for module 'uninorm/u8-normcoll'.
33425         * modules/uninorm/u8-normcoll-tests: New file.
33426         * tests/uninorm/test-u8-normcoll.c: New file.
33427
33428 2009-03-07  Bruno Haible  <bruno@clisp.org>
33429
33430         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33431         tests/uninorm/test-u32-normcmp.c.
33432         * tests/uninorm/test-u32-normcmp.c: Include it.
33433         (test_nonascii): New function, extracted from main. Add some more
33434         tests.
33435         (main): Invoke test_ascii and test_nonascii.
33436         * modules/uninorm/u32-normcmp-tests (Files): Add
33437         tests/uninorm/test-u32-normcmp.h.
33438         (Depends-on): Remove uninorm/u32-normcmp.
33439
33440         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33441         tests/uninorm/test-u16-normcmp.c.
33442         * tests/uninorm/test-u16-normcmp.c: Include it.
33443         (test_nonascii): New function, extracted from main. Add some more
33444         tests.
33445         (main): Invoke test_ascii and test_nonascii.
33446         * modules/uninorm/u16-normcmp-tests (Files): Add
33447         tests/uninorm/test-u16-normcmp.h.
33448         (Depends-on): Remove uninorm/u16-normcmp.
33449
33450         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33451         tests/uninorm/test-u8-normcmp.c.
33452         * tests/uninorm/test-u8-normcmp.c: Include it.
33453         (test_nonascii): New function, extracted from main. Add some more
33454         tests.
33455         (main): Invoke test_ascii and test_nonascii.
33456         * modules/uninorm/u8-normcmp-tests (Files): Add
33457         tests/uninorm/test-u8-normcmp.h.
33458         (Depends-on): Remove uninorm/u8-normcmp.
33459
33460 2009-03-07  Bruno Haible  <bruno@clisp.org>
33461
33462         New module 'uninorm/u32-normcoll'.
33463         * lib/uninorm/u32-normcoll.c: New file.
33464         * modules/uninorm/u32-normcoll: New file.
33465
33466         New module 'uninorm/u16-normcoll'.
33467         * lib/uninorm/u16-normcoll.c: New file.
33468         * modules/uninorm/u16-normcoll: New file.
33469
33470         New module 'uninorm/u8-normcoll'.
33471         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33472         declarations.
33473         * lib/uninorm/u8-normcoll.c: New file.
33474         * lib/uninorm/u-normcoll.h: New file.
33475         * modules/uninorm/u8-normcoll: New file.
33476
33477         New module 'uninorm/u32-normxfrm'.
33478         * lib/uninorm/u32-normxfrm.c: New file.
33479         * modules/uninorm/u32-normxfrm: New file.
33480
33481         New module 'uninorm/u16-normxfrm'.
33482         * lib/uninorm/u16-normxfrm.c: New file.
33483         * modules/uninorm/u16-normxfrm: New file.
33484
33485         New module 'uninorm/u8-normxfrm'.
33486         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33487         declarations.
33488         * lib/uninorm/u8-normxfrm.c: New file.
33489         * lib/uninorm/u-normxfrm.h: New file.
33490         * modules/uninorm/u8-normxfrm: New file.
33491
33492 2009-03-07  Bruno Haible  <bruno@clisp.org>
33493
33494         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33495         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33496         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33497
33498 2009-03-07  Bruno Haible  <bruno@clisp.org>
33499
33500         New module 'memxfrm'.
33501         * lib/memxfrm.h: New file.
33502         * lib/memxfrm.c: New file.
33503         * modules/memxfrm: New file.
33504
33505 2009-03-07  Bruno Haible  <bruno@clisp.org>
33506
33507         New module 'memcmp2'.
33508         * lib/memcmp2.h: New file.
33509         * lib/memcmp2.c: New file.
33510         * modules/memcmp2: New file.
33511
33512 2009-03-07  Bruno Haible  <bruno@clisp.org>
33513
33514         Tests for module 'uninorm/decomposing-form'.
33515         * modules/uninorm/decomposing-form-tests: New file.
33516         * tests/uninorm/test-decomposing-form.c: New file.
33517
33518         New module 'uninorm/decomposing-form'.
33519         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33520         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33521         Add 'decomposing_variant' field.
33522         * lib/uninorm/decomposing-form.c: New file.
33523         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33524         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33525         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33526         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33527         * modules/uninorm/decomposing-form: New file.
33528         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33529         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33530
33531 2009-03-07  Bruno Haible  <bruno@clisp.org>
33532
33533         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33534         strings.
33535
33536 2009-03-06  Bruno Haible  <bruno@clisp.org>
33537
33538         Tests for module 'uninorm/u32-normcmp'.
33539         * tests/uninorm/test-u32-normcmp.c: New file.
33540         * modules/uninorm/u32-normcmp-tests: New file.
33541
33542         Tests for module 'uninorm/u16-normcmp'.
33543         * tests/uninorm/test-u16-normcmp.c: New file.
33544         * modules/uninorm/u16-normcmp-tests: New file.
33545
33546         Tests for module 'uninorm/u8-normcmp'.
33547         * tests/uninorm/test-u8-normcmp.c: New file.
33548         * modules/uninorm/u8-normcmp-tests: New file.
33549
33550         New module 'uninorm/u32-normcmp'.
33551         * lib/uninorm/u32-normcmp.c: New file.
33552         * modules/uninorm/u32-normcmp: New file.
33553
33554         New module 'uninorm/u16-normcmp'.
33555         * lib/uninorm/u16-normcmp.c: New file.
33556         * modules/uninorm/u16-normcmp: New file.
33557
33558         New module 'uninorm/u8-normcmp'.
33559         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33560         declarations.
33561         * lib/uninorm/u8-normcmp.c: New file.
33562         * lib/uninorm/u-normcmp.h: New file.
33563         * modules/uninorm/u8-normcmp: New file.
33564
33565 2009-03-06  Bruno Haible  <bruno@clisp.org>
33566
33567         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33568         Reported by Eric Blake.
33569
33570 2009-03-06  Eric Blake  <ebb9@byu.net>
33571             Bruno Haible  <bruno@clisp.org>
33572
33573         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33574         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33575         condition.
33576         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33577         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33578         condition.
33579         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33580
33581 2009-03-06  Eric Blake  <ebb9@byu.net>
33582
33583         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33584         to avoid compiler warnings.
33585         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33586
33587 2009-03-05  Bruno Haible  <bruno@clisp.org>
33588
33589         * tests/test-ftell.c (main): Disable test beyond end of file on
33590         FreeMiNT.
33591         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33592
33593 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33594
33595         * lib/filevercmp.c: Move hidden files up in ordering.
33596         * tests/test-filevercmp.c: Add tests for hidden files.
33597
33598 2009-03-04  Bruno Haible  <bruno@clisp.org>
33599
33600         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33601         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33602         AM_CFLAGS.
33603         Reported by Simon Josefsson.
33604
33605 2009-03-03  Bruno Haible  <bruno@clisp.org>
33606
33607         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33608         Reported by Simon Josefsson.
33609
33610         * doc/ld-version-script.texi: Update node reference.
33611
33612 2009-03-03  Bruno Haible  <bruno@clisp.org>
33613
33614         * modules/visibility (License): Change to 'unlimited'.
33615         Suggested by Simon Josefsson.
33616
33617 2009-03-03  Jim Meyering  <meyering@redhat.com>
33618
33619         unlinkdir: cannot_unlink_dir may modify process state
33620         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33621         it's neither thread-safe nor appropriate for use in a library.
33622
33623 2009-03-03  Eric Blake  <ebb9@byu.net>
33624
33625         test-closein: silence test under Darwin
33626         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33627         care if it dies from EPIPE or EBADF.
33628
33629 2009-03-03  Bruno Haible  <bruno@clisp.org>
33630
33631         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33632         earlier.
33633         * doc/visibility.texi: Fix @node and @section.
33634
33635 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33636
33637         * doc/gnulib.texi: Link to sections for ld version script and
33638         visibility.
33639         * doc/visibility.texi: Add @node and @section.
33640         * modules/ld-version-script: New module.
33641         * m4/ld-version-script.m4: New file.
33642         * doc/ld-version-script.texi: New file.
33643
33644 2009-03-02  David Lutterkort  <lutter@redhat.com>
33645
33646         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33648
33649 2009-03-02  Bruno Haible  <bruno@clisp.org>
33650
33651         * doc/visibility.texi: Mention libtool's -export-symbols option.
33652
33653 2009-03-02  Jim Meyering  <meyering@redhat.com>
33654
33655         announce-gen: new option: --no-print-checksums
33656         * build-aux/announce-gen (usage): Describe it.
33657         (print_checksums): Print a newline here, not in the [*] footnote.
33658         (main): Honor it.
33659
33660 2009-03-01  Bruno Haible  <bruno@clisp.org>
33661
33662         Use socklen_t in the native Windows replacements prototypes.
33663         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33664         instead of 'int'.
33665         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33666         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33667         * modules/getsockopt (Depends-on): Add socklen.
33668         * modules/setsockopt (Depends-on): Add socklen.
33669
33670 2009-03-01  Bruno Haible  <bruno@clisp.org>
33671
33672         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33673         least 4.2.
33674
33675 2009-03-01  Eric Blake  <ebb9@byu.net>
33676             Bruno Haible  <bruno@clisp.org>
33677
33678         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33679         error messages.
33680         * lib/wait-process.c (wait_subprocess): Omit error message about
33681         deadly signal sent to the child of termsigp != NULL.
33682
33683 2009-03-01  Eric Blake  <ebb9@byu.net>
33684
33685         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33686
33687 2009-03-01  Bruno Haible  <bruno@clisp.org>
33688
33689         Avoid a gcc warning.
33690         * tests/test-sched.c (b): Make global.
33691         Reported by Eric Blake.
33692
33693 2009-01-19  Martin Lambers  <marlam@marlam.de>
33694
33695         Provide POSIX semantics for socket timeout options on W32.
33696         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33697         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33698         * modules/setsockopt: Depend on sys_time module for struct timeval.
33699         * modules/getsockopt: Depend on sys_time module for struct timeval.
33700
33701 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33702
33703         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33704         __USE_GNU, for consistency with netdb.in.h.
33705         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33706
33707 2009-03-01  Bruno Haible  <bruno@clisp.org>
33708
33709         More support for FreeMiNT.
33710         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33712
33713 2009-03-01  Bruno Haible  <bruno@clisp.org>
33714
33715         More support for FreeMiNT.
33716         * lib/fpurge.c (fpurge): Correct last commit.
33717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33718
33719 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33720
33721         Fix unportable awk script in vc-list-files.
33722         * build-aux/vc-list-files: In the replacement awk script, use
33723         substr with a second argument of 1, not zero.
33724         Report by Simon Josefsson.
33725
33726 2009-02-28  Bruno Haible  <bruno@clisp.org>
33727
33728         More support for FreeMiNT.
33729         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33730         to FreeMiNT today.
33731         * lib/fwriting.c (fwriting): Likewise.
33732         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33733
33734 2009-02-28  Bruno Haible  <bruno@clisp.org>
33735
33736         * tests/test-freadseek.c (main): Disable test beyond end of file on
33737         FreeMiNT.
33738         * tests/test-ftello.c (main): Likewise.
33739         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33740
33741 2009-02-28  Bruno Haible  <bruno@clisp.org>
33742
33743         Add tentative support for FreeMiNT.
33744         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33745         * lib/fpurge.c (fpurge): Likewise.
33746         * lib/freadable.c (freadable): Likewise.
33747         * lib/freading.c (freading): Likewise.
33748         * lib/freadptr.c (freadptr): Likewise.
33749         * lib/freadseek.c (freadptrinc): Likewise.
33750         * lib/fseeko.c (rpl_fseeko): Likewise.
33751         * lib/fseterr.c (fseterr): Likewise.
33752         * lib/fwritable.c (fwritable): Likewise.
33753         * lib/fwriting.c (fwriting): Likewise.
33754         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33755         Hourihane.
33756         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33757
33758 2009-02-28  Bruno Haible  <bruno@clisp.org>
33759
33760         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33761         SIGCHLD.
33762         Reported by Jim Meyering.
33763
33764 2009-02-28  Bruno Haible  <bruno@clisp.org>
33765
33766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33767         Mention the results of these tests on various platforms.
33768         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33769         order.
33770         * doc/posix-functions/printf.texi: Likewise.
33771         * doc/posix-functions/snprintf.texi: Likewise.
33772         * doc/posix-functions/sprintf.texi: Likewise.
33773         * doc/posix-functions/vfprintf.texi: Likewise.
33774         * doc/posix-functions/vprintf.texi: Likewise.
33775         * doc/posix-functions/vsnprintf.texi: Likewise.
33776         * doc/posix-functions/vsprintf.texi: Likewise.
33777         * doc/glibc-functions/obstack_printf.texi: Likewise.
33778         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33779
33780 2009-02-28  Bruno Haible  <bruno@clisp.org>
33781
33782         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33783         Reported by Loïc Minier <lool@dooz.org>.
33784
33785 2009-02-27  Bruno Haible  <bruno@clisp.org>
33786
33787         * gnulib-tool (func_import): Make the sed expression used to create the
33788         sed script for updating the .gitignore file POSIX compliant.
33789         Reported by Eric Blake.
33790
33791 2009-02-27  Bruno Haible  <bruno@clisp.org>
33792
33793         * gnulib-tool (sed): Don't alias as "sed --posix".
33794         Reported by Eric Blake.
33795
33796 2009-02-27  Bruno Haible  <bruno@clisp.org>
33797
33798         Avoid test link errors.
33799         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33800         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33801         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33802         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33804
33805 2009-02-27  Bruno Haible  <bruno@clisp.org>
33806
33807         Avoid spurious "(cached)" in configure output.
33808         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33809         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33810         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33811         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33812         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33813         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33814         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33815         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33816         Reported by Eric Blake.
33817
33818 2009-02-27  Eric Blake  <ebb9@byu.net>
33819
33820         printf: fix regression in previous patch
33821         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33822
33823 2009-02-27  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33826         value.
33827         * lib/stdint.in.h: Likewise.
33828         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33829
33830 2009-02-27  Eric Blake  <ebb9@byu.net>
33831
33832         doc: mention more functions added in cygwin 1.7.0
33833         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33834         addition.
33835         * doc/posix-functions/open_wmemstream.texi: Likewise.
33836         * doc/posix-functions/wcsnlen.texi: Likewise.
33837         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33838         * doc/posix-functions/wcstod.texi: Likewise.
33839         * doc/posix-functions/wcstof.texi: Likewise.
33840         * doc/posix-functions/wcstoimax.texi: Likewise.
33841         * doc/posix-functions/wcstok.texi: Likewise.
33842         * doc/posix-functions/wcstoumax.texi: Likewise.
33843
33844         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33845         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33846         * doc/posix-functions/fprintf.texi: Update.
33847         * doc/posix-functions/printf.texi: Update.
33848         * doc/posix-functions/snprintf.texi: Update.
33849         * doc/posix-functions/sprintf.texi: Update.
33850         * doc/posix-functions/vfprintf.texi: Update.
33851         * doc/posix-functions/vprintf.texi: Update.
33852         * doc/posix-functions/vsnprintf.texi: Update.
33853         * doc/posix-functions/vsprintf.texi: Update.
33854         * doc/glibc-functions/obstack_printf.texi: Update.
33855         * doc/glibc-functions/obstack_vprintf.texi: Update.
33856
33857 2009-02-26  Eric Blake  <ebb9@byu.net>
33858
33859         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33860         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33861         compilation bug by using runtime conversion.
33862         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33863         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33864         * modules/ceill-tests (Files): Use nan.h.
33865         * modules/floorl-tests (Files): Likewise.
33866         * modules/frexpl-tests (Files): Likewise.
33867         * modules/isnanl-tests (Files): Likewise.
33868         * modules/ldexpl-tests (Files): Likewise.
33869         * modules/roundl-tests (Files): Likewise.
33870         * modules/truncl-tests (Files): Likewise.
33871         * tests/test-ceill.c (main): Use a working NaN.
33872         * tests/test-floorl.c (main): Likewise.
33873         * tests/test-frexpl.c (main): Likewise.
33874         * tests/test-isnan.c (test_long_double): Likewise.
33875         * tests/test-isnanl.h (main): Likewise.
33876         * tests/test-ldexpl.h (main): Likewise.
33877         * tests/test-roundl.h (main): Likewise.
33878         * tests/test-truncl.h (main): Likewise.
33879         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33880
33881 2009-02-26  Eric Blake  <ebb9@byu.net>
33882             Bruno Haible  <bruno@clisp.org>
33883
33884         Work around a *printf bug with %ls on Solaris.
33885         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33886         precision is specified, sprintf stops converting the wide string
33887         argument when the number of bytes that have been produced by this
33888         conversion equals or exceeds the precision.
33889         * doc/posix-functions/fprintf.texi: Update.
33890         * doc/posix-functions/printf.texi: Update.
33891         * doc/posix-functions/snprintf.texi: Update.
33892         * doc/posix-functions/sprintf.texi: Update.
33893         * doc/posix-functions/vfprintf.texi: Update.
33894         * doc/posix-functions/vprintf.texi: Update.
33895         * doc/posix-functions/vsnprintf.texi: Update.
33896         * doc/posix-functions/vsprintf.texi: Update.
33897         * doc/glibc-functions/obstack_printf.texi: Update.
33898         * doc/glibc-functions/obstack_vprintf.texi: Update.
33899
33900 2009-02-26  Eric Blake  <ebb9@byu.net>
33901
33902         stdlib: favor compiler check of random.h
33903         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33904         to avoid an ObjC random.h installed by Swarm.
33905
33906 2009-02-26  Bruno Haible  <bruno@clisp.org>
33907
33908         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33909         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33910         Reported by Gary V. Vaughan <gary@gnu.org>.
33911
33912 2009-02-26  Bruno Haible  <bruno@clisp.org>
33913
33914         Fix *printf behaviour regarding the %ls directive.
33915         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33916         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33917         NEED_PRINTF_DIRECTIVE_LS.
33918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33919         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33920         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33921         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33922         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33923         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33924         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33929         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33933         * doc/posix-functions/fprintf.texi: Update.
33934         * doc/posix-functions/printf.texi: Update.
33935         * doc/posix-functions/snprintf.texi: Update.
33936         * doc/posix-functions/sprintf.texi: Update.
33937         * doc/posix-functions/vfprintf.texi: Update.
33938         * doc/posix-functions/vprintf.texi: Update.
33939         * doc/posix-functions/vsnprintf.texi: Update.
33940         * doc/posix-functions/vsprintf.texi: Update.
33941         * doc/glibc-functions/obstack_printf.texi: Update.
33942         * doc/glibc-functions/obstack_vprintf.texi: Update.
33943         Reported by Eric Blake.
33944
33945 2009-02-25  Bruno Haible  <bruno@clisp.org>
33946
33947         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33948         with known value.
33949         Reported by Gary V. Vaughan <gary@gnu.org>.
33950
33951 2009-02-25  Bruno Haible  <bruno@clisp.org>
33952
33953         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33954         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33955         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33956         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33957         Reported by Gary V. Vaughan <gary@gnu.org>.
33958
33959 2009-02-25  Bruno Haible  <bruno@clisp.org>
33960
33961         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33962         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33963         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33964         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33965         Reported by Gary V. Vaughan <gary@gnu.org>.
33966
33967 2009-02-25  Eric Blake  <ebb9@byu.net>
33968
33969         tests: skip fseek/ftell tests if ungetc is broken
33970         * m4/ungetc.m4: New file.
33971         * modules/fseek-tests: Split test, so ungetc dependency is
33972         separate from rest of test.
33973         * modules/fseeko-tests: Likewise.
33974         * modules/ftell-tests: Likewise.
33975         * modules/ftello-tests: Likewise.
33976         * tests/test-fseek.c (main): Isolate ungetc dependency.
33977         * tests/test-fseeko.c (main): Likewise.
33978         * tests/test-ftell.c (main): Likewise.
33979         * tests/test-ftello.c (main): Likewise.
33980         * tests/test-fseek2.sh: New file.
33981         * tests/test-fseeko2.sh: Likewise.
33982         * tests/test-ftell2.sh: Likewise.
33983         * tests/test-ftello2.sh: Likewise.
33984
33985 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33986
33987         test-getaddrinfo: fix usage of skip return code 77
33988         * tests/test-gettaddrinfo.c: Return skip code 77 only
33989         for first occurance of skip (4x77 is not 77)
33990
33991 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33992
33993         strtod: avoid C99 decl-after-statement
33994         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33995
33996 2009-02-24  Eric Blake  <ebb9@byu.net>
33997
33998         strtod: detect HP-UX 11.31 bug
33999         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34000         Reported by Gary V. Vaughan.
34001
34002 2009-02-23  Bruno Haible  <bruno@clisp.org>
34003
34004         Fix invalid read past end of memory block.
34005         * lib/vasnprintf.c (DCHAR_SET): Define.
34006         (local_wcslen): Define only when needed.
34007         (local_strnlen, local_wcsnlen): New functions.
34008         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34009         directives that involve a conversion ourselves.
34010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34011         wcsnlen, mbrtowc, wcrtomb.
34012         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34013         * tests/test-vasprintf-posix.c (test_function): Likewise.
34014         * tests/test-snprintf-posix.h (test_function): Likewise.
34015         * tests/test-sprintf-posix.h (test_function): Likewise.
34016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34017
34018 2009-02-22  Bruno Haible  <bruno@clisp.org>
34019
34020         Implement new clarified decomposition of Hangul syllables.
34021         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34022         of type LTV, return only a pairwise decomposition.
34023         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34024         Likewise.
34025         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34026         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34027         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34028
34029 2009-02-22  Bruno Haible  <bruno@clisp.org>
34030
34031         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34032         zero-length results and shrink excess allocated memory.
34033         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34034         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34035         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34036         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34037         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34038         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34039         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34040         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34041         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34042         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34043         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34044         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34045
34046 2009-02-21  Bruno Haible  <bruno@clisp.org>
34047
34048         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34049         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34050         spaces after a period. Put a space between a macro name and its
34051         argument list. Trivial rewordings.
34052         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34053         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34054         (main): Return 0 explicitly.
34055
34056 2009-02-21  Bruno Haible  <bruno@clisp.org>
34057
34058         Tests for module 'uninorm/filter'.
34059         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34060         * modules/uninorm/filter-tests: New file.
34061
34062         New module 'uninorm/filter'.
34063         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34064         uninorm_filter_flush, uninorm_filter_free): New declarations.
34065         * lib/uninorm/uninorm-filter.c: New file.
34066         * modules/uninorm/filter: New file.
34067
34068 2009-02-21  Bruno Haible  <bruno@clisp.org>
34069
34070         Tests for module 'uninorm/nfkc'.
34071         * tests/uninorm/test-nfkc.c: New file.
34072         * tests/uninorm/test-u8-nfkc.c: New file.
34073         * tests/uninorm/test-u16-nfkc.c: New file.
34074         * tests/uninorm/test-u32-nfkc.c: New file.
34075         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34076         * tests/uninorm/test-u32-nfkc-big.c: New file.
34077         * modules/uninorm/nfkc-tests: New file.
34078
34079         New module 'uninorm/nfkc'.
34080         * lib/uninorm/nfkc.c: New file.
34081         * modules/uninorm/nfkc: New file.
34082
34083         Tests for module 'uninorm/nfkd'.
34084         * tests/uninorm/test-nfkd.c: New file.
34085         * tests/uninorm/test-u8-nfkd.c: New file.
34086         * tests/uninorm/test-u16-nfkd.c: New file.
34087         * tests/uninorm/test-u32-nfkd.c: New file.
34088         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34089         * tests/uninorm/test-u32-nfkd-big.c: New file.
34090         * modules/uninorm/nfkd-tests: New file.
34091
34092         New module 'uninorm/nfkd'.
34093         * lib/uninorm/nfkd.c: New file.
34094         * modules/uninorm/nfkd: New file.
34095
34096         Tests for module 'uninorm/nfc'.
34097         * tests/uninorm/test-nfc.c: New file.
34098         * tests/uninorm/test-u8-nfc.c: New file.
34099         * tests/uninorm/test-u16-nfc.c: New file.
34100         * tests/uninorm/test-u32-nfc.c: New file.
34101         * tests/uninorm/test-u32-nfc-big.sh: New file.
34102         * tests/uninorm/test-u32-nfc-big.c: New file.
34103         * modules/uninorm/nfc-tests: New file.
34104
34105         New module 'uninorm/nfc'.
34106         * lib/uninorm/nfc.c: New file.
34107         * modules/uninorm/nfc: New file.
34108
34109         Tests for module 'uninorm/nfd'.
34110         * tests/uninorm/test-nfd.c: New file.
34111         * tests/uninorm/test-u8-nfd.c: New file.
34112         * tests/uninorm/test-u16-nfd.c: New file.
34113         * tests/uninorm/test-u32-nfd.c: New file.
34114         * tests/uninorm/test-u32-nfd-big.sh: New file.
34115         * tests/uninorm/test-u32-nfd-big.c: New file.
34116         * tests/uninorm/test-u32-normalize-big.h: New file.
34117         * tests/uninorm/test-u32-normalize-big.c: New file.
34118         * tests/uninorm/NormalizationTest.txt: New file, created from
34119         Unicode 5.1.0 NormalizationTest.txt.
34120         * modules/uninorm/nfd-tests: New file.
34121
34122         New module 'uninorm/nfd'.
34123         * lib/uninorm/nfd.c: New file.
34124         * modules/uninorm/nfd: New file.
34125
34126         New module 'uninorm/u32-normalize'.
34127         * lib/uninorm/u32-normalize.c: New file.
34128         * modules/uninorm/u32-normalize: New file.
34129
34130         New module 'uninorm/u16-normalize'.
34131         * lib/uninorm/u16-normalize.c: New file.
34132         * modules/uninorm/u16-normalize: New file.
34133
34134         New module 'uninorm/u8-normalize'.
34135         * lib/uninorm/u8-normalize.c: New file.
34136         * lib/uninorm/normalize-internal.h: New file.
34137         * lib/uninorm/u-normalize-internal.h: New file.
34138         * modules/uninorm/u8-normalize: New file.
34139
34140         New module 'uninorm/decompose-internal'.
34141         * lib/uninorm/decompose-internal.c: New file.
34142         * modules/uninorm/decompose-internal: New file.
34143
34144         Tests for module 'uninorm/composition'.
34145         * tests/uninorm/test-composition.c: New file.
34146         * modules/uninorm/composition-tests: New file.
34147
34148         New module 'uninorm/composition'.
34149         * lib/uninorm/composition.c: New file.
34150         * lib/uninorm/composition-table.gperf: New file, generated by
34151         gen-uni-tables.
34152         * modules/uninorm/composition: New file.
34153
34154         Tests for module 'uninorm/compat-decomposition'.
34155         * tests/uninorm/test-compat-decomposition.c: New file.
34156         * modules/uninorm/compat-decomposition-tests: New file.
34157
34158         New module 'uninorm/compat-decomposition'.
34159         * lib/uninorm/decompose-internal.h: New file.
34160         * lib/uninorm/compat-decomposition.c: New file.
34161         * modules/uninorm/compat-decomposition: New file.
34162
34163         Tests for module 'uninorm/canonical-decomposition'.
34164         * tests/uninorm/test-canonical-decomposition.c: New file.
34165         * modules/uninorm/canonical-decomposition-tests: New file.
34166
34167         New module 'uninorm/canonical-decomposition'.
34168         * lib/uninorm/canonical-decomposition.c: New file.
34169         * modules/uninorm/canonical-decomposition: New file.
34170
34171         Tests for module 'uninorm/decomposition'.
34172         * tests/uninorm/test-decomposition.c: New file.
34173         * modules/uninorm/decomposition-tests: New file.
34174
34175         New module 'uninorm/decomposition'.
34176         * lib/uninorm/decomposition.c: New file.
34177         * modules/uninorm/decomposition: New file.
34178
34179         New module 'uninorm/decomposition-table'.
34180         * lib/uninorm/decomposition-table.h: New file.
34181         * lib/uninorm/decomposition-table.c: New file.
34182         * lib/uninorm/decomposition-table1.h: New file, generated by
34183         gen-uni-tables.
34184         * lib/uninorm/decomposition-table2.h: New file, generated by
34185         gen-uni-tables.
34186         * modules/uninorm/decomposition-table: New file.
34187
34188         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34189         (UC_DECOMP_*): New enumeration items.
34190         (get_decomposition): New function.
34191         (struct decomp_table): New type.
34192         (output_decomposition, output_decomposition_tables): New functions.
34193         (unicode_composition_exclusions): New variable.
34194         (fill_composition_exclusions, debug_output_composition_tables): New
34195         functions.
34196         (main): Accept one more argument. Invoke fill_composition_exclusions.
34197         Output decomposition and composition tables.
34198
34199         New module 'uninorm/base'.
34200         * lib/uninorm.h: New file.
34201         * lib/unictype.h: Update comment.
34202         * modules/uninorm/base: New file.
34203
34204 2009-02-21  David Lutterkort  <lutter@redhat.com>
34205
34206         Tests for module 'safe-alloc'.
34207         * tests/test-safe-alloc.c: New file.
34208         * modules/safe-alloc-tests: New file.
34209
34210         New module 'safe-alloc'.
34211         * lib/safe-alloc.h: New file.
34212         * lib/safe-alloc.c: New file.
34213         * m4/safe-alloc.m4: New file.
34214         * modules/safe-alloc: New file.
34215         * doc/safe-alloc.texi: New file.
34216         * doc/gnulib.texi: Include it.
34217         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34218         safe-alloc.
34219
34220 2009-02-18  Bruno Haible  <bruno@clisp.org>
34221
34222         Fix link error on non-glibc systems.
34223         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34224         variable.
34225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34226
34227 2009-02-18  Jim Meyering  <meyering@redhat.com>
34228
34229         fts: avoid used-uninitialized error due to recent change
34230         * lib/fts.c (fts_read): Guard uses of the new member,
34231         parent->fts_n_dirs_remaining, since it's not relevant for
34232         the parent of a directory specified on the command-line.
34233
34234 2009-02-17  James Youngman  <jay@gnu.org>
34235             Bruno Haible  <bruno@clisp.org>
34236
34237         * m4/include_next.m4: Reformulate comment.
34238
34239 2009-02-16  Jim Meyering  <meyering@redhat.com>
34240
34241         fts: add #if guards so that the fts_lgpl module still builds
34242         * lib/fts.c: Guard just-added hash-table-using parts with
34243         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34244         Reported by Simon Josefsson.
34245
34246 2009-02-15  Bruno Haible  <bruno@clisp.org>
34247
34248         * modules/array-mergesort-tests: New file.
34249         * tests/test-array-mergesort.c: New file.
34250
34251         New module 'array-mergesort'.
34252         * modules/array-mergesort: New file.
34253         * lib/array-mergesort.h: New file.
34254
34255 2009-02-15  Bruno Haible  <bruno@clisp.org>
34256
34257         Fix 2009-02-07 commit.
34258         * lib/gen-uni-tables.c (output_predicate, output_category,
34259         output_combclass, output_bidi_category, output_decimal_digit,
34260         output_digit, output_numeric, output_mirror, output_scripts,
34261         output_ident_category, output_simple_mapping): Fix format directives.
34262         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34263
34264 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34265
34266         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34267         fixes are available from IBM.
34268
34269 2009-02-13  Jim Meyering  <meyering@redhat.com>
34270
34271         fts: arrange not to stat non-directories in more cases
34272         This makes GNU find (when it doesn't need to stat each file)
34273         *much* more efficient at traversing reiserfs file systems.
34274         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34275         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34276         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34277         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34278         (leaf_optimization_applies): New function.
34279         (LCO_hash, LCO_compare): New helper functions.
34280         (link_count_optimize_ok): New function.
34281         (fts_stat): Initialize new member (if dir).
34282         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34283         we've just stat'ed a directory.  Skip the stat call when possible.
34284         ---
34285         Note this AFS-related exchange:
34286         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34287         and note find's pioctl call in find/fstype.c.
34288         But that is necessary only if you want to enable the
34289         optimization for AFS, and for now, I don't.
34290
34291         fts: move a function definition "up" (no semantic change)
34292         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34293         "up" to precede upcoming use of a related function.
34294
34295 2009-02-11  Jim Meyering  <meyering@redhat.com>
34296
34297         fts: correct internal computation of nlinks (optimization-related)
34298         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34299         whether the current entry is a directory, so don't test it.
34300
34301 2009-02-10  Bruno Haible  <bruno@clisp.org>
34302
34303         Tests for module 'uniwbrk/ulc-wordbreaks'.
34304         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34305         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34306         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34307
34308         Tests for module 'uniwbrk/u32-wordbreaks'.
34309         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34310         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34311
34312         Tests for module 'uniwbrk/u16-wordbreaks'.
34313         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34314         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34315
34316         Tests for module 'uniwbrk/u8-wordbreaks'.
34317         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34318         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34319
34320 2009-02-10  Bruno Haible  <bruno@clisp.org>
34321
34322         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34323         property.
34324         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34325         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34326         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34327
34328 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34329
34330         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34331         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34332
34333 2009-02-10  Bruno Haible  <bruno@clisp.org>
34334
34335         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34336         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34337         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34338         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34339         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34340         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34341
34342 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34343
34344         * lib/sockets.h (gl_fd_to_handle): New function.
34345
34346         * tests/test-sockets.c: Call gl_fd_to_handle.
34347
34348 2009-02-09  Bruno Haible  <bruno@clisp.org>
34349
34350         * doc/havelib.texi: Document the conventions on bi-arch systems.
34351
34352 2009-02-08  Bruno Haible  <bruno@clisp.org>
34353
34354         Document the AC_LIB_LINKFLAGS macro.
34355         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34356         * doc/gnulib.texi: Include it.
34357
34358 2009-02-08  Bruno Haible  <bruno@clisp.org>
34359
34360         Fix wrong order of sections, compared to TOC.
34361         * doc/gnulib.texi: Include relocatable-maint.texi after the
34362         "Regular expressions" node, not before.
34363
34364 2009-02-08  Bruno Haible  <bruno@clisp.org>
34365
34366         Tests for module 'unicase/totitle'.
34367         * modules/unicase/totitle-tests: New file.
34368
34369         Tests for module 'unicase/tolower'.
34370         * modules/unicase/tolower-tests: New file.
34371
34372         Tests for module 'unicase/toupper'.
34373         * modules/unicase/toupper-tests: New file.
34374         * tests/unicase/test-mapping-part1.h: New file.
34375         * tests/unicase/test-mapping-part2.h: New file.
34376
34377         New module 'unicase/totitle'.
34378         * modules/unicase/totitle: New file.
34379         * lib/unicase/totitle.c: New file.
34380
34381         New module 'unicase/tolower'.
34382         * modules/unicase/tolower: New file.
34383         * lib/unicase/tolower.c: New file.
34384
34385         New module 'unicase/toupper'.
34386         * modules/unicase/toupper: New file.
34387         * lib/unicase/toupper.c: New file.
34388         * lib/unicase/simple-mapping.h: New file.
34389
34390         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34391         (mapping_table): New structure.
34392         (output_simple_mapping): New function.
34393         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34394         * modules/gen-uni-tables (Description): Update.
34395         * lib/unicase/toupper.h: New file, automatically generated by
34396         gen-uni-tables.
34397         * lib/unicase/tolower.h: New file, automatically generated by
34398         gen-uni-tables.
34399         * lib/unicase/totitle.h: New file, automatically generated by
34400         gen-uni-tables.
34401         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34402         gen-uni-tables.
34403         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34404         gen-uni-tables.
34405         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34406         gen-uni-tables.
34407
34408         New module 'unicase/base'.
34409         * modules/unicase/base: New file.
34410         * lib/unicase.h: New file.
34411
34412 2009-02-08  Bruno Haible  <bruno@clisp.org>
34413
34414         New module 'uniwbrk/ulc-wordbreaks'.
34415         * modules/uniwbrk/ulc-wordbreaks: New file.
34416         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34417
34418         New module 'uniwbrk/u32-wordbreaks'.
34419         * modules/uniwbrk/u32-wordbreaks: New file.
34420         * lib/uniwbrk/u32-wordbreaks.c: New file.
34421
34422         New module 'uniwbrk/u16-wordbreaks'.
34423         * modules/uniwbrk/u16-wordbreaks: New file.
34424         * lib/uniwbrk/u16-wordbreaks.c: New file.
34425
34426         New module 'uniwbrk/u8-wordbreaks'.
34427         * modules/uniwbrk/u8-wordbreaks: New file.
34428         * lib/uniwbrk/u8-wordbreaks.c: New file.
34429         * lib/uniwbrk/u-wordbreaks.h: New file.
34430
34431         New module 'uniwbrk/table'.
34432         * modules/uniwbrk/table: New file.
34433         * lib/uniwbrk/wbrktable.h: New file.
34434         * lib/uniwbrk/wbrktable.c: New file.
34435
34436         New module 'uniwbrk/wordbreak-property'.
34437         * modules/uniwbrk/wordbreak-property: New file.
34438         * lib/uniwbrk/wordbreak-property.c: New file.
34439
34440         * lib/gen-uni-tables.c (WBP_*): New enum items.
34441         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34442         (unicode_org_wbp): New variable.
34443         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34444         New functions.
34445         (wbp_table): New structure.
34446         (output_wbp, output_wbrk_tables): New functions.
34447         (main): Accept additional argument. Invoke fill_org_wbp,
34448         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34449         output_wbrk_tables.
34450         * modules/gen-uni-tables (Description): Update.
34451         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34452         gen-uni-tables.
34453
34454         New module 'uniwbrk/base'.
34455         * modules/uniwbrk/base: New file.
34456         * lib/uniwbrk.h: New file.
34457
34458 2009-02-08  Bruno Haible  <bruno@clisp.org>
34459
34460         Update to Unicode 5.1.0.
34461         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34462         U+2185..U+2188.
34463         (is_property_default_ignorable_code_point): Don't include characters
34464         of category Cc or Cs and not-a-characters.
34465         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34466         U+0D79, U+109E, U+109F, U+A60C.
34467         * lib/unictype/bidi_of.h: Regenerated.
34468         * lib/unictype/blocks.h: Regenerated.
34469         * lib/unictype/categ_C.h: Regenerated.
34470         * lib/unictype/categ_Cf.h: Regenerated.
34471         * lib/unictype/categ_Cn.h: Regenerated.
34472         * lib/unictype/categ_L.h: Regenerated.
34473         * lib/unictype/categ_Ll.h: Regenerated.
34474         * lib/unictype/categ_Lm.h: Regenerated.
34475         * lib/unictype/categ_Lo.h: Regenerated.
34476         * lib/unictype/categ_Lu.h: Regenerated.
34477         * lib/unictype/categ_M.h: Regenerated.
34478         * lib/unictype/categ_Mc.h: Regenerated.
34479         * lib/unictype/categ_Me.h: Regenerated.
34480         * lib/unictype/categ_Mn.h: Regenerated.
34481         * lib/unictype/categ_N.h: Regenerated.
34482         * lib/unictype/categ_Nd.h: Regenerated.
34483         * lib/unictype/categ_Nl.h: Regenerated.
34484         * lib/unictype/categ_No.h: Regenerated.
34485         * lib/unictype/categ_P.h: Regenerated.
34486         * lib/unictype/categ_Pd.h: Regenerated.
34487         * lib/unictype/categ_Pe.h: Regenerated.
34488         * lib/unictype/categ_Pf.h: Regenerated.
34489         * lib/unictype/categ_Pi.h: Regenerated.
34490         * lib/unictype/categ_Po.h: Regenerated.
34491         * lib/unictype/categ_Ps.h: Regenerated.
34492         * lib/unictype/categ_S.h: Regenerated.
34493         * lib/unictype/categ_Sk.h: Regenerated.
34494         * lib/unictype/categ_Sm.h: Regenerated.
34495         * lib/unictype/categ_So.h: Regenerated.
34496         * lib/unictype/categ_of.h: Regenerated.
34497         * lib/unictype/combining.h: Regenerated.
34498         * lib/unictype/ctype_alnum.h: Regenerated.
34499         * lib/unictype/ctype_alpha.h: Regenerated.
34500         * lib/unictype/ctype_graph.h: Regenerated.
34501         * lib/unictype/ctype_lower.h: Regenerated.
34502         * lib/unictype/ctype_print.h: Regenerated.
34503         * lib/unictype/ctype_punct.h: Regenerated.
34504         * lib/unictype/ctype_upper.h: Regenerated.
34505         * lib/unictype/decdigit.h: Regenerated.
34506         * lib/unictype/digit.h: Regenerated.
34507         * lib/unictype/mirror.h: Regenerated.
34508         * lib/unictype/numeric.h: Regenerated.
34509         * lib/unictype/pr_alphabetic.h: Regenerated.
34510         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34511         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34512         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34513         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34514         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34515         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34516         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34517         * lib/unictype/pr_combining.h: Regenerated.
34518         * lib/unictype/pr_dash.h: Regenerated.
34519         * lib/unictype/pr_decimal_digit.h: Regenerated.
34520         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34521         * lib/unictype/pr_deprecated.h: Regenerated.
34522         * lib/unictype/pr_diacritic.h: Regenerated.
34523         * lib/unictype/pr_extender.h: Regenerated.
34524         * lib/unictype/pr_format_control.h: Regenerated.
34525         * lib/unictype/pr_grapheme_base.h: Regenerated.
34526         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34527         * lib/unictype/pr_grapheme_link.h: Regenerated.
34528         * lib/unictype/pr_id_continue.h: Regenerated.
34529         * lib/unictype/pr_id_start.h: Regenerated.
34530         * lib/unictype/pr_ideographic.h: Regenerated.
34531         * lib/unictype/pr_ignorable_control.h: Regenerated.
34532         * lib/unictype/pr_lowercase.h: Regenerated.
34533         * lib/unictype/pr_math.h: Regenerated.
34534         * lib/unictype/pr_numeric.h: Regenerated.
34535         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34536         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34537         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34538         * lib/unictype/pr_other_id_continue.h: Regenerated.
34539         * lib/unictype/pr_other_lowercase.h: Regenerated.
34540         * lib/unictype/pr_other_math.h: Regenerated.
34541         * lib/unictype/pr_punctuation.h: Regenerated.
34542         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34543         * lib/unictype/pr_soft_dotted.h: Regenerated.
34544         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34545         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34546         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34547         * lib/unictype/pr_uppercase.h: Regenerated.
34548         * lib/unictype/pr_xid_continue.h: Regenerated.
34549         * lib/unictype/pr_xid_start.h: Regenerated.
34550         * lib/unictype/pr_zero_width.h: Regenerated.
34551         * lib/unictype/scripts.h: Regenerated.
34552         * lib/unictype/scripts_byname.gperf: Regenerated.
34553         * lib/unictype/sy_java_ident.h: Regenerated.
34554         * lib/unilbrk/lbrkprop1.h: Regenerated.
34555         * lib/unilbrk/lbrkprop2.h: Regenerated.
34556         * tests/unictype/test-categ_C.c: Regenerated.
34557         * tests/unictype/test-categ_Cf.c: Regenerated.
34558         * tests/unictype/test-categ_Cn.c: Regenerated.
34559         * tests/unictype/test-categ_L.c: Regenerated.
34560         * tests/unictype/test-categ_Ll.c: Regenerated.
34561         * tests/unictype/test-categ_Lm.c: Regenerated.
34562         * tests/unictype/test-categ_Lo.c: Regenerated.
34563         * tests/unictype/test-categ_Lu.c: Regenerated.
34564         * tests/unictype/test-categ_M.c: Regenerated.
34565         * tests/unictype/test-categ_Mc.c: Regenerated.
34566         * tests/unictype/test-categ_Me.c: Regenerated.
34567         * tests/unictype/test-categ_Mn.c: Regenerated.
34568         * tests/unictype/test-categ_N.c: Regenerated.
34569         * tests/unictype/test-categ_Nd.c: Regenerated.
34570         * tests/unictype/test-categ_Nl.c: Regenerated.
34571         * tests/unictype/test-categ_No.c: Regenerated.
34572         * tests/unictype/test-categ_P.c: Regenerated.
34573         * tests/unictype/test-categ_Pd.c: Regenerated.
34574         * tests/unictype/test-categ_Pe.c: Regenerated.
34575         * tests/unictype/test-categ_Pf.c: Regenerated.
34576         * tests/unictype/test-categ_Pi.c: Regenerated.
34577         * tests/unictype/test-categ_Po.c: Regenerated.
34578         * tests/unictype/test-categ_Ps.c: Regenerated.
34579         * tests/unictype/test-categ_S.c: Regenerated.
34580         * tests/unictype/test-categ_Sk.c: Regenerated.
34581         * tests/unictype/test-categ_Sm.c: Regenerated.
34582         * tests/unictype/test-categ_So.c: Regenerated.
34583         * tests/unictype/test-ctype_alnum.c: Regenerated.
34584         * tests/unictype/test-ctype_alpha.c: Regenerated.
34585         * tests/unictype/test-ctype_graph.c: Regenerated.
34586         * tests/unictype/test-ctype_lower.c: Regenerated.
34587         * tests/unictype/test-ctype_print.c: Regenerated.
34588         * tests/unictype/test-ctype_punct.c: Regenerated.
34589         * tests/unictype/test-ctype_upper.c: Regenerated.
34590         * tests/unictype/test-decdigit.h: Regenerated.
34591         * tests/unictype/test-digit.h: Regenerated.
34592         * tests/unictype/test-numeric.h: Regenerated.
34593         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34594         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34595         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34596         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34597         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34598         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34599         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34600         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34601         * tests/unictype/test-pr_combining.c: Regenerated.
34602         * tests/unictype/test-pr_dash.c: Regenerated.
34603         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34604         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34605         * tests/unictype/test-pr_deprecated.c: Regenerated.
34606         * tests/unictype/test-pr_diacritic.c: Regenerated.
34607         * tests/unictype/test-pr_extender.c: Regenerated.
34608         * tests/unictype/test-pr_format_control.c: Regenerated.
34609         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34610         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34611         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34612         * tests/unictype/test-pr_id_continue.c: Regenerated.
34613         * tests/unictype/test-pr_id_start.c: Regenerated.
34614         * tests/unictype/test-pr_ideographic.c: Regenerated.
34615         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34616         * tests/unictype/test-pr_lowercase.c: Regenerated.
34617         * tests/unictype/test-pr_math.c: Regenerated.
34618         * tests/unictype/test-pr_numeric.c: Regenerated.
34619         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34620         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34621         Regenerated.
34622         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34623         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34624         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34625         * tests/unictype/test-pr_other_math.c: Regenerated.
34626         * tests/unictype/test-pr_punctuation.c: Regenerated.
34627         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34628         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34629         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34630         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34631         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34632         * tests/unictype/test-pr_uppercase.c: Regenerated.
34633         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34634         * tests/unictype/test-pr_xid_start.c: Regenerated.
34635         * tests/unictype/test-pr_zero_width.c: Regenerated.
34636
34637         Update to Unicode 5.1.0.
34638         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34639         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34640         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34641         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34642         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34643         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34644         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34645         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34646         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34647         (nonspacing_table_ind): Update.
34648         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34649
34650         Update to Unicode 5.1.0.
34651         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34652         code transform.
34653         * lib/uniname/uniname.c (unicode_character_name,
34654         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34655         * lib/uniname/uninames.h: Regenerated.
34656         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34657
34658 2009-02-07  Bruno Haible  <bruno@clisp.org>
34659
34660         Merge gen-ctype and gen-lbrk into a single program.
34661         * lib/gen-uni-tables.c: New file, incorporating
34662         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34663         Add directory prefixes to the names of the generated files.
34664         * lib/unictype/gen-ctype.c: Remove file.
34665         * lib/unilbrk/gen-lbrk.c: Remove file.
34666         * modules/gen-uni-tables: New file.
34667         * modules/unictype/gen-ctype: Remove file.
34668         * modules/unilbrk/gen-lbrk: Remove file.
34669
34670 2009-02-07  Bruno Haible  <bruno@clisp.org>
34671
34672         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34673
34674         New module 'unistr/u32-strcoll'.
34675         * modules/unistr/u32-strcoll: New file.
34676         * lib/unistr/u32-strcoll.c: New file.
34677
34678         New module 'unistr/u16-strcoll'.
34679         * modules/unistr/u16-strcoll: New file.
34680         * lib/unistr/u16-strcoll.c: New file.
34681
34682         New module 'unistr/u8-strcoll'.
34683         * modules/unistr/u8-strcoll: New file.
34684         * lib/unistr/u8-strcoll.c: New file.
34685         * lib/unistr/u-strcoll.h: New file.
34686
34687 2009-02-07  Bruno Haible  <bruno@clisp.org>
34688
34689         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34690         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34691         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34692         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34693         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34694         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34695
34696 2009-02-07  Bruno Haible  <bruno@clisp.org>
34697
34698         Make 64-bit clean.
34699         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34700         output_combclass, output_bidi_category, output_decimal_digit,
34701         output_digit, output_numeric, output_mirror, output_scripts,
34702         output_ident_category): Use proper width specifier in format strings.
34703
34704 2009-02-07  Bruno Haible  <bruno@clisp.org>
34705
34706         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34707         failure behaviour.
34708
34709 2009-02-07  Jim Meyering  <meyering@redhat.com>
34710
34711         regex: avoid compilation failure with upcoming gcc-4.4
34712         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34713         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34714         "... error: integer overflow in preprocessor expression".
34715
34716 2009-02-05  Ben Pfaff  <blp@gnu.org>
34717
34718         Fix link errors on Windows when close module is used.
34719         * modules/close: Add $(LIB_CLOSE) to Link section.
34720         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34721         $(LIB_CLOSE) on Windows.
34722
34723 2009-02-05  Jim Meyering  <meyering@redhat.com>
34724
34725         still avoid unused-parameter warnings, but do it cleanly
34726         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34727         (get_fs_usage): Cast to void instead.
34728         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34729         (dev_from_mount_options, read_file_system_list): Cast to void.
34730         Prompted by Bruno Haible.
34731
34732 2009-02-04  Jim Meyering  <meyering@redhat.com>
34733
34734         fsusage.c: correct copyright year
34735         * lib/fsusage.c: Reflect year in which the change is pushed into
34736
34737         avoid misc. warnings
34738         * lib/fsusage.c (UNUSED_PARAM): Define.
34739         (get_fs_usage): Mark parameter "disk" as unused.
34740         * lib/getugroups.c (getgrent): Use "void" in prototype.
34741         * lib/mountlist.c: Mark unused parameters.
34742         (read_file_system_list): Declare a local with "const".
34743         * lib/nanosleep.c (getnow): Declare static.
34744         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34745
34746         dirfd: set errno upon failure
34747         * lib/dirfd.c: Include <errno.h>.
34748         Set errno to ENOTSUP when returning -1.
34749         * modules/dirfd (Depends-on): Add errno.
34750         Suggested by John Kodis <kodis@comcast.net>.
34751
34752 2009-02-01  Bruno Haible  <bruno@clisp.org>
34753
34754         Don't assume sizeof (long) >= sizeof (void *).
34755         * lib/memcmp.c: Include stdint.h.
34756         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34757         srcp2 to 'const byte *'.
34758         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34759         types to uintptr_t.
34760         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34761         * modules/memcmp (Depends-on): Add stdint.
34762         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34763
34764 2009-01-30  Eric Blake  <ebb9@byu.net>
34765
34766         fix more require-before-expand issues
34767         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34768         expand, AC_PROG_AWK.
34769         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34770
34771 2009-01-28  Eric Blake  <ebb9@byu.net>
34772
34773         version-etc: use consistent URL formatting
34774         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34775         Improve formatting.  Use fputs for string without %.
34776
34777 2009-01-28  Jim Meyering  <meyering@redhat.com>
34778
34779         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34780         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34781         "underquoted definition of NAME" from autoconf-2.59.
34782
34783 2009-01-28  Bruno Haible  <bruno@clisp.org>
34784
34785         * doc/gnulib.texi: Add "Obsolete modules" to index.
34786
34787 2009-01-28  Jim Meyering  <meyering@redhat.com>
34788
34789         useless-if-before-free: recognize more variants
34790         * build-aux/useless-if-before-free: Also recognize e.g.,
34791         if (NULL != p) free (p);
34792
34793 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34794
34795         test-getaddrinfo: skip (don't fail) this test when there's no network
34796         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34797         on the presumption that it means you lack network access.
34798
34799 2009-01-26  Jim Meyering  <meyering@redhat.com>
34800
34801         fflush: avoid warnings on modern systems
34802         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34803         pos and result, into scopes where they're used.
34804
34805 2009-01-26  Eric Blake  <ebb9@byu.net>
34806
34807         Silence warning reintroduced by recent extensions patch.
34808         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34809         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34810         autoconf.
34811
34812         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34813         * m4/00gnulib.m4: New file.
34814         * gnulib-tool (func_get_filelist): Always use it.
34815         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34816         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34817
34818 2009-01-25  Bruno Haible  <bruno@clisp.org>
34819
34820         Make test-quotearg work on MacOS X and AIX.
34821         * tests/test-quotearg.sh: New file.
34822         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34823         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34824         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34825         include <libintl.h>.
34826         (fake_locale): Remove variable.
34827         (gettext, dgettext, dcgettext): Remove functions.
34828         (main): Instead of setting a fake locale, set a real locale. Call
34829         textdomain and bindtextdomain.
34830         * modules/quotearg-tests (Files): Add the new files.
34831         (Depends-on): Add gettext, setenv, unsetenv.
34832         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34833         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34834         Augment TESTS_ENVIRONMENT.
34835
34836 2009-01-25  Bruno Haible  <bruno@clisp.org>
34837
34838         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34839         fr_FR.ISO8859-1 locale on MacOS X.
34840         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34841         ja_JP.eucJP locale on MacOS X.
34842         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34843         zh_CN.GB18030 locale on MacOS X.
34844
34845 2009-01-25  Bruno Haible  <bruno@clisp.org>
34846
34847         Avoid link errors on MacOS X 10.3.
34848         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34849         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34850
34851 2009-01-25  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34854         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34855         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34856         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34857         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34858         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34859         posix_spawnattr_init, posix_spawnattr_setsigmask,
34860         posix_spawnattr_setflags, posix_spawnattr_destroy.
34861
34862         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34863         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34864         * modules/execute (Files): Remove m4/posix_spawn.m4.
34865         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34866         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34867         posix_spawnattr_init, posix_spawnattr_setsigmask,
34868         posix_spawnattr_setflags, posix_spawnattr_destroy.
34869
34870 2009-01-25  Bruno Haible  <bruno@clisp.org>
34871
34872         * lib/glthread/threadlib.c: Include <stdlib.h>.
34873
34874 2009-01-25  Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/glthread/threadlib.c (dummy): New declaration.
34877
34878 2009-01-25  Bruno Haible  <bruno@clisp.org>
34879
34880         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34881         multibyte characters also for the GB18030 encoding. Don't crash when
34882         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34883
34884 2009-01-25  Bruno Haible  <bruno@clisp.org>
34885
34886         Avoid redefining 'struct random_data' on OSF/1 5.1.
34887         * lib/stdlib.in.h: Include <random.h> if it exists.
34888         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34889         HAVE_RANDOM_H. Include <random.h> when testing whether
34890         'struct random_data' exists.
34891         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34892
34893 2009-01-25  Bruno Haible  <bruno@clisp.org>
34894
34895         Don't install charset.alias on MacOS X >= 10.3.
34896         * lib/localcharset.c (DARWIN7): New macro.
34897         (get_charset_aliases): Hardcode the result for Darwin7.
34898         * modules/localcharset (install-exec-local): Don't install
34899         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34900
34901 2009-01-25  Bruno Haible  <bruno@clisp.org>
34902
34903         Don't install charset.alias on mingw and Cygwin.
34904         * modules/localcharset (install-exec-local): Don't install
34905         charset.alias on mingw and Cygwin, if the file does not yet exist.
34906         The result for these platforms is hardcoded in localcharset.c.
34907
34908 2009-01-25  Bruno Haible  <bruno@clisp.org>
34909
34910         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34912         before requiring AC_USE_SYSTEM_EXTENSIONS.
34913
34914 2009-01-25  Jim Meyering  <meyering@redhat.com>
34915
34916         c-strtod: avoid warnings
34917         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34918         "assignment discards qualifiers from pointer target type" warnings.
34919
34920 2009-01-24  Bruno Haible  <bruno@clisp.org>
34921
34922         Add support for non-UTF-8 locales on MacOS X.
34923         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34924         canonical encodings. For Darwin 7 and newer, don't map traditional
34925         encodings to UTF-8.
34926         Reported by Vincent Lefevre <vincent@vinc17.org>
34927         at <http://savannah.gnu.org/bugs/?25235>.
34928
34929 2009-01-24  Bruno Haible  <bruno@clisp.org>
34930
34931         * doc/gnulib.texi (Obsolete modules): New section.
34932         Reported by Mike Frysinger <vapier@gentoo.org>.
34933
34934 2009-01-24  Bruno Haible  <bruno@clisp.org>
34935
34936         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34937         (%.dvi): New rule.
34938
34939 2009-01-24  Bruno Haible  <bruno@clisp.org>
34940
34941         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34942         Reported by Eric Blake.
34943
34944 2009-01-24  Bruno Haible  <bruno@clisp.org>
34945
34946         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34947         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34948         Reported by Gary V. Vaughan <gary@gnu.org>.
34949
34950 2009-01-24  Bruno Haible  <bruno@clisp.org>
34951
34952         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34953
34954 2009-01-23  Bruno Haible  <bruno@clisp.org>
34955
34956         Make c-strtod, c-strtold usable in libraries.
34957         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34958         (C_STRTOD): Call strdup instead of xstrdup.
34959         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34960         * modules/c-strtold (Depends-on): Likewise.
34961         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34962         * NEWS: Mention the change.
34963         Reported by Michael Gold <mgold@ncf.ca>.
34964
34965 2009-01-23  Jim Meyering  <meyering@redhat.com>
34966
34967         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34968         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34969         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34970
34971 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34972
34973         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34974         GNU CoreUtils.
34975         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34976         * modules/version-etc (Description): Update.
34977
34978 2009-01-22  Bruno Haible  <bruno@clisp.org>
34979
34980         Cache the C locale object.
34981         * lib/c-strtod.c (c_locale_cache): New variable.
34982         (c_locale): New function.
34983         (C_STRTOD): Use it, and don't call freelocale.
34984         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34985         Suggested by Paolo Bonzini.
34986
34987 2009-01-21  Bruno Haible  <bruno@clisp.org>
34988
34989         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34990         conditions other than overflow.
34991
34992 2009-01-21  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/c-strtod.c: Include errno.h.
34995         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34996         value from STRTOD_L and STRTOD.
34997
34998 2009-01-21  Bruno Haible  <bruno@clisp.org>
34999         and Jim Meyering  <meyering@redhat.com>
35000
35001         nanosleep: skip configure test (fail it) for apple universal builds
35002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35003         universal builds, assume that nanosleep does not work.
35004         * modules/nanosleep (Depends-on): Add multiarch.
35005
35006         mktime: skip configure test (fail it) for apple universal builds
35007         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35008         universal builds, assume that mktime does not work.
35009         * modules/mktime (Depends-on): Add multiarch.
35010
35011 2009-01-21  Eric Blake  <ebb9@byu.net>
35012
35013         multiarch: avoid expand-before-require warning
35014         * modules/multiarch (configure.ac): Require, rather than expand,
35015         gl_MULTIARCH.
35016         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35017         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35018         enforce that all clients require it.  Partial reversion of
35019         2008-12-29 patch.
35020
35021         error: avoid expand-before-require warning
35022         * modules/errno (configure.ac): Require, rather than expand,
35023         gl_HEADER_ERRNO_H.
35024         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35025         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35026         enforce that all clients require it.
35027
35028         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35029         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35030         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35031         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35032
35033 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35034
35035         Revert:
35036         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35037
35038         regex: do not depend on obsolete modules.
35039         * modules/regex: Remove memcmp and memmove.
35040
35041 2009-01-20  Bruno Haible  <bruno@clisp.org>
35042
35043         Make the 'link' module link on Windows NT 4.
35044         * lib/link.c (_WIN32_WINNT): Don't define.
35045         (CreateHardLinkFuncType): New type.
35046         (CreateHardLinkFunc, initialized): New variables.
35047         (initialize): New function.
35048         (link): Invoke CreateHardLink indirectly through the function pointer.
35049
35050 2009-01-20  Bruno Haible  <bruno@clisp.org>
35051
35052         Fix compilation failure on mingw.
35053         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35054
35055 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35056
35057         * doc/c-strtod.texi: Mention a couple of restrictions.
35058
35059 2009-01-20  Jim Meyering  <meyering@redhat.com>
35060
35061         gettimeofday: move more declarations out of functions
35062         * lib/gettimeofday.c: Move extern declarations of tzset and
35063         gmtime out of containing functions.  Prompted by Bruno Haible.
35064
35065 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35066
35067         regex: do not depend on obsolete modules.
35068         * modules/regex: Remove memcmp and memmove.
35069
35070 2009-01-19  Bruno Haible  <bruno@clisp.org>
35071
35072         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35073         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35074         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35075         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35076         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35077
35078 2009-01-19  Bruno Haible  <bruno@clisp.org>
35079
35080         * tests/test-link.c: Include <errno.h>.
35081         (main): Exit with code 77 when a hard link cannot be created due to
35082         the file system.
35083         * tests/test-link.sh: Skip test when a hard link cannot be created due
35084         to the file system.
35085         Suggested by Eric Blake.
35086
35087 2009-01-19  Martin Lambers  <marlam@marlam.de>
35088
35089         * modules/link-tests: New file.
35090         * tests/test-link.sh: New file.
35091         * tests/test-link.c: New file.
35092
35093 2009-01-19  Eric Blake  <ebb9@byu.net>
35094
35095         doc: mention another function added in cygwin 1.7.0
35096         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35097         Another new function in cygwin 1.7.
35098
35099 2009-01-19  Bruno Haible  <bruno@clisp.org>
35100
35101         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35102         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35103         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35104         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35105         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35106         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35107         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35108         * m4/md4.m4 (gl_MD4): Likewise.
35109         * m4/md5.m4 (gl_MD5): Likewise.
35110         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35111         * m4/sha1.m4 (gl_SHA1): Likewise.
35112         * m4/sha256.m4 (gl_SHA256): Likewise.
35113         * m4/sha512.m4 (gl_SHA512): Likewise.
35114
35115 2009-01-19  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/uniname/uniname-tests (Depends-on): Add progname.
35118         * tests/uniname/test-uninames.c: Include progname.h.
35119         (main): Call set_program_name.
35120
35121         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35122         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35123         (main): Call set_program_name.
35124
35125         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35126         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35127         (main): Call set_program_name.
35128
35129         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35130         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35131         (main): Call set_program_name.
35132
35133         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35134         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35135         (main): Call set_program_name.
35136
35137         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35138         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35139         (main): Call set_program_name.
35140
35141         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35142         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35143         (main): Call set_program_name.
35144
35145         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35146         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35147         (main): Call set_program_name.
35148
35149         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35150         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35151         (main): Call set_program_name.
35152
35153 2009-01-19  Eric Blake  <ebb9@byu.net>
35154
35155         test-unistd: test previous patch
35156         * tests/test-unistd.c: Test *_FILENO macros.
35157
35158         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35159         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35160         Guarantee a definition.
35161         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35162         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35163         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35164         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35165         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35166         Likewise.
35167         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35168         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35169         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35170         Likewise.
35171         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35172         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35173         (STDERR_FILENO): Likewise.
35174         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35175         (STDERR_FILENO): Likewise.
35176         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35177         (STDERR_FILENO): Likewise.
35178         Reported by Elbert Pol.
35179
35180 2009-01-19  Eric Blake  <ebb9@byu.net>
35181
35182         doc: mention more functions added in cygwin 1.7.0
35183         * doc/posix-functions/abort.texi (abort): Update wording related
35184         to cygwin.
35185         * doc/posix-functions/daylight.texi (daylight): Likewise.
35186         * doc/posix-functions/optarg.texi (optarg): Likewise.
35187         * doc/posix-functions/optarg.texi (opterr): Likewise.
35188         * doc/posix-functions/optarg.texi (optind): Likewise.
35189         * doc/posix-functions/optarg.texi (optopt): Likewise.
35190         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35191         worked in 1.5.x, and was withdrawn in 1.7.
35192         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35193         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35194         cygwin versions.
35195         * doc/posix-functions/perror.texi (perror): Likewise.
35196         * doc/posix-functions/printf.texi (printf): Likewise.
35197         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35198         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35199         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35200         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35201         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35202         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35203         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35204         Likewise.
35205         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35206         Likewise.
35207         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35208         this function.
35209         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35210         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35211         Likewise.
35212         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35213         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35214         * doc/posix-functions/confstr.texi (confstr): Likewise.
35215         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35216         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35217         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35218         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35219         * doc/posix-functions/fputws.texi (fputws): Likewise.
35220         * doc/posix-functions/fwide.texi (fwide): Likewise.
35221         * doc/posix-functions/getwc.texi (getwc): Likewise.
35222         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35223         * doc/posix-functions/putwc.texi (putwc): Likewise.
35224         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35225         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35226         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35227         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35228         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35229         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35230         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35231         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35232         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35233         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35234         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35235
35236 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35237
35238         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35239         * lib/ioctl.c: Include <sys/ioctl.h>.
35240
35241 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35242
35243         * modules/getdate-tests (Depends-on): Add progname.
35244         * tests/test-getdate.c: Use progname module, to avoid link errors
35245         on non-glibc systems.
35246
35247 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35248
35249         * modules/filenamecat-tests (Depends-on): Add progname.
35250         * modules/fstrcmp-tests (Depends-on): Likewise.
35251
35252         * tests/test-filenamecat.c: Use progname module, to avoid link
35253         errors on non-glibc systems.
35254         * tests/test-fstrcmp.c: Likewise.
35255
35256 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35257
35258         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35259         * lib/gettimeofday.c: Move extern declaration out of function.
35260
35261 2009-01-18  Bruno Haible  <bruno@clisp.org>
35262
35263         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35264         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35265         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35266
35267 2009-01-18  Bruno Haible  <bruno@clisp.org>
35268
35269         * lib/strftime.c (MEMPCPY): Remove unused macro.
35270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35271
35272 2009-01-18  Martin Lambers  <marlam@marlam.de>
35273
35274         New module 'link'.
35275         * lib/unistd.in.h (link): New declaration.
35276         * lib/link.c: New file.
35277         * m4/link.m4: New file.
35278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35279         HAVE_LINK.
35280         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35281         * modules/link: New file.
35282         * doc/posix-functions/link.texi: Mention the new module.
35283
35284 2009-01-18  Bruno Haible  <bruno@clisp.org>
35285
35286         * tests/test-avltree_list.c (main): Call set_program_name.
35287         * tests/test-avltree_oset.c (main): Likewise.
35288         * tests/test-obstack-printf.c: Include progname.h.
35289         (main): Call set_program_name.
35290         * tests/test-quotearg.c: Include progname.h.
35291         (main): Call set_program_name.
35292         * tests/test-xmemdup0.c: Include progname.h.
35293         (main): Call set_program_name.
35294
35295 2009-01-18  Bruno Haible  <bruno@clisp.org>
35296
35297         New module 'alphasort'.
35298         * lib/dirent.in.h (alphasort): New declaration.
35299         * lib/alphasort.c: New file, from glibc with modifications.
35300         * m4/alphasort.m4: New file.
35301         * modules/alphasort: New file.
35302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35303         HAVE_ALPHASORT.
35304         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35305         HAVE_ALPHASORT.
35306         * doc/posix-functions/alphasort.texi: Mention the new module and the
35307         portability problems.
35308
35309 2009-01-18  Bruno Haible  <bruno@clisp.org>
35310
35311         New module 'scandir'.
35312         * lib/dirent.in.h (scandir): New declaration.
35313         * lib/scandir.c: New file, from glibc with modifications.
35314         * m4/scandir.m4: New file.
35315         * modules/scandir: New file.
35316         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35317         HAVE_SCANDIR.
35318         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35319         HAVE_SCANDIR.
35320         * doc/posix-functions/scandir.texi: Mention the new module and the
35321         portability problems.
35322
35323 2009-01-17  Bruno Haible  <bruno@clisp.org>
35324
35325         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35326         Update documentation.
35327         (func_remove_suffix): Escape all dots in the suffix. Update
35328         documentation.
35329         (func_filter_filelist): Update documentation.
35330         Reported by Ralf Wildenhues.
35331
35332 2009-01-17  Bruno Haible  <bruno@clisp.org>
35333
35334         * modules/dprintf-posix-tests: New file.
35335         * tests/test-dprintf-posix.sh: New file.
35336         * tests/test-dprintf-posix.c: New file.
35337
35338         New modules 'dprintf', 'dprintf-posix'.
35339         * lib/stdio.in.h (dprintf): New declaration.
35340         * lib/dprintf.c: New file.
35341         * m4/dprintf.m4: New file.
35342         * m4/dprintf-posix.m4: New file.
35343         * modules/dprintf: New file.
35344         * modules/dprintf-posix: New file.
35345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35346         HAVE_DPRINTF, REPLACE_DPRINTF.
35347         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35348         HAVE_DPRINTF, REPLACE_DPRINTF.
35349         * doc/posix-functions/dprintf.texi: Mention the new modules.
35350
35351 2009-01-17  Bruno Haible  <bruno@clisp.org>
35352
35353         * modules/vdprintf-posix-tests: New file.
35354         * tests/test-vdprintf-posix.sh: New file.
35355         * tests/test-vdprintf-posix.c: New file.
35356
35357         New modules 'vdprintf', 'vdprintf-posix'.
35358         * lib/stdio.in.h (vdprintf): New declaration.
35359         * lib/vdprintf.c: New file.
35360         * m4/vdprintf.m4: New file.
35361         * m4/vdprintf-posix.m4: New file.
35362         * modules/vdprintf: New file.
35363         * modules/vdprintf-posix: New file.
35364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35365         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35366         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35367         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35368         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35369
35370 2009-01-17  Bruno Haible  <bruno@clisp.org>
35371
35372         Fix replacement of fopen on mingw.
35373         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35374         mingw.
35375
35376 2009-01-17  Bruno Haible  <bruno@clisp.org>
35377
35378         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35379         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35380
35381 2009-01-17  Bruno Haible  <bruno@clisp.org>
35382
35383         Avoid test-fflush2.sh failure on mingw.
35384         * tests/test-fflush2.c: Include binary-io.h.
35385         (main): Put standard input into binary mode.
35386         * modules/fflush-tests (Depends-on): Add binary-io.
35387
35388 2009-01-17  Bruno Haible  <bruno@clisp.org>
35389
35390         * lib/wchar.in.h: In another particular situation, include only the
35391         system's <wchar.h> file.
35392         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35393         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35394         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35395
35396 2009-01-17  Bruno Haible  <bruno@clisp.org>
35397
35398         Support for stripping executables in --enable-relocatable.
35399         * build-aux/install-reloc: Expect one more argument, or an environment
35400         variable RELOC_STRIP_PROG. If set, strip the destination program and
35401         its wrapper.
35402         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35403         RELOC_STRIP_PROG.
35404         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35405         to set RELOCATABLE_STRIP.
35406         * NEWS: Mention the new Makefile requirement.
35407
35408 2009-01-17  Bruno Haible  <bruno@clisp.org>
35409
35410         * build-aux/install-reloc: Remove debugging information left over by
35411         C compiler on MacOS X.
35412
35413 2009-01-17  Bruno Haible  <bruno@clisp.org>
35414
35415         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35416         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35417         _NSGetExecutablePath.
35418
35419 2009-01-16  Jim Meyering  <meyering@redhat.com>
35420
35421         strerror: avoid warnings about discarding "const"
35422         * lib/strerror.c (rpl_strerror): Instead of returning a const
35423         string from each and every "case", use a variable, and add a single
35424         cast after the switch.
35425
35426 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35427
35428         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35429
35430 2009-01-16  Bruno Haible  <bruno@clisp.org>
35431
35432         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35433         array initializer syntax that also works in C++ mode.
35434         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35435
35436 2009-01-16  Jim Meyering  <meyering@redhat.com>
35437
35438         poll: suppress a warning
35439         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35440         to ignore "...unsigned expression < 0 is always false" warnings.
35441
35442 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35443
35444         poll: remove declarations of unused variables
35445         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35446         sockbuf and optlen.
35447
35448 2009-01-15  Bruno Haible  <bruno@clisp.org>
35449
35450         Make fflush-after-ungetc POSIX compliant on BSD systems.
35451         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35452         (clear_ungetc_buffer): Implement also for other systems.
35453         (rpl_fflush): On glibc systems, invoke
35454         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35455         clear_ungetc_buffer after fetching the stream's position, not before.
35456
35457 2009-01-15  Bruno Haible  <bruno@clisp.org>
35458
35459         Make fflush-after-ungetc POSIX compliant on glibc systems.
35460         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35461         after ungetc.
35462         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35463         (rpl_fflush): On glibc systems, simply call the system's fflush
35464         function after clearing the ungetc buffer.
35465         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35466         Instead, lseek only to the end of file, then use the system's fseeko
35467         for the rest. On glibc systems, reset the EOF indicator bit.
35468
35469 2009-01-15  Jim Meyering  <meyering@redhat.com>
35470
35471         openmp.m4: revert quote-adding change, for portability to older autoconf
35472         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35473         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35474         Simon Josefsson noticed the problem when using autoconf-2.61.
35475
35476 2009-01-15  Bruno Haible  <bruno@clisp.org>
35477
35478         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35479         * tests/test-fflush2.c (ASSERT): Always fail.
35480         (main): Add two tests for fflush() after ungetc(), taking into account
35481         the Austin Group's clarification.
35482         Suggested by Eric Blake.
35483
35484 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35485
35486         mktime.m4: remove K&R-style function prototypes
35487         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35488         for the Sun C++ compiler.
35489
35490 2009-01-14  Bruno Haible  <bruno@clisp.org>
35491
35492         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35493         while including <wchar.h>.
35494         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35495         the system's <wchar.h> file.
35496         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35497
35498 2009-01-14  Bruno Haible  <bruno@clisp.org>
35499
35500         * m4/csharp.m4: Don't mention gettext on the serial number line.
35501         * m4/csharpexec.m4: Likewise.
35502         * m4/eaccess.m4: Likewise.
35503         * m4/javaexec.m4: Likewise.
35504         * m4/sig_atomic_t.m4: Likewise.
35505         * m4/tmpdir.m4: Likewise.
35506         * m4/intldir.m4: Bump gettext version.
35507         * m4/lib-ld.m4: Likewise.
35508
35509 2009-01-14  Bruno Haible  <bruno@clisp.org>
35510
35511         * lib/progname.c (set_program_name): Add more comments.
35512         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35513
35514 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35515
35516         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35517         were sys/stat.h does not define it.
35518
35519 2009-01-14  Jim Meyering  <meyering@redhat.com>
35520
35521         many *.m4 files: improve m4 quoting
35522         99% of this change was performed by running the following commands:
35523         git ls-files | grep '\.m4$' | xargs perl -pi \
35524           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35525           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35526           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35527           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35528         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35529         The remainder were to add Copyright dates, increment serial numbers,
35530         undo some changes in comments, exclude m4/intl.m4, and add quotes
35531         around the "1" in ",1" where the unusual spacing prohibited the
35532         above regexps from doing the job.  For more details, see
35533         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35534         * m4/acl.m4: Modified.
35535         * m4/afs.m4: Likewise.
35536         * m4/alloca.m4: Likewise.
35537         * m4/argp.m4: Likewise.
35538         * m4/argz.m4: Likewise.
35539         * m4/atexit.m4: Likewise.
35540         * m4/bison-i18n.m4: Likewise.
35541         * m4/bison.m4: Likewise.
35542         * m4/byteswap.m4: Likewise.
35543         * m4/c-stack.m4: Likewise.
35544         * m4/c-strtod.m4: Likewise.
35545         * m4/calloc.m4: Likewise.
35546         * m4/canonicalize-lgpl.m4: Likewise.
35547         * m4/chown.m4: Likewise.
35548         * m4/clock_time.m4: Likewise.
35549         * m4/codeset.m4: Likewise.
35550         * m4/copy-file.m4: Likewise.
35551         * m4/csharp.m4: Likewise.
35552         * m4/csharpcomp.m4: Likewise.
35553         * m4/csharpexec.m4: Likewise.
35554         * m4/d-ino.m4: Likewise.
35555         * m4/d-type.m4: Likewise.
35556         * m4/dirfd.m4: Likewise.
35557         * m4/double-slash-root.m4: Likewise.
35558         * m4/eaccess.m4: Likewise.
35559         * m4/eealloc.m4: Likewise.
35560         * m4/environ.m4: Likewise.
35561         * m4/errno_h.m4: Likewise.
35562         * m4/euidaccess.m4: Likewise.
35563         * m4/execute.m4: Likewise.
35564         * m4/fatal-signal.m4: Likewise.
35565         * m4/fchdir.m4: Likewise.
35566         * m4/fcntl_h.m4: Likewise.
35567         * m4/fileblocks.m4: Likewise.
35568         * m4/filenamecat.m4: Likewise.
35569         * m4/findprog.m4: Likewise.
35570         * m4/flexmember.m4: Likewise.
35571         * m4/fnmatch.m4: Likewise.
35572         * m4/fopen.m4: Likewise.
35573         * m4/fpending.m4: Likewise.
35574         * m4/fprintf-posix.m4: Likewise.
35575         * m4/free.m4: Likewise.
35576         * m4/frexp.m4: Likewise.
35577         * m4/frexpl.m4: Likewise.
35578         * m4/fsusage.m4: Likewise.
35579         * m4/ftruncate.m4: Likewise.
35580         * m4/gc-camellia.m4: Likewise.
35581         * m4/gc-random.m4: Likewise.
35582         * m4/gc.m4: Likewise.
35583         * m4/getaddrinfo.m4: Likewise.
35584         * m4/getcwd-abort-bug.m4: Likewise.
35585         * m4/getcwd-path-max.m4: Likewise.
35586         * m4/getdate.m4: Likewise.
35587         * m4/getdomainname.m4: Likewise.
35588         * m4/getgroups.m4: Likewise.
35589         * m4/gethostname.m4: Likewise.
35590         * m4/gethrxtime.m4: Likewise.
35591         * m4/getline.m4: Likewise.
35592         * m4/getloadavg.m4: Likewise.
35593         * m4/getndelim2.m4: Likewise.
35594         * m4/getpass.m4: Likewise.
35595         * m4/gettext.m4: Likewise.
35596         * m4/gettime.m4: Likewise.
35597         * m4/gettimeofday.m4: Likewise.
35598         * m4/gnulib-common.m4: Likewise.
35599         * m4/group-member.m4: Likewise.
35600         * m4/host-os.m4: Likewise.
35601         * m4/iconv.m4: Likewise.
35602         * m4/iconv_open.m4: Likewise.
35603         * m4/inet_ntop.m4: Likewise.
35604         * m4/inet_pton.m4: Likewise.
35605         * m4/inline.m4: Likewise.
35606         * m4/intldir.m4: Likewise.
35607         * m4/intlmacosx.m4: Likewise.
35608         * m4/intmax.m4: Likewise.
35609         * m4/intmax_t.m4: Likewise.
35610         * m4/inttypes.m4: Likewise.
35611         * m4/inttypes_h.m4: Likewise.
35612         * m4/inttypes-pri.m4: Likewise.
35613         * m4/isapipe.m4: Likewise.
35614         * m4/isnand.m4: Likewise.
35615         * m4/isnanf.m4: Likewise.
35616         * m4/isnanl.m4: Likewise.
35617         * m4/javacomp.m4: Likewise.
35618         * m4/javaexec.m4: Likewise.
35619         * m4/jm-winsz1.m4: Likewise.
35620         * m4/jm-winsz2.m4: Likewise.
35621         * m4/lchown.m4: Likewise.
35622         * m4/lcmessage.m4: Likewise.
35623         * m4/ldexpl.m4: Likewise.
35624         * m4/lib-ld.m4: Likewise.
35625         * m4/lib-link.m4: Likewise.
35626         * m4/libsigsegv.m4: Likewise.
35627         * m4/link-follow.m4: Likewise.
35628         * m4/localcharset.m4: Likewise.
35629         * m4/locale-fr.m4: Likewise.
35630         * m4/locale-ja.m4: Likewise.
35631         * m4/locale-tr.m4: Likewise.
35632         * m4/locale-zh.m4: Likewise.
35633         * m4/lock.m4: Likewise.
35634         * m4/longlong.m4: Likewise.
35635         * m4/ls-mntd-fs.m4: Likewise.
35636         * m4/lstat.m4: Likewise.
35637         * m4/malloc.m4: Likewise.
35638         * m4/mathl.m4: Likewise.
35639         * m4/mbrtowc.m4: Likewise.
35640         * m4/mbstate_t.m4: Likewise.
35641         * m4/mbswidth.m4: Likewise.
35642         * m4/memchr.m4: Likewise.
35643         * m4/memcmp.m4: Likewise.
35644         * m4/memcpy.m4: Likewise.
35645         * m4/memmem.m4: Likewise.
35646         * m4/memmove.m4: Likewise.
35647         * m4/mempcpy.m4: Likewise.
35648         * m4/memrchr.m4: Likewise.
35649         * m4/memset.m4: Likewise.
35650         * m4/minmax.m4: Likewise.
35651         * m4/mkdir-slash.m4: Likewise.
35652         * m4/mkdtemp.m4: Likewise.
35653         * m4/mktime.m4: Likewise.
35654         * m4/mmap-anon.m4: Likewise.
35655         * m4/mountlist.m4: Likewise.
35656         * m4/nanosleep.m4: Likewise.
35657         * m4/nls.m4: Likewise.
35658         * m4/nocrash.m4: Likewise.
35659         * m4/open.m4: Likewise.
35660         * m4/openat.m4: Likewise.
35661         * m4/openmp.m4: Likewise.
35662         * m4/pathmax.m4: Likewise.
35663         * m4/perl.m4: Likewise.
35664         * m4/physmem.m4: Likewise.
35665         * m4/pipe.m4: Likewise.
35666         * m4/po.m4: Likewise.
35667         * m4/poll.m4: Likewise.
35668         * m4/posixtm.m4: Likewise.
35669         * m4/posixver.m4: Likewise.
35670         * m4/printf-frexp.m4: Likewise.
35671         * m4/printf-frexpl.m4: Likewise.
35672         * m4/printf-posix.m4: Likewise.
35673         * m4/printf-posix-rpl.m4: Likewise.
35674         * m4/printf.m4: Likewise.
35675         * m4/progtest.m4: Likewise.
35676         * m4/putenv.m4: Likewise.
35677         * m4/readline.m4: Likewise.
35678         * m4/readlink.m4: Likewise.
35679         * m4/readutmp.m4: Likewise.
35680         * m4/realloc.m4: Likewise.
35681         * m4/regex.m4: Likewise.
35682         * m4/relocatable.m4: Likewise.
35683         * m4/relocatable-lib.m4: Likewise.
35684         * m4/rename-dest-slash.m4: Likewise.
35685         * m4/rename.m4: Likewise.
35686         * m4/rmdir-errno.m4: Likewise.
35687         * m4/rmdir.m4: Likewise.
35688         * m4/roundf.m4: Likewise.
35689         * m4/roundl.m4: Likewise.
35690         * m4/rpmatch.m4: Likewise.
35691         * m4/save-cwd.m4: Likewise.
35692         * m4/selinux-selinux-h.m4: Likewise.
35693         * m4/setenv.m4: Likewise.
35694         * m4/settime.m4: Likewise.
35695         * m4/sig2str.m4: Likewise.
35696         * m4/sig_atomic_t.m4: Likewise.
35697         * m4/signalblocking.m4: Likewise.
35698         * m4/signbit.m4: Likewise.
35699         * m4/sigpipe.m4: Likewise.
35700         * m4/sockets.m4: Likewise.
35701         * m4/sockpfaf.m4: Likewise.
35702         * m4/st_dm_mode.m4: Likewise.
35703         * m4/stat-time.m4: Likewise.
35704         * m4/stdbool.m4: Likewise.
35705         * m4/stdint.m4: Likewise.
35706         * m4/stdint_h.m4: Likewise.
35707         * m4/stpcpy.m4: Likewise.
35708         * m4/stpncpy.m4: Likewise.
35709         * m4/strcase.m4: Likewise.
35710         * m4/strchrnul.m4: Likewise.
35711         * m4/strcspn.m4: Likewise.
35712         * m4/strdup.m4: Likewise.
35713         * m4/strftime.m4: Likewise.
35714         * m4/strndup.m4: Likewise.
35715         * m4/strnlen.m4: Likewise.
35716         * m4/strpbrk.m4: Likewise.
35717         * m4/strptime.m4: Likewise.
35718         * m4/strsep.m4: Likewise.
35719         * m4/strtod.m4: Likewise.
35720         * m4/strtoimax.m4: Likewise.
35721         * m4/strtok_r.m4: Likewise.
35722         * m4/strtol.m4: Likewise.
35723         * m4/strtoll.m4: Likewise.
35724         * m4/strtoul.m4: Likewise.
35725         * m4/strtoull.m4: Likewise.
35726         * m4/strtoumax.m4: Likewise.
35727         * m4/strverscmp.m4: Likewise.
35728         * m4/threadlib.m4: Likewise.
35729         * m4/timegm.m4: Likewise.
35730         * m4/tm_gmtoff.m4: Likewise.
35731         * m4/tmpdir.m4: Likewise.
35732         * m4/tmpfile.m4: Likewise.
35733         * m4/tzset.m4: Likewise.
35734         * m4/uintmax_t.m4: Likewise.
35735         * m4/unlinkdir.m4: Likewise.
35736         * m4/unlocked-io.m4: Likewise.
35737         * m4/uptime.m4: Likewise.
35738         * m4/userspec.m4: Likewise.
35739         * m4/utimbuf.m4: Likewise.
35740         * m4/utime.m4: Likewise.
35741         * m4/utimes-null.m4: Likewise.
35742         * m4/utimes.m4: Likewise.
35743         * m4/vararrays.m4: Likewise.
35744         * m4/vasnprintf.m4: Likewise.
35745         * m4/vfprintf-posix.m4: Likewise.
35746         * m4/vprintf-posix.m4: Likewise.
35747         * m4/wait-process.m4: Likewise.
35748         * m4/wchar_t.m4: Likewise.
35749         * m4/wint_t.m4: Likewise.
35750         * m4/write-any-file.m4: Likewise.
35751         * m4/yield.m4: Likewise.
35752
35753 2009-01-13  Bruno Haible  <bruno@clisp.org>
35754
35755         Avoid test-copy-file.sh failures when ACL support insufficient.
35756         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35757         TESTS_ENVIRONMENT.
35758         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35759         Reported by Jim Meyering.
35760
35761 2009-01-13  Bruno Haible  <bruno@clisp.org>
35762
35763         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35764         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35765         * modules/unistdio/u8-printf-parse (Files): Likewise.
35766         * modules/unistdio/u32-printf-parse (Files): Likewise.
35767         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35768
35769 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35770
35771         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35772         and m4/inttypes_h.m4 too.
35773
35774 2009-01-12  Eric Blake  <ebb9@byu.net>
35775
35776         tests: IRIX 6.2 cc can't compile -0.0 into .data
35777         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35778         rather than at compile-time.
35779         * tests/test-floorl.c (minus_zero): Likewise.
35780         * tests/test-frexpl.c (minus_zero): Likewise.
35781         * tests/test-isnan.c (minus_zerol): Likewise.
35782         * tests/test-isnanl.h (minus_zero): Likewise.
35783         * tests/test-ldexpl.c (minus_zero): Likewise.
35784         * tests/test-roundl.c (minus_zero): Likewise.
35785         * tests/test-signbit.c (minus_zerol): Likewise.
35786         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35787         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35788         * tests/test-truncl.c (minus_zero): Likewise.
35789         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35790         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35791         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35792
35793 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35794
35795         regex: fix glibc bug 9697
35796         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35797         handling.
35798
35799 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35800
35801         regex: fix glibc bug 697
35802         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35803         being NULL also if there are no backreferences.
35804
35805 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35806
35807         regex: merge glibc changes
35808         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35809         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35810         re_string_skip_chars, re_string_reconstruct): Likewise.
35811         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35812
35813 2009-01-07  Jim Meyering  <meyering@redhat.com>
35814
35815         poll: filter through cppi
35816         * lib/poll.c: Indent cpp directives to reflect nesting.
35817
35818 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35819
35820         poll: don't return uninitialized
35821         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35822
35823 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35824
35825         avoid compile failure on AIX 6.1
35826         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35827         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35828
35829 2009-01-04  Jim Meyering  <meyering@redhat.com>
35830
35831         remove duplicate inclusion of <stdio.h>
35832         * tests/test-fprintf-posix.c: Likewise.
35833         * tests/test-printf-posix.c: Likewise.
35834         * tests/test-snprintf-posix.c: Likewise.
35835         * tests/test-sprintf-posix.c: Likewise.
35836         * tests/test-vasprintf-posix.c: Likewise.
35837         * tests/test-vfprintf-posix.c: Likewise.
35838         * tests/test-vprintf-posix.c: Likewise.
35839         * tests/test-vsnprintf-posix.c: Likewise.
35840         * tests/test-vsprintf-posix.c: Likewise.
35841
35842 2009-01-03  Jim Meyering  <meyering@redhat.com>
35843
35844         gnulib-tool: fix sed-based filtering
35845         * gnulib-tool (func_filter_filelist): Remove extra backslash
35846         in sed_fff_filter definition.
35847
35848 2009-01-02  Jim Meyering  <meyering@redhat.com>
35849
35850         strftime: avoid compilation failure on Solaris 2.6
35851         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35852         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35853         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35854         be available.  Reported by Tom G. Christensen.  Details in
35855         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35856
35857 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35858             Bruno Haible  <bruno@clisp.org>
35859
35860         Speed up gnulib-tool by doing more string processing through shell
35861         built-ins.
35862         * gnulib-tool (fast_func_append): New variable.
35863         (func_remove_prefix, func_remove_suffix): New functions.
35864         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35865         (func_filter_filelist): New function.
35866         (func_get_dependencies): Use func_remove_suffix instead of sed.
35867         (func_get_automake_snippet): Use func_filter_filelist instead of a
35868         subshell and sed invocation.
35869
35870 2009-01-01  Bruno Haible  <bruno@clisp.org>
35871
35872         Fix a security bug.
35873         * gnulib-tool (func_import, import, update): Don't allow the characters
35874         '"', '$', '`', '\' in macro arguments that become part of commands that
35875         are evaluated.
35876
35877 2009-01-01  Bruno Haible  <bruno@clisp.org>
35878
35879         * gnulib-tool (func_reset_sigpipe): Add more comments.
35880
35881 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35882
35883         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35884         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35885         already know the answer.
35886
35887 2009-01-01  Jim Meyering  <meyering@redhat.com>
35888
35889         * lib/version-etc.c (version_etc_va): Update copyright year.
35890
35891 2008-12-30  Bruno Haible  <bruno@clisp.org>
35892
35893         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35894         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35895         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35896
35897 2008-12-29  Eric Blake  <ebb9@byu.net>
35898
35899         multiarch: avoid autoconf AC_REQUIRE bug
35900         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35901         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35902         2.63 and older.
35903         Reported by Bruno Haible, and analyzed in
35904         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35905
35906 2008-12-29  Bruno Haible  <bruno@clisp.org>
35907
35908         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35909         files in subdirectories correctly.
35910         Reported by Ralf Wildenhues.
35911
35912 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35913
35914         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35915         rather than 'join FILE -', for Solaris join.
35916
35917 2008-12-29  Bruno Haible  <bruno@clisp.org>
35918
35919         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35920         quoting.
35921         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35922         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35923         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35924         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35925         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35926         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35927         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35928         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35929         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35930         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35931         * m4/nls.m4 (AM_NLS): Likewise.
35932         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35933         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35934         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35935         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35936         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35937         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35938         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35939         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35940         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35941         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35942         * m4/xsize.m4 (gl_XSIZE): Likewise.
35943         Suggested by Jim Meyering.
35944
35945 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35946
35947         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35948         * lib/parse-duration.c: use a switch instead of cascading if's.
35949
35950 2008-12-29  Eric Blake  <ebb9@byu.net>
35951
35952         wchar.h: supply WEOF on Irix 5.3
35953         * lib/wchar.in.h (wint_t): Also supply WEOF.
35954         * lib/wctype.in.h (wint_t): Likewise.
35955         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35956         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35957         Reported by Tom G. Christensen.
35958
35959 2008-12-26  Bruno Haible  <bruno@clisp.org>
35960
35961         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35962         i486, i586, i686.
35963
35964 2008-12-26  Bruno Haible  <bruno@clisp.org>
35965
35966         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35967
35968 2008-12-26  Bruno Haible  <bruno@clisp.org>
35969
35970         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35971         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35972         not __STDC_CONSTANT_MACROS.
35973         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35974
35975 2008-12-25  Bruno Haible  <bruno@clisp.org>
35976
35977         Add support for universal builds to vasnprintf.
35978         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35979         universal builds, guess no.
35980         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35981         * modules/vasprintf-posix (Depends-on): Likewise.
35982         * modules/fprintf-posix (Depends-on): Likewise.
35983         * modules/vfprintf-posix (Depends-on): Likewise.
35984         * modules/snprintf-posix (Depends-on): Likewise.
35985         * modules/vsnprintf-posix (Depends-on): Likewise.
35986         * modules/sprintf-posix (Depends-on): Likewise.
35987         * modules/vsprintf-posix (Depends-on): Likewise.
35988         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35989         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35990         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35991         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35992         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35993         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35994         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35995
35996         Add support for universal builds to <inttypes.h>.
35997         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35998         _SCNu64_PREFIX): In Apple
35999         universal builds, define directly, using _LP64.
36000         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36001         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36002         * modules/inttypes (Depends-on): Add multiarch.
36003         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36004
36005         Add support for universal builds to <stdint.h>.
36006         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36007         universal builds, define directly, using _LP64.
36008         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36009         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36010         and size_t.
36011         * modules/stdint (Depends-on): Add multiarch.
36012         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36013
36014         New module 'multiarch'.
36015         * modules/multiarch: New file.
36016         * m4/multiarch.m4: New file.
36017
36018 2008-12-25  Bruno Haible  <bruno@clisp.org>
36019
36020         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36021
36022 2008-12-25  Bruno Haible  <bruno@clisp.org>
36023
36024         * modules/btowc (License): Relicense under LGPLv2+.
36025         * modules/mbsinit (License): Likewise.
36026         * modules/mbrtowc (License): Likewise.
36027         * modules/wcrtomb (License): Likewise.
36028         * modules/streq (License): Likewise.
36029         Reported by David Lutterkort <lutter@redhat.com>.
36030
36031 2008-12-23  Bruno Haible  <bruno@clisp.org>
36032
36033         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36034
36035 2008-12-23  Bruno Haible  <bruno@clisp.org>
36036
36037         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36039         GETADDRINFO_LIB, not in LIBS.
36040         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36041         * modules/canon-host (Link): Likewise.
36042         * NEWS: Mention the change.
36043         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36044         GETADDRINFO_LIB.
36045
36046 2008-12-22  Bruno Haible  <bruno@clisp.org>
36047
36048         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36049         * doc/posix-functions/iswalpha_l.texi: Likewise.
36050         * doc/posix-functions/iswblank_l.texi: Likewise.
36051         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36052         * doc/posix-functions/iswctype_l.texi: Likewise.
36053         * doc/posix-functions/iswdigit_l.texi: Likewise.
36054         * doc/posix-functions/iswgraph_l.texi: Likewise.
36055         * doc/posix-functions/iswlower_l.texi: Likewise.
36056         * doc/posix-functions/iswprint_l.texi: Likewise.
36057         * doc/posix-functions/iswpunct_l.texi: Likewise.
36058         * doc/posix-functions/iswspace_l.texi: Likewise.
36059         * doc/posix-functions/iswupper_l.texi: Likewise.
36060         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36061         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36062         * doc/posix-functions/open_wmemstream.texi: Likewise.
36063         * doc/posix-functions/swscanf.texi: Likewise.
36064         * doc/posix-functions/towctrans_l.texi: Likewise.
36065         * doc/posix-functions/towlower.texi: Likewise.
36066         * doc/posix-functions/towlower_l.texi: Likewise.
36067         * doc/posix-functions/towupper.texi: Likewise.
36068         * doc/posix-functions/towupper_l.texi: Likewise.
36069         * doc/posix-functions/vfwprintf.texi: Likewise.
36070         * doc/posix-functions/vfwscanf.texi: Likewise.
36071         * doc/posix-functions/vswscanf.texi: Likewise.
36072         * doc/posix-functions/vwprintf.texi: Likewise.
36073         * doc/posix-functions/vwscanf.texi: Likewise.
36074         * doc/posix-functions/wcpcpy.texi: Likewise.
36075         * doc/posix-functions/wcpncpy.texi: Likewise.
36076         * doc/posix-functions/wcscasecmp.texi: Likewise.
36077         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36078         * doc/posix-functions/wcscoll_l.texi: Likewise.
36079         * doc/posix-functions/wcsdup.texi: Likewise.
36080         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36081         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36082         * doc/posix-functions/wcsnlen.texi: Likewise.
36083         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36084         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36085         * doc/posix-functions/wctrans_l.texi: Likewise.
36086         * doc/posix-functions/wctype_l.texi: Likewise.
36087         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36088         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36089         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36090         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36091         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36092         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36093         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36094         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36095         * doc/glibc-functions/wcschrnul.texi: Likewise.
36096         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36097         * doc/glibc-functions/wcstod_l.texi: Likewise.
36098         * doc/glibc-functions/wcstof_l.texi: Likewise.
36099         * doc/glibc-functions/wcstol_l.texi: Likewise.
36100         * doc/glibc-functions/wcstold_l.texi: Likewise.
36101         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36102         * doc/glibc-functions/wcstoq.texi: Likewise.
36103         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36104         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36105         * doc/glibc-functions/wcstouq.texi: Likewise.
36106         * doc/glibc-functions/wmempcpy.texi: Likewise.
36107
36108 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36109             Eric Blake  <ebb9@byu.net>
36110             Paolo Bonzini  <bonzini@gnu.org>
36111             Bruno Haible  <bruno@clisp.org>
36112
36113         Make c-stack work on Haiku.
36114         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36115         (c_stack_action): Use SA_ONSTACK flag.
36116
36117 2008-12-22  Bruno Haible  <bruno@clisp.org>
36118
36119         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36120
36121 2008-12-22  Bruno Haible  <bruno@clisp.org>
36122
36123         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36124         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36125         being overridden.
36126         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36127         New macros.
36128         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36130         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36131         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36132
36133 2008-12-22  Bruno Haible  <bruno@clisp.org>
36134
36135         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36136         from test code.
36137
36138 2008-12-22  Eric Blake  <ebb9@byu.net>
36139
36140         Avoid gcc warnings on cygwin.
36141         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36142         Avoid unused variable.
36143         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36144         Likewise.
36145
36146 2008-12-22  Bruno Haible  <bruno@clisp.org>
36147
36148         Remove HAVE_MBRTOWC conditionals.
36149         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36150         (mbscasecmp): Assume mbrtowc function.
36151         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36152         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36153         * lib/mbschr.c: Include mbuiter.h unconditionally.
36154         (mbschr): Assume mbrtowc function.
36155         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36156         (mbscspn): Assume mbrtowc function.
36157         * lib/mbslen.c: Include mbuiter.h unconditionally.
36158         (mbslen): Assume mbrtowc function.
36159         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36160         (mbsncasecmp): Assume mbrtowc function.
36161         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36162         (mbsnlen): Assume mbrtowc function.
36163         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36164         (mbspbrk): Assume mbrtowc function.
36165         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36166         (mbspcasecmp): Assume mbrtowc function.
36167         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36168         (mbsrchr): Assume mbrtowc function.
36169         * lib/mbssep.c: Include mbuiter.h unconditionally.
36170         (mbssep): Assume mbrtowc function.
36171         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36172         (mbsspn): Assume mbrtowc function.
36173         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36174         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36175         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36176         (mbstok_r): Assume mbrtowc function.
36177         * lib/propername.c: Include mbuiter.h unconditionally.
36178         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36179         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36180         (trim2): Assume mbrtowc function.
36181         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36182         (mbsnwidth): Assume mbrtowc function.
36183         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36184         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36185         fallback definitions.
36186         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36187
36188 2008-12-22  Bruno Haible  <bruno@clisp.org>
36189
36190         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36191
36192 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36193
36194         * modules/regex: Request emulations for the mb*/wc* functions we need.
36195         * m4/regex.m4: Don't look for those functions here.
36196         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36197
36198 2008-12-22  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36201
36202 2008-12-21  Bruno Haible  <bruno@clisp.org>
36203
36204         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36205         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36206         (Include): Remove conditionalization.
36207         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36208         (Include): Remove conditionalization.
36209         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36210         (Include): Remove conditionalization.
36211         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36212         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36213         * NEWS: Mention the change.
36214         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36215         via Sergey Poznyakoff <gray@gnu.org.ua>.
36216
36217 2008-12-21  Bruno Haible  <bruno@clisp.org>
36218
36219         * MODULES.html.sh (Extended multibyte and wide character utilities
36220         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36221         wcrtomb, wcsrtombs.
36222         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36223         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36224         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36225         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36226
36227 2008-12-21  Bruno Haible  <bruno@clisp.org>
36228
36229         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36230
36231 2008-12-21  Bruno Haible  <bruno@clisp.org>
36232
36233         * modules/wcsnrtombs-tests: New file.
36234         * tests/test-wcsnrtombs1.sh: New file.
36235         * tests/test-wcsnrtombs2.sh: New file.
36236         * tests/test-wcsnrtombs3.sh: New file.
36237         * tests/test-wcsnrtombs4.sh: New file.
36238         * tests/test-wcsnrtombs.c: New file.
36239
36240         New module 'wcsnrtombs'.
36241         * lib/wchar.in.h (wcsnrtombs): New declaration.
36242         * lib/wcsnrtombs.c: New file.
36243         * lib/wcsrtombs-state.c: New file.
36244         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36245         (internal_state): Remove variable.
36246         * m4/wcsnrtombs.m4: New file.
36247         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36248         compilation units.
36249         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36250         HAVE_WCSNRTOMBS.
36251         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36252         HAVE_WCSNRTOMBS.
36253         * modules/wcsnrtombs: New file.
36254         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36255         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36256
36257 2008-12-21  Bruno Haible  <bruno@clisp.org>
36258
36259         * modules/wcsrtombs-tests: New file.
36260         * tests/test-wcsrtombs1.sh: New file.
36261         * tests/test-wcsrtombs2.sh: New file.
36262         * tests/test-wcsrtombs3.sh: New file.
36263         * tests/test-wcsrtombs4.sh: New file.
36264         * tests/test-wcsrtombs.c: New file.
36265
36266         New module 'wcsrtombs'.
36267         * lib/wchar.in.h (wcsrtombs): New declaration.
36268         * lib/wcsrtombs.c: New file.
36269         * m4/wcsrtombs.m4: New file.
36270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36271         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36273         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36274         * modules/wcsrtombs: New file.
36275         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36276         bugs.
36277
36278 2008-12-21  Bruno Haible  <bruno@clisp.org>
36279
36280         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36281         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36282         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36283         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36284         if not correct.
36285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36286         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36287         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36288         m4/locale-zh.m4, m4/codeset.m4.
36289         * doc/posix-functions/wcrtomb.texi: Document the bug.
36290
36291 2008-12-21  Bruno Haible  <bruno@clisp.org>
36292
36293         Work around a btowc() bug on IRIX 6.5.
36294         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36295         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36296         REPLACE_WTOBC if not.
36297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36298         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36299         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36300
36301 2008-12-21  Bruno Haible  <bruno@clisp.org>
36302
36303         * modules/wcrtomb-tests: New file.
36304         * tests/test-wcrtomb.sh: New file.
36305         * tests/test-wcrtomb.c: New file.
36306
36307         New module 'wcrtomb'.
36308         * lib/wchar.in.h (wcrtomb): New declaration.
36309         * lib/wcrtomb.c: New file.
36310         * m4/wcrtomb.m4: New file.
36311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36312         HAVE_WCRTOMB.
36313         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36314         HAVE_WCRTOMB.
36315         * modules/wcrtomb: New file.
36316         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36317
36318 2008-12-21  Bruno Haible  <bruno@clisp.org>
36319
36320         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36321         * modules/mbsrtowcs (Files): Likewise.
36322         * modules/wctob (Files): Likewise.
36323         * modules/c-strcase-tests (Files): Likewise.
36324         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36325         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36326         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36327         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36328         * modules/vasnprintf-posix-tests (Files): Likewise.
36329
36330 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36331
36332         gitlog-to-changelog: pass all command-line arguments to git-log
36333         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36334         it is sometimes convenient to filter the commits in various ways.
36335         gitlog-to-changelog only allows --since to specify a start date,
36336         but git-log itself supports many other filtering mechanisms.
36337         At the moment, I want to filter by branch name.  Rather than
36338         adding a --branch option to gitlog-to-changelog, it seems more
36339         flexible to simply pass all options directly to git-log and let
36340         git do the work.  Notice that this effectively makes --since a
36341         redundant option for gitlog-to-changelog, but removing it would
36342         require current usage to change since calls would then require
36343         an additional '--'.
36344
36345 2008-12-21  Bruno Haible  <bruno@clisp.org>
36346
36347         * modules/mbsnrtowcs-tests: New file.
36348         * tests/test-mbsnrtowcs1.sh: New file.
36349         * tests/test-mbsnrtowcs2.sh: New file.
36350         * tests/test-mbsnrtowcs3.sh: New file.
36351         * tests/test-mbsnrtowcs4.sh: New file.
36352         * tests/test-mbsnrtowcs.c: New file.
36353
36354         New module 'mbsnrtowcs'.
36355         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36356         * lib/mbsnrtowcs.c: New file.
36357         * lib/mbsrtowcs-state.c: New file.
36358         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36359         (internal_state): Remove variable.
36360         * m4/mbsnrtowcs.m4: New file.
36361         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36362         compilation units.
36363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36364         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36365         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36366         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36367         * modules/mbsnrtowcs: New file.
36368         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36369         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36370         portability problem.
36371
36372 2008-12-21  Bruno Haible  <bruno@clisp.org>
36373
36374         Work around mbsrtowcs bug.
36375         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36376         (gl_FUNC_MBSRTOWCS): Invoke it.
36377         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36378         m4/locale-zh.m4.
36379         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36380
36381 2008-12-21  Bruno Haible  <bruno@clisp.org>
36382
36383         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36384
36385 2008-12-21  Bruno Haible  <bruno@clisp.org>
36386
36387         Update doc for AIX.
36388         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36389         16-bit wchar_t type.
36390         * doc/posix-functions/btowc.texi: Likewise.
36391         * doc/posix-functions/fgetwc.texi: Likewise.
36392         * doc/posix-functions/fgetws.texi: Likewise.
36393         * doc/posix-functions/fputwc.texi: Likewise.
36394         * doc/posix-functions/fputws.texi: Likewise.
36395         * doc/posix-functions/fwide.texi: Likewise.
36396         * doc/posix-functions/fwprintf.texi: Likewise.
36397         * doc/posix-functions/fwscanf.texi: Likewise.
36398         * doc/posix-functions/getwchar.texi: Likewise.
36399         * doc/posix-functions/getwc.texi: Likewise.
36400         * doc/posix-functions/iswalnum.texi: Likewise.
36401         * doc/posix-functions/iswalpha.texi: Likewise.
36402         * doc/posix-functions/iswblank.texi: Likewise.
36403         * doc/posix-functions/iswcntrl.texi: Likewise.
36404         * doc/posix-functions/iswctype.texi: Likewise.
36405         * doc/posix-functions/iswdigit.texi: Likewise.
36406         * doc/posix-functions/iswgraph.texi: Likewise.
36407         * doc/posix-functions/iswlower.texi: Likewise.
36408         * doc/posix-functions/iswprint.texi: Likewise.
36409         * doc/posix-functions/iswpunct.texi: Likewise.
36410         * doc/posix-functions/iswspace.texi: Likewise.
36411         * doc/posix-functions/iswupper.texi: Likewise.
36412         * doc/posix-functions/iswxdigit.texi: Likewise.
36413         * doc/posix-functions/mbrtowc.texi: Likewise.
36414         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36415         * doc/posix-functions/mbstowcs.texi: Likewise.
36416         * doc/posix-functions/mbtowc.texi: Likewise.
36417         * doc/posix-functions/putwchar.texi: Likewise.
36418         * doc/posix-functions/putwc.texi: Likewise.
36419         * doc/posix-functions/swprintf.texi: Likewise.
36420         * doc/posix-functions/tolower.texi: Likewise.
36421         * doc/posix-functions/toupper.texi: Likewise.
36422         * doc/posix-functions/towctrans.texi: Likewise.
36423         * doc/posix-functions/ungetwc.texi: Likewise.
36424         * doc/posix-functions/vswprintf.texi: Likewise.
36425         * doc/posix-functions/wcrtomb.texi: Likewise.
36426         * doc/posix-functions/wcscat.texi: Likewise.
36427         * doc/posix-functions/wcschr.texi: Likewise.
36428         * doc/posix-functions/wcscmp.texi: Likewise.
36429         * doc/posix-functions/wcscoll.texi: Likewise.
36430         * doc/posix-functions/wcscpy.texi: Likewise.
36431         * doc/posix-functions/wcscspn.texi: Likewise.
36432         * doc/posix-functions/wcsftime.texi: Likewise.
36433         * doc/posix-functions/wcslen.texi: Likewise.
36434         * doc/posix-functions/wcsncat.texi: Likewise.
36435         * doc/posix-functions/wcsncmp.texi: Likewise.
36436         * doc/posix-functions/wcsncpy.texi: Likewise.
36437         * doc/posix-functions/wcspbrk.texi: Likewise.
36438         * doc/posix-functions/wcsrchr.texi: Likewise.
36439         * doc/posix-functions/wcsrtombs.texi: Likewise.
36440         * doc/posix-functions/wcsspn.texi: Likewise.
36441         * doc/posix-functions/wcsstr.texi: Likewise.
36442         * doc/posix-functions/wcstod.texi: Likewise.
36443         * doc/posix-functions/wcstof.texi: Likewise.
36444         * doc/posix-functions/wcstoimax.texi: Likewise.
36445         * doc/posix-functions/wcstok.texi: Likewise.
36446         * doc/posix-functions/wcstold.texi: Likewise.
36447         * doc/posix-functions/wcstoll.texi: Likewise.
36448         * doc/posix-functions/wcstol.texi: Likewise.
36449         * doc/posix-functions/wcstombs.texi: Likewise.
36450         * doc/posix-functions/wcstoull.texi: Likewise.
36451         * doc/posix-functions/wcstoul.texi: Likewise.
36452         * doc/posix-functions/wcstoumax.texi: Likewise.
36453         * doc/posix-functions/wcswidth.texi: Likewise.
36454         * doc/posix-functions/wcsxfrm.texi: Likewise.
36455         * doc/posix-functions/wctob.texi: Likewise.
36456         * doc/posix-functions/wctomb.texi: Likewise.
36457         * doc/posix-functions/wctrans.texi: Likewise.
36458         * doc/posix-functions/wctype.texi: Likewise.
36459         * doc/posix-functions/wcwidth.texi: Likewise.
36460         * doc/posix-functions/wmemchr.texi: Likewise.
36461         * doc/posix-functions/wmemcmp.texi: Likewise.
36462         * doc/posix-functions/wmemcpy.texi: Likewise.
36463         * doc/posix-functions/wmemmove.texi: Likewise.
36464         * doc/posix-functions/wmemset.texi: Likewise.
36465         * doc/posix-functions/wprintf.texi: Likewise.
36466         * doc/posix-functions/wscanf.texi: Likewise.
36467
36468 2008-12-21  Bruno Haible  <bruno@clisp.org>
36469
36470         Update doc for HP-UX 11.11.
36471         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36472         in HP-UX version 11.00, not in all versions of HP-UX 11.
36473         * doc/posix-functions/fwide.texi: Likewise.
36474         * doc/posix-functions/fwprintf.texi: Likewise.
36475         * doc/posix-functions/fwscanf.texi: Likewise.
36476         * doc/posix-functions/inet_ntop.texi: Likewise.
36477         * doc/posix-functions/inet_pton.texi: Likewise.
36478         * doc/posix-functions/mbrlen.texi: Likewise.
36479         * doc/posix-functions/mbrtowc.texi: Likewise.
36480         * doc/posix-functions/mbsinit.texi: Likewise.
36481         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36482         * doc/posix-functions/swprintf.texi: Likewise.
36483         * doc/posix-functions/swscanf.texi: Likewise.
36484         * doc/posix-functions/towctrans.texi: Likewise.
36485         * doc/posix-functions/vfwprintf.texi: Likewise.
36486         * doc/posix-functions/vswprintf.texi: Likewise.
36487         * doc/posix-functions/vwprintf.texi: Likewise.
36488         * doc/posix-functions/wcrtomb.texi: Likewise.
36489         * doc/posix-functions/wcsrtombs.texi: Likewise.
36490         * doc/posix-functions/wcsstr.texi: Likewise.
36491         * doc/posix-functions/wctob.texi: Likewise.
36492         * doc/posix-functions/wctrans.texi: Likewise.
36493         * doc/posix-functions/wmemchr.texi: Likewise.
36494         * doc/posix-functions/wmemcmp.texi: Likewise.
36495         * doc/posix-functions/wmemcpy.texi: Likewise.
36496         * doc/posix-functions/wmemmove.texi: Likewise.
36497         * doc/posix-functions/wmemset.texi: Likewise.
36498         * doc/posix-functions/wprintf.texi: Likewise.
36499         * doc/posix-functions/wscanf.texi: Likewise.
36500
36501 2008-12-21  Bruno Haible  <bruno@clisp.org>
36502
36503         Work around a portability problem.
36504         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36505         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36506
36507 2008-12-20  Bruno Haible  <bruno@clisp.org>
36508
36509         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36510         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36511         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36513         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36514
36515         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36516         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36517         set.
36518         (GNULIB_defined_mbstate_t): New macro.
36519         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36520         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36521         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36522         reuses the system's mbrtowc function but works around the bugs.
36523         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36524         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36525         macros.
36526         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36527         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36528         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36529         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36530         REPLACE_MBSINIT if mbsinit needs to be overridden.
36531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36532         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36533         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36534         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36535         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36536         m4/locale-zh.m4.
36537         (Depends): Add mbsinit.
36538         * modules/mbsinit (Depends): Add mbrtowc.
36539         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36540
36541 2008-12-20  Bruno Haible  <bruno@clisp.org>
36542
36543         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36544         so that there are no conversion errors on AIX.
36545         * tests/test-mbsrtowcs.c (main): LIkewise.
36546
36547 2008-12-20  Bruno Haible  <bruno@clisp.org>
36548
36549         Work around wctob bug on Solaris <= 9.
36550         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36551         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36553         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36554         * modules/wctob (Files): Add m4/locale-fr.m4.
36555         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36556
36557 2008-12-20  Bruno Haible  <bruno@clisp.org>
36558
36559         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36560         /dev/null.
36561         * tests/test-select-in.sh: Likewise.
36562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36563
36564 2008-12-20  Bruno Haible  <bruno@clisp.org>
36565
36566         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36567         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36568         Cygwin 1.5.x.
36569
36570 2008-12-20  Bruno Haible  <bruno@clisp.org>
36571
36572         Ensure mbstate_t is defined on HP-UX 11.11.
36573         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36574         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36575         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36576         AC_USE_SYSTEM_EXTENSIONS.
36577         * modules/fnmatch (Depends-on): Add extensions.
36578         * modules/mbrlen (Depends-on): Likewise.
36579         * modules/mbrtowc (Depends-on): Likewise.
36580         * modules/mbsinit (Depends-on): Likewise.
36581         * modules/mbsrtowcs (Depends-on): Likewise.
36582         * modules/mbswidth (Depends-on): Likewise.
36583         * modules/quotearg (Depends-on): Likewise.
36584         * modules/strftime (Depends-on): Likewise.
36585
36586 2008-12-20  Bruno Haible  <bruno@clisp.org>
36587
36588         Ensure wctob is declared on IRIX 6.5.
36589         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36590         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36591         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36593         of HAVE_WCTOB.
36594         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36595         HAVE_WCTOB.
36596         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36597
36598 2008-12-19  Bruno Haible  <bruno@clisp.org>
36599
36600         * modules/mbsrtowcs-tests: New file.
36601         * tests/test-mbsrtowcs1.sh: New file.
36602         * tests/test-mbsrtowcs2.sh: New file.
36603         * tests/test-mbsrtowcs3.sh: New file.
36604         * tests/test-mbsrtowcs4.sh: New file.
36605         * tests/test-mbsrtowcs.c: New file.
36606
36607         New module 'mbsrtowcs'.
36608         * lib/wchar.in.h (mbsrtowcs): New declaration.
36609         * lib/mbsrtowcs.c: New file.
36610         * m4/mbsrtowcs.m4: New file.
36611         * modules/mbsrtowcs: New file.
36612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36613         HAVE_MBSRTOWCS.
36614         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36615         HAVE_MBSRTOWCS.
36616         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36617
36618 2008-12-19  Bruno Haible  <bruno@clisp.org>
36619
36620         New module 'mbrlen'.
36621         * lib/wchar.in.h (mbrlen): New declaration.
36622         * lib/mbrlen.c: New file.
36623         * m4/mbrlen.m4: New file.
36624         * modules/mbrlen: New file.
36625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36626         HAVE_MBRLEN.
36627         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36628         HAVE_MBRLEN.
36629         * doc/posix-functions/mbrlen.texi: Document the new module.
36630
36631 2008-12-19  Bruno Haible  <bruno@clisp.org>
36632
36633         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36634         * modules/mbrtowc (Depends-on): Add verify.
36635         Suggested by Paul Eggert.
36636
36637 2008-12-18  Bruno Haible  <bruno@clisp.org>
36638
36639         * modules/mbsinit-tests: New file.
36640         * tests/test-mbsinit.sh: New file.
36641         * tests/test-mbsinit.c: New file.
36642
36643 2008-12-18  Bruno Haible  <bruno@clisp.org>
36644
36645         * modules/mbrtowc-tests: New file.
36646         * tests/test-mbrtowc1.sh: New file.
36647         * tests/test-mbrtowc2.sh: New file.
36648         * tests/test-mbrtowc3.sh: New file.
36649         * tests/test-mbrtowc4.sh: New file.
36650         * tests/test-mbrtowc.c: New file.
36651
36652         New module 'mbrtowc'.
36653         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36654         mbsinit and mbrtowc.
36655         (mbrtowc): New declaration.
36656         * lib/mbrtowc.c: New file.
36657         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36658         * modules/mbrtowc: New file.
36659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36660         HAVE_MBRTOWC.
36661         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36662         HAVE_MBRTOWC.
36663         * doc/posix-functions/mbrtowc.texi: Document the new module.
36664
36665 2008-12-18  Bruno Haible  <bruno@clisp.org>
36666
36667         New module 'wctob'.
36668         * lib/wchar.in.h (wctob): New declaration.
36669         * lib/wctob.c: New file.
36670         * m4/wctob.m4: New file.
36671         * modules/wctob: New file.
36672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36673         HAVE_WCTOB.
36674         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36675         * doc/posix-functions/wctob.texi: Document the new module.
36676
36677 2008-12-18  Bruno Haible  <bruno@clisp.org>
36678
36679         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36680         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36681
36682 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36683
36684         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36685         G. Christensen" <tgc@jupiterrise.com>.
36686
36687         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36688         G. Christensen" <tgc@jupiterrise.com>.
36689
36690         * lib/flock.c: Need to include string.h.  Reported by "Tom
36691         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36692         <ebb9@byu.net>.
36693
36694 2008-12-18  Bruno Haible  <bruno@clisp.org>
36695
36696         * m4/locale-ja.m4: New file, from GNU gettext.
36697
36698 2008-12-17  Bruno Haible  <bruno@clisp.org>
36699
36700         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36701         Suggested by Eric Blake.
36702
36703 2008-12-17  Bruno Haible  <bruno@clisp.org>
36704
36705         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36706
36707 2008-12-17  Bruno Haible  <bruno@clisp.org>
36708
36709         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36710         * modules/mbsinit (Depends-on): Add verify.
36711         Suggested by Paul Eggert.
36712
36713 2008-12-17  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36716         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36717         gl_FUNC_MBRTOWC.
36718         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36719         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36720         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36721         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36722         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36723         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36724         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36725         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36726         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36727         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36728         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36729         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36730         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36731         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36732         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36733         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36734         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36735         * modules/trim (configure.ac): Likewise.
36736
36737 2008-12-17  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/btowc-tests: New file.
36740         * tests/test-btowc1.sh: New file.
36741         * tests/test-btowc2.sh: New file.
36742         * tests/test-btowc.c: New file.
36743
36744         New module 'btowc'.
36745         * lib/wchar.in.h (btowc): New declaration.
36746         * lib/btowc.c: New file.
36747         * m4/btowc.m4: New file.
36748         * modules/btowc: New file.
36749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36750         HAVE_BTOWC.
36751         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36752         * doc/posix-functions/btowc.texi: Document the new module.
36753
36754 2008-12-17  Bruno Haible  <bruno@clisp.org>
36755
36756         New module 'mbsinit'.
36757         * lib/wchar.in.h (mbsinit): New declaration.
36758         * lib/mbsinit.c: New file.
36759         * m4/mbsinit.m4: New file.
36760         * modules/mbsinit: New file.
36761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36762         HAVE_MBSINIT.
36763         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36764         HAVE_MBSINIT.
36765         * doc/posix-functions/mbsinit.texi: Document the new module.
36766
36767 2008-12-16  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/unistd.in.h: Add comment.
36770         * tests/test-environ.c: Don't include <stdlib.h>.
36771
36772 2008-12-16  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/parse-duration.h (parse_duration): Document return value
36775         convention.
36776         * lib/parse-duration.c: Include specification header first. Add
36777         comments.
36778         (_): Remove macro.
36779         (parse_year_month_day, parse_hour_minute_second): Move side effects
36780         outside of strchr call.
36781         (parse_non_iso8601): Move side effects outside of isspace call.
36782         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36783         call.
36784
36785 2008-12-16  Bruno Haible  <bruno@clisp.org>
36786
36787         * tests/test-parse-duration.sh: Produce no output when the test
36788         succeeds.
36789
36790 2008-12-16  Bruno Haible  <bruno@clisp.org>
36791
36792         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36793         expressions.
36794
36795 2008-12-15  Bruno Haible  <bruno@clisp.org>
36796
36797         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36798         * doc/glibc-functions/flistxattr.texi: Likewise.
36799         * doc/glibc-functions/fopencookie.texi: Likewise.
36800         * doc/glibc-functions/fremovexattr.texi: Likewise.
36801         * doc/glibc-functions/fsetxattr.texi: Likewise.
36802         * doc/glibc-functions/getxattr.texi: Likewise.
36803         * doc/glibc-functions/lgetxattr.texi: Likewise.
36804         * doc/glibc-functions/listxattr.texi: Likewise.
36805         * doc/glibc-functions/llistxattr.texi: Likewise.
36806         * doc/glibc-functions/lremovexattr.texi: Likewise.
36807         * doc/glibc-functions/lsetxattr.texi: Likewise.
36808         * doc/glibc-functions/removexattr.texi: Likewise.
36809         * doc/glibc-functions/setxattr.texi: Likewise.
36810         * doc/posix-functions/open_memstream.texi: Likewise.
36811
36812 2008-12-15  Eric Blake  <ebb9@byu.net>
36813
36814         Update doc for cygwin 1.7.
36815         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36816         functions.
36817         * doc/posix-functions/fchmodat.texi: Likewise.
36818         * doc/posix-functions/fchownat.texi: Likewise.
36819         * doc/posix-functions/fdopendir.texi: Likewise.
36820         * doc/posix-functions/fmemopen.texi: Likewise.
36821         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36822         * doc/posix-functions/fstatat.texi: Likewise.
36823         * doc/posix-functions/futimens.texi: Likewise.
36824         * doc/posix-functions/gai_strerror.texi: Likewise.
36825         * doc/posix-functions/getaddrinfo.texi: Likewise.
36826         * doc/posix-functions/getnameinfo.texi: Likewise.
36827         * doc/posix-functions/if_freenameindex.texi: Likewise.
36828         * doc/posix-functions/if_indextoname.texi: Likewise.
36829         * doc/posix-functions/if_nameindex.texi: Likewise.
36830         * doc/posix-functions/if_nametoindex.texi: Likewise.
36831         * doc/posix-functions/insque.texi: Likewise.
36832         * doc/posix-functions/linkat.texi: Likewise.
36833         * doc/posix-functions/llrint.texi: Likewise.
36834         * doc/posix-functions/llrintf.texi: Likewise.
36835         * doc/posix-functions/llrintl.texi: Likewise.
36836         * doc/posix-functions/lockf.texi: Likewise.
36837         * doc/posix-functions/lrintl.texi: Likewise.
36838         * doc/posix-functions/mkdirat.texi: Likewise.
36839         * doc/posix-functions/mkfifoat.texi: Likewise.
36840         * doc/posix-functions/mknodat.texi: Likewise.
36841         * doc/posix-functions/mq_close.texi: Likewise.
36842         * doc/posix-functions/mq_getattr.texi: Likewise.
36843         * doc/posix-functions/mq_notify.texi: Likewise.
36844         * doc/posix-functions/mq_open.texi: Likewise.
36845         * doc/posix-functions/mq_receive.texi: Likewise.
36846         * doc/posix-functions/mq_send.texi: Likewise.
36847         * doc/posix-functions/mq_setattr.texi: Likewise.
36848         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36849         * doc/posix-functions/mq_timedsend.texi: Likewise.
36850         * doc/posix-functions/mq_unlink.texi: Likewise.
36851         * doc/posix-functions/open_memstream.texi: Likewise.
36852         * doc/posix-functions/openat.texi: Likewise.
36853         * doc/posix-functions/posix_fadvise.texi: Likewise.
36854         * doc/posix-functions/posix_fallocate.texi: Likewise.
36855         * doc/posix-functions/posix_madvise.texi: Likewise.
36856         * doc/posix-functions/posix_memalign.texi: Likewise.
36857         * doc/posix-functions/posix_openpt.texi: Likewise.
36858         * doc/posix-functions/readlinkat.texi: Likewise.
36859         * doc/posix-functions/remque.texi: Likewise.
36860         * doc/posix-functions/renameat.texi: Likewise.
36861         * doc/posix-functions/rintl.texi: Likewise.
36862         * doc/posix-functions/sem_unlink.texi: Likewise.
36863         * doc/posix-functions/shm_open.texi: Likewise.
36864         * doc/posix-functions/shm_unlink.texi: Likewise.
36865         * doc/posix-functions/signgam.texi: Likewise.
36866         * doc/posix-functions/sigset.texi: Likewise.
36867         * doc/posix-functions/stpcpy.texi: Likewise.
36868         * doc/posix-functions/stpncpy.texi: Likewise.
36869         * doc/posix-functions/strerror.texi: Likewise.
36870         * doc/posix-functions/strtod.texi: Likewise.
36871         * doc/posix-functions/symlinkat.texi: Likewise.
36872         * doc/posix-functions/unlinkat.texi: Likewise.
36873         * doc/posix-functions/utimensat.texi: Likewise.
36874         * doc/glibc-functions/bindresvport.texi: Likewise.
36875         * doc/glibc-functions/dn_expand.texi: Likewise.
36876         * doc/glibc-functions/exp10.texi: Likewise.
36877         * doc/glibc-functions/exp10f.texi: Likewise.
36878         * doc/glibc-functions/fgetxattr.texi: Likewise.
36879         * doc/glibc-functions/flistxattr.texi: Likewise.
36880         * doc/glibc-functions/fopencookie.texi: Likewise.
36881         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36882         * doc/glibc-functions/fremovexattr.texi: Likewise.
36883         * doc/glibc-functions/fsetxattr.texi: Likewise.
36884         * doc/glibc-functions/getifaddrs.texi: Likewise.
36885         * doc/glibc-functions/getxattr.texi: Likewise.
36886         * doc/glibc-functions/lgetxattr.texi: Likewise.
36887         * doc/glibc-functions/listxattr.texi: Likewise.
36888         * doc/glibc-functions/llistxattr.texi: Likewise.
36889         * doc/glibc-functions/lremovexattr.texi: Likewise.
36890         * doc/glibc-functions/lsetxattr.texi: Likewise.
36891         * doc/glibc-functions/pow10.texi: Likewise.
36892         * doc/glibc-functions/pow10f.texi: Likewise.
36893         * doc/glibc-functions/rcmd_af.texi: Likewise.
36894         * doc/glibc-functions/removexattr.texi: Likewise.
36895         * doc/glibc-functions/res_init.texi: Likewise.
36896         * doc/glibc-functions/res_mkquery.texi: Likewise.
36897         * doc/glibc-functions/res_query.texi: Likewise.
36898         * doc/glibc-functions/res_querydomain.texi: Likewise.
36899         * doc/glibc-functions/res_send.texi: Likewise.
36900         * doc/glibc-functions/rresvport_af.texi: Likewise.
36901         * doc/glibc-functions/setxattr.texi: Likewise.
36902         * doc/glibc-functions/strcasestr.texi: Likewise.
36903
36904 2008-12-15  Bruno Haible  <bruno@clisp.org>
36905
36906         Fix compilation error on OSF/1 4.0.
36907         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36908         <sys/time.h>, simply delegate to the system header.
36909         Reported by Daniel Richard G. <oss@teragram.com>.
36910
36911 2008-12-15  Bruno Haible  <bruno@clisp.org>
36912
36913         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36914         * doc/posix-functions/fchmodat.texi: Likewise.
36915         * doc/posix-functions/fchownat.texi: Likewise.
36916         * doc/posix-functions/fdopendir.texi: Likewise.
36917         * doc/posix-functions/fstatat.texi: Likewise.
36918         * doc/posix-functions/mkdirat.texi: Likewise.
36919         * doc/posix-functions/unlinkat.texi: Likewise.
36920
36921 2008-12-14  Bruno Haible  <bruno@clisp.org>
36922
36923         Update doc for POSIX:2008.
36924         * doc/posix-functions/faccessat.texi: New file.
36925         * doc/posix-functions/fchmodat.texi: New file.
36926         * doc/posix-functions/fchownat.texi: New file.
36927         * doc/posix-functions/fdopendir.texi: New file.
36928         * doc/posix-functions/fstatat.texi: New file.
36929         * doc/posix-functions/futimens.texi: New file.
36930         * doc/posix-functions/linkat.texi: New file.
36931         * doc/posix-functions/mkdirat.texi: New file.
36932         * doc/posix-functions/mkfifoat.texi: New file.
36933         * doc/posix-functions/mknodat.texi: New file.
36934         * doc/posix-functions/open_wmemstream.texi: New file.
36935         * doc/posix-functions/openat.texi: New file.
36936         * doc/posix-functions/psiginfo.texi: New file.
36937         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36938         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36939         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36940         * doc/posix-functions/readlinkat.texi: New file.
36941         * doc/posix-functions/renameat.texi: New file.
36942         * doc/posix-functions/strerror_l.texi: New file.
36943         * doc/posix-functions/symlinkat.texi: New file.
36944         * doc/posix-functions/unlinkat.texi: New file.
36945         * doc/posix-functions/utimensat.texi: New file.
36946         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36947
36948 2008-12-14  Bruno Haible  <bruno@clisp.org>
36949
36950         Update doc for POSIX:2008.
36951         * doc/posix-functions/alphasort.texi: Renamed from
36952         doc/glibc-functions/alphasort.texi.
36953         * doc/posix-functions/dirfd.texi: Renamed from
36954         doc/glibc-functions/dirfd.texi.
36955         * doc/posix-functions/dprintf.texi: Renamed from
36956         doc/glibc-functions/dprintf.texi.
36957         * doc/posix-functions/duplocale.texi: Renamed from
36958         doc/glibc-functions/duplocale.texi.
36959         * doc/posix-functions/fexecve.texi: Renamed from
36960         doc/glibc-functions/fexecve.texi.
36961         * doc/posix-functions/fmemopen.texi: Renamed from
36962         doc/glibc-functions/fmemopen.texi.
36963         * doc/posix-functions/freelocale.texi: Renamed from
36964         doc/glibc-functions/freelocale.texi.
36965         * doc/posix-functions/getdate_err.texi: Renamed from
36966         doc/glibc-functions/getdate_err.texi.
36967         * doc/posix-functions/isalnum_l.texi: Renamed from
36968         doc/glibc-functions/isalnum_l.texi.
36969         * doc/posix-functions/isalpha_l.texi: Renamed from
36970         doc/glibc-functions/isalpha_l.texi.
36971         * doc/posix-functions/isblank_l.texi: Renamed from
36972         doc/glibc-functions/isblank_l.texi.
36973         * doc/posix-functions/iscntrl_l.texi: Renamed from
36974         doc/glibc-functions/iscntrl_l.texi.
36975         * doc/posix-functions/isdigit_l.texi: Renamed from
36976         doc/glibc-functions/isdigit_l.texi.
36977         * doc/posix-functions/isgraph_l.texi: Renamed from
36978         doc/glibc-functions/isgraph_l.texi.
36979         * doc/posix-functions/islower_l.texi: Renamed from
36980         doc/glibc-functions/islower_l.texi.
36981         * doc/posix-functions/isprint_l.texi: Renamed from
36982         doc/glibc-functions/isprint_l.texi.
36983         * doc/posix-functions/ispunct_l.texi: Renamed from
36984         doc/glibc-functions/ispunct_l.texi.
36985         * doc/posix-functions/isspace_l.texi: Renamed from
36986         doc/glibc-functions/isspace_l.texi.
36987         * doc/posix-functions/isupper_l.texi: Renamed from
36988         doc/glibc-functions/isupper_l.texi.
36989         * doc/posix-functions/iswalnum_l.texi: Renamed from
36990         doc/glibc-functions/iswalnum_l.texi.
36991         * doc/posix-functions/iswalpha_l.texi: Renamed from
36992         doc/glibc-functions/iswalpha_l.texi.
36993         * doc/posix-functions/iswblank_l.texi: Renamed from
36994         doc/glibc-functions/iswblank_l.texi.
36995         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36996         doc/glibc-functions/iswcntrl_l.texi.
36997         * doc/posix-functions/iswctype_l.texi: Renamed from
36998         doc/glibc-functions/iswctype_l.texi.
36999         * doc/posix-functions/iswdigit_l.texi: Renamed from
37000         doc/glibc-functions/iswdigit_l.texi.
37001         * doc/posix-functions/iswgraph_l.texi: Renamed from
37002         doc/glibc-functions/iswgraph_l.texi.
37003         * doc/posix-functions/iswlower_l.texi: Renamed from
37004         doc/glibc-functions/iswlower_l.texi.
37005         * doc/posix-functions/iswprint_l.texi: Renamed from
37006         doc/glibc-functions/iswprint_l.texi.
37007         * doc/posix-functions/iswpunct_l.texi: Renamed from
37008         doc/glibc-functions/iswpunct_l.texi.
37009         * doc/posix-functions/iswspace_l.texi: Renamed from
37010         doc/glibc-functions/iswspace_l.texi.
37011         * doc/posix-functions/iswupper_l.texi: Renamed from
37012         doc/glibc-functions/iswupper_l.texi.
37013         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37014         doc/glibc-functions/iswxdigit_l.texi.
37015         * doc/posix-functions/isxdigit_l.texi: Renamed from
37016         doc/glibc-functions/isxdigit_l.texi.
37017         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37018         doc/glibc-functions/mbsnrtowcs.texi.
37019         * doc/posix-functions/mkdtemp.texi: Renamed from
37020         doc/glibc-functions/mkdtemp.texi.
37021         * doc/posix-functions/newlocale.texi: Renamed from
37022         doc/glibc-functions/newlocale.texi.
37023         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37024         doc/glibc-functions/nl_langinfo_l.texi.
37025         * doc/posix-functions/open_memstream.texi: Renamed from
37026         doc/glibc-functions/open_memstream.texi.
37027         * doc/posix-functions/opterr.texi: Renamed from
37028         doc/glibc-functions/opterr.texi.
37029         * doc/posix-functions/optind.texi: Renamed from
37030         doc/glibc-functions/optind.texi.
37031         * doc/posix-functions/optopt.texi: Renamed from
37032         doc/glibc-functions/optopt.texi.
37033         * doc/posix-functions/psignal.texi: Renamed from
37034         doc/glibc-functions/psignal.texi.
37035         * doc/posix-functions/scandir.texi: Renamed from
37036         doc/glibc-functions/scandir.texi.
37037         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37038         doc/glibc-functions/sched_get_priority_min.texi.
37039         * doc/posix-functions/signgam.texi: Renamed from
37040         doc/glibc-functions/signgam.texi.
37041         * doc/posix-functions/stpcpy.texi: Renamed from
37042         doc/glibc-functions/stpcpy.texi.
37043         * doc/posix-functions/stpncpy.texi: Renamed from
37044         doc/glibc-functions/stpncpy.texi.
37045         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37046         doc/glibc-functions/strcasecmp_l.texi.
37047         * doc/posix-functions/strcoll_l.texi: Renamed from
37048         doc/glibc-functions/strcoll_l.texi.
37049         * doc/posix-functions/strfmon_l.texi: Renamed from
37050         doc/glibc-functions/strfmon_l.texi.
37051         * doc/posix-functions/strftime_l.texi: Renamed from
37052         doc/glibc-functions/strftime_l.texi.
37053         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37054         doc/glibc-functions/strncasecmp_l.texi.
37055         * doc/posix-functions/strndup.texi: Renamed from
37056         doc/glibc-functions/strndup.texi.
37057         * doc/posix-functions/strnlen.texi: Renamed from
37058         doc/glibc-functions/strnlen.texi.
37059         * doc/posix-functions/strsignal.texi: Renamed from
37060         doc/glibc-functions/strsignal.texi.
37061         * doc/posix-functions/strxfrm_l.texi: Renamed from
37062         doc/glibc-functions/strxfrm_l.texi.
37063         * doc/posix-functions/timer_gettime.texi: Renamed from
37064         doc/glibc-functions/timer_gettime.texi.
37065         * doc/posix-functions/tolower_l.texi: Renamed from
37066         doc/glibc-functions/tolower_l.texi.
37067         * doc/posix-functions/toupper_l.texi: Renamed from
37068         doc/glibc-functions/toupper_l.texi.
37069         * doc/posix-functions/towctrans_l.texi: Renamed from
37070         doc/glibc-functions/towctrans_l.texi.
37071         * doc/posix-functions/towlower_l.texi: Renamed from
37072         doc/glibc-functions/towlower_l.texi.
37073         * doc/posix-functions/towupper_l.texi: Renamed from
37074         doc/glibc-functions/towupper_l.texi.
37075         * doc/posix-functions/uselocale.texi: Renamed from
37076         doc/glibc-functions/uselocale.texi.
37077         * doc/posix-functions/vdprintf.texi: Renamed from
37078         doc/glibc-functions/vdprintf.texi.
37079         * doc/posix-functions/wcpcpy.texi:
37080         Renamed from doc/glibc-functions/wcpcpy.texi.
37081         * doc/posix-functions/wcpncpy.texi: Renamed from
37082         doc/glibc-functions/wcpncpy.texi.
37083         * doc/posix-functions/wcscasecmp.texi: Renamed from
37084         doc/glibc-functions/wcscasecmp.texi.
37085         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37086         doc/glibc-functions/wcscasecmp_l.texi.
37087         * doc/posix-functions/wcscoll_l.texi: Renamed from
37088         doc/glibc-functions/wcscoll_l.texi.
37089         * doc/posix-functions/wcsdup.texi: Renamed from
37090         doc/glibc-functions/wcsdup.texi.
37091         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37092         doc/glibc-functions/wcsncasecmp.texi.
37093         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37094         doc/glibc-functions/wcsncasecmp_l.texi.
37095         * doc/posix-functions/wcsnlen.texi: Renamed from
37096         doc/glibc-functions/wcsnlen.texi.
37097         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37098         doc/glibc-functions/wcsnrtombs.texi.
37099         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37100         doc/glibc-functions/wcsxfrm_l.texi.
37101         * doc/posix-functions/wctrans_l.texi: Renamed from
37102         doc/glibc-functions/wctrans_l.texi.
37103         * doc/posix-functions/wctype_l.texi: Renamed from
37104         doc/glibc-functions/wctype_l.texi.
37105         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37106         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37107         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37108         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37109         these subsections.
37110         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37111         Remove sections.
37112
37113 2008-12-14  Bruno Haible  <bruno@clisp.org>
37114
37115         Update doc for POSIX:2008.
37116         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37117
37118 2008-12-14  Bruno Haible  <bruno@clisp.org>
37119
37120         Update doc for POSIX:2008.
37121         * doc/pastposix-functions/bcmp.texi: Renamed from
37122         doc/posix-functions/bcmp.texi.
37123         * doc/pastposix-functions/bcopy.texi: Renamed from
37124         doc/posix-functions/bcopy.texi.
37125         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37126         doc/posix-functions/bsd_signal.texi.
37127         * doc/pastposix-functions/bzero.texi: Renamed from
37128         doc/posix-functions/bzero.texi.
37129         * doc/pastposix-functions/ecvt.texi: Renamed from
37130         doc/posix-functions/ecvt.texi.
37131         * doc/pastposix-functions/fcvt.texi: Renamed from
37132         doc/posix-functions/fcvt.texi.
37133         * doc/pastposix-functions/ftime.texi: Renamed from
37134         doc/posix-functions/ftime.texi.
37135         * doc/pastposix-functions/gcvt.texi: Renamed from
37136         doc/posix-functions/gcvt.texi.
37137         * doc/pastposix-functions/getcontext.texi: Renamed from
37138         doc/posix-functions/getcontext.texi.
37139         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37140         doc/posix-functions/gethostbyaddr.texi.
37141         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37142         doc/posix-functions/gethostbyname.texi.
37143         * doc/pastposix-functions/getwd.texi: Renamed from
37144         doc/posix-functions/getwd.texi.
37145         * doc/pastposix-functions/h_errno.texi: Renamed from
37146         doc/posix-functions/h_errno.texi.
37147         * doc/pastposix-functions/index.texi: Renamed from
37148         doc/posix-functions/index.texi.
37149         * doc/pastposix-functions/makecontext.texi: Renamed from
37150         doc/posix-functions/makecontext.texi.
37151         * doc/pastposix-functions/mktemp.texi: Renamed from
37152         doc/posix-functions/mktemp.texi.
37153         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37154         doc/posix-functions/pthread_attr_getstackaddr.texi.
37155         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37156         doc/posix-functions/pthread_attr_setstackaddr.texi.
37157         * doc/pastposix-functions/rindex.texi: Renamed from
37158         doc/posix-functions/rindex.texi.
37159         * doc/pastposix-functions/scalb.texi: Renamed from
37160         doc/posix-functions/scalb.texi.
37161         * doc/pastposix-functions/setcontext.texi: Renamed from
37162         doc/posix-functions/setcontext.texi.
37163         * doc/pastposix-functions/swapcontext.texi: Renamed from
37164         doc/posix-functions/swapcontext.texi.
37165         * doc/pastposix-functions/ualarm.texi: Renamed from
37166         doc/posix-functions/ualarm.texi.
37167         * doc/pastposix-functions/usleep.texi: Renamed from
37168         doc/posix-functions/usleep.texi.
37169         * doc/pastposix-functions/vfork.texi: Renamed from
37170         doc/posix-functions/vfork.texi.
37171         * doc/pastposix-functions/wcswcs.texi: Renamed from
37172         doc/posix-functions/wcswcs.texi.
37173         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37174         (Function Substitutes): Update.
37175
37176 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37177
37178         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37179         m4/strerror.m4.
37180
37181 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37182             Bruno Haible  <bruno@clisp.org>
37183
37184         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37185
37186 2008-12-13  Bruno Haible  <bruno@clisp.org>
37187
37188         * modules/strtoull (Depends-on): Remove unistd.
37189
37190 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37191
37192         * modules/strtoull (Depends-on): Add stdlib.
37193
37194 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37195
37196         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37197
37198 2008-12-10  Jim Meyering  <meyering@redhat.com>
37199
37200         gl_ASSERT: don't say assertions are disabled when they're not
37201         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37202         "checking whether to enable assertions... no", when they are in
37203         fact enabled.  This is solely a bug in the output of configure.
37204         In spite of saying "no", NDEBUG was not defined in that case.
37205         Also, as noted by Eric Blake, leave assertions enabled upon
37206         --enable-assert=INVALID.
37207
37208 2008-12-10  Bruno Haible  <bruno@clisp.org>
37209
37210         Change MODULES.html to refer to POSIX:2008 where possible.
37211         * MODULES.html.sh (POSIX2008_URL): New variable.
37212         (posix_headers): Remove sys/timeb, ucontext.
37213         (posix2001_headers): New variable.
37214         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37215         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37216         index, makecontext, mktemp, pthread_attr_getstackaddr,
37217         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37218         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37219         (posix2001_functions): New variable.
37220         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37221         otherwise.
37222
37223 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37224
37225         add missing include to parse-duration.c
37226         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37227         * modules/parse-duration (Depends-on): Add xalloc.
37228
37229         fix sed script reading maint.mk
37230         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37231         (syntax-check-rules): Use it.
37232
37233 2008-12-09  Bruno Haible  <bruno@clisp.org>
37234
37235         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37236         MacOS X 10.4/PowerPC.
37237         Reported by Simon Josefsson.
37238
37239 2008-12-08  Jim Meyering  <meyering@redhat.com>
37240
37241         work around mingw's lack of some S_IF definitions
37242         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37243         Reported by Simon Josefsson.
37244
37245 2008-12-08  Bruno Haible  <bruno@clisp.org>
37246
37247         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37248         applied to variables. Needed on MacOS X 10.4/PowerPC.
37249         Reported by Simon Josefsson.
37250
37251 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37252         and Eric Blake  <ebb9@byu.net>
37253
37254         assert: honor --enable-assert
37255         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37256         order to honor --enable-assert, rather than treating it as a
37257         synonym for --disable-assert.
37258
37259 2008-12-08  Jim Meyering  <meyering@redhat.com>
37260
37261         * lib/posixtm.c: Remove now-useless declaration of mktime.
37262
37263         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37264
37265 2008-12-07  Bruno Haible  <bruno@clisp.org>
37266
37267         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37268         test_once): Mark functions as static.
37269         * tests/test-tls.c (test_tls): Likewise.
37270
37271 2008-12-07  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37274         iconv_register_autodetect.
37275
37276 2008-12-07  Jim Meyering  <meyering@redhat.com>
37277
37278         posixtm.c: avoid a warning
37279         * lib/posixtm.c (posixtime): Don't initialize tm0.
37280         It's no longer needed to placate gcc4's -Wuninitialized,
37281         and the attempt to placate would elicit a new warning.
37282
37283         unicodeio.c: mark unused parameters
37284         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37285         (fallback_failure_callback): Likewise.
37286
37287 2008-12-07  Bruno Haible  <bruno@clisp.org>
37288
37289         * gnulib-tool (func_create_testdir): When building the tests
37290         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37291         Reported by Simon Josefsson.
37292
37293 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37294
37295         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37296
37297 2008-12-06  Bruno Haible  <bruno@clisp.org>
37298
37299         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37300         Suggested by Eric Blake.
37301
37302 2008-12-06  Bruno Haible  <bruno@clisp.org>
37303
37304         Fix a c-stack test failure on MacOS X.
37305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37306         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37307         handler for SIGBUS as well.
37308         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37309         install a signal handler for SIGBUS as well.
37310         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37311
37312 2008-12-06  Bruno Haible  <bruno@clisp.org>
37313
37314         Advocacy documentation.
37315         * doc/gnulib-intro.texi (Benefits): New section.
37316         * doc/gnulib.texi: Update.
37317
37318 2008-12-06  Bruno Haible  <bruno@clisp.org>
37319
37320         Document the 'manywarnings' module.
37321         * doc/manywarnings.texi: New file.
37322         * doc/gnulib.texi: Include it.
37323
37324 2008-12-05  Eric Blake  <ebb9@byu.net>
37325
37326         tests: silence some gcc warnings
37327         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37328         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37329         type mismatches.
37330
37331 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37332             Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37335
37336 2008-11-29  Jim Meyering  <meyering@redhat.com>
37337
37338         unicodeio.c: mark unused parameters
37339         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37340         (fallback_failure_callback): Likewise.
37341
37342         fts: fix a thinko
37343         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37344         (set_stat_type): Return S_IF*-valued "type" directly.
37345         Prompted by James Youngman's spotting a related bug.
37346         Confirmed by further testing through find.
37347
37348         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37349         * lib/fts.c (D_TYPE): Define.
37350         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37351         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37352         (s_ifmt_shift_bits): New function.
37353         (set_stat_type): New function.
37354         (fts_build): When not calling fts_stat, call set_stat_type
37355         to propagate dirent.d_type info to fts_read caller.
37356         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37357         fts_statp->st_mode type information may be valid.
37358
37359 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37360
37361         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37362         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37363         <sds@gnu.org>.
37364
37365 2008-11-20  Bruno Haible  <bruno@clisp.org>
37366
37367         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37368         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37369         INCLUDE_NEXT.
37370         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37371         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37372         * modules/math (Makefile.am): Substitute
37373         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37374         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37375
37376 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37377             Bruno Haible  <bruno@clisp.org>
37378
37379         * lib/stdint.in.h: Define all type macros so that their expansion is
37380         a single typedef'ed token. Fixes a compilation failure in Boost which
37381         does "using ::int8_t;".
37382
37383 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37384
37385         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37386         gl_MANYWARN_ALL_GCC.
37387         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37388         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37389         * modules/manywarnings: New file.
37390         * MODULES.html.sh: Mention manywarnings module.
37391
37392 2008-11-18  Bruno Haible  <bruno@clisp.org>
37393
37394         * doc/gnulib-tool.texi (Unit tests): New section.
37395
37396 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37397
37398         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37399         paths like 'lib/po/foo.po'.
37400
37401 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37402
37403         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37404         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37405
37406 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37407
37408         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37409         parameter works.
37410
37411 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37412
37413         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37414
37415 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37416
37417         * modules/parse-duration-tests: New file.
37418         * tests/test-parse-duration.sh: New file.
37419         * tests/test-parse-duration.c: New file.
37420
37421         New module 'parse-duration'.
37422         * lib/parse-duration.h: New file.
37423         * lib/parse-duration.c: New file.
37424         * modules/parse-duration: New file.
37425
37426 2008-11-17  Bruno Haible  <bruno@clisp.org>
37427
37428         * tests/test-select-out.sh: Comment out the first pipe test.
37429         Reported by Simon Josefsson.
37430
37431 2008-11-17  Bruno Haible  <bruno@clisp.org>
37432
37433         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37435         gl_HOSTENT.
37436
37437 2008-11-17  Bruno Haible  <bruno@clisp.org>
37438
37439         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37440         -lnetwork and -lnet. Needed for Haiku and BeOS.
37441
37442 2008-11-16  Bruno Haible  <bruno@clisp.org>
37443
37444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37445
37446 2008-11-16  Bruno Haible  <bruno@clisp.org>
37447
37448         Avoid test failure on Haiku.
37449         * tests/test-fsync.c: Include <errno.h>.
37450         (main): Don't require that fsync (0) fails.
37451
37452 2008-11-15  Bruno Haible  <bruno@clisp.org>
37453
37454         New module 'hostent'.
37455         * modules/hostent: New file.
37456         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37457
37458 2008-11-15  Bruno Haible  <bruno@clisp.org>
37459
37460         New module 'servent'.
37461         * modules/servent: New file.
37462         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37463
37464 2008-11-15  Bruno Haible  <bruno@clisp.org>
37465
37466         Avoid generating same test program with two different rules.
37467         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37468         test-frexp to test-frexp-nolibm.
37469         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37470         test-frexpl to test-frexpl-nolibm.
37471
37472 2008-11-15  Bruno Haible  <bruno@clisp.org>
37473
37474         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37475         $(FREXPL_LIBM).
37476
37477 2008-11-15  Bruno Haible  <bruno@clisp.org>
37478
37479         * lib/netdb.in.h: Activate the definitions also when the system's
37480         <netdb.h> has 'struct addrinfo'.
37481         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37482         EAI_OVERFLOW or AI_NUMERICSERV.
37483         * doc/posix-headers/netdb.texi: Document the problem.
37484
37485 2008-11-15  Bruno Haible  <bruno@clisp.org>
37486
37487         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37488
37489         Make the 'sched' module work on platforms where <sched.h> exists but
37490         is incomplete (such as Haiku).
37491         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37492         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37493         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37494         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37495         HAVE_STRUCT_SCHED_PARAM.
37496         * modules/sched (Depends-on): Add include_next.
37497         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37498         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37499         * doc/posix-headers/sched.texi: Document the issue.
37500
37501 2008-11-13  Jim Meyering  <meyering@redhat.com>
37502
37503         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37504         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37505         test would fail due to the difference in the Report bugs to ...
37506         line.  The expected address is empty, "<>", while the actual
37507         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37508
37509 2008-11-12  Bruno Haible  <bruno@clisp.org>
37510
37511         lstat: don't compile lstat.c on systems lacking lstat
37512         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37513         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37514         Reported by Daniel P. Berrange via Jim Meyering.
37515
37516 2008-11-12  Jim Meyering  <meyering@redhat.com>
37517
37518         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37519
37520 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37521
37522         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37523         instead.
37524
37525 2008-11-12  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/unicodeio.c: Include unistr.h.
37528         (utf8_wctomb): Remove function.
37529         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37530
37531 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37532
37533         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37534         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37535         <bruno@clisp.org>.
37536         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37537
37538 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37539
37540         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37541         * doc/gnulib.texi: Add section for warnings.
37542
37543 2008-11-11  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/sockets.h: Add a comment.
37546
37547 2008-11-11  Karl Berry  <karl@gnu.org>
37548
37549         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37550
37551 2008-11-11  Eric Blake  <ebb9@byu.net>
37552
37553         fdl.texi: avoid git symlinks
37554         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37555
37556 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37557
37558         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37559
37560 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37561
37562         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37563         (gl_WARN_ADD): Substitute $2 if literal.
37564
37565 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37566
37567         * m4/warning.m4: Remove.
37568
37569 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37570
37571         * m4/warnings.m4: Almost complete rewrite. :-)
37572
37573 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37574
37575         * modules/warnings: New module.
37576         * m4/warnings.m4: New file.
37577         * MODULES.html.sh: Mention warnings module.
37578         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37579         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37580
37581 2008-11-10  Eric Blake  <ebb9@byu.net>
37582
37583         fdl.texi: make a symlink to the latest version
37584         * doc/standards.texi: Revert today's earlier change.
37585         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37586         * doc/fdl.texi: ...and replace this with a symlink to the newer
37587         fdl-1.3.texi.
37588
37589 2008-11-10  Bruno Haible  <bruno@clisp.org>
37590
37591         * tests/test-select-fd.c (main): Accept the result file name as fourth
37592         argument.
37593         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37594         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37595
37596 2008-11-10  Bruno Haible  <bruno@clisp.org>
37597
37598         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37599         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37600         as autoconf-substituted macros.
37601         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37603         gl_NETDB_H_DEFAULTS. Set these variables.
37604         * modules/netdb (Makefile.am): Substitute these variables.
37605
37606 2008-11-10  Eric Blake  <ebb9@byu.net>
37607
37608         standards.texi: include correct file for FDL 1.3
37609         * doc/standards.texi (GNU Free Documentation License): Change
37610         include file to pull in FDL 1.3, not 1.2.
37611
37612         fdl.texi: revert accidental change to license
37613         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37614
37615 2008-11-10  Bruno Haible  <bruno@clisp.org>
37616
37617         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37618         cross-compiling guesses also when the native compile gives no result.
37619
37620 2008-11-10  Bruno Haible  <bruno@clisp.org>
37621
37622         * lib/spawni.c (__spawni): Force variable into the stack.
37623
37624 2008-11-10  Bruno Haible  <bruno@clisp.org>
37625
37626         Add support for Haiku.
37627         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37628         glibc and BeOS, but also on Haiku.
37629         * lib/fpurge.c (fpurge): Likewise.
37630         * lib/freadable.c (freadable): Likewise.
37631         * lib/freadahead.c (freadahead): Likewise.
37632         * lib/freading.c (freading): Likewise.
37633         * lib/freadptr.c (freadptr): Likewise.
37634         * lib/freadseek.c (freadptrinc): Likewise.
37635         * lib/fseeko.c (rpl_fseeko): Likewise.
37636         * lib/fseterr.c (fseterr): Likewise.
37637         * lib/fwritable.c (fwritable): Likewise.
37638         * lib/fwriting.c (fwriting): Likewise.
37639         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37640
37641 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37642
37643         * lib/config.charset: Treat Haiku like BeOS.
37644
37645 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37646
37647         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37648         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37649
37650 2008-11-08  Bruno Haible  <bruno@clisp.org>
37651
37652         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37653         AC_CACHE_CHECK.
37654
37655 2008-11-08  Bruno Haible  <bruno@clisp.org>
37656
37657         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37658
37659 2008-11-08  Bruno Haible  <bruno@clisp.org>
37660
37661         * tests/test-select-fd.c: New file.
37662         * tests/test-select-in.sh: New file.
37663         * tests/test-select-out.sh: New file.
37664         * tests/test-select-stdin.c: New file.
37665         * modules/select-tests (Files): Add the new files.
37666         (Depends-on): Add gettimeofday.
37667         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37668         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37669         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37670
37671 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37672             Bruno Haible  <bruno@clisp.org>
37673
37674         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37675
37676 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37677
37678         * build-aux/pmccabe2html: Added support for C++ source files.
37679
37680 2008-11-05  Ben Pfaff  <blp@gnu.org>
37681
37682         Fix lib/close.c build on Windows.
37683         * modules/close (Files): Add lib/w32sock.h.
37684
37685 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37686
37687         Accept Bison's NEWS format.
37688         * build-aux/announce-gen (print_news_deltas): Tweak
37689         $re_prefix.
37690
37691 2008-11-04  Bruno Haible  <bruno@clisp.org>
37692
37693         * modules/random_r (Maintainer): Add glibc.
37694
37695 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37696
37697         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37698         by karl@freefriends.org (Karl Berry).
37699         * doc/alloca.texi: Likewise.
37700         * doc/c-ctype.texi: Likewise.
37701         * doc/c-strcase.texi: Likewise.
37702         * doc/c-strcaseeq.texi: Likewise.
37703         * doc/c-strcasestr.texi: Likewise.
37704         * doc/c-strstr.texi: Likewise.
37705         * doc/c-strtod.texi: Likewise.
37706         * doc/c-strtold.texi: Likewise.
37707         * doc/ctime.texi: Likewise.
37708         * doc/error.texi: Likewise.
37709         * doc/fdl.texi: Likewise.
37710         * doc/gcd.texi: Likewise.
37711         * doc/getdate.texi: Likewise.
37712         * doc/gnulib-intro.texi: Likewise.
37713         * doc/gnulib-tool.texi: Likewise.
37714         * doc/gnulib.texi: Likewise.
37715         * doc/inet_ntoa.texi: Likewise.
37716         * doc/maintain.texi: Likewise.
37717         * doc/make-stds.texi: Likewise.
37718         * doc/quote.texi: Likewise.
37719         * doc/regexprops-generic.texi: Likewise.
37720         * doc/standards.texi: Likewise.
37721         * doc/verify.texi: Likewise.
37722         * doc/visibility.texi: Likewise.
37723         * doc/gnulib.texi (GNU Free Documentation License): Include
37724         fdl-1.3.texi instead of fdl.texi.
37725
37726 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37727
37728         * doc/fdl-1.3.texi: New file, from
37729         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37730         * modules/fdl-1.3: Add.
37731         * MODULES.html.sh: Add fdl-1.3.
37732
37733 2008-11-03  Bruno Haible  <bruno@clisp.org>
37734
37735         Make determination of absolute name of header file work with AIX xlc.
37736         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37737         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37738         preprocessing.
37739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37740         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37741
37742 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37743
37744         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37745         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37746         <ludo@gnu.org>.
37747
37748 2008-11-02  Bruno Haible  <bruno@clisp.org>
37749
37750         Mark 'strpbrk' obsolete.
37751         * modules/strpbrk (Status, Notice): New sections.
37752         * modules/strtok_r (Depends-on): Add strpbrk.
37753
37754 2008-11-02  Bruno Haible  <bruno@clisp.org>
37755
37756         Mark 'strdup' obsolete.
37757         * modules/strdup (Status, Notice): New sections.
37758         * modules/findprog (Depends-on): Add strdup.
37759         * modules/getaddrinfo (Depends-on): Likewise.
37760         * modules/localename (Depends-on): Likewise.
37761         * modules/relocatable-lib (Depends-on): Likewise.
37762         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37763         * modules/relocatable-prog (Depends-on): Likewise.
37764         * modules/trim (Depends-on): Likewise.
37765         * modules/unictype/gen-ctype (Depends-on): Likewise.
37766         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37767
37768 2008-11-02  Bruno Haible  <bruno@clisp.org>
37769
37770         Mark 'strcspn' obsolete.
37771         * modules/strcspn (Status, Notice): New sections.
37772
37773 2008-11-02  Bruno Haible  <bruno@clisp.org>
37774
37775         Mark 'rmdir' obsolete.
37776         * modules/rmdir (Status, Notice): New sections.
37777         * modules/clean-temp (Depends-on): Add rmdir.
37778         * modules/openat (Depends-on): Likewise.
37779
37780 2008-11-02  Bruno Haible  <bruno@clisp.org>
37781
37782         Mark 'raise' obsolete.
37783         * modules/raise (Status, Notice): New sections.
37784         (Include): Specify <signal.h>.
37785         * modules/stdio (Depends-on): Add raise.
37786         * modules/write (Depends-on): Likewise.
37787
37788 2008-11-02  Bruno Haible  <bruno@clisp.org>
37789
37790         Mark 'memset' obsolete.
37791         * modules/memset (Status, Notice): New sections.
37792
37793 2008-11-02  Bruno Haible  <bruno@clisp.org>
37794
37795         Mark 'memmove' obsolete.
37796         * modules/memmove (Status, Notice): New sections.
37797         * modules/argp (Depends-on): Add memmove.
37798         * modules/argz (Depends-on): Likewise.
37799         * modules/canonicalize (Depends-on): Likewise.
37800         * modules/canonicalize-lgpl (Depends-on): Likewise.
37801         * modules/fts (Depends-on): Likewise.
37802         * modules/getcwd (Depends-on): Likewise.
37803         * modules/human (Depends-on): Likewise.
37804         * modules/regex (Depends-on): Likewise.
37805         * modules/striconveh (Depends-on): Likewise.
37806         * modules/trim (Depends-on): Likewise.
37807         * modules/unistr/u8-move (Depends-on): Likewise.
37808         * modules/unistr/u16-move (Depends-on): Likewise.
37809         * modules/unistr/u32-move (Depends-on): Likewise.
37810
37811 2008-11-02  Bruno Haible  <bruno@clisp.org>
37812
37813         Mark 'memcpy' obsolete.
37814         * modules/memcpy (Status, Notice): New sections.
37815
37816 2008-11-02  Bruno Haible  <bruno@clisp.org>
37817
37818         Mark 'memcmp' obsolete.
37819         * modules/memcmp (Status, Notice): New sections.
37820         * modules/argmatch (Depends-on): Add memchr.
37821         * modules/backupfile (Depends-on): Likewise.
37822         * modules/c-strcasestr (Depends-on): Likewise.
37823         * modules/crypto/des (Depends-on): Likewise.
37824         * modules/csharpcomp (Depends-on): Likewise.
37825         * modules/fnmatch (Depends-on): Likewise.
37826         * modules/git-merge-changelog (Depends-on): Likewise.
37827         * modules/isnand (Depends-on): Likewise.
37828         * modules/isnand-nolibm (Depends-on): Likewise.
37829         * modules/isnanf (Depends-on): Likewise.
37830         * modules/isnanf-nolibm (Depends-on): Likewise.
37831         * modules/isnanl (Depends-on): Likewise.
37832         * modules/isnanl-nolibm (Depends-on): Likewise.
37833         * modules/mbchar (Depends-on): Likewise.
37834         * modules/memcoll (Depends-on): Likewise.
37835         * modules/quotearg (Depends-on): Likewise.
37836         * modules/regex (Depends-on): Likewise.
37837         * modules/relocatable-prog (Depends-on): Likewise.
37838         * modules/same (Depends-on): Likewise.
37839         * modules/signbit (Depends-on): Likewise.
37840         * modules/strcasestr-simple (Depends-on): Likewise.
37841         * modules/unictype/gen-ctype (Depends-on): Likewise.
37842         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37843         * modules/uniname/uniname (Depends-on): Likewise.
37844         * modules/unistr/u8-cmp (Depends-on): Likewise.
37845
37846 2008-11-02  Bruno Haible  <bruno@clisp.org>
37847
37848         Mark 'memchr' obsolete.
37849         * modules/memchr (Status, Notice): New sections.
37850         * modules/argp (Depends-on): Add memchr.
37851         * modules/base64 (Depends-on): Likewise.
37852         * modules/c-strcasestr (Depends-on): Likewise.
37853         * modules/chdir-long (Depends-on): Likewise.
37854         * modules/fnmatch (Depends-on): Likewise.
37855         * modules/getsubopt (Depends-on): Likewise.
37856         * modules/git-merge-changelog (Depends-on): Likewise.
37857         * modules/glob (Depends-on): Likewise.
37858         * modules/strcasestr-simple (Depends-on): Likewise.
37859         * modules/strnlen (Depends-on): Likewise.
37860
37861 2008-11-02  Bruno Haible  <bruno@clisp.org>
37862
37863         Mark 'atexit' obsolete.
37864         * modules/atexit (Status, Notice): New sections.
37865         * modules/chdir-long (Depends-on): Add atexit.
37866         * modules/wait-process (Depends-on): Likewise.
37867
37868 2008-11-02  Bruno Haible  <bruno@clisp.org>
37869
37870         * gnulib-tool: New option --with-obsolete.
37871         (func_usage): Document it.
37872         (func_modules_transitive_closure): Drop obsolete dependencies if
37873         incobsolete is not true.
37874         (func_import): Read and save the incobsolete variable to the cache.
37875
37876 2008-11-02  Bruno Haible  <bruno@clisp.org>
37877
37878         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37879         * gnulib-tool: New option --extract-status.
37880         (func_usage): Document it.
37881         (sed_extract_prog): Recognize it.
37882         (func_get_status): New function.
37883
37884 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37885
37886         * modules/sockets (License): Change from LGPL to LGPLv2+.
37887
37888 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37889
37890         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37891
37892 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37893
37894         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37895         Mention times and sys_times.
37896         * modules/sys_times, modules/sys_times-tests: New modules.
37897         * modules/times, modules/times-tests: Likewise
37898         * m4/sys_times_h.m4: New file.
37899         * lib/sys_times.in.h: Likewise
37900         * lib/times.c: Likewise.
37901         * tests/test-sys_times.c: Likewise.
37902         * tests/test-times.c: Likewise.
37903         * doc/posix-headers/sys_times.texi: Update.
37904         * doc/posix-functions/times.texi: Update.
37905
37906 2008-10-28  Jim Meyering  <meyering@redhat.com>
37907
37908         * modules/tempname (Depends-on): Add lstat.
37909
37910         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37911
37912 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37913
37914         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37915         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37916         using idiom used elsewhere in gnulib.
37917
37918 2008-10-27  Jim Meyering  <meyering@redhat.com>
37919
37920         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37921
37922 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37923
37924         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37925         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37926         programs.
37927         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37928
37929 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37930
37931         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37932
37933 2008-10-27  Bruno Haible  <bruno@clisp.org>
37934
37935         * tests/test-lstat.c: Include <stdio.h>.
37936
37937 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37938
37939         * modules/lstat-tests: New module.
37940         * tests/test-lstat.c: New file.
37941
37942 2008-10-26  Jim Meyering  <meyering@redhat.com>
37943
37944         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37945
37946 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37947             Bruno Haible  <bruno@clisp.org>
37948
37949         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37950         * modules/configmake (Include): Add a note that the include must come
37951         after all system headers.
37952         * lib/javaversion.c: Include configmake.h after all other includes.
37953
37954 2008-10-26  Bruno Haible  <bruno@clisp.org>
37955
37956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37957         HAVE_STRUCT_RANDOM_DATA to 1.
37958         (gl_STDLIB_H): Simplify.
37959
37960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37961
37962         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37963         substitute HAVE_STRUCT_RANDOM_DATA.
37964         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37965         random_data.
37966         * modules/stdlib (Makefile.am): Substitute
37967         HAVE_STRUCT_RANDOM_DATA.
37968
37969 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37970
37971         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37972         * doc/gnulib-intro.texi (Copyright): Likewise.
37973
37974 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37975
37976         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37977         findings.
37978
37979 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37980             Bruno Haible  <bruno@clisp.org>
37981
37982         * lib/unistd.in.h: Include <winsock2.h>.
37983         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37984         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37985         Provide dummy declarations.
37986         (gethostname): Override.
37987         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37988         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37989         gl_PREREQ_SYS_H_WINSOCK2.
37990         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37991         * doc/posix-functions/gethostname.texi: More details.
37992
37993 2008-10-25  Bruno Haible  <bruno@clisp.org>
37994
37995         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37996         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37997         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37998
37999         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38000         here ...
38001         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38002         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38003         gl_UNISTD_H_DEFAULTS.
38004
38005 2008-10-25  Eric Blake  <ebb9@byu.net>
38006
38007         signbit: avoid spurious compiler failure
38008         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38009         declarations inside function.
38010
38011 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38012             Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38015         * modules/random_r (Depends-on): Add stdint.
38016
38017 2008-10-24  Bruno Haible  <bruno@clisp.org>
38018
38019         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38020         Eggert.
38021         * modules/strerror (License): Likewise.
38022
38023 2008-10-24  Jim Meyering  <meyering@redhat.com>
38024
38025         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38026         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38027
38028 2008-10-24  Eric Blake  <ebb9@byu.net>
38029
38030         getgroups: fix compilation when getgroups is available
38031         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38032         but with <config.h> override of getgroups disabled.
38033
38034 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38035
38036         * doc/gnulib.texi (Header files): Add note about C++ problems.
38037         Explained by Bruno Haible <bruno@clisp.org>.
38038
38039 2008-10-23  Bruno Haible  <bruno@clisp.org>
38040
38041         Define a dummy SA_NODEFER macro on Interix.
38042         * lib/signal.in.h (SA_NODEFER): Define fallback.
38043         Reported by Aleksey Cheusov <cheusov@tut.by> via
38044         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38045
38046 2008-10-23  Bruno Haible  <bruno@clisp.org>
38047
38048         * modules/freadahead (License): Change to LGPLv2+.
38049         Suggested by Simon Josefsson.
38050
38051 2008-10-23  Jim Meyering  <meyering@redhat.com>
38052
38053         random_r: new module
38054         * modules/random_r: New file.
38055         * m4/random_r.m4: New file.
38056         * lib/random_r.c: New file, from glibc.
38057         * modules/random_r-tests: New file.
38058         * tests/test-random_r.c: New file.
38059         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38060          Declare.
38061         (RAND_MAX): Define.
38062         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38063         * modules/stdlib: Substitute them, too.
38064         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38065         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38066         * doc/glibc-functions/random_r.texi: Likewise.
38067         * doc/glibc-functions/setstate_r.texi: Likewise.
38068         * doc/glibc-functions/srandom_r.texi: Likewise.
38069         * config/srclist.txt: Mention it.
38070
38071 2008-10-23  David Lutterkort  <lutter@redhat.com>
38072
38073         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38074         link requirement
38075
38076 2008-10-23  Jim Meyering  <meyering@redhat.com>
38077
38078         selinux-h: mark parameters of stub functions as intentionally unused
38079         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38080         * lib/se-context.in.h: Likewise.
38081
38082 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38083
38084         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38085
38086 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38087
38088         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38089
38090 2008-10-22  Eric Blake  <ebb9@byu.net>
38091
38092         glthread/thread: avoid compiler warning
38093         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38094         Add unreachable abort to silence compiler.
38095
38096 2008-10-22  Eric Blake  <ebb9@byu.net>
38097
38098         netdb: also supply struct addrinfo for cygwin 1.5.x
38099         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38100         older cygwin.
38101         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38102         cygwin.
38103         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38104
38105 2008-10-22  Bruno Haible  <bruno@clisp.org>
38106
38107         * users.txt: Update entry about pspp.
38108
38109 2008-10-21  Bruno Haible  <bruno@clisp.org>
38110
38111         Simplification.
38112         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38113         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38114
38115         Simplification.
38116         * lib/ioctl.c (ioctl): Don't undefine.
38117         * lib/socket.c (socket): Don't undefine.
38118
38119         Remove unused module indicator macros.
38120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38121         GNULIB_$1 as a C macro.
38122
38123         * doc/posix-functions/close.texi: Undo last change.
38124         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38125         Windows platforms.
38126
38127 2008-10-21  Bruno Haible  <bruno@clisp.org>
38128
38129         Add gethostname() declaration to <unistd.h>.
38130         * lib/unistd.in.h (gethostname): New declaration.
38131         * lib/gethostname.c: Include <unistd.h>.
38132         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38133         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38135         and HAVE_GETHOSTNAME.
38136         * modules/gethostname (Depends-on): Add unistd.
38137         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38138         (Include): Specify <unistd.h>.
38139         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38140         HAVE_GETHOSTNAME.
38141         * tests/test-gethostname.c: Include <unistd.h> first.
38142
38143 2008-10-21  Bruno Haible  <bruno@clisp.org>
38144
38145         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38146         * modules/select-tests (Depends-on): Likewise.
38147         Reported by Simon Josefsson.
38148
38149 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38150
38151         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38152         * lib/accept.c: New file, based on winsock.c.
38153         * lib/bind.c: New file, based on winsock.c.
38154         * lib/connect.c: New file, based on winsock.c.
38155         * lib/getpeername.c: New file, based on winsock.c.
38156         * lib/getsockname.c: New file, based on winsock.c.
38157         * lib/getsockopt.c: New file, based on winsock.c.
38158         * lib/ioctl.c: New file, based on winsock.c.
38159         * lib/listen.c: New file, based on winsock.c.
38160         * lib/recv.c: New file, based on winsock.c.
38161         * lib/recvfrom.c: New file, based on winsock.c.
38162         * lib/send.c: New file, based on winsock.c.
38163         * lib/sendto.c: New file, based on winsock.c.
38164         * lib/setsockopt.c: New file, based on winsock.c.
38165         * lib/shutdown.c: New file, based on winsock.c.
38166         * lib/socket.c: New file, based on winsock.c.
38167         * lib/w32sock.h: New file, based on winsock.c.
38168         * lib/winsock.c: Remove file.
38169         * modules/accept: Likewise.
38170         * modules/bind: Likewise.
38171         * modules/connect: Likewise.
38172         * modules/getpeername: Likewise.
38173         * modules/getsockname: Likewise.
38174         * modules/getsockopt: Likewise.
38175         * modules/ioctl: Likewise.
38176         * modules/listen: Likewise.
38177         * modules/recv: Likewise.
38178         * modules/recvfrom: Likewise.
38179         * modules/send: Likewise.
38180         * modules/sendto: Likewise.
38181         * modules/setsockopt: Likewise.
38182         * modules/shutdown: Likewise.
38183         * modules/socket: Use socket.c instead of winsock.c.
38184         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38185         * doc/posix-functions/accept.texi: Doc fix.
38186         * doc/posix-functions/bind.texi: Doc fix.
38187         * doc/posix-functions/close.texi: Doc fix.
38188         * doc/posix-functions/connect.texi: Doc fix.
38189         * doc/posix-functions/getpeername.texi: Doc fix.
38190         * doc/posix-functions/getsockname.texi: Doc fix.
38191         * doc/posix-functions/getsockopt.texi: Doc fix.
38192         * doc/posix-functions/ioctl.texi: Doc fix.
38193         * doc/posix-functions/listen.texi: Doc fix.
38194         * doc/posix-functions/recv.texi: Doc fix.
38195         * doc/posix-functions/recvfrom.texi: Doc fix.
38196         * doc/posix-functions/send.texi: Doc fix.
38197         * doc/posix-functions/sendto.texi: Doc fix.
38198         * doc/posix-functions/setsockopt.texi: Doc fix.
38199         * doc/posix-functions/shutdown.texi: Doc fix.
38200         * doc/posix-functions/socket.texi: Doc fix.
38201
38202 2008-10-20  Bruno Haible  <bruno@clisp.org>
38203
38204         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38205         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38206         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38207         as an alias for SIGABRT.
38208         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38209         (sigaction): Map it to SIGABRT.
38210         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38211
38212 2008-10-20  Bruno Haible  <bruno@clisp.org>
38213
38214         * lib/fts.c: Don't include lstat.h.
38215         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38216
38217         Move the lstat() declaration to <sys/stat.h>.
38218         * lib/lstat.h: Remove file.
38219         * lib/sys_stat.in.h: Add special invocation convention.
38220         (lstat): New declaration.
38221         * lib/lstat.c (orig_lstat): New function.
38222         (rpl_lstat): Use orig_lstat instead of lstat.
38223         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38224         AC_C_INLINE. Set REPLACE_LSTAT.
38225         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38226         and REPLACE_LSTAT.
38227         * modules/lstat (Files): Remove lib/lstat.h.
38228         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38229         (Include): Specify <sys/stat.h> instead of lstat.h.
38230         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38231         REPLACE_LSTAT.
38232         * NEWS: Mention the change.
38233
38234 2008-10-20  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/posix_spawn-tests: New file.
38237         * tests/test-posix_spawn3.c: New file.
38238
38239 2008-10-20  Bruno Haible  <bruno@clisp.org>
38240
38241         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38242         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38243         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38244         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38245         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38246
38247 2008-10-20  Bruno Haible  <bruno@clisp.org>
38248
38249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38250         of posix_spawn on AIX 5.3.
38251
38252 2008-10-20  Bruno Haible  <bruno@clisp.org>
38253
38254         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38255
38256 2008-10-20  Bruno Haible  <bruno@clisp.org>
38257
38258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38259         of AC_LANG_PROGRAM.
38260
38261 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38262
38263         * lib/netdb.in.h: Don't define GNU specific constants until they
38264         are supported or needed.  Reported by Bruno Haible
38265         <bruno@clisp.org>.
38266
38267 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38268
38269         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38270
38271 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38272
38273         * lib/getaddrinfo.h: Remove file.
38274         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38275         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38276         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38277         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38278         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38279         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38280         * tests/test-getaddrinfo.c: Likewise.
38281         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38282         * NEWS: Mention change.
38283
38284 2008-10-19  Bruno Haible  <bruno@clisp.org>
38285
38286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38287
38288 2008-10-19  Bruno Haible  <bruno@clisp.org>
38289
38290         * lib/wait-process.c: Include simply <sys/wait.h>.
38291         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38292         WIFSTOPPED): Remove fallback definitions.
38293         * modules/wait-process (Depends-on): Add sys_wait.
38294
38295         New module 'sys_wait'.
38296         * modules/sys_wait: New file.
38297         * lib/sys_wait.in.h: New file, partially copied from
38298         lib/wait-process.c.
38299         * m4/sys_wait_h.m4: New file.
38300         * doc/posix-headers/sys_wait.texi: Mention the new module.
38301
38302 2008-10-19  Bruno Haible  <bruno@clisp.org>
38303
38304         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38305
38306 2008-10-19  Bruno Haible  <bruno@clisp.org>
38307
38308         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38309         * lib/wait-process.c (WAIT_T): Remove type.
38310         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38311         (wait_subprocess): Update.
38312
38313 2008-10-19  Bruno Haible  <bruno@clisp.org>
38314
38315         New module 'atoll'.
38316         * modules/atoll: New file.
38317         * lib/stdlib.in.h (atoll): New declaration.
38318         * lib/atoll.c: New file, from glibc with modifications.
38319         * m4/atoll.m4: New file.
38320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38321         HAVE_ATOLL.
38322         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38323         * doc/posix-functions/atoll.texi: Mention the new module.
38324
38325 2008-10-19  Bruno Haible  <bruno@clisp.org>
38326
38327         Add strtoull() declaration to <stdlib.h>.
38328         * lib/stdlib.in.h (strtoull): New declaration.
38329         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38330         Set HAVE_STRTOULL.
38331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38332         HAVE_STRTOULL.
38333         * modules/strtoull (Depends-on): Add stdlib.
38334         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38335         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38336         HAVE_STRTOULL.
38337
38338 2008-10-19  Bruno Haible  <bruno@clisp.org>
38339
38340         Add strtoll() declaration to <stdlib.h>.
38341         * lib/stdlib.in.h (strtoll): New declaration.
38342         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38343         Set HAVE_STRTOLL.
38344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38345         HAVE_STRTOLL.
38346         * modules/strtoll (Depends-on): Add stdlib.
38347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38348         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38349
38350 2008-10-19  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/bcopy (Depends-on): Add strings.
38353         (Include): Specify <strings.h>.
38354
38355 2008-10-19  Bruno Haible  <bruno@clisp.org>
38356
38357         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38358
38359 2008-10-19  Bruno Haible  <bruno@clisp.org>
38360
38361         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38362         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38363         mingw.
38364
38365 2008-10-19  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/atanl.c: Don't include isnanl.h.
38368         * lib/cosl.c: Likewise.
38369         * lib/ldexpl.c: Likewise.
38370         * lib/logl.c: Likewise.
38371         * lib/sinl.c: Likewise.
38372         * lib/sqrtl.c: Likewise.
38373         * lib/tanl.c: Likewise.
38374
38375         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38376         * lib/isnanf.h: Remove file.
38377         * lib/isnand.h: Remove file.
38378         * lib/isnanl.h: Remove file.
38379         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38380         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38381         macros.
38382         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38383         HAVE_ISNANF, don't define it as a C macro.
38384         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38385         HAVE_ISNAND, don't define it as a C macro.
38386         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38387         HAVE_ISNANL, don't define it as a C macro.
38388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38389         HAVE_ISNAN[FDL].
38390         * modules/isnanf (Files): Remove lib/isnanf.h.
38391         (Depends-on): Add math.
38392         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38393         (Include): Specify <math.h> instead of isnanf.h.
38394         * modules/isnand (Files): Remove lib/isnand.h.
38395         (Depends-on): Add math.
38396         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38397         (Include): Specify <math.h> instead of isnand.h.
38398         * modules/isnanl (Files): Remove lib/isnanl.h.
38399         (Depends-on): Add math.
38400         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38401         (Include): Specify <math.h> instead of isnanl.h.
38402         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38403         HAVE_ISNAN[FDL].
38404         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38405         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38406         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38407         * NEWS: Mention the change.
38408
38409 2008-10-18  Bruno Haible  <bruno@clisp.org>
38410
38411         Add getusershell(), setusershell(), endusershell() declarations to
38412         <unistd.h>.
38413         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38414         declarations.
38415         * lib/getusershell.c: Include unistd.h.
38416         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38417         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38418         HAVE_GETUSERSHELL.
38419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38420         and HAVE_GETUSERSHELL.
38421         * modules/getusershell (Depends-on): Add unistd, extensions.
38422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38423         (Include): Specify <unistd.h>.
38424         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38425         HAVE_GETUSERSHELL.
38426
38427 2008-10-18  Bruno Haible  <bruno@clisp.org>
38428
38429         Add a getloadavg() declaration to <stdlib.h>.
38430         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38431         getloadavg declaration.
38432         (getloadavg): New declaration.
38433         * lib/getloadavg.c: Include <stdlib.h> first.
38434         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38435         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38436         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38438         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38439         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38441         (Include): Specify <stdlib.h>.
38442         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38443         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38444
38445 2008-10-18  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/dirchownmod.c: Don't include lchmod.h.
38448
38449         Move the lchmod() declaration to <sys/stat.h>.
38450         * lib/lchmod.h: Remove file.
38451         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38452         (lchmod): New declaration, moved here from lib/lchown.h.
38453         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38454         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38456         and HAVE_LCHMOD.
38457         * modules/lchmod (Files): Remove lib/lchmod.h.
38458         (Depends-on): Add sys_stat, extensions.
38459         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38460         (Include): Specify <sys/stat.h> instead of lchmod.h.
38461         * modules/sys_stat (Depends-on): Add link-warning.
38462         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38463         definition of GL_LINK_WARNING.
38464         * NEWS: Mention the change.
38465
38466 2008-10-18  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/fchdir.c: Don't include dirfd.h.
38469         * lib/fts.c: Likewise.
38470         * lib/getcwd.c: Likewise.
38471         * lib/glob.c: Likewise.
38472
38473         Move the dirfd() declaration to <dirent.h>.
38474         * lib/dirfd.h: Remove file.
38475         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38476         (dirfd): New declaration.
38477         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38478         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38479         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38480         HAVE_DECL_DIRFD.
38481         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38482         HAVE_DECL_DIRFD.
38483         * modules/dirfd (Files): Remove lib/dirfd.h.
38484         (Depends-on): Add dirent, extensions.
38485         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38486         (Include): Specify <dirent.h> instead of dirfd.h.
38487         * modules/dirent (Depends-on): Add link-warning.
38488         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38489         definition of GL_LINK_WARNING.
38490         * NEWS: Mention the change.
38491
38492 2008-10-18  Bruno Haible  <bruno@clisp.org>
38493
38494         Move the euidaccess() declaration to <unistd.h>.
38495         * lib/euidaccess.h: Remove file.
38496         * lib/unistd.in.h (euidaccess): New declaration.
38497         * lib/euidaccess.c: Don't include euidaccess.h.
38498         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38499         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38501         and HAVE_EUIDACCESS.
38502         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38503         (Depends-on): Add unistd.
38504         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38505         (Include): Specify <unistd.h> instead of euidaccess.h.
38506         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38507         HAVE_EUIDACCESS.
38508         * NEWS: Mention the change.
38509
38510 2008-10-18  Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38513
38514         Move the getdomainname() declaration to <unistd.h>.
38515         * lib/getdomainname.h: Remove file.
38516         * lib/unistd.in.h (getdomainname): New declaration.
38517         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38518         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38519         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38520         HAVE_GETDOMAINNAME.
38521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38522         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38523         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38524         (Depends-on): Add unistd, extensions.
38525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38526         (Includes): Specify <unistd.h> instead of getdomainname.h.
38527         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38528         HAVE_GETDOMAINNAME.
38529         * NEWS: Mention the change.
38530
38531 2008-10-18  Bruno Haible  <bruno@clisp.org>
38532
38533         * modules/dirent: New file.
38534         * m4/dirent_h.m4: New file.
38535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38536         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38537         * modules/fchdir (Files): Remove lib/dirent.in.h.
38538         (Depends-on): Add dirent.
38539         (Makefile.am): Move rules to modules/dirent.
38540         * doc/posix-headers/dirent.texi: Mention the new module.
38541
38542 2008-10-18  Bruno Haible  <bruno@clisp.org>
38543
38544         Avoid -Wunused-parameter warnings in public gnulib header files.
38545         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38546         macro.
38547         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38548
38549 2008-10-18  Bruno Haible  <bruno@clisp.org>
38550
38551         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38552         * doc/glibc-functions/error.texi: Mention the module 'error'.
38553         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38554         * doc/glibc-functions/getdomainname.texi: Mention the module
38555         'getdomainname'.
38556         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38557         * doc/glibc-functions/getpagesize.texi: Mention the module
38558         'getpagesize'.
38559         * doc/glibc-functions/getusershell.texi: Mention the module
38560         'getusershell'.
38561         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38562         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38563         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38564         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38565         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38566         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38567         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38568         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38569         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38570         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38571         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38572         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38573         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38574         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38575
38576 2008-10-17  Bruno Haible  <bruno@clisp.org>
38577
38578         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38579         HP-UX and IRIX, use -0.0L.
38580         * tests/test-ceill.c (minus_zero): Likewise.
38581         * tests/test-floorl.c (minus_zero): Likewise.
38582         * tests/test-frexpl.c (minus_zero): Likewise.
38583         * tests/test-isnan.c (minus_zerol): Likewise.
38584         * tests/test-isnanl.h (minus_zero): Likewise.
38585         * tests/test-ldexpl.c (minus_zero): Likewise.
38586         * tests/test-roundl.c (minus_zero): Likewise.
38587         * tests/test-signbit.c (minus_zerol): Likewise.
38588         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38589         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38590         * tests/test-truncl.c (minus_zero): Likewise.
38591         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38592         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38593         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38594         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38595
38596 2008-10-17  Bruno Haible  <bruno@clisp.org>
38597
38598         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38599         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38600         that it gets activated only for gcc >= 3.0.
38601         * lib/dirent.in.h: Likewise.
38602         * lib/errno.in.h: Likewise.
38603         * lib/fcntl.in.h: Likewise.
38604         * lib/float.in.h: Likewise.
38605         * lib/iconv.in.h: Likewise.
38606         * lib/inttypes.in.h: Likewise.
38607         * lib/locale.in.h: Likewise.
38608         * lib/math.in.h: Likewise.
38609         * lib/netdb.in.h: Likewise.
38610         * lib/netinet_in.in.h: Likewise.
38611         * lib/search.in.h: Likewise.
38612         * lib/signal.in.h: Likewise.
38613         * lib/spawn.in.h: Likewise.
38614         * lib/stdarg.in.h: Likewise.
38615         * lib/stdint.in.h: Likewise.
38616         * lib/stdio.in.h: Likewise.
38617         * lib/stdlib.in.h: Likewise.
38618         * lib/string.in.h: Likewise.
38619         * lib/strings.in.h: Likewise.
38620         * lib/sys_file.in.h: Likewise.
38621         * lib/sys_ioctl.in.h: Likewise.
38622         * lib/sys_select.in.h: Likewise.
38623         * lib/sys_socket.in.h: Likewise.
38624         * lib/sys_stat.in.h: Likewise.
38625         * lib/sys_time.in.h: Likewise.
38626         * lib/sysexits.in.h: Likewise.
38627         * lib/time.in.h: Likewise.
38628         * lib/unistd.in.h: Likewise.
38629         * lib/wchar.in.h: Likewise.
38630         * lib/wctype.in.h: Likewise.
38631         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38632
38633 2008-10-17  Jim Meyering  <meyering@redhat.com>
38634
38635         ignore-value: don't depend on inline module
38636         * modules/ignore-value (Depends-on): Remove 'inline'.
38637         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38638         Suggestion from Bruno Haible.
38639
38640 2008-10-17  Bruno Haible  <bruno@clisp.org>
38641
38642         New implementation of condition variables for Win32.
38643         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38644         (gl_linked_waitqueue_t): New type.
38645         (gl_cond_t): Use it.
38646         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38647         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38648         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38649         (glthread_cond_init_func, glthread_cond_wait_func,
38650         glthread_cond_timedwait_func, glthread_cond_signal_func,
38651         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38652         Reimplemented on the basis of gl_linked_waitqueue_t.
38653         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38654         gl_waitqueue_t.
38655         (gl_rwlock_t): Update.
38656         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38657
38658 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38659
38660         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38661         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38662
38663 2008-10-17  Jim Meyering  <meyering@redhat.com>
38664
38665         ignore-value: new module
38666         * modules/ignore-value: New file.
38667         * lib/ignore-value.h: New file.
38668         * MODULES.html.sh (Compiler warning management): New section,
38669         just for this module.  More to come.
38670
38671 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38672
38673         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38674         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38675         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38676
38677 2008-10-16  Jim Meyering  <meyering@redhat.com>
38678
38679         openat-die.c: avoid 'no previous prototype' warning
38680         * lib/openat-die.c: Include "openat.h".
38681         Reported by Reuben Thomas <rrt@sc3d.org>.
38682
38683 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38684
38685         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38686         * lib/netdb.in.h: Fix typo.
38687         Reported by Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/netdb.in.h: Include sys/socket.h for platforms without
38690         netdb.h, to get structures like hostent on MinGW.
38691         * modules/netdb (Depends-on): Add sys_socket.
38692
38693 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38694
38695         * modules/netdb, modules/netdb-tests: New file.
38696         * m4/netdb_h.m4: New file.
38697         * lib/netdb.in.h: Add, currently just an empty file pending
38698         definitions.
38699         * tests/test-netdb.c: New file.
38700         * doc/posix-headers/netdb.texi: Mention that we replace it if
38701         needed.
38702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38703         netdb.
38704
38705 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38706
38707         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38708         with code.
38709
38710 2008-10-13  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/glthread/cond.c (glthread_cond_wait_func,
38713         glthread_cond_timedwait_func): Add a comment.
38714
38715 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38716
38717         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38718         * tests/test-select.c: Likewise,
38719
38720 2008-10-13  Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/glthread/cond.c (glthread_cond_wait_func,
38723         glthread_cond_timedwait_func): Fix variable name.
38724         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38725
38726 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38727
38728         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38729         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38730         struct sockaddr.sa_len.
38731         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38732
38733 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38734
38735         * build-aux/pmccabe2html: Add css and css_url parameters.
38736
38737 2008-10-12  Bruno Haible  <bruno@clisp.org>
38738
38739         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38740         calling aclx_get.
38741         Reported by Rainer Tammer <tammer@tammer.net>.
38742
38743 2008-10-12  Bruno Haible  <bruno@clisp.org>
38744
38745         Use msvcrt aware primitives for creation/termination of Win32 threads.
38746         * lib/glthread/thread.c: Include <process.h>.
38747         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38748         (wrapper_func): Update signature.
38749         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38750
38751 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38752             Bruno Haible  <bruno@clisp.org>
38753
38754         Provide a Win32 implementation of the 'cond' module.
38755         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38756         * lib/glthread/cond.c (glthread_cond_init_func,
38757         glthread_cond_wait_func, glthread_cond_timedwait_func,
38758         glthread_cond_signal_func, glthread_cond_broadcast_func,
38759         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38760         * modules/cond (Dependencies): Add gettimeofday.
38761
38762 2008-10-11  Bruno Haible  <bruno@clisp.org>
38763
38764         Make sleep work on older versions of mingw.
38765         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38766         only whether it exists.
38767         * doc/posix-functions/sleep.texi: Mention the problem with older
38768         versions of mingw.
38769
38770 2008-10-11  Bruno Haible  <bruno@clisp.org>
38771
38772         New module 'shutdown'.
38773         * modules/shutdown: New file.
38774         * lib/sys_socket.in.h (shutdown): New declaration.
38775         * lib/winsock.c (shutdown): New function.
38776         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38777         GNULIB_SHUTDOWN.
38778         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38779         * doc/posix-functions/shutdown.texi: Document the new module.
38780
38781 2008-10-11  Jim Meyering  <meyering@redhat.com>
38782
38783         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38784
38785 2008-10-11  Bruno Haible  <bruno@clisp.org>
38786
38787         New module 'fclose'.
38788         * modules/fclose: New file.
38789         * lib/stdio.in.h (fclose): New declaration.
38790         * lib/fclose.c: New file.
38791         * m4/fclose.m4: New file.
38792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38793         REPLACE_FCLOSE.
38794         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38795         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38796         REPLACE_FCLOSE.
38797         * modules/close (Depends-on): fclose.
38798         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38799
38800 2008-10-11  Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38803         set errno and don't call _close.
38804
38805 2008-10-10  Bruno Haible  <bruno@clisp.org>
38806
38807         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38808         ACL, not afterwards. Fixes test failure on Cygwin.
38809
38810 2008-10-09  Ben Pfaff  <blp@gnu.org>
38811
38812         * build-aux/announce-gen: Fix gnulib version related part of usage
38813         message.  Die with a useful error message if no tarballs are
38814         found.
38815
38816 2008-10-10  Jim Meyering  <meyering@redhat.com>
38817
38818         bootstrap: use git's --depth=N option only if it's supported
38819         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38820         recognize the --depth option.  Reported by Pádraig Brady.
38821
38822 2008-10-09  Bruno Haible  <bruno@clisp.org>
38823
38824         New module 'ioctl'.
38825         * modules/ioctl: New file.
38826         * lib/sys_socket.in.h (ioctl): Remove declaration.
38827         * lib/winsock.c: Include <sys/ioctl.h>.
38828         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38829         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38830         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38831         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38832         * doc/posix-functions/ioctl.texi: Mention the new module.
38833
38834 2008-10-09  Bruno Haible  <bruno@clisp.org>
38835
38836         New module 'sys_ioctl'.
38837         * lib/sys_ioctl.in.h: New file.
38838         * m4/sys_ioctl_h.m4: New file.
38839         * modules/sys_ioctl: New file.
38840         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38841
38842 2008-10-09  Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38845         * lib/winsock.c: Include <stdarg.h>.
38846         (rpl_ioctl): Change to second argument 'int' and then varargs.
38847
38848 2008-10-09  Bruno Haible  <bruno@clisp.org>
38849
38850         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38851         when the sys_socket module is present and the system has <winsock2.h>.
38852
38853 2008-10-09  Bruno Haible  <bruno@clisp.org>
38854
38855         * doc/posix-functions/close.texi: Mention module 'close' instead of
38856         module 'sys_socket'.
38857
38858 2008-10-09  Bruno Haible  <bruno@clisp.org>
38859
38860         * doc/glibc-headers/sys_ioctl.texi: New file.
38861         * doc/gnulib.texi: Include it.
38862
38863 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38864             Bruno Haible  <bruno@clisp.org>
38865
38866         Combine the two replacements of 'close'.
38867         * lib/sys_socket.in.h (close): Define to a reminder to include
38868         <unistd.h>.
38869         (_gl_close_fd_maybe_socket): New declaration.
38870         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38871         * lib/winsock.c (close): Remove undefinition.
38872         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38873         needed for the gnulib module 'close'.
38874         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38875         define to an error symbol or to a warning, if suitable.
38876         * lib/close.c: Include <sys/socket.h>.
38877         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38878         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38879         UNISTD_H_HAVE_WINSOCK2_H.
38880         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38882         UNISTD_H_HAVE_WINSOCK2_H.
38883         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38884         (configure.ac): Set a module indicator.
38885         (Makefile.am): Substitute GNULIB_CLOSE.
38886         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38887         * modules/poll-tests (Depends-on): Add close.
38888         * modules/select-tests (Depends-on): Likewise.
38889
38890 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38891             Bruno Haible  <bruno@clisp.org>
38892
38893         New module 'close'.
38894         * modules/close: New file.
38895         * lib/unistd.in.h (close): Move declaration out of the
38896         FCHDIR_REPLACEMENT scope.
38897         (_gl_unregister_fd): New declaration.
38898         * lib/close.c: New file.
38899         * lib/fchdir.c (rpl_close): Remove function.
38900         * m4/close.m4: New file.
38901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38902         close.
38903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38904         REPLACE_CLOSE.
38905         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38906         REPLACE_CLOSE.
38907         * modules/fchdir (Depends-on): Add close.
38908
38909 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38910             Bruno Haible  <bruno@clisp.org>
38911
38912         * lib/fcntl.in.h (open): Simplify conditionals.
38913         (_gl_register_fd): New declaration.
38914         * lib/fchdir.c (rpl_open): Remove function.
38915         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38916         also.
38917         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38919         open.
38920
38921 2008-10-09  Jim Meyering  <meyering@redhat.com>
38922
38923         GNUmakefile: use the more name-space-friendly "_version"
38924         * top/GNUmakefile (_dummy): Update.
38925         (_version): Rename from "version".
38926
38927 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38928             Bruno Haible  <bruno@clisp.org>
38929
38930         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38931         rpl_close.
38932         (_gl_register_fd): New function, extracted from rpl_open.
38933         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38934         (rpl_open, rpl_opendir): Use _gl_register_fd.
38935
38936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38937
38938         Fix organization of 'open' replacement.
38939         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38940         (gl_FUNC_OPEN): Use it.
38941         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38942
38943 2008-10-08  Bruno Haible  <bruno@clisp.org>
38944
38945         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38946
38947 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38948
38949         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38950         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38951         listen).
38952
38953 2008-10-08  Eric Blake  <ebb9@byu.net>
38954
38955         GNUmakefile: add 'make version' target
38956         * top/GNUmakefile (_curr-ver): Split version update rules...
38957         (version): ...into a target.
38958
38959 2008-10-07  Bruno Haible  <bruno@clisp.org>
38960
38961         Use a more portable replacement expression for -0.0L.
38962         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38963         instead of -0.0L. Fix m4 quotation.
38964
38965         * tests/test-signbit.c: Include <float.h>.
38966         (minus_zero): New variable.
38967         (test_signbitl): Use minus_zero instead of -zero.
38968         * modules/signbit-tests (Depends-on): Add float.
38969
38970         * tests/test-ceill.c: Include <float.h>.
38971         (zero): Remove variable.
38972         (minus_zero): New variable.
38973         (main): Use minus_zero instead of -zero.
38974         * modules/ceill-tests (Depends-on): Add float.
38975
38976         * tests/test-floorl.c: Include <float.h>.
38977         (zero): Remove variable.
38978         (minus_zero): New variable.
38979         (main): Use minus_zero instead of -zero.
38980         * modules/floorl-tests (Depends-on): Add float.
38981
38982         * tests/test-roundl.c: Include <float.h>.
38983         (zero): Remove variable.
38984         (minus_zero): New variable.
38985         (main): Use minus_zero instead of -zero.
38986         * modules/roundl-tests (Depends-on): Add float.
38987
38988         * tests/test-truncl.c: Include <float.h>.
38989         (zero): Remove variable.
38990         (minus_zero): New variable.
38991         (main): Use minus_zero instead of -zero.
38992         * modules/truncl-tests (Depends-on): Add float.
38993
38994         * tests/test-frexpl.c (zero): Remove variable.
38995         (minus_zero): New variable.
38996         (main): Use minus_zero instead of -zero.
38997         * modules/frexpl-tests (Depends-on): Add float.
38998
38999         * tests/test-isnan.c (zerol): Remove variable.
39000         (minus_zerol): New variable.
39001         (test_long_double): Use minus_zerol instead of -zerol.
39002         * modules/isnan-tests (Depends-on): Add float.
39003
39004         * tests/test-isnanl.h (zero): Remove variable.
39005         (minus_zero): New variable.
39006         (main): Use minus_zero instead of -zero.
39007         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39008         * modules/isnanl-tests (Depends-on): Add float.
39009
39010         * tests/test-ldexpl.c (zero): Remove variable.
39011         (minus_zero): New variable.
39012         (main): Use minus_zero instead of -zero.
39013         * modules/ldexpl-tests (Depends-on): Add float.
39014
39015         * tests/test-snprintf-posix.h (zerol): Remove variable.
39016         (minus_zerol): New variable.
39017         (test_function): Use minus_zerol instead of -zerol.
39018         * modules/snprintf-posix-tests (Depends-on): Add float.
39019         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39020
39021         * tests/test-sprintf-posix.h (zerol): Remove variable.
39022         (minus_zerol): New variable.
39023         (test_function): Use minus_zerol instead of -zerol.
39024         * modules/sprintf-posix-tests (Depends-on): Add float.
39025         * modules/vsprintf-posix-tests (Depends-on): Add float.
39026
39027         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39028         (minus_zerol): New variable.
39029         (test_function): Use minus_zerol instead of -zerol.
39030         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39031
39032         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39033         (minus_zerol): New variable.
39034         (test_function): Use minus_zerol instead of -zerol.
39035         * modules/vasprintf-posix-tests (Depends-on): Add float.
39036
39037 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39038
39039         * MODULES.html.sh (Support for building documentation): Mention
39040         pmccabe2html.  Sort entries.
39041
39042         Add pmccabe2html module, from gnupdf.
39043         * build-aux/pmccabe.css: New file.
39044         * build-aux/pmccabe2html: New file.
39045         * m4/pmccabe2html.m4: New file.
39046         * modules/pmccabe2html: New file.
39047
39048 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39049
39050         flock: new module
39051         * MODULES.html.sh: Add to list of modules.
39052         * lib/flock.c: flock implementation for Windows and Unix systems
39053         which have fcntl.
39054         * doc/glibc-functions/flock.texi: Update documentation.
39055         * lib/sys_file.in.h: <sys/file.h> header file.
39056         * m4/flock.m4: M4 macros.
39057         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39058         * modules/flock: flock module.
39059         * modules/flock-tests: flock tests module.
39060         * modules/sys_file: sys/file.h module.
39061         * tests/test-flock.c: test suite for flock.
39062
39063 2008-10-06  Jim Meyering  <meyering@redhat.com>
39064
39065         bootstrap: check for LT_INIT more portably still ;-)
39066         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39067         Spotted by Bruno Haible.
39068
39069 2008-10-06  Eric Blake  <ebb9@byu.net>
39070
39071         test-signbit: avoid tripping Irix cc bug on -0.0L
39072         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39073         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39074         entire testsuite consistent and avoids an Irix 6.2 bug.
39075
39076 2008-10-05  Bruno Haible  <bruno@clisp.org>
39077             Jim Meyering  <jim@meyering.net>
39078
39079         Add an option for ignoring EPIPE during close_stdout.
39080         * lib/closeout.h: Include <stdbool.h>.
39081         (close_stdout_set_ignore_EPIPE): New declaration.
39082         * lib/closeout.c: Include <stdbool.h>.
39083         (ignore_EPIPE): New variable.
39084         (close_stdout_set_ignore_EPIPE): New function.
39085         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39086         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39087         failure.
39088         * modules/closeout (Depends-on): Add stdbool.
39089
39090 2008-10-05  Bruno Haible  <bruno@clisp.org>
39091
39092         * modules/accept: New file.
39093         * modules/bind: New file.
39094         * modules/connect: New file.
39095         * modules/getpeername: New file.
39096         * modules/getsockname: New file.
39097         * modules/getsockopt: New file.
39098         * modules/listen: New file.
39099         * modules/recv: New file.
39100         * modules/recvfrom: New file.
39101         * modules/send: New file.
39102         * modules/sendto: New file.
39103         * modules/setsockopt: New file.
39104         * modules/socket: New file.
39105         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39106         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39107         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39108         the particular module is requested. Add a link warning when the
39109         particular module is not requested.
39110         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39111         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39112         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39113         the particular module is requested.
39114         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39115         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39116         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39117         * modules/sys_socket (Depends-on): Add link-warning.
39118         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39119         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39120         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39121         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39122         GL_LINK_WARNING.
39123         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39124         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39125         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39126         * doc/posix-functions/getpeername.texi: Mention the new module
39127         'getpeername'.
39128         * doc/posix-functions/getsockname.texi: Mention the new module
39129         'getsockname'.
39130         * doc/posix-functions/getsockopt.texi: Mention the new module
39131         'getsockopt'.
39132         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39133         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39134         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39135         * doc/posix-functions/send.texi: Mention the new module 'send'.
39136         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39137         * doc/posix-functions/setsockopt.texi: Mention the new module
39138         'setsockopt'.
39139         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39140         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39141         listen, connect, accept.
39142         * modules/select-tests (Depends-on): Likewise.
39143
39144 2008-10-05  Bruno Haible  <bruno@clisp.org>
39145
39146         * lib/winsock.c (strerror): Remove unused #undef.
39147         (rpl_close): Remove unused local variable.
39148
39149         * modules/sys_socket (Depends-on); Add errno.
39150
39151 2008-10-05  Bruno Haible  <bruno@clisp.org>
39152
39153         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39154         (select): Add a link warning when the 'select' module is not used.
39155         * modules/sys_select (Depends-on): Add link-warning.
39156         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39157         Suggested by Paolo Bonzini.
39158
39159 2008-10-05  Jim Meyering  <meyering@redhat.com>
39160
39161         bootstrap: check for LT_INIT more portably
39162         * build-aux/bootstrap: Avoid using grep -E, since it's not
39163         portable enough.  Suggestion from Bruno Haible.
39164
39165 2008-10-05  Bruno Haible  <bruno@clisp.org>
39166
39167         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39168         as being fixed by gnulib.
39169
39170 2008-10-05  Bruno Haible  <bruno@clisp.org>
39171
39172         * modules/select-tests: New file, mostly copied from
39173         modules/sys_select-tests.
39174         * tests/test-select.c: New file, mostly copied from
39175         tests/test-sys_select.c.
39176         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39177         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39178         (Makefile.am): Remove test_sys_select_LDADD.
39179
39180         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39181         to an undefined symbol, for an error message.
39182         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39183         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39184         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39185         winsock-select.c here.
39186         * modules/sys_select (Files): Remove lib/winsock-select.c.
39187         (Depends-on): Remove alloca.
39188         (Makefile.am): Substitute GNULIB_SELECT.
39189         * modules/select: New file.
39190         * doc/posix-functions/select.texi: Update.
39191
39192 2008-10-05  Bruno Haible  <bruno@clisp.org>
39193
39194         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39195         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39196         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39197         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39198         getdtablesize.
39199         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39200         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39201
39202 2008-10-05  Bruno Haible  <bruno@clisp.org>
39203
39204         * modules/getdtablesize-tests: New file.
39205         * tests/test-getdtablesize.c: New file.
39206
39207         New module 'getdtablesize'.
39208         * lib/unistd.in.h (getdtablesize): New declaration.
39209         * lib/getdtablesize.c: New file.
39210         * m4/getdtablesize.m4: New file.
39211         * modules/getdtablesize: New file.
39212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39213         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39214         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39215         HAVE_GETDTABLESIZE.
39216         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39217
39218 2008-10-05  Bruno Haible  <bruno@clisp.org>
39219
39220         * modules/sched (Makefile.am): Fix typo.
39221         Reported by Simon Josefsson.
39222
39223 2008-10-05  Jim Meyering  <meyering@redhat.com>
39224
39225         bootstrap: check for LT_INIT, too
39226         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39227         are deprecated.  Suggestion from Ralf Wildenhues.
39228
39229 2008-10-05  Bruno Haible  <bruno@clisp.org>
39230
39231         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39232         overriding them by ours.
39233         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39234
39235 2008-10-05  Jim Meyering  <meyering@redhat.com>
39236
39237         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39238         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39239         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39240
39241 2008-10-04  Bruno Haible  <bruno@clisp.org>
39242
39243         * modules/dup2 (License): Change to LGPLv2+.
39244         * modules/sleep (License): Likewise.
39245         * modules/perror (License): Likewise.
39246         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39247         Blake.
39248         * modules/signal (License): Likewise.
39249         * modules/sigprocmask (License): Likewise.
39250         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39251         Meyering.
39252
39253 2008-10-04  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39256         Reported by Rainer Tammer <tammer@tammer.net>.
39257
39258 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39259             Bruno Haible  <bruno@clisp.org>
39260
39261         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39262         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39263         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39264
39265 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39266
39267         filevercmp: new module
39268         * lib/filevercmp.h: New function filevercmp comparing version strings.
39269         * lib/filevercmp.c: Implementation of filevercmp function.
39270         * modules/filevercmp: Module metadata.
39271         * tests/test-filevercmp.c: Unit test for new module.
39272         * modules/filevercmp-tests: Unit test metadata.
39273         * MODULES.html.sh: Add filevercmp module.
39274
39275 2008-10-03  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/c-ctype.h: Add comment.
39278         Reported by Jim Meyering.
39279
39280 2008-10-02  Bruno Haible  <bruno@clisp.org>
39281
39282         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39283
39284 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39285
39286         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39287         name of bootstrap.conf accordingly.
39288
39289 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39290
39291         * build-aux/bootstrap: Install git-merge-changelog configuration
39292         items into .gitconfig if needed.
39293
39294 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39295
39296         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39297         git repository, and initialize/update it accordingly.
39298
39299 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39300
39301         * modules/fsync-tests: New file.
39302         * tests/test-fsync.c: New file.
39303
39304         New module 'fsync'.
39305         * lib/fsync.c: New file.
39306         * m4/fsync.m4: New file.
39307         * modules/fsync: New file.
39308         * lib/unistd.in.h (fsync): New declaration.
39309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39310         GNULIB_FSYNC and HAVE_FSYNC.
39311         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39312         * MODULES.html.sh (posix_functions): Add fsync.
39313         * doc/posix-functions/fsync.texi: Mention the new module.
39314
39315 2008-10-02  Jim Meyering  <meyering@redhat.com>
39316
39317         fts.c: sync with similar code from coreutils' remove.c
39318         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39319         Guard also with "#if defined __linux__", since for now at least,
39320         this code is Linux-kernel-specific.
39321
39322 2008-10-02  Jim Meyering  <meyering@redhat.com>
39323
39324         fts: bug fixes
39325         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39326         Include <sys/vfs.h>, not <sys/statfs.h>.
39327
39328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39329         Include <sys/vfs.h>, not <sys/statfs.h>.
39330
39331 2008-10-01  Bruno Haible  <bruno@clisp.org>
39332
39333         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39334         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39335         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39336         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39337         * doc/posix-functions/posix_spawnp.texi: Likewise.
39338         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39339         whether posix_spawn actually works.
39340         * m4/pipe.m4 (gl_PIPE): Likewise.
39341         * modules/execute (Files): Add m4/posix_spawn.m4.
39342         * modules/pipe (Files): Add m4/posix_spawn.m4.
39343         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39344
39345 2008-10-01  Jim Meyering  <meyering@redhat.com>
39346
39347         remove trailing spaces
39348         * NEWS: Likewise.
39349         * lib/poll.c (poll): Likewise.
39350         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39351         * lib/winsock.c (rpl_close): Likewise.
39352         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39353         * modules/yield: Likewise.
39354         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39355         * tests/test-sys_select.c (connect_to_socket): Likewise.
39356
39357         fts.c: adjust a new interface to be more generally useful
39358         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39359         (fts_build): Adjust caller.
39360
39361 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39362
39363         * modules/cond-tests: New file.
39364         * tests/test-cond.c: New file.
39365
39366 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39367             Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/cond (Dependencies): Add errno, time.
39370         * lib/glthread/cond.h: Include <time.h>.
39371         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39372         across platforms.
39373
39374 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39375             Bruno Haible  <bruno@clisp.org>
39376
39377         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39378
39379 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39380             Bruno Haible  <bruno@clisp.org>
39381
39382         * modules/tls-tests (Depends-on): Add thread, yield.
39383         (configure.ac): Remove all checks.
39384         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39385         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39386         gl_thread_self): Remove definitions. Include glthread/thread.h and
39387         glthread/yield.h instead.
39388         (test_tls): Pass an additional NULL argument to gl_thread_join.
39389
39390 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39391             Bruno Haible  <bruno@clisp.org>
39392
39393         * modules/lock-tests (Depends-on): Add thread, yield.
39394         (configure.ac): Remove all checks.
39395         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39396         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39397         gl_thread_self): Remove definitions. Include glthread/thread.h and
39398         glthread/yield.h instead.
39399         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39400         additional NULL argument to gl_thread_join.
39401
39402 2008-09-30  Bruno Haible  <bruno@clisp.org>
39403
39404         Fix the Win32 implementation of the 'thread' module.
39405         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39406         pointer type.
39407         (gl_thread_self): Invoke gl_thread_self_func.
39408         (gl_thread_self_func): New declaration.
39409         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39410         (do_init_self_key, init_self_key): New functions.
39411         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39412         Remove some fields.
39413         (running_threads, running_lock): Remove variables.
39414         (get_current_thread_handle): New function.
39415         (gl_thread_self_func, wrapper_func, glthread_create_func,
39416         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39417         simplified.
39418
39419 2008-09-30  Bruno Haible  <bruno@clisp.org>
39420
39421         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39422         files.
39423
39424 2008-09-30  Jim Meyering  <meyering@redhat.com>
39425
39426         fts.m4: correct the test for statfs.f_type
39427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39428         when checking for statfs.f_type.
39429
39430 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39431
39432         tests: avoid some compiler warnings
39433         * tests/test-memchr.c (main): Pass NULL indirectly.
39434         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39435
39436 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39437
39438         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39439         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39440         exactly specified dayshifts.
39441         (dayshift): New rule.
39442         (rel): Add dayshift.
39443         (relative_time_table) [tomorrow, yesterday, today, now]:
39444         Use tDAY_SHIFT in place of tDAY_UNIT.
39445         * tests/test-getdate.c: Add tests for now-disallowed countable
39446         dayshifts, e.g., "4 yesterday ago".
39447
39448 2008-09-29  Bruno Haible  <bruno@clisp.org>
39449
39450         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39451         * tests/test-posix_spawn1.in.sh: Renamed from
39452         tests/test-posix_spawn.in.sh.
39453         * tests/test-posix_spawn2.c: New file.
39454         * tests/test-posix_spawn2.in.sh: New file.
39455         * modules/posix_spawnp-tests (Files): Update.
39456         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39457
39458 2008-09-29  Bruno Haible  <bruno@clisp.org>
39459
39460         Propagate effects of putenv/setenv/unsetenv to child processes.
39461         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39462         * lib/pipe.c (create_pipe): Likewise.
39463
39464 2008-09-29  Bruno Haible  <bruno@clisp.org>
39465
39466         Enable use of shell scripts as executables in mingw.
39467         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39468         run the program as a shell script.
39469         * lib/pipe.c (create_pipe): Likewise.
39470         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39471         resulting array.
39472
39473 2008-09-29  Eric Blake  <ebb9@byu.net>
39474
39475         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39476
39477 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39478
39479         * doc/posix-functions/accept.texi: Update mingw problems.
39480         * doc/posix-functions/bind.texi: Update mingw problems.
39481         * doc/posix-functions/close.texi: Update mingw problems.
39482         * doc/posix-functions/connect.texi: Update mingw problems.
39483         * doc/posix-functions/getpeername.texi: Update mingw problems.
39484         * doc/posix-functions/getsockname.texi: Update mingw problems.
39485         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39486         * doc/posix-functions/ioctl.texi: Update mingw problems.
39487         * doc/posix-functions/listen.texi: Update mingw problems.
39488         * doc/posix-functions/recv.texi: Update mingw problems.
39489         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39490         * doc/posix-functions/select.texi: Update mingw problems.
39491         * doc/posix-functions/send.texi: Update mingw problems.
39492         * doc/posix-functions/sendto.texi: Update mingw problems.
39493         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39494         * doc/posix-functions/socket.texi: Update mingw problems.
39495
39496 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39497             Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/sys_select.in.h: Include sys/time.h.
39500         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39501         * modules/sys_select: Depend on sys_time.
39502         * tests/test-sys_select.c: Test that sys/select.h defines struct
39503         timeval fully.
39504
39505 2008-09-29  Bruno Haible  <bruno@clisp.org>
39506
39507         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39508         * lib/sys_select.in.h: Likewise.
39509
39510 2008-09-29  Bruno Haible  <bruno@clisp.org>
39511
39512         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39513
39514 2008-09-29  Bruno Haible  <bruno@clisp.org>
39515
39516         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39517         Set LIBSOCKET instead of augmenting LIBS.
39518         * modules/sockets (Link): New section.
39519         * modules/sockets-tests (test_sockets_LDADD): New variable.
39520         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39521         * modules/poll-tests (test_poll_LDADD): New variable.
39522         * NEWS: Document the change.
39523
39524 2008-09-29  Bruno Haible  <bruno@clisp.org>
39525
39526         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39527         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39528         ARPA_INET_H directly.
39529         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39530
39531 2008-09-28  Bruno Haible  <bruno@clisp.org>
39532
39533         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39534         from gl_HEADER_SYS_SOCKET.
39535         (gl_HEADER_SYS_SOCKET): Invoke it.
39536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39537
39538 2008-09-28  Bruno Haible  <bruno@clisp.org>
39539
39540         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39541         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39542         Needed on OSF/1 4.0.
39543
39544 2008-09-28  Bruno Haible  <bruno@clisp.org>
39545
39546         Override open more carefully.
39547         * lib/open.c (orig_open): New function.
39548         (rpl_open): Use orig_open instead of open.
39549         * lib/fcntl.in.h: Add special invocation convention.
39550         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39551         (gl_FUNC_OPEN): Invoke it.
39552
39553         Override freopen more carefully.
39554         * lib/freopen.c (orig_freopen): New function.
39555         (rpl_freopen): Use orig_freopen instead of freopen.
39556         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39557         (gl_FUNC_FREOPEN): Invoke it.
39558
39559         Override fopen more carefully.
39560         * lib/fopen.c (orig_fopen): New function.
39561         (rpl_fopen): Use orig_fopen instead of fopen.
39562         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39563         (gl_FUNC_FOPEN): Invoke it.
39564         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39565
39566 2008-09-28  Bruno Haible  <bruno@clisp.org>
39567
39568         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39569         SIGPIPE.
39570
39571 2008-09-28  Bruno Haible  <bruno@clisp.org>
39572
39573         * tests/test-sigaction.c (handler, main): Disable the check whether
39574         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39575         glibc systems with LinuxThreads.
39576
39577 2008-09-28  Bruno Haible  <bruno@clisp.org>
39578
39579         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39580
39581         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39582         with AIX xlc.
39583         * lib/fcntl.in.h (open): Likewise.
39584         Reported by Rainer Tammer <tammer@tammer.net>.
39585
39586 2008-09-28  Bruno Haible  <bruno@clisp.org>
39587
39588         * modules/posix_spawnp-tests: New file.
39589         * tests/test-posix_spawn.c: New file.
39590         * tests/test-posix_spawn.in.sh: New file.
39591
39592         New module 'posix_spawnp'.
39593         * modules/posix_spawnp: New file.
39594         * lib/spawnp.c: New file, from GNU libc with modifications.
39595         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39596
39597         New module 'posix_spawn'.
39598         * modules/posix_spawn: New file.
39599         * lib/spawn.c: New file, from GNU libc with modifications.
39600         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39601
39602         New module 'posix_spawnattr_destroy'.
39603         * modules/posix_spawnattr_destroy: New file.
39604         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39605         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39606         module.
39607
39608         New module 'posix_spawnattr_setsigmask'.
39609         * modules/posix_spawnattr_setsigmask: New file.
39610         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39611         modifications.
39612         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39613         new module.
39614
39615         New module 'posix_spawnattr_getsigmask'.
39616         * modules/posix_spawnattr_getsigmask: New file.
39617         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39618         modifications.
39619         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39620         new module.
39621
39622         New module 'posix_spawnattr_setsigdefault'.
39623         * modules/posix_spawnattr_setsigdefault: New file.
39624         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39625         modifications.
39626         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39627         new module.
39628
39629         New module 'posix_spawnattr_getsigdefault'.
39630         * modules/posix_spawnattr_getsigdefault: New file.
39631         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39632         modifications.
39633         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39634         new module.
39635
39636         New module 'posix_spawnattr_setschedpolicy'.
39637         * modules/posix_spawnattr_setschedpolicy: New file.
39638         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39639         modifications.
39640         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39641         new module.
39642
39643         New module 'posix_spawnattr_getschedpolicy'.
39644         * modules/posix_spawnattr_getschedpolicy: New file.
39645         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39646         modifications.
39647         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39648         new module.
39649
39650         New module 'posix_spawnattr_setschedparam'.
39651         * modules/posix_spawnattr_setschedparam: New file.
39652         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39653         modifications.
39654         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39655         new module.
39656
39657         New module 'posix_spawnattr_getschedparam'.
39658         * modules/posix_spawnattr_getschedparam: New file.
39659         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39660         modifications.
39661         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39662         new module.
39663
39664         New module 'posix_spawnattr_setpgroup'.
39665         * modules/posix_spawnattr_setpgroup: New file.
39666         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39667         modifications.
39668         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39669         module.
39670
39671         New module 'posix_spawnattr_getpgroup'.
39672         * modules/posix_spawnattr_getpgroup: New file.
39673         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39674         modifications.
39675         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39676         module.
39677
39678         New module 'posix_spawnattr_setflags'.
39679         * modules/posix_spawnattr_setflags: New file.
39680         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39681         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39682         module.
39683
39684         New module 'posix_spawnattr_getflags'.
39685         * modules/posix_spawnattr_getflags: New file.
39686         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39687         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39688         module.
39689
39690         New module 'posix_spawnattr_init'.
39691         * modules/posix_spawnattr_init: New file.
39692         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39693         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39694         module.
39695
39696         New module 'posix_spawn_file_actions_destroy'.
39697         * modules/posix_spawn_file_actions_destroy: New file.
39698         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39699         modifications.
39700         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39701         the new module.
39702
39703         New module 'posix_spawn_file_actions_addopen'.
39704         * modules/posix_spawn_file_actions_addopen: New file.
39705         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39706         modifications.
39707         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39708         the new module.
39709
39710         New module 'posix_spawn_file_actions_adddup2'.
39711         * modules/posix_spawn_file_actions_adddup2: New file.
39712         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39713         modifications.
39714         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39715         the new module.
39716
39717         New module 'posix_spawn_file_actions_addclose'.
39718         * modules/posix_spawn_file_actions_addclose: New file.
39719         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39720         modifications.
39721         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39722         the new module.
39723
39724         New module 'posix_spawn_file_actions_init'.
39725         * modules/posix_spawn_file_actions_init: New file.
39726         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39727         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39728         new module.
39729
39730         New module 'posix_spawn-internal'.
39731         * modules/posix_spawn-internal: New file.
39732         * lib/spawn_int.h: New file, from GNU libc with modifications.
39733         * lib/spawni.c: New file, from GNU libc with modifications.
39734         * m4/posix_spawn.m4: New file.
39735
39736         New module 'spawn'.
39737         * modules/spawn: New file.
39738         * lib/spawn.in.h: New file, from GNU libc with modifications.
39739         * m4/spawn_h.m4: New file.
39740         * doc/posix-headers/spawn.texi: Mention the new module.
39741
39742 2008-09-28  Bruno Haible  <bruno@clisp.org>
39743
39744         * modules/sched-tests: New file.
39745         * tests/test-sched.c: New file.
39746
39747         New module 'sched'.
39748         * modules/sched: New file.
39749         * lib/sched.in.h: New file.
39750         * m4/sched_h.m4: New file.
39751         * doc/posix-headers/sched.texi: Mention the new module.
39752
39753 2008-09-27  Eric Blake  <ebb9@byu.net>
39754
39755         Fix previous patch, and tweak references to $0.
39756         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39757         (func_version, func_gnulib_dir): Don't call this program
39758         gnulib-tool.
39759         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39760         with using $0 in function.
39761         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39762         (func_fatal_error): Reuse the name the user invoked us with.
39763
39764 2008-09-27  Bruno Haible  <bruno@clisp.org>
39765
39766         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39767         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39768         (gl_ICONV_H): Not here.
39769         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39770         instead of assigning ICONV_H directly.
39771
39772         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39774         WCHAR_H directly.
39775
39776 2008-09-27  Bruno Haible  <bruno@clisp.org>
39777
39778         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39779         * modules/arpa_inet (Depends-on): Add link-warning.
39780         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39781         * modules/unistd (Makefile.am): Likewise.
39782
39783 2008-09-26  Bruno Haible  <bruno@clisp.org>
39784
39785         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39786         variables.
39787         (func_version): Essentially copied from gnulib-tool.
39788         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39789         func_readlink): Copied from gnulib-tool.
39790
39791 2008-09-26  Bruno Haible  <bruno@clisp.org>
39792
39793         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39794         invoking git-version-gen.
39795
39796 2008-09-26  Bruno Haible  <bruno@clisp.org>
39797
39798         * posix-modules: Update to directory names changed on 2008-01-19.
39799         Remove commas in output before splitting into words. No more need to
39800         avoid 'ftruncate' since 2007-02-19.
39801
39802 2008-09-26  Bruno Haible  <bruno@clisp.org>
39803
39804         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39805
39806 2008-09-26  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39809         * modules/fwriteerror (Depends-on): Add errno.
39810
39811 2008-09-26  Bruno Haible  <bruno@clisp.org>
39812
39813         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39814         * tests/test-vc-list-files-cvs.sh: Likewise.
39815
39816 2008-09-26  Bruno Haible  <bruno@clisp.org>
39817
39818         * doc/posix-headers/sys_resource.texi: Reorder items.
39819
39820 2008-09-26  Jim Meyering  <meyering@redhat.com>
39821
39822         fts: tweak inode comparison function
39823         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39824         inode numbers, as documented.
39825
39826         fts: sort dirent entries on inode number before traversing
39827         This avoids a quadratic, seek-related performance penalty when
39828         operating on a directory containing many entries (measurable at 10k;
39829         3.5 hours at 2 million entries with a cold cache) on certain types
39830         of file systems, including ext3 and ext4, but not tmpfs.
39831         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39832         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39833         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39834         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39835         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39836         (fts_build): Set the stat.st_ino member from D_INO.
39837         If it is likely to be useful, sort dirent entries on inode number.
39838
39839         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39840         and the struct statfs.f_type member.
39841         * modules/fts (Depends-on): Add d-ino.
39842
39843 2008-09-26  Bruno Haible  <bruno@clisp.org>
39844
39845         * modules/sigpipe-die (Depends-on): Add sigpipe.
39846
39847         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39848         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39849         and GNULIB_STDIO_H_SIGPIPE are set.
39850         * lib/stdio-write.c: New file.
39851         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39852         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39853         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39854         REPLACE_STDIO_WRITE_FUNCS.
39855         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39856         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39857         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39858         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39859         * modules/stdio (Files): Add lib/stdio-write.c.
39860         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39861         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39862         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39863         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39864         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39865         REPLACE_FPRINTF_POSIX.
39866         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39867         REPLACE_PRINTF_POSIX.
39868         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39869         REPLACE_VFPRINTF_POSIX.
39870         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39871         REPLACE_VPRINTF_POSIX.
39872         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39873         SIGPIPE issue.
39874         * doc/posix-functions/fputc.texi: Likewise.
39875         * doc/posix-functions/fputs.texi: Likewise.
39876         * doc/posix-functions/fwrite.texi: Likewise.
39877         * doc/posix-functions/printf.texi: Likewise.
39878         * doc/posix-functions/putc.texi: Likewise.
39879         * doc/posix-functions/putchar.texi: Likewise.
39880         * doc/posix-functions/puts.texi: Likewise.
39881         * doc/posix-functions/vfprintf.texi: Likewise.
39882         * doc/posix-functions/vprintf.texi: Likewise.
39883
39884         * modules/safe-write (Depends-on): Add write.
39885
39886         * modules/sigpipe-tests: New file.
39887         * tests/test-sigpipe.c: New file.
39888         * tests/test-sigpipe.sh: New file.
39889
39890         * modules/write: New file.
39891         * lib/unistd.in.h: Include <sys/types.h>.
39892         (write): New declaration.
39893         * lib/write.c: New file.
39894         * m4/write.m4: New file.
39895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39896         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39897         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39898         GNULIB_WRITE, REPLACE_WRITE.
39899         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39900         and the SIGPIPE issue.
39901
39902         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39903         (raise): New declaration.
39904         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39905         (ext_signal): New function.
39906         (rpl_raise): New function.
39907         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39908         GNULIB_SIGNAL_H_SIGPIPE.
39909         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39910         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39911
39912         * modules/sigpipe: New file.
39913         * m4/sigpipe.m4: New file.
39914
39915 2008-09-25  Derek Price  <derek@ximbiot.com>
39916             Bruno Haible  <bruno@clisp.org>
39917
39918         * gnulib-tool (func_import): Report all license incompatibilities, not
39919         just the first one.
39920
39921 2008-09-25  Bruno Haible  <bruno@clisp.org>
39922
39923         * gnulib-tool (func_import): When computing the edits, consider not
39924         only the Makefile.ams that exist but also those that will be generated.
39925
39926 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39927
39928         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39929         fixes gnulib-tool --test warning about duplicate dependency.
39930
39931 2008-09-25  Bruno Haible  <bruno@clisp.org>
39932
39933         * gnulib-tool: Don't ask the user to perform edits in the generated
39934         Makefile.ams.
39935         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39936         apply to the Makefile.am being generated.
39937         (func_emit_tests_Makefile_am): Execute edits that apply to the
39938         Makefile.am being generated.
39939         (func_import): Setup list of Makefile.am edits before emitting the
39940         Makefile.ams, not at the end.
39941         (func_create_testdir): Update.
39942         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39943
39944 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39945
39946         * gnulib-tool (func_import): Store the --tests-base option in the
39947         comment in gnulib-cache.m4.
39948
39949 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39950
39951         * NEWS: Document increased portability that sys_select now provides.
39952
39953         * lib/sys_select.in.h: Install select wrapper.
39954         * lib/sys_socket.in.h: Use more descriptive name when there is no
39955         select wrapper.
39956         * lib/winsock-select.c: New.
39957         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39958         Require gl_HEADER_SYS_SOCKET.
39959         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39960         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39961         * tests/test-sys_select.c: Add functional tests.
39962
39963 2008-09-24  Eric Blake  <ebb9@byu.net>
39964
39965         open, fopen: close fd leak in last patch
39966         * lib/open.c (rpl_open): Close fd before returning error.
39967         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39968         * doc/posix-functions/open.texi (open): Document that Irix also
39969         has the bug.
39970         * doc/posix-functions/fopen.texi (fopen): Likewise.
39971         Reported by Paolo Bonzini.
39972
39973 2008-09-24  Bruno Haible  <bruno@clisp.org>
39974
39975         Ensure that a filename ending in a slash cannot be used to access a
39976         non-directory.
39977         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39978         to check whether it's really a directory.
39979         * lib/fopen.c: Include fcntl.h, unistd.h.
39980         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39981         and fdopen().
39982         * modules/fopen (Depends-on): Add unistd.
39983         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39984         * tests/test-fopen.c (main): Likewise.
39985         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39986         * doc/posix-functions/fopen.texi: Likewise.
39987         Reported by Eric Blake.
39988
39989 2008-09-23  Eric Blake  <ebb9@byu.net>
39990
39991         c-stack: avoid compiler optimizations when provoking overflow
39992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39993         recursion harder to optimize, to ensure a stack overflow occurs.
39994         * tests/test-c-stack.c (recurse): Likewise.
39995         Borrowed from libsigsegv.
39996
39997         c-stack: work around Irix sigaltstack bug
39998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39999         whether sigaltstack uses wrong end of stack_t (copied in part from
40000         libsigsegv).
40001         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40002         Irix bug, without requiring an over-allocation.
40003         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40004         bug.
40005
40006         fopen: document mingw bug on directories
40007         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40008         not allowing a stream visiting a directory, even though reading
40009         from such a stream is not portable.
40010
40011 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40012
40013         * lib/poll.c: Rewrite.
40014         * modules/poll: Depend on alloca.
40015
40016 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40017
40018         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40019         instead define prototypes for a full set of wrappers.  Ensure
40020         that Cygwin does not use the compatibility code, which is only
40021         for MinGW.
40022         * lib/winsock.c: New.
40023         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40024         * modules/sys_socket: Add lib/winsock.c.
40025
40026         * modules/poll-tests: Add errno and perror.
40027         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40028
40029 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40030
40031         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40032
40033 2008-09-23  Bruno Haible  <bruno@clisp.org>
40034
40035         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40036         * doc/glibc-functions/*: Likewise.
40037
40038 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40039
40040         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40041         success.
40042
40043 2008-09-22  Eric Blake  <ebb9@byu.net>
40044             Bruno Haible  <bruno@clisp.org>
40045
40046         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40047         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40048         supply %A but mishandle pseudo-NaN.
40049         Reported by Simon Josefsson.
40050
40051 2008-09-21  Bruno Haible  <bruno@clisp.org>
40052
40053         * tests/test-lock.c (main): Tweak skip message.
40054         * tests/test-tls.c (main): Likewise.
40055
40056 2008-09-21  Bruno Haible  <bruno@clisp.org>
40057
40058         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40059         whether 'struct sigaction' has sa_sigaction here...
40060         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40061         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40062
40063 2008-09-21  Bruno Haible  <bruno@clisp.org>
40064
40065         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40066         section.
40067         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40068         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40069         the new section.
40070         (Support for obsolete systems lacking POSIX:2001): New section.
40071         (String handling <string.h>): Move strdup to the new section.
40072         Suggested by Simon Josefsson and Paolo Bonzini.
40073
40074 2008-09-21  Bruno Haible  <bruno@clisp.org>
40075
40076         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40077         exponents in %e and %g results on 'long double'. Needed for mingw's
40078         improved *printf functions.
40079         * tests/test-vasprintf-posix.c (test_function): Likewise.
40080         * tests/test-snprintf-posix.h (test_function): Likewise.
40081         * tests/test-sprintf-posix.h (test_function): Likewise.
40082         Reported by Eric Blake.
40083
40084 2008-09-21  Bruno Haible  <bruno@clisp.org>
40085
40086         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40087         * tests/test-sprintf-posix.h (test_function): Likewise.
40088
40089 2008-09-21  Bruno Haible  <bruno@clisp.org>
40090
40091         * modules/getpass (Depends-on): Add strdup-posix.
40092
40093         New module 'strdup-posix'.
40094         * modules/strdup-posix: New file.
40095         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40096         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40098         REPLACE_STRDUP.
40099         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40100         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40102         strdup-posix.
40103
40104         * modules/strdup (Depends-on): Remove malloc-posix.
40105
40106 2008-09-20  Bruno Haible  <bruno@clisp.org>
40107
40108         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40109         Wildenhues.
40110
40111 2008-09-20  Bruno Haible  <bruno@clisp.org>
40112
40113         Ensure that wint_t gets defined on IRIX 5.3.
40114         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40115         * lib/wctype.in.h (wint_t): Likewise.
40116         (__wctype_wint_t): Remove type.
40117         (isw*): Use wint_t instead of __wctype_wint_t.
40118         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40119         * modules/wchar (Files): Add m4/wint_t.m4.
40120         (Makefile.am): Substitute HAVE_WINT_T.
40121         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40122         * tests/test-wctype.c: Check that wint_t is defined.
40123         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40124         * doc/posix-headers/wctype.texi: Likewise.
40125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40126
40127 2008-09-18  Bruno Haible  <bruno@clisp.org>
40128
40129         * gnulib-tool (func_exit): Update comment.
40130
40131 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40132
40133         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40134         assumes strdup exists and does not depend on strdup to return
40135         ENOMEM on out of memory conditions.
40136
40137 2008-09-18  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40140         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40141         digits for the exponent.
40142
40143 2008-09-18  Jim Meyering  <meyering@redhat.com>
40144             Bruno Haible  <bruno@clisp.org>
40145
40146         * lib/vasnprintf.c (decimal_point_char): Define also if
40147         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40148
40149 2008-09-16  Bruno Haible  <bruno@clisp.org>
40150         and Eric Blake  <ebb9@byu.net>
40151
40152         vasnprintf: support Irix 5.3
40153         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40154         that mishandle long double infinity.
40155         Reported by Tom G. Christensen.
40156
40157 2008-09-16  Bruno Haible  <bruno@clisp.org>
40158
40159         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40160         Solaris 9.
40161         * doc/glibc-functions/alphasort.texi: Likewise.
40162         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40163
40164 2008-09-16  Jim Meyering  <meyering@redhat.com>
40165
40166         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40167         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40168         a umask modification leak out of a subshell.  Otherwise, the
40169         opensolaris /bin/sh would be accepted and thus cause unwarranted
40170         failures in the coreutils test suite.
40171
40172 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40173
40174         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40175         to succeed.
40176
40177 2008-09-16  Jim Meyering  <meyering@redhat.com>
40178
40179         avoid spurious test failure when library is built without ACL support
40180         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40181         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40182         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40183         * tests/test-copy-acl.sh: Likewise.
40184
40185 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40186
40187         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40188         based on character occurrence counts.
40189
40190 2008-09-15  Eric Blake  <ebb9@byu.net>
40191
40192         tests: avoid some compiler warnings
40193         * tests/test-memchr.c (main): Pass NULL indirectly.
40194         * tests/test-closein.c (main): Avoid unused variable.
40195
40196 2008-09-15  Bruno Haible  <bruno@clisp.org>
40197
40198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40199         are missing on OpenBSD 4.0 individually.
40200         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40201
40202 2008-09-15  Bruno Haible  <bruno@clisp.org>
40203
40204         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40205         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40206         * doc/posix-functions/perror.texi: Likewise.
40207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40208         is missing.
40209         Reported by Eric Blake.
40210
40211         * lib/errno.in.h: Use replacement values >= 2000.
40212         Reported by Eric Blake.
40213
40214 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40215
40216         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40217         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40218         limit.
40219         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40220         compareseq was aborted.
40221
40222 2008-09-14  Bruno Haible  <bruno@clisp.org>
40223
40224         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40225         yvec_edit_count.
40226         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40227         (fstrcmp_bounded): Simplify result computation accordingly.
40228
40229 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40230
40231         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40232         (fstrcmp): Define in terms of fstrcmp_bounded.
40233         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40234         lower_bound argument.
40235         Return quickly if the result is certainly < lower_bound.
40236         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40237
40238 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40239
40240         * lib/diffseq.h (EARLY_ABORT): New macro.
40241         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40242         evaluates to true.
40243
40244 2008-09-14  Bruno Haible  <bruno@clisp.org>
40245
40246         * modules/perror-tests: New file.
40247         * tests/test-perror.sh: New file.
40248         * tests/test-perror.c: New file.
40249
40250         New module 'perror'.
40251         * lib/stdio.in.h (perror): New declaration.
40252         * lib/perror.c: New file.
40253         * m4/perror.m4: New file.
40254         * modules/perror: New file.
40255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40256         * doc/posix-functions/perror.texi: Mention the perror module.
40257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40258         REPLACE_PERROR.
40259         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40260         REPLACE_PERROR.
40261
40262 2008-09-14  Bruno Haible  <bruno@clisp.org>
40263
40264         * modules/stdio (Makefile.am): Reorder to match the order in
40265         lib/stdio.in.h.
40266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40267
40268 2008-09-13  Bruno Haible  <bruno@clisp.org>
40269
40270         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40271
40272 2008-09-13  Bruno Haible  <bruno@clisp.org>
40273
40274         Extend strerror to cover the added errno values.
40275         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40276         (rpl_strerror): Provide error messages for the added errno values and
40277         for the WSA* values.
40278         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40279         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40280         strerror.
40281         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40282         * modules/strerror (Depends-on): Add errno.
40283         * doc/posix-functions/strerror.texi: Document the change.
40284         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40285         and EOVERFLOW.
40286
40287 2008-09-13  Bruno Haible  <bruno@clisp.org>
40288
40289         * modules/EOVERFLOW: Remove file.
40290         * m4/eoverflow.m4: Remove file.
40291         * modules/EOVERFLOW-tests: Remove file.
40292         * tests/test-EOVERFLOW.c: Remove file.
40293         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40294         * modules/ftell (Depends-on): Likewise.
40295         * modules/getdelim (Depends-on): Likewise.
40296         * modules/getugroups (Depends-on): Likewise.
40297         * modules/poll (Depends-on): Likewise.
40298         * modules/snprintf (Depends-on): Likewise.
40299         * modules/sprintf-posix (Depends-on): Likewise.
40300         * modules/vasnprintf (Depends-on): Likewise.
40301         * modules/vasprintf (Depends-on): Likewise.
40302         * modules/vfprintf-posix (Depends-on): Likewise.
40303         * modules/vsnprintf (Depends-on): Likewise.
40304         * modules/vsprintf-posix (Depends-on): Likewise.
40305         * modules/xvasprintf (Depends-on): Likewise.
40306         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40307         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40308         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40309         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40310         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40311         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40312         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40313         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40314         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40315         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40316         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40317         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40318         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40319         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40320         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40321         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40322         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40323         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40324         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40325         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40326         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40327         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40328         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40329         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40330         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40331         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40332         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40333         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40334         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40335         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40336         * MODULES.html.sh: Remove EOVERFLOW.
40337         * NEWS: Mention the change.
40338
40339 2008-09-13  Bruno Haible  <bruno@clisp.org>
40340
40341         * modules/errno-tests: New file.
40342         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40343
40344         * lib/errno.in.h: New file.
40345         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40346         * modules/errno: New file.
40347         * doc/posix-headers/errno.texi: Update documentation.
40348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40349
40350 2008-09-13  Bruno Haible  <bruno@clisp.org>
40351
40352         * tests/test-poll.c: Use #if for native Windows, rather than testing
40353         __MSVCRT__.
40354
40355 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40356             Bruno Haible  <bruno@clisp.org>
40357
40358         * lib/glob.c: Don't include <pwd.h> on native Windows.
40359         (WINDOWS32): New macro.
40360         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40361
40362 2008-09-13  Bruno Haible  <bruno@clisp.org>
40363
40364         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40365         (ETIMEDOUT): Remove macro.
40366         (glthread_cond_timedwait_multithreaded): New declaration.
40367         (glthread_cond_timedwait): Use it.
40368         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40369         (glthread_cond_timedwait_multithreaded): New function.
40370
40371 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40372
40373         * modules/poll-tests: Do not check for io.h.
40374         * tests/test-poll.c: Check for __MSVCRT__ instead.
40375
40376 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40377
40378         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40379         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40380         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40381
40382 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40383
40384         * modules/poll-tests: New.
40385         * tests/test-poll.c: New.
40386
40387 2008-09-12  Eric Blake  <ebb9@byu.net>
40388
40389         frexp: test for NetBSD failure on -0.0
40390         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40391         not all, bugs from NetBSD 3.0 have been fixed.
40392         * doc/posix-functions/frexp.texi (frexp): Document bug.
40393         Reported by Thomas Klausner.
40394
40395         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40396         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40397         literal -0.0.
40398         Reported by Jonathan C. Patschke <jp@centtech.com>.
40399
40400 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40401
40402         * lib/glthread/cond.h: Use dummy implementation also if
40403         USE_WIN32_THREADS.
40404
40405 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40406
40407         * modules/fnmatch-posix (License): Change to LGPLv2+.
40408         * modules/fnmatch-gnu (License): Likewise.
40409
40410 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40411
40412         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40413
40414 2008-09-11  Jim Meyering  <meyering@redhat.com>
40415
40416         * users.txt: Add gtk-vnc.
40417
40418 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40419
40420         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40421         rotate amounts.
40422
40423         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40424         required for 16-bit and 8-bit rotates.
40425         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40426         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40427         UINT8_MAX instead of hard-coded constants.
40428         Suggested by Paul Eggert.
40429
40430 2008-09-07  Bruno Haible  <bruno@clisp.org>
40431
40432         * tests/test-striconveh.c (main): Check behaviour when converting from
40433         UTF-7.
40434
40435         Make striconveh work better with stateful encodings.
40436         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40437         that iconv does not increment the inptr when returning -1/EINVAL.
40438
40439 2008-09-07  Bruno Haible  <bruno@clisp.org>
40440
40441         * build-aux/config.rpath: Update according to libtool-2.2.6.
40442         * build-aux/config.libpath: Likewise.
40443
40444 2008-09-06  Bruno Haible  <bruno@clisp.org>
40445
40446         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40447         * lib/freadptr.c (freadptr): Likewise.
40448         * lib/freadseek.c (freadptrinc): Likewise.
40449         Reported by Simon Josefsson.
40450
40451 2008-09-06  Bruno Haible  <bruno@clisp.org>
40452
40453         * modules/freadptr (License): Change to LGPLv2+.
40454         * modules/freadseek (License): Likewise.
40455         Suggested by Eric Blake.
40456
40457         * modules/memchr2 (License): Change to LGPLv2+.
40458         Approved by Eric Blake.
40459
40460 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40461             Bruno Haible  <bruno@clisp.org>
40462
40463         Make gnulib-tool work with native 'sed' on AIX.
40464         * gnulib-tool (sed_noop): New variable.
40465         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40466         func_add_or_update, func_create_testdir): Use it to initialize sed
40467         script variables.
40468         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40469
40470 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40471             Bruno Haible  <bruno@clisp.org>
40472
40473         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40474         also works after #include directives.
40475
40476 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40477
40478         getdate.y: reject an out-of-range timezone value
40479         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40480         the range [-24...+24].  When specified with only one or two digits,
40481         * tests/test-getdate.c: Tests for the fix.
40482         * doc/getdate.texi: Document this change.
40483
40484 2008-09-03  Bruno Haible  <bruno@clisp.org>
40485
40486         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40487
40488 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40489
40490         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40491         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40492         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40493         Blake <ebb9@byu.net>.
40494
40495         * tests/test-bitrotate.c: Add more test vectors.
40496
40497 2008-09-02  Eric Blake  <ebb9@byu.net>
40498
40499         vasnprintf-posix: handle large precision via %.*d
40500         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40501         when handling it ourselves.
40502         * tests/test-vasnprintf-posix.c (test_function): Add test.
40503         * tests/test-snprintf-posix.h (test_function): Likewise.
40504         * tests/test-sprintf-posix.h (test_function): Likewise.
40505         * tests/test-vasprintf-posix.c (test_function): Likewise.
40506         Reported by Alain Guibert.
40507
40508 2008-09-01  Eric Blake  <ebb9@byu.net>
40509
40510         c-stack: make configure-time check more robust
40511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40512         successful sigaction call.
40513         Reported by Tom G. Christensen.
40514
40515 2008-09-01  Bruno Haible  <bruno@clisp.org>
40516
40517         New module 'findprog-lgpl'.
40518         * modules/findprog-lgpl: New file.
40519         * lib/findprog-lgpl.c: New file.
40520         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40521         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40522         to decide whether to use strdup or xstrdup, concatenated_filename or
40523         xconcatenated_filename.
40524
40525 2008-09-01  Bruno Haible  <bruno@clisp.org>
40526
40527         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40528         'xconcat-filename' (GPL).
40529         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40530         (License): Change to LGPLv2+.
40531         * modules/xconcat-filename: New file.
40532         * lib/concat-filename.h (concatenated_filename): Change specification.
40533         (xconcatenated_filename): New declaration.
40534         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40535         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40536         memory situations.
40537         * lib/xconcat-filename.c: New file.
40538         * NEWS: Mention the change.
40539         * lib/findprog.c: Include concat-filename.h, not filename.h.
40540         (find_in_path): Use xconcatenated_filename instead of
40541         concatenated_filename.
40542         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40543         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40544         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40545         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40546         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40547         instead of concatenated_filename.
40548         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40549         (execute_java_class): Use xconcatenated_filename instead of
40550         concatenated_filename.
40551         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40552         * modules/javacomp (Depends-on): Likewise.
40553         * modules/javaexec (Depends-on): Likewise.
40554
40555 2008-09-01  Bruno Haible  <bruno@clisp.org>
40556
40557         Split module 'filename' into 'filename' and 'concat-filename'.
40558         * modules/filename: Keep only lib/filename.h.
40559         (License): Change to LGPLv2+.
40560         * modules/concat-filename: New file, extracted from modules/filename.
40561         * lib/filename.h (concatenated_filename): Remove declaration.
40562         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40563         * lib/concat-filename.c: Include concat-filename.h.
40564         * NEWS: Mention the change.
40565
40566 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40567
40568         * lib/bitrotate.h (rotl8, rotr8): Add.
40569
40570         * modules/bitrotate (configure.ac): Need
40571         AC_REQUIRE([AC_C_INLINE]).
40572         (Description): Mention stdint.h.  Reported by Bruno Haible
40573         <bruno@clisp.org>.
40574
40575         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40576         Paolo Bonzini <bonzini@gnu.org>.
40577
40578 2008-08-31  Bruno Haible  <bruno@clisp.org>
40579
40580         Assume Solaris specific bi-arch conventions on Solaris systems.
40581         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40582         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40584         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40585         like acl_libdirstem.
40586         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40587         acl_libdirstem.
40588         * NEWS: Mention the change.
40589         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40590
40591 2008-08-31  Jim Meyering  <meyering@redhat.com>
40592
40593         * lib/strftime.h: Add comments describing the two added arguments.
40594
40595         remove duplicate #include directives
40596         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40597         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40598
40599 2008-08-31  Bruno Haible  <bruno@clisp.org>
40600
40601         New module 'sigpipe-die'.
40602         * modules/sigpipe-die: New file.
40603         * lib/sigpipe-die.h: New file.
40604         * lib/sigpipe-die.c: New file.
40605         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40606
40607 2008-08-31  Bruno Haible  <bruno@clisp.org>
40608
40609         Don't override previously installed signal handlers.
40610         * lib/fatal-signal.c (saved_sigactions): New variable.
40611         (uninstall_handlers): Reset the signal to the saved handler, not
40612         to SIG_DFL (except when ignored).
40613         (install_handlers): Save the previous handlers.
40614
40615 2008-08-30  Bruno Haible  <bruno@clisp.org>
40616
40617         * gnulib-tool (func_reset_sigpipe): New function.
40618         (func_get_automake_snippet, func_modules_transitive_closure,
40619         func_import): Invoke it before a join command that reads from stdin,
40620         to avoid "echo: write error: Broken pipe" error messages on stderr.
40621         Reported by Sam Steingold <sds@gnu.org>.
40622
40623 2008-08-30  Bruno Haible  <bruno@clisp.org>
40624
40625         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40626         Code copied from m4/open.m4.
40627         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40628         access and the filename ends in a slash. Code copied from lib/open.c.
40629         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40630         * tests/test-fopen.c (main): Check against bug with trailing slash.
40631
40632 2008-08-29  Bruno Haible  <bruno@clisp.org>
40633
40634         Avoid some "gcc -pedantic" warnings.
40635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40636         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40637         * lib/dirent.in.h: Likewise.
40638         * lib/fcntl.in.h: Likewise.
40639         * lib/float.in.h: Likewise.
40640         * lib/iconv.in.h: Likewise.
40641         * lib/inttypes.in.h: Likewise.
40642         * lib/locale.in.h: Likewise.
40643         * lib/math.in.h: Likewise.
40644         * lib/netinet_in.in.h: Likewise.
40645         * lib/search.in.h: Likewise.
40646         * lib/signal.in.h: Likewise.
40647         * lib/stdarg.in.h: Likewise.
40648         * lib/stdint.in.h: Likewise.
40649         * lib/stdio.in.h: Likewise.
40650         * lib/stdlib.in.h: Likewise.
40651         * lib/string.in.h: Likewise.
40652         * lib/strings.in.h: Likewise.
40653         * lib/sys_select.in.h: Likewise.
40654         * lib/sys_socket.in.h: Likewise.
40655         * lib/sys_stat.in.h: Likewise.
40656         * lib/sys_time.in.h: Likewise.
40657         * lib/sysexits.in.h: Likewise.
40658         * lib/time.in.h: Likewise.
40659         * lib/unistd.in.h: Likewise.
40660         * lib/wchar.in.h: Likewise.
40661         * lib/wctype.in.h: Likewise.
40662         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40663         * modules/fchdir (Makefile.am): Likewise.
40664         * modules/fcntl (Makefile.am): Likewise.
40665         * modules/float (Makefile.am): Likewise.
40666         * modules/iconv_open (Makefile.am): Likewise.
40667         * modules/inttypes (Makefile.am): Likewise.
40668         * modules/locale (Makefile.am): Likewise.
40669         * modules/math (Makefile.am): Likewise.
40670         * modules/netinet_in (Makefile.am): Likewise.
40671         * modules/search (Makefile.am): Likewise.
40672         * modules/signal (Makefile.am): Likewise.
40673         * modules/stdarg (Makefile.am): Likewise.
40674         * modules/stdint (Makefile.am): Likewise.
40675         * modules/stdio (Makefile.am): Likewise.
40676         * modules/stdlib (Makefile.am): Likewise.
40677         * modules/string (Makefile.am): Likewise.
40678         * modules/strings (Makefile.am): Likewise.
40679         * modules/sys_select (Makefile.am): Likewise.
40680         * modules/sys_socket (Makefile.am): Likewise.
40681         * modules/sys_stat (Makefile.am): Likewise.
40682         * modules/sys_time (Makefile.am): Likewise.
40683         * modules/sysexits (Makefile.am): Likewise.
40684         * modules/time (Makefile.am): Likewise.
40685         * modules/unistd (Makefile.am): Likewise.
40686         * modules/wchar (Makefile.am): Likewise.
40687         * modules/wctype (Makefile.am): Likewise.
40688         Reported by Reuben Thomas <rrt@sc3d.org>.
40689
40690 2008-08-29  Bruno Haible  <bruno@clisp.org>
40691
40692         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40693         any more.
40694
40695 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40696
40697         * MODULES.html.sh (Misc): Add bitrotate.
40698
40699         * modules/bitrotate: New file.
40700
40701         * lib/bitrotate.h: New file.
40702
40703         * modules/bitrotate-tests: New file.
40704
40705         * tests/test-bitrotate.c: New file.
40706
40707         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40708         on the bitrotate module.
40709
40710         * lib/arctwo.c: Use new bitrotate module.
40711
40712 2008-08-29  Jim Meyering  <meyering@redhat.com>
40713
40714         bootstrap: merge changes from coreutils
40715         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40716         of copied files.  Remove a kludge, now that this is fixed.
40717         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40718         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40719         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40720
40721 2008-08-29  Bruno Haible  <bruno@clisp.org>
40722
40723         * MODULES.html.sh: Remove --cvs-urls option.
40724
40725 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40726
40727         maint.mk: adjust to file name change
40728         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40729
40730 2008-08-28  Jim Meyering  <meyering@redhat.com>
40731
40732         * modules/getndelim2 (License): Relicense to LGPLv2+.
40733         Approved by Richard Stallman for the version of 1995, and by
40734         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40735
40736 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40737
40738         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40739         dummy if one is not available.  Do not touch them if
40740         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40741         (getc_maybe_unlocked): New.
40742         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40743
40744 2008-08-26  Eric Blake  <ebb9@byu.net>
40745
40746         doc/INSTALL: resync from autoconf
40747         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40748         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40749         moving...
40750         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40751         * INSTALL: Regenerate.
40752         * INSTALL.ISO: New file.
40753         * INSTALL.UTF-8: Likewise.
40754
40755 2008-08-26  Jim Meyering  <meyering@redhat.com>
40756
40757         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40758         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40759         these definitions conditional, so that they may be overridden, too.
40760
40761 2008-08-26  Bruno Haible  <bruno@clisp.org>
40762
40763         Generate INSTALL file variants with prettier quotes.
40764         * doc/Makefile (INSTALL_PRELUDE): New macro.
40765         (INSTALL): Use it.
40766         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40767
40768 2008-08-26  Bruno Haible  <bruno@clisp.org>
40769
40770         Run makeinfo in an English locale.
40771         * doc/Makefile (MAKEINFO): New variable.
40772
40773 2008-08-26  Bruno Haible  <bruno@clisp.org>
40774
40775         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40776         Suggested by Eric Blake.
40777
40778 2008-08-25  Bruno Haible  <bruno@clisp.org>
40779
40780         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40781
40782 2008-08-25  Eric Blake  <ebb9@byu.net>
40783
40784         c-stack: test that stack overflow can be caught
40785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40786         that platform allows handling stack overflow; at least OS/2 EMX
40787         has sigaltstack, but crashes before transferring control to
40788         handler on stack overflow.
40789         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40790         check for HAVE_STACK_OVERFLOW_HANDLING.
40791         Reported by Elbert Pol.
40792
40793 2008-08-25  Bruno Haible  <bruno@clisp.org>
40794
40795         * doc/posix-functions/strftime.texi: Fix description of strftime
40796         module.
40797
40798 2008-08-24  Bruno Haible  <bruno@clisp.org>
40799
40800         * tests/uniwidth/test-uc_width2.c: New file.
40801         * tests/uniwidth/test-uc_width2.sh: New file.
40802         * modules/uniwidth/width-tests (Files): Add the new files.
40803         (TESTS): Add uniwidth/test-uc_width2.sh.
40804         (TESTS_ENVIRONMENT): New variable.
40805         (check_PROGRAMS): Add test-uc_width2.
40806         (test_uc_width2_SOURCES): New variable.
40807
40808         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40809         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40810         not 0x00AB.
40811         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40812
40813 2008-08-22  Eric Blake  <ebb9@byu.net>
40814
40815         test-lock, test-tls: mention why a test is skipped
40816         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40817         skipped.
40818         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40819
40820         count-one-bits: relax license
40821         * modules/count-one-bits (License): Relicense to LGPLv2+.
40822         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40823
40824 2008-08-22  Andreas Schwab  <schwab@suse.de>
40825
40826         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40827         Remove spurious space in assignment.
40828
40829 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40830
40831         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40832         Paul Eggert <eggert@CS.UCLA.EDU>.
40833
40834 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40835
40836         * modules/gettext: Add m4/threadlib.m4.
40837
40838 2008-08-19  Eric Blake  <ebb9@byu.net>
40839
40840         test-c-stack: fix compilation failure on FreeBSD 5.0
40841         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40842         headers before <sys/resource.h>.
40843         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40844         the bug.
40845         Reported by Nelson H. F. Beebe.
40846
40847         strverscmp: migrate from "strverscmp.h" to <string.h>
40848         * modules/string (Makefile.am): Add new hooks.
40849         * modules/strverscmp (Files): Remove strverscmp.h.
40850         (Depends-on): Add string.
40851         (configure.ac): Add indicator.
40852         (Include): Mention new header.
40853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40854         defaults.
40855         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40856         results.
40857         * lib/strverscmp.h: Delete.
40858         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40859         * tests/test-strverscmp.c (includes): Adjust client.
40860         * lib/check-version.c (includes): Likewise.
40861         * NEWS: Document the change.
40862
40863         strverscmp: add unit test
40864         * modules/strverscmp-tests: New file.
40865         * tests/test-strverscmp.c: Likewise.
40866
40867 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40868
40869         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40870         regarding Windows crypto stuff, from Mono.
40871
40872 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40873
40874         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40875         if present, for intel RND.  Return error on failures.
40876
40877 2008-08-18  Ben Pfaff  <blp@gnu.org>
40878
40879         gitlog-to-changelog: give better diagnostic for failed pipe-open
40880         * build-aux/gitlog-to-changelog: Improve error message: suggest
40881         that the version of Git may be too old.
40882
40883 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40884
40885         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40886         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40887
40888 2008-08-18  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40891         pthread_in_use().
40892
40893 2008-08-18  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/glthread/threadlib.c: Include <pthread.h>.
40896
40897 2008-08-18  Bruno Haible  <bruno@clisp.org>
40898
40899         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40900         glthread_recursive_lock_* macros.
40901         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40902         Fix syntax error.
40903
40904 2008-08-18  Bruno Haible  <bruno@clisp.org>
40905
40906         * lib/glthread/thread.c: Avoid forcing a context switch right after
40907         thread creation.
40908
40909 2008-08-17  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40912         * lib/glthread/thread.h: Provide Win32 specific implementation.
40913         * modules/thread (Files): Add lib/glthread/thread.c.
40914         (Depends-on): Add lock.
40915         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40916
40917 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40918
40919         New module 'yield'.
40920         * modules/yield: New file.
40921         * lib/glthread/yield.h: New file.
40922         * m4/yield.m4: New file.
40923         * MODULES.html.sh (Multithreading): Add yield.
40924
40925 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40926
40927         New module 'thread'.
40928         * modules/thread: New file.
40929         * lib/glthread/thread.h: New file.
40930         * m4/thread.m4: New file.
40931         * MODULES.html.sh (Multithreading): Add thread.
40932
40933 2008-08-17  Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/glthread/lock.h: Include <stdlib.h> always.
40936         * lib/glthread/tls.h: Likewise.
40937         * lib/glthread/cond.h: Likewise.
40938
40939 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40940
40941         New module 'cond'.
40942         * modules/cond: New file.
40943         * lib/glthread/cond.h: New file.
40944         * lib/glthread/cond.c: New file.
40945         * m4/cond.m4: New file.
40946         * MODULES.html.sh (Multithreading): Add cond.
40947
40948 2008-08-16  Eric Blake  <ebb9@byu.net>
40949
40950         c-stack: fix regression on Irix 5.3 from 2008-06-21
40951         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40952         sa_sigaction...
40953         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40954         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40956         * modules/signal (Makefile.am): Use the value.
40957         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40958         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40959         * doc/posix-headers/signal.texi (signal.h): Document this
40960         portability issue.
40961         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40962         Reported by Tom G. Christensen.
40963
40964 2008-08-17  Bruno Haible  <bruno@clisp.org>
40965
40966         New module 'threadlib'.
40967         * modules/threadlib: New file.
40968         * lib/glthread/threadlib.c: New file, extracted from
40969         lib/glthread/lock.c.
40970         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40971         functions.
40972         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40973         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40974         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40975         macros.
40976         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40977         (gl_DISABLE_THREADS): Remove macro.
40978         * modules/lock (Files): Remove build-aux/config.rpath.
40979         (Depends-on): Remove havelib. Add threadlib.
40980         (configure.ac-early): Remove section.
40981         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40982         * modules/tls (Depends-on): Remove lock. Add threadlib.
40983         (Link): New section, copied from threadlib.
40984         * MODULES.html.sh (Multithreading): Add threadlib.
40985
40986 2008-08-14  Bruno Haible  <bruno@clisp.org>
40987
40988         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40989         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40990         glthread_rwlock_unlock, glthread_rwlock_destroy,
40991         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40992         glthread_recursive_lock_destroy): Define as macros always.
40993         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40994         glthread_lock_lock.
40995         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40996         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40997         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40998         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40999         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41000         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41001         (glthread_recursive_lock_lock_func): Renamed from
41002         glthread_recursive_lock_lock.
41003         (glthread_recursive_lock_unlock_func): Renamed from
41004         glthread_recursive_lock_unlock.
41005         (glthread_recursive_lock_destroy_func): Renamed from
41006         glthread_recursive_lock_destroy.
41007
41008 2008-08-14  Bruno Haible  <bruno@clisp.org>
41009
41010         * lib/glthread/lock.h: Renamed from lib/lock.h.
41011         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41012         * lib/glthread/tls.h: Renamed from lib/tls.h.
41013         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41014         * lib/fstrcmp.c: Update includes.
41015         * lib/strsignal.c: Update includes.
41016         * modules/lock (Files, Makefile.am): Update.
41017         (Include): Change to "glthread/lock.h".
41018         * modules/tls (Files, Makefile.am): Update.
41019         (Include): Change to "glthread/tls.h".
41020         * tests/test-lock.c: Update includes.
41021         * tests/test-tls.c: Update includes.
41022         * NEWS: Mention the renamed header files.
41023
41024 2008-08-11  Jim Meyering  <meyering@redhat.com>
41025
41026         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41027
41028 2008-08-11  Eric Blake  <ebb9@byu.net>
41029
41030         test-c-stack: avoid C99-ism
41031         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41032         before statement.
41033         Reported by Alain Guibert.
41034
41035 2008-08-10  Jim Meyering  <meyering@redhat.com>
41036
41037         ensure that return value of uinttostr et al are not ignored
41038         * lib/inttostr.h (__GNUC_PREREQ): Define.
41039         (__attribute_warn_unused_result__): Define.
41040         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41041
41042 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41043
41044         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41045         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41046
41047 2008-08-07  Jim Meyering  <meyering@redhat.com>
41048
41049         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41050
41051         * modules/mkstemp (License): Relicense under LGPLv2+.
41052         * modules/tempname (License): Likewise.
41053
41054 2008-08-06  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/poll.c (poll): Further micro-optimization.
41057
41058 2008-08-06  Jim Meyering  <meyering@redhat.com>
41059
41060         inet_pton.c: use locale-independent tolower
41061         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41062         (inet_pton6): Use c_tolower rather than tolower.
41063         * modules/inet_pton (Depends-on): Add c-ctype.
41064
41065 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41066
41067         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41068         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41069
41070 2008-08-06  Jim Meyering  <meyering@redhat.com>
41071
41072         * modules/inet_pton (License): Relicense under LGPLv2+.
41073
41074 2008-08-03  Bruno Haible  <bruno@clisp.org>
41075
41076         Additional non-aborting API for lock and tls.
41077         * lib/lock.h: Include <errno.h>.
41078         (glthread_lock_init): New macro/function.
41079         (gl_lock_init): Define as wrapper around glthread_lock_init.
41080         (glthread_lock_lock): New macro/function.
41081         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41082         (glthread_lock_unlock): New macro/function.
41083         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41084         (glthread_lock_destroy): New macro/function.
41085         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41086         (glthread_rwlock_init): New macro/function.
41087         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41088         (glthread_rwlock_rdlock): New macro/function.
41089         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41090         (glthread_rwlock_wrlock): New macro/function.
41091         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41092         (glthread_rwlock_unlock): New macro/function.
41093         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41094         (glthread_rwlock_destroy): New macro/function.
41095         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41096         (glthread_recursive_lock_init): New macro/function.
41097         (gl_recursive_lock_init): Define as wrapper around
41098         glthread_recursive_lock_init.
41099         (glthread_recursive_lock_lock): New macro/function.
41100         (gl_recursive_lock_lock): Define as wrapper around
41101         glthread_recursive_lock_lock.
41102         (glthread_recursive_lock_unlock): New macro/function.
41103         (gl_recursive_lock_unlock): Define as wrapper around
41104         glthread_recursive_lock_unlock.
41105         (glthread_recursive_lock_destroy): New macro/function.
41106         (gl_recursive_lock_destroy): Define as wrapper around
41107         glthread_recursive_lock_destroy.
41108         (glthread_once): New macro/function.
41109         (gl_once): Define as wrapper around glthread_once.
41110         Update function declarations.
41111         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41112         glthread_rwlock_init. Return error code.
41113         (glthread_rwlock_rdlock_multithreaded): Renamed from
41114         glthread_rwlock_rdlock. Return error code.
41115         (glthread_rwlock_wrlock_multithreaded): Renamed from
41116         glthread_rwlock_wrlock. Return error code.
41117         (glthread_rwlock_unlock_multithreaded): Renamed from
41118         glthread_rwlock_unlock. Return error code.
41119         (glthread_rwlock_destroy_multithreaded): Renamed from
41120         glthread_rwlock_destroy. Return error code.
41121         (glthread_recursive_lock_init_multithreaded): Renamed from
41122         glthread_recursive_lock_init. Return error code.
41123         (glthread_recursive_lock_lock_multithreaded): Renamed from
41124         glthread_recursive_lock_lock. Return error code.
41125         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41126         glthread_recursive_lock_unlock. Return error code.
41127         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41128         glthread_recursive_lock_destroy. Return error code.
41129         (glthread_once_call): Make static.
41130         (glthread_once_multithreaded): Renamed from glthread_once.
41131         * lib/tls.h: Include <errno.h>.
41132         (glthread_tls_key_init): New macro/function.
41133         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41134         (glthread_tls_set): New macro/function.
41135         (gl_tls_set): Define as wrapper around glthread_tls_set.
41136         (glthread_tls_key_destroy): New macro/function.
41137         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41138         Update function declarations.
41139         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41140         glthread_tls_get.
41141         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41142
41143 2008-08-04  Eric Blake  <ebb9@byu.net>
41144
41145         gnumakefile: use space, not TAB, outside of targets
41146         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41147
41148 2008-08-02  Jim Meyering  <meyering@redhat.com>
41149
41150         getdate.y: avoid locale-dependent date parsing failure
41151         In Turkish locales, getdate would fail to recognize keywords
41152         containing a lowercase "i".  The solution is not to rely on
41153         locale-sensitive case-conversion.
41154         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41155         (lookup_word): Use c_toupper in place of toupper.
41156         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41157         Reported by Vefa Bicakci <bicave@superonline.com> in
41158         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41159         * modules/getdate (Depends-on): Add c-ctype.
41160
41161 2008-08-02  Bruno Haible  <bruno@clisp.org>
41162
41163         * gnulib-tool (func_import): When updating or creating a .gitignore
41164         file, prepend each added line with a slash, and ignore leading slashes
41165         from the existing lines.
41166         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41167
41168 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41169
41170         Portability fix for GNU make 3.79.1.
41171         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41172         versions do not understand.
41173
41174 2008-08-01  Bruno Haible  <bruno@clisp.org>
41175
41176         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41177         * tests/test-isnanf.h (zero): New variable.
41178         (main): Avoid literal -0.0f.
41179         * tests/test-isnand.h (zero): New variable.
41180         (main): Avoid literal -0.0.
41181         * tests/test-isnanl.h (zero): New variable.
41182         (main): Avoid literal -0.0L.
41183         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41184         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41185         -0.0, -0.0L.
41186         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41187         (test_signbitd): Avoid literal -0.0.
41188         (test_signbitl): Avoid literal -0.0L.
41189         * tests/test-ceilf1.c (zero): New variable.
41190         (main): Avoid literal -0.0f.
41191         * tests/test-ceill.c (zero): New variable.
41192         (main): Avoid literal -0.0L.
41193         * tests/test-floorf1.c (zero): New variable.
41194         (main): Avoid literal -0.0f.
41195         * tests/test-floorl.c (zero): New variable.
41196         (main): Avoid literal -0.0L.
41197         * tests/test-roundf1.c (zero): New variable.
41198         (main): Avoid literal -0.0f.
41199         * tests/test-round1.c (zero): New variable.
41200         (main): Avoid literal -0.0.
41201         * tests/test-roundl.c (zero): New variable.
41202         (main): Avoid literal -0.0L.
41203         * tests/test-truncf1.c (zero): New variable.
41204         (main): Avoid literal -0.0f.
41205         * tests/test-trunc1.c (zero): New variable.
41206         (main): Avoid literal -0.0.
41207         * tests/test-truncl.c (zero): New variable.
41208         (main): Avoid literal -0.0L.
41209         * tests/test-frexp.c (zero): New variable.
41210         (main): Avoid literal -0.0.
41211         * tests/test-frexpl.c (zero): New variable.
41212         (main): Avoid literal -0.0L.
41213         * tests/test-ldexpl.c (zero): New variable.
41214         (main): Avoid literal -0.0L.
41215         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41216         (zerod, zerol): New variables.
41217         (test_function): Avoid literals -0.0, -0.0L.
41218         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41219         (zerod, zerol): New variables.
41220         (test_function): Avoid literals -0.0, -0.0L.
41221         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41222         (zerod, zerol): New variables.
41223         (test_function): Avoid literals -0.0, -0.0L.
41224         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41225         (zerod, zerol): New variables.
41226         (test_function): Avoid literals -0.0, -0.0L.
41227         * tests/test-strtod.c (zero): New variable.
41228         (main): Avoid literal -0.0.
41229         Reported by Jonathan C. Patschke <jp@centtech.com>.
41230
41231 2008-07-31  Jim Meyering  <meyering@redhat.com>
41232
41233         sha256.h: correct definition of SHA224_DIGEST_SIZE
41234         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41235         Reported by Paulie Pena IV <paulie4@gmail.com>.
41236         Define as 224 / 8, rather than as a literal.
41237         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41238         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41239         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41240
41241 2008-07-31  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41244         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41245         Reported by Jonathan Patschke <jp@centtech.com>.
41246
41247 2008-07-31  Bruno Haible  <bruno@clisp.org>
41248
41249         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41250         Reported by Paolo Bonzini <bonzini@gnu.org>.
41251
41252 2008-07-30  Eric Blake  <ebb9@byu.net>
41253
41254         test-strtod: allow compilation without -lm
41255         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41256         Reported by Dennis Clarke <blastwave@gmail.com>.
41257
41258 2008-07-28  Jim Meyering  <meyering@redhat.com>
41259
41260         bootstrap: work also when there are no .po files in po/
41261         * build-aux/bootstrap (update_po_files): Complete the change
41262         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41263
41264 2008-07-27  Jim Meyering  <meyering@redhat.com>
41265
41266         * users.txt: Add zile.
41267
41268 2008-07-26  Ben Pfaff  <blp@gnu.org>
41269
41270         Add missing dependencies on new m4/exponent[fdl].m4 files.
41271         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41272         * modules/isnand-nolibm: Add m4/exponentd.m4.
41273         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41274         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41275         m4/isnan[fdl].m4, because the macros actually used moved.
41276         Reported by Jim Meyering.
41277
41278 2008-07-14  Ben Pfaff  <blp@gnu.org>
41279
41280         Add isinf module.
41281         * lib/isinf.c: New file.
41282         * lib/math.in.h: Define isinf macro if we have decided to replace
41283         it.
41284         * m4/isinf.m4: New file.
41285         * m4/math_h.m4: Initialize and substitute variables for isinf
41286         module.
41287         * modules/isinf: New file.
41288         * modules/isinf-tests: New file.
41289         * modules/math: Add substitutions for new module.
41290         * tests/test-isinf.c: New file.
41291         * doc/posix-functions/isinf.texi: Mention new module.
41292         * MODULES.html.sh: Mention new module.
41293
41294 2008-07-14  Ben Pfaff  <blp@gnu.org>
41295
41296         Factor out some macros for use by additional modules.
41297         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41298         exponentf.m4.
41299         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41300         exponentd.m4.
41301         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41302         file exponentl.m4.
41303         * m4/exponentf.m4: New file.
41304         * m4/exponentd.m4: New file.
41305         * m4/exponentl.m4: New file.
41306         * modules/isnanf: Use new file m4/exponentf.m4.
41307         * modules/isnand: Use new file m4/exponentd.m4.
41308         * modules/isnanl: Use new file m4/exponentl.m4.
41309
41310 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41311
41312         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41313         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41314         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41315         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41316
41317         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41318         readlink on platforms without PATH_MAX.
41319
41320 2008-07-21  Eric Blake  <ebb9@byu.net>
41321
41322         Warn, not fail, on stale version.
41323         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41324
41325         Don't allow installation with stale devel version number.
41326         * top/GNUmakefile (_is-install-target): New macro.
41327         (_curr-ver): Forbid installation with stale version number.
41328
41329 2008-07-20  Bruno Haible  <bruno@clisp.org>
41330
41331         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41332         TESTS_ENVIRONMENT.
41333         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41334
41335 2008-07-20  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/c-stack.h (c_stack_action): Add documentation.
41338         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41339
41340 2008-07-20  Bruno Haible  <bruno@clisp.org>
41341
41342         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41343         * modules/readlink (License): Likewise.
41344
41345 2008-07-17  Eric Blake  <ebb9@byu.net>
41346
41347         * modules/c-stack (Link): Fix typo.
41348
41349         Make c-stack use libsigsegv, when available.
41350         * modules/c-stack (Depends-on): Add libsigsegv.
41351         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41352         needed.
41353         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41354         (segv_handler, overflow_handler, c_stack_action)
41355         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41356         implementation when libsigsegv is available, but only when using
41357         the library is necessary.
41358         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41359         comment, explaining why XSI check fails on Linux.
41360         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41361         * tests/test-c-stack2.sh: Tweak skip message.
41362         * NEWS: Document new link-time requirements.
41363
41364 2008-07-16  Eric Blake  <ebb9@byu.net>
41365
41366         c-stack: Expose false positives when not using libsigsegv.
41367         * modules/c-stack-tests (Files): Expand test.
41368         * tests/test-c-stack.c (main): Add means to conditionally trigger
41369         non-overflow SIGSEGV.
41370         * tests/test-c-stack2.sh: New file.
41371
41372 2008-07-14  Bruno Haible  <bruno@clisp.org>
41373
41374         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41375         Reported by Eric Blake.
41376
41377 2008-07-14  Sam Steingold  <sds@gnu.org>
41378             Bruno Haible  <bruno@clisp.org>
41379
41380         New module libsigsegv.
41381         * modules/libsigsegv: New file.
41382         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41383         modifications.
41384         * MODULES.html.sh (Signal handling): New section.
41385
41386 2008-07-14  Bruno Haible  <bruno@clisp.org>
41387
41388         * modules/unictype/ctype-* (Description): Add the word "function".
41389         Improves the resulting doc in MODULES.html.
41390
41391 2008-07-12  Ben Pfaff  <blp@gnu.org>
41392
41393         Add longlong module.
41394         * modules/longlong: New file.
41395
41396 2008-07-12  Bruno Haible  <bruno@clisp.org>
41397
41398         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41399         to empty.
41400
41401 2008-07-10  Ben Pfaff  <blp@gnu.org>
41402
41403         Add isnan module.
41404         * doc/posix-functions/isnan.texi: Mention new module.
41405         * lib/math.in.h: Define isnan macro if we have decided to replace
41406         it.
41407         * m4/isnan.m4: New file.
41408         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41409         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41410         also.
41411         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41412         redundancy.
41413         * m4/math_h.m4: Initialize and substitute variables for isnan
41414         module.
41415         * modules/isnan: New file.
41416         * modules/isnan-tests: New file.
41417         * modules/math: Add substitutions for new module.
41418         * tests/test-isnan.c: New file.
41419         * MODULES.html.sh: Mention new module.
41420
41421 2008-07-10  Ben Pfaff  <blp@gnu.org>
41422
41423         Add isnanf module.
41424         * lib/isnanf.m4: New file.
41425         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41426         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41427         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41428         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41429         * modules/isnanf: New file.
41430         * modules/isnanf-tests: New file.
41431         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41432         files.
41433         * tests/test-isnanf-nolibm.c: factored most of its contents into
41434         new file tests/test-isnanf.h.
41435         * tests/test-isnanf.h: New file.
41436         * tests/test-isnanf.c: New file.
41437         * MODULES.html.sh: Mention new module.
41438         * doc/glibc-functions/isnanf.texi: Mention new module.
41439
41440 2008-07-10  Ben Pfaff  <blp@gnu.org>
41441
41442         Add isnand module.
41443         * lib/isnand.h: New file.
41444         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41445         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41446         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41447         functionality also.
41448         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41449         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41450         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41451         * modules/isnand: New file.
41452         * modules/isnand-tests: New file.
41453         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41454         files.
41455         * tests/test-isnand-nolibm.c: factored most of its contents into
41456         new file tests/test-isnand.h.
41457         * tests/test-isnand.h: New file.
41458         * tests/test-isnand.c: New file.
41459         * MODULES.html.sh: Mention new module.
41460
41461 2008-07-10  Ben Pfaff  <blp@gnu.org>
41462
41463         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41464         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41465         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41466         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41467         * modules/isnanf-nolibm: Update references to renamed files.
41468         * modules/isnand-nolibm: Likewise.
41469         * modules/isnanf-nolibm-tests: Likewise.
41470         * modules/isnand-nolibm-tests: Likewise.
41471         * lib/frexp.c: Likewise.
41472         * lib/isfinite.c: Likewise.
41473         * lib/signbitd.c: Likewise.
41474         * lib/signbitf.c: Likewise.
41475         * lib/vasnprintf.c: Likewise.
41476         * tests/test-ceilf1.c: Likewise.
41477         * tests/test-ceilf2.c: Likewise.
41478         * tests/test-floorf1.c: Likewise.
41479         * tests/test-floorf2.c: Likewise.
41480         * tests/test-frexp.c: Likewise.
41481         * tests/test-round1.c: Likewise.
41482         * tests/test-round2.c: Likewise.
41483         * tests/test-roundf1.c: Likewise.
41484         * tests/test-strtod.c: Likewise.
41485         * tests/test-trunc1.c: Likewise.
41486         * tests/test-trunc2.c: Likewise.
41487         * tests/test-truncf1.c: Likewise.
41488         * tests/test-truncf2.c: Likewise.
41489         * NEWS: Mention the renamed header files.
41490
41491 2008-07-11  Jim Meyering  <meyering@redhat.com>
41492
41493         vc-list-files: make the last-resort awk code more portable
41494         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41495         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41496         does not support it.
41497
41498 2008-07-10  Eric Blake  <ebb9@byu.net>
41499
41500         Work with tar's bootstrap.
41501         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41502         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41503         an m4 comment.
41504
41505 2008-07-09  Jim Meyering  <meyering@redhat.com>
41506
41507         posix-shell.m4: fix typo that made this test malfunction
41508         * m4/posix-shell.m4: Remove capitalization in variable name.
41509
41510 2008-07-08  Bruno Haible  <bruno@clisp.org>
41511
41512         * m4/onceonly.m4: Update comments.
41513         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41514
41515 2008-07-04  Jim Meyering  <meyering@redhat.com>
41516
41517         * users.txt: Add vc-dwim.
41518         (bison, coreutils): Use the gitweb URL.
41519
41520 2008-07-03  Jim Meyering  <meyering@redhat.com>
41521
41522         * users.txt: Add libffcall.  From Sam Steingold.
41523
41524 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41525
41526         getdate.y: do not ignore TZ with relative day, month or year offset
41527         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41528         relative-date-handling, since otherwise, the latter would clobber the
41529         sole output (an updated Start value) of the tz-handling block.
41530         * tests/test-getdate.c: Tests for the fix
41531
41532 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41533
41534         Recognize 'foo_LIBRARIES += libgnu.a'.
41535         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41536         makefile snippet has already specified an installation location,
41537         also using '+='.
41538
41539 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41540
41541         getdate.y: factor out common actions
41542         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41543         Use them in place of open-coded actions.
41544
41545 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41546
41547         Add self-test for getdate module.
41548         * modules/getdate-tests: New file.
41549         * tests/test-getdate.c: New file.
41550
41551 2008-06-29  Bruno Haible  <bruno@clisp.org>
41552
41553         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41554         .gitignore.
41555         Reported by Sylvain Beucler <beuc@beuc.net>.
41556
41557 2008-06-29  Bruno Haible  <bruno@clisp.org>
41558
41559         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41560         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41561
41562 2008-06-29  Bruno Haible  <bruno@clisp.org>
41563
41564         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41565         EXTRA_DIST.
41566         Reported by Sylvain Beucler <beuc@beuc.net>.
41567
41568 2008-06-26  Jim Meyering  <meyering@redhat.com>
41569
41570         make several modules depend on the "open" module
41571         This provides slightly increased consistency when opening-for-write
41572         the name of a non-directory spelled with a trailing slash.
41573         * modules/chdir-safer: Likewise.
41574         * modules/chown: Likewise.
41575         * modules/clean-temp: Likewise.
41576         * modules/copy-file: Likewise.
41577         * modules/fchdir: Likewise.
41578         * modules/fcntl-safer: Likewise.
41579         * modules/pipe: Likewise.
41580         * modules/utime: Likewise.
41581         Prompted by Eric Blake and Bruno Haible.
41582
41583 2008-06-24  Andreas Schwab  <schwab@suse.de>
41584
41585         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41586         literals can be used as initializers for global variables.
41587
41588 2008-06-23  Eric Blake  <ebb9@byu.net>
41589
41590         Make gnulib-cache.m4 easier to diff.
41591         * gnulib-tool (func_import): Allow newlines when reading cached
41592         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41593
41594 2008-06-23  Bruno Haible  <bruno@clisp.org>
41595
41596         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41597         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41598         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41599         m4/signalblocking.m4.
41600         (gl_PREREQ_SIGACTION): Don't invoke it.
41601         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41602         gl_PREREQ_SIG_HANDLER_H.
41603         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41604         Don't check for sigaction here.
41605
41606 2008-06-23  Bruno Haible  <bruno@clisp.org>
41607
41608         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41609         (install_handlers): Don't set the SA_RESETHAND flag.
41610
41611 2008-06-23  Bruno Haible  <bruno@clisp.org>
41612
41613         * m4/sigaction.m4: Comment fixes.
41614         * lib/signal.in.h: Likewise.
41615
41616 2008-06-23  Eric Blake  <ebb9@byu.net>
41617
41618         Fix typo.
41619         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41620
41621         Avoid SA_ namespace.
41622         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41623         Reported by Ralf Wildenhues.
41624
41625         Avoid test failure due to SA_RESTORER.
41626         * tests/test-sigaction.c (SA_MASK): New macro.
41627         (main): Avoid failing due to extension flags being set.
41628         Reported by Jim Meyering.
41629
41630         Revert use of sig-handler.h in sigprocmask.c.
41631         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41632         it requires the existence of struct sigaction.
41633         * lib/sigprocmask.c (handler_t): Restore typedef.
41634         (rpl_signal, old_handlers): Use local type.
41635
41636 2008-06-22  Bruno Haible  <bruno@clisp.org>
41637
41638         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41639         conditionally.
41640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41641
41642 2008-06-22  Bruno Haible  <bruno@clisp.org>
41643
41644         * doc/posix-functions/siginterrupt.texi: Move note.
41645
41646         * lib/signal.in.h (SA_RESTART): New macro.
41647         * lib/sigaction.c: Update comment.
41648
41649         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41650
41651         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41652         (gl_PREREQ_SIGPROCMASK): Invoke it.
41653         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41654
41655         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41656
41657         * lib/sigprocmask.c: Update a comment.
41658
41659 2008-06-21  Eric Blake  <ebb9@byu.net>
41660
41661         Use sigaction module rather than signal().
41662         * modules/c-stack (Depends-on): Add sigaction.
41663         * modules/fatal-signal (Depends-on): Likewise.
41664         * modules/nanosleep (Depends-on): Likewise.
41665         * modules/sigprocmask (Files): Add sig-handler.h.
41666         * modules/sigaction (Files): Likewise.
41667         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41668         Eggert.
41669         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41670         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41671         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41672         (init_fatal_signals): Likewise.
41673         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41674         (siginterrupt): Delete fallback.
41675         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41676         instead.
41677         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41678         siginterrupt.
41679
41680         New module sigaction, for mingw.
41681         * modules/sigaction: New module...
41682         * modules/sigaction-tests: ...and its test.
41683         * m4/sigaction.m4: New file.
41684         * lib/sigaction.c: Likewise.
41685         * tests/test-sigaction.c: Likewise.
41686         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41687         * modules/signal (Makefile.am): Likewise.
41688         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41689         needed.
41690         * doc/posix-headers/signal.texi (signal.h): Mention provided
41691         types.
41692         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41693         that sigaction is preferable.
41694         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41695         module.
41696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41697         sigaction.
41698
41699         Improve robustness of sigprocmask by overriding signal.
41700         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41701         is in use.
41702         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41703         (SIGKILL, SIGSTOP): Provide fallbacks.
41704         (rpl_signal): Implement.
41705         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41706         signal can be called inside handlers.
41707
41708         Fix nanosleep module on mingw.
41709         * modules/nanosleep (Depends-on): Add sys_select.
41710         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41711
41712         Fix licensing of sigprocmask.
41713         * modules/raise (License): Relicense as LGPL.
41714
41715 2008-06-21  Bruno Haible  <bruno@clisp.org>
41716
41717         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41718         result if it contains question marks.
41719         Reported by Michael Geng <linux@michaelgeng.de>.
41720
41721 2008-06-19  Bruno Haible  <bruno@clisp.org>
41722
41723         Fix CVS-ism.
41724         * doc/gnulib.texi: Include updated-stamp.texi.
41725         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41726         (updated-stamp.texi): New rule.
41727         (gnulib.info): Depend on it.
41728         * doc/.gitignore: Add updated-stamp.texi.
41729         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41730
41731 2008-06-19  Bruno Haible  <bruno@clisp.org>
41732
41733         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41734         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41735
41736 2008-06-19  Eric Blake  <ebb9@byu.net>
41737
41738         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41739         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41740         Reported by Stepan Kasal.
41741
41742 2008-06-18  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41745         Reported by Eric Blake.
41746
41747 2008-06-18  Eric Blake  <ebb9@byu.net>
41748
41749         Work around cygwin 1.5.25 strsignal bug.
41750         * tests/test-strsignal.c: Allow for const char *.
41751         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41752
41753 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41754
41755         * users.txt: Update URL to article and add author/date
41756         information.
41757
41758 2008-06-17  Bruno Haible  <bruno@clisp.org>
41759
41760         New macro gl_DISABLE_THREADS.
41761         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41762         if the user did not pass --enable-threads or --disable-threads option.
41763         (gl_DISABLE_THREADS): New macro.
41764         Reported by Eric Blake <ebb9@byu.net>.
41765
41766 2008-06-17  Bruno Haible  <bruno@clisp.org>
41767
41768         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41769         when the macro ignores it.
41770         Based on a patch by Eric Blake <ebb9@byu.net>.
41771
41772 2008-06-17  Bruno Haible  <bruno@clisp.org>
41773
41774         * modules/tls (License): Change to LGPLv2+.
41775         Reported by Eric Blake.
41776
41777 2008-06-17  Eric Blake  <ebb9@byu.net>
41778
41779         Simplify c-stack prerequisites.
41780         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41782         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41783         check.
41784         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41785         <sys/resource.h>.
41786
41787         Move c-stack test into testsuite.
41788         * modules/c-stack-tests: New file.
41789         * lib/c-stack.c [DEBUG]: Move test program...
41790         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41791         fail test if sigaltstack is lacking.
41792         * tests/test-c-stack.sh: New driver file.
41793
41794 2008-06-16  Eric Blake  <ebb9@byu.net>
41795
41796         Use raise module consistently.
41797         * modules/fatal-signal (Depends-on): Add raise.
41798         * modules/sigprocmask (Depends-on): Likewise.
41799         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41800         * lib/sigprocmask.c (sigprocmask): Likewise.
41801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41802         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41803
41804         Fix compliance bug in sigpending.
41805         * lib/sigprocmask.c (sigpending): Return pending array via
41806         parameter, not return value.
41807
41808 2008-06-14  Eric Blake  <ebb9@byu.net>
41809
41810         Improve obstack-printf test code.
41811         * tests/test-obstack-printf.c (test_function): Fix comment, and
41812         simplify usage of obstack_* in macros.  Add a test for coverage.
41813         Reported by Bruno Haible.
41814
41815 2008-06-14  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41818         array size as a constant, not as a const variable.
41819         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41820         AC_USE_SYSTEM_EXTENSIONS.
41821         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41822         Test whether the obstack_printf function actually exists.
41823         * modules/obstack-printf (Depends-on): Add extensions.
41824         (Include): Remove obstack.h.
41825         * modules/obstack-printf-posix (Depends-on): Add extensions.
41826         (Include): Remove obstack.h.
41827
41828 2008-06-13  Eric Blake  <ebb9@byu.net>
41829
41830         Add obstack-printf and obstack-printf-posix modules.
41831         * modules/obstack-printf: New file.
41832         * modules/obstack-printf-posix: Likewise.
41833         * MODULES.html.sh (Misc): Mention them.
41834         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41835         Likewise.
41836         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41837         Likewise.
41838         * modules/stdio (Makefile.am): Accomodate new modules.
41839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41840         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41841         Declare.
41842         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41843         functions.
41844         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41845         (gl_REPLACE_OBSTACK_PRINTF): New macros
41846         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41847         * tests/test-obstack-printf.c: New file.
41848         * modules/obstack-printf-tests: Likewise.
41849         * modules/obstack-printf-posix-tests: Likewise.
41850
41851 2008-06-11  Bruno Haible  <bruno@clisp.org>
41852
41853         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41854         * lib/open.c: Include errno.h.
41855         (open): Fail when attempting to write to a file that has a trailing
41856         slash.
41857         * tests/test-open.c (main): Test against trailing slash bug.
41858         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41859
41860 2008-06-10  Bruno Haible  <bruno@clisp.org>
41861
41862         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41863         for $? to work inside the trap command, with various /bin/sh-s.
41864         * tests/test-vc-list-files-cvs.sh: Likewise.
41865
41866 2008-06-10  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/acl-internal.h: Don't include gettext.h here.
41869         * lib/set-mode-acl.c: Include gettext.h here.
41870         * lib/copy-acl.c: Likewise.
41871
41872 2008-06-10  Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41875         * lib/wait-process.c (wait_subprocess): Likewise.
41876         * lib/execute.h (execute): Add termsigp argument.
41877         * lib/execute.c (execute): Likewise.
41878         * lib/csharpcomp.c (compile_csharp_using_pnet,
41879         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41880         * lib/csharpexec.c (execute_csharp_using_pnet,
41881         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41882         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41883         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41884         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41885         is_jikes_present): Update.
41886         * lib/javaexec.c (execute_java_class): Update.
41887         * lib/javaversion.c (execute_and_read_line): Update.
41888         * NEWS: Document the changes.
41889         Reported by Eric Blake.
41890
41891 2008-06-10  Eric Blake  <ebb9@byu.net>
41892
41893         Add missing include.
41894         * tests/test-strstr.c (includes): Add <signal.h>.
41895         * tests/test-strcasestr.c (includes): Likewise.
41896         * tests/test-memmem.c (includes): Likewise.
41897
41898 2008-06-10  Bruno Haible  <bruno@clisp.org>
41899
41900         * lib/wait-process.c (wait_subprocess): Add an assertion.
41901
41902 2008-06-10  Bruno Haible  <bruno@clisp.org>
41903
41904         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41905
41906 2008-06-10  Bruno Haible  <bruno@clisp.org>
41907
41908         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41909         using alarm().
41910         * tests/test-strcasestr.c (main): Likewise.
41911         * tests/test-strstr.c (main): Likewise.
41912
41913 2008-06-09  Bruno Haible  <bruno@clisp.org>
41914
41915         Work around the Solaris 10 ACE ACLs ABI change.
41916         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41917         declare if ACL_NO_TRIVIAL is present.
41918         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41919         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41920         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41921         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41922         define if ACL_NO_TRIVIAL is present.
41923         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41924         and use the current ABI.
41925         (file_has_acl): Use same #if condition as elsewhere.
41926         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41927         in use, and use the current ABI.
41928         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41929         Reported by Jim Meyering.
41930
41931 2008-06-09  Eric Blake  <ebb9@byu.net>
41932
41933         Work around environments that (stupidly) ignore SIGALRM.
41934         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41935         before using alarm().
41936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41938         Reported by Ian Beckwith <ianb@erislabs.net>.
41939
41940         Produce autobuild blurb earlier in log.
41941         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41942
41943 2008-06-09  Jim Meyering  <meyering@redhat.com>
41944         and OndÅ™ej Vašík  <ovasik@redhat.com>
41945
41946         utimens.c: correct kernel bug work-around
41947         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41948         failure, not success, and the kernel bug we're trying to work
41949         around affects not just the utimensat call, but also the fallback
41950         futimens call.
41951         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41952         not success.
41953         [HAVE_FUTIMENS]: Use the same work-around, here.
41954
41955 2008-06-09  Jim Meyering  <meyering@redhat.com>
41956
41957         add more guards around definition of ACE_-related code
41958         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41959         ALLOW and ACE_OWNER are also defined.
41960
41961 2008-06-08  Bruno Haible  <bruno@clisp.org>
41962
41963         * lib/acl-internal.h: Add me as co-author.
41964         * lib/file-has-acl.c: Likewise.
41965         * lib/set-mode-acl.c: Likewise.
41966         * lib/copy-acl.c: Likewise.
41967
41968 2008-06-08  Bruno Haible  <bruno@clisp.org>
41969
41970         Add support for AIX ACLs.
41971         * lib/acl-internal.h (acl_nontrivial): New declaration.
41972         * lib/file-has-acl.c (acl_nontrivial): New function.
41973         (file_has_acl): Add implementation using AIX 4 ACL API.
41974         * lib/set-mode-acl.c (qset_acl): Likewise.
41975         * lib/copy-acl.c (qcopy_acl): Likewise.
41976
41977 2008-06-08  Bruno Haible  <bruno@clisp.org>
41978
41979         Add support for HP-UX ACLs.
41980         * lib/acl-internal.h (acl_nontrivial): New declaration.
41981         * lib/file-has-acl.c (acl_nontrivial): New function.
41982         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41983         * lib/set-mode-acl.c (qset_acl): Likewise.
41984         * lib/copy-acl.c (qcopy_acl): Likewise.
41985
41986 2008-06-08  Bruno Haible  <bruno@clisp.org>
41987
41988         Add support for Cygwin ACLs.
41989         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41990         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41991         the chmod_or_fchmod call.
41992         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41993
41994 2008-06-08  Bruno Haible  <bruno@clisp.org>
41995
41996         Fix bug with setuid modes in Solaris 10+ code.
41997         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41998         succeeded, when the mode contains some special bits.
41999
42000 2008-06-08  Bruno Haible  <bruno@clisp.org>
42001
42002         Add support for Solaris 7..10 ACLs.
42003         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42004         declarations.
42005         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42006         functions.
42007         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42008         * lib/set-mode-acl.c (qset_acl): Likewise.
42009         * lib/copy-acl.c (qcopy_acl): Likewise.
42010
42011 2008-06-08  Bruno Haible  <bruno@clisp.org>
42012
42013         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42014         declaration.
42015         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42016         (acl_access_nontrivial): Remove MacOS X case.
42017         (file_has_acl): Use acl_extended_nontrivial.
42018         * lib/copy-acl.c (qcopy_acl): Likewise.
42019
42020 2008-06-08  Bruno Haible  <bruno@clisp.org>
42021
42022         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42023
42024 2008-06-08  Jim Meyering  <meyering@redhat.com>
42025
42026         * modules/acl (Maintainer): Add Bruno Haible.
42027
42028 2008-06-07  Bruno Haible  <bruno@clisp.org>
42029
42030         Improve support for Tru64 ACLs.
42031         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42032         ACL on OSF/1.
42033
42034 2008-06-07  Bruno Haible  <bruno@clisp.org>
42035
42036         Add support for MacOS X ACLs.
42037         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42038         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42039         * lib/set-mode-acl.c (qset_acl): Likewise.
42040         * lib/copy-acl.c (qcopy_acl): Likewise.
42041
42042 2008-06-07  Bruno Haible  <bruno@clisp.org>
42043
42044         Fix memory leak introduced on 2008-05-22.
42045         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42046         use.
42047
42048 2008-06-07  Bruno Haible  <bruno@clisp.org>
42049
42050         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42051         to construct an empty ACL.
42052
42053 2008-06-07  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42056         precisely.
42057         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42058
42059 2008-06-07  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42062         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42063
42064 2008-06-07  Bruno Haible  <bruno@clisp.org>
42065
42066         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42067         regardless of POSIX.
42068         * doc/posix-functions/_longjmp.texi: Likewise.
42069         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42070         SystemV platform in this case.
42071
42072 2008-06-06  Eric Blake  <ebb9@byu.net>
42073
42074         Document abort() bugs.
42075         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42076
42077         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42078         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42079         sigsetjmp.
42080         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42081         siglongjmp, but only as a macro.
42082         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42083         is obsolete.
42084         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42085
42086         Tweak documentation to cover cygwin argz bugs.
42087         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42088         argz bug fix; no code change needed since no cygwin releases
42089         occurred between the last fix and the bug being tested.
42090         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42091         module and recently fixed cygwin bugs.
42092         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42093         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42094         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42095         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42096         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42097         Likewise.
42098         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42099         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42100         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42101         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42102         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42103         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42104         Likewise.
42105
42106         Avoid gcc warning on cygwin.
42107         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42108         !ACL_NO_TRIVIAL]: Avoid unused variable.
42109
42110 2008-06-05  Eric Blake  <ebb9@byu.net>
42111
42112         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42113         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42114         git-version-gen fails to come up with a version.
42115         Reported by Simon Josefsson.
42116
42117 2008-06-05  Jim Meyering  <meyering@redhat.com>
42118             Paul Eggert  <eggert@cs.ucla.edu>
42119
42120         utimens.c: work around a probable Linux kernel bug
42121         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42122         appears to be a kernel bug that causes utimensat to return 280
42123         instead of 0, indicating success.
42124
42125 2008-06-04  Bruno Haible  <bruno@clisp.org>
42126
42127         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42128         2008-06-01 commit.
42129
42130 2008-06-04  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42133         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42134         (file_has_acl): Use it. Save errno afterwards.
42135         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42136
42137 2008-06-03  Bruno Haible  <bruno@clisp.org>
42138
42139         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42140         draft code. Simplify #ifs.
42141         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42142         Put Solaris code after POSIX-draft code. Fix comments regarding
42143         Solaris 10, HP-UX. Mention Cygwin.
42144         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42145
42146 2008-06-03  Eric Blake  <ebb9@byu.net>
42147
42148         Provide fallback for older kernels.
42149         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42150         Provide runtime fallback if kernel lacks support.
42151         Reported by Mike Frysinger.
42152
42153 2008-06-02  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42156         it exists.
42157
42158 2008-06-02  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42161         * lib/copy-acl.c (qcopy_acl): Update comment.
42162
42163 2008-06-02  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42166         like ACL APIs.
42167
42168 2008-06-02  Bruno Haible  <bruno@clisp.org>
42169
42170         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42171         * tests/test-set-mode-acl.sh: Likewise.
42172         * tests/test-copy-acl.sh: Likewise.
42173         * tests/test-copy-file.sh: Likewise.
42174
42175 2008-06-02  Bruno Haible  <bruno@clisp.org>
42176
42177         * tests/test-file-has-acl.sh: Remove unused code.
42178
42179 2008-06-01  Bruno Haible  <bruno@clisp.org>
42180
42181         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42182         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42183         messages.
42184         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42185
42186 2008-06-01  Bruno Haible  <bruno@clisp.org>
42187
42188         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42189         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42190         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42191         APIs.
42192         * modules/acl-tests (configure.ac): Remove tests now contained in
42193         m4/acl.m4.
42194
42195 2008-06-02  Jim Meyering  <meyering@redhat.com>
42196
42197         announce-gen: use a better key-server host name
42198         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42199         it may be more consistently reliable.  Suggested by Werner Koch
42200         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42201
42202 2008-06-01  Bruno Haible  <bruno@clisp.org>
42203
42204         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42205         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42206
42207 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42208
42209         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42210
42211 2008-06-01  Bruno Haible  <bruno@clisp.org>
42212
42213         New ACL tests.
42214         * tests/test-file-has-acl.sh: New file.
42215         * tests/test-file-has-acl.c: New file.
42216         * tests/test-set-mode-acl.sh: New file.
42217         * tests/test-set-mode-acl.c: New file.
42218         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42219         * tests/test-copy-acl.c: New file.
42220         * modules/acl-tests: New file, based on modules/copy-file-tests.
42221         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42222         (Depends-on): Add acl-tests.
42223         (configure.ac): Remove checks.
42224         (Makefile.am): Don't create test-sameacls program here any more.
42225
42226 2008-06-01  Bruno Haible  <bruno@clisp.org>
42227
42228         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42229         * tests/test-sameacls.c: Include progname.h.
42230         (main): Invoke set_program_name. Portability fixes for MacOS X,
42231         Solaris, HP-UX.
42232
42233 2008-06-01  Bruno Haible  <bruno@clisp.org>
42234
42235         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42236         function.
42237         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42238
42239 2008-06-01  Bruno Haible  <bruno@clisp.org>
42240
42241         * modules/rpmatch (Depends-on): Add strdup.
42242
42243 2008-06-01  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/pipe.c: Include unistd-safer.h.
42246         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42247         * modules/pipe (Depends-on): Add unistd-safer.
42248
42249 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42250
42251         * modules/autobuild (configure.ac): Call AB_INIT.
42252
42253 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42254
42255         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42256         Suggested by Bruno Haible <bruno@clisp.org>.
42257
42258 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42259
42260         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42261         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42262         <bruno@clisp.org>.
42263
42264 2008-05-29  Eric Blake  <ebb9@byu.net>
42265
42266         Prefer new POSIX 200x interfaces over futimesat.
42267         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42268         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42269         when available.
42270         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42271
42272 2008-05-28  Bruno Haible  <bruno@clisp.org>
42273
42274         * modules/stpcpy (License): Change to LGPLv2+.
42275         Requested by David Lutterkort <dlutter@redhat.com>.
42276
42277 2008-05-27  Bruno Haible  <bruno@clisp.org>
42278
42279         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42280         current mingw.
42281         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42282
42283 2008-05-27  Bruno Haible  <bruno@clisp.org>
42284
42285         * modules/iconv_open (Link): New section, from module 'iconv'.
42286         * modules/striconv (Link): Likewise.
42287         * modules/striconveh (Link): Likewise.
42288         * modules/xstriconv (Link): Likewise.
42289         * modules/unicodeio (Link): Likewise.
42290         * modules/propername (Link): Likewise.
42291         Reported by Jim Meyering.
42292
42293 2008-05-26  Jim Meyering  <meyering@redhat.com>
42294
42295         sha256: do not artificially restrict buffer length to be < 2^32
42296         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42297         uint32_t to size_t.
42298         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42299         to match.
42300
42301         avoid unaligned access errors, e.g., on sparc
42302         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42303         direct access through a possibly-unaligned uint64* pointer.
42304         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42305         direct access through a possibly-unaligned uint32* pointer.
42306         Prompted by this patch from Tom "spot" Callaway:
42307         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42308
42309         sha512.c: fix typo in comment
42310         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42311
42312 2008-05-25  Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42315         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42316         (Makefile.am): Update lib_SOURCES.
42317
42318 2008-05-25  Bruno Haible  <bruno@clisp.org>
42319
42320         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42321
42322 2008-05-25  Jim Meyering  <meyering@redhat.com>
42323
42324         useless-if-before-free: freed expr may have white-space differences
42325         * build-aux/useless-if-before-free: Recognize cases in which the
42326         freed expression differs from the tested one in embedded white
42327         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42328         $1 was used, so we can't make any regexp shy.  Improved tests now
42329         detect this.
42330
42331         useless-if-before-free: accept white space in the expression.
42332         * build-aux/useless-if-before-free: For now, any white space
42333         in the expression must be identical in the free argument.
42334
42335         useless-if-before-free: efficiency tweak
42336         * build-aux/useless-if-before-free: Make the expression-matching
42337         regexp "shy".
42338         Make the *outer* regexp shy, not the expr-matching one.
42339
42340         update code-in-comment to accept cast of free arg
42341         * build-aux/useless-if-before-free: Update regexp.
42342
42343 2008-05-25  Bruno Haible  <bruno@clisp.org>
42344
42345         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42346         * modules/copy-file-tests (Files, Makefile.am): Update.
42347         * tests/test-copy-file.c (func_test_copy): Update.
42348
42349 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42350
42351         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42352
42353 2008-05-23  Bruno Haible  <bruno@clisp.org>
42354
42355         Improve support for ACLs on OSF/1.
42356         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42357         Remove fallback for unknown flavors of ACLs.
42358
42359 2008-05-22  Bruno Haible  <bruno@clisp.org>
42360
42361         Add support for ACLs on OSF/1.
42362         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42363         replacements.
42364         (acl_free_text): New macro fallback.
42365         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42366         acl_free.
42367         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42368         acl_free_text function. Require AC_C_INLINE.
42369
42370 2008-05-22  Bruno Haible  <bruno@clisp.org>
42371
42372         Make copy_acl work on MacOS X 10.5.
42373         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42374         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42375         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42376         If MODE_INSIDE_ACL, don't assume that every system has the same text
42377         representation for ACLs as FreeBSD.
42378         * lib/copy-acl.c (copy_acl): Add support for platforms with
42379         !MODE_INSIDE_ACL.
42380         * lib/file-has-acl.c (file_has_acl): Likewise.
42381         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42382         FreeBSD, MacOS X, or IRIX, respectively.
42383
42384 2008-05-22  Bruno Haible  <bruno@clisp.org>
42385
42386         * lib/acl.h: Don't include <sys/acl.h>.
42387         (GETACLCNT): Move fallback to lib/acl-internal.h.
42388         * lib/acl-internal.h: Include <sys/acl.h> here.
42389         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42390
42391 2008-05-22  Bruno Haible  <bruno@clisp.org>
42392
42393         Split off copy_acl function to separate file.
42394         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42395         * lib/acl.c (copy_acl): Moved function to separate file.
42396         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42397         * modules/acl (Files): Add lib/copy-acl.c.
42398         (Makefiles.am): Augment lib_SOURCES.
42399
42400 2008-05-22  Bruno Haible  <bruno@clisp.org>
42401
42402         * modules/copy-file-tests: New file.
42403         * tests/test-copy-file.sh: New file.
42404         * tests/test-copy-file.c: New file.
42405         * tests/test-copy-file-sameacls.c: New file.
42406
42407 2008-05-22  Eric Blake  <ebb9@byu.net>
42408
42409         Avoid gcc warning.
42410         * tests/test-memcmp.c (main): Pass NULL indirectly.
42411
42412 2008-05-21  Bruno Haible  <bruno@clisp.org>
42413
42414         Add reference doc about ACLs.
42415         * doc/acl-resources.txt: New file.
42416         * doc/acl-cygwin.txt: New file.
42417
42418 2008-05-21  Bruno Haible  <bruno@clisp.org>
42419
42420         Avoid one more warning from gcc.
42421         * lib/vasnprintf.c (IF_LINT): Update comments.
42422         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42423
42424 2008-05-21  Jim Meyering  <meyering@redhat.com>
42425
42426         avoid a warning from gcc
42427         * lib/vasnprintf.c (IF_LINT): Define.
42428         (scale10_round_decimal_long_double):
42429         Use it to avoid a "may be used uninitialized" warning.
42430         (scale10_round_decimal_double): Likewise.
42431
42432 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42433
42434         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42435         declared.
42436
42437 2008-05-20  Bruno Haible  <bruno@clisp.org>
42438
42439         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42440         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42441
42442 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42443
42444         * modules/memcmp-tests: New file.
42445         * tests/test-memcmp.c: New file.
42446
42447 2008-05-19  Bruno Haible  <bruno@clisp.org>
42448
42449         * modules/propername (Notice, configure.ac): Put quoted "..." into
42450         --keyword option.
42451         * lib/propername.h: Update comments accordingly.
42452         Reported by Eric Blake.
42453
42454 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42455
42456         * modules/getpass-gnu (Depends-on): Add fseeko.
42457
42458 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42459
42460         * modules/base64-tests: New file.
42461
42462 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42463
42464         * lib/base64.c (base64_decode_ctx): If a decode context structure
42465         was passed in use it to ignore newlines.  If a context structure
42466         was _not_ passed in, continue to treat newlines as garbage (this
42467         is the historical behavior).  Formerly base64_decode.
42468         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42469         takes a decode context structure.
42470         * lib/base64.h (base64_decode): Macro for four-argument calls.
42471         (base64_decode_alloc): Likewise.
42472         * lib/base64.c (base64_decode_ctx): If a decode context structure
42473         was passed in use it to ignore newlines.  If a context structure
42474         was _not_ passed in, continue to treat newlines as garbage (this
42475         is the historical behavior).  Formerly base64_decode.
42476         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42477         takes a decode context structure.
42478         * lib/base64.h (base64_decode): Macro for four-argument calls.
42479         (base64_decode_alloc): Likewise.
42480
42481 2008-05-19  Jim Meyering  <meyering@redhat.com>
42482
42483         avoid a warning from gcc
42484         * lib/trim.c (IF_LINT): Define.
42485         (trim2): Use it to avoid a "may be used uninitialized" warning.
42486
42487         Fix doc typo.
42488         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42489
42490 2008-05-19  Bruno Haible  <bruno@clisp.org>
42491
42492         * doc/glibc-functions/getpass.texi: Document limits of other
42493         implementations.
42494
42495 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42496             Bruno Haible <bruno@clisp.org>
42497
42498         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42499
42500 2008-05-18  Bruno Haible  <bruno@clisp.org>
42501
42502         * modules/propername: New file, from GNU gettext.
42503         * lib/propername.h: New file, from GNU gettext.
42504         * lib/propername.c: New file, from GNU gettext.
42505         * MODULES.html.sh (Internationalization functions): Add propername.
42506
42507 2008-05-16  Jim Meyering  <meyering@redhat.com>
42508             Bruno Haible  <bruno@clisp.org>
42509
42510         Avoid some warnings from "gcc -Wshadow".
42511         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42512
42513 2008-05-15  Eric Blake  <ebb9@byu.net>
42514
42515         Extend previous patch to cygwin 1.7.0.
42516         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42517         fast implementation in cygwin >= 1.7.0.
42518         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42520
42521 2008-05-15  Bruno Haible  <bruno@clisp.org>
42522
42523         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42524         implementation in glibc >= 2.9.
42525         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42527
42528 2008-05-15  Bruno Haible  <bruno@clisp.org>
42529
42530         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42531         (Unicode string functions): Add unilbrk/*.
42532         Reported by Karl Berry.
42533
42534 2008-05-15  Eric Blake  <ebb9@byu.net>
42535
42536         Fix violation of <stdbool.h> replacement in regex.
42537         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42538         * lib/regexec.c (re_search_internal): Likewise.
42539         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42540
42541 2008-05-15  Jim Meyering  <meyering@redhat.com>
42542
42543         avoid distracting test output when git or cvs is not found
42544         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42545         * tests/test-vc-list-files-git.sh: Likewise.
42546
42547 2008-05-15  Eric Blake  <ebb9@byu.net>
42548
42549         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42550         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42551         glibc version.
42552         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42553         * doc/posix-functions/strstr.texi (strstr): Likewise.
42554         * lib/str-two-way.h (MAX): Sychronize with glibc.
42555
42556 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42557
42558         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42559         opr.ctx_type.
42560         (calc_first): Initialize constraint field.
42561         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42562         Fix grammar.
42563         (duplicate_node): Merge constraint field for all node types.
42564         (calc_eclosure_iter): Look at constraint field for all node types.
42565         * lib/regex_internal.c (create_cd_newstate): Don't look at
42566         opr.ctx_type.
42567
42568 2008-05-14  Bruno Haible  <bruno@clisp.org>
42569
42570         Help GCC to do better code generation.
42571         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42572         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42573         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42574         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42575         Declare with attribute 'malloc' if supported.
42576
42577 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42578
42579         use "echo STR|wc -c" rather than unportable "expr length STR"
42580         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42581         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42582
42583 2008-05-14  Jim Meyering  <meyering@redhat.com>
42584
42585         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42586         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42587         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42588         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42589         via Collin Lasse.
42590
42591 2008-05-14  Eric Blake  <ebb9@byu.net>
42592
42593         Avoid quadratic growth in gl_LIBSOURCES.
42594         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42595         Suggested by Bruno Haible.
42596
42597         Test xmemdup0.
42598         * modules/xmemdup0-tests: New file.
42599         * tests/test-xmemdup0.c: Likewise.
42600
42601 2008-05-13  Eric Blake  <ebb9@byu.net>
42602
42603         Split xmemdup0 into its own module.
42604         * modules/xmemdup0: New file.
42605         * lib/xmemdup0.h: Likewise.
42606         * lib/xmemdup0.c: Likewise.
42607         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42608         * lib/xalloc.h (xmemdup0): Remove.
42609         * lib/xmalloc.c (xmemdup0): Likewise.
42610
42611 2008-05-13  Eric Blake  <ebb9@byu.net>
42612             Bruno Haible  <bruno@clisp.org>
42613
42614         Reduce number of forks required during autoconf.
42615         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42616         and gl_LIBSOURCES_DIR.
42617         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42618         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42619         m4_syscmd per file.
42620         <m4_foreach_w>: Move...
42621         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42622
42623 2008-05-13  Eric Blake  <ebb9@byu.net>
42624
42625         * gnulib-tool: Fix various comment typos.
42626
42627 2008-05-12  Bruno Haible  <bruno@clisp.org>
42628
42629         Tailor the linebreaking algorithm.
42630         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42631
42632 2008-05-12  Bruno Haible  <bruno@clisp.org>
42633
42634         Update to Unicode 5.0.0.
42635         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42636         LBP_JV, LBP_JT. Redistribute values.
42637         (unilbrk_table): Change size.
42638         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42639         Unicode TR#14 rev. 22.
42640         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42641         LBP_JV, LBP_JT. Redistribute values.
42642         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42643         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42644         Update.
42645         * lib/unilbrk/lbrkprop1.h: Regenerated.
42646         * lib/unilbrk/lbrkprop2.h: Regenerated.
42647         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42648         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42649         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42650         Likewise.
42651         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42652         Likewise.
42653         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42654         result.
42655         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42656         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42657         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42658         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42659         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42660         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42661
42662 2008-05-11  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42665
42666 2008-05-11  Bruno Haible  <bruno@clisp.org>
42667
42668         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42669         * modules/unilbrk/gen-lbrk: New file.
42670
42671 2008-05-11  Bruno Haible  <bruno@clisp.org>
42672
42673         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42674         * m4/sha512.m4 (gl_SHA512): Likewise.
42675
42676 2008-05-11  Jim Meyering  <meyering@redhat.com>
42677
42678         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42679         * modules/crypto/sha256: New file.
42680         * modules/crypto/sha512: Likewise.
42681         * lib/sha256.c: Likewise.
42682         * lib/sha256.h: Likewise.
42683         * lib/sha512.c: Likewise.
42684         * lib/sha512.h: Likewise.
42685         * lib/u64.h: Likewise.
42686         * m4/sha256.m4: Likewise.
42687         * m4/sha512.m4: Likewise.
42688         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42689
42690 2008-05-10  Bruno Haible  <bruno@clisp.org>
42691
42692         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42693         (Input/Output <stdio.h>): Add xprintf.
42694         (Signal handling <signal.h>): Add strsignal.
42695         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42696         (Core language properties): Add func.
42697         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42698         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42699         strings.
42700         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42701         (Input/output): New section.
42702         (File system functions): Add openat-die, stat-macros.
42703         (Networking functions): Add sockets.
42704         (Unicode string functions): Add unictype/*.
42705         (Support for building libraries and executables): Add gperf.
42706         (Support for building documentation): Add agpl-3.0.
42707         (Misc): Add nocrash.
42708
42709 2008-05-10  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/unictype/gen-ctype: New file.
42712
42713 2008-05-10  Jim Meyering  <meyering@redhat.com>
42714
42715         Make chdir-safer.c more efficient on a system with no symlinks.
42716         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42717         also if ELOOP is zero.  Suggested by Bruno Haible.
42718
42719         Make chdir-safer.c slightly safer.
42720         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42721         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42722
42723         Avoid compile failure on systems without ELOOP (like mingw).
42724         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42725         Reported by Bruno Haible.
42726
42727 2008-05-10  Bruno Haible  <bruno@clisp.org>
42728
42729         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42730         (is_utf8_encoding): Use a case-insensitive comparison.
42731         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42732         streq.
42733
42734 2008-05-10  Bruno Haible  <bruno@clisp.org>
42735
42736         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42737         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42738         * lib/unilbrk/ulc-common.h (iconv_string_length,
42739         iconv_string_keeping_offsets): Remove declarations.
42740         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42741         Don't include <iconv.h>, streq.h, xsize.h.
42742         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42743         conversion.
42744         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42745         <iconv.h>, streq.h, xsize.h.
42746         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42747         conversion.
42748         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42749         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42750         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42751         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42752
42753 2008-05-10  Bruno Haible  <bruno@clisp.org>
42754
42755         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42756         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42757
42758         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42759         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42760
42761         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42762         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42763
42764         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42765         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42766
42767         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42768         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42769
42770         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42771         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42772
42773         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42774         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42775
42776         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42777         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42778
42779 2008-05-10  Bruno Haible  <bruno@clisp.org>
42780
42781         Split up 'linebreak' module.
42782         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42783         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42784         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42785         modifications.
42786         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42787         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42788         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42789         lib/linebreak.c.
42790         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42791         lib/linebreak.c.
42792         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42793         lib/linebreak.c.
42794         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42795         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42796         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42797         lib/linebreak.c.
42798         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42799         lib/linebreak.c.
42800         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42801         lib/linebreak.c.
42802         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42803         lib/linebreak.c.
42804         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42805         lib/linebreak.c.
42806         * modules/unilbrk/base: New file.
42807         * modules/unilbrk/tables: New file.
42808         * modules/unilbrk/u8-possible-linebreaks: New file.
42809         * modules/unilbrk/u16-possible-linebreaks: New file.
42810         * modules/unilbrk/u32-possible-linebreaks: New file.
42811         * modules/unilbrk/ulc-common: New file.
42812         * modules/unilbrk/ulc-possible-linebreaks: New file.
42813         * modules/unilbrk/u8-width-linebreaks: New file.
42814         * modules/unilbrk/u16-width-linebreaks: New file.
42815         * modules/unilbrk/u32-width-linebreaks: New file.
42816         * modules/unilbrk/ulc-width-linebreaks: New file.
42817         * lib/linebreak.h: Remove file.
42818         * lib/linebreak.c: Remove file.
42819         * m4/linebreak.m4: Remove file.
42820         * modules/linebreak: Remove file.
42821         * NEWS: Mention the changes.
42822
42823 2008-05-09  Eric Blake  <ebb9@byu.net>
42824
42825         Add xmemdup0.
42826         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42827         implementation.
42828         * lib/xmalloc.c (xmemdup0): New C implementation.
42829
42830 2008-05-08  Bruno Haible  <bruno@clisp.org>
42831
42832         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42833
42834 2008-05-07  Eric Blake  <ebb9@byu.net>
42835
42836         Support cross-compilation of <wctype.h>.
42837         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42838         AC_CACHE_CHECK.
42839
42840 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42841
42842         * build-aux/vc-list-files: Add support for bzr.
42843
42844 2008-05-03  Jim Meyering  <meyering@redhat.com>
42845
42846         avoid failed assertion with tight malloc
42847         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42848
42849 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42850
42851         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42852         are needed from arpa/inet.h.
42853         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42854         Reported by Bruno Haible.
42855
42856 2008-05-02  Jim Meyering  <meyering@redhat.com>
42857
42858         avoid compilation error on FreeBSD 6
42859         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42860
42861 2008-05-01  Jim Meyering  <meyering@redhat.com>
42862
42863         useless-if-before-free: correct --help's exit status description
42864         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42865         for one or more matches, etc.  Reported by Bruno Haible.
42866
42867         vc-list-files: make the stand-alone gnulib test work
42868         * modules/vc-list-files-tests (configure.ac):
42869         Define and AC_SUBST abs_aux_dir.
42870         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42871         $(abs_top_srcdir) to each script and having each of them
42872         duplicate the work of setting PATH, set PATH here, using
42873         the new variable, abs_aux_dir instead.
42874         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42875         * tests/test-vc-list-files-git.sh: Likewise.
42876         Reported by Bruno Haible.
42877
42878 2008-05-01  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42881         reallocation. Rename 'done' to 'found_delimiter'.
42882
42883 2008-05-01  Jim Meyering  <meyering@redhat.com>
42884
42885         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42886         * build-aux/vc-list-files: Use `...`, not $(...).
42887
42888 2008-04-30  Jim Meyering  <meyering@redhat.com>
42889
42890         add tests for vc-list-files
42891         * modules/vc-list-files-tests: New module.
42892         * tests/test-vc-list-files-cvs.sh: New file.
42893         * tests/test-vc-list-files-git.sh: New file.
42894
42895         avoid a warning from gcc
42896         * lib/getndelim2.c (IF_LINT): Define.
42897         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42898
42899         vc-list-files: work properly with build-aux/cvsu, too
42900         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42901         to all cvs-based clauses.
42902
42903         vc-list-files: work properly in the CVS+awk case, too
42904         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42905
42906         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42907         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42908         take more than one file argument, so .  Add quotes, just in case $dir
42909         ever contains a shell meta-character.  Prompted by Soren Hansen in
42910         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42911
42912 2008-04-29  Eric Blake  <ebb9@byu.net>
42913
42914         Optimize getndelim2 to use block operations when possible.
42915         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42916         freadseek, and memchr2.
42917         * lib/getndelim2.c (getndelim2): Use them for block reads.
42918
42919 2008-04-29  Bruno Haible  <bruno@clisp.org>
42920
42921         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42922         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42923         * modules/inet_ntop (Depends-on): Add extensions.
42924         * modules/inet_pton (Depends-on): Likewise.
42925         Reported by Simon Josefsson.
42926
42927 2008-04-29  Jim Meyering  <meyering@redhat.com>
42928
42929         When the is more than one match in a block, match all of them.
42930         * build-aux/useless-if-before-free: Iterate through each block
42931         until there are no more matches.
42932
42933         Fix broken useless-if-before-free script.
42934         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42935         the expression to match cast of argument to free-like function.
42936
42937 2008-04-29  Eric Blake  <ebb9@byu.net>
42938
42939         Use new header.
42940         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42941
42942 2008-04-29  Jim Meyering  <meyering@redhat.com>
42943
42944         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42945         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42946         by gnulib to exist and to declare e.g., inet_ntop.
42947         Don't include "inet_ntop.h", now removed.
42948
42949         * m4/arpa_inet_h.m4: Remove trailing blanks.
42950
42951 2008-04-29  Eric Blake  <ebb9@byu.net>
42952
42953         Silence valgrind on safe reads beyond potential array bounds.
42954         * lib/rawmemchr.valgrind: New file.
42955         * lib/strchrnul.valgrind: Likewise.
42956         * modules/rawmemchr (Files): Distribute new file.
42957         * modules/strchrnul (Files): Likewise.
42958         Suggested by Bruno Haible.
42959
42960 2008-04-29  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42963         (inet_ntop, inet_pton): Change portability warning's wording.
42964         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42965         Invoke gl_CHECK_NEXT_HEADERS.
42966         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42967         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42968         set ARPA_INET_H.
42969         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42970         * modules/arpa_inet (Description): No longer only for systems that
42971         lack it.
42972         (Depends-on): Add include_next.
42973         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42974         HAVE_ARPA_INET_H.
42975
42976 2008-04-29  Jim Meyering  <meyering@redhat.com>
42977
42978         * modules/mkdir (License): Re-license as LGPLv2+.
42979
42980 2008-04-29  Bruno Haible  <bruno@clisp.org>
42981
42982         * modules/rawmemchr (Maintainer): Set to Eric.
42983         * modules/strchrnul (Maintainer): Likewise.
42984
42985 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42986
42987         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42988         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42989
42990         * modules/arpa_inet (arpa/inet.h): Use them.
42991
42992 2008-04-28  Eric Blake  <ebb9@byu.net>
42993
42994         Test getndelim2.
42995         * modules/getndelim2-tests: New file.
42996         * tests/test-getndelim2.c: Likewise.
42997         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42998         stream.
42999         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43000
43001         * MODULES.html.sh: Document new module.
43002
43003 2008-04-20  Bruno Haible  <bruno@clisp.org>
43004
43005         * lib/c-stack.c (die): Use raise.
43006         * modules/c-stack (Depends-on): Add raise.
43007
43008 2008-04-28  Bruno Haible  <bruno@clisp.org>
43009
43010         Expect rpmatch to be declared.
43011         * lib/yesno.c (rpmatch): Remove declaration.
43012
43013         Declare rpmatch.
43014         * lib/stdlib.in.h (rpmatch): New declaration.
43015         * lib/rpmatch.c: Include <stdlib.h> first.
43016         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43017         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43019         HAVE_RPMATCH.
43020         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43022         (Include): Set to <stdlib.h>.
43023         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43024         HAVE_RPMATCH.
43025         * NEWS: Document the change.
43026
43027 2008-04-28  Bruno Haible  <bruno@clisp.org>
43028
43029         Change rpmatch to use nl_langinfo when appropriate.
43030         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43031         (N_): New macro.
43032         (localized_pattern): New function/macro.
43033         (try): Remove match, nomatch arguments. Copy the pattern into safe
43034         memory before caching it.
43035         (rpmatch): Use localized_pattern. Add translator comments.
43036         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43037         Suggested by Eric Blake.
43038         * modules/rpmatch (Depends-on): Add stdbool.
43039
43040 2008-04-28  Eric Blake  <ebb9@byu.net>
43041
43042         Add rawmemchr module, matching glibc.
43043         * modules/string (Makefile.am): New indicator.
43044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43045         * lib/string.in.h (rawmemchr): Declare when appropriate.
43046         * modules/rawmemchr: New file.
43047         * m4/rawmemchr.m4: Likewise.
43048         * lib/rawmemchr.c: Likewise.
43049         * modules/rawmemchr-tests: Likewise.
43050         * tests/test-rawmemchr.c: Likewise.
43051         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43052         module.
43053         * modules/strchrnul (Depends-on): Add rawmemchr.
43054         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43055
43056         Whitespace cleanup.
43057         * tests/test-strchrnul.c: Reindent.
43058         * lib/strchrnul.c: Likewise.
43059
43060         Optimize and test strchrnul.
43061         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43062         * modules/strchrnul-tests: New file.
43063         * tests/test-strchrnul.c: Likewise.
43064
43065         Remove intprops dependency.
43066         * modules/memchr (Depends-on): Remove intprops.
43067         * modules/memrchr (Depends-on): Likewise.
43068         * modules/memchr2 (Depends-on): Likewise.
43069         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43070         * lib/memrchr.c (__memrchr): Likewise.
43071         * lib/memrchr2.c (memchr2): Likewise.
43072         Reported by Simon Josefsson.
43073
43074 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43075
43076         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43077         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43078
43079 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43080
43081         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43082
43083         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43084
43085         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43086
43087         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43088         declarations.
43089         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43090
43091         * m4/inet_pton.m4: Don't check for header files.
43092
43093         * m4/inet_ntop.m4: Don't check for header files.
43094
43095 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43096
43097         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43098         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43099         trigger for cygwin).
43100         Reported by Bruno Haible  <bruno@clisp.org>.
43101
43102 2008-04-28  Bruno Haible  <bruno@clisp.org>
43103
43104         * doc/posix-functions/strdup.texi: Mention mingw problem.
43105
43106 2008-04-27  Bruno Haible  <bruno@clisp.org>
43107
43108         * modules/stat-time-tests (Depends-on): Add sleep.
43109         * tests/test-stat-time.c (force_unlink): New function.
43110         (cleanup): Use it.
43111         (test_mtime): Remove the ctime related tests.
43112         (test_ctime): New function, containing the ctime related tests.
43113         (main): Call test_ctime, except on native Windows platforms.
43114
43115 2008-04-27  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/rpmatch.c (rpmatch): Add some comments.
43118         Reported by James Youngman <jay@gnu.org>.
43119
43120 2008-04-27  Bruno Haible  <bruno@clisp.org>
43121
43122         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43123         quiet NaNs.
43124
43125 2008-04-27  Bruno Haible  <bruno@clisp.org>
43126
43127         Make test-yesno.sh work on mingw.
43128         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43129         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43130         (main): Set stdin to binary mode.
43131         * modules/yesno-tests (Depends-on): Add binary-io.
43132
43133 2008-04-27  Bruno Haible  <bruno@clisp.org>
43134
43135         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43136         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43137         argument that lie outside the IEEE 854 domain.
43138         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43139         (gl_ISFINITE): Use it.
43140         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43141
43142 2008-04-27  Bruno Haible  <bruno@clisp.org>
43143
43144         Allow local renaming in config.h.
43145         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43146
43147 2008-04-27  Bruno Haible  <bruno@clisp.org>
43148
43149         * lib/memchr.c (__memchr): Change type of 'i'.
43150         * lib/memchr2.c (memchr2): Likewise.
43151
43152 2008-04-26  Eric Blake  <ebb9@byu.net>
43153         and Bruno Haible  <bruno@clisp.org>
43154
43155         Optimize and test memrchr.
43156         * modules/memrchr (Depends-on): Add intprops.
43157         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43158         * modules/memrchr-tests: New file.
43159         * tests/test-memrchr.c: New file.
43160
43161 2008-04-26  Bruno Haible  <bruno@clisp.org>
43162
43163         Add tentative support for DragonFly BSD.
43164         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43165         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43166         fp.
43167         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43168         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43169         * lib/fpurge.c (fpurge): Likewise.
43170         * lib/freadable.c (freaadable): Likewise.
43171         * lib/freadahead.c (freadahead): Likewise.
43172         * lib/freading.c (freading): Likewise.
43173         * lib/freadptr.c (freadptr): Likewise.
43174         * lib/freadseek.c (freadptrinc): Likewise.
43175         * lib/fseeko.c (fseeko): Likewise.
43176         * lib/fseterr.c (fseterr): Likewise.
43177         * lib/fwritable.c (fwritable): Likewise.
43178         * lib/fwriting.c (fwriting): Likewise.
43179
43180 2008-04-26  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/stdio-impl.h: New file.
43183         * lib/fbufmode.c: Include stdio-impl.h.
43184         (fbufmode): Use fp_, remove redundant #defines.
43185         * lib/fflush.c: Include stdio-impl.h.
43186         (clear_ungetc_buffer): Remove redundant #defines.
43187         * lib/fpurge.c: Include stdio-impl.h.
43188         (fpurge): Remove redundant #defines.
43189         * lib/freadable.c: Include stdio-impl.h.
43190         (freadable): Remove redundant #defines.
43191         * lib/freadahead.c: Include stdio-impl.h.
43192         (freadahead): Remove redundant #defines.
43193         * lib/freading.c: Include stdio-impl.h.
43194         (freading): Remove redundant #defines.
43195         * lib/freadptr.c: Include stdio-impl.h.
43196         (freadptr): Remove redundant #defines.
43197         * lib/freadseek.c: Include stdio-impl.h.
43198         (freadptrinc): Remove redundant #defines.
43199         * lib/fseeko.c: Include stdio-impl.h.
43200         (rpl_fseeko): Remove redundant #defines.
43201         * lib/fseterr.c: Include stdio-impl.h.
43202         (fseterr): Remove redundant #defines.
43203         * lib/fwritable.c: Include stdio-impl.h.
43204         (fwritable: Remove redundant #defines.
43205         * lib/fwriting.c: Include stdio-impl.h.
43206         (fwriting): Remove redundant #defines.
43207         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43208         * modules/fflush (Files): Likewise.
43209         * modules/fpurge (Files): Likewise.
43210         * modules/freadable (Files): Likewise.
43211         * modules/freadahead (Files): Likewise.
43212         * modules/freading (Files): Likewise.
43213         * modules/freadptr (Files): Likewise.
43214         * modules/freadseek (Files): Likewise.
43215         * modules/fseeko (Files): Likewise.
43216         * modules/fseterr (Files): Likewise.
43217         * modules/fwritable (Files): Likewise.
43218         * modules/fwriting (Files): Likewise.
43219
43220 2008-04-26  Bruno Haible  <bruno@clisp.org>
43221
43222         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43223         restore_seek_optimization, update_fpos_cache): New functions, extracted
43224         from rpl_fflush.
43225         (rpl_fflush): Use them.
43226         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43227         (gl_REPLACE_FFLUSH): Use it.
43228
43229 2008-04-26  Bruno Haible  <bruno@clisp.org>
43230
43231         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43232         on Solaris.
43233         * tests/test-xstrtoimax.sh: Likewise.
43234         * tests/test-xstrtoumax.sh: Likewise.
43235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43236
43237 2008-04-26  Bruno Haible  <bruno@clisp.org>
43238
43239         * modules/memchr-tests: New file.
43240         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43241
43242 2008-04-26  Eric Blake  <ebb9@byu.net>
43243             Bruno Haible  <bruno@clisp.org>
43244
43245         * lib/memchr.c: Include intprops.h.
43246         (__memchr): Optimize parallel detection of matching bytes. Rename local
43247         variables. Add explanatory comments.
43248
43249 2008-04-26  Bruno Haible  <bruno@clisp.org>
43250
43251         Fix module 'memchr', broken since 2000-10-28.
43252         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43253
43254 2008-04-26  Bruno Haible  <bruno@clisp.org>
43255
43256         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43257         comments.
43258
43259 2008-04-25  Eric Blake  <ebb9@byu.net>
43260
43261         Use native fstatat on cygwin 1.7.0.
43262         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43263         first.
43264
43265 2008-04-23  Eric Blake  <ebb9@byu.net>
43266
43267         Improve memchr2 performance.
43268         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43269         NUL bytes.
43270         * modules/memchr2 (Depends-on): Use intprops.h.
43271
43272 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43273
43274         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43275         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43276         <blp@cs.stanford.edu>.
43277
43278 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43279
43280         * lib/arpa_inet.in.h: New file.
43281
43282         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43283         (Makefile.am): Sed in substitute header file.
43284
43285         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43286         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43287
43288         * modules/inet_ntop (configure.ac): Use
43289         gl_ARPA_INET_MODULE_INDICATOR.
43290
43291         * modules/inet_pton (configure.ac): Use
43292         gl_ARPA_INET_MODULE_INDICATOR.
43293
43294 2008-04-22  Jim Meyering  <meyering@redhat.com>
43295
43296         * modules/verify (License): Re-license as LGPLv2+.
43297
43298 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43299
43300         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43301         parameter to void* as per POSIX standard (MinGW uses char*).
43302
43303 2008-04-21  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43306         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43307         Define to replacements if REPLACE_ISWCNTRL is 1.
43308         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43309         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43310         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43311         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43312         what it fixes.
43313         * doc/posix-functions/iswalpha.texi: Likewise.
43314         * doc/posix-functions/iswblank.texi: Likewise.
43315         * doc/posix-functions/iswcntrl.texi: Likewise.
43316         * doc/posix-functions/iswdigit.texi: Likewise.
43317         * doc/posix-functions/iswgraph.texi: Likewise.
43318         * doc/posix-functions/iswlower.texi: Likewise.
43319         * doc/posix-functions/iswprint.texi: Likewise.
43320         * doc/posix-functions/iswpunct.texi: Likewise.
43321         * doc/posix-functions/iswspace.texi: Likewise.
43322         * doc/posix-functions/iswupper.texi: Likewise.
43323         * doc/posix-functions/iswxdigit.texi: Likewise.
43324         Reported by Alain Guibert.
43325
43326 2008-04-21  Bruno Haible  <bruno@clisp.org>
43327
43328         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43329         Patch by Alain Guibert.
43330
43331 2008-04-21  Bruno Haible  <bruno@clisp.org>
43332
43333         Fix test failures on mingw.
43334         * tests/test-xstrtol.c (print_no_progname): New function.
43335         (main): Install it in error_print_progname hook.
43336         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43337         * tests/test-xstrtoimax.sh: Likewise.
43338         * tests/test-xstrtoumax.sh: Likewise.
43339
43340 2008-04-21  Bruno Haible  <bruno@clisp.org>
43341
43342         Fix test failure on mingw.
43343         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43344
43345 2008-04-21  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43348         Actually assign a value.
43349
43350 2008-04-20  Bruno Haible  <bruno@clisp.org>
43351
43352         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43353         take 2.
43354         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43355         'canonicalize-lgpl' module is also used.
43356         * lib/canonicalize-lgpl.c: Undo last change.
43357         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43358
43359 2008-04-20  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43362         config.h. Provide _mkdir based fallback for mingw.
43363         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43364         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43365         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43366         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43367         rather than defining mkdir in config.h.
43368         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43369         (gl_SYS_STAT_H_DEFAULTS): New macro.
43370         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43371         HAVE_IO_H any more.
43372         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43373         HAVE_DECL_MKDIR and HAVE_IO_H.
43374
43375 2008-04-20  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/isapipe.c: Port to native Windows platforms.
43378
43379 2008-04-20  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43382
43383 2008-04-21  Eric Blake  <ebb9@byu.net>
43384
43385         Work around preprocessors that don't handle UINTMAX_MAX.
43386         * lib/memchr2.c (memchr2): Avoid embedded #if.
43387         Reported by Alain Guibert, fix suggested by Bruno Haible.
43388
43389 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43390
43391         * doc/posix-functions/strftime.texi (strftime): Explain better
43392         Windows incompatibility.  Suggested by Micah Cowan
43393         <micah@cowan.name>.
43394
43395 2008-04-20  Bruno Haible  <bruno@clisp.org>
43396
43397         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43398         unistr/u8-mblen.
43399
43400 2008-04-20  Bruno Haible  <bruno@clisp.org>
43401
43402         Fix test failure on platforms with non-GNU iconv.
43403         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43404         (U_TO_U8): Use it, rather than u16_to_u8.
43405         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43406         units at the end of the input string.
43407         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43408
43409 2008-04-20  Bruno Haible  <bruno@clisp.org>
43410
43411         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43412         when the resulting length is 0.
43413         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43414
43415 2008-04-20  Bruno Haible  <bruno@clisp.org>
43416
43417         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43418         works.
43419         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43420
43421 2008-04-20  Bruno Haible  <bruno@clisp.org>
43422
43423         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43424         * modules/tsearch-tests (configure.ac): Test for initstate function.
43425
43426 2008-04-20  Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43429         for nlink_t if missing.
43430         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43431
43432 2008-04-19  Bruno Haible  <bruno@clisp.org>
43433
43434         Work around snprintf bug on Linux libc5.
43435         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43437         gl_SNPRINTF_SIZE1.
43438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43439         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43440         that test failed.
43441         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43442         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43443         * modules/snprintf (Files): Add m4/printf.m4.
43444         * modules/vsnprintf (Files): Likewise.
43445         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43446         * doc/posix-functions/vsnprintf.texi: Likewise.
43447
43448 2008-04-19  Bruno Haible  <bruno@clisp.org>
43449
43450         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43451         from 0.0058 to less than 10^-7.
43452
43453 2008-04-19  Bruno Haible  <bruno@clisp.org>
43454
43455         Fix rounding when a precision is given.
43456         * lib/vasnprintf.c (is_borderline): New function.
43457         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43458         9...9x.
43459         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43460         %e, %g.
43461         * tests/test-vasprintf-posix.c (test_function): Likewise.
43462         * tests/test-snprintf-posix.h (test_function): Likewise.
43463         * tests/test-sprintf-posix.h (test_function): Likewise.
43464         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43465         * tests/test-printf-posix.h (test_function): Likewise.
43466         * tests/test-printf-posix.output: Update.
43467         Reported by John Darrington <john@darrington.wattle.id.au> via
43468         Ben Pfaff <blp@cs.stanford.edu>.
43469
43470 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43471
43472         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43473         Suggested by Bruno Haible <bruno@clisp.org>.
43474
43475 2008-04-17  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43478         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43479         implementation.
43480         Patch by Bruce Merry <bmerry@gmail.com>.
43481
43482 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43483
43484         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43485         doesn't work under Windows.
43486
43487 2008-04-16  Bruno Haible  <bruno@clisp.org>
43488
43489         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43490         New macros.
43491         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43492         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43493         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43494         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43495         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43496         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43497         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43498         macros.
43499         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43500         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43501         Northern Sotho, Uighur.
43502
43503 2008-04-16  Bruno Haible  <bruno@clisp.org>
43504
43505         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43506         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43507         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43508         Reported by Daniel Bergström <daniel@octocode.com>.
43509
43510 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43511             Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43514         function.
43515         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43516         New functions, mostly extracted from gl_locale_name_default.
43517         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43518
43519 2008-04-16  Eric Blake  <ebb9@byu.net>
43520
43521         Adjust strtod detection to catch glibc 2.7 bug.
43522         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43523         Reported by John Gatewood Ham.
43524
43525 2008-04-16  Bruno Haible  <bruno@clisp.org>
43526
43527         Add tentative support for Linux libc5.
43528         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43529         * lib/fpurge.c (fpurge): Likewise.
43530         * lib/freadable.c (freadable): Likewise.
43531         * lib/freadahead.c (freadahead): Likewise.
43532         * lib/freading.c (freading): Likewise.
43533         * lib/freadptr.c (freadptr): Likewise.
43534         * lib/freadseek.c (freadptrinc): Likewise.
43535         * lib/fseeko.c (rpl_fseeko): Likewise.
43536         * lib/fseterr.c (fseterr): Likewise.
43537         * lib/fwritable.c (fwritable): Likewise.
43538         * lib/fwriting.c (fwriting): Likewise.
43539         Reported by Alain Guibert <alguibert+bts@free.fr>.
43540
43541 2008-04-15  Bruno Haible  <bruno@clisp.org>
43542
43543         * modules/mathl (configure.ac): Define module indicator.
43544
43545 2008-04-15  Bruno Haible  <bruno@clisp.org>
43546
43547         * lib/logl.c (logl): Remove unused variables.
43548
43549 2008-04-15  Bruno Haible  <bruno@clisp.org>
43550
43551         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43552         fails.
43553
43554 2008-04-15  Bruno Haible  <bruno@clisp.org>
43555
43556         * lib/trim.c (trim2): Fix argument of isspace() macro.
43557
43558 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43559
43560         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43561         to 0.
43562         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43563
43564 2008-04-14  Bruno Haible  <bruno@clisp.org>
43565
43566         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43567         AC_LANG_PROGRAM argument.
43568         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43569         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43571         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43572         * m4/math_h.m4 (gl_MATH_H): Likewise.
43573         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43574         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43575         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43576         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43577         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43578         * m4/regex.m4 (gl_REGEX): Likewise.
43579         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43580         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43582         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43583         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43584         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43587
43588 2008-04-14  Jim Meyering  <meyering@redhat.com>
43589
43590         test-strtod: fix typos: s/abs/fabs/
43591         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43592
43593 2008-04-13  Bruno Haible  <bruno@clisp.org>
43594
43595         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43596         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43597         module is also used and while not building the reloc-wrapper.
43598
43599 2008-04-13  Bruno Haible  <bruno@clisp.org>
43600
43601         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43602
43603 2008-04-13  Bruno Haible  <bruno@clisp.org>
43604
43605         Fix AIX compilation failure introduced on 2008-04-02.
43606         * tests/test-frexp.c (exp): Undefine before redefining.
43607         * tests/test-frexpl.c (exp): Likewise.
43608
43609 2008-04-13  Bruno Haible  <bruno@clisp.org>
43610
43611         Work around a HP-UX stdio bug.
43612         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43613         * tests/test-ftello.c (main): Likewise.
43614         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43615         * doc/posix-functions/ftello.texi: Likewise.
43616
43617 2008-04-13  Bruno Haible  <bruno@clisp.org>
43618
43619         Make test-signbit pass on HP-UX/hppa.
43620         * tests/test-signbit.c (minus_zerol): New variable.
43621         (test_signbitl): Use it.
43622
43623 2008-04-13  Bruno Haible  <bruno@clisp.org>
43624
43625         Make truncl work on OSF/1 4.0.
43626         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43627         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43628         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43630         HAVE_DECL_TRUNCL.
43631         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43632         HAVE_DECL_TRUNCL.
43633         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43634
43635 2008-04-13  Bruno Haible  <bruno@clisp.org>
43636
43637         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43638
43639 2008-04-13  Bruno Haible  <bruno@clisp.org>
43640
43641         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43642         expression, so as to avoid HP-UX 11 cc compiler bug.
43643
43644 2008-04-13  Bruno Haible  <bruno@clisp.org>
43645
43646         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43647
43648 2008-04-13  Bruno Haible  <bruno@clisp.org>
43649
43650         * lib/git-merge-changelog.c: Remove empty declaration outside of
43651         functions.
43652
43653 2008-04-13  Bruno Haible  <bruno@clisp.org>
43654
43655         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43656
43657 2008-04-13  Bruno Haible  <bruno@clisp.org>
43658
43659         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43660         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43661         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43662         also if it exists but lacks definitions of the SHUT_* macros.
43663         * modules/sys_socket (Description): Update.
43664         Reported by Elbert Pol <e.pol@chello.nl>.
43665
43666 2008-04-13  Bruno Haible  <bruno@clisp.org>
43667
43668         * lib/localcharset.c (OS2): Don't redefine if already defined.
43669         Reported by Elbert Pol <e.pol@chello.nl>.
43670
43671 2008-04-13  Bruno Haible  <bruno@clisp.org>
43672
43673         * lib/binary-io.h [__EMX__]: Include <io.h>.
43674         Reported by Elbert Pol <e.pol@chello.nl>.
43675
43676 2008-04-12  Bruno Haible  <bruno@clisp.org>
43677
43678         * lib/fpucw.h: Enable the definitions also for x86_64.
43679         Needed for NetBSD/x86_64.
43680         Reported by Thomas Klausner <tk@giga.or.at>.
43681
43682 2008-04-12  Bruno Haible  <bruno@clisp.org>
43683
43684         * tests/test-strtod.c: Include isnand.h.
43685         (main): Use isnand instead of isnan.
43686         Reported by Jim Meyering.
43687
43688 2008-04-12  Bruno Haible  <bruno@clisp.org>
43689
43690         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43691         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43692
43693 2008-04-12  Jim Meyering  <meyering@redhat.com>
43694
43695         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43696
43697 2008-04-12  Bruno Haible  <bruno@clisp.org>
43698
43699         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43700         Reported by Elbert Pol <e.pol@chello.nl>.
43701
43702 2008-04-12  Eric Blake  <ebb9@byu.net>
43703
43704         Work around Solaris 10 math.h bug.
43705         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43706         (gl_MATH_H_DEFAULTS): Set up default.
43707         * modules/math (Makefile.am): Replace new indicators.
43708         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43709         * tests/test-math.c (main): Test this.
43710         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43711         * doc/posix-headers/math.texi (math.h): Mention bug.
43712         Reported by Nelson H. F. Beebe and Jim Meyering.
43713
43714 2008-04-11  Bruno Haible  <bruno@clisp.org>
43715
43716         Adapt to future versions of Apple GCC.
43717         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43718         Reported by Peter O'Gorman <peter@pogma.com>.
43719
43720 2008-04-11  Bruno Haible  <bruno@clisp.org>
43721
43722         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43723
43724 2008-04-11  Bruno Haible  <bruno@clisp.org>
43725
43726         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43727
43728         * modules/getaddrinfo-tests (Makefile.am): Define
43729         test_getaddrinfo_LDADD.
43730
43731 2008-04-11  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43734         (init): Fix syntax error.
43735         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43736         is declared.
43737
43738 2008-04-11  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43741         * modules/glob (Depends-on): Add stdbool.
43742
43743 2008-04-11  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/trim.c: Include <string.h>.
43746
43747 2008-04-11  Eric Blake  <ebb9@byu.net>
43748
43749         Avoid compile failure on OS/2.
43750         * lib/regex_internal.h (internal_function): Disable optimization
43751         on OS/2 (__EMX__), where it caused compiler error.
43752         Reported by Elbert Pol.
43753
43754 2008-04-11  Bruno Haible  <bruno@clisp.org>
43755
43756         Flush the standard error stream before aborting. Needed on mingw.
43757         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43758         * tests/test-array_list.c (ASSERT): Likewise.
43759         * tests/test-array_oset.c (ASSERT): Likewise.
43760         * tests/test-avltree_list.c (ASSERT): Likewise.
43761         * tests/test-avltree_oset.c (ASSERT): Likewise.
43762         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43763         * tests/test-binary-io.c (ASSERT): Likewise.
43764         * tests/test-byteswap.c (ASSERT): Likewise.
43765         * tests/test-c-ctype.c (ASSERT): Likewise.
43766         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43767         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43768         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43769         * tests/test-c-strstr.c (ASSERT): Likewise.
43770         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43771         * tests/test-canonicalize.c (ASSERT): Likewise.
43772         * tests/test-carray_list.c (ASSERT): Likewise.
43773         * tests/test-ceilf1.c (ASSERT): Likewise.
43774         * tests/test-ceilf2.c (ASSERT): Likewise.
43775         * tests/test-ceill.c (ASSERT): Likewise.
43776         * tests/test-count-one-bits.c (ASSERT): Likewise.
43777         * tests/test-fbufmode.c (ASSERT): Likewise.
43778         * tests/test-fflush2.c (ASSERT): Likewise.
43779         * tests/test-floorf1.c (ASSERT): Likewise.
43780         * tests/test-floorf2.c (ASSERT): Likewise.
43781         * tests/test-floorl.c (ASSERT): Likewise.
43782         * tests/test-fopen.c (ASSERT): Likewise.
43783         * tests/test-fpending.c (ASSERT): Likewise.
43784         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43785         * tests/test-fpurge.c (ASSERT): Likewise.
43786         * tests/test-freadable.c (ASSERT): Likewise.
43787         * tests/test-freadahead.c (ASSERT): Likewise.
43788         * tests/test-freading.c (ASSERT): Likewise.
43789         * tests/test-freadptr.c (ASSERT): Likewise.
43790         * tests/test-freadptr2.c (ASSERT): Likewise.
43791         * tests/test-freadseek.c (ASSERT): Likewise.
43792         * tests/test-freopen.c (ASSERT): Likewise.
43793         * tests/test-frexp.c (ASSERT): Likewise.
43794         * tests/test-frexpl.c (ASSERT): Likewise.
43795         * tests/test-fseek.c (ASSERT): Likewise.
43796         * tests/test-fseeko.c (ASSERT): Likewise.
43797         * tests/test-fstrcmp.c (ASSERT): Likewise.
43798         * tests/test-ftell.c (ASSERT): Likewise.
43799         * tests/test-ftello.c (ASSERT): Likewise.
43800         * tests/test-func.c (ASSERT): Likewise.
43801         * tests/test-fwritable.c (ASSERT): Likewise.
43802         * tests/test-fwriting.c (ASSERT): Likewise.
43803         * tests/test-getdelim.c (ASSERT): Likewise.
43804         * tests/test-getline.c (ASSERT): Likewise.
43805         * tests/test-i-ring.c (ASSERT): Likewise.
43806         * tests/test-iconv-utf.c (ASSERT): Likewise.
43807         * tests/test-iconv.c (ASSERT): Likewise.
43808         * tests/test-isfinite.c (ASSERT): Likewise.
43809         * tests/test-isnand.c (ASSERT): Likewise.
43810         * tests/test-isnanf.c (ASSERT): Likewise.
43811         * tests/test-isnanl.h (ASSERT): Likewise.
43812         * tests/test-ldexpl.c (ASSERT): Likewise.
43813         * tests/test-linked_list.c (ASSERT): Likewise.
43814         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43815         * tests/test-localename.c (ASSERT): Likewise.
43816         * tests/test-lseek.c (ASSERT): Likewise.
43817         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43818         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43819         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43820         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43821         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43822         * tests/test-mbschr.c (ASSERT): Likewise.
43823         * tests/test-mbscspn.c (ASSERT): Likewise.
43824         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43825         * tests/test-mbspbrk.c (ASSERT): Likewise.
43826         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43827         * tests/test-mbsrchr.c (ASSERT): Likewise.
43828         * tests/test-mbsspn.c (ASSERT): Likewise.
43829         * tests/test-mbsstr1.c (ASSERT): Likewise.
43830         * tests/test-mbsstr2.c (ASSERT): Likewise.
43831         * tests/test-mbsstr3.c (ASSERT): Likewise.
43832         * tests/test-memchr2.c (ASSERT): Likewise.
43833         * tests/test-memmem.c (ASSERT): Likewise.
43834         * tests/test-open.c (ASSERT): Likewise.
43835         * tests/test-printf-frexp.c (ASSERT): Likewise.
43836         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43837         * tests/test-printf-posix.c (ASSERT): Likewise.
43838         * tests/test-quotearg.c (ASSERT): Likewise.
43839         * tests/test-rbtree_list.c (ASSERT): Likewise.
43840         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43841         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43842         * tests/test-round1.c (ASSERT): Likewise.
43843         * tests/test-roundf1.c (ASSERT): Likewise.
43844         * tests/test-roundl.c (ASSERT): Likewise.
43845         * tests/test-signbit.c (ASSERT): Likewise.
43846         * tests/test-sleep.c (ASSERT): Likewise.
43847         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43848         * tests/test-snprintf.c (ASSERT): Likewise.
43849         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43850         * tests/test-stat-time.c (ASSERT): Likewise.
43851         * tests/test-strcasestr.c (ASSERT): Likewise.
43852         * tests/test-strerror.c (ASSERT): Likewise.
43853         * tests/test-striconv.c (ASSERT): Likewise.
43854         * tests/test-striconveh.c (ASSERT): Likewise.
43855         * tests/test-striconveha.c (ASSERT): Likewise.
43856         * tests/test-strsignal.c (ASSERT): Likewise.
43857         * tests/test-strstr.c (ASSERT): Likewise.
43858         * tests/test-strtod.c (ASSERT): Likewise.
43859         * tests/test-trunc1.c (ASSERT): Likewise.
43860         * tests/test-trunc2.c (ASSERT): Likewise.
43861         * tests/test-truncf1.c (ASSERT): Likewise.
43862         * tests/test-truncf2.c (ASSERT): Likewise.
43863         * tests/test-truncl.c (ASSERT): Likewise.
43864         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43865         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43866         * tests/test-vasnprintf.c (ASSERT): Likewise.
43867         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43868         * tests/test-vasprintf.c (ASSERT): Likewise.
43869         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43870         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43871         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43872         * tests/test-vsnprintf.c (ASSERT): Likewise.
43873         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43874         * tests/test-wcwidth.c (ASSERT): Likewise.
43875         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43876         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43877         * tests/test-xvasprintf.c (ASSERT): Likewise.
43878         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43879         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43880         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43881         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43882         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43883         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43884         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43885         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43886         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43887         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43888         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43889         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43890         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43891         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43892         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43893         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43894         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43895         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43896         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43897         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43898         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43899         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43900         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43901         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43902         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43903         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43904         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43905         * tests/unictype/test-combining.c (ASSERT): Likewise.
43906         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43907         * tests/unictype/test-digit.c (ASSERT): Likewise.
43908         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43909         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43910         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43911         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43912         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43913         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43914         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43915         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43916         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43917         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43918         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43919         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43920         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43921         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43922         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43923         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43924         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43925         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43926         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43927         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43928         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43929         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43930         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43931         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43932         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43933         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43934         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43935         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43936         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43937         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43938         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43939         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43940         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43941         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43942         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43943         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43944         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43945         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43946         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43947         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43948         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43949         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43950         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43951         Reported by Eric Blake.
43952
43953 2008-04-11  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/wchar.in.h: Tweak comment.
43956
43957 2008-04-11  Bruno Haible  <bruno@clisp.org>
43958
43959         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43960         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43961         gl_COMMON.
43962         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43963
43964 2008-04-11  Bruno Haible  <bruno@clisp.org>
43965
43966         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43967
43968 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43969
43970         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43971         of attempting to use non-existing /dev/*random.  Based on patch
43972         from Adam Strzelecki <ono@java.pl> in
43973         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43974
43975 2008-04-08  Bruno Haible  <bruno@clisp.org>
43976
43977         Add tentative support for emx+gcc.
43978         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43979         * lib/fpurge.c (fpurge): Likewise.
43980         * lib/freadable.c (freadable): Likewise.
43981         * lib/freadahead.c (freadahead): Likewise.
43982         * lib/freading.c (freading): Likewise.
43983         * lib/freadptr.c (freadptr): Likewise.
43984         * lib/freadseek.c (freadptrinc): Likewise.
43985         * lib/fseeko.c (rpl_fseeko): Likewise.
43986         * lib/fseterr.c (fseterr): Likewise.
43987         * lib/fwritable.c (fwritable): Likewise.
43988         * lib/fwriting.c (fwriting): Likewise.
43989         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43990
43991 2008-04-09  Eric Blake  <ebb9@byu.net>
43992
43993         Avoid some autoconf warnings.
43994         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43995         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43996         * m4/afs.m4 (gl_AFS): Likewise.
43997         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43998         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44000         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44001         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44002         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44003         (AC_CHECK_DECLS_ONCE): Likewise.
44004         Rename file...
44005         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44006         gnulib-tool requires autoconf 2.59 or better.
44007         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44008
44009 2008-04-08  Eric Blake  <ebb9@byu.net>
44010
44011         Use 'git describe --match' if present (added in git 1.5.5).
44012         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44013         if possible.
44014
44015 2008-04-08  Bruno Haible  <bruno@clisp.org>
44016
44017         Add tentative support for OpenServer.
44018         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44019         _ptr, _cnt.
44020         * lib/fpurge.c (fpurge): Likewise.
44021         * lib/freadable.c (freadable): Likewise.
44022         * lib/freadahead.c (freadahead): Likewise.
44023         * lib/freading.c (freading): Likewise.
44024         * lib/freadptr.c (freadptr): Likewise.
44025         * lib/freadseek.c (freadptrinc): Likewise.
44026         * lib/fseeko.c (rpl_fseeko): Likewise.
44027         * lib/fseterr.c (fseterr): Likewise.
44028         * lib/fwritable.c (fwritable): Likewise.
44029         * lib/fwriting.c (fwriting): Likewise.
44030         Reported by Roger Cornelius <rac@tenzing.org> and
44031         Brian K. White <brian@aljex.com>.
44032
44033 2008-04-06  Jim Meyering  <meyering@redhat.com>
44034
44035         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44036
44037 2008-04-06  Bruno Haible  <bruno@clisp.org>
44038
44039         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44040         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44041         * tests/test-printf-posix.sh: Likewise.
44042         * tests/test-vfprintf-posix.sh: Likewise.
44043         * tests/test-vprintf-posix.sh: Likewise.
44044         * tests/test-xprintf-posix.sh: Likewise.
44045
44046 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44047
44048         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44049         hide error from 'ls', needed on OS/2.
44050         Report by Elbert Pol <elbert.pol@gmail.com>.
44051
44052 2008-04-04  Eric Blake  <ebb9@byu.net>
44053
44054         Make test-fseeko.c failures meaningful.
44055         * tests/test-fseeko.c: Print line number on failure.
44056         * tests/test-fseek.c: Likewise.
44057         Reported by Nelson H. F. Beebe.
44058
44059         Improve strtod bug detection check.
44060         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44061         required for Solaris 10.
44062         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44063
44064 2008-04-04  Bruno Haible  <bruno@clisp.org>
44065
44066         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44067         by m4/setenv.m4.
44068
44069 2008-04-03  Eric Blake  <ebb9@byu.net>
44070
44071         Ensure sane .version contents.
44072         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44073         version string.
44074         * build-aux/git-version-gen: Improve documentation.
44075
44076         Make GNU make output nicer.
44077         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44078         MAKECMDGOALS to enforce message for all command line targets.  Set
44079         srcdir for use in maint.mk.
44080
44081         Another maintainer tweak.
44082         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44083         a target that regenerates version.
44084
44085 2008-04-03  Jim Meyering  <meyering@redhat.com>
44086
44087         vc-list-files: don't cause coreutils "make po-check" failure
44088         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44089
44090 2008-04-03  Eric Blake  <ebb9@byu.net>
44091
44092         Allow VPATH usage of vc-list-files.
44093         * build-aux/vc-list-files (scriptversion): Add timestamp.
44094         (options): Add --help, --version, -C.
44095         (CVS): Support installed cvsu.
44096
44097 2008-04-02  Bruno Haible  <bruno@clisp.org>
44098
44099         Avoid some "statement with no effect" warnings from gcc.
44100         * tests/test-wctype.c (main): Explicitly ignore unused values.
44101         Reported by Jim Meyering.
44102
44103 2008-04-02  Jim Meyering  <meyering@redhat.com>
44104
44105         Avoid some warnings from "gcc -Wshadow".
44106         * tests/test-frexp.c (exp): Define to a different identifier.
44107         * tests/test-frexpl.c (exp): Likewise.
44108
44109 2008-04-03  Jim Meyering  <meyering@redhat.com>
44110
44111         bootstrap: remove dangling *.[ch] symlinks from lib
44112         * build-aux/bootstrap [dangling symlink removal]: Move find's
44113         -depth option to precede all others, to avoid a warning.
44114         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44115
44116 2008-04-02  Bruno Haible  <bruno@clisp.org>
44117
44118         Avoid some warnings from "gcc -Wshadow".
44119         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44120         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44121         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44122         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44123         Reported by Jim Meyering.
44124
44125 2008-04-01  Bruno Haible  <bruno@clisp.org>
44126
44127         Fix test to work on IRIX 6.5 with cc.
44128         * tests/test-math.c (numeric_equal): New function.
44129         (main): Use it.
44130
44131 2008-04-01  Bruno Haible  <bruno@clisp.org>
44132
44133         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44134
44135 2008-04-01  Bruno Haible  <bruno@clisp.org>
44136
44137         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44138         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44139         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44140         (Depends-on): Remove math.
44141
44142         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44143         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44144         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44145         (Depends-on): Remove math.
44146
44147         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44148         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44149         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44150         (Depends-on): Remove math.
44151         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44152         (Depends-on): Remove math.
44153
44154         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44155         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44156         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44157         (Depends-on): Remove math.
44158         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44159         (Depends-on): Remove math.
44160
44161         * tests/test-round1.c: Include nan.h.
44162         (main): Use NaNd instead of NAN.
44163         * modules/round-tests (Files): Add tests/nan.h.
44164
44165         * tests/test-trunc1.c: Include nan.h.
44166         (main): Use NaNd instead of NAN.
44167         * modules/trunc-tests (Files): Add tests/nan.h.
44168
44169         * tests/test-roundf1.c: Include nan.h.
44170         (main): Use NaNf instead of NAN.
44171         * modules/roundf-tests (Files): Add tests/nan.h.
44172
44173         * tests/test-truncf1.c: Include nan.h.
44174         (main): Use NaNf instead of NAN.
44175         * modules/truncf-tests (Files): Add tests/nan.h.
44176
44177         * tests/test-ceilf1.c: Include nan.h.
44178         (main): Use NaNf instead of NAN.
44179         * modules/ceilf-tests (Files): Add tests/nan.h.
44180
44181         * tests/test-floorf1.c: Include nan.h.
44182         (main): Use NaNf instead of NAN.
44183         * modules/floorf-tests (Files): Add tests/nan.h.
44184
44185         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44186         (main): Use NaNf instead of NAN.
44187         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44188
44189         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44190         (main): Use NaNd instead of NAN.
44191         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44192
44193         * tests/test-frexp.c: Include nan.h.
44194         (main): Use NaNd instead of NAN.
44195         * modules/frexp-tests (Files): Add tests/nan.h.
44196
44197         * lib/isnan.c: Don't include <math.h>.
44198         (FUNC): Don't use NAN macro.
44199         * modules/isnand-nolibm (Depends-on): Remove math.
44200         * modules/isnanf-nolibm (Depends-on): Remove math.
44201         * modules/isnanl (Depends-on): Remove math.
44202         * modules/isnanl-nolibm (Depends-on): Remove math.
44203
44204         * tests/nan.h: New file.
44205
44206 2008-04-01  Eric Blake  <ebb9@byu.net>
44207
44208         Fix typos.
44209         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44210         values to be the right type.
44211
44212         For now, cater to gnulib strtod inaccuracies.
44213         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44214         fractional results.  While not as nice from a QoI perspective, it
44215         is a quicker patch than correctly implementing decimal to binary
44216         rounding.
44217
44218 2008-03-31  Eric Blake  <ebb9@byu.net>
44219
44220         Guarantee a definition of NAN.
44221         * lib/math.in.h (NAN): Define if missing.
44222         * tests/test-math.c (main): Test it.
44223         * doc/posix-headers/math.texi (math.h): Document this.
44224         * lib/isnan.c (rpl_isnand): Use it.
44225         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44226         * tests/test-floorf1.c (NaN): Likewise.
44227         * tests/test-frexp.c (NaN): Likewise.
44228         * tests/test-isnand.c (NaN): Likewise.
44229         * tests/test-isnanf.c (NaN): Likewise.
44230         * tests/test-round1.c (NaN): Likewise.
44231         * tests/test-roundf1.c (NaN): Likewise.
44232         * tests/test-snprintf-posix.h (NaN): Likewise.
44233         * tests/test-sprintf-posix.h (NaN): Likewise.
44234         * tests/test-trunc1.c (NaN): Likewise.
44235         * tests/test-truncf1.c (NaN): Likewise.
44236         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44237         * tests/test-vasprintf-posix.c (NaN): Likewise.
44238         * modules/isnand-nolibm (Depends-on): Add math.
44239         * modules/isnanf-nolibm (Depends-on): Likewise.
44240         * modules/isnanl (Depends-on): Likewise.
44241         * modules/isnanl-nolibm (Depends-on): Likewise.
44242         * modules/snprintf-posix-tests (Depends-on): Likewise.
44243         * modules/sprintf-posix-tests (Depends-on): Likewise.
44244         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44245         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44246         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44247         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44248
44249 2008-03-31  Bruno Haible  <bruno@clisp.org>
44250
44251         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44252         * doc/posix-functions/strtod.texi: Likewise.
44253
44254 2008-03-31  Bruno Haible  <bruno@clisp.org>
44255
44256         * tests/test-strtod.c (main): Don't use C99 syntax.
44257
44258 2008-03-31  Bruno Haible  <bruno@clisp.org>
44259
44260         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44261         Reported by Eric Blake.
44262
44263 2008-03-31  Jim Meyering  <meyering@redhat.com>
44264
44265         Don't compare actual signbit return values.
44266         * tests/test-strtod.c (main): Rather, compare only their
44267         zero/non-zero nature.
44268
44269 2008-03-31  Eric Blake  <ebb9@byu.net>
44270
44271         More strtod documentation.
44272         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44273         failures as distinct bugs.
44274
44275 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44276
44277         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44278         Problem reported by Erik Benada in
44279         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44280
44281 2008-03-30  Bruno Haible  <bruno@clisp.org>
44282
44283         * tests/test-strtod.c: Add comments about which assertion fails on which
44284         platform.
44285         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44286
44287 2008-03-30  Eric Blake  <ebb9@byu.net>
44288
44289         Test signbit behavior on zeros.
44290         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44291         (test_signbitd, test_signbitl): Likewise.
44292
44293         More strtod touchups.
44294         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44295         sign of negative underflow, for now.  Use .5, not .1.
44296         * doc/posix-functions/strtod.texi (strtod): Mention these
44297         limitations.
44298         Reported by Jim Meyering.
44299
44300 2008-03-30  Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44303         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44304
44305 2008-03-30  Bruno Haible  <bruno@clisp.org>
44306
44307         Avoid failure when attempting to return empty iconv results on some
44308         platforms.
44309         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44310         allocation, don't report ENOMEM when the resulting string is empty.
44311
44312 2008-03-30  Bruno Haible  <bruno@clisp.org>
44313
44314         Fix buffer overrun.
44315         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44316         Don't consider the width for tmp_length. Check count against tmp_length
44317         before doing the padding. Ensure enough allocation during padding.
44318
44319 2008-03-30  Eric Blake  <ebb9@byu.net>
44320
44321         strtod touchups.
44322         * lib/strtod.c (strtod): Avoid compiler warnings.
44323         Reported by Jim Meyering.
44324
44325 2008-03-30  Bruno Haible  <bruno@clisp.org>
44326
44327         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44328         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44329         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44330         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44331         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44332         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44333         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44334         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44335
44336         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44337         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44338         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44339         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44340         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44341         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44342         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44343         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44344
44345         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44346         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44347         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44348         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44349         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44350         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44351         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44352         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44353
44354         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44355         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44356
44357         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44358         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44359
44360         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44361         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44362
44363         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44365         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44366
44367         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44369         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44370
44371         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44373         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44374
44375         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44377         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44378
44379         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44380         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44382         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44383         (Depends-on): Add EOVERFLOW.
44384         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44385         (Depends-on): Add EOVERFLOW.
44386         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44387         (Depends-on): Add EOVERFLOW.
44388         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44389         (Depends-on): Add EOVERFLOW.
44390         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44391         (Depends-on): Add EOVERFLOW.
44392         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44393         (Depends-on): Add EOVERFLOW.
44394         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44395         (Depends-on): Add EOVERFLOW.
44396         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44397         (Depends-on): Add EOVERFLOW.
44398
44399         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44401         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44402
44403         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44405         * modules/snprintf (Depends-on): Add EOVERFLOW.
44406
44407         * lib/poll.c (EOVERFLOW): Remove fallback.
44408         * modules/poll (Depends-on): Add EOVERFLOW.
44409
44410         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44411         * modules/getugroups (Depends-on): Add EOVERFLOW.
44412
44413         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44414         * modules/getdelim (Depends-on): Add EOVERFLOW.
44415
44416         * lib/ftell.c (EOVERFLOW): Remove fallback.
44417         * modules/ftell (Depends-on): Add EOVERFLOW.
44418
44419         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44421         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44422
44423         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44424
44425         * modules/EOVERFLOW-tests: New file.
44426         * tests/test-EOVERFLOW.c: New file.
44427
44428         * modules/EOVERFLOW: New file.
44429         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44430
44431 2008-03-30  Bruno Haible  <bruno@clisp.org>
44432
44433         Fix bug introduced on 2007-06-10.
44434         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44435         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44436
44437 2008-03-30  Bruno Haible  <bruno@clisp.org>
44438
44439         Improve freadseek's efficiency after ungetc.
44440         * lib/freadseek.c: Include freadahead.h.
44441         (freadptrinc): New function, extracted from freadseek.
44442         (freadseek): Use it in a loop. Use freadahead to determine the number
44443         of loop iterations.
44444         * modules/freadseek (Depends-on): Add freadahead.
44445         (configure.ac): Require AC_C_INLINE.
44446
44447 2008-03-30  Bruno Haible  <bruno@clisp.org>
44448
44449         * lib/freadseek.c (freadseek): Don't ignore the return value of
44450         freadptr.
44451
44452 2008-03-29  Eric Blake  <ebb9@byu.net>
44453
44454         Add hex float support.
44455         * modules/strtod (Depends-on): Add c-ctype.
44456         (Link): Mention POW_LIB.
44457         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44458         whitespace between 'e' and exponent.
44459         * tests/test-strtod.c (main): Enable hex float tests.
44460         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44461         now provides.
44462
44463         Document various strtod bugs, with some fixes.
44464         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44465         "-0x", "inf", "nan", and hex constants.
44466         * doc/posix-functions/atof.texi (atof): Likewise.
44467         * modules/stdlib (Makefile.am): Support strtod.
44468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44469         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44470         detect additional strtod bugs.
44471         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44472         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44473         bool where appropriate.  Parse 'inf' and 'nan'.
44474         * tests/test-strtod.c: New file.
44475         * modules/strtod (Depends-on): Add stdbool, stdlib.
44476         (configure.ac): Turn on module indicator.
44477         * modules/strtod-tests: New module.
44478
44479 2008-03-29  Eric Blake  <ebb9@byu.net>
44480
44481         Fix ftell on mingw.
44482         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44483         * modules/ftell-tests (Depends-on): Add binary-io.
44484         * modules/ftello-tests (Depends-on): Likewise.
44485         * tests/test-ftell.c (main): Enhance test to cover behavior after
44486         ungetc.  Enforce binary mode.
44487         * tests/test-ftello.c (main): Likewise.
44488
44489         Pass test-freadseek on cygwin.
44490         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44491         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44492         ungetc buffer.
44493
44494         * tests/test-fflush2.c (main): Fix typo.
44495
44496 2008-03-29  Bruno Haible  <bruno@clisp.org>
44497
44498         * tests/test-fflush2.c (main): Temporarily disable the contents of
44499         this test.
44500         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44501         Reported by Eric Blake.
44502
44503 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44504
44505         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44506         (GC_SHA224_DIGEST_SIZE): Add.
44507
44508         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44509         (gc_hash_digest_length): Likewise.
44510         (gc_hash_buffer): Likewise.
44511
44512 2008-03-25  Bruno Haible  <bruno@clisp.org>
44513
44514         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44515         detail which gettext release to use.
44516         Reported by Simon Josefsson.
44517
44518 2008-03-26  Jim Meyering  <meyering@redhat.com>
44519
44520         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44521         * modules/gnumakefile (clean-GNUmakefile): Also, use
44522         test ... && ... || : syntax rather than if-then ... fi.
44523
44524         gnumakefile: Don't double-quote-expand $(VPATH) value.
44525         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44526
44527 2008-03-24  Eric Blake  <ebb9@byu.net>
44528
44529         Alter GNUmakefile to install into top directory.
44530         * modules/maintainer-makefile: Split, and add dependency...
44531         * modules/gnumakefile: to this new module.
44532         * build-aux/GNUmakefile: Move...
44533         * top/GNUmakefile: ...here.
44534         * build-aux/maint.mk: Move...
44535         * top/maint.mk: ...here.
44536         * MODULES.html.sh (Support for maintaining...): Document new
44537         module.
44538
44539 2008-03-23  Bruno Haible  <bruno@clisp.org>
44540
44541         * gnulib-tool: New options --vc-files, --no-vc-files.
44542         (func_usage): Document them.
44543         (vc_files): New variable.
44544         (func_import): Consider vc_files.
44545         (func_create_testdir): Set vc_files to empty.
44546         Suggested by Jim Meyering and Karl Berry.
44547
44548 2008-03-23  Bruno Haible  <bruno@clisp.org>
44549
44550         Fix regex compilation error on HP-UX 11.
44551         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44552         * modules/regex (Files): Add m4/mbstate_t.m4.
44553         Reported by Ton Voon <ton.voon@altinity.com>.
44554
44555 2008-03-23  Bruno Haible  <bruno@clisp.org>
44556
44557         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44558
44559 2008-03-23  Eric Blake  <ebb9@byu.net>
44560             Bruno Haible  <bruno@clisp.org>
44561
44562         Install files from top/ in the destination directory.
44563         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44564         augmentation also for the files from top/.
44565         (func_import, func_create_testdir): Rewrite file names:
44566         top/filename -> filename.
44567
44568 2008-03-23  Bruno Haible  <bruno@clisp.org>
44569
44570         Tweak "gnulib --version" output.
44571         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44572
44573 2008-03-23  Bruno Haible  <bruno@clisp.org>
44574
44575         Tweak "gnulib --version" output.
44576         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44577         rather than contents of ChangeLog, when possible.
44578
44579 2008-03-21  Eric Blake  <ebb9@byu.net>
44580
44581         More --version tweaks.
44582         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44583         date of last ChangeLog entry.
44584
44585 2008-03-21  Jim Meyering  <meyering@redhat.com>
44586
44587         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44588
44589 2008-03-20  Eric Blake  <ebb9@byu.net>
44590
44591         VPATH fix.
44592         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44593
44594 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44595
44596         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44597         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44598
44599 2008-03-20  Eric Blake  <ebb9@byu.net>
44600
44601         Sync GNUmakefile with coreutils.
44602         * build-aux/GNUmakefile (have-Makefile): Rename...
44603         (_have-Makefile): ...to this, for namespace consideration.
44604         (GNUmakefile.cfg): Include, if present.
44605         (_autoreconf): Define a default.
44606         (_is-dist-target): New rule for rebuilds to pick up intra-release
44607         version.
44608         (maint-cfg.mk): Rename...
44609         (cfg.mk): ...to this.
44610
44611 2008-03-18  Jim Meyering  <meyering@redhat.com>
44612
44613         New script and module: mktempd
44614         * MODULES.html.sh (maint+release support): Add mktempd.
44615         * build-aux/mktempd: New file.
44616         * modules/mktempd: New file.
44617
44618 2008-03-15  Jim Meyering  <meyering@redhat.com>
44619
44620         Undo last change.
44621         * lib/sha1.c, lib/md5.c: 63 != ~63.
44622         Reported by Andreas Schwab.
44623
44624         sha1.c, md5.c: Hoist a redundant expression.
44625         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44626         "ctx->buflen" only once, before calling *_process_block.
44627         * lib/md5.c (md5_process_bytes): Likewise.
44628
44629 2008-03-14  Eric Blake  <ebb9@byu.net>
44630
44631         Bump copyright year in files generated by gnulib-tool.
44632         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44633         gnulib-tool, rather than hard-coding it.
44634
44635         Fix 'gnulib-tool --version' output to work with git.
44636         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44637         (startup): ...here.
44638         (func_version): Use it to invoke git-version-gen, rather than
44639         relying on CVS keyword expansion.  Modernize wording.
44640         (cvsdatestamp, last_checkin_date, version): Kill unused
44641         variables.
44642
44643 2008-03-12  Jim Meyering  <meyering@redhat.com>
44644
44645         Recognize optional cast of the argument to free.
44646         * build-aux/useless-if-before-free: Update regexps.
44647
44648         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44649
44650 2008-03-11  Bruno Haible  <bruno@clisp.org>
44651
44652         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44653         by a single package.
44654         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44655         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44656         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44657         Reported by Sam Steingold <sds@gnu.org>.
44658
44659 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44660
44661         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44662         repositories.
44663
44664 2008-03-11  Bruno Haible  <bruno@clisp.org>
44665
44666         Avoid conflicts between local macro definitions.
44667         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44668         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44669
44670 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44671             Bruno Haible  <bruno@clisp.org>
44672
44673         Make va_copy work with some version of xlc on AIX 5.1.
44674         * lib/stdarg.in.h: New file.
44675         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44676         On AIX, use a <stdarg.h> file substitute.
44677         * modules/stdarg (Files): Add lib/stdarg.in.h.
44678         (Depends-on): Add include_next.
44679         (Makefile.am): Build a stdarg.h substitute if requested.
44680         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44681
44682 2008-03-10  Bruno Haible  <bruno@clisp.org>
44683
44684         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44686         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44687
44688 2008-03-10  Bruno Haible  <bruno@clisp.org>
44689
44690         * modules/stdlib (Depends-on): Add include_next, remove
44691         absolute-header.
44692
44693 2008-03-09  Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/freadahead.h (freadahead): Document more precisely.
44696         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44697         the sum of both buffer sizes.
44698         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44699         * NEWS: Document the change.
44700
44701 2008-03-09  Bruno Haible  <bruno@clisp.org>
44702
44703         Extend freadptr to return also the buffer size.
44704         * lib/freadptr.h (freadptr): Add sizep argument.
44705         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44706         (freadptr): Add sizep argument. Determine buffer size like freadahead
44707         does.
44708         * tests/test-freadptr.c: Don't include freadahead.h.
44709         (main): Adapt for new calling convention of freadptr.
44710         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44711         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44712         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44713         tests/test-freadptr2.sh.
44714         (Depends): Remove freadahead.
44715         (TESTS): Add test-freadptr2.sh.
44716         (check_PROGRAMS): Add test-freadptr2.
44717
44718 2008-03-09  Bruno Haible  <bruno@clisp.org>
44719
44720         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44721         Report and solution by Simon Josefsson.
44722
44723 2008-03-06  Bruno Haible  <bruno@clisp.org>
44724
44725         Make fflush after ungetc work on BSD platforms.
44726         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44727         * tests/test-fflush2.c: New file.
44728         * tests/test-fflush2.sh: New file.
44729         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44730         tests/test-fflush2.c.
44731         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44732         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44733
44734 2008-03-06  Eric Blake  <ebb9@byu.net>
44735
44736         Likewise for ftello.
44737         * modules/ftello (Dependencies): Add extensions.
44738         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44739
44740 2008-03-06  Bruno Haible  <bruno@clisp.org>
44741
44742         * modules/fseeko (Dependencies): Add extensions.
44743         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44744         Needed on glibc systems.
44745
44746 2008-03-06  Bruno Haible  <bruno@clisp.org>
44747
44748         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44749         email address.
44750         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44751
44752 2008-03-06  Bruno Haible  <bruno@clisp.org>
44753
44754         * users.txt: Add libgnupdf.
44755
44756 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44757
44758         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44759         (Header File Substitutes, Function Substitutes,
44760         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44761         (Build robot for gnulib): Fix typo.
44762
44763 2008-03-06  Bruno Haible  <bruno@clisp.org>
44764
44765         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44766         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44767
44768 2008-03-06  Bruno Haible  <bruno@clisp.org>
44769
44770         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44771         * doc/gnulib.texi: Include it.
44772
44773 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44774
44775         * modules/func (License): Change license to unlimited; there was
44776         no LGPL parts in the module anyway.
44777
44778 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44779
44780         * modules/__func__: Renamed to modules/func.
44781         * modules/__func__-tests: Renamed to modules/func-tests.
44782         * tests/test-__func__.c: Renamed to tests/test-func.c.
44783         * m4/__func__.m4: Renamed to m4/func.m4.
44784         * doc/gnulib.texi (__func__): Section renamed to func.
44785         Suggested by Eric Blake <ebb9@byu.net>.
44786
44787 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44788
44789         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44790         about __func__.  Make example self-contained.  Suggested by Eric
44791         Blake <ebb9@byu.net>.
44792
44793         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44794         Suggested by Eric Blake <ebb9@byu.net>.
44795
44796 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44797
44798         * modules/__func__: New file.
44799         * modules/__func__-tests: New file.
44800         * tests/test-__func__.c: New file.
44801         * m4/__func__.m4: New file.
44802         * doc/gnulib.texi (__func__): Document __func__ module.
44803
44804 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44805
44806         * modules/byteswap (License): Re-license as LGPLv2+.
44807
44808 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44809
44810         * doc/Makefile: Add pdf target.
44811
44812 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44813
44814         * modules/inline (License): Use 'unlimited', since there are only
44815         *.m4 files in this module.
44816
44817 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44818             Bruno Haible  <bruno@clisp.org>
44819
44820         Add support for HP C 7.1 on OpenVMS 8.3.
44821         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44822
44823 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44824
44825         Update VMS specifics.
44826         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44827
44828 2008-03-02  Jim Meyering  <meyering@redhat.com>
44829
44830         Remove the last dependency on the "free" module.
44831         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44832         Reported by Bob Proulx.
44833
44834         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44835
44836         Remove useless "if" tests before free.  Deprecate "free" module.
44837         * doc/posix-functions/free.texi: Mention that this
44838         module is no longer useful.
44839         * modules/free (Notice): Say this module is obsolete.
44840         * modules/readutmp (Depends-on): Remove free.
44841         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44842         * lib/putenv.c (putenv): Likewise.
44843         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44844         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44845         * tests/test-c-strcasestr.c (main): Likewise.
44846         * tests/test-c-strstr.c (main): Likewise.
44847         * tests/test-mbscasestr1.c (main): Likewise.
44848         * tests/test-mbscasestr2.c (main): Likewise.
44849         * tests/test-mbsstr1.c (main): Likewise.
44850         * tests/test-mbsstr2.c (main): Likewise.
44851         * tests/test-memmem.c (main): Likewise.
44852         * tests/test-strcasestr.c (main): Likewise.
44853         * tests/test-striconv.c (main): Likewise.
44854         * tests/test-striconveh.c (main): Likewise.
44855         * tests/test-striconveha.c (main): Likewise.
44856         * tests/test-strstr.c (main): Likewise.
44857
44858         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44859
44860         bootstrap: sync from coreutils again
44861         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44862
44863 2008-03-01  Jim Meyering  <meyering@redhat.com>
44864
44865         bootstrap: sync from coreutils
44866         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44867         also when the target doesn't exist.
44868
44869 2008-03-01  Eric Blake  <ebb9@byu.net>
44870
44871         Fix bugs in last patch.
44872         * lib/memchr2.c (memchr2): Fix typo.
44873         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44874         extension.
44875         Reported by Bruce Korb.
44876
44877         New module 'memchr2'.
44878         * modules/memchr2: New file.
44879         * modules/memchr2-tests: Likewise.
44880         * lib/memchr2.h: Likewise.
44881         * lib/memchr2.c: Likewise, based on memchr.c.
44882         * tests/test-memchr2.c: New test.
44883         * MODULES.html.sh (String handling): Add memchr2.
44884
44885 2008-02-29  Bruno Haible  <bruno@clisp.org>
44886
44887         * modules/freadseek-tests: New file.
44888         * tests/test-freadseek.sh: New file.
44889         * tests/test-freadseek.c: New file.
44890
44891         New module 'freadseek'.
44892         * modules/freadseek: New file.
44893         * lib/freadseek.h: New file.
44894         * lib/freadseek.c: New file.
44895         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44896
44897 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44898
44899         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44900         wydawca.
44901
44902         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44903         program_invocation_name and program_invocation_short_name are
44904         present.
44905
44906 2008-02-28  Bruno Haible  <bruno@clisp.org>
44907
44908         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44909         * tests/test-freadptr.sh: Also test non-seekable stdin.
44910
44911 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44912
44913         * build-aux/bootstrap (source_base, m4_base)
44914         (doc_base, tests_base): New variables.
44915         (gnulib_tool_options): Do not hardcode base directories, use
44916         the above variables instead.
44917
44918 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44919
44920         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44921
44922 2008-02-28  Bruno Haible  <bruno@clisp.org>
44923
44924         * modules/freadptr-tests: New file.
44925         * tests/test-freadptr.sh: New file.
44926         * tests/test-freadptr.c: New file.
44927
44928         New module 'freadptr'.
44929         * modules/freadptr: New file.
44930         * lib/freadptr.h: New file.
44931         * lib/freadptr.c: New file.
44932         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44933
44934 2008-02-26  Karl Berry  <karl@freefriends.org>
44935
44936         Sync from Libtool:
44937         * libltdl/argz.c (argz_add, argz_count): New functions.
44938         * libltdl/argz.in.h: Declare them.
44939         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44940
44941 2008-02-22  Bruno Haible  <bruno@clisp.org>
44942
44943         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44944         is a pointer type.  Needed for HP-UX 10.
44945         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44946         * doc/posix-functions/gmtime_r.texi: Likewise.
44947         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44948
44949 2008-02-24  Bruno Haible  <bruno@clisp.org>
44950
44951         * modules/environ-tests: New file.
44952         * tests/test-environ.c: New file.
44953
44954         New module 'environ'.
44955         * modules/environ: New file.
44956         * lib/unistd.in.h (environ): New declaration.
44957         * m4/environ.m4: New file.
44958         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44959         after use.
44960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44961         HAVE_DECL_ENVIRON.
44962         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44963         HAVE_DECL_ENVIRON.
44964         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44965         wrong claim that 'environ' is missing on some systems.
44966         * modules/execute (Depends-on): Add environ.
44967         * lib/execute.c (environ): Remove fallback declaration.
44968         * modules/pipe (Depends-on): Add environ.
44969         * lib/pipe.c (environ): Remove fallback declaration.
44970         * modules/setenv (Depends-on): Add environ.
44971         * lib/setenv.c (environ): Remove fallback declaration.
44972         * modules/unsetenv (Depends-on): Add environ.
44973         * lib/unsetenv.c (environ): Remove fallback declaration.
44974         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44975         m4/environ.m4.
44976         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44977         (gl_PREREQ_UNSETENV): Likewise.
44978
44979 2008-02-24  Bruno Haible  <bruno@clisp.org>
44980
44981         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44982
44983 2008-02-20  Bob Proulx  <bob@proulx.com>
44984
44985         Enable use of older two part flavor 'git describe'.
44986         * build-aux/git-version-gen: If using the older two part flavor of
44987         git version then recreate the third part now present in the
44988         newer three part flavor of git describe.
44989
44990 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44991
44992         * lib/fts.c (fts_build): Typo correction to comment.
44993
44994 2008-02-17  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44997         generating no-op conflicts.
44998
44999 2008-02-17  Bruno Haible  <bruno@clisp.org>
45000
45001         Speed up by 10%.
45002         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45003         result_entries, rather than an index-based loop.
45004
45005 2008-02-17  Bruno Haible  <bruno@clisp.org>
45006
45007         Speed up by 25%.
45008         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45009         'hashcode_cached'.
45010         (entry_create): New function.
45011         (entry_hashcode): Use the cached hashcode if possible.
45012         (read_changelog_file, try_split_merged_entry): Use entry_create.
45013
45014 2008-02-17  Bruno Haible  <bruno@clisp.org>
45015
45016         Speed up from O(n^2) to O(n) for long ChangeLog files.
45017         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45018         (read_changelog_file): Change implementation of entries_reversed list
45019         to rbtreehash.
45020         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45021
45022 2008-02-17  Bruno Haible  <bruno@clisp.org>
45023
45024         New option --split-merged-entry.
45025         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45026         (find_paragraph_end, try_split_merged_entry): New functions.
45027         (long_options): Add option --split-merged-entry.
45028         (usage): Document option --split-merged-entry.
45029         (main): Implement option --split-merged-entry.
45030         Reported by Eric Blake.
45031
45032 2008-02-17  Bruno Haible  <bruno@clisp.org>
45033
45034         * lib/git-merge-changelog.c: Include c-strstr.h.
45035         (main): Support the "git pull --rebase" situation.
45036         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45037         Reported by Eric Blake.
45038
45039 2008-02-16  Eric Blake  <ebb9@byu.net>
45040
45041         Avoid doubling \ in common case of "c-maybe" quoting style.
45042         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45043         eliding outer quotes.
45044         * lib/quotearg.h: Document this.
45045         * tests/test-quotearg.c (result_strings, inputs, results_g)
45046         (flag_results, locale_results): Test it by adding a new string to
45047         each test group.
45048         (compare_strings): Test new string.
45049
45050 2008-02-13  Eric Blake  <ebb9@byu.net>
45051
45052         Avoid trigraph quoting in default output.
45053         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45054         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45055         unless explicitly requested.
45056         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45057
45058 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45059
45060         Don't rely on signed integer overflowing to negative value.
45061         * lib/getugroups.c (getugroups): Include <limits.h>.
45062         Instead, compare against INT_MAX, and increment only if the test passes.
45063
45064 2008-02-13  Jim Meyering  <meyering@redhat.com>
45065         and Eric Blake  <ebb9@byu.net>
45066
45067         Avoid shadowing warning and compile errors on Linux.
45068         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45069         forwarding macros on Linux.
45070         (dcgettext): Define a stub, for Linux.
45071         (results_g, main): Avoid warnings.
45072
45073 2008-02-12  Eric Blake  <ebb9@byu.net>
45074
45075         Silence warning in last patch.
45076         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45077
45078         Quotearg part 4: add tests, fix c-maybe colon quoting.
45079         * lib/quotearg.h: Improve documentation.
45080         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45081         escapes when adding outer quotes.  When quoting trigraphs, use
45082         valid C notation.  When quoting NUL, omit extra characters if next
45083         character is not digit.  Alter prototype.
45084         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45085         callers.
45086         * modules/quotearg-tests: New module.
45087         * tests/test-quotearg.c: New test.
45088
45089 2008-02-07  Eric Blake  <ebb9@byu.net>
45090
45091         Quotearg part 3: add flag to control outer quote elision.
45092         * lib/quotearg.h (c_maybe_quoting_style): New style.
45093         (enum quoting_flags): Better documentation of flags.
45094         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45095         c-maybe style.
45096         (quotearg_buffer_restyled): Handle new flag to elide outer
45097         quotes.
45098
45099         Quotearg part 2: add flag that can control NUL elision.
45100         * lib/quotearg.h (set_quoting_flags): New prototype.
45101         * lib/quotearg.c (struct quoting_options): Add flag field.
45102         (set_quoting_flags): New function.
45103         (quotearg_buffer_restyled): Add flags parameter.
45104         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45105         (quotearg_n_options): Set the flag, since length cannot be
45106         returned.
45107         (quoting_options_from_style): Default flags correctly.
45108
45109         Quotearg part 1: more wrappers, restore quotearg_char state.
45110         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45111         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45112         (quotearg_colon_mem): New wrappers.
45113         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45114         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45115         functions.
45116         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45117         (quotearg_colon_mem): New functions.
45118
45119 2008-02-11  Bruno Haible  <bruno@clisp.org>
45120
45121         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45122         library in the current directory: it does not work with parallel make.
45123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45124
45125 2008-02-11  Bruno Haible  <bruno@clisp.org>
45126
45127         * .gitattributes: New file.
45128
45129 2008-02-11  Jim Meyering  <meyering@redhat.com>
45130
45131         useless-if-before-free: Fix reversed exit values.
45132         * build-aux/useless-if-before-free: Use correct values
45133         for EXIT_MATCH and EXIT_NO_MATCH.
45134
45135         * build-aux/useless-if-before-free: Close stdout carefully.
45136
45137 2008-02-10  Bruno Haible  <bruno@clisp.org>
45138
45139         New module 'git-merge-changelog'.
45140         * modules/git-merge-changelog: New file.
45141         * lib/git-merge-changelog.c: New file.
45142
45143 2008-02-10  Jim Meyering  <meyering@redhat.com>
45144
45145         useless-if-before-free: New option: --list (-l).
45146
45147         useless-if-before-free: Don't exit immediately upon open failure.
45148         * build-aux/useless-if-before-free: Exit 2 for errors.
45149         Upon failure to open a file, don't exit immediately.
45150         Rather, just warn and continue with any remaining files.
45151
45152 2008-02-10  Bruno Haible  <bruno@clisp.org>
45153
45154         New abstract list operation 'node_set_value'.
45155         * lib/gl_list.h (gl_list_node_set_value): New function.
45156         (struct gl_list_implementation): New field node_set_value.
45157         * lib/gl_list.c (gl_list_node_set_value): New function.
45158         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45159         (gl_array_list_implementation): Update.
45160         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45161         (gl_carray_list_implementation): Update.
45162         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45163         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45164         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45165         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45166         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45167         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45168         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45169         Update.
45170         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45171         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45172         (gl_sublist_list_implementation): Update.
45173
45174 2008-02-10  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45177         Needed when ELEMENT is #defined to 'some_type *'.
45178
45179 2008-02-10  Jim Meyering  <meyering@redhat.com>
45180
45181         New script and module: useless-if-before-free
45182         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45183         * build-aux/useless-if-before-free: New file.
45184         * modules/useless-if-before-free: New file.
45185
45186         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45187
45188         xstrtol_error: Fix typo.
45189         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45190         s/exit_failure/exit_status/.
45191
45192 2008-02-09  Jim Meyering  <meyering@redhat.com>
45193
45194         New script and module: gitlog-to-changelog
45195         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45196         * modules/gitlog-to-changelog: New file.
45197         * build-aux/gitlog-to-changelog: New file.
45198
45199 2008-02-08  Jim Meyering  <meyering@redhat.com>
45200
45201         Avoid two "parameter unused" warnings.
45202         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45203         Mark "st" as used.
45204
45205         Use "git COMMAND", not "git-COMMAND".
45206         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45207         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45208         * build-aux/git-version-gen: Use "git status", not "git-status".
45209
45210 2008-02-07  Bruno Haible  <bruno@clisp.org>
45211
45212         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45213         Avoids a crash on Windows Vista.
45214         Reported by Adam Strzelecki <ono@java.pl> via
45215         Simon Josefsson <simon@josefsson.org>.
45216
45217 2008-02-06  Bruno Haible  <bruno@clisp.org>
45218
45219         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45220         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45221         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45223         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45225         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45226         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45234         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45235         left-adjust flag.
45236         * tests/test-snprintf-posix.h (test_function): Likewise.
45237         * tests/test-sprintf-posix.h (test_function): Likewise.
45238         * tests/test-vasprintf-posix.c (test_function): Likewise.
45239         * doc/posix-functions/fprintf.texi: Update.
45240         * doc/posix-functions/printf.texi: Update.
45241         * doc/posix-functions/snprintf.texi: Update.
45242         * doc/posix-functions/sprintf.texi: Update.
45243         * doc/posix-functions/vfprintf.texi: Update.
45244         * doc/posix-functions/vprintf.texi: Update.
45245         * doc/posix-functions/vsnprintf.texi: Update.
45246         * doc/posix-functions/vsprintf.texi: Update.
45247         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45248
45249 2008-02-06  Bruno Haible  <bruno@clisp.org>
45250
45251         Fix bug introduced on 2008-01-26.
45252         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45253
45254 2008-02-06  Bruno Haible  <bruno@clisp.org>
45255
45256         Fix bug introduced on 2007-06-10.
45257         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45258         !NEED_PRINTF_FLAG_ZERO.
45259
45260 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45261
45262         getloadavg: use libperfstat on AIX5
45263         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45264
45265 2008-02-03  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/diffseq.h: Add comments about required #includes.
45268         Reported by Michael Biggs <gnulib@doubleplum.net>.
45269
45270 2008-02-01  Bruno Haible  <bruno@clisp.org>
45271
45272         * users.txt: Add gnuit.
45273
45274 2008-01-31  Bruno Haible  <bruno@clisp.org>
45275
45276         * lib/md4.c (set_uint32): Mark as inline.
45277         * lib/md5.c (set_uint32): Likewise.
45278         * lib/sha1.c (set_uint32): Likewise.
45279         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45280         * m4/md5.m4 (gl_MD5): Likewise.
45281         * m4/sha1.m4 (gl_SHA1): Likewise.
45282
45283 2008-01-31  Jim Meyering  <meyering@redhat.com>
45284
45285         Use "sizeof VAR", rather than a literal "4".
45286         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45287         * lib/md4.c (md4_read_ctx): Likewise.
45288         * lib/sha1.c (sha1_read_ctx): Likewise.
45289
45290 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45291
45292         * tests/test-sha1.c: New file, based on test-md5.c.
45293
45294         * modules/crypto/sha1-tests: New file.
45295
45296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45297
45298         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45299
45300 2008-01-31  Jim Meyering  <meyering@redhat.com>
45301
45302         Prefer "sizeof v" over the equivalent "4".
45303         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45304         * lib/md5.c (set_uint32): Likewise.
45305         * lib/sha1.c (set_uint32): Likewise.
45306
45307 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45308
45309         * lib/sha1.c (set_uint32): Mark function as static.
45310
45311 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45312
45313         md2: clarify comments to say that alignment is not required.
45314         * lib/md2.h: Remove warning about alignment in comment.
45315         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45316         never been required.
45317
45318 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45319
45320         md4: adapt alignment constraint fix from sha1.
45321         * lib/md4.c (set_uint32): New function, from sha1.c
45322         (md4_read_ctx): Use it.
45323         (md4_finish_ctx): Doc fix.
45324         * lib/md4.h: Doc fix.
45325
45326 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45327
45328         md5: adapt alignment constraint fix from sha1.
45329         * lib/md5.c (set_uint32): New function, from sha1.c
45330         (md5_read_ctx): Use it.
45331         (md5_finish_ctx): Doc fix.
45332         * lib/md5.h: Doc fix.
45333
45334 2008-01-30  Peter Palfrader  <weasel@debian.org>
45335
45336         sha1: remove the result buffer alignment constraint
45337         * lib/sha1.c (set_uint32): New function.
45338         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45339         constraint.
45340         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45341         * lib/sha1.h: Likewise.
45342
45343 2008-01-30  Andreas Schwab  <schwab@suse.de>
45344             Bruno Haible  <bruno@clisp.org>
45345
45346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45347         correct definition of LDBL_MIN_EXP.
45348
45349 2008-01-30  Karl Berry  <karl@gnu.org>
45350
45351         * config/srclist-update: try to preserve x bit on updates.
45352         * config/srclistvars.sh: update for karl.
45353
45354 2008-01-29  Jim Meyering  <meyering@redhat.com>
45355
45356         vasnprintf.c: Avoid warning about unused label
45357         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45358         "overflow" label definition and associated code with the
45359         same cpp condition that guards the sole use of that label.
45360
45361 2008-01-26  Bruno Haible  <bruno@clisp.org>
45362
45363         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45364         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45365         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45366         * lib/isnanl-nolibm.h (isnanl): Likewise.
45367         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45368
45369 2008-01-26  Bruno Haible  <bruno@clisp.org>
45370
45371         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45372         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45373
45374 2008-01-26  Bruno Haible  <bruno@clisp.org>
45375
45376         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45377         GCC >= 4.0 built-in.
45378         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45379
45380 2008-01-26  Bruno Haible  <bruno@clisp.org>
45381
45382         Rename isnan, applicable to 'double' only, to isnand.
45383         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45384         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45385         (configure.ac): Update.
45386         (Include): Replace "isnan.h" with "isnand.h".
45387         * m4/isnand.m4: Renamed from m4/isnan.m4.
45388         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45389         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45390         instead of isnan.c.
45391         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45392         instead of HAVE_ISNAN_IN_LIBC.
45393         (isnand): Renamed from isnan.
45394         * lib/isnand.c: New file.
45395         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45396         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45397         (Makefile.am): Update.
45398         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45399         Include isnand.h instead of isnan.h.
45400         (main): Test isnand instead of isnan.
45401         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45402         isnan-nolibm.
45403         * modules/frexp (Depends-on): Likewise.
45404         * modules/frexp-tests (Depends-on): Likewise.
45405         * modules/frexp-nolibm (Depends-on): Likewise.
45406         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45407         * modules/isfinite (Depends-on): Likewise.
45408         * modules/round-tests (Depends-on): Likewise.
45409         * modules/signbit (Depends-on): Likewise.
45410         * modules/signbit-tests (Depends-on): Likewise.
45411         * modules/snprintf-posix (Depends-on): Likewise.
45412         * modules/sprintf-posix (Depends-on): Likewise.
45413         * modules/trunc-tests (Depends-on): Likewise.
45414         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45415         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45416         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45417         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45418         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45419         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45420         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45421         * modules/vasnprintf-posix (Depends-on): Likewise.
45422         * modules/vasprintf-posix (Depends-on): Likewise.
45423         * modules/vfprintf-posix (Depends-on): Likewise.
45424         * modules/vsnprintf-posix (Depends-on): Likewise.
45425         * modules/vsprintf-posix (Depends-on): Likewise.
45426         * lib/frexp.c: Include isnand.h instead of isnan.h.
45427         (ISNAN): Set to isnand instead of isnan.
45428         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45429         (gl_isfinited): Use isnand instead of isnan.
45430         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45431         (gl_signbitd): Use isnand instead of isnan.
45432         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45433         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45434         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45435         (main): Use isnand instead of isnan.
45436         * tests/test-round1.c: Include isnand.h.
45437         (main): Use isnand instead of isnan.
45438         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45439         (ISNAN): Set to isnand instead of isnan.
45440         * tests/test-trunc1.c: Include isnand.h.
45441         (main): Use isnand instead of isnan.
45442         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45443         (equal): Use isnand instead of isnan.
45444         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45445         isnand-nolibm.
45446         * NEWS: Mention the change.
45447
45448 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45449             Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45452         the GCC builtins for signbits are present and set
45453         REPLACE_SIGNBIT_USING_GCC if so.
45454         * lib/math.in.h (signbit): Define using GCC builtins if
45455         REPLACE_SIGNBIT_USING_GCC is set.
45456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45457         REPLACE_SIGNBIT_USING_GCC.
45458         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45459
45460 2008-01-25  Jim Meyering  <meyering@redhat.com>
45461
45462         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45463         * lib/poll.c: Include <config.h>, not "config.h".
45464         * tests/test-getaddrinfo.c: Likewise.
45465
45466 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45467
45468         * modules/sockets-tests: New file.
45469
45470 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45471
45472         * modules/sockets: New module, can be used to call WSA_Startup and
45473         WSA_Cleanup when needed.
45474
45475         * lib/sockets.h, lib/sockets.c: New files.
45476
45477         * m4/sockets.m4: New file.
45478
45479         * tests/test-sockets.c: New file.
45480
45481 2008-01-19  Bruno Haible  <bruno@clisp.org>
45482
45483         * doc/posix-headers: Renamed from doc/headers.
45484         * doc/posix-functions: Renamed from doc/functions.
45485         * doc/gnulib.texi: Update.
45486
45487 2008-01-19  Bruno Haible  <bruno@clisp.org>
45488
45489         * doc/glibc-functions/strcasestr.texi: Include contents of
45490         doc/functions/strcasestr.texi, fixing the list of platforms.
45491         * doc/functions/strcasestr.texi: Remove file.
45492
45493 2008-01-19  Bruno Haible  <bruno@clisp.org>
45494
45495         * doc/glibc-functions/memmem.texi: Include contents of
45496         doc/functions/memmem.texi.
45497         * doc/functions/memmem.texi: Remove file.
45498
45499 2008-01-18  Bruno Haible  <bruno@clisp.org>
45500
45501         * doc/glibc-functions/*.texi: New files.
45502         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45503         to use the new files.
45504
45505 2008-01-17  Bruno Haible  <bruno@clisp.org>
45506
45507         * tests/test-gethostname.c (main): Fix printf statement.
45508
45509 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45510
45511         * modules/gethostname-tests: New file.
45512
45513         * tests/test-gethostname.c: New file.
45514
45515 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45516
45517         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45518         used by the UNAME case.  Reported by Bruno Haible
45519         <bruno@clisp.org>.
45520
45521 2008-01-17  Eric Blake  <ebb9@byu.net>
45522
45523         Convert c-strcasestr to be more efficient.
45524         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45525         (Depends-on): Add c-strcase, remove malloca, strnlen.
45526         * tests/test-c-strcasestr.c (main): Enhance test.
45527         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45528
45529 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45530
45531         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45532         Use it in creating po/Makevars.
45533
45534 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45535
45536         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45537         Applications that requires it should initialize libgcrypt
45538         manually.
45539
45540 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45541
45542         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45543
45544 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45545
45546         Fix problem with getdate on mingw32 reported by Simon Josefsson
45547         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45548         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45549         tzname", when deciding whether to declare tzname.
45550         * lib/strftime.c (tzname): Likewise.
45551
45552 2008-01-15  Bruno Haible  <bruno@clisp.org>
45553
45554         Work around a MacOS X 10.5 bug in frexpl().
45555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45556         * doc/functions/frexpl.texi: Document the bug.
45557         Reported by Elias Pipping <pipping@gentoo.org>.
45558
45559 2008-01-14  Eric Blake  <ebb9@byu.net>
45560
45561         Touch up previous patch.
45562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45563         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45564
45565         Convert strcasestr module to use Two-Way algorithm.
45566         * modules/strcasestr-simple: New module, based on the old
45567         strcasestr, but with Two-Way rather than KMP.
45568         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45569         * lib/string.in.h (rpl_strcasestr): Declare.
45570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45571         performance.
45572         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45573         * modules/string (Makefile.am): Support strcasestr.
45574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45575         * modules/strcasestr-tests (Depends-on): Check for alarm.
45576         * tests/test-strcasestr.c: Augment test.
45577         * lib/str-two-way.h: Clean up stray macro.
45578         * NEWS: Document new module.
45579         * MODULES.html.sh (string handling): Likewise.
45580         * doc/functions/strcasestr.texi: New file.
45581         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45582         here, since it is not a POSIX function.
45583
45584 2008-01-14  Colin Watson  <cjwatson@debian.org>
45585             Bruno Haible  <bruno@clisp.org>
45586
45587         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45588         works fine; if not, set REPLACE_STRSIGNAL.
45589         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45591         REPLACE_STRSIGNAL.
45592         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45593         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45594         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45595
45596 2008-01-14  Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/strsignal (Include): Change to <string.h>.
45599
45600 2008-01-14  Colin Watson  <cjwatson@debian.org>
45601
45602         * modules/argp (Notice): Add a notice recommending to change
45603         XGETTEXT_OPTIONS.
45604         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45605
45606 2008-01-13  Colin Watson  <cjwatson@debian.org>
45607
45608         * modules/strsignal-tests: New file.
45609         * tests/test-strsignal.c: New file.
45610
45611         * lib/strsignal.c: New file, from glibc with modifications.
45612         * lib/siglist.h: New file, from glibc with modifications.
45613         * lib/string.in.h (strsignal): New declaration.
45614         * m4/strsignal.m4: New file.
45615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45616         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45617         * modules/strsignal: New file.
45618         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45619         HAVE_DECL_STRSIGNAL.
45620
45621 2008-01-13  Bruno Haible  <bruno@clisp.org>
45622
45623         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45624         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45625         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45626         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45627
45628 2008-01-13  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45631         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45632         * lib/argp.h (__attribute__): Likewise.
45633         * lib/c-stack.c (__attribute__): Likewise.
45634         * lib/error.h (__attribute__): Likewise.
45635         * lib/fts.c (__attribute__): Likewise.
45636         * lib/openat.h (__attribute__): Likewise.
45637         * lib/stdio.in.h (__attribute__): Likewise.
45638         * lib/string.in.h (__attribute__): Likewise.
45639         * lib/utimens.c (__attribute__): Likewise.
45640         * lib/vasnprintf.h (__attribute__): Likewise.
45641         * lib/xalloc.h (__attribute__): Likewise.
45642         * lib/xprintf.h (__attribute__): Likewise.
45643         * lib/xstrtol.h (__attribute__): Likewise.
45644         * lib/xvasprintf.h (__attribute__): Likewise.
45645
45646 2008-01-12  Bruno Haible  <bruno@clisp.org>
45647
45648         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45649         * doc/glibc-headers/a.out.texi: New file.
45650         * doc/glibc-headers/aliases.texi: New file.
45651         * doc/glibc-headers/alloca.texi: New file.
45652         * doc/glibc-headers/ar.texi: New file.
45653         * doc/glibc-headers/argp.texi: New file.
45654         * doc/glibc-headers/argz.texi: New file.
45655         * doc/glibc-headers/byteswap.texi: New file.
45656         * doc/glibc-headers/crypt.texi: New file.
45657         * doc/glibc-headers/endian.texi: New file.
45658         * doc/glibc-headers/envz.texi: New file.
45659         * doc/glibc-headers/err.texi: New file.
45660         * doc/glibc-headers/error.texi: New file.
45661         * doc/glibc-headers/execinfo.texi: New file.
45662         * doc/glibc-headers/fpu_control.texi: New file.
45663         * doc/glibc-headers/fstab.texi: New file.
45664         * doc/glibc-headers/fts.texi: New file.
45665         * doc/glibc-headers/getopt.texi: New file.
45666         * doc/glibc-headers/ieee754.texi: New file.
45667         * doc/glibc-headers/ifaddrs.texi: New file.
45668         * doc/glibc-headers/libintl.texi: New file.
45669         * doc/glibc-headers/mcheck.texi: New file.
45670         * doc/glibc-headers/mntent.texi: New file.
45671         * doc/glibc-headers/obstack.texi: New file.
45672         * doc/glibc-headers/paths.texi: New file.
45673         * doc/glibc-headers/printf.texi: New file.
45674         * doc/glibc-headers/pty.texi: New file.
45675         * doc/glibc-headers/resolv.texi: New file.
45676         * doc/glibc-headers/shadow.texi: New file.
45677         * doc/glibc-headers/sysexits.texi: New file.
45678         * doc/glibc-headers/ttyent.texi: New file.
45679
45680 2008-01-12  Jim Meyering  <meyering@redhat.com>
45681
45682         announce-gen: emit Gnulib's git-based version string.
45683         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45684         New option --gnulib-version=V, where V is expected to be
45685         the output of running git describe in the gnulib directory.
45686         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45687         not useful, and plan to stop publishing an xdelta file with each
45688         coreutils release.
45689
45690         * build-aux/announce-gen: Also check for lzma-compressed files.
45691
45692 2008-01-11  Bruno Haible  <bruno@clisp.org>
45693
45694         * tests/test-memmem.c (main): Increase maximum allowed time.
45695         * tests/test-strstr.c (main): Likewise.
45696
45697 2008-01-11  Bruno Haible  <bruno@clisp.org>
45698
45699         * doc/functions/memmem.texi: Add more precisions about platforms.
45700         * doc/functions/strstr.texi: Likewise.
45701
45702 2008-01-10  Eric Blake  <ebb9@byu.net>
45703
45704         * m4/strstr.m4: Delete cruft from copy-n-paste.
45705         Reported by Bruno Haible.
45706
45707 2008-01-10  Bruno Haible  <bruno@clisp.org>
45708
45709         Make c-strstr rely on strstr.
45710         * lib/c-strstr.c: Don't include str-kmp.h.
45711         (c_strstr): Define in terms of strstr.
45712         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45713         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45714
45715 2008-01-10  Bruno Haible  <bruno@clisp.org>
45716
45717         * doc/gnulib.texi (String Functions in C Locale): New section.
45718         * doc/c-ctype.texi: New file.
45719         * doc/c-strcase.texi: New file.
45720         * doc/c-strcaseeq.texi: New file.
45721         * doc/c-strcasestr.texi: New file.
45722         * doc/c-strstr.texi: New file.
45723         * doc/c-strtod.texi: New file.
45724         * doc/c-strtold.texi: New file.
45725
45726 2008-01-10  Eric Blake  <ebb9@byu.net>
45727
45728         * lib/relocatable.h: Fix a comment.
45729
45730 2008-01-10  Eric Blake  <ebb9@byu.net>
45731
45732         Share two-way algorithm.
45733         * lib/str-two-way.h: New file, merged from...
45734         * lib/memmem.c: ...here...
45735         * lib/strstr.c: ...and here.
45736         * modules/memmem (Files): Use it.
45737         * modules/strstr (Files): Likewise.
45738
45739         Avoid quadratic strstr implementations.
45740         * lib/strstr.c: New file.
45741         * m4/strstr.m4: Likewise.
45742         * modules/strstr: Likewise.
45743         * modules/strstr-tests: Likewise.
45744         * tests/test-strstr.c: Likewise.
45745         * lib/string.in.h (rpl_strstr): Declare.
45746         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45748         * modules/string (Makefile.am): Likewise.
45749         * MODULES.html.sh (string handling): Mention new module.
45750         * doc/functions/strstr.texi (strstr): Document the bug.
45751
45752 2008-01-10  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/relocatable.h (relocate): State whether result is freshly
45755         allocated or not.
45756         * lib/relocatable.c (relocate): Return a freshly allocated string
45757         instead of a pointer to a privately held string.
45758         Reported by Sylvain Beucler <beuc@gnu.org>.
45759
45760 2008-01-10  Colin Watson  <cjwatson@debian.org>
45761
45762         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45763         s/S_ISNLK/S_ISLNK/.
45764
45765 2008-01-09  Bruno Haible  <bruno@clisp.org>
45766
45767         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45768         and other files.
45769         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45770         if it's only a guess.
45771         * modules/memmem: Simplify by depending on memmem-simple.
45772
45773 2008-01-09  Bruno Haible  <bruno@clisp.org>
45774
45775         Work around OpenBSD 4.0 tdelete() bug.
45776         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45777         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45778         macros and don't redefine the enum values.
45779         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45780         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45781         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45782
45783 2008-01-09  Bruno Haible  <bruno@clisp.org>
45784
45785         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45786         (main): Don't perform the tests if setlocale did not install a UTF-8
45787         locale. Needed on OpenBSD 4.0.
45788         * modules/wcwidth-tests (Depends-on): Add localcharset.
45789
45790 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45791
45792         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45793         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45794         * NEWS: announce this.
45795         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45796
45797 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45798         and Eric Blake  <ebb9@byu.net>
45799
45800         Add memmem-simple module.
45801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45802         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45803         * modules/memmem-simple: New file.
45804         * modules/memmem (Description): Tweak.
45805         * MODULES.html.sh (string handling): Mention new module.
45806         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45807         addressed by memmem-simple.
45808         * NEWS: Document the difference.
45809
45810 2008-01-09  Eric Blake  <ebb9@byu.net>
45811
45812         Give gcc some memmem optimization hints.
45813         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45814         (strcasestr): Declare as pure.
45815         * modules/memmem (Maintainer): Claim my implementation.
45816
45817 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45818
45819         Support AIX 6.1 and higher.
45820         * build-aux/config.libpath: Likewise.
45821         * build-aux/config.rpath: Likewise.
45822
45823 2008-01-08  Jim Meyering  <meyering@redhat.com>
45824             Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45827         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45828         Reported by Peter Fales in
45829         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45830
45831 2008-01-08  Bruno Haible  <bruno@clisp.org>
45832
45833         * modules/unictype/category-of (Depends-on): Add
45834         unictype/category-none.
45835         * modules/unictype/category-and-tests (Depends-on): Add
45836         unictype/category-{L,N,Lu,Nd}.
45837         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45838         * modules/unictype/category-or-tests (Depends-on): Add
45839         unictype/category-{L,N}.
45840         * modules/unictype/category-name-tests (Depends-on): Add
45841         unictype/category-{Z,Nl}.
45842         Reported by Simon Josefsson.
45843
45844 2008-01-08  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45847         convention better.
45848         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45849         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45850         Reported by Peter Miller <millerp@canb.auug.org.au>.
45851
45852 2008-01-08  Eric Blake  <ebb9@byu.net>
45853
45854         Rewrite memmem to guarantee linear complexity without malloc.
45855         * lib/memmem.c (memmem): Use Two-Way rather than
45856         Knuth-Morris-Pratt, to allow O(1) space usage.
45857         (critical_factorization, two_way_short_needle)
45858         (two_way_long_needle): New functions.
45859         (knuth_morris_pratt): Delete.
45860         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45861         Add stdint.
45862         * tests/test-memmem.c (main): Add tests for periodic needle and
45863         sublinear performance.
45864         * doc/functions/memmem.texi (memmem): Document other deficiencies
45865         in cygwin and older glibc.
45866
45867 2008-01-08  Bruno Haible  <bruno@clisp.org>
45868
45869         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45870         augmentation.
45871
45872 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45873
45874         Add a configure time option: --disable-acl.
45875         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45876         AC_ARG_ENABLE(acl).
45877
45878 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45879
45880         * tests/test-localename.c: Don't include obsolete "setenv.h".
45881
45882         * modules/localename-tests (Depends-on): Need unsetenv.
45883
45884 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45885
45886         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45887
45888 2008-01-06  Colin Watson  <cjwatson@debian.org>
45889
45890         * users.txt: Add man-db.
45891
45892 2008-01-07  Bruno Haible  <bruno@clisp.org>
45893
45894         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45895         previous section name.
45896
45897 2008-01-07  Bruno Haible  <bruno@clisp.org>
45898
45899         * lib/progname.c (set_program_name): Don't strip off a leading
45900         "lt-" prefix outside a .libs directory.
45901         Suggested by Paul Eggert.
45902
45903 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45904             Bruno Haible  <bruno@clisp.org>
45905
45906         Improve memory cleanup in 'relocatable' module.
45907         * lib/relocatable.h (compute_curr_prefix): Change return type to
45908         'char *'.
45909         * lib/relocatable.c (compute_curr_prefix): Change return type to
45910         'char *'. Free curr_installdir after use.
45911         (relocate): Free curr_prefix_better after use.
45912         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45913
45914 2008-01-01  Bruno Haible  <bruno@clisp.org>
45915
45916         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45917         failure on older glibc systems.
45918         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45919
45920 2008-01-05  Eric Blake  <ebb9@byu.net>
45921
45922         Avoid quadratic system memmem.
45923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45924         Reported by Ralf Wildenhues.
45925
45926         Fix memmem test for mingw.
45927         * modules/memmem-tests (configure.ac): Check for alarm.
45928         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45929         it.
45930         * doc/functions/memmem.texi: New file.
45931         * doc/gnulib.texi (Function Substitutes): Add memmem.
45932         Reported by Bruno Haible.
45933
45934 2008-01-04  Bruno Haible  <bruno@clisp.org>
45935
45936         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45937         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45938         gl_HEADER_STRING_H_DEFAULTS.
45939
45940 2008-01-04  Eric Blake  <ebb9@byu.net>
45941
45942         Shorten duration of memmem test.
45943         * tests/test-memmem.c (main): Use alarm to declare failure if test
45944         is taking too long.
45945         Reported by Ralf Wildenhues.
45946
45947 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45948
45949         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45950         string, needed by strerror.
45951
45952 2008-01-03  Colin Watson  <cjwatson@debian.org>
45953             Bruno Haible  <bruno@clisp.org>
45954
45955         * doc/gnulib-tool.texi (Localization): New section.
45956
45957 2008-01-02  Bruno Haible  <bruno@clisp.org>
45958
45959         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45960         variables to 'unsigned char *' type.
45961         Reported by Paul Eggert.
45962
45963 2008-01-02  Jim Meyering  <jim@meyering.net>
45964
45965         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45966
45967 2007-12-31  Jim Meyering  <jim@meyering.net>
45968
45969         Avoid use of private FTS type name.
45970         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45971
45972 2007-12-30  Karl Berry  <karl@gnu.org>
45973
45974         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45975         work around defect in Texinfo and/or the standalone Info browser.
45976
45977 2007-12-30  Bruno Haible  <bruno@clisp.org>
45978
45979         Unify 5 copies of the KMP code.
45980         * lib/str-kmp.h: New file.
45981         * lib/c-strcasestr.c: Include str-kmp.h.
45982         (knuth_morris_pratt): Remove function.
45983         (c_strcasestr): Update.
45984         * lib/c-strstr.c: Include str-kmp.h.
45985         (knuth_morris_pratt): Remove function.
45986         (c_strcasestr): Update.
45987         * lib/mbscasestr.c: Include str-kmp.h.
45988         (knuth_morris_pratt_unibyte): Remove function.
45989         * lib/mbsstr.c: Include str-kmp.h.
45990         (knuth_morris_pratt_unibyte): Remove function.
45991         * lib/strcasestr.c: Include str-kmp.h.
45992         (knuth_morris_pratt): Remove function.
45993         (strcasestr): Update.
45994         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45995         * modules/c-strstr (Files): Likewise.
45996         * modules/mbscasestr (Files): Likewise.
45997         * modules/mbsstr (Files): Likewise.
45998         * modules/strcasestr (Files): Likewise.
45999         Suggested by Paul Eggert.
46000
46001 2007-12-30  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46004         defined.
46005
46006 2007-12-30  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/xmalloca.h: Include xalloc.h.
46009         (xnmalloca): New macro.
46010
46011 2007-12-30  Bruno Haible  <bruno@clisp.org>
46012
46013         * lib/malloca.h (nmalloca): New macro.
46014         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46015         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46016         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46017         knuth_morris_pratt_multibyte): Likewise.
46018         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46019         knuth_morris_pratt_multibyte): Likewise.
46020         * lib/memmem.c (knuth_morris_pratt): Likewise.
46021         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46022
46023 2007-12-25  Bruno Haible  <bruno@clisp.org>
46024
46025         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46026         * lib/glob.c: Don't include openat.h.
46027         (link_exists2_p): Add back the code that deals with the
46028         !GLOB_ALTDIRFUNC case.
46029         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46030         let it do the filename concatenation.
46031         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46032         * modules/glob (Depends-on): Remove openat.
46033
46034 2007-12-31  Bruno Haible  <bruno@clisp.org>
46035
46036         * modules/dirfd (License): Change to LGPLv2+.
46037         Approved by Jim Meyering.
46038
46039 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46040
46041         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46042         when multiplying M by sizeof (size_t).
46043
46044 2007-12-10  Martin Lambers  <marlam@marlam.de>
46045
46046         Override getpagesize on mingw.
46047         * lib/getpagesize.c: New file.
46048         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46049         * modules/getpagesize (Files): Add lib/getpagesize.c.
46050         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46052         REPLACE_GETPAGESIZE.
46053         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46054
46055 2007-12-25  Bruno Haible  <bruno@clisp.org>
46056
46057         * modules/localcharset (Notice): New field.
46058         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46059         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46060
46061 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46062             Bruno Haible  <bruno@clisp.org>
46063
46064         Avoid using the syntax symbol() in formatted documentation.
46065         * MODULES.html.sh (func_module): When replacing symbol() with a
46066         hyperlink, remove the parentheses. Show an error if some remain.
46067         Recognize and render the '...' syntax.
46068         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46069         Rework. Add paragraph about GCC's inlining.
46070         * doc/alloca.texi: Likewise.
46071         * doc/error.texi: Remove parentheses from symbol reference.
46072         * doc/gnulib-intro.texi: Likewise.
46073         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46074         * modules/fnmatch (Description): Reword to say "the ... function".
46075         * modules/full-read (Description): Likewise.
46076         * modules/full-write (Description): Likewise.
46077         * modules/safe-read (Description): Likewise.
46078         * modules/safe-write (Description): Likewise.
46079         * modules/strchrnul (Description): Likewise.
46080         * modules/trim (Description): Likewise.
46081         * modules/error (Description): Remove parentheses from symbol
46082         references.
46083         * modules/verror (Description): Likewise.
46084         Reported by Karl Berry.
46085
46086 2007-12-25  Bruno Haible  <bruno@clisp.org>
46087
46088         Fixup after 2007-10-16 commit.
46089         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46090
46091 2007-12-24  Bruno Haible  <bruno@clisp.org>
46092
46093         Make --enable-relocatable work with DESTDIR.
46094         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46095         to compute installdir from destprog.
46096         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46097         also set the RELOC_DESTDIR variable.
46098         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46099
46100 2007-12-24  Bruno Haible  <bruno@clisp.org>
46101
46102         Fix link error due to xalloc_die().
46103         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46104         of xreadlink.
46105         * lib/relocwrapper.c: Update comments.
46106         * build-aux/install-reloc: Remove xreadlink.c from file list.
46107         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46108         xreadlink.c.
46109         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46110
46111 2007-12-24  Bruno Haible  <bruno@clisp.org>
46112
46113         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46114         * lib/setenv.h: Remove file.
46115         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46116         lib/setenv.h.
46117         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46118         (Depends-on): Add stdlib.
46119         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46120         gl_FUNC_UNSETENV.
46121         (Include): Replace setenv.h with <stdlib.h>.
46122         * modules/unsetenv: New file.
46123         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46124         * lib/unsetenv.c: Include <stdlib.h> first.
46125         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46126         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46127         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46128         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46129         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46130         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46132         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46133         * doc/functions/unsetenv.texi: Update.
46134         * modules/xsetenv (Depends-on): Add unsetenv.
46135         * modules/getdate (Depends-on): Likewise.
46136         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46137         * lib/xsetenv.c: Don't include setenv.h.
46138         * lib/getdate.y: Likewise.
46139         * lib/relocwrapper.c: Likewise.
46140         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46141         (Depends-on): Add stdlib.
46142         * NEWS: Mention the changes.
46143         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46144
46145 2007-12-23  Bruno Haible  <bruno@clisp.org>
46146
46147         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46148         indentation.
46149
46150 2007-12-23  Bruno Haible  <bruno@clisp.org>
46151
46152         * lib/c-strcasestr.c: Add more comments.
46153         * lib/c-strstr.c: Likewise.
46154         * lib/mbscasestr.c: Likewise.
46155         * lib/mbsstr.c: Likewise.
46156         * lib/strcasestr.c: Likewise.
46157         * lib/memmem.c: Likewise.
46158
46159 2007-12-23  Bruno Haible  <bruno@clisp.org>
46160
46161         * tests/test-memmem.c: Include <string.h> first.
46162
46163 2007-12-22  Bruno Haible  <bruno@clisp.org>
46164
46165         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46166         the contents of $testsbase.
46167         Reported by Ralf Wildenhues.
46168
46169 2007-12-22  Bruno Haible  <bruno@clisp.org>
46170
46171         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46172         two variables local_ldadd_before, local_ldadd_last.
46173
46174 2007-12-20  Eric Blake  <ebb9@byu.net>
46175
46176         Work around circular library issue when cross-compiling.
46177         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46178         that progname.o does not need to pull in rpl_memcmp.
46179
46180 2007-12-19  Eric Blake  <ebb9@byu.net>
46181
46182         Fix memmem to avoid O(n^2) worst-case complexity.
46183         * lib/memmem.c (knuth_morris_pratt): New function.
46184         (memmem): Use it if first few naive iterations fail.
46185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46186         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46187         * modules/memchr (License): Likewise.
46188         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46189         malloca.
46190         * tests/test-memmem.c: Rewrite, borrowing ideas from
46191         test-mbsstr1.c; the old version wouldn't even compile!
46192         * modules/memmem-tests: New file.
46193         * lib/string.in.h (rpl_memmem): Add declaration.
46194         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46196         REPLACE_MEMMEM.
46197
46198 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46199
46200         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46201         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46202         before any system include files, and undef after them all.  This
46203         should fix a problem on VMS reported by John E. Malmberg in
46204         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46205
46206 2007-12-17  Eric Blake  <ebb9@byu.net>
46207
46208         Revert addition of verify, for BSD/OS.
46209         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46210         can't handle large files, for the sake of obsolete platforms.
46211         * modules/fseeko (Depends-on): Remove verify.
46212         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46213         * doc/functions/ftello.texi (ftello): Likewise.
46214         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46215         Reported by Larry Jones.
46216
46217 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46218
46219         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46220         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46221
46222 2007-12-17  Jim Meyering  <meyering@redhat.com>
46223
46224         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46225         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46226         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46227         * modules/getcwd (Depends-on): Add openat.
46228         Reported by Petr Salinger.
46229
46230 2007-12-17  Bruno Haible  <bruno@clisp.org>
46231
46232         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46233         avoid a segmentation fault of the configure test on x86_64 systems.
46234
46235 2007-12-15  Jim Meyering  <meyering@redhat.com>
46236
46237         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46238
46239 2007-12-13  Eric Blake  <ebb9@byu.net>
46240
46241         Another fseek test.
46242         * tests/test-fseek.c (main): Also test ungetc handling.
46243         * tests/test-fseeko.c (main): Likewise.
46244         * modules/fseeko (Depends-on): Add verify.
46245         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46246         large.
46247         Reported by Larry Jones.
46248
46249         Fix fseeko on mingw.
46250         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46251         seek.
46252
46253         Beef up fseek tests.
46254         * tests/test-fseek.c (main): Also test eof handling.
46255         * tests/test-fseeko.c (main): Likewise.
46256         Reported by Larry Jones.
46257
46258 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46259
46260         Fix fseeko on BSD-based platforms.
46261         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46262         successful seek.
46263
46264 2007-12-12  Eric Blake  <ebb9@byu.net>
46265
46266         Allow circular dependency of separate libtests.a
46267         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46268         when use_libtests.
46269
46270 2007-12-11  Eric Blake  <ebb9@byu.net>
46271
46272         Fix bug with -0.0L in previous patch.
46273         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46274         * tests/test-isnan.c (main): Also test on zeroes.
46275         * tests/test-isnanf.c (main): Likewise.
46276         * tests/test-isnanl.h (main): Likewise.
46277
46278         Detect pseudo-denormals on x86 even when cross-compiling.
46279         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46280         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46281         invalid bit patterns that happen to satisfy ==.
46282
46283         Avoid link failures with separate libtests.a.
46284         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46285         last, to satisfy circular dependencies.
46286
46287 2007-12-11  Eric Blake  <ebb9@byu.net>
46288         and Bruno Haible  <bruno@clisp.org>
46289
46290         Fix OpenBSD 4.0 <float.h> handling of long double.
46291         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46292         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46293         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46294
46295 2007-12-11  Jim Meyering  <meyering@redhat.com>
46296
46297         * users.txt: Add libvirt.
46298
46299         Support versions of autoconf prior to 2.59c.
46300         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46301         if it is not already defined.
46302
46303 2007-12-09  Bruno Haible  <bruno@clisp.org>
46304
46305         Let 'gnulib-tool --import' collect sources needed for the tests in
46306         tests/ rather than in lib/.
46307         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46308         argument. If true, add rules to generate libtests.a, and put libtests.a
46309         into $(LDADD). Consider source files in subdirectories and set
46310         uses_subdirs.
46311         (func_emit_initmacro_start, func_emit_initmacro_end,
46312         func_emit_initmacro_done): Pass all arguments explicitly.
46313         (func_import): Determine two module lists main_modules,
46314         testsrelated_modules. Determine use_libtests. Determine two variables
46315         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46316         instead of just sed_transform_lib_file. Determine two variables
46317         main_files and testsrelated_files. Compute 'files' as the union of
46318         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46319         func_add_or_update. In the generated gnulib-comp.m4, collect the
46320         object files for tests/ in different variables than those for lib/.
46321         Substitute LIBTESTS_LIBDEPS.
46322         (func_create_testdir): Combine the uses_subdirs results from
46323         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46324
46325 2007-12-09  Bruno Haible  <bruno@clisp.org>
46326
46327         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46328         the build-aux directory.
46329
46330 2007-12-09  Bruno Haible  <bruno@clisp.org>
46331
46332         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46333         introduced on 2006-09-09.
46334
46335 2007-12-07  Jim Meyering  <meyering@redhat.com>
46336
46337         Let these macros work also with autoconf-2.59.
46338         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46339         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46340         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46341
46342 2007-12-06  Jim Meyering  <meyering@redhat.com>
46343
46344         Avoid a configure-time syntax error in gl_FUNC_ACL.
46345         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46346         function in each branch, before testing the cache variable.
46347
46348 2007-12-04  Eric Blake  <ebb9@byu.net>
46349
46350         Make scripts executable.
46351         * build-aux/config.guess: Add execute permissions.
46352         * build-aux/config.sub: Likewise.
46353         * build-aux/gendocs.sh: Likewise.
46354
46355         Fix frexp on mingw.
46356         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46357         cross-compiling.
46358         * doc/functions/frexp.texi (frexp): Document the bug.
46359
46360         Make cygwin fseeko check more reliable.
46361         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46362         version numbers, rather than unrelated feature check.
46363         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46364         * doc/functions/ftello.texi (ftello): Likewise.
46365         Reported by Bruno Haible.
46366
46367         * m4/strerror.m4: Bump version number.
46368
46369 2007-12-03  Bruno Haible  <bruno@clisp.org>
46370
46371         * doc/functions/mprotect.texi: Mention the mingw problem.
46372
46373 2007-12-03  Eric Blake  <ebb9@byu.net>
46374
46375         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46376         REPLACE_STRERROR is initialized before this macro.
46377
46378 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46379
46380         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46381         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46382         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46383         put -lsec in even for programs other than 'ls'.  This fixes a problem
46384         for gettext reported by Bruno Haible in
46385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46386         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46387         Add support for Solaris 10.  This isn't efficient, but should get the
46388         job done for now.
46389
46390 2007-12-03  James Youngman  <jay@gnu.org>
46391
46392         * doc/regexprops-generic.texi: change "an close-group" to "a
46393         close-group" and "illegal" to "not allowed".
46394
46395 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46396
46397         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46398         pr_byname.h. Needed for the rare case when the maintainer has done
46399         "make maintainer-clean" in the source directory and then attempts a
46400         build outside the source directory.
46401         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46402         scripts_byname.h.
46403
46404 2007-12-02  Martin Lambers <marlam@marlam.de>
46405             Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/getpagesize.h: Remove file.
46408         * lib/unistd.in.h: Include declaration of getpagesize here.
46409         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46410         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46411         HAVE_SYS_PARAM_H.
46412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46413         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46414         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46415         (Depends-on): Add unistd.
46416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46417         (Include): Use <unistd.h> instead of getpagesize.h.
46418         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46419         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46420         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46421         gl_GETPAGESIZE invocation, already handled by module dependency.
46422         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46423
46424 2007-12-02  Bruno Haible  <bruno@clisp.org>
46425
46426         * modules/strings-tests: New file.
46427         * tests/test-strings.c: New file.
46428
46429         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46430         * lib/strings.in.h: New file.
46431         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46432         * m4/strings_h.m4: New file.
46433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46434         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46435         * modules/strings: New file.
46436         * modules/string (Makefile.am): Update.
46437         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46438         Reported by Karl Berry.
46439
46440 2007-12-01  Eric Blake  <ebb9@byu.net>
46441
46442         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46443         accomodate fix in cygwin 1.5.25.
46444
46445 2007-12-01  Jim Meyering  <meyering@redhat.com>
46446
46447         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46448         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46449         that would inhibit utf8-optimization of a regexp containing line-
46450         or buffer-anchors, e.g., `^', `$'.
46451
46452 2007-11-30  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46455         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46456         glthread_recursive_lock_init.
46457         * lib/lock.c (glthread_recursive_lock_init)
46458         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46459         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46460
46461 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46462
46463         New function qset_acl, like set_acl but with syscall semantics.
46464         * lib/acl.h (qset_acl): New decl.
46465         * lib/acl.c (qset_acl): New function.
46466         (set_acl): Use new function.  Use more-consistent diagnostics.
46467
46468 2007-11-28  Jim Meyering  <meyering@redhat.com>
46469
46470         * modules/physmem (License): Change from GPL to LGPLv2+.
46471
46472 2007-11-26  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46475         'long double' type has excess precision.
46476         Reported by Jim Meyering in
46477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46478
46479 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46480
46481         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46482         Sync from <http://gnu.org/licenses>.
46483         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46484         with license text from same location.
46485         * doc/maintain.texi, doc/standards.texi:  Sync from
46486         <http://savannah.gnu.org/projects/gnustandards>.
46487
46488 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46489         and Jim Meyering  <meyering@redhat.com>
46490
46491         Adjust getdate' grammar to accept a slightly more regular language.
46492         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46493         Before, the former was rejected.
46494         * lib/getdate.y (digits_to_date_time): New function, factored
46495         out of ...
46496         (number): ...here.  Just call digits_to_date_time.
46497         (hybrid): New non-terminal to handle an <unsigned number,
46498         signed relative offset> sequence consistently.
46499
46500 2007-11-18  Jim Meyering  <meyering@redhat.com>
46501
46502         Pull my changes from coreutils:
46503         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46504         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46505         use of $gnulib_tool_option_extras, so that it's separated from the
46506         preceding argument.
46507
46508         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46509         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46510         parent destination directories before copying a file into place.
46511
46512 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46513
46514         bootstrap: work also with 4-argument variant of AC_INIT
46515         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46516
46517 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46518
46519         Port test-getaddrinfo to Solaris.
46520         Problem reported by Bruno Haible in
46521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46522         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46523         explanation of setting 'hints'.
46524         Don't reject an implementation merely because it returns EAI_SERVICE.
46525         (EAI_SERVICE): Define to 0 if not defined.
46526
46527 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46528
46529         The license of gnu-make and posix-shell is now "GPLed build tool".
46530         * modules/gnu-make (License): Likewise.
46531         * modules/posix-shell (License): Likewise.
46532
46533         New module posix-shell, for determining a POSIX shell
46534         or perhaps something that is close enough to a POSIX shell.
46535         * m4/posix-shell.m4: New file.
46536         * modules/posix-shell: New file.
46537
46538         * MODULES.html.sh: Mention new module.
46539
46540         New module gnu-make, for determining whether we're using GNU Make.
46541         * m4/gnu-make.m4: New file.
46542         * modules/gnu-make: New file.
46543         * MODULES.html.sh: Mention new module.
46544
46545 2007-11-14  Jim Meyering  <meyering@redhat.com>
46546
46547         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46548         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46549         use this macro to create a function _definition_.
46550         Remove useless "#undef ARGMATCH_DIE".
46551
46552 2007-11-14  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/config.charset: Update for OpenBSD 4.1.
46555         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46556
46557 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46558
46559         Document 64-bit #if problems in stdint.texi.
46560         * doc/headers/stdint.texi (stdint.h): Mention problems with
46561         64-bit-#if, and how to work around them.
46562
46563         Don't insist on 'long long int' support in the preprocessor.  It
46564         breaks too many things.  For example, PRIdMAX still uses a 'long
46565         long int' format with the latest Sun compiler, even though
46566         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46567         preprocessor problem.  This causes the latest coreutils to dump
46568         core on Solaris 10 sparc with the Sun C compiler.
46569         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46570         the troublesome expressions at configure-time, not at #if-time.
46571         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46572         preprocessor.
46573         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46574         compile-time C checks, done at 'configure'-time.
46575         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46576         * modules/inttypes (Makefile): Substitute the new symbols that
46577         gl_INTTYPES_H now generates.
46578         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46579
46580 2007-11-12  Bruno Haible  <bruno@clisp.org>
46581
46582         Tests for Unicode character classification functions.
46583
46584         * modules/unictype/bidicategory-byname-tests: New file.
46585         * modules/unictype/bidicategory-name-tests: New file.
46586         * modules/unictype/bidicategory-of-tests: New file.
46587         * modules/unictype/bidicategory-test-tests: New file.
46588         * modules/unictype/block-list-tests: New file.
46589         * modules/unictype/block-of-tests: New file.
46590         * modules/unictype/block-test-tests: New file.
46591         * modules/unictype/category-C-tests: New file.
46592         * modules/unictype/category-Cc-tests: New file.
46593         * modules/unictype/category-Cf-tests: New file.
46594         * modules/unictype/category-Cn-tests: New file.
46595         * modules/unictype/category-Co-tests: New file.
46596         * modules/unictype/category-Cs-tests: New file.
46597         * modules/unictype/category-L-tests: New file.
46598         * modules/unictype/category-Ll-tests: New file.
46599         * modules/unictype/category-Lm-tests: New file.
46600         * modules/unictype/category-Lo-tests: New file.
46601         * modules/unictype/category-Lt-tests: New file.
46602         * modules/unictype/category-Lu-tests: New file.
46603         * modules/unictype/category-M-tests: New file.
46604         * modules/unictype/category-Mc-tests: New file.
46605         * modules/unictype/category-Me-tests: New file.
46606         * modules/unictype/category-Mn-tests: New file.
46607         * modules/unictype/category-N-tests: New file.
46608         * modules/unictype/category-Nd-tests: New file.
46609         * modules/unictype/category-Nl-tests: New file.
46610         * modules/unictype/category-No-tests: New file.
46611         * modules/unictype/category-P-tests: New file.
46612         * modules/unictype/category-Pc-tests: New file.
46613         * modules/unictype/category-Pd-tests: New file.
46614         * modules/unictype/category-Pe-tests: New file.
46615         * modules/unictype/category-Pf-tests: New file.
46616         * modules/unictype/category-Pi-tests: New file.
46617         * modules/unictype/category-Po-tests: New file.
46618         * modules/unictype/category-Ps-tests: New file.
46619         * modules/unictype/category-S-tests: New file.
46620         * modules/unictype/category-Sc-tests: New file.
46621         * modules/unictype/category-Sk-tests: New file.
46622         * modules/unictype/category-Sm-tests: New file.
46623         * modules/unictype/category-So-tests: New file.
46624         * modules/unictype/category-Z-tests: New file.
46625         * modules/unictype/category-Zl-tests: New file.
46626         * modules/unictype/category-Zp-tests: New file.
46627         * modules/unictype/category-Zs-tests: New file.
46628         * modules/unictype/category-and-not-tests: New file.
46629         * modules/unictype/category-and-tests: New file.
46630         * modules/unictype/category-byname-tests: New file.
46631         * modules/unictype/category-name-tests: New file.
46632         * modules/unictype/category-none-tests: New file.
46633         * modules/unictype/category-of-tests: New file.
46634         * modules/unictype/category-or-tests: New file.
46635         * modules/unictype/category-test-withtable-tests: New file.
46636         * modules/unictype/combining-class-tests: New file.
46637         * modules/unictype/ctype-alnum-tests: New file.
46638         * modules/unictype/ctype-alpha-tests: New file.
46639         * modules/unictype/ctype-blank-tests: New file.
46640         * modules/unictype/ctype-cntrl-tests: New file.
46641         * modules/unictype/ctype-digit-tests: New file.
46642         * modules/unictype/ctype-graph-tests: New file.
46643         * modules/unictype/ctype-lower-tests: New file.
46644         * modules/unictype/ctype-print-tests: New file.
46645         * modules/unictype/ctype-punct-tests: New file.
46646         * modules/unictype/ctype-space-tests: New file.
46647         * modules/unictype/ctype-upper-tests: New file.
46648         * modules/unictype/ctype-xdigit-tests: New file.
46649         * modules/unictype/decimal-digit-tests: New file.
46650         * modules/unictype/digit-tests: New file.
46651         * modules/unictype/mirror-tests: New file.
46652         * modules/unictype/numeric-tests: New file.
46653         * modules/unictype/property-alphabetic-tests: New file.
46654         * modules/unictype/property-ascii-hex-digit-tests: New file.
46655         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46656         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46657         * modules/unictype/property-bidi-block-separator-tests: New file.
46658         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46659         * modules/unictype/property-bidi-common-separator-tests: New file.
46660         * modules/unictype/property-bidi-control-tests: New file.
46661         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46662         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46663         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46664         * modules/unictype/property-bidi-european-digit-tests: New file.
46665         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46666         * modules/unictype/property-bidi-left-to-right-tests: New file.
46667         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46668         * modules/unictype/property-bidi-other-neutral-tests: New file.
46669         * modules/unictype/property-bidi-pdf-tests: New file.
46670         * modules/unictype/property-bidi-segment-separator-tests: New file.
46671         * modules/unictype/property-bidi-whitespace-tests: New file.
46672         * modules/unictype/property-byname-tests: New file.
46673         * modules/unictype/property-combining-tests: New file.
46674         * modules/unictype/property-composite-tests: New file.
46675         * modules/unictype/property-currency-symbol-tests: New file.
46676         * modules/unictype/property-dash-tests: New file.
46677         * modules/unictype/property-decimal-digit-tests: New file.
46678         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46679         * modules/unictype/property-deprecated-tests: New file.
46680         * modules/unictype/property-diacritic-tests: New file.
46681         * modules/unictype/property-extender-tests: New file.
46682         * modules/unictype/property-format-control-tests: New file.
46683         * modules/unictype/property-grapheme-base-tests: New file.
46684         * modules/unictype/property-grapheme-extend-tests: New file.
46685         * modules/unictype/property-grapheme-link-tests: New file.
46686         * modules/unictype/property-hex-digit-tests: New file.
46687         * modules/unictype/property-hyphen-tests: New file.
46688         * modules/unictype/property-id-continue-tests: New file.
46689         * modules/unictype/property-id-start-tests: New file.
46690         * modules/unictype/property-ideographic-tests: New file.
46691         * modules/unictype/property-ids-binary-operator-tests: New file.
46692         * modules/unictype/property-ids-trinary-operator-tests: New file.
46693         * modules/unictype/property-ignorable-control-tests: New file.
46694         * modules/unictype/property-iso-control-tests: New file.
46695         * modules/unictype/property-join-control-tests: New file.
46696         * modules/unictype/property-left-of-pair-tests: New file.
46697         * modules/unictype/property-line-separator-tests: New file.
46698         * modules/unictype/property-logical-order-exception-tests: New file.
46699         * modules/unictype/property-lowercase-tests: New file.
46700         * modules/unictype/property-math-tests: New file.
46701         * modules/unictype/property-non-break-tests: New file.
46702         * modules/unictype/property-not-a-character-tests: New file.
46703         * modules/unictype/property-numeric-tests: New file.
46704         * modules/unictype/property-other-alphabetic-tests: New file.
46705         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46706         * modules/unictype/property-other-grapheme-extend-tests: New file.
46707         * modules/unictype/property-other-id-continue-tests: New file.
46708         * modules/unictype/property-other-id-start-tests: New file.
46709         * modules/unictype/property-other-lowercase-tests: New file.
46710         * modules/unictype/property-other-math-tests: New file.
46711         * modules/unictype/property-other-uppercase-tests: New file.
46712         * modules/unictype/property-paired-punctuation-tests: New file.
46713         * modules/unictype/property-paragraph-separator-tests: New file.
46714         * modules/unictype/property-pattern-syntax-tests: New file.
46715         * modules/unictype/property-pattern-white-space-tests: New file.
46716         * modules/unictype/property-private-use-tests: New file.
46717         * modules/unictype/property-punctuation-tests: New file.
46718         * modules/unictype/property-quotation-mark-tests: New file.
46719         * modules/unictype/property-radical-tests: New file.
46720         * modules/unictype/property-sentence-terminal-tests: New file.
46721         * modules/unictype/property-soft-dotted-tests: New file.
46722         * modules/unictype/property-space-tests: New file.
46723         * modules/unictype/property-terminal-punctuation-tests: New file.
46724         * modules/unictype/property-test-tests: New file.
46725         * modules/unictype/property-titlecase-tests: New file.
46726         * modules/unictype/property-unassigned-code-value-tests: New file.
46727         * modules/unictype/property-unified-ideograph-tests: New file.
46728         * modules/unictype/property-uppercase-tests: New file.
46729         * modules/unictype/property-variation-selector-tests: New file.
46730         * modules/unictype/property-white-space-tests: New file.
46731         * modules/unictype/property-xid-continue-tests: New file.
46732         * modules/unictype/property-xid-start-tests: New file.
46733         * modules/unictype/property-zero-width-tests: New file.
46734         * modules/unictype/scripts-tests: New file.
46735         * modules/unictype/syntax-c-ident-tests: New file.
46736         * modules/unictype/syntax-c-whitespace-tests: New file.
46737         * modules/unictype/syntax-java-ident-tests: New file.
46738         * modules/unictype/syntax-java-whitespace-tests: New file.
46739         * tests/unictype/test-bidi_byname.c: New file.
46740         * tests/unictype/test-bidi_name.c: New file.
46741         * tests/unictype/test-bidi_of.c: New file.
46742         * tests/unictype/test-bidi_test.c: New file.
46743         * tests/unictype/test-block_list.c: New file.
46744         * tests/unictype/test-block_of.c: New file.
46745         * tests/unictype/test-block_test.c: New file.
46746         * tests/unictype/test-categ_and.c: New file.
46747         * tests/unictype/test-categ_and_not.c: New file.
46748         * tests/unictype/test-categ_byname.c: New file.
46749         * tests/unictype/test-categ_name.c: New file.
46750         * tests/unictype/test-categ_none.c: New file.
46751         * tests/unictype/test-categ_of.c: New file.
46752         * tests/unictype/test-categ_or.c: New file.
46753         * tests/unictype/test-categ_test_withtable.c: New file.
46754         * tests/unictype/test-combining.c: New file.
46755         * tests/unictype/test-decdigit.c: New file.
46756         * tests/unictype/test-digit.c: New file.
46757         * tests/unictype/test-mirror.c: New file.
46758         * tests/unictype/test-numeric.c: New file.
46759         * tests/unictype/test-pr_byname.c: New file.
46760         * tests/unictype/test-pr_test.c: New file.
46761         * tests/unictype/test-predicate-part1.h: New file.
46762         * tests/unictype/test-predicate-part2.h: New file.
46763         * tests/unictype/test-scripts.c: New file.
46764         * tests/unictype/test-sy_c_ident.c: New file.
46765         * tests/unictype/test-sy_java_ident.c: New file.
46766
46767         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46768         for Unicode 5.0.0.
46769         * tests/unictype/test-categ_Cc.c: Likewise.
46770         * tests/unictype/test-categ_Cf.c: Likewise.
46771         * tests/unictype/test-categ_Cn.c: Likewise.
46772         * tests/unictype/test-categ_Co.c: Likewise.
46773         * tests/unictype/test-categ_Cs.c: Likewise.
46774         * tests/unictype/test-categ_L.c: Likewise.
46775         * tests/unictype/test-categ_Ll.c: Likewise.
46776         * tests/unictype/test-categ_Lm.c: Likewise.
46777         * tests/unictype/test-categ_Lo.c: Likewise.
46778         * tests/unictype/test-categ_Lt.c: Likewise.
46779         * tests/unictype/test-categ_Lu.c: Likewise.
46780         * tests/unictype/test-categ_M.c: Likewise.
46781         * tests/unictype/test-categ_Mc.c: Likewise.
46782         * tests/unictype/test-categ_Me.c: Likewise.
46783         * tests/unictype/test-categ_Mn.c: Likewise.
46784         * tests/unictype/test-categ_N.c: Likewise.
46785         * tests/unictype/test-categ_Nd.c: Likewise.
46786         * tests/unictype/test-categ_Nl.c: Likewise.
46787         * tests/unictype/test-categ_No.c: Likewise.
46788         * tests/unictype/test-categ_P.c: Likewise.
46789         * tests/unictype/test-categ_Pc.c: Likewise.
46790         * tests/unictype/test-categ_Pd.c: Likewise.
46791         * tests/unictype/test-categ_Pe.c: Likewise.
46792         * tests/unictype/test-categ_Pf.c: Likewise.
46793         * tests/unictype/test-categ_Pi.c: Likewise.
46794         * tests/unictype/test-categ_Po.c: Likewise.
46795         * tests/unictype/test-categ_Ps.c: Likewise.
46796         * tests/unictype/test-categ_S.c: Likewise.
46797         * tests/unictype/test-categ_Sc.c: Likewise.
46798         * tests/unictype/test-categ_Sk.c: Likewise.
46799         * tests/unictype/test-categ_Sm.c: Likewise.
46800         * tests/unictype/test-categ_So.c: Likewise.
46801         * tests/unictype/test-categ_Z.c: Likewise.
46802         * tests/unictype/test-categ_Zl.c: Likewise.
46803         * tests/unictype/test-categ_Zp.c: Likewise.
46804         * tests/unictype/test-categ_Zs.c: Likewise.
46805         * tests/unictype/test-ctype_alnum.c: Likewise.
46806         * tests/unictype/test-ctype_alpha.c: Likewise.
46807         * tests/unictype/test-ctype_blank.c: Likewise.
46808         * tests/unictype/test-ctype_cntrl.c: Likewise.
46809         * tests/unictype/test-ctype_digit.c: Likewise.
46810         * tests/unictype/test-ctype_graph.c: Likewise.
46811         * tests/unictype/test-ctype_lower.c: Likewise.
46812         * tests/unictype/test-ctype_print.c: Likewise.
46813         * tests/unictype/test-ctype_punct.c: Likewise.
46814         * tests/unictype/test-ctype_space.c: Likewise.
46815         * tests/unictype/test-ctype_upper.c: Likewise.
46816         * tests/unictype/test-ctype_xdigit.c: Likewise.
46817         * tests/unictype/test-decdigit.h: Likewise.
46818         * tests/unictype/test-digit.h: Likewise.
46819         * tests/unictype/test-numeric.h: Likewise.
46820         * tests/unictype/test-pr_alphabetic.c: Likewise.
46821         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46822         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46823         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46824         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46825         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46826         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46827         * tests/unictype/test-pr_bidi_control.c: Likewise.
46828         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46829         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46830         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46831         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46832         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46833         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46834         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46835         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46836         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46837         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46838         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46839         * tests/unictype/test-pr_combining.c: Likewise.
46840         * tests/unictype/test-pr_composite.c: Likewise.
46841         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46842         * tests/unictype/test-pr_dash.c: Likewise.
46843         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46844         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46845         * tests/unictype/test-pr_deprecated.c: Likewise.
46846         * tests/unictype/test-pr_diacritic.c: Likewise.
46847         * tests/unictype/test-pr_extender.c: Likewise.
46848         * tests/unictype/test-pr_format_control.c: Likewise.
46849         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46850         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46851         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46852         * tests/unictype/test-pr_hex_digit.c: Likewise.
46853         * tests/unictype/test-pr_hyphen.c: Likewise.
46854         * tests/unictype/test-pr_id_continue.c: Likewise.
46855         * tests/unictype/test-pr_id_start.c: Likewise.
46856         * tests/unictype/test-pr_ideographic.c: Likewise.
46857         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46858         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46859         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46860         * tests/unictype/test-pr_iso_control.c: Likewise.
46861         * tests/unictype/test-pr_join_control.c: Likewise.
46862         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46863         * tests/unictype/test-pr_line_separator.c: Likewise.
46864         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46865         * tests/unictype/test-pr_lowercase.c: Likewise.
46866         * tests/unictype/test-pr_math.c: Likewise.
46867         * tests/unictype/test-pr_non_break.c: Likewise.
46868         * tests/unictype/test-pr_not_a_character.c: Likewise.
46869         * tests/unictype/test-pr_numeric.c: Likewise.
46870         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46871         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46872         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46873         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46874         * tests/unictype/test-pr_other_id_start.c: Likewise.
46875         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46876         * tests/unictype/test-pr_other_math.c: Likewise.
46877         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46878         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46879         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46880         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46881         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46882         * tests/unictype/test-pr_private_use.c: Likewise.
46883         * tests/unictype/test-pr_punctuation.c: Likewise.
46884         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46885         * tests/unictype/test-pr_radical.c: Likewise.
46886         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46887         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46888         * tests/unictype/test-pr_space.c: Likewise.
46889         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46890         * tests/unictype/test-pr_titlecase.c: Likewise.
46891         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46892         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46893         * tests/unictype/test-pr_uppercase.c: Likewise.
46894         * tests/unictype/test-pr_variation_selector.c: Likewise.
46895         * tests/unictype/test-pr_white_space.c: Likewise.
46896         * tests/unictype/test-pr_xid_continue.c: Likewise.
46897         * tests/unictype/test-pr_xid_start.c: Likewise.
46898         * tests/unictype/test-pr_zero_width.c: Likewise.
46899         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46900         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46901
46902 2007-11-12  Bruno Haible  <bruno@clisp.org>
46903
46904         Unicode character classification functions.
46905         * lib/unictype.h: New file.
46906         * modules/unictype/base: New file.
46907         * modules/unictype/category-L: New file.
46908         * modules/unictype/category-Lu: New file.
46909         * modules/unictype/category-Ll: New file.
46910         * modules/unictype/category-Lt: New file.
46911         * modules/unictype/category-Lm: New file.
46912         * modules/unictype/category-Lo: New file.
46913         * modules/unictype/category-M: New file.
46914         * modules/unictype/category-Mn: New file.
46915         * modules/unictype/category-Mc: New file.
46916         * modules/unictype/category-Me: New file.
46917         * modules/unictype/category-N: New file.
46918         * modules/unictype/category-Nd: New file.
46919         * modules/unictype/category-Nl: New file.
46920         * modules/unictype/category-No: New file.
46921         * modules/unictype/category-P: New file.
46922         * modules/unictype/category-Pc: New file.
46923         * modules/unictype/category-Pd: New file.
46924         * modules/unictype/category-Ps: New file.
46925         * modules/unictype/category-Pe: New file.
46926         * modules/unictype/category-Pi: New file.
46927         * modules/unictype/category-Pf: New file.
46928         * modules/unictype/category-Po: New file.
46929         * modules/unictype/category-S: New file.
46930         * modules/unictype/category-Sm: New file.
46931         * modules/unictype/category-Sc: New file.
46932         * modules/unictype/category-Sk: New file.
46933         * modules/unictype/category-So: New file.
46934         * modules/unictype/category-Z: New file.
46935         * modules/unictype/category-Zs: New file.
46936         * modules/unictype/category-Zl: New file.
46937         * modules/unictype/category-Zp: New file.
46938         * modules/unictype/category-C: New file.
46939         * modules/unictype/category-Cc: New file.
46940         * modules/unictype/category-Cf: New file.
46941         * modules/unictype/category-Cs: New file.
46942         * modules/unictype/category-Co: New file.
46943         * modules/unictype/category-Cn: New file.
46944         * modules/unictype/category-or: New file.
46945         * modules/unictype/category-of: New file.
46946         * modules/unictype/category-test: New file.
46947         * modules/unictype/category-test-withtable: New file.
46948         * modules/unictype/category-byname: New file.
46949         * modules/unictype/category-none: New file.
46950         * modules/unictype/category-and: New file.
46951         * modules/unictype/category-and-not: New file.
46952         * modules/unictype/category-name: New file.
46953         * modules/unictype/combining-class: New file.
46954         * modules/unictype/category-all: New file.
46955         * modules/unictype/bidicategory-all: New file.
46956         * modules/unictype/bidicategory-byname: New file.
46957         * modules/unictype/bidicategory-name: New file.
46958         * modules/unictype/bidicategory-of: New file.
46959         * modules/unictype/bidicategory-test: New file.
46960         * modules/unictype/decimal-digit: New file.
46961         * modules/unictype/digit: New file.
46962         * modules/unictype/numeric: New file.
46963         * modules/unictype/mirror: New file.
46964         * modules/unictype/property-white-space: New file.
46965         * modules/unictype/property-alphabetic: New file.
46966         * modules/unictype/property-other-alphabetic: New file.
46967         * modules/unictype/property-not-a-character: New file.
46968         * modules/unictype/property-default-ignorable-code-point: New file.
46969         * modules/unictype/property-other-default-ignorable-code-point: New
46970         file.
46971         * modules/unictype/property-deprecated: New file.
46972         * modules/unictype/property-logical-order-exception: New file.
46973         * modules/unictype/property-variation-selector: New file.
46974         * modules/unictype/property-private-use: New file.
46975         * modules/unictype/property-unassigned-code-value: New file.
46976         * modules/unictype/property-uppercase: New file.
46977         * modules/unictype/property-other-uppercase: New file.
46978         * modules/unictype/property-lowercase: New file.
46979         * modules/unictype/property-other-lowercase: New file.
46980         * modules/unictype/property-titlecase: New file.
46981         * modules/unictype/property-soft-dotted: New file.
46982         * modules/unictype/property-id-start: New file.
46983         * modules/unictype/property-other-id-start: New file.
46984         * modules/unictype/property-id-continue: New file.
46985         * modules/unictype/property-other-id-continue: New file.
46986         * modules/unictype/property-xid-start: New file.
46987         * modules/unictype/property-xid-continue: New file.
46988         * modules/unictype/property-pattern-white-space: New file.
46989         * modules/unictype/property-pattern-syntax: New file.
46990         * modules/unictype/property-join-control: New file.
46991         * modules/unictype/property-grapheme-base: New file.
46992         * modules/unictype/property-grapheme-extend: New file.
46993         * modules/unictype/property-other-grapheme-extend: New file.
46994         * modules/unictype/property-grapheme-link: New file.
46995         * modules/unictype/property-bidi-control: New file.
46996         * modules/unictype/property-bidi-left-to-right: New file.
46997         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46998         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46999         * modules/unictype/property-bidi-european-digit: New file.
47000         * modules/unictype/property-bidi-eur-num-separator: New file.
47001         * modules/unictype/property-bidi-eur-num-terminator: New file.
47002         * modules/unictype/property-bidi-arabic-digit: New file.
47003         * modules/unictype/property-bidi-common-separator: New file.
47004         * modules/unictype/property-bidi-block-separator: New file.
47005         * modules/unictype/property-bidi-segment-separator: New file.
47006         * modules/unictype/property-bidi-whitespace: New file.
47007         * modules/unictype/property-bidi-non-spacing-mark: New file.
47008         * modules/unictype/property-bidi-boundary-neutral: New file.
47009         * modules/unictype/property-bidi-pdf: New file.
47010         * modules/unictype/property-bidi-embedding-or-override: New file.
47011         * modules/unictype/property-bidi-other-neutral: New file.
47012         * modules/unictype/property-hex-digit: New file.
47013         * modules/unictype/property-ascii-hex-digit: New file.
47014         * modules/unictype/property-ideographic: New file.
47015         * modules/unictype/property-unified-ideograph: New file.
47016         * modules/unictype/property-radical: New file.
47017         * modules/unictype/property-ids-binary-operator: New file.
47018         * modules/unictype/property-ids-trinary-operator: New file.
47019         * modules/unictype/property-zero-width: New file.
47020         * modules/unictype/property-space: New file.
47021         * modules/unictype/property-non-break: New file.
47022         * modules/unictype/property-iso-control: New file.
47023         * modules/unictype/property-format-control: New file.
47024         * modules/unictype/property-dash: New file.
47025         * modules/unictype/property-hyphen: New file.
47026         * modules/unictype/property-punctuation: New file.
47027         * modules/unictype/property-line-separator: New file.
47028         * modules/unictype/property-paragraph-separator: New file.
47029         * modules/unictype/property-quotation-mark: New file.
47030         * modules/unictype/property-sentence-terminal: New file.
47031         * modules/unictype/property-terminal-punctuation: New file.
47032         * modules/unictype/property-currency-symbol: New file.
47033         * modules/unictype/property-math: New file.
47034         * modules/unictype/property-other-math: New file.
47035         * modules/unictype/property-paired-punctuation: New file.
47036         * modules/unictype/property-left-of-pair: New file.
47037         * modules/unictype/property-combining: New file.
47038         * modules/unictype/property-composite: New file.
47039         * modules/unictype/property-decimal-digit: New file.
47040         * modules/unictype/property-numeric: New file.
47041         * modules/unictype/property-diacritic: New file.
47042         * modules/unictype/property-extender: New file.
47043         * modules/unictype/property-ignorable-control: New file.
47044         * modules/unictype/property-test: New file.
47045         * modules/unictype/property-byname: New file.
47046         * modules/unictype/property-all: New file.
47047         * modules/unictype/scripts: New file.
47048         * modules/unictype/scripts-all: New file.
47049         * modules/unictype/block-of: New file.
47050         * modules/unictype/block-test: New file.
47051         * modules/unictype/block-list: New file.
47052         * modules/unictype/block-all: New file.
47053         * modules/unictype/syntax-c-whitespace: New file.
47054         * modules/unictype/syntax-java-whitespace: New file.
47055         * modules/unictype/syntax-c-ident: New file.
47056         * modules/unictype/syntax-java-ident: New file.
47057         * modules/unictype/ctype-alnum: New file.
47058         * modules/unictype/ctype-alpha: New file.
47059         * modules/unictype/ctype-cntrl: New file.
47060         * modules/unictype/ctype-digit: New file.
47061         * modules/unictype/ctype-graph: New file.
47062         * modules/unictype/ctype-lower: New file.
47063         * modules/unictype/ctype-print: New file.
47064         * modules/unictype/ctype-punct: New file.
47065         * modules/unictype/ctype-space: New file.
47066         * modules/unictype/ctype-upper: New file.
47067         * modules/unictype/ctype-xdigit: New file.
47068         * modules/unictype/ctype-blank: New file.
47069         * lib/unictype/bidi_byname.c: New file.
47070         * lib/unictype/bidi_name.c: New file.
47071         * lib/unictype/bidi_of.c: New file.
47072         * lib/unictype/bidi_test.c: New file.
47073         * lib/unictype/bitmap.h: New file.
47074         * lib/unictype/block_test.c: New file.
47075         * lib/unictype/blocks.c: New file.
47076         * lib/unictype/categ_C.c: New file.
47077         * lib/unictype/categ_Cc.c: New file.
47078         * lib/unictype/categ_Cf.c: New file.
47079         * lib/unictype/categ_Cn.c: New file.
47080         * lib/unictype/categ_Co.c: New file.
47081         * lib/unictype/categ_Cs.c: New file.
47082         * lib/unictype/categ_L.c: New file.
47083         * lib/unictype/categ_Ll.c: New file.
47084         * lib/unictype/categ_Lm.c: New file.
47085         * lib/unictype/categ_Lo.c: New file.
47086         * lib/unictype/categ_Lt.c: New file.
47087         * lib/unictype/categ_Lu.c: New file.
47088         * lib/unictype/categ_M.c: New file.
47089         * lib/unictype/categ_Mc.c: New file.
47090         * lib/unictype/categ_Me.c: New file.
47091         * lib/unictype/categ_Mn.c: New file.
47092         * lib/unictype/categ_N.c: New file.
47093         * lib/unictype/categ_Nd.c: New file.
47094         * lib/unictype/categ_Nl.c: New file.
47095         * lib/unictype/categ_No.c: New file.
47096         * lib/unictype/categ_P.c: New file.
47097         * lib/unictype/categ_Pc.c: New file.
47098         * lib/unictype/categ_Pd.c: New file.
47099         * lib/unictype/categ_Pe.c: New file.
47100         * lib/unictype/categ_Pf.c: New file.
47101         * lib/unictype/categ_Pi.c: New file.
47102         * lib/unictype/categ_Po.c: New file.
47103         * lib/unictype/categ_Ps.c: New file.
47104         * lib/unictype/categ_S.c: New file.
47105         * lib/unictype/categ_Sc.c: New file.
47106         * lib/unictype/categ_Sk.c: New file.
47107         * lib/unictype/categ_Sm.c: New file.
47108         * lib/unictype/categ_So.c: New file.
47109         * lib/unictype/categ_Z.c: New file.
47110         * lib/unictype/categ_Zl.c: New file.
47111         * lib/unictype/categ_Zp.c: New file.
47112         * lib/unictype/categ_Zs.c: New file.
47113         * lib/unictype/categ_and.c: New file.
47114         * lib/unictype/categ_and_not.c: New file.
47115         * lib/unictype/categ_byname.c: New file.
47116         * lib/unictype/categ_name.c: New file.
47117         * lib/unictype/categ_none.c: New file.
47118         * lib/unictype/categ_of.c: New file.
47119         * lib/unictype/categ_or.c: New file.
47120         * lib/unictype/categ_test.c: New file.
47121         * lib/unictype/combining.c: New file.
47122         * lib/unictype/ctype_alnum.c: New file.
47123         * lib/unictype/ctype_alpha.c: New file.
47124         * lib/unictype/ctype_blank.c: New file.
47125         * lib/unictype/ctype_cntrl.c: New file.
47126         * lib/unictype/ctype_digit.c: New file.
47127         * lib/unictype/ctype_graph.c: New file.
47128         * lib/unictype/ctype_lower.c: New file.
47129         * lib/unictype/ctype_print.c: New file.
47130         * lib/unictype/ctype_punct.c: New file.
47131         * lib/unictype/ctype_space.c: New file.
47132         * lib/unictype/ctype_upper.c: New file.
47133         * lib/unictype/ctype_xdigit.c: New file.
47134         * lib/unictype/decdigit.c: New file.
47135         * lib/unictype/digit.c: New file.
47136         * lib/unictype/identsyntaxmap.h: New file.
47137         * lib/unictype/mirror.c: New file.
47138         * lib/unictype/numeric.c: New file.
47139         * lib/unictype/pr_alphabetic.c: New file.
47140         * lib/unictype/pr_ascii_hex_digit.c: New file.
47141         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47142         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47143         * lib/unictype/pr_bidi_block_separator.c: New file.
47144         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47145         * lib/unictype/pr_bidi_common_separator.c: New file.
47146         * lib/unictype/pr_bidi_control.c: New file.
47147         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47148         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47149         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47150         * lib/unictype/pr_bidi_european_digit.c: New file.
47151         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47152         * lib/unictype/pr_bidi_left_to_right.c: New file.
47153         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47154         * lib/unictype/pr_bidi_other_neutral.c: New file.
47155         * lib/unictype/pr_bidi_pdf.c: New file.
47156         * lib/unictype/pr_bidi_segment_separator.c: New file.
47157         * lib/unictype/pr_bidi_whitespace.c: New file.
47158         * lib/unictype/pr_byname.c: New file.
47159         * lib/unictype/pr_byname.gperf: New file.
47160         * lib/unictype/pr_combining.c: New file.
47161         * lib/unictype/pr_composite.c: New file.
47162         * lib/unictype/pr_currency_symbol.c: New file.
47163         * lib/unictype/pr_dash.c: New file.
47164         * lib/unictype/pr_decimal_digit.c: New file.
47165         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47166         * lib/unictype/pr_deprecated.c: New file.
47167         * lib/unictype/pr_diacritic.c: New file.
47168         * lib/unictype/pr_extender.c: New file.
47169         * lib/unictype/pr_format_control.c: New file.
47170         * lib/unictype/pr_grapheme_base.c: New file.
47171         * lib/unictype/pr_grapheme_extend.c: New file.
47172         * lib/unictype/pr_grapheme_link.c: New file.
47173         * lib/unictype/pr_hex_digit.c: New file.
47174         * lib/unictype/pr_hyphen.c: New file.
47175         * lib/unictype/pr_id_continue.c: New file.
47176         * lib/unictype/pr_id_start.c: New file.
47177         * lib/unictype/pr_ideographic.c: New file.
47178         * lib/unictype/pr_ids_binary_operator.c: New file.
47179         * lib/unictype/pr_ids_trinary_operator.c: New file.
47180         * lib/unictype/pr_ignorable_control.c: New file.
47181         * lib/unictype/pr_iso_control.c: New file.
47182         * lib/unictype/pr_join_control.c: New file.
47183         * lib/unictype/pr_left_of_pair.c: New file.
47184         * lib/unictype/pr_line_separator.c: New file.
47185         * lib/unictype/pr_logical_order_exception.c: New file.
47186         * lib/unictype/pr_lowercase.c: New file.
47187         * lib/unictype/pr_math.c: New file.
47188         * lib/unictype/pr_non_break.c: New file.
47189         * lib/unictype/pr_not_a_character.c: New file.
47190         * lib/unictype/pr_numeric.c: New file.
47191         * lib/unictype/pr_other_alphabetic.c: New file.
47192         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47193         * lib/unictype/pr_other_grapheme_extend.c: New file.
47194         * lib/unictype/pr_other_id_continue.c: New file.
47195         * lib/unictype/pr_other_id_start.c: New file.
47196         * lib/unictype/pr_other_lowercase.c: New file.
47197         * lib/unictype/pr_other_math.c: New file.
47198         * lib/unictype/pr_other_uppercase.c: New file.
47199         * lib/unictype/pr_paired_punctuation.c: New file.
47200         * lib/unictype/pr_paragraph_separator.c: New file.
47201         * lib/unictype/pr_pattern_syntax.c: New file.
47202         * lib/unictype/pr_pattern_white_space.c: New file.
47203         * lib/unictype/pr_private_use.c: New file.
47204         * lib/unictype/pr_punctuation.c: New file.
47205         * lib/unictype/pr_quotation_mark.c: New file.
47206         * lib/unictype/pr_radical.c: New file.
47207         * lib/unictype/pr_sentence_terminal.c: New file.
47208         * lib/unictype/pr_soft_dotted.c: New file.
47209         * lib/unictype/pr_space.c: New file.
47210         * lib/unictype/pr_terminal_punctuation.c: New file.
47211         * lib/unictype/pr_test.c: New file.
47212         * lib/unictype/pr_titlecase.c: New file.
47213         * lib/unictype/pr_unassigned_code_value.c: New file.
47214         * lib/unictype/pr_unified_ideograph.c: New file.
47215         * lib/unictype/pr_uppercase.c: New file.
47216         * lib/unictype/pr_variation_selector.c: New file.
47217         * lib/unictype/pr_white_space.c: New file.
47218         * lib/unictype/pr_xid_continue.c: New file.
47219         * lib/unictype/pr_xid_start.c: New file.
47220         * lib/unictype/pr_zero_width.c: New file.
47221         * lib/unictype/scripts.c: New file.
47222         * lib/unictype/sy_c_ident.c: New file.
47223         * lib/unictype/sy_c_whitespace.c: New file.
47224         * lib/unictype/sy_java_ident.c: New file.
47225         * lib/unictype/sy_java_whitespace.c: New file.
47226
47227         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47228         Unicode 5.0.0.
47229         * lib/unictype/blocks.h: Likewise.
47230         * lib/unictype/categ_C.h: Likewise.
47231         * lib/unictype/categ_Cc.h: Likewise.
47232         * lib/unictype/categ_Cf.h: Likewise.
47233         * lib/unictype/categ_Cn.h: Likewise.
47234         * lib/unictype/categ_Co.h: Likewise.
47235         * lib/unictype/categ_Cs.h: Likewise.
47236         * lib/unictype/categ_L.h: Likewise.
47237         * lib/unictype/categ_Ll.h: Likewise.
47238         * lib/unictype/categ_Lm.h: Likewise.
47239         * lib/unictype/categ_Lo.h: Likewise.
47240         * lib/unictype/categ_Lt.h: Likewise.
47241         * lib/unictype/categ_Lu.h: Likewise.
47242         * lib/unictype/categ_M.h: Likewise.
47243         * lib/unictype/categ_Mc.h: Likewise.
47244         * lib/unictype/categ_Me.h: Likewise.
47245         * lib/unictype/categ_Mn.h: Likewise.
47246         * lib/unictype/categ_N.h: Likewise.
47247         * lib/unictype/categ_Nd.h: Likewise.
47248         * lib/unictype/categ_Nl.h: Likewise.
47249         * lib/unictype/categ_No.h: Likewise.
47250         * lib/unictype/categ_P.h: Likewise.
47251         * lib/unictype/categ_Pc.h: Likewise.
47252         * lib/unictype/categ_Pd.h: Likewise.
47253         * lib/unictype/categ_Pe.h: Likewise.
47254         * lib/unictype/categ_Pf.h: Likewise.
47255         * lib/unictype/categ_Pi.h: Likewise.
47256         * lib/unictype/categ_Po.h: Likewise.
47257         * lib/unictype/categ_Ps.h: Likewise.
47258         * lib/unictype/categ_S.h: Likewise.
47259         * lib/unictype/categ_Sc.h: Likewise.
47260         * lib/unictype/categ_Sk.h: Likewise.
47261         * lib/unictype/categ_Sm.h: Likewise.
47262         * lib/unictype/categ_So.h: Likewise.
47263         * lib/unictype/categ_Z.h: Likewise.
47264         * lib/unictype/categ_Zl.h: Likewise.
47265         * lib/unictype/categ_Zp.h: Likewise.
47266         * lib/unictype/categ_Zs.h: Likewise.
47267         * lib/unictype/categ_of.h: Likewise.
47268         * lib/unictype/combining.h: Likewise.
47269         * lib/unictype/ctype_alnum.h: Likewise.
47270         * lib/unictype/ctype_alpha.h: Likewise.
47271         * lib/unictype/ctype_blank.h: Likewise.
47272         * lib/unictype/ctype_cntrl.h: Likewise.
47273         * lib/unictype/ctype_digit.h: Likewise.
47274         * lib/unictype/ctype_graph.h: Likewise.
47275         * lib/unictype/ctype_lower.h: Likewise.
47276         * lib/unictype/ctype_print.h: Likewise.
47277         * lib/unictype/ctype_punct.h: Likewise.
47278         * lib/unictype/ctype_space.h: Likewise.
47279         * lib/unictype/ctype_upper.h: Likewise.
47280         * lib/unictype/ctype_xdigit.h: Likewise.
47281         * lib/unictype/decdigit.h: Likewise.
47282         * lib/unictype/digit.h: Likewise.
47283         * lib/unictype/mirror.h: Likewise.
47284         * lib/unictype/numeric.h: Likewise.
47285         * lib/unictype/pr_alphabetic.h: Likewise.
47286         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47287         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47288         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47289         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47290         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47291         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47292         * lib/unictype/pr_bidi_control.h: Likewise.
47293         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47294         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47295         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47296         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47297         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47298         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47299         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47300         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47301         * lib/unictype/pr_bidi_pdf.h: Likewise.
47302         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47303         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47304         * lib/unictype/pr_combining.h: Likewise.
47305         * lib/unictype/pr_composite.h: Likewise.
47306         * lib/unictype/pr_currency_symbol.h: Likewise.
47307         * lib/unictype/pr_dash.h: Likewise.
47308         * lib/unictype/pr_decimal_digit.h: Likewise.
47309         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47310         * lib/unictype/pr_deprecated.h: Likewise.
47311         * lib/unictype/pr_diacritic.h: Likewise.
47312         * lib/unictype/pr_extender.h: Likewise.
47313         * lib/unictype/pr_format_control.h: Likewise.
47314         * lib/unictype/pr_grapheme_base.h: Likewise.
47315         * lib/unictype/pr_grapheme_extend.h: Likewise.
47316         * lib/unictype/pr_grapheme_link.h: Likewise.
47317         * lib/unictype/pr_hex_digit.h: Likewise.
47318         * lib/unictype/pr_hyphen.h: Likewise.
47319         * lib/unictype/pr_id_continue.h: Likewise.
47320         * lib/unictype/pr_id_start.h: Likewise.
47321         * lib/unictype/pr_ideographic.h: Likewise.
47322         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47323         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47324         * lib/unictype/pr_ignorable_control.h: Likewise.
47325         * lib/unictype/pr_iso_control.h: Likewise.
47326         * lib/unictype/pr_join_control.h: Likewise.
47327         * lib/unictype/pr_left_of_pair.h: Likewise.
47328         * lib/unictype/pr_line_separator.h: Likewise.
47329         * lib/unictype/pr_logical_order_exception.h: Likewise.
47330         * lib/unictype/pr_lowercase.h: Likewise.
47331         * lib/unictype/pr_math.h: Likewise.
47332         * lib/unictype/pr_non_break.h: Likewise.
47333         * lib/unictype/pr_not_a_character.h: Likewise.
47334         * lib/unictype/pr_numeric.h: Likewise.
47335         * lib/unictype/pr_other_alphabetic.h: Likewise.
47336         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47337         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47338         * lib/unictype/pr_other_id_continue.h: Likewise.
47339         * lib/unictype/pr_other_id_start.h: Likewise.
47340         * lib/unictype/pr_other_lowercase.h: Likewise.
47341         * lib/unictype/pr_other_math.h: Likewise.
47342         * lib/unictype/pr_other_uppercase.h: Likewise.
47343         * lib/unictype/pr_paired_punctuation.h: Likewise.
47344         * lib/unictype/pr_paragraph_separator.h: Likewise.
47345         * lib/unictype/pr_pattern_syntax.h: Likewise.
47346         * lib/unictype/pr_pattern_white_space.h: Likewise.
47347         * lib/unictype/pr_private_use.h: Likewise.
47348         * lib/unictype/pr_punctuation.h: Likewise.
47349         * lib/unictype/pr_quotation_mark.h: Likewise.
47350         * lib/unictype/pr_radical.h: Likewise.
47351         * lib/unictype/pr_sentence_terminal.h: Likewise.
47352         * lib/unictype/pr_soft_dotted.h: Likewise.
47353         * lib/unictype/pr_space.h: Likewise.
47354         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47355         * lib/unictype/pr_titlecase.h: Likewise.
47356         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47357         * lib/unictype/pr_unified_ideograph.h: Likewise.
47358         * lib/unictype/pr_uppercase.h: Likewise.
47359         * lib/unictype/pr_variation_selector.h: Likewise.
47360         * lib/unictype/pr_white_space.h: Likewise.
47361         * lib/unictype/pr_xid_continue.h: Likewise.
47362         * lib/unictype/pr_xid_start.h: Likewise.
47363         * lib/unictype/pr_zero_width.h: Likewise.
47364         * lib/unictype/scripts.h: Likewise.
47365         * lib/unictype/scripts_byname.gperf: Likewise.
47366         * lib/unictype/sy_c_ident.h: Likewise.
47367         * lib/unictype/sy_c_whitespace.h: Likewise.
47368         * lib/unictype/sy_java_ident.h: Likewise.
47369         * lib/unictype/sy_java_whitespace.h: Likewise.
47370
47371         * lib/unictype/Makefile: New file.
47372         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47373         glibc.
47374         * lib/unictype/3level.h: New file, copied from glibc.
47375         * lib/unictype/3levelbit.h: New file.
47376
47377 2007-11-11  Bruno Haible  <bruno@clisp.org>
47378
47379         * modules/gperf: New file.
47380         * modules/iconv_open (Depends-on): Add it.
47381         (Makefile.am): Remove the GPERF definition.
47382
47383 2007-11-11  Bruno Haible  <bruno@clisp.org>
47384
47385         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47386         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47387
47388 2007-11-11  Bruno Haible  <bruno@clisp.org>
47389
47390         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47391         (usage): Remove function.
47392
47393 2007-11-11  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47396         gl_FUNC_CEILF_LIBS.
47397         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47398         gl_FUNC_CEIL_LIBS.
47399         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47400         gl_FUNC_CEILL_LIBS.
47401         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47402         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47403         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47404
47405 2007-11-11  Bruno Haible  <bruno@clisp.org>
47406
47407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47408         roundf were declared but do not exist on functions.
47409         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47410         roundl were declared but do not exist on functions.
47411         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47412         HAVE_FLOORL_AND_CEILL, respectively.
47413         Needed for Sun C on Solaris 10.
47414
47415 2007-11-11  Bruno Haible  <bruno@clisp.org>
47416
47417         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47418         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47419         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47420         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47421         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47422         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47423         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47424         HAVE_DECL_ROUNDF.
47425         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47426         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47428         of HAVE_DECL_ROUND*.
47429         * modules/math (Makefile.am): Update.
47430
47431 2007-11-10  Bruno Haible  <bruno@clisp.org>
47432
47433         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47434         ptrdiff_t as m4/intl.m4.
47435
47436 2007-11-10  Jim Meyering  <meyering@redhat.com>
47437
47438         Avoid link failure for the argmatch test.
47439         * tests/test-argmatch.c (usage): Define function to avoid a link
47440         failure: argmatch_die requires a usage function.
47441
47442 2007-11-09  Bruno Haible  <bruno@clisp.org>
47443
47444         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47445         * doc/functions/vsnprintf.texi: Likewise.
47446         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47447         with a size argument < 2.
47448
47449 2007-11-09  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47452         buffer. Fixes an inefficiency introduced on 2007-11-03.
47453
47454 2007-11-09  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47457         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47458
47459 2007-11-08  Jim Meyering  <meyering@redhat.com>
47460
47461         Change cache variable name prefix "jm_" to "gl_" everywhere.
47462         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47463         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47464         * m4/uptime.m4: s/gl_/jm_/
47465
47466 2007-11-07  Bruno Haible  <bruno@clisp.org>
47467
47468         Update to GNU gettext 0.17.
47469         * m4/intl.m4: Update to GNU gettext 0.17.
47470         * m4/po.m4: Likewise.
47471         * modules/gettext (Files): Remove m4/ulonglong.m4.
47472         (configure.ac): Require gettext infrastructure from version 0.17.
47473
47474 2007-11-06  Bruno Haible  <bruno@clisp.org>
47475
47476         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47477         symbolic values are not defined in a public header.
47478         * lib/freadable.c (freadable) [QNX]: Likewise.
47479         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47480         * lib/freading.c (freading) [QNX]: Likewise.
47481         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47482         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47483         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47484         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47485         Reported by Alain Magloire.
47486
47487         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47488
47489 2007-11-05  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47492         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47493         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47494         Reported by Eric Blake.
47495
47496 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47497             Bruno Haible  <bruno@clisp.org>
47498
47499         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47500         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47501         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47502         (malloc): Undefine also before including <stdlib.h>.
47503         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47504         Needed on OSF/1 4.0.
47505
47506 2007-11-05  Jim Meyering  <meyering@redhat.com>
47507
47508         git-version-gen: sync from coreutils.
47509         * build-aux/git-version-gen: Add comments.
47510         Change the first '-' to '.' in the snapshot version string,
47511         e.g., 6.9-377-08144 -> 6.9.377-08144
47512         Remove first parameter.
47513         Don't declare a version "-dirty" merely because a time
47514         stamp has changed.
47515
47516 2007-11-04  Bruno Haible  <bruno@clisp.org>
47517
47518         * lib/lock.h: Protect all macro definitions containing an 'if'
47519         statement through a "do { ... } while (0)".
47520         * lib/tls.h: Likewise.
47521
47522 2007-11-04  Bruno Haible  <bruno@clisp.org>
47523
47524         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47525
47526 2007-11-04  Bruno Haible  <bruno@clisp.org>
47527
47528         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47529         * modules/fprintf-posix (Depends-on): Add nocrash.
47530         * modules/snprintf-posix (Depends-on): Likewise.
47531         * modules/sprintf-posix (Depends-on): Likewise.
47532         * modules/vasnprintf-posix (Depends-on): Likewise.
47533         * modules/vasprintf-posix (Depends-on): Likewise.
47534         * modules/vfprintf-posix (Depends-on): Likewise.
47535         * modules/vsnprintf-posix (Depends-on): Likewise.
47536         * modules/vsprintf-posix (Depends-on): Likewise.
47537         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47539         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47540         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47541         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47542         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47543         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47544
47545 2007-11-04  Bruno Haible  <bruno@clisp.org>
47546
47547         * modules/nocrash: New file.
47548         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47549         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47550
47551 2007-11-04  Bruno Haible  <bruno@clisp.org>
47552
47553         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47554         precision handling.
47555         * tests/test-vasprintf-posix.c (test_function): Likewise.
47556         * tests/test-snprintf-posix.h (test_function): Likewise.
47557         * tests/test-sprintf-posix.h (test_function): Likewise.
47558
47559         Fix *printf behaviour for large precisions on mingw and BeOS.
47560         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47561         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47563         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47565         gl_PRINTF_PRECISION and test its result. Invoke
47566         gl_PREREQ_VASNPRINTF_PRECISION.
47567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47574         * doc/functions/fprintf.texi: Update.
47575         * doc/functions/printf.texi: Update.
47576         * doc/functions/snprintf.texi: Update.
47577         * doc/functions/sprintf.texi: Update.
47578         * doc/functions/vfprintf.texi: Update.
47579         * doc/functions/vprintf.texi: Update.
47580         * doc/functions/vsnprintf.texi: Update.
47581         * doc/functions/vsprintf.texi: Update.
47582
47583 2007-11-04  Bruno Haible  <bruno@clisp.org>
47584
47585         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47586
47587 2007-11-04  Bruno Haible  <bruno@clisp.org>
47588
47589         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47590         Reported by Sylvain Beucler <beuc@gnu.org>.
47591
47592 2007-11-03  Bruno Haible  <bruno@clisp.org>
47593
47594         * tests/test-fprintf-posix2.sh: New file.
47595         * tests/test-fprintf-posix2.c: New file.
47596         * modules/fprintf-posix-tests (Files): Add them.
47597         (TESTS): Add test-fprintf-posix2.sh.
47598         (configure.ac): Check for getrlimit and setrlimit.
47599         (check_PROGRAMS): Add test-fprintf-posix2.
47600
47601         * tests/test-printf-posix2.sh: New file.
47602         * tests/test-printf-posix2.c: New file.
47603         * modules/printf-posix-tests (Files): Add them.
47604         (TESTS): Add test-printf-posix2.sh.
47605         (configure.ac): Check for getrlimit and setrlimit.
47606         (check_PROGRAMS): Add test-printf-posix2.
47607
47608         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47609         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47610         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47611         (decode_double): New function, copied from decode_long_double.
47612         (scale10_round_decimal_decoded): New function, extracted from
47613         scale10_round_decimal_long_double.
47614         (scale10_round_decimal_long_double): Use it.
47615         (scale10_round_decimal_double): New function.
47616         (floorlog10): New function.
47617         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47619         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47620         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47621         gl_PRINTF_ENOMEM and test its result. Invoke
47622         gl_PREREQ_VASNPRINTF_ENOMEM.
47623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47630         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47631         * modules/snprintf-posix (Depends-on): Likewise.
47632         * modules/sprintf-posix (Depends-on): Likewise.
47633         * modules/vasnprintf-posix (Depends-on): Likewise.
47634         * modules/vasprintf-posix (Depends-on): Likewise.
47635         * modules/vfprintf-posix (Depends-on): Likewise.
47636         * modules/vsnprintf-posix (Depends-on): Likewise.
47637         * modules/vsprintf-posix (Depends-on): Likewise.
47638         * doc/functions/fprintf.texi: Update.
47639         * doc/functions/printf.texi: Update.
47640         * doc/functions/snprintf.texi: Update.
47641         * doc/functions/sprintf.texi: Update.
47642         * doc/functions/vfprintf.texi: Update.
47643         * doc/functions/vprintf.texi: Update.
47644         * doc/functions/vsnprintf.texi: Update.
47645         * doc/functions/vsprintf.texi: Update.
47646
47647 2007-11-03  Bruno Haible  <bruno@clisp.org>
47648
47649         * modules/frexp-nolibm-tests: New file.
47650
47651         * modules/frexp-nolibm: New file.
47652         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47653
47654 2007-11-03  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47657         value is C99 compliant.
47658         Needed for OSF/1 5.1.
47659
47660 2007-11-03  Bruno Haible  <bruno@clisp.org>
47661
47662         Fix out-of-memory handling of vasnprintf.
47663         * lib/printf-parse.c: Include <errno.h>.
47664         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47665         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47666         is already set.
47667
47668 2007-11-02  Eric Blake  <ebb9@byu.net>
47669
47670         Fix tests on cygwin.
47671         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47672
47673 2007-11-01  Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47676         warning.
47677         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47678         needed for POSIX compatibility.
47679
47680 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47681
47682         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47683         for compatibility with GNU.
47684
47685 2007-11-01  Bruno Haible  <bruno@clisp.org>
47686
47687         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47688         (putenv): Renamed from rpl_putenv. Change argument type from
47689         'const char *' to 'char *'.
47690         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47691         of defining putenv in config.h, just set REPLACE_PUTENV.
47692         * modules/putenv (Depends-on): Add stdlib.
47693         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47694         (Include): Use <stdlib.h>.
47695         * lib/stdlib.in.h (putenv): New declaration.
47696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47697         REPLACE_PUTENV.
47698         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47699         REPLACE_PUTENV.
47700         Needed for MacOS X 10.5.0.
47701         Reported by Peter O'Gorman <peter@pogma.com>.
47702
47703 2007-11-01  Jim Meyering  <meyering@redhat.com>
47704
47705         Treat an empty date string exactly like "0".
47706         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47707         if the remaining date string (to be parsed) is empty, use "0".
47708         Reported by Mischa Molhoek and discussed in this thread:
47709         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47710
47711 2007-10-31  Bruno Haible  <bruno@clisp.org>
47712
47713         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47714         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47715         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47716         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47717         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47718         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47719
47720 2007-10-31  Bruno Haible  <bruno@clisp.org>
47721
47722         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47723         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47724         (AC_TYPE_LONG_LONG_INT): Use it.
47725         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47726         it as well.
47727         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47728         to m4/longlong.m4.
47729         * modules/stdint (Files): Remove m4/ulonglong.m4.
47730         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47731         m4/ulonglong.m4.
47732         * modules/strtoumax (Files): Likewise.
47733
47734 2007-10-30  Bruno Haible  <bruno@clisp.org>
47735
47736         * modules/xvasprintf-posix: New file.
47737         Suggested by Eric Blake.
47738
47739 2007-10-30  Bruno Haible  <bruno@clisp.org>
47740
47741         * modules/xprintf-posix-tests: New file.
47742         * tests/test-xprintf-posix.sh: New file.
47743         * tests/test-xprintf-posix.c: New file.
47744         * tests/test-xfprintf-posix.c: New file.
47745
47746         * modules/xprintf-posix: New file.
47747
47748 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47749
47750         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47751         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47752         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47753
47754 2007-10-29  Bruno Haible  <bruno@clisp.org>
47755
47756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47757         contain the special marker '_cv_'.
47758         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47759         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47760         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47761         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47762         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47763         Reported by Ralf Wildenhues.
47764
47765 2007-10-29  Bruno Haible  <bruno@clisp.org>
47766
47767         * gnulib-tool (func_import): When --lgpl is not specified, set
47768         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47769         GPLv3.
47770         Reported by Simon Josefsson.
47771
47772 2007-10-28  Bruno Haible  <bruno@clisp.org>
47773
47774         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47775         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47776         HAVE_DECL_ISFINITE.
47777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47778         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47779         HAVE_DECL_ISFINITE.
47780
47781 2007-10-28  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47784         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47785
47786 2007-10-28  Bruno Haible  <bruno@clisp.org>
47787
47788         Fix link errors with Sun C 5.0 on Solaris 10.
47789         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47790         function is declared but not present in the compiler's libm.
47791         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47792         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47793         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47794         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47795         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47796         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47797         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47799         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47800         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47801         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47802         HAVE_DECL_FLOORL.
47803
47804 2007-10-28  Bruno Haible  <bruno@clisp.org>
47805
47806         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47807         gl_FUNC_FLOORL. Cache the result.
47808         (gl_FUNC_FLOORL): Use it.
47809         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47810         gl_FUNC_CEILL. Cache the result.
47811         (gl_FUNC_CEILL): Use it.
47812
47813         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47814         gl_FUNC_FLOOR. Cache the result.
47815         (gl_FUNC_FLOOR): Use it.
47816         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47817         gl_FUNC_CEIL. Cache the result.
47818         (gl_FUNC_CEIL): Use it.
47819
47820         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47821         gl_FUNC_FLOORF. Cache the result.
47822         (gl_FUNC_FLOORF): Use it.
47823         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47824         gl_FUNC_CEILF. Cache the result.
47825         (gl_FUNC_CEILF): Use it.
47826
47827 2007-10-28  Bruno Haible  <bruno@clisp.org>
47828
47829         * gnulib-tool: Allow specifying the LGPL version number through
47830         --lgpl=2 or --lgpl=3.
47831         (func_usage): Document --lgpl with argument.
47832         Handle --lgpl=... arguments.
47833         (func_import): Recognize also gl_LGPL calls with an argument. When
47834         --lgpl=2 is used and the module's license is just LGPL, report an
47835         error. Set sed_transform_lib_file according to the lgpl variable. In
47836         the generated files, use --lgpl or gl_LGPL invocations with argument,
47837         if necessary.
47838         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47839         an LGPv2+ license.
47840         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47841         gl_LGPL macro.
47842
47843 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47844             Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47847         (u16_uctomb_aux): Likewise.
47848         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47849         !HAVE_INLINE.
47850         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47851
47852 2007-10-28  Bruno Haible  <bruno@clisp.org>
47853
47854         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47855         Invoke AM_GETTEXT_OPTION if it exists.
47856         * modules/vasprintf: Likewise.
47857         * modules/verror: Likewise.
47858         * modules/xprintf: Likewise.
47859         * modules/xvasprintf: Likewise.
47860
47861 2007-10-27  Ben Pfaff  <blp@gnu.org>
47862
47863         * lib/math.in.h: Define isfinite macro and prototypes for
47864         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47865         implementations.
47866         * m4/math_h.m4: New substitutions for isfinite module.
47867         * lib/isfinite.c: New file.
47868         * m4/isfinite.m4: New file.
47869         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47870         * modules/isfinite: New file.
47871         * modules/isfinite-tests: New file.
47872         * tests/tests-isfinite.c: New file.
47873         * doc/functions/isfinite.texi: Mention isfinite module.
47874         * MODULES.html.sh: Mention new module.
47875
47876 2007-10-27  Ben Pfaff  <blp@gnu.org>
47877
47878         Ralf Wildenhues reported that Tru64 4.0D declares the round
47879         functions but does not have definitions.
47880         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47881         cannot be found in any library, set the output variable to
47882         "missing" instead of "".
47883         * m4/round.m4: Also use our substitute if we cannot find round in
47884         any library, even if it is declared.
47885         * m4/roundf.m4: Likewise for roundf.
47886         * m4/roundl.m4: Likewise for roundl.
47887         * lib/math.in.h: Undefine roundf, round, roundl before defining
47888         their replacements, to allow for hypothetical systems where these
47889         may be defined as macros but not available in libraries.
47890
47891 2007-10-27  Bruno Haible  <bruno@clisp.org>
47892
47893         * doc/gnulib.texi: Invoke @firstparagraphindent.
47894         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47895         changes in gnulib.
47896         (Source changes): New section.
47897
47898 2007-10-26  Bruno Haible  <bruno@clisp.org>
47899
47900         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47901         borrowed from autoconf.
47902
47903 2007-10-26  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47906         strerror returned the empty string. Needed on HP-UX 11.00.
47907
47908 2007-10-24  Micah Cowan  <micah@cowan.name>
47909
47910         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47911         * build-aux/bootstrap: Remove support for now-unnecessary option,
47912         --cvs-user, and envvars CVS_USER, CVS_RSH.
47913
47914 2007-10-24  Jim Meyering  <meyering@redhat.com>
47915
47916         Avoid diagnostics from sha1sum when there is no cached checksum.
47917         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47918         if the po.s1 file hasn't been created yet.
47919
47920         * build-aux/bootstrap: Sync from coreutils:
47921         2007-10-24  Jim Meyering  <meyering@redhat.com>
47922         Get gnulib from the git repository, not from an obsolete cvs one.
47923         * build-aux/bootstrap: Suggestion from Micah Cowan.
47924         2007-10-04  Jim Meyering  <jim@meyering.net>
47925         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47926         (update_po_files): Work also when there are no .po files in po/.
47927
47928 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47929
47930         * README: Append ".git" to git and cg examples.
47931         Problem reported by Benoit Sigoure.
47932
47933 2007-10-23  Micah Cowan  <micah@cowan.name>
47934
47935         * users.txt: Add wget.
47936
47937 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47938
47939         Fix linking of some unistdio tests on FreeBSD.
47940         * modules/unistdio/u16-vsnprintf-tests
47941         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47942         * modules/unistdio/u16-vsprintf-tests
47943         (test_u16_vsnprintf1_LDADD): Likewise.
47944         * modules/unistdio/u32-vsnprintf-tests
47945         (test_u32_vsnprintf1_LDADD): Likewise.
47946         * modules/unistdio/u32-vsprintf-tests
47947         (test_u32_vsprintf1_LDADD): Likewise.
47948         * modules/unistdio/u8-vsnprintf-tests
47949         (test_u8_vsnprintf1_LDADD): Likewise.
47950         * modules/unistdio/u8-vsprintf-tests
47951         (test_u8_vsprintf1_LDADD): Likewise.
47952         * modules/unistdio/ulc-vsnprintf-tests
47953         (test_ulc_vsnprintf1_LDADD): Likewise.
47954         * modules/unistdio/ulc-vsprintf-tests
47955         (test_ulc_vsprintf1_LDADD): Likewise.
47956
47957         Fix linking of some uniconv tests on FreeBSD.
47958         * modules/uniconv/u16-conv-from-enc-tests
47959         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47960         * modules/uniconv/u16-conv-to-enc-tests
47961         (test_u16_conv_to_enc_LDADD): Likewise.
47962         * modules/uniconv/u16-strconv-from-enc-tests
47963         (test_u16_strconv_from_enc_LDADD): Likewise.
47964         * modules/uniconv/u16-strconv-to-enc-tests
47965         (test_u16_strconv_to_enc_LDADD): Likewise.
47966         * modules/uniconv/u32-conv-from-enc-tests
47967         (test_u32_conv_from_enc_LDADD): Likewise.
47968         * modules/uniconv/u32-conv-to-enc-tests
47969         (test_u32_conv_to_enc_LDADD): Likewise.
47970         * modules/uniconv/u32-strconv-from-enc-tests
47971         (test_u32_strconv_from_enc_LDADD): Likewise.
47972         * modules/uniconv/u32-strconv-to-enc-tests
47973         (test_u32_strconv_to_enc_LDADD): Likewise.
47974         * modules/uniconv/u8-conv-from-enc-tests
47975         (test_u8_conv_from_enc_LDADD): Likewise.
47976         * modules/uniconv/u8-conv-to-enc-tests
47977         (test_u8_conv_to_enc_LDADD): Likewise.
47978         * modules/uniconv/u8-strconv-from-enc-tests
47979         (test_u8_strconv_from_enc_LDADD): Likewise.
47980         * modules/uniconv/u8-strconv-to-enc-tests
47981         (test_u8_strconv_to_enc_LDADD): Likewise.
47982
47983 2007-10-22  Bruno Haible  <bruno@clisp.org>
47984
47985         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47986         size.
47987
47988 2007-10-22  Eric Blake  <ebb9@byu.net>
47989
47990         Tweak x*printf documentation.
47991         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47992         variable name and comments.
47993         Suggested by Bruno Haible.
47994
47995 2007-10-22  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/acl.c (copy_acl): Fix file name in comment.
47998
47999 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48000
48001         Fix Tru64 problem with stdbool.h.
48002         * lib/stdbool.in.h (false, true):
48003         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48004         Don't declare as an enum in this situation; it runs afoul of Tru64.
48005         Problem reported by Steven M. Schweda in
48006         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48007
48008 2007-10-22  Eric Blake  <ebb9@byu.net>
48009
48010         Also wrap vf?printf.
48011         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48012         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48013         (xvprintf, xvfprintf): New functions.
48014
48015 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48016
48017         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48018         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48019
48020         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48021         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48022
48023 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48024
48025         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48026         by Bruno Haible.
48027
48028 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48029
48030         * lib/getloadavg.c
48031         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48032         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48033
48034         * tests/test-i-ring.c: Work for C89.
48035
48036 2007-10-22  Bruno Haible  <bruno@clisp.org>
48037
48038         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48039         -1u, in preprocessor expression, so that we don't test for the bug
48040         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48041         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48042
48043 2007-10-22  Eric Blake  <ebb9@byu.net>
48044
48045         * tests/test-yesno.sh: Silence stderr during test.
48046
48047 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48048
48049         * modules/crypto/gc-camellia: New file.
48050
48051         * m4/gc-camellia.m4: New file.
48052
48053         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48054
48055         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48056
48057 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48058
48059         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48060         --help to stdout.  Reported by sms@antinode.org (Steven
48061         M. Schweda).
48062
48063 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48064
48065         * users.txt: Fix link to libksba.
48066
48067 2007-10-21  Ben Pfaff  <blp@gnu.org>
48068
48069         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48070         round.c roundf implementation that depends on floorf and ceilf to
48071         be tested unconditionally.
48072
48073 2007-10-21  Ben Pfaff  <blp@gnu.org>
48074
48075         * m4/check-libm-func.m4: Removed.
48076         * m4/check-math-lib.m4: New file.
48077         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48078         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48079         definition and lack of AC_LIBOBJ([roundf]).
48080         * m4/roundl.m4: Ditto, and similarly for roundl.
48081         * modules/round: Reference new m4 file.
48082         * modules/roundf: Ditto.
48083         * modules/roundl: Ditto.
48084         * tests/test-round2.c (main): Use ROUND instead of round.
48085         Bug report from Bruno Haible.
48086
48087 2007-10-21  Bruno Haible  <bruno@clisp.org>
48088
48089         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48090         context.
48091
48092 2007-10-21  Bruno Haible  <bruno@clisp.org>
48093
48094         * tests/test-wcwidth.c (main): Allow negative result for some control
48095         characters.
48096
48097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48098         Needed on OSF/1 5.1.
48099
48100 2007-10-21  Bruno Haible  <bruno@clisp.org>
48101
48102         * tests/test-floorf1.c: Include isnanf.h.
48103         (main): Use isnanf() instead of isnan().
48104         * tests/test-ceilf1.c: Include isnanf.h.
48105         (main): Use isnanf() instead of isnan().
48106         * tests/test-truncf1.c: Include isnanf.h.
48107         (main): Use isnanf() instead of isnan().
48108         * tests/test-roundf1.c: Include isnanf.h.
48109         (main): Use isnanf() instead of isnan().
48110
48111 2007-10-21  Eric Blake  <ebb9@byu.net>
48112
48113         * users.txt: Update URL for m4.
48114
48115 2007-10-21  Bruno Haible  <bruno@clisp.org>
48116
48117         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48118
48119 2007-10-21  Bruno Haible  <bruno@clisp.org>
48120
48121         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48122         Git's management files if the CVS files are not present.
48123
48124 2007-10-20  Bruno Haible  <bruno@clisp.org>
48125
48126         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48127         gcc-3.4.x.
48128
48129 2007-10-20  Ben Pfaff  <blp@gnu.org>
48130
48131         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48132         implementations.
48133         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48134         * lib/round.c: New file.
48135         * lib/roundf.c: New file.
48136         * lib/roundl.c: New file.
48137         * m4/round.m4: New file.
48138         * m4/roundf.m4: New file.
48139         * m4/roundl.m4: New file.
48140         * m4/check-libm-func-m4: New file.
48141         * modules/math: Replace round, roundf, roundl related @VARS@ in
48142         math.in.h.
48143         * modules/round: New file.
48144         * modules/round-tests: New file.
48145         * modules/roundf: New file.
48146         * modules/roundf-tests: New file.
48147         * modules/roundl: New file.
48148         * modules/roundl-tests: New file.
48149         * tests/test-round1.c: New file.
48150         * tests/test-round2.c: New file.
48151         * tests/test-roundf1.c: New file.
48152         * tests/test-roundf2.c: New file.
48153         * tests/test-roundl.c: New file.
48154         * doc/functions/round.texi: Mention round module.
48155         * doc/functions/roundf.texi: Mention roundf module.
48156         * doc/functions/roundl.texi: Mention roundl module.
48157         * MODULES.html.sh: Mention new modules.
48158         Thanks to Bruno Haible for suggestions.
48159
48160 2007-10-20  Jim Meyering  <meyering@redhat.com>
48161
48162         * lib/xprintf.c: Include <config.h> unconditionally.
48163
48164         Change xprintf's license to GPL.
48165         * modules/xprintf (License): s/LGPL/GPL/, since this module
48166         depends on modules (exit and exitfail) which are GPL.
48167         Suggestion from Bruno Haible.
48168
48169         xprintf fixes.
48170         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48171         Use a clearer diagnostic.
48172         Patch from Bruno Haible.
48173
48174 2007-10-20  Bruno Haible  <bruno@clisp.org>
48175
48176         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48177         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48179
48180 2007-10-20  Bruno Haible  <bruno@clisp.org>
48181
48182         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48183         precision in the comparison result > x - 1 or similar.
48184         * tests/test-ceilf2.c (correct_result_p): Likewise.
48185         * tests/test-truncf2.c (correct_result_p): Likewise.
48186         * tests/test-trunc2.c (correct_result_p): Likewise.
48187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48188
48189 2007-10-20  Bruno Haible  <bruno@clisp.org>
48190
48191         * modules/ceil: New file.
48192         * m4/ceil.m4: New file.
48193         * doc/functions/ceil.texi: Mention the 'ceil' module.
48194
48195 2007-10-20  Bruno Haible  <bruno@clisp.org>
48196
48197         * modules/floor: New file.
48198         * m4/floor.m4: New file.
48199         * doc/functions/floor.texi: Mention the 'floor' module.
48200
48201 2007-10-20  Bruno Haible  <bruno@clisp.org>
48202
48203         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48204         of %a.
48205         * modules/floorf-tests (Depends-on): Likewise.
48206         * modules/truncf-tests (Depends-on): Likewise.
48207         * modules/trunc-tests (Depends-on): Likewise.
48208         Reported by Ben Pfaff.
48209
48210 2007-10-19  Jim Meyering  <meyering@redhat.com>
48211
48212         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48213         Don't bother testing specific errno values.  Just test ferror.
48214
48215         New module: xprintf
48216         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48217
48218 2007-10-19  Bruno Haible  <bruno@clisp.org>
48219
48220         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48221         syntax.
48222         * modules/javaexec (Makefile.am): Likewise.
48223         * modules/relocatable-prog (Makefile.am): Likewise.
48224         Suggested by Jim Meyering.
48225
48226 2007-10-18  Bruno Haible  <bruno@clisp.org>
48227
48228         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48229         Reported by Jim Meyering.
48230
48231 2007-10-18  Eric Blake  <ebb9@byu.net>
48232
48233         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48234
48235 2007-10-18  Bruno Haible  <bruno@clisp.org>
48236
48237         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48238         the format string into writable memory. Needed in Fortify conditions.
48239
48240 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48241             Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48244         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48245         * modules/trim (Depends-on): Add mbchar.
48246         (configure.ac): Add gl_FUNC_MBRTOWC.
48247         (Makefile.am): Augment lib_SOURCES.
48248
48249 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48250
48251         Modify glob.c to use fstatat and dirfd, to simplify it.
48252         Suggested by Eric Blake.
48253         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48254         Don't include <stdbool.h>; not used.
48255         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48256         (link_exists_p): Simplify implementation, since we can now assume
48257         dirfd and fstatat.
48258         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48259
48260 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48261
48262         * gnulib-tool (func_get_dependencies): Fix sed script to
48263         match only tests.
48264
48265 2007-10-17  Bruno Haible  <bruno@clisp.org>
48266
48267         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48268         allow locale names without encoding suffix.
48269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48271
48272 2007-10-16  Bruno Haible  <bruno@clisp.org>
48273
48274         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48275         * lib/getgroups.c (getgroups): Likewise.
48276         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48277
48278 2007-10-16  Bruno Haible  <bruno@clisp.org>
48279
48280         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48281         * modules/malloc-posix (License): Likewise.
48282         * modules/realloc-posix (License): Likewise.
48283         * modules/calloc-posix (License): Likewise.
48284         * modules/intprops (License): Change from GPL to LGPL, with
48285         Paul Eggert's approval.
48286
48287 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48288
48289         Merge glibc changes into lib/glob.c.
48290
48291         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48292         2007-10-15 04:59:03 UTC.  Here are the changes:
48293
48294         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48295
48296         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48297
48298         * lib/glob.c: Add some branch prediction throughout.
48299
48300         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48301
48302         [BZ #5103]
48303         * lib/glob.c (glob): Recognize patterns starting \/.
48304
48305         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48306
48307         [BZ #3996]
48308         * lib/glob.c (attribute_hidden): Define if not defined.
48309         (glob): Unescape dirname, filename or username when needed and not
48310         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48311         is NULL.  Handle unescaped [ in pattern without closing ].
48312         Don't pass GLOB_CHECK down to recursive glob for directories.
48313         (__glob_pattern_type): New function.
48314         (__glob_pattern_p): Implement using __glob_pattern_type.
48315         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48316         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48317         Remove unreachable code.
48318
48319         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48320
48321         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48322         explain why there are no leaks.
48323
48324         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48325
48326         [BZ #3253]
48327         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48328         time, rather allocate increasingly bigger arrays of pointers, if
48329         possible with alloca, if too large with malloc.
48330
48331 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48332
48333         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48334         Problem reported by H.Merijn Brand in
48335         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48336         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48337         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48338
48339 2007-10-15  Bruno Haible  <bruno@clisp.org>
48340
48341         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48342         with explicit rpl_ prefix.
48343         * lib/fopen.c (fopen): Likewise.
48344         * lib/freopen.c (freopen): Likewise.
48345         * lib/iconv.c (iconv): Likewise.
48346         * lib/iconv_close.c (iconv_close): Likewise.
48347
48348 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48349
48350         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48351
48352 2007-10-15  Bruno Haible  <bruno@clisp.org>
48353
48354         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48355         <stddef.h> instead of <stdlib.h> since we only need NULL.
48356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48357
48358 2007-10-15  Bruno Haible  <bruno@clisp.org>
48359
48360         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48361         Replace paragraph talking about LIBOBJS.
48362         Reported by Colin Watson <cjwatson@debian.org>.
48363
48364 2007-10-15  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48367         <stdlib.h> before using NULL.
48368
48369 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48370
48371         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48372         Reported by Albert Chin <china@thewrittenword.com>.
48373
48374 2007-10-14  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/iconv_open-utf-tests: New file.
48377         * tests/test-iconv-utf.c: New file.
48378
48379         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48380         * modules/iconv_open-utf: New file.
48381         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48382         (iconv, iconv_close): New declarations.
48383         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48384         be defined.
48385         (iconv_open): Add special handling of conversion between UTF-8 and
48386         UTF-{16,32}{BE,LE}.
48387         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48388         * lib/iconv_close.c: New file.
48389         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48390         gl_FUNC_ICONV_OPEN.
48391         (gl_FUNC_ICONV_OPEN): Use it.
48392         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48393         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48394         and REPLACE_ICONV_UTF.
48395         * modules/iconv_open (Depends-on): Add c-strcase.
48396         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48397         ICONV_CONST.
48398         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48399
48400 2007-10-13  Albert Chin  <china@thewrittenword.com>
48401             Bruno Haible  <bruno@clisp.org>
48402
48403         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48404         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48405
48406 2007-10-13  Bruno Haible  <bruno@clisp.org>
48407
48408         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48409         defined, use the ISO C99 inline semantics.
48410         * lib/argp.h (ARGP_EI): Likewise.
48411
48412 2007-10-13  Bruno Haible  <bruno@clisp.org>
48413
48414         Handle 'inline' change in gcc 4.3.0.
48415         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48416         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48417         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48418         argp_fmtstream_point): Disable 'extern' declaration if the function
48419         definition is going to be provided inline.
48420         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48421         semantics, not the ISO C99 inline semantics.
48422         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48423         'extern' declaration if the function definition is going to be provided
48424         inline.
48425         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48426         the GNU C inline semantics, not the ISO C99 inline semantics. With
48427         GCC 4.2, avoid a warning.
48428
48429 2007-10-13  Bruno Haible  <bruno@clisp.org>
48430
48431         * lib/freading.h (freading): Enable the use of __freading for
48432         glibc >= 2.7.
48433         * lib/freading.c (freading): Likewise.
48434
48435 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48436
48437         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48438         "warning: C99 inline functions are not supported; using GNU89".
48439
48440 2007-10-12  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48443         of 2.
48444         * tests/test-ceilf2.c: New file.
48445         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48446
48447         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48448         * modules/ceilf-tests: Update.
48449
48450 2007-10-12  Bruno Haible  <bruno@clisp.org>
48451
48452         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48453         of 2.
48454         * tests/test-floorf2.c: New file.
48455         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48456
48457         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48458         * modules/floorf-tests: Update.
48459
48460 2007-10-12  Bruno Haible  <bruno@clisp.org>
48461
48462         * tests/test-trunc2.c: New file.
48463         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48464
48465         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48466         * modules/trunc-tests: Update.
48467
48468 2007-10-12  Bruno Haible  <bruno@clisp.org>
48469
48470         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48471         of 2.
48472         * tests/test-truncf2.c: New file.
48473         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48474
48475         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48476         * modules/truncf-tests: Update.
48477
48478 2007-10-11  Eric Blake  <ebb9@byu.net>
48479
48480         Don't claim strerror is broken on Interix.
48481         * doc/functions/strerror.texi (strerror): Known broken systems are
48482         now Solaris 8, and not Interix.
48483         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48484         Interix on cross-compile.
48485         Reported by Martin Koeppe in
48486         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48487
48488 2007-10-11  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/i-ring-tests: New file.
48491         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48492         instead of assert.
48493
48494 2007-10-11  Bruno Haible  <bruno@clisp.org>
48495
48496         * modules/filenamecat-tests: New file.
48497         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48498         * lib/filenamecat.c: Remove test code.
48499
48500 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48501
48502         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48503
48504         * lib/strerror.c: Include <string.h> always, to test interface,
48505         and to remove the need for the dummy.
48506         Include intprops.h to compute width instead of doing it ourselves
48507         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48508         (strerror): Define it to return NULL if there's no system strerror.
48509         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48510         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48511         ancient pre-strerror Unix systems well any more.  Saying "unknown
48512         system error" is enough.
48513         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48514         simpler strerror.c implementation.
48515         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48516         Simplify the tests to reflect the simpler strerror implementation.
48517         * modules/strerror (Depends-on): Add intprops.
48518
48519 2007-10-09  Eric Blake  <ebb9@byu.net>
48520
48521         Silence test-fpending.
48522         * modules/fpending-tests (Files): Add wrapper script.
48523         * tests/test-fpending.sh: New file.
48524
48525 2007-10-09  Bruno Haible  <bruno@clisp.org>
48526
48527         * MODULES.html.sh (func_module): Don't create a hyperlink for
48528         function names like 'printf_frexp'.
48529         (Misc): Add crc, memxor.
48530         (Characteristics of floating types): New section.
48531         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48532         isnanf-nolibm, signbit, trunc, truncf, truncl.
48533         (Enhancements for ISO C 99 functions): New subsection Input/output.
48534         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48535         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48536         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48537         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48538         (Enhancements for POSIX:2001 functions): Add chdir-long.
48539         (File system functions): Add areadlink, chdir-safer, read-file.
48540         Remove cycle-check.
48541         (File system as inode set): New section.
48542         (Date and time): Add gethrxtime.
48543         (Multithreading): Add openmp.
48544         (Internationalization functions): Add localename.
48545         (Unicode string functions): Add unistr/u*-mbsnlen.
48546         (Support for maintaining and releasing projects): Add git-version-gen.
48547         (Lone files): Remove directories.
48548
48549 2007-10-08  Ben Pfaff  <blp@gnu.org>
48550
48551         * lib/xmalloca.h: Fix typo in comment.
48552
48553 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48554
48555         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48556         when avoiding problems with integer overflow.  Use a portable test
48557         instead.
48558
48559 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48560
48561         * modules/dummy (License): Change to LGPLv2+.
48562         * modules/float (License): Likewise
48563         * modules/realloc (License): Likewise
48564         * modules/stdlib (License): Likewise
48565
48566 2007-10-07  Bruno Haible  <bruno@clisp.org>
48567
48568         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48569         * floor.c (TWO_MANT_DIG): Likewise.
48570         * ceil.c (TWO_MANT_DIG): Likewise.
48571         Reported by Ben Pfaff.
48572
48573 2007-10-07  Bruno Haible  <bruno@clisp.org>
48574
48575         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48576         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48577         * lib/frexp.c (FUNC): Likewise.
48578         * lib/printf-frexp.h (printf_frexp): Likewise.
48579         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48580         * lib/printf-frexp.c (FUNC): Likewise.
48581         Suggested by Jim Meyering.
48582
48583 2007-10-07  Jim Meyering  <meyering@redhat.com>
48584
48585         Make xnanosleep's integer overflow test more robust.
48586         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48587         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48588
48589 2007-10-07  Bruno Haible  <bruno@clisp.org>
48590
48591         * NEWS: Mention the license change.
48592
48593         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48594         abbreviations in the modules files.
48595
48596         Change copyright notice from GPLv2+ to GPLv3+.
48597         * README: Change copyright notice.
48598         * MODULES.html.sh: Likewise.
48599         * build-aux/bootstrap.conf: Likewise.
48600         * build-aux/config.libpath: Likewise.
48601         * build-aux/csharpcomp.sh.in: Likewise.
48602         * build-aux/csharpexec.sh.in: Likewise.
48603         * build-aux/install-reloc: Likewise.
48604         * build-aux/javacomp.sh.in: Likewise.
48605         * build-aux/javaexec.sh.in: Likewise.
48606         * build-aux/ldd.sh.in: Likewise.
48607         * build-aux/reloc-ldflags: Likewise.
48608         * build-aux/relocatable.sh.in: Likewise.
48609         * build-aux/x-to-1.in: Likewise.
48610         * check-module: Likewise.
48611         * config/srclistvars.sh: Likewise.
48612         * gnulib-tool: Likewise.
48613         * lib/acl-internal.h: Likewise.
48614         * lib/acl.c: Likewise.
48615         * lib/acl.h: Likewise.
48616         * lib/acl_entries.c: Likewise.
48617         * lib/areadlink-with-size.c: Likewise.
48618         * lib/areadlink.c: Likewise.
48619         * lib/areadlink.h: Likewise.
48620         * lib/argmatch.c: Likewise.
48621         * lib/argmatch.h: Likewise.
48622         * lib/argp-ba.c: Likewise.
48623         * lib/argp-eexst.c: Likewise.
48624         * lib/argp-fmtstream.c: Likewise.
48625         * lib/argp-fmtstream.h: Likewise.
48626         * lib/argp-fs-xinl.c: Likewise.
48627         * lib/argp-help.c: Likewise.
48628         * lib/argp-namefrob.h: Likewise.
48629         * lib/argp-parse.c: Likewise.
48630         * lib/argp-pin.c: Likewise.
48631         * lib/argp-pv.c: Likewise.
48632         * lib/argp-pvh.c: Likewise.
48633         * lib/argp-xinl.c: Likewise.
48634         * lib/argp.h: Likewise.
48635         * lib/at-func.c: Likewise.
48636         * lib/atanl.c: Likewise.
48637         * lib/backupfile.c: Likewise.
48638         * lib/backupfile.h: Likewise.
48639         * lib/basename.c: Likewise.
48640         * lib/binary-io.h: Likewise.
48641         * lib/byteswap.in.h: Likewise.
48642         * lib/c-stack.c: Likewise.
48643         * lib/c-stack.h: Likewise.
48644         * lib/c-strcasestr.c: Likewise.
48645         * lib/c-strcasestr.h: Likewise.
48646         * lib/c-strstr.c: Likewise.
48647         * lib/c-strstr.h: Likewise.
48648         * lib/c-strtod.c: Likewise.
48649         * lib/calloc.c: Likewise.
48650         * lib/canon-host.c: Likewise.
48651         * lib/canon-host.h: Likewise.
48652         * lib/canonicalize-lgpl.c: Likewise.
48653         * lib/canonicalize.c: Likewise.
48654         * lib/canonicalize.h: Likewise.
48655         * lib/ceil.c: Likewise.
48656         * lib/ceilf.c: Likewise.
48657         * lib/ceill.c: Likewise.
48658         * lib/chdir-long.c: Likewise.
48659         * lib/chdir-long.h: Likewise.
48660         * lib/chdir-safer.c: Likewise.
48661         * lib/chdir-safer.h: Likewise.
48662         * lib/chown.c: Likewise.
48663         * lib/classpath.c: Likewise.
48664         * lib/classpath.h: Likewise.
48665         * lib/clean-temp.c: Likewise.
48666         * lib/clean-temp.h: Likewise.
48667         * lib/cloexec.c: Likewise.
48668         * lib/close-stream.c: Likewise.
48669         * lib/closein.c: Likewise.
48670         * lib/closein.h: Likewise.
48671         * lib/closeout.c: Likewise.
48672         * lib/closeout.h: Likewise.
48673         * lib/concat-filename.c: Likewise.
48674         * lib/copy-file.c: Likewise.
48675         * lib/copy-file.h: Likewise.
48676         * lib/count-one-bits.h: Likewise.
48677         * lib/crc.c: Likewise.
48678         * lib/crc.h: Likewise.
48679         * lib/creat-safer.c: Likewise.
48680         * lib/csharpcomp.c: Likewise.
48681         * lib/csharpcomp.h: Likewise.
48682         * lib/csharpexec.c: Likewise.
48683         * lib/csharpexec.h: Likewise.
48684         * lib/cycle-check.c: Likewise.
48685         * lib/cycle-check.h: Likewise.
48686         * lib/diacrit.c: Likewise.
48687         * lib/diacrit.h: Likewise.
48688         * lib/diffseq.h: Likewise.
48689         * lib/dirchownmod.c: Likewise.
48690         * lib/dirent.in.h: Likewise.
48691         * lib/dirfd.c: Likewise.
48692         * lib/dirfd.h: Likewise.
48693         * lib/dirname.c: Likewise.
48694         * lib/dirname.h: Likewise.
48695         * lib/dummy.c: Likewise.
48696         * lib/dup-safer.c: Likewise.
48697         * lib/dup2.c: Likewise.
48698         * lib/eealloc.h: Likewise.
48699         * lib/error.c: Likewise.
48700         * lib/error.h: Likewise.
48701         * lib/euidaccess.c: Likewise.
48702         * lib/exclude.c: Likewise.
48703         * lib/exclude.h: Likewise.
48704         * lib/execute.c: Likewise.
48705         * lib/execute.h: Likewise.
48706         * lib/exitfail.c: Likewise.
48707         * lib/exitfail.h: Likewise.
48708         * lib/expl.c: Likewise.
48709         * lib/fatal-signal.c: Likewise.
48710         * lib/fatal-signal.h: Likewise.
48711         * lib/fbufmode.c: Likewise.
48712         * lib/fbufmode.h: Likewise.
48713         * lib/fchdir.c: Likewise.
48714         * lib/fchmodat.c: Likewise.
48715         * lib/fchownat.c: Likewise.
48716         * lib/fcntl--.h: Likewise.
48717         * lib/fcntl-safer.h: Likewise.
48718         * lib/fcntl.in.h: Likewise.
48719         * lib/fd-safer.c: Likewise.
48720         * lib/fflush.c: Likewise.
48721         * lib/file-has-acl.c: Likewise.
48722         * lib/file-set.c: Likewise.
48723         * lib/file-type.c: Likewise.
48724         * lib/file-type.h: Likewise.
48725         * lib/fileblocks.c: Likewise.
48726         * lib/filemode.c: Likewise.
48727         * lib/filemode.h: Likewise.
48728         * lib/filename.h: Likewise.
48729         * lib/filenamecat.c: Likewise.
48730         * lib/filenamecat.h: Likewise.
48731         * lib/findprog.c: Likewise.
48732         * lib/findprog.h: Likewise.
48733         * lib/float.in.h: Likewise.
48734         * lib/floor.c: Likewise.
48735         * lib/floorf.c: Likewise.
48736         * lib/floorl.c: Likewise.
48737         * lib/fopen-safer.c: Likewise.
48738         * lib/fopen.c: Likewise.
48739         * lib/fpending.c: Likewise.
48740         * lib/fpending.h: Likewise.
48741         * lib/fprintf.c: Likewise.
48742         * lib/fprintftime.h: Likewise.
48743         * lib/fpucw.h: Likewise.
48744         * lib/fpurge.c: Likewise.
48745         * lib/fpurge.h: Likewise.
48746         * lib/freadable.c: Likewise.
48747         * lib/freadable.h: Likewise.
48748         * lib/freadahead.c: Likewise.
48749         * lib/freadahead.h: Likewise.
48750         * lib/freading.c: Likewise.
48751         * lib/freading.h: Likewise.
48752         * lib/free.c: Likewise.
48753         * lib/freopen.c: Likewise.
48754         * lib/frexp.c: Likewise.
48755         * lib/frexpl.c: Likewise.
48756         * lib/fseek.c: Likewise.
48757         * lib/fseterr.c: Likewise.
48758         * lib/fseterr.h: Likewise.
48759         * lib/fstatat.c: Likewise.
48760         * lib/fstrcmp.c: Likewise.
48761         * lib/fstrcmp.h: Likewise.
48762         * lib/fsusage.c: Likewise.
48763         * lib/fsusage.h: Likewise.
48764         * lib/ftell.c: Likewise.
48765         * lib/ftello.c: Likewise.
48766         * lib/fts-cycle.c: Likewise.
48767         * lib/fts.c: Likewise.
48768         * lib/fts_.h: Likewise.
48769         * lib/full-read.c: Likewise.
48770         * lib/full-read.h: Likewise.
48771         * lib/full-write.c: Likewise.
48772         * lib/full-write.h: Likewise.
48773         * lib/fwritable.c: Likewise.
48774         * lib/fwritable.h: Likewise.
48775         * lib/fwriteerror.c: Likewise.
48776         * lib/fwriteerror.h: Likewise.
48777         * lib/fwriting.c: Likewise.
48778         * lib/fwriting.h: Likewise.
48779         * lib/gcd.c: Likewise.
48780         * lib/gcd.h: Likewise.
48781         * lib/getcwd.c: Likewise.
48782         * lib/getdate.h: Likewise.
48783         * lib/getdate.y: Likewise.
48784         * lib/getdomainname.c: Likewise.
48785         * lib/getdomainname.h: Likewise.
48786         * lib/getgroups.c: Likewise.
48787         * lib/gethostname.c: Likewise.
48788         * lib/gethrxtime.c: Likewise.
48789         * lib/gethrxtime.h: Likewise.
48790         * lib/getloadavg.c: Likewise.
48791         * lib/getndelim2.c: Likewise.
48792         * lib/getndelim2.h: Likewise.
48793         * lib/getnline.c: Likewise.
48794         * lib/getnline.h: Likewise.
48795         * lib/getopt.c: Likewise.
48796         * lib/getopt.in.h: Likewise.
48797         * lib/getopt1.c: Likewise.
48798         * lib/getopt_int.h: Likewise.
48799         * lib/getpagesize.h: Likewise.
48800         * lib/getsubopt.c: Likewise.
48801         * lib/gettime.c: Likewise.
48802         * lib/getugroups.c: Likewise.
48803         * lib/getugroups.h: Likewise.
48804         * lib/getusershell.c: Likewise.
48805         * lib/gl_anyavltree_list1.h: Likewise.
48806         * lib/gl_anyavltree_list2.h: Likewise.
48807         * lib/gl_anyhash_list1.h: Likewise.
48808         * lib/gl_anyhash_list2.h: Likewise.
48809         * lib/gl_anylinked_list1.h: Likewise.
48810         * lib/gl_anylinked_list2.h: Likewise.
48811         * lib/gl_anyrbtree_list1.h: Likewise.
48812         * lib/gl_anyrbtree_list2.h: Likewise.
48813         * lib/gl_anytree_list1.h: Likewise.
48814         * lib/gl_anytree_list2.h: Likewise.
48815         * lib/gl_anytree_oset.h: Likewise.
48816         * lib/gl_anytreehash_list1.h: Likewise.
48817         * lib/gl_anytreehash_list2.h: Likewise.
48818         * lib/gl_array_list.c: Likewise.
48819         * lib/gl_array_list.h: Likewise.
48820         * lib/gl_array_oset.c: Likewise.
48821         * lib/gl_array_oset.h: Likewise.
48822         * lib/gl_avltree_list.c: Likewise.
48823         * lib/gl_avltree_list.h: Likewise.
48824         * lib/gl_avltree_oset.c: Likewise.
48825         * lib/gl_avltree_oset.h: Likewise.
48826         * lib/gl_avltreehash_list.c: Likewise.
48827         * lib/gl_avltreehash_list.h: Likewise.
48828         * lib/gl_carray_list.c: Likewise.
48829         * lib/gl_carray_list.h: Likewise.
48830         * lib/gl_linked_list.c: Likewise.
48831         * lib/gl_linked_list.h: Likewise.
48832         * lib/gl_linkedhash_list.c: Likewise.
48833         * lib/gl_linkedhash_list.h: Likewise.
48834         * lib/gl_list.c: Likewise.
48835         * lib/gl_list.h: Likewise.
48836         * lib/gl_oset.c: Likewise.
48837         * lib/gl_oset.h: Likewise.
48838         * lib/gl_rbtree_list.c: Likewise.
48839         * lib/gl_rbtree_list.h: Likewise.
48840         * lib/gl_rbtree_oset.c: Likewise.
48841         * lib/gl_rbtree_oset.h: Likewise.
48842         * lib/gl_rbtreehash_list.c: Likewise.
48843         * lib/gl_rbtreehash_list.h: Likewise.
48844         * lib/gl_sublist.c: Likewise.
48845         * lib/gl_sublist.h: Likewise.
48846         * lib/group-member.c: Likewise.
48847         * lib/group-member.h: Likewise.
48848         * lib/hard-locale.c: Likewise.
48849         * lib/hard-locale.h: Likewise.
48850         * lib/hash-pjw.c: Likewise.
48851         * lib/hash-pjw.h: Likewise.
48852         * lib/hash-triple.c: Likewise.
48853         * lib/hash.c: Likewise.
48854         * lib/hash.h: Likewise.
48855         * lib/human.c: Likewise.
48856         * lib/human.h: Likewise.
48857         * lib/i-ring.c: Likewise.
48858         * lib/i-ring.h: Likewise.
48859         * lib/idcache.c: Likewise.
48860         * lib/imaxabs.c: Likewise.
48861         * lib/imaxdiv.c: Likewise.
48862         * lib/inet_pton.c: Likewise.
48863         * lib/inet_pton.h: Likewise.
48864         * lib/intprops.h: Likewise.
48865         * lib/inttostr.c: Likewise.
48866         * lib/inttostr.h: Likewise.
48867         * lib/inttypes.in.h: Likewise.
48868         * lib/isapipe.c: Likewise.
48869         * lib/isdir.c: Likewise.
48870         * lib/isnan.c: Likewise.
48871         * lib/isnan.h: Likewise.
48872         * lib/isnanf.c: Likewise.
48873         * lib/isnanf.h: Likewise.
48874         * lib/isnanl-nolibm.h: Likewise.
48875         * lib/isnanl.c: Likewise.
48876         * lib/isnanl.h: Likewise.
48877         * lib/javacomp.c: Likewise.
48878         * lib/javacomp.h: Likewise.
48879         * lib/javaexec.c: Likewise.
48880         * lib/javaexec.h: Likewise.
48881         * lib/javaversion.c: Likewise.
48882         * lib/javaversion.h: Likewise.
48883         * lib/javaversion.java: Likewise.
48884         * lib/lbrkprop.h: Likewise.
48885         * lib/lchmod.h: Likewise.
48886         * lib/lchown.c: Likewise.
48887         * lib/ldexpl.c: Likewise.
48888         * lib/linebreak.c: Likewise.
48889         * lib/linebreak.h: Likewise.
48890         * lib/linebuffer.c: Likewise.
48891         * lib/linebuffer.h: Likewise.
48892         * lib/locale.in.h: Likewise.
48893         * lib/logl.c: Likewise.
48894         * lib/long-options.c: Likewise.
48895         * lib/long-options.h: Likewise.
48896         * lib/lstat.c: Likewise.
48897         * lib/lstat.h: Likewise.
48898         * lib/math.in.h: Likewise.
48899         * lib/mbchar.c: Likewise.
48900         * lib/mbchar.h: Likewise.
48901         * lib/mbfile.h: Likewise.
48902         * lib/mbiter.h: Likewise.
48903         * lib/mbscasecmp.c: Likewise.
48904         * lib/mbscasestr.c: Likewise.
48905         * lib/mbschr.c: Likewise.
48906         * lib/mbscspn.c: Likewise.
48907         * lib/mbslen.c: Likewise.
48908         * lib/mbsncasecmp.c: Likewise.
48909         * lib/mbsnlen.c: Likewise.
48910         * lib/mbspbrk.c: Likewise.
48911         * lib/mbspcasecmp.c: Likewise.
48912         * lib/mbsrchr.c: Likewise.
48913         * lib/mbssep.c: Likewise.
48914         * lib/mbsspn.c: Likewise.
48915         * lib/mbsstr.c: Likewise.
48916         * lib/mbstok_r.c: Likewise.
48917         * lib/mbswidth.c: Likewise.
48918         * lib/mbswidth.h: Likewise.
48919         * lib/mbuiter.h: Likewise.
48920         * lib/memcasecmp.c: Likewise.
48921         * lib/memcasecmp.h: Likewise.
48922         * lib/memchr.c: Likewise.
48923         * lib/memcmp.c: Likewise.
48924         * lib/memcoll.c: Likewise.
48925         * lib/memcoll.h: Likewise.
48926         * lib/memcpy.c: Likewise.
48927         * lib/memrchr.c: Likewise.
48928         * lib/mkancesdirs.c: Likewise.
48929         * lib/mkdir-p.c: Likewise.
48930         * lib/mkdir-p.h: Likewise.
48931         * lib/mkdir.c: Likewise.
48932         * lib/mkdirat.c: Likewise.
48933         * lib/mkdtemp.c: Likewise.
48934         * lib/mkstemp-safer.c: Likewise.
48935         * lib/mkstemp.c: Likewise.
48936         * lib/modechange.c: Likewise.
48937         * lib/modechange.h: Likewise.
48938         * lib/mountlist.c: Likewise.
48939         * lib/mountlist.h: Likewise.
48940         * lib/mpsort.c: Likewise.
48941         * lib/nanosleep.c: Likewise.
48942         * lib/obstack.c: Likewise.
48943         * lib/obstack.h: Likewise.
48944         * lib/open-safer.c: Likewise.
48945         * lib/open.c: Likewise.
48946         * lib/openat-die.c: Likewise.
48947         * lib/openat-priv.h: Likewise.
48948         * lib/openat-proc.c: Likewise.
48949         * lib/openat.c: Likewise.
48950         * lib/openat.h: Likewise.
48951         * lib/pagealign_alloc.c: Likewise.
48952         * lib/pagealign_alloc.h: Likewise.
48953         * lib/physmem.c: Likewise.
48954         * lib/physmem.h: Likewise.
48955         * lib/pipe-safer.c: Likewise.
48956         * lib/pipe.c: Likewise.
48957         * lib/pipe.h: Likewise.
48958         * lib/posixtm.c: Likewise.
48959         * lib/posixtm.h: Likewise.
48960         * lib/posixver.c: Likewise.
48961         * lib/printf-frexp.c: Likewise.
48962         * lib/printf-frexp.h: Likewise.
48963         * lib/printf-frexpl.c: Likewise.
48964         * lib/printf-frexpl.h: Likewise.
48965         * lib/printf.c: Likewise.
48966         * lib/progname.c: Likewise.
48967         * lib/progname.h: Likewise.
48968         * lib/progreloc.c: Likewise.
48969         * lib/putenv.c: Likewise.
48970         * lib/quote.c: Likewise.
48971         * lib/quote.h: Likewise.
48972         * lib/quotearg.c: Likewise.
48973         * lib/quotearg.h: Likewise.
48974         * lib/raise.c: Likewise.
48975         * lib/readline.c: Likewise.
48976         * lib/readline.h: Likewise.
48977         * lib/readlink.c: Likewise.
48978         * lib/readtokens.c: Likewise.
48979         * lib/readtokens.h: Likewise.
48980         * lib/readtokens0.c: Likewise.
48981         * lib/readtokens0.h: Likewise.
48982         * lib/readutmp.c: Likewise.
48983         * lib/readutmp.h: Likewise.
48984         * lib/realloc.c: Likewise.
48985         * lib/relocwrapper.c: Likewise.
48986         * lib/rename-dest-slash.c: Likewise.
48987         * lib/rename.c: Likewise.
48988         * lib/rmdir.c: Likewise.
48989         * lib/rpmatch.c: Likewise.
48990         * lib/safe-read.c: Likewise.
48991         * lib/safe-read.h: Likewise.
48992         * lib/safe-write.c: Likewise.
48993         * lib/safe-write.h: Likewise.
48994         * lib/same-inode.h: Likewise.
48995         * lib/same.c: Likewise.
48996         * lib/same.h: Likewise.
48997         * lib/save-cwd.c: Likewise.
48998         * lib/save-cwd.h: Likewise.
48999         * lib/savedir.c: Likewise.
49000         * lib/savedir.h: Likewise.
49001         * lib/savewd.c: Likewise.
49002         * lib/savewd.h: Likewise.
49003         * lib/search.in.h: Likewise.
49004         * lib/setenv.c: Likewise.
49005         * lib/setenv.h: Likewise.
49006         * lib/settime.c: Likewise.
49007         * lib/sh-quote.c: Likewise.
49008         * lib/sh-quote.h: Likewise.
49009         * lib/sig2str.c: Likewise.
49010         * lib/sig2str.h: Likewise.
49011         * lib/signal.in.h: Likewise.
49012         * lib/signbitd.c: Likewise.
49013         * lib/signbitf.c: Likewise.
49014         * lib/signbitl.c: Likewise.
49015         * lib/sigprocmask.c: Likewise.
49016         * lib/sincosl.c: Likewise.
49017         * lib/sleep.c: Likewise.
49018         * lib/sprintf.c: Likewise.
49019         * lib/sqrtl.c: Likewise.
49020         * lib/stat-time.h: Likewise.
49021         * lib/stdio--.h: Likewise.
49022         * lib/stdio-safer.h: Likewise.
49023         * lib/stdlib--.h: Likewise.
49024         * lib/stdlib-safer.h: Likewise.
49025         * lib/stdlib.in.h: Likewise.
49026         * lib/stpcpy.c: Likewise.
49027         * lib/stpncpy.c: Likewise.
49028         * lib/strchrnul.c: Likewise.
49029         * lib/strcspn.c: Likewise.
49030         * lib/strerror.c: Likewise.
49031         * lib/strftime.c: Likewise.
49032         * lib/strftime.h: Likewise.
49033         * lib/striconveh.c: Likewise.
49034         * lib/striconveh.h: Likewise.
49035         * lib/striconveha.c: Likewise.
49036         * lib/striconveha.h: Likewise.
49037         * lib/stripslash.c: Likewise.
49038         * lib/strnlen1.c: Likewise.
49039         * lib/strnlen1.h: Likewise.
49040         * lib/strtod.c: Likewise.
49041         * lib/strtoimax.c: Likewise.
49042         * lib/strtok_r.c: Likewise.
49043         * lib/strtol.c: Likewise.
49044         * lib/strtoll.c: Likewise.
49045         * lib/strtoul.c: Likewise.
49046         * lib/strtoull.c: Likewise.
49047         * lib/sysexits.in.h: Likewise.
49048         * lib/tempname.c: Likewise.
49049         * lib/tempname.h: Likewise.
49050         * lib/timespec.h: Likewise.
49051         * lib/tls.c: Likewise.
49052         * lib/tls.h: Likewise.
49053         * lib/tmpdir.c: Likewise.
49054         * lib/tmpdir.h: Likewise.
49055         * lib/tmpfile-safer.c: Likewise.
49056         * lib/tmpfile.c: Likewise.
49057         * lib/trigl.c: Likewise.
49058         * lib/trigl.h: Likewise.
49059         * lib/trim.c: Likewise.
49060         * lib/trim.h: Likewise.
49061         * lib/trunc.c: Likewise.
49062         * lib/truncf.c: Likewise.
49063         * lib/truncl.c: Likewise.
49064         * lib/tsearch.c: Likewise.
49065         * lib/unicodeio.c: Likewise.
49066         * lib/unicodeio.h: Likewise.
49067         * lib/unistd--.h: Likewise.
49068         * lib/unistd-safer.h: Likewise.
49069         * lib/unistdio/ulc-fprintf.c: Likewise.
49070         * lib/unistdio/ulc-vfprintf.c: Likewise.
49071         * lib/unlinkdir.c: Likewise.
49072         * lib/unlinkdir.h: Likewise.
49073         * lib/unlocked-io.h: Likewise.
49074         * lib/unsetenv.c: Likewise.
49075         * lib/userspec.c: Likewise.
49076         * lib/utime.c: Likewise.
49077         * lib/utimecmp.c: Likewise.
49078         * lib/utimecmp.h: Likewise.
49079         * lib/utimens.c: Likewise.
49080         * lib/verify.h: Likewise.
49081         * lib/verror.c: Likewise.
49082         * lib/verror.h: Likewise.
49083         * lib/version-etc-fsf.c: Likewise.
49084         * lib/version-etc.c: Likewise.
49085         * lib/version-etc.h: Likewise.
49086         * lib/vfprintf.c: Likewise.
49087         * lib/vprintf.c: Likewise.
49088         * lib/vsprintf.c: Likewise.
49089         * lib/w32spawn.h: Likewise.
49090         * lib/wait-process.c: Likewise.
49091         * lib/wait-process.h: Likewise.
49092         * lib/wcwidth.c: Likewise.
49093         * lib/write-any-file.c: Likewise.
49094         * lib/xalloc-die.c: Likewise.
49095         * lib/xalloc.h: Likewise.
49096         * lib/xasprintf.c: Likewise.
49097         * lib/xgetcwd.c: Likewise.
49098         * lib/xgetcwd.h: Likewise.
49099         * lib/xgetdomainname.c: Likewise.
49100         * lib/xgetdomainname.h: Likewise.
49101         * lib/xgethostname.c: Likewise.
49102         * lib/xmalloc.c: Likewise.
49103         * lib/xmalloca.c: Likewise.
49104         * lib/xmalloca.h: Likewise.
49105         * lib/xmemcoll.c: Likewise.
49106         * lib/xnanosleep.c: Likewise.
49107         * lib/xreadlink.c: Likewise.
49108         * lib/xreadlink.h: Likewise.
49109         * lib/xsetenv.c: Likewise.
49110         * lib/xsetenv.h: Likewise.
49111         * lib/xstriconv.c: Likewise.
49112         * lib/xstriconv.h: Likewise.
49113         * lib/xstrndup.c: Likewise.
49114         * lib/xstrndup.h: Likewise.
49115         * lib/xstrtod.c: Likewise.
49116         * lib/xstrtod.h: Likewise.
49117         * lib/xstrtol-error.c: Likewise.
49118         * lib/xstrtol.c: Likewise.
49119         * lib/xstrtol.h: Likewise.
49120         * lib/xtime.h: Likewise.
49121         * lib/xvasprintf.c: Likewise.
49122         * lib/xvasprintf.h: Likewise.
49123         * lib/yesno.c: Likewise.
49124         * lib/yesno.h: Likewise.
49125         * posix-modules: Likewise.
49126         * tests/test-alloca-opt.c: Likewise.
49127         * tests/test-arcfour.c: Likewise.
49128         * tests/test-arctwo.c: Likewise.
49129         * tests/test-argmatch.c: Likewise.
49130         * tests/test-argp-2.sh: Likewise.
49131         * tests/test-argp.c: Likewise.
49132         * tests/test-arpa_inet.c: Likewise.
49133         * tests/test-array_list.c: Likewise.
49134         * tests/test-array_oset.c: Likewise.
49135         * tests/test-atexit.c: Likewise.
49136         * tests/test-avltree_list.c: Likewise.
49137         * tests/test-avltree_oset.c: Likewise.
49138         * tests/test-avltreehash_list.c: Likewise.
49139         * tests/test-base64.c: Likewise.
49140         * tests/test-binary-io.c: Likewise.
49141         * tests/test-byteswap.c: Likewise.
49142         * tests/test-c-ctype.c: Likewise.
49143         * tests/test-c-strcasecmp.c: Likewise.
49144         * tests/test-c-strcasestr.c: Likewise.
49145         * tests/test-c-strncasecmp.c: Likewise.
49146         * tests/test-c-strstr.c: Likewise.
49147         * tests/test-canonicalize-lgpl.c: Likewise.
49148         * tests/test-canonicalize.c: Likewise.
49149         * tests/test-carray_list.c: Likewise.
49150         * tests/test-ceilf.c: Likewise.
49151         * tests/test-ceill.c: Likewise.
49152         * tests/test-count-one-bits.c: Likewise.
49153         * tests/test-crc.c: Likewise.
49154         * tests/test-dirname.c: Likewise.
49155         * tests/test-fbufmode.c: Likewise.
49156         * tests/test-fcntl.c: Likewise.
49157         * tests/test-fflush.c: Likewise.
49158         * tests/test-floorf.c: Likewise.
49159         * tests/test-floorl.c: Likewise.
49160         * tests/test-fopen.c: Likewise.
49161         * tests/test-fprintf-posix.c: Likewise.
49162         * tests/test-fprintf-posix.h: Likewise.
49163         * tests/test-fpurge.c: Likewise.
49164         * tests/test-freadable.c: Likewise.
49165         * tests/test-freadahead.c: Likewise.
49166         * tests/test-freading.c: Likewise.
49167         * tests/test-freopen.c: Likewise.
49168         * tests/test-frexp.c: Likewise.
49169         * tests/test-frexpl.c: Likewise.
49170         * tests/test-fseek.c: Likewise.
49171         * tests/test-fseeko.c: Likewise.
49172         * tests/test-fseterr.c: Likewise.
49173         * tests/test-fstrcmp.c: Likewise.
49174         * tests/test-ftell.c: Likewise.
49175         * tests/test-ftello.c: Likewise.
49176         * tests/test-fwritable.c: Likewise.
49177         * tests/test-fwriting.c: Likewise.
49178         * tests/test-getaddrinfo.c: Likewise.
49179         * tests/test-getpass.c: Likewise.
49180         * tests/test-gettimeofday.c: Likewise.
49181         * tests/test-hmac-md5.c: Likewise.
49182         * tests/test-hmac-sha1.c: Likewise.
49183         * tests/test-iconv.c: Likewise.
49184         * tests/test-iconvme.c: Likewise.
49185         * tests/test-inttypes.c: Likewise.
49186         * tests/test-isnan.c: Likewise.
49187         * tests/test-isnanf.c: Likewise.
49188         * tests/test-isnanl-nolibm.c: Likewise.
49189         * tests/test-isnanl.c: Likewise.
49190         * tests/test-isnanl.h: Likewise.
49191         * tests/test-ldexpl.c: Likewise.
49192         * tests/test-linked_list.c: Likewise.
49193         * tests/test-linkedhash_list.c: Likewise.
49194         * tests/test-locale.c: Likewise.
49195         * tests/test-localename.c: Likewise.
49196         * tests/test-lock.c: Likewise.
49197         * tests/test-lseek.c: Likewise.
49198         * tests/test-malloca.c: Likewise.
49199         * tests/test-math.c: Likewise.
49200         * tests/test-mbscasecmp.c: Likewise.
49201         * tests/test-mbscasestr1.c: Likewise.
49202         * tests/test-mbscasestr2.c: Likewise.
49203         * tests/test-mbscasestr3.c: Likewise.
49204         * tests/test-mbscasestr4.c: Likewise.
49205         * tests/test-mbschr.c: Likewise.
49206         * tests/test-mbscspn.c: Likewise.
49207         * tests/test-mbsncasecmp.c: Likewise.
49208         * tests/test-mbspbrk.c: Likewise.
49209         * tests/test-mbspcasecmp.c: Likewise.
49210         * tests/test-mbsrchr.c: Likewise.
49211         * tests/test-mbsspn.c: Likewise.
49212         * tests/test-mbsstr1.c: Likewise.
49213         * tests/test-mbsstr2.c: Likewise.
49214         * tests/test-mbsstr3.c: Likewise.
49215         * tests/test-md5.c: Likewise.
49216         * tests/test-memmem.c: Likewise.
49217         * tests/test-netinet_in.c: Likewise.
49218         * tests/test-open.c: Likewise.
49219         * tests/test-printf-frexp.c: Likewise.
49220         * tests/test-printf-frexpl.c: Likewise.
49221         * tests/test-printf-posix.c: Likewise.
49222         * tests/test-printf-posix.h: Likewise.
49223         * tests/test-rbtree_list.c: Likewise.
49224         * tests/test-rbtree_oset.c: Likewise.
49225         * tests/test-rbtreehash_list.c: Likewise.
49226         * tests/test-read-file.c: Likewise.
49227         * tests/test-rijndael.c: Likewise.
49228         * tests/test-search.c: Likewise.
49229         * tests/test-signbit.c: Likewise.
49230         * tests/test-sleep.c: Likewise.
49231         * tests/test-snprintf-posix.c: Likewise.
49232         * tests/test-snprintf-posix.h: Likewise.
49233         * tests/test-snprintf.c: Likewise.
49234         * tests/test-sprintf-posix.c: Likewise.
49235         * tests/test-sprintf-posix.h: Likewise.
49236         * tests/test-stat-time.c: Likewise.
49237         * tests/test-stdbool.c: Likewise.
49238         * tests/test-stdint.c: Likewise.
49239         * tests/test-stdio.c: Likewise.
49240         * tests/test-stdlib.c: Likewise.
49241         * tests/test-stpncpy.c: Likewise.
49242         * tests/test-strcasestr.c: Likewise.
49243         * tests/test-striconv.c: Likewise.
49244         * tests/test-striconveh.c: Likewise.
49245         * tests/test-striconveha.c: Likewise.
49246         * tests/test-string.c: Likewise.
49247         * tests/test-sys_select.c: Likewise.
49248         * tests/test-sys_socket.c: Likewise.
49249         * tests/test-sys_stat.c: Likewise.
49250         * tests/test-sys_time.c: Likewise.
49251         * tests/test-sysexits.c: Likewise.
49252         * tests/test-time.c: Likewise.
49253         * tests/test-tls.c: Likewise.
49254         * tests/test-trunc.c: Likewise.
49255         * tests/test-truncf.c: Likewise.
49256         * tests/test-truncl.c: Likewise.
49257         * tests/test-unistd.c: Likewise.
49258         * tests/test-vasnprintf-posix.c: Likewise.
49259         * tests/test-vasnprintf-posix2.c: Likewise.
49260         * tests/test-vasnprintf.c: Likewise.
49261         * tests/test-vasprintf-posix.c: Likewise.
49262         * tests/test-vasprintf.c: Likewise.
49263         * tests/test-verify.c: Likewise.
49264         * tests/test-vfprintf-posix.c: Likewise.
49265         * tests/test-vprintf-posix.c: Likewise.
49266         * tests/test-vsnprintf-posix.c: Likewise.
49267         * tests/test-vsnprintf.c: Likewise.
49268         * tests/test-vsprintf-posix.c: Likewise.
49269         * tests/test-wchar.c: Likewise.
49270         * tests/test-wctype.c: Likewise.
49271         * tests/test-wcwidth.c: Likewise.
49272         * tests/test-xstrtol.c: Likewise.
49273         * tests/test-xvasprintf.c: Likewise.
49274         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49275         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49276         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49277         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49278         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49279         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49280         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49281         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49282         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49283         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49284         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49285         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49286         * tests/uniname/test-uninames.c: Likewise.
49287         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49288         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49289         * tests/unistdio/test-u16-printf1.h: Likewise.
49290         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49291         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49292         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49293         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49294         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49295         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49296         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49297         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49298         * tests/unistdio/test-u32-printf1.h: Likewise.
49299         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49300         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49301         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49302         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49303         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49304         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49305         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49306         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49307         * tests/unistdio/test-u8-printf1.h: Likewise.
49308         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49309         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49310         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49311         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49312         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49313         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49314         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49315         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49316         * tests/unistdio/test-ulc-printf1.h: Likewise.
49317         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49318         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49319         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49320         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49321         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49322         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49323         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49324         * tests/uniwidth/test-u16-width.c: Likewise.
49325         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49326         * tests/uniwidth/test-u32-width.c: Likewise.
49327         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49328         * tests/uniwidth/test-u8-width.c: Likewise.
49329         * tests/uniwidth/test-uc_width.c: Likewise.
49330         * config/srclist-update: Likewise.
49331         (fixlicense): Update to GPLv3+.
49332
49333         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49334         * tests/test-tsearch.c: Change copyright notice.
49335
49336         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49337         * lib/c-strcaseeq.h: Change copyright notice.
49338         * lib/streq.h: Likewise.
49339         * lib/uniconv.h: Likewise.
49340         * lib/uniconv/u-conv-from-enc.h: Likewise.
49341         * lib/uniconv/u-conv-to-enc.h: Likewise.
49342         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49343         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49344         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49345         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49346         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49347         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49348         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49349         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49350         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49351         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49352         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49353         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49354         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49355         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49356         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49357         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49358         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49359         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49360         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49361         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49362         * lib/uniname.h: Likewise.
49363         * lib/uniname/uniname.c: Likewise.
49364         * lib/unistdio.h: Likewise.
49365         * lib/unistdio/u-asnprintf.h: Likewise.
49366         * lib/unistdio/u-asprintf.h: Likewise.
49367         * lib/unistdio/u-printf-args.c: Likewise.
49368         * lib/unistdio/u-printf-args.h: Likewise.
49369         * lib/unistdio/u-printf-parse.h: Likewise.
49370         * lib/unistdio/u-snprintf.h: Likewise.
49371         * lib/unistdio/u-sprintf.h: Likewise.
49372         * lib/unistdio/u-vasprintf.h: Likewise.
49373         * lib/unistdio/u-vsnprintf.h: Likewise.
49374         * lib/unistdio/u-vsprintf.h: Likewise.
49375         * lib/unistdio/u16-asnprintf.c: Likewise.
49376         * lib/unistdio/u16-asprintf.c: Likewise.
49377         * lib/unistdio/u16-printf-parse.c: Likewise.
49378         * lib/unistdio/u16-snprintf.c: Likewise.
49379         * lib/unistdio/u16-sprintf.c: Likewise.
49380         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49381         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49382         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49383         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49384         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49385         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49386         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49387         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49388         * lib/unistdio/u16-vasnprintf.c: Likewise.
49389         * lib/unistdio/u16-vasprintf.c: Likewise.
49390         * lib/unistdio/u16-vsnprintf.c: Likewise.
49391         * lib/unistdio/u16-vsprintf.c: Likewise.
49392         * lib/unistdio/u32-asnprintf.c: Likewise.
49393         * lib/unistdio/u32-asprintf.c: Likewise.
49394         * lib/unistdio/u32-printf-parse.c: Likewise.
49395         * lib/unistdio/u32-snprintf.c: Likewise.
49396         * lib/unistdio/u32-sprintf.c: Likewise.
49397         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49398         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49399         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49400         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49401         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49402         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49403         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49404         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49405         * lib/unistdio/u32-vasnprintf.c: Likewise.
49406         * lib/unistdio/u32-vasprintf.c: Likewise.
49407         * lib/unistdio/u32-vsnprintf.c: Likewise.
49408         * lib/unistdio/u32-vsprintf.c: Likewise.
49409         * lib/unistdio/u8-asnprintf.c: Likewise.
49410         * lib/unistdio/u8-asprintf.c: Likewise.
49411         * lib/unistdio/u8-printf-parse.c: Likewise.
49412         * lib/unistdio/u8-snprintf.c: Likewise.
49413         * lib/unistdio/u8-sprintf.c: Likewise.
49414         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49415         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49416         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49417         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49418         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49419         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49420         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49421         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49422         * lib/unistdio/u8-vasnprintf.c: Likewise.
49423         * lib/unistdio/u8-vasprintf.c: Likewise.
49424         * lib/unistdio/u8-vsnprintf.c: Likewise.
49425         * lib/unistdio/u8-vsprintf.c: Likewise.
49426         * lib/unistdio/ulc-asnprintf.c: Likewise.
49427         * lib/unistdio/ulc-asprintf.c: Likewise.
49428         * lib/unistdio/ulc-printf-parse.c: Likewise.
49429         * lib/unistdio/ulc-snprintf.c: Likewise.
49430         * lib/unistdio/ulc-sprintf.c: Likewise.
49431         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49432         * lib/unistdio/ulc-vasprintf.c: Likewise.
49433         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49434         * lib/unistdio/ulc-vsprintf.c: Likewise.
49435         * lib/unistr.h: Likewise.
49436         * lib/unistr/u-cpy-alloc.h: Likewise.
49437         * lib/unistr/u-cpy.h: Likewise.
49438         * lib/unistr/u-endswith.h: Likewise.
49439         * lib/unistr/u-move.h: Likewise.
49440         * lib/unistr/u-set.h: Likewise.
49441         * lib/unistr/u-startswith.h: Likewise.
49442         * lib/unistr/u-stpcpy.h: Likewise.
49443         * lib/unistr/u-stpncpy.h: Likewise.
49444         * lib/unistr/u-strcat.h: Likewise.
49445         * lib/unistr/u-strcpy.h: Likewise.
49446         * lib/unistr/u-strcspn.h: Likewise.
49447         * lib/unistr/u-strdup.h: Likewise.
49448         * lib/unistr/u-strlen.h: Likewise.
49449         * lib/unistr/u-strncat.h: Likewise.
49450         * lib/unistr/u-strncpy.h: Likewise.
49451         * lib/unistr/u-strnlen.h: Likewise.
49452         * lib/unistr/u-strpbrk.h: Likewise.
49453         * lib/unistr/u-strspn.h: Likewise.
49454         * lib/unistr/u-strstr.h: Likewise.
49455         * lib/unistr/u-strtok.h: Likewise.
49456         * lib/unistr/u16-check.c: Likewise.
49457         * lib/unistr/u16-chr.c: Likewise.
49458         * lib/unistr/u16-cmp.c: Likewise.
49459         * lib/unistr/u16-cpy-alloc.c: Likewise.
49460         * lib/unistr/u16-cpy.c: Likewise.
49461         * lib/unistr/u16-endswith.c: Likewise.
49462         * lib/unistr/u16-mblen.c: Likewise.
49463         * lib/unistr/u16-mbsnlen.c: Likewise.
49464         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49465         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49466         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49467         * lib/unistr/u16-mbtouc.c: Likewise.
49468         * lib/unistr/u16-mbtoucr.c: Likewise.
49469         * lib/unistr/u16-move.c: Likewise.
49470         * lib/unistr/u16-next.c: Likewise.
49471         * lib/unistr/u16-prev.c: Likewise.
49472         * lib/unistr/u16-set.c: Likewise.
49473         * lib/unistr/u16-startswith.c: Likewise.
49474         * lib/unistr/u16-stpcpy.c: Likewise.
49475         * lib/unistr/u16-stpncpy.c: Likewise.
49476         * lib/unistr/u16-strcat.c: Likewise.
49477         * lib/unistr/u16-strchr.c: Likewise.
49478         * lib/unistr/u16-strcmp.c: Likewise.
49479         * lib/unistr/u16-strcpy.c: Likewise.
49480         * lib/unistr/u16-strcspn.c: Likewise.
49481         * lib/unistr/u16-strdup.c: Likewise.
49482         * lib/unistr/u16-strlen.c: Likewise.
49483         * lib/unistr/u16-strmblen.c: Likewise.
49484         * lib/unistr/u16-strmbtouc.c: Likewise.
49485         * lib/unistr/u16-strncat.c: Likewise.
49486         * lib/unistr/u16-strncmp.c: Likewise.
49487         * lib/unistr/u16-strncpy.c: Likewise.
49488         * lib/unistr/u16-strnlen.c: Likewise.
49489         * lib/unistr/u16-strpbrk.c: Likewise.
49490         * lib/unistr/u16-strrchr.c: Likewise.
49491         * lib/unistr/u16-strspn.c: Likewise.
49492         * lib/unistr/u16-strstr.c: Likewise.
49493         * lib/unistr/u16-strtok.c: Likewise.
49494         * lib/unistr/u16-to-u32.c: Likewise.
49495         * lib/unistr/u16-to-u8.c: Likewise.
49496         * lib/unistr/u16-uctomb-aux.c: Likewise.
49497         * lib/unistr/u16-uctomb.c: Likewise.
49498         * lib/unistr/u32-check.c: Likewise.
49499         * lib/unistr/u32-chr.c: Likewise.
49500         * lib/unistr/u32-cmp.c: Likewise.
49501         * lib/unistr/u32-cpy-alloc.c: Likewise.
49502         * lib/unistr/u32-cpy.c: Likewise.
49503         * lib/unistr/u32-endswith.c: Likewise.
49504         * lib/unistr/u32-mblen.c: Likewise.
49505         * lib/unistr/u32-mbsnlen.c: Likewise.
49506         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49507         * lib/unistr/u32-mbtouc.c: Likewise.
49508         * lib/unistr/u32-mbtoucr.c: Likewise.
49509         * lib/unistr/u32-move.c: Likewise.
49510         * lib/unistr/u32-next.c: Likewise.
49511         * lib/unistr/u32-prev.c: Likewise.
49512         * lib/unistr/u32-set.c: Likewise.
49513         * lib/unistr/u32-startswith.c: Likewise.
49514         * lib/unistr/u32-stpcpy.c: Likewise.
49515         * lib/unistr/u32-stpncpy.c: Likewise.
49516         * lib/unistr/u32-strcat.c: Likewise.
49517         * lib/unistr/u32-strchr.c: Likewise.
49518         * lib/unistr/u32-strcmp.c: Likewise.
49519         * lib/unistr/u32-strcpy.c: Likewise.
49520         * lib/unistr/u32-strcspn.c: Likewise.
49521         * lib/unistr/u32-strdup.c: Likewise.
49522         * lib/unistr/u32-strlen.c: Likewise.
49523         * lib/unistr/u32-strmblen.c: Likewise.
49524         * lib/unistr/u32-strmbtouc.c: Likewise.
49525         * lib/unistr/u32-strncat.c: Likewise.
49526         * lib/unistr/u32-strncmp.c: Likewise.
49527         * lib/unistr/u32-strncpy.c: Likewise.
49528         * lib/unistr/u32-strnlen.c: Likewise.
49529         * lib/unistr/u32-strpbrk.c: Likewise.
49530         * lib/unistr/u32-strrchr.c: Likewise.
49531         * lib/unistr/u32-strspn.c: Likewise.
49532         * lib/unistr/u32-strstr.c: Likewise.
49533         * lib/unistr/u32-strtok.c: Likewise.
49534         * lib/unistr/u32-to-u16.c: Likewise.
49535         * lib/unistr/u32-to-u8.c: Likewise.
49536         * lib/unistr/u32-uctomb.c: Likewise.
49537         * lib/unistr/u8-check.c: Likewise.
49538         * lib/unistr/u8-chr.c: Likewise.
49539         * lib/unistr/u8-cmp.c: Likewise.
49540         * lib/unistr/u8-cpy-alloc.c: Likewise.
49541         * lib/unistr/u8-cpy.c: Likewise.
49542         * lib/unistr/u8-endswith.c: Likewise.
49543         * lib/unistr/u8-mblen.c: Likewise.
49544         * lib/unistr/u8-mbsnlen.c: Likewise.
49545         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49546         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49547         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49548         * lib/unistr/u8-mbtouc.c: Likewise.
49549         * lib/unistr/u8-mbtoucr.c: Likewise.
49550         * lib/unistr/u8-move.c: Likewise.
49551         * lib/unistr/u8-next.c: Likewise.
49552         * lib/unistr/u8-prev.c: Likewise.
49553         * lib/unistr/u8-set.c: Likewise.
49554         * lib/unistr/u8-startswith.c: Likewise.
49555         * lib/unistr/u8-stpcpy.c: Likewise.
49556         * lib/unistr/u8-stpncpy.c: Likewise.
49557         * lib/unistr/u8-strcat.c: Likewise.
49558         * lib/unistr/u8-strchr.c: Likewise.
49559         * lib/unistr/u8-strcmp.c: Likewise.
49560         * lib/unistr/u8-strcpy.c: Likewise.
49561         * lib/unistr/u8-strcspn.c: Likewise.
49562         * lib/unistr/u8-strdup.c: Likewise.
49563         * lib/unistr/u8-strlen.c: Likewise.
49564         * lib/unistr/u8-strmblen.c: Likewise.
49565         * lib/unistr/u8-strmbtouc.c: Likewise.
49566         * lib/unistr/u8-strncat.c: Likewise.
49567         * lib/unistr/u8-strncmp.c: Likewise.
49568         * lib/unistr/u8-strncpy.c: Likewise.
49569         * lib/unistr/u8-strnlen.c: Likewise.
49570         * lib/unistr/u8-strpbrk.c: Likewise.
49571         * lib/unistr/u8-strrchr.c: Likewise.
49572         * lib/unistr/u8-strspn.c: Likewise.
49573         * lib/unistr/u8-strstr.c: Likewise.
49574         * lib/unistr/u8-strtok.c: Likewise.
49575         * lib/unistr/u8-to-u16.c: Likewise.
49576         * lib/unistr/u8-to-u32.c: Likewise.
49577         * lib/unistr/u8-uctomb-aux.c: Likewise.
49578         * lib/unistr/u8-uctomb.c: Likewise.
49579         * lib/unitypes.h: Likewise.
49580         * lib/uniwidth.h: Likewise.
49581         * lib/uniwidth/cjk.h: Likewise.
49582         * lib/uniwidth/u16-strwidth.c: Likewise.
49583         * lib/uniwidth/u16-width.c: Likewise.
49584         * lib/uniwidth/u32-strwidth.c: Likewise.
49585         * lib/uniwidth/u32-width.c: Likewise.
49586         * lib/uniwidth/u8-strwidth.c: Likewise.
49587         * lib/uniwidth/u8-width.c: Likewise.
49588         * lib/uniwidth/width.c: Likewise.
49589
49590 2007-10-07  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49593         The file is still under LGPL (see modules/inttypes).
49594
49595 2007-10-06  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/trunc (Dependencies): Add 'extensions'.
49598         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49599         Reported by Ben Pfaff <blp@gnu.org>.
49600
49601 2007-10-06  Bruno Haible  <bruno@clisp.org>
49602
49603         * modules/freopen-tests: New file.
49604         * tests/test-freopen.c: New file.
49605
49606         * modules/fopen-tests: New file.
49607         * tests/test-fopen.c: New file.
49608
49609         * modules/fopen: New file.
49610         * lib/fopen.c: New file.
49611         * m4/fopen.m4: New file.
49612         * modules/freopen: New file.
49613         * lib/freopen.c: New file.
49614         * m4/freopen.m4: New file.
49615         * lib/stdio.in.h (fopen, freopen): New declarations.
49616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49617         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49618         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49619         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49620         * doc/functions/fopen.texi: Mention the 'fopen' module.
49621         * doc/functions/freopen.texi: Mention the 'freopen' module.
49622
49623 2007-10-06  Bruno Haible  <bruno@clisp.org>
49624
49625         * modules/open-tests: New file.
49626         * tests/test-open.c: New file.
49627
49628         * modules/open: New file.
49629         * lib/open.c: New file.
49630         * m4/open.m4: New file.
49631         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49632         lib/open.c does.
49633         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49634         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49635         macros.
49636         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49637         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49638         REPLACE_OPEN.
49639         * doc/functions/open.texi: Mention the 'open' module.
49640
49641 2007-10-04  Bruno Haible  <bruno@clisp.org>
49642
49643         * modules/ceill-tests: New file.
49644         * tests/test-ceill.c: New file.
49645
49646         * modules/ceill: New file.
49647         * lib/ceill.c: Replace entire file.
49648         * m4/ceill.m4: New file.
49649         * lib/math.in.h (ceill): Replace declaration.
49650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49651         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49652         * doc/functions/ceill.texi: Mention the 'ceill' module.
49653         * modules/mathl (Files): Remove lib/ceill.c.
49654         (Depends-on): Add ceill.
49655
49656 2007-10-04  Bruno Haible  <bruno@clisp.org>
49657
49658         * modules/ceilf-tests: New file.
49659         * tests/test-ceilf.c: New file.
49660
49661         * modules/ceilf: New file.
49662         * lib/ceil.c: New file.
49663         * lib/ceilf.c: New file.
49664         * m4/ceilf.m4: New file.
49665         * lib/math.in.h (ceilf): New declaration.
49666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49667         HAVE_DECL_CEILF.
49668         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49669         HAVE_DECL_CEILF.
49670         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49671
49672 2007-10-04  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/floorl-tests: New file.
49675         * tests/test-floorl.c: New file.
49676
49677         * modules/floorl: New file.
49678         * lib/floorl.c: Replace entire file.
49679         * m4/floorl.m4: New file.
49680         * lib/math.in.h (floorl): Replace declaration.
49681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49682         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49683         * doc/functions/floorl.texi: Mention the 'floorl' module.
49684         * modules/mathl (Files): Remove lib/floorl.c.
49685         (Depends-on): Add floorl.
49686
49687 2007-10-04  Bruno Haible  <bruno@clisp.org>
49688
49689         * modules/floorf-tests: New file.
49690         * tests/test-floorf.c: New file.
49691
49692         * modules/floorf: New file.
49693         * lib/floor.c: New file.
49694         * lib/floorf.c: New file.
49695         * m4/floorf.m4: New file.
49696         * lib/math.in.h (floorf): New declaration.
49697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49698         HAVE_DECL_FLOORF.
49699         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49700         HAVE_DECL_FLOORF.
49701         * doc/functions/floorf.texi: Mention the 'floorf' module.
49702
49703 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49704             Bruno Haible  <bruno@clisp.org>
49705
49706         Advertise for the Git server instead of the CVS server.
49707         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49708         repository instead of the CVS one.
49709         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49710         about all VCS systems generically.
49711         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49712
49713 2007-10-04  Bruno Haible  <bruno@clisp.org>
49714
49715         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49716         means.
49717         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49718
49719 2007-10-04  Bruno Haible  <bruno@clisp.org>
49720
49721         * modules/truncl-tests: New file.
49722         * tests/test-truncl.c: New file.
49723
49724         * modules/truncl: New file.
49725         * lib/truncl.c: New file.
49726         * m4/truncl.m4: New file.
49727         * lib/math.in.h (truncl): New declaration.
49728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49729         HAVE_DECL_TRUNCL.
49730         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49731         HAVE_DECL_TRUNCL.
49732         * doc/functions/truncl.texi: Mention the 'truncl' module.
49733
49734 2007-10-04  Bruno Haible  <bruno@clisp.org>
49735
49736         * modules/truncf-tests: New file.
49737         * tests/test-truncf.c: New file.
49738
49739         * modules/truncf: New file.
49740         * lib/trunc.c: Make paramerizable through USE_* macros.
49741         * lib/truncf.c: New file.
49742         * m4/truncf.m4: New file.
49743         * lib/math.in.h (truncf): New declaration.
49744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49745         HAVE_DECL_TRUNCF.
49746         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49747         HAVE_DECL_TRUNCF.
49748         * doc/functions/truncf.texi: Mention the 'truncf' module.
49749
49750 2007-10-03  Bruno Haible  <bruno@clisp.org>
49751
49752         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49753         augmentation also for tests modules.
49754         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49755         * modules/atexit-tests (Makefile.am): Likewise.
49756         * modules/binary-io-tests (Makefile.am): Likewise.
49757         * modules/c-strcase-tests (Makefile.am): Likewise.
49758         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49759         * modules/canonicalize-tests (Makefile.am): Likewise.
49760         * modules/closein-tests (Makefile.am): Likewise.
49761         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49762         * modules/freadahead-tests (Makefile.am): Likewise.
49763         * modules/fseek-tests (Makefile.am): Likewise.
49764         * modules/fseeko-tests (Makefile.am): Likewise.
49765         * modules/ftell-tests (Makefile.am): Likewise.
49766         * modules/ftello-tests (Makefile.am): Likewise.
49767         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49768         * modules/isnanl-tests (Makefile.am): Likewise.
49769         * modules/lseek-tests (Makefile.am): Likewise.
49770         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49771         * modules/mbscasestr-tests (Makefile.am): Likewise.
49772         * modules/mbschr-tests (Makefile.am): Likewise.
49773         * modules/mbscspn-tests (Makefile.am): Likewise.
49774         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49775         * modules/mbspbrk-tests (Makefile.am): Likewise.
49776         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49777         * modules/mbsrchr-tests (Makefile.am): Likewise.
49778         * modules/mbsspn-tests (Makefile.am): Likewise.
49779         * modules/mbsstr-tests (Makefile.am): Likewise.
49780         * modules/printf-posix-tests (Makefile.am): Likewise.
49781         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49782         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49783         * modules/tsearch-tests (Makefile.am): Likewise.
49784         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49785         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49786         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49787         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49788         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49789         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49790         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49791         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49792         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49793         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49794         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49795         * modules/xstrtol-tests (Makefile.am): Likewise.
49796         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49797         * modules/yesno-tests (Makefile.am): Likewise.
49798
49799 2007-10-03  Bruno Haible  <bruno@clisp.org>
49800
49801         * modules/trunc-tests: New file.
49802         * tests/test-trunc.c: New file.
49803
49804         * modules/trunc: New file.
49805         * lib/trunc.c: New file.
49806         * m4/trunc.m4: New file.
49807         * lib/math.in.h (trunc): New declaration.
49808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49809         HAVE_DECL_TRUNC.
49810         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49811         HAVE_DECL_TRUNC.
49812         * doc/functions/trunc.texi: Mention the 'trunc' module.
49813
49814 2007-10-03  Bruno Haible  <bruno@clisp.org>
49815
49816         * tests/test-fpending.c: New file, mostly copied
49817         from coreutils/lib/t-fpending.c.
49818         * modules/fpending-tests: New file.
49819
49820 2007-10-03  Bruno Haible  <bruno@clisp.org>
49821
49822         Port the stdio extensions to QNX (untested).
49823         * lib/fseterr.c (fseterr): Add support for QNX.
49824         * lib/fbufmode.c (fbufmode): Likewise.
49825         * lib/freadable.c (freadable): Likewise.
49826         * lib/fwritable.c (fwritable): Likewise.
49827         * lib/freading.c (freading): Likewise.
49828         * lib/fwriting.c (fwriting): Likewise.
49829         * lib/freadahead.c (freadahed): Likewise.
49830         * lib/fpurge.c (fpurge): Likewise.
49831         * lib/fseeko.c (rpl_fseeko): Likewise.
49832
49833 2007-10-03  Bruno Haible  <bruno@clisp.org>
49834             Jim Meyering  <jim@meyering.net>
49835             Eric Blake  <ebb9@byu.net>
49836
49837         * doc/relocatable.texi: Use @command instead of @program.
49838
49839 2007-10-02  Jim Meyering  <jim@meyering.net>
49840
49841         Perform one more "_.h" -> ".in.h" substitution.
49842         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49843         instead of unistd_.h here, too.
49844
49845 2007-10-01  Bruno Haible  <bruno@clisp.org>
49846
49847         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49848         Needed for the alloca-opt module.
49849
49850 2007-09-30  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49853         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49854         alloca_.h.
49855         * lib/argz.in.h: Renamed from lib/argz_.h.
49856         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49857         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49858         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49859         byteswap_.h.
49860         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49861         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49862         dirent_.h.
49863         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49864         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49865         fcntl_.h.
49866         * lib/float.in.h: Renamed from lib/float_.h.
49867         * modules/float (Files, Makefile.am): Use float.in.h instead of
49868         float_.h.
49869         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49870         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49871         fnmatch_.h.
49872         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49873         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49874         getopt_.h.
49875         * lib/glob.in.h: Renamed from lib/glob_.h.
49876         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49877         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49878         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49879         iconv_.h.
49880         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49881         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49882         inttypes_.h.
49883         * lib/locale.in.h: Renamed from lib/locale_.h.
49884         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49885         locale_.h.
49886         * lib/math.in.h: Renamed from lib/math_.h.
49887         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49888         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49889         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49890         of netinet_in_.h. Add dependency.
49891         * lib/poll.in.h: Renamed from lib/poll_.h.
49892         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49893         * lib/search.in.h: Renamed from lib/search_.h.
49894         * modules/search (Files, Makefile.am): Use search.in.h instead of
49895         search_.h.
49896         * lib/signal.in.h: Renamed from lib/signal_.h.
49897         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49898         _signal.h.
49899         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49900         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49901         stdbool_.h.
49902         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49903         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49904         stdint_.h.
49905         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49906         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49907         stdio_.h.
49908         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49909         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49910         stdlib_.h.
49911         * lib/string.in.h: Renamed from lib/string_.h.
49912         * modules/string (Files, Makefile.am): Use string.in.h instead of
49913         string_.h.
49914         * doc/gnulib-tool.texi (Initial import): Update.
49915         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49916         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49917         of sys_select_.h. Add dependency.
49918         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49919         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49920         of sys_socket_.h.
49921         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49922         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49923         sys_stat_.h.
49924         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49925         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49926         sys_time_.h.
49927         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49928         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49929         sysexits_.h.
49930         * lib/time.in.h: Renamed from lib/time_.h.
49931         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49932         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49933         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49934         unistd_.h.
49935         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49936         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49937         wchar_.h.
49938         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49939         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49940         wctype_.h.
49941         * build-aux/bootstrap (slurp): Update.
49942         * lib/.cppi-disable: Update.
49943
49944 2007-09-30  Bruno Haible  <bruno@clisp.org>
49945
49946         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49947         Needed on BeOS.
49948
49949 2007-09-30  Bruno Haible  <bruno@clisp.org>
49950
49951         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49952
49953 2007-09-29  Bruno Haible  <bruno@clisp.org>
49954
49955         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49956
49957 2007-09-29  Bruno Haible  <bruno@clisp.org>
49958
49959         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49960         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49961         * build-aux/install-reloc: Compile also areadlink.c.
49962         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49963
49964 2007-09-29  Bruno Haible  <bruno@clisp.org>
49965
49966         * gnulib-tool (func_emit_initmacro_done): Indentation.
49967
49968 2007-09-29  Bruno Haible  <bruno@clisp.org>
49969
49970         * README: Add CVS checkout update instructions.
49971         Info from Bob Proulx <bob@proulx.com>.
49972
49973 2007-09-28  Eric Blake  <ebb9@byu.net>
49974
49975         Provide move-if-change.
49976         * build-aux/move-if-change: New file, based on best practice
49977         rather than any canonical upstream location.
49978
49979 2007-09-28  Jim Meyering  <jim@meyering.net>
49980
49981         Fix canonicalize loop-detection corner case.
49982         Do not attempt to stat the symlink values stored via seen_triple.
49983         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49984         on linux-2.6.18, (but not 2.6.22).
49985         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49986         triple_compare.  The former compares dev,ino,filename, while the latter
49987         would actually stat dirname(filename) when dev and ino were equal.
49988         * lib/hash-triple.c: Install <string.h>.
49989         (STREQ): Define.
49990         (triple_compare_ino_str): New function.
49991         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49992
49993 2007-09-28  Eric Blake  <ebb9@byu.net>
49994
49995         Enforce that AC_REPLACE_FUNCS files exist.
49996         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49997         override check for typos.
49998
49999         Fix test-closein on Solaris 10.
50000         * tests/test-closein.c (main): Don't assume stdin can be inherited
50001         closed on all systems.
50002         * tests/test-closein.sh: Likewise.
50003         Reported by Piotr Tarnowski.
50004
50005 2007-09-28  Jim Meyering  <jim@meyering.net>
50006
50007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50008
50009 2007-09-27  Jim Meyering  <jim@meyering.net>
50010
50011         canonicalize: Avoid a false-positive cycle failure.
50012         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50013         Sort.  Remove cycle-check.
50014         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50015         not cycle-check.h.
50016         (seen_triple): New function.
50017         (canonicalize_filename_mode): Use it instead of cycle-check.
50018         * tests/test-canonicalize.c: Add a test for this bug.
50019         * tests/test-canonicalize.sh: Set up and run the test.
50020
50021         New module, file-set, from coreutils.
50022         * modules/file-set: Define it.
50023         * lib/file-set.c, lib/file-set.h: Implement.
50024
50025         New module, hash-triple, from coreutils.
50026         * modules/hash-triple: Define it.
50027         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50028
50029 2007-09-25  Eric Blake  <ebb9@byu.net>
50030
50031         Fix strerror on Interix.
50032         * lib/string_.h (strerror): Declare replacement.
50033         * doc/functions/strerror.texi (strerror): Document the Interix
50034         shortcoming.
50035         * modules/string (Makefile.am): Support new hooks.
50036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50037         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50038         gl_FUNC_STRERROR_SEPARATE.
50039         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50040         * lib/strerror.c (rpl_strerror): Provide replacement.
50041         * modules/strerror (Depends-on): Add string.
50042         (configure.ac): Detect use of module.
50043         * tests/test-strerror.c: New file.
50044         * modules/strerror-tests: New test module.
50045         * modules/argp (Depends-on): Add strerror.
50046         * modules/error (Depends-on): Likewise.
50047         Reported by Martin Koeppe.
50048
50049 2007-09-24  Bruno Haible  <bruno@clisp.org>
50050
50051         * README: Update git instructions.
50052
50053 2007-09-24  Eric Blake  <ebb9@byu.net>
50054
50055         Revert fpending breakage from 2007-09-08.
50056         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50057         __fpending.c.
50058
50059 2007-09-24  Jim Meyering  <jim@meyering.net>
50060
50061         filenamecat.c: Add a test.
50062         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50063         showing how the function works when DIR is the empty string.
50064
50065 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50066
50067         * tests/test-canonicalize.sh: Turn on executable bit.
50068
50069 2007-09-19  Eric Blake  <ebb9@byu.net>
50070
50071         * README: Update CVS instructions.
50072
50073 2007-09-18  Bruno Haible  <bruno@clisp.org>
50074
50075         * modules/areadlink: New file.
50076         * lib/areadlink.h (areadlink): New declaration.
50077         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50078
50079 2007-09-17  Jim Meyering  <jim@meyering.net>
50080
50081         * lib/savewd.c (ESTALE) [!defined]: Define.
50082         Reported to be required on Interix by Martin Koeppe.
50083
50084 2007-09-17  Bruno Haible  <bruno@clisp.org>
50085
50086         * gnulib-tool (func_version): Use $version.
50087
50088 2007-09-16  Bruno Haible  <bruno@clisp.org>
50089
50090         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50091         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50092         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50093         Reported by Greg Schafer <gschafer@zip.com.au>.
50094
50095 2007-09-15  Bruno Haible  <bruno@clisp.org>
50096
50097         * gnulib-tool (sed): Try a little harder to make bash understand the
50098         alias.
50099         Reported by Bruce Korb <bruce.korb@gmail.com>.
50100
50101 2007-09-13  Eric Blake  <ebb9@byu.net>
50102
50103         * ChangeLog: Remove conflict markers.
50104
50105 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50106
50107         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50108         Reported by Bruno Haible <bruno@clisp.org>.
50109
50110 2007-09-12  Bruno Haible  <bruno@clisp.org>
50111
50112         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50113         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50114         is not defined.
50115
50116 2007-09-12  Eric Blake  <ebb9@byu.net>
50117
50118         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50119         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50120         Autoconf definition.
50121         * modules/euidaccess (Depends-on): Add extensions, for
50122         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50123         * modules/fnmatch (Depends-on): Likewise.
50124         * modules/getaddrinfo (Depends-on): Likewise.
50125         * modules/getdelim (Depends-on): Likewise.
50126         * modules/getline (Depends-on): Likewise.
50127         * modules/getsubopt (Depends-on): Likewise.
50128         * modules/gettext (Depends-on): Likewise.
50129         * modules/group-member (Depends-on): Likewise.
50130         * modules/mbchar (Depends-on): Likewise.
50131         * modules/memmem (Depends-on): Likewise.
50132         * modules/mempcpy (Depends-on): Likewise.
50133         * modules/memrchr (Depends-on): Likewise.
50134         * modules/pagealign_alloc (Depends-on): Likewise.
50135         * modules/readutmp (Depends-on): Likewise.
50136         * modules/stpcpy (Depends-on): Likewise.
50137         * modules/stpncpy (Depends-on): Likewise.
50138         * modules/strchrnul (Depends-on): Likewise.
50139         * modules/strndup (Depends-on): Likewise.
50140         * modules/strsep (Depends-on): Likewise.
50141         * modules/strverscmp (Depends-on): Likewise.
50142         * modules/vasprintf (Depends-on): Likewise.
50143         * modules/wcwidth (Depends-on): Likewise.
50144         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50145         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50146         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50147         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50149         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50150         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50151         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50152         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50153         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50154         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50155         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50157         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50158         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50159         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50160         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50161         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50162         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50163         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50164         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50166         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50167         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50168         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50170         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50171         so that lock.m4 can be used in gettext without extensions module.
50172
50173 2007-09-11  Bruno Haible  <bruno@clisp.org>
50174
50175         * m4/isc-posix.m4: Remove file.
50176         Suggested by Eric Blake.
50177
50178 2007-09-11  Eric Blake  <ebb9@byu.net>
50179
50180         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50181
50182 2007-09-10  Bruno Haible  <bruno@clisp.org>
50183
50184         * posix-modules: Fix typo in error message.
50185         Reported by Matt <mkraai@beckman.com>.
50186
50187 2007-09-09  Bruno Haible  <bruno@clisp.org>
50188
50189         * doc/functions/getdelim.texi: Update list of platforms lacking the
50190         function.
50191         * doc/functions/getline.texi: Likewise.
50192
50193 2007-09-09  Jim Meyering  <jim@meyering.net>
50194
50195         * lib/hash.c (hash_initialize): Detect calloc failure.
50196         Reported by Bruno Haible.
50197
50198 2007-09-09  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50201         malloc or realloc fails.
50202
50203 2007-09-09  Bruno Haible  <bruno@clisp.org>
50204
50205         * modules/getcwd (Depends-on): Add malloc-posix.
50206         * modules/glob (Depends-on): Likewise.
50207         * modules/putenv (Depends-on): Likewise.
50208         * modules/strdup (Depends-on): Likewise.
50209         * modules/getdelim (Depends-on): Add realloc-posix.
50210         * modules/read-file (Depends-on): Likewise.
50211
50212 2007-09-09  Bruno Haible  <bruno@clisp.org>
50213
50214         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50215         (gl_FUNC_MALLOC_POSIX): Require it.
50216         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50217         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50218         * modules/realloc (Files): Add m4/malloc.m4.
50219         * modules/calloc (Files): Likewise.
50220
50221 2007-09-09  Bruno Haible  <bruno@clisp.org>
50222
50223         * modules/malloc-posix: New file.
50224         * modules/malloc (Depends-on): Add malloc-posix.
50225         * lib/malloc.c: Include errno.h.
50226         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50227         and a POSIX-compatible malloc into a single function. Set ENOMEM
50228         when returning NULL.
50229         * m4/malloc.m4: New file.
50230         * doc/functions/malloc.texi: Mention the malloc-posix module.
50231         * lib/stdlib_.h (malloc): New declaration.
50232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50233         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50234         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50235         and HAVE_MALLOC_POSIX.
50236
50237 2007-09-09  Bruno Haible  <bruno@clisp.org>
50238
50239         * modules/realloc-posix: New file.
50240         * modules/realloc (Depends-on): Add realloc-posix.
50241         * lib/realloc.c: Include errno.h.
50242         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50243         and a POSIX-compatible realloc into a single function. Set ENOMEM
50244         when returning NULL.
50245         * m4/realloc.m4: New file.
50246         * doc/functions/realloc.texi: Mention the realloc-posix module.
50247         * lib/stdlib_.h (realloc): New declaration.
50248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50249         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50250         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50251         and HAVE_REALLOC_POSIX.
50252
50253 2007-09-09  Bruno Haible  <bruno@clisp.org>
50254
50255         * modules/calloc-posix: New file.
50256         * modules/calloc (Depends-on): Add calloc-posix.
50257         * lib/calloc.c: Include errno.h.
50258         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50259         and a POSIX-compatible calloc into a single function. Set ENOMEM
50260         when returning NULL.
50261         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50262         * doc/functions/calloc.texi: Mention the calloc-posix module.
50263         * lib/stdlib_.h (calloc): New declaration.
50264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50265         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50266         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50267         and HAVE_CALLOC_POSIX.
50268
50269 2007-09-09  Bruno Haible  <bruno@clisp.org>
50270
50271         Allow for modules to show an arbitrary notice.
50272         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50273         * gnulib-tool: New option --extract-notice.
50274         (func_usage): Document it.
50275         (sed_extract_prog): Update.
50276         (func_get_notice): New function.
50277         (func_modules_notice): New function.
50278         (func_import, func_create_testdir): Invoke it.
50279         Suggested by Jim Meyering.
50280
50281 2007-09-09  Bruno Haible  <bruno@clisp.org>
50282
50283         * gnulib-tool: New options --verbose, --quiet.
50284         (func_usage): Document them.
50285         (verbose): New variable.
50286         (func_execute_command): New function.
50287         (func_import): Don't show the module list and the file list if
50288         $verbose < 0.
50289         (func_create_testdir): Likewise. Use func_execute_command.
50290         (func_create_megatestdir): Use func_execute_command.
50291
50292 2007-09-08  Bruno Haible  <bruno@clisp.org>
50293
50294         * gnulib-tool (func_import): Prefer rsync over wget when available,
50295         for fetching the PO files.
50296
50297 2007-09-08  Bruno Haible  <bruno@clisp.org>
50298
50299         * posix-modules: New file. Portions copied from gnulib-tool.
50300         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50301
50302 2007-09-08  Jim Meyering  <jim@meyering.net>
50303
50304         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50305         * lib/fpending.h: Rename from __fpending.h.
50306         * lib/fpending.c: Rename from __fpending.c.
50307         Include "fpending.h", not "__fpending.h".
50308         * lib/__fpending.h, lib/__fpending.c: Remove files.
50309         * modules/fpending (Files): Reflect new file names.
50310         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50311
50312 2007-09-08  Bruno Haible  <bruno@clisp.org>
50313
50314         * m4/inttypes-h.m4: Remove stub file.
50315
50316 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50317
50318         * doc/headers/stdint.texi: Discuss #include_next issue.
50319
50320 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50321
50322         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50323
50324 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50325
50326         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50327         in variable name.
50328
50329 2007-09-03  Jim Meyering  <jim@meyering.net>
50330
50331         New module: git-version-gen.
50332         * modules/git-version-gen: New file.
50333
50334         Import changes from coreutils for bootstrap script.
50335
50336         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50337
50338         bootstrap: uses rsync to download the .po files
50339         * build-aux/bootstrap (po_download_command_format): New global.
50340         (download_po_files): Use rsync.
50341         (update_po_files): Don't remove .po files after download,
50342         so future rsync runs can take advantage of the copies.
50343
50344         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50345
50346         Solve the unnecessary-.po-file-regeneration problem once and for all.
50347         * build-aux/bootstrap (download_po_files): New function, renamed from
50348         get_translations.  Now, downloads, but doesn't update LINGUAS.
50349         (update_po_files): New function.
50350
50351         bootstrap: Ignore more.
50352         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50353         uniwidth to e.g., lib/.gitignore.
50354         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50355
50356         * build-aux/bootstrap: New setting: vc_ignore.
50357         (insert_sorted_if_absent): Create $file if absent.
50358         Adapt to new, possibly empty, list: $vc_ignore.
50359
50360         bootstrap: generate more ignorable names
50361         * build-aux/bootstrap (slurp): When generating ignorable names,
50362         also map .sin to .sed, .gperf to .c, and .y to .c.
50363
50364 2007-09-03  Jim Meyering  <jim@meyering.net>
50365
50366         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50367         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50368
50369 2007-09-02  Bruno Haible  <bruno@clisp.org>
50370
50371         Fix mis-recognition of 'mcs' on QNX 6.
50372         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50373         output contains the string "Mono".
50374         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50375         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50376
50377 2007-09-01  Bruno Haible  <bruno@clisp.org>
50378
50379         Fix collision between uniwidth/* and linebreak modules.
50380         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50381         u32_width): Remove declarations.
50382         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50383         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50384         streq3, streq2, streq1, streq0): Remove functions.
50385         (STREQ): Remove macro.
50386         (is_cjk_encoding): Remove function.
50387         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50388         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50389         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50390         * NEWS: Document the change.
50391
50392 2007-09-01  Bruno Haible  <bruno@clisp.org>
50393
50394         * lib/streq.h: Add double-inclusion guard.
50395
50396 2007-09-01  Karl Berry  <karl@gnu.org>
50397
50398         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50399
50400 2007-08-28  Jim Meyering  <jim@meyering.net>
50401
50402         Rename mreadlink_with_size to areadlink_with_size.
50403         * NEWS: Document the change.
50404         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50405         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50406         * lib/mreadlink.h: Rename this to...
50407         * lib/areadlink.h: ...this.
50408         * modules/mreadlink-with-size: Rename this to...
50409         * modules/areadlink-with-size: ...this.
50410         * lib/canonicalize.c: Reflect the renaming.
50411         * modules/canonicalize: Likewise.
50412
50413 2007-08-26  Bruno Haible  <bruno@clisp.org>
50414
50415         * gnulib-tool (func_import): When deciding which files to remove,
50416         consider also dangling symbolic links.
50417         Reported by Eric Blake.
50418
50419 2007-08-26  Bruno Haible  <bruno@clisp.org>
50420
50421         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50422
50423 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50424
50425         * lib/readline.c: Don't include getline.h, the prototype is now
50426         found in stdio.h.
50427
50428 2007-08-23  Jim Meyering  <jim@meyering.net>
50429
50430         Getdelim touchup.
50431         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50432         around the funlockfile call, since funlockfile never sets errno.
50433         Don't set errno upon failed realloc.
50434
50435 2007-08-22  Eric Blake  <ebb9@byu.net>
50436
50437         Getline touchups.
50438         * lib/getdelim.c (getdelim): Revert regression that required *n to
50439         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50440         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50441         getdelim, rather than whether implementation is missing.
50442         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50443         * lib/stdio_.h (getline): Also declare if replacement is
50444         required.
50445         * doc/functions/getdelim.texi: New file.
50446         * doc/functions/getline.texi: Likewise.
50447         * doc/gnulib.texi (Function Substitutes): Add new files.
50448         Reported by Bruno Haible.
50449
50450 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50451
50452         * users.txt: Add Guile.
50453
50454 2007-08-22  Eric Blake  <ebb9@byu.net>
50455
50456         * tests/test-getdelim.c (main): Use remove, not unlink.
50457         * tests/test-getline.c (main): Likewise.
50458
50459         Move getline and getdelim into stdio.h, per POSIX 200x.
50460         * modules/getline (Files): Remove getline.h.
50461         (Depends-on): Add stdio.
50462         (configure.ac): Add module indicator.
50463         * modules/getdelim (Files): Remove getdelim.h.
50464         (Depends-on): Add stdio.
50465         (configure.ac): Add module indicator.
50466         * modules/stdio (Makefile.am): Work with new indicators.
50467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50468         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50469         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50470         * lib/getdelim.h: Delete.
50471         * lib/getline.h: Delete.
50472         * lib/stdio_.h (getdelim, getline): Declare.
50473         * modules/getdelim-tests: New module.
50474         * modules/getline-tests: Likewise.
50475         * tests/test-getdelim.c: New file.
50476         * tests/test-getline.c: Likewise.
50477         * NEWS: Document the change.
50478         * lib/getline.c: Update choice of header.
50479         * lib/csharpcomp.c: Likewise.
50480         * lib/getpass.c: Likewise.
50481         * lib/javacomp.c: Likewise.
50482         * lib/javaversion.c: Likewise.
50483         * lib/yesno.c: Likewise.
50484         * lib/getdelim.c: Likewise.
50485         (getdelim): Set errno on failure, and avoid memory leak.
50486
50487 2007-08-19  Bruno Haible  <bruno@clisp.org>
50488
50489         * modules/closein (Depends-on): Add freadahead.
50490         * lib/closein.c: Include freadahead.h.
50491         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50492         is zero.
50493
50494 2007-08-19  Bruno Haible  <bruno@clisp.org>
50495
50496         * modules/freadahead-tests: New file.
50497         * tests/test-freadahead.sh: New file.
50498         * tests/test-freadahead.c: New file.
50499
50500         * modules/freadahead: New file.
50501         * lib/freadahead.h: New file.
50502         * lib/freadahead.c: New file.
50503         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50504         fbufmode, fpurge, freadable, fwritable.
50505
50506 2007-08-19  Eric Blake  <ebb9@byu.net>
50507
50508         Test yesno in combination with closein.
50509         * lib/yesno.c (yesno): Document use of stdin.
50510         * modules/yesno-tests (Files): New module.
50511         * tests/test-yesno.c (main): New file.
50512         * tests/test-yesno.sh: Likewise.
50513
50514 2007-08-19  Bruno Haible  <bruno@clisp.org>
50515
50516         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50517         * lib/fseeko.c (rpl_fseeko): Likewise.
50518         * lib/fseterr.c (fseterr): Likewise.
50519
50520 2007-08-19  Bruno Haible  <bruno@clisp.org>
50521
50522         * tests/test-lseek.c (main): Disable a test for BeOS.
50523         * doc/functions/lseek.texi: Document the BeOS bug.
50524
50525 2007-08-19  Bruno Haible  <bruno@clisp.org>
50526             Eric Blake  <ebb9@byu.net>
50527
50528         * lib/lseek.c: Include <sys/stat.h>.
50529         (rpl_lseek): Add workaround code also for Unix platforms.
50530         Needed for BeOS.
50531         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50532         * doc/functions/lseek.texi: Document BeOS definiency.
50533
50534 2007-08-18  Bruno Haible  <bruno@clisp.org>
50535
50536         * modules/fstrcmp-tests: New file.
50537         * tests/test-fstrcmp.c: New file.
50538
50539 2007-08-18  Bruno Haible  <bruno@clisp.org>
50540
50541         * modules/fstrcmp: New file, from GNU gettext with modifications.
50542         * lib/fstrcmp.h: New file, from GNU gettext.
50543         * lib/fstrcmp.c: New file, from GNU gettext.
50544         * MODULES.html.sh (String handling): Add fstrcmp.
50545
50546 2007-08-18  Bruno Haible  <bruno@clisp.org>
50547
50548         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50549         'bool'.
50550         (diag, compareseq): Remove const from the ctxt argument.
50551         (USE_HEURISTIC): Undefine at the end.
50552
50553 2007-08-18  Jim Meyering  <jim@meyering.net>
50554
50555         New file: lib/idcache.h
50556         * NEWS: Mention the addition.
50557         * modules/idcache (Files): Add lib/idcache.h
50558         * lib/idcache.c: Include "idcache.h".
50559         Don't include <sys/types.h>.
50560         Add a FIXME comment.
50561         Move file-scoped "static" declarations to the top.
50562         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50563
50564 2007-08-17  Bruno Haible  <bruno@clisp.org>
50565         and Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         * MODULES.html.sh: Add diffseq.
50568         * modules/diffseq: New file.
50569         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50570         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50571
50572 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50573
50574         Import changes from coreutils for bootstrap script.
50575
50576         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50577
50578         * build-aux/bootstrap (slurp): Work even in environments where
50579         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50580         current code does not slurp files whose names start with ".", and
50581         this looks like it might be a troublesome area.
50582
50583         2007-07-11  Jim Meyering  <jim@meyering.net>
50584
50585         If there's a GPL vN copyright comment, require that N == 3.
50586
50587         2007-07-08  Jim Meyering  <jim@meyering.net>
50588
50589         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50590         * build-aux/bootstrap (mam_template): Move definition out of loop.
50591
50592         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50593
50594         * build-aux/bootstrap (symlink_to_dir): Rename function from
50595         symlink_to_gnulib.  Add a directory parameter.  Update all
50596         callers.
50597         (cp_mark_as_generated): Also check for -- and link to -- files in
50598         gl/.
50599
50600         2007-07-08  Jim Meyering  <jim@meyering.net>
50601
50602         Adapt to deeper hierarchy in gnulib.
50603         * build-aux/bootstrap (symlink_to_dir): If the destination
50604         directory doesn't exist, create it. This is required at least for
50605         "lib/uniwidth/cjk.h".
50606
50607         2007-05-15  Jim Meyering  <jim@meyering.net>
50608
50609         * build-aux/bootstrap: Now that generated Makefile.am files
50610         are no longer under version control, they must be created at
50611         bootstrap time.
50612
50613 2007-08-14  Ben Pfaff  <blp@gnu.org>
50614
50615         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50616
50617 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50618
50619         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50620         given the changes below.
50621         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50622         even on hosts that have padding bits beyond the supported 64.
50623
50624 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50625
50626         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50627         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50628         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50629         depends on it.
50630         (xstrtol_error): Remove.
50631         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50632         but with a different signature.
50633         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50634         * lib/xstrtol-error.c: Include exitfail.h.
50635         (xstrtol_fatal): New function, with a different signature from the
50636         old xstrtol_error, so that the caller need not worry about passing
50637         in an exit status, or about storage management of the option argument.
50638         (xstrtol_error): Now a static function.  Redo signature to
50639         implement xstrtol_fatal.  Output the correct number of hyphens in
50640         front of the option so that the caller need not worry about
50641         storage management.
50642         (N_): New macro.
50643         (_): Remove; not used now.
50644         * modules/xstrtol: Depend on getopt.
50645         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50646         of old STRTOL_FATAL_ERROR macro.
50647         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50648         of test program.
50649         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50650         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50651
50652 2007-08-08  Eric Blake  <ebb9@byu.net>
50653
50654         * lib/xstrtol-error.c: Add missing include.
50655
50656         Move xstrtol messages into gnulib domain, when --pobase is used.
50657         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50658         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50659         * modules/xstrtol (Files): Distribute new file.
50660         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50661         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50662         * tests/test-xstrtol.c: ...into new file.
50663         * tests/test-xstrtoul.c: Also test xstrtoul.
50664         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50665         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50666         * tests/test-xstrtol.sh: Drive the tests.
50667         * tests/test-xstrtoimax.sh: Likewise.
50668         * tests/test-xstrtoumax.sh: Likewise.
50669         * modules/xstrtol-tests: New module.
50670         * modules/xstrtoimax-tests: Likewise.
50671         * modules/xstrtoumax-tests: Likewise.
50672
50673 2007-08-08  Jim Meyering  <jim@meyering.net>
50674
50675         New function: mfile_name_concat.
50676         * lib/filenamecat.c (mfile_name_concat): New function, just like
50677         file_name_concat, but return NULL upon failure rather than exiting
50678         with a diagnostic.
50679         * lib/filenamecat.h: Declare it.
50680
50681 2007-08-07  Bruno Haible  <bruno@clisp.org>
50682
50683         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50684         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50685         warning from gcc.
50686         Reported by Eric Blake.
50687
50688 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50689
50690         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50691         * modules/crypto/arcfour (License): Likewise.
50692         * modules/crypto/des-tests (License): Likewise.
50693         * modules/crypto/gc-arctwo-tests (License): Likewise.
50694         * modules/crypto/gc-des-tests (License): Likewise.
50695         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50696         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50697         * modules/crypto/gc-md2-tests (License): Likewise.
50698         * modules/crypto/gc-md4-tests (License): Likewise.
50699         * modules/crypto/gc-md5-tests (License): Likewise.
50700         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50701         * modules/crypto/gc-rijndael-tests (License): Likewise.
50702         * modules/crypto/gc-sha1-tests (License): Likewise.
50703         * modules/crypto/gc-tests (License): Likewise.
50704         * modules/crypto/hmac-md5 (License): Likewise.
50705         * modules/crypto/hmac-sha1 (License): Likewise.
50706         * modules/crypto/md2-tests (License): Likewise.
50707         * modules/crypto/md4-tests (License): Likewise.
50708         * modules/crypto/md5 (License): Likewise.
50709         * modules/crypto/rijndael (License): Likewise.
50710         * modules/crypto/sha1 (License): Likewise.
50711         * modules/memxor (License): Likewise.
50712
50713 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50714         and Bruno Haible  <bruno@clisp.org>
50715
50716         * NEWS: Describe interface changes to human, xstrtol.
50717         * lib/human.h: Include <xstrtol.h>.
50718         (human_options): Return enum strtol_error, not int.  Remove
50719         bool arg; take int * instead.
50720         * lib/human.c: Don't include "gettext.h".
50721         (_): Remove; no longer used.
50722         Don't include <xstrtol.h>, since human.h does it.
50723         (human_options): Adjust to abovementioned interface changes.
50724         Do not report error to stderr; that's now the caller's
50725         responsibility.
50726         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50727         interface change.
50728         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50729         Str, Argument_type_string.  All uses changed.  Put " argument"
50730         in diagnostics to make them clearer.  Change wording of suffix
50731         message for clarity.
50732         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50733         Argument_type_string.
50734         (STRTOL_FATAL_WARN): Remove; no longer used.
50735         * modules/human (Depends-on): Remove gettext-h.
50736
50737 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50738
50739         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50740
50741 2007-07-31  Bruno Haible  <bruno@clisp.org>
50742
50743         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50744         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50745         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50746
50747 2007-07-31  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50750         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50751
50752 2007-07-30  Bruno Haible  <bruno@clisp.org>
50753
50754         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50755         * modules/c-ctype (License): Likewise.
50756         * modules/c-strcase (License): Likewise.
50757         * modules/check-version (License): Likewise.
50758         * modules/iconv (License): Likewise.
50759         * modules/iconv_open (License): Likewise.
50760         * modules/read-file (License): Likewise.
50761         * modules/striconv (License): Likewise.
50762         * modules/strverscmp (License): Likewise.
50763         * modules/vasprintf (License): Likewise.
50764         * modules/crypto/des (License): Likewise.
50765         * modules/crypto/gc (License): Likewise.
50766         * modules/crypto/gc-arcfour (License): Likewise.
50767         * modules/crypto/gc-arctwo (License): Likewise.
50768         * modules/crypto/gc-des (License): Likewise.
50769         * modules/crypto/gc-hmac-md5 (License): Likewise.
50770         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50771         * modules/crypto/gc-md2 (License): Likewise.
50772         * modules/crypto/gc-md4 (License): Likewise.
50773         * modules/crypto/gc-md5 (License): Likewise.
50774         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50775         * modules/crypto/gc-random (License): Likewise.
50776         * modules/crypto/gc-rijndael (License): Likewise.
50777         * modules/crypto/gc-sha1 (License): Likewise.
50778         * modules/crypto/md2 (License): Likewise.
50779         * modules/crypto/md4 (License): Likewise.
50780
50781 2007-07-30  Jim Meyering  <jim@meyering.net>
50782
50783         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50784         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50785         it has valid stat data.  This bug would cause du not to count the
50786         sizes of inaccessible directories.
50787         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50788         in <http://bugzilla.redhat.com/250077>.
50789
50790 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50791             Bruno Haible  <bruno@clisp.org>
50792
50793         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50794         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50795         #include_next, gives a diagnostic about it, but reports no error in
50796         the exit code.
50797         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50798
50799 2007-07-24  Ben Pfaff  <blp@gnu.org>
50800
50801         Improve name: "count-one-bits" is better than "popcount".
50802         * MODULES.html.sh: Update name.
50803         * lib/popcount.h: Renamed lib/count-one-bits.h.
50804         (popcount): Renamed count_one_bits.
50805         (popcountl): Renamed count_one_bits_l.
50806         (popcountll): Renamed count_one_bits_ll.
50807         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50808         * modules/popcount: Renamed module/count-one-bits.
50809         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50810         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50811
50812 2007-07-23  Ben Pfaff  <blp@gnu.org>
50813
50814         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50815         better code generation, and add U to large constants to avoid
50816         warnings, in non-GCC case.
50817         Suggested by Bruno Haible.
50818
50819 2007-07-23  Ben Pfaff  <blp@gnu.org>
50820
50821         * lib/popcount.h: Use verify_true instead of if...abort.
50822         * modules/popcount: Depend on verify module.
50823         Suggested by Jim Meyering.
50824
50825 2007-07-23  Bruno Haible  <bruno@clisp.org>
50826
50827         * gnulib-tool (func_import): Create a .cvsignore file also when the
50828         directory is not yet in CVS but the toplevel directory is. When
50829         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50830         Reported by Karl Berry.
50831
50832 2007-07-22  Ben Pfaff  <blp@gnu.org>
50833
50834         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50835         case.
50836         Suggested by Eric Blake.
50837
50838 2007-07-22  Ben Pfaff  <blp@gnu.org>
50839
50840         New module: popcount.
50841         * MODULES.html.sh: Add popcount.
50842         * modules/popcount: New file.
50843         * modules/popcount-tests: New file.
50844         * tests/test-popcount.c: New file.
50845         * lib/popcount.h: New file.
50846         * m4/popcount.m4: New file.
50847
50848 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50849
50850         * build-aux/announce-gen: Update to GPLv3.
50851
50852         * build-aux/config.guess: Update from config.
50853
50854 2007-07-21  Bruno Haible  <bruno@clisp.org>
50855
50856         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50857         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50858
50859 2007-07-20  Jim Meyering  <jim@meyering.net>
50860
50861         * check-module: Diagnose a self-dependency.
50862
50863 2007-07-19  Bruno Haible  <bruno@clisp.org>
50864
50865         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50866         empty.
50867         Reported by Eric Blake.
50868
50869 2007-07-18  Bruno Haible  <bruno@clisp.org>
50870
50871         * gnulib-tool: New options --po-base, --po-domain.
50872         (func_usage): Document them.
50873         (pobase, po_domain): New variables.
50874         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50875         DEFAULT_TEXT_DOMAIN.
50876         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50877         (func_import): Consider pobase and po_domain. Create a po/ directory.
50878         (func_create_testdir): Set pobase and po_domain to empty.
50879         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50880         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50881
50882 2007-07-18  Bruno Haible  <bruno@clisp.org>
50883
50884         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50885         EXTRA_DIST augmentation for files in build-aux/.
50886
50887 2007-07-16  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50890         * modules/getdelim (License): Likewise.
50891
50892 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50893
50894         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50895         * modules/d-type (License): Likewise.
50896         * modules/extensions (License): Likewise.
50897         * modules/fnmatch (License): Likewise.
50898         * modules/fseeko (License): Likewise.
50899         * modules/getaddrinfo (License): Likewise.
50900         * modules/getline (License): Likewise.
50901         * modules/getlogin_r (License): Likewise.
50902         * modules/getpass (License): Likewise.
50903         * modules/gettimeofday (License): Likewise.
50904         * modules/glob (License): Likewise.
50905         * modules/inet_ntop (License): Likewise.
50906         * modules/malloc (License): Likewise.
50907         * modules/malloca (License): Likewise.
50908         * modules/memmem (License): Likewise.
50909         * modules/mempcpy (License): Likewise.
50910         * modules/memset (License): Likewise.
50911         * modules/minmax (License): Likewise.
50912         * modules/mktime (License): Likewise.
50913         * modules/netinet_in (License): Likewise.
50914         * modules/pathmax (License): Likewise.
50915         * modules/poll (License): Likewise.
50916         * modules/regex (License): Likewise.
50917         * modules/snprintf (License): Likewise.
50918         * modules/stdbool (License): Likewise.
50919         * modules/stdint (License): Likewise.
50920         * modules/stdio (License): Likewise.
50921         * modules/strcase (License): Likewise.
50922         * modules/strcasestr (License): Likewise.
50923         * modules/strdup (License): Likewise.
50924         * modules/string (License): Likewise.
50925         * modules/strndup (License): Likewise.
50926         * modules/strnlen (License): Likewise.
50927         * modules/strpbrk (License): Likewise.
50928         * modules/strptime (License): Likewise.
50929         * modules/strsep (License): Likewise.
50930         * modules/sys_select (License): Likewise.
50931         * modules/sys_socket (License): Likewise.
50932         * modules/sys_stat (License): Likewise.
50933         * modules/sys_time (License): Likewise.
50934         * modules/time (License): Likewise.
50935         * modules/time_r (License): Likewise.
50936         * modules/timegm (License): Likewise.
50937         * modules/unistd (License): Likewise.
50938         * modules/vsnprintf (License): Likewise.
50939         * modules/wctype (License): Likewise.
50940
50941 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50942
50943         * modules/argz (License): LGPLv2+.
50944
50945 2007-07-15  Karl Berry  <karl@gnu.org>
50946
50947         * doc/gnulib.texi: revise node structure per new fdl.texi.
50948
50949 2007-07-14  Bruno Haible  <bruno@clisp.org>
50950
50951         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50952         the output file.
50953         * lib/uniname/uninames.h: Regenerated.
50954
50955 2007-07-14  Karl Berry  <karl@gnu.org>
50956
50957         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50958         omitting sectioning and index commands.
50959
50960 2007-07-13  Bruno Haible  <bruno@clisp.org>
50961
50962         New gnulib-tool option --more-symlinks.
50963         * gnulib-tool (func_usage): Document --more-symlinks.
50964         (do_copyrights): New variable.
50965         Recognize option --more-symlinks.
50966         (func_import): Don't add a copyright notice transform to
50967         sed_transform_lib_file if do_copyrights is empty.
50968
50969 2007-07-13  Bruno Haible  <bruno@clisp.org>
50970
50971         * lib/vasnprintf.c (decimal_point_char): Define also if
50972         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50973         && !NEED_PRINTF_DIRECTIVE_A.
50974         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50975         Gary V. Vaughan <gary@gnu.org>.
50976
50977 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * lib/inttypes_.h: Undo previous change, since it was fixed
50980         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50981
50982 2007-07-13  Bruno Haible  <bruno@clisp.org>
50983
50984         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50985         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50986
50987 2007-07-13  Jim Meyering  <jim@meyering.net>
50988
50989         df: Don't fail for Tru64's "file-on-file mount".
50990         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50991         so we fall through and use statfs instead.  Details here:
50992         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50993         Reported by Albert Chin.
50994
50995 2007-07-13  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50998         * modules/configmake (License): Likewise.
50999         * modules/gettext (License): Likewise.
51000         * modules/gettext-h (License): Likewise.
51001         * modules/include_next (License): Likewise.
51002         * modules/link-warning (License): Likewise.
51003         * modules/localcharset (License): Likewise.
51004         * modules/localename (License): Likewise.
51005         * modules/lock (License): Likewise.
51006         * modules/relocatable-lib-lgpl (License): Likewise.
51007         * modules/size_max (License): Likewise.
51008         * modules/vasnprintf (License): Likewise.
51009         * modules/wchar (License): Likewise.
51010         * modules/xsize (License): Likewise.
51011
51012 2007-07-13  Bruno Haible  <bruno@clisp.org>
51013
51014         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51015         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51016
51017 2007-07-12  Bruno Haible  <bruno@clisp.org>
51018
51019         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51020         in the modules files.
51021
51022 2007-07-11  Karl Berry  <karl@gnu.org>
51023
51024         * MODULES.html.sh (func_module): use
51025          sed -e '\|^'"${includefile}"'$|d'
51026          instead of /.../d, to avoid errors on $includefile's containing /.
51027
51028 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51029
51030         * gnulib-tool (func_import): Avoid duplication of --avoid
51031         statements
51032         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51033         names to `_' in variable names.
51034
51035 2007-07-10  Eric Blake  <ebb9@byu.net>
51036
51037         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51038         * NEWS: Document this change.
51039
51040 2007-07-08  Bruno Haible  <bruno@clisp.org>
51041
51042         Update to Unicode 5.0.
51043         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51044         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51045         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51046         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51047         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51048         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51049         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51050         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51051         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51052         U+10A3F, U+1D242..U+1D244.
51053         (nonspacing_table_ind): Update.
51054         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51055         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51056
51057 2007-07-08  Bruno Haible  <bruno@clisp.org>
51058
51059         Update to Unicode 5.0.
51060         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51061         code transform. Extend the name index field of unicode_name_to_code and
51062         unicode_code_to_name from 16 to 24 bits.
51063         * lib/uniname/uniname.c (unicode_character_name,
51064         unicode_name_character): Add the range 0x12xxx to the code transform.
51065         * lib/uniname/uninames.h: Regenerated.
51066         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51067
51068 2007-07-07  Bruno Haible  <bruno@clisp.org>
51069
51070         * modules/wcwidth-tests: New file.
51071         * tests/test-wcwidth.c: New file.
51072
51073         Work around MacOS X wcwidth() bug.
51074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51075         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51076         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51077         original wcwidth in non-UTF-8 locales.
51078         * modules/wcwidth (Depends-on): Add localcharset, streq,
51079         uniwidth/width.
51080         * doc/functions/wcwidth.texi: Update.
51081
51082 2007-07-07  Bruno Haible  <bruno@clisp.org>
51083
51084         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51085         (wcwidth): New declaration.
51086         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51087         macros.
51088         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51089         here. Prepare for creating <wchar.h> unconditionally.
51090         * modules/wchar (Depends-on): Add link-warning.
51091         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51092         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51093         * lib/wcwidth.h: Remove file.
51094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51095         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51096         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51097         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51098         (Include): Replace wcwidth.h with <wchar.h>.
51099         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51100         * lib/mbchar.h: Don't include wcwidth.h.
51101         * lib/mbswidth.c: Likewise.
51102         * NEWS: Mention the change.
51103
51104 2007-07-07  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51107         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51108         definition with an external declaration.
51109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51110         defined as a function. Remove AC_C_INLINE requirement.
51111         * modules/wcwidth (Files): Add lib/wcwidth.c.
51112         (Makefile.am): Remove redundant statement.
51113
51114 2007-07-07  Bruno Haible  <bruno@clisp.org>
51115
51116         * MODULES.html.sh (Unicode string functions): Add the new modules.
51117
51118         * tests/uniwidth/test-u32-strwidth.c: New file.
51119         * modules/uniwidth/u32-strwidth-tests: New file.
51120
51121         * lib/uniwidth/u32-strwidth.c: New file.
51122         * modules/uniwidth/u32-strwidth: New file.
51123
51124         * tests/uniwidth/test-u16-strwidth.c: New file.
51125         * modules/uniwidth/u16-strwidth-tests: New file.
51126
51127         * lib/uniwidth/u16-strwidth.c: New file.
51128         * modules/uniwidth/u16-strwidth: New file.
51129
51130         * tests/uniwidth/test-u8-strwidth.c: New file.
51131         * modules/uniwidth/u8-strwidth-tests: New file.
51132
51133         * lib/uniwidth/u8-strwidth.c: New file.
51134         * modules/uniwidth/u8-strwidth: New file.
51135
51136         * tests/uniwidth/test-u32-width.c: New file.
51137         * modules/uniwidth/u32-width-tests: New file.
51138
51139         * lib/uniwidth/u32-width.c: New file.
51140         * modules/uniwidth/u32-width: New file.
51141
51142         * tests/uniwidth/test-u16-width.c: New file.
51143         * modules/uniwidth/u16-width-tests: New file.
51144
51145         * lib/uniwidth/u16-width.c: New file.
51146         * modules/uniwidth/u16-width: New file.
51147
51148         * tests/uniwidth/test-u8-width.c: New file.
51149         * modules/uniwidth/u8-width-tests: New file.
51150
51151         * lib/uniwidth/u8-width.c: New file.
51152         * modules/uniwidth/u8-width: New file.
51153
51154         * tests/uniwidth/test-uc_width.c: New file.
51155         * modules/uniwidth/width-tests: New file.
51156
51157         * lib/uniwidth/width.c: New file, from GNU libiconv.
51158         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51159         * modules/uniwidth/width: New file.
51160
51161         * lib/uniwidth.h: New file, from GNU libiconv.
51162         * modules/uniwidth/base: New file.
51163
51164 2007-07-07  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/uniname.h: New file, from GNU gettext.
51167         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51168         * lib/uniname/uninames.h: New file, from GNU gettext.
51169         * lib/uniname/uniname.c: New file, from GNU gettext.
51170         * tests/uniname/test-uninames.sh: New file.
51171         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51172         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51173         * modules/uniname/base: New file.
51174         * modules/uniname/uniname: New file.
51175         * modules/uniname/uniname-tests: New file.
51176         * MODULES.html.sh (Unicode string functions): Add the new modules.
51177
51178 2007-07-06  Bruno Haible  <bruno@clisp.org>
51179
51180         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51181
51182 2007-07-06  Bruno Haible  <bruno@clisp.org>
51183
51184         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51185         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51186         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51187         include <sys/time.h>.
51188         Reported by Eric Blake.
51189
51190 2007-07-06  Eric Blake  <ebb9@byu.net>
51191
51192         Fix testing canonicalize on cygwin.
51193         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51194         Revert patch from 2007-06-19.
51195         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51196         canonicalize module is also in use.
51197         * tests/test-canonicalize.c: New file.
51198         * tests/test-canonicalize.sh: Likewise.
51199         * modules/canonicalize-tests: Likewise.
51200
51201 2007-07-06  Jim Meyering  <jim@meyering.net>
51202
51203         * lib/getugroups.c (getugroups): Detect getgrent failure.
51204         Adjust comment to reflect reality: this function may return -1.
51205
51206 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51207
51208         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51209         the new TP address.
51210         (usage): Fix typo
51211         (gnulib_mk): New variable.
51212
51213 2007-07-05  Jim Meyering  <jim@meyering.net>
51214
51215         Don't let endgrent clobber errno, no matter how improbable.
51216         * lib/getugroups.c (getugroups): Save and restore errno around
51217         endgrent call.
51218
51219         Close the group DB even when failing with 2^31 or more members.
51220         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51221
51222 2007-07-04  Jim Meyering  <jim@meyering.net>
51223
51224         * lib/getugroups.h: New file.
51225         * lib/getugroups.c: Include "getugroups.h".
51226         Remove uses of "register" keyword.
51227         Move local variable, "cp", down into scope where used.
51228         Give "username" parameter the "const" attribute.
51229         * modules/getugroups (Files): Add lib/getugroups.h
51230
51231 2007-07-04  Karl Berry  <karl@gnu.org>
51232
51233         * MODULES.html.sh (func_all_modules): Complete rename of
51234         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51235
51236 2007-07-02  Bruno Haible  <bruno@clisp.org>
51237
51238         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51239         mode, when inttypes.h comes from gnulib.
51240         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51241
51242 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51243
51244         * NEWS: Mention lgpl module name change.
51245
51246         * modules/lgpl-2.1: Renamed from lgpl.
51247
51248         * NEWS: Mention gpl module name change.
51249
51250         * modules/gpl-3.0: New file, based on gpl-2.0.
51251
51252         * modules/gpl-2.0: Renamed from gpl.
51253
51254         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51255         doc/gpl-2.0.texi.
51256
51257 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51260         #define __STDC_LIMIT_MACROS temporarily while including
51261         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51262         Problem reported by Joel E. Denny in
51263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51264
51265 2007-07-01  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/unistdio.h: New file.
51268         * lib/unistdio/u-asnprintf.h: New file.
51269         * lib/unistdio/u-asprintf.h: New file.
51270         * lib/unistdio/u-printf-args.c: New file.
51271         * lib/unistdio/u-printf-args.h: New file.
51272         * lib/unistdio/u-printf-parse.h: New file.
51273         * lib/unistdio/u-snprintf.h: New file.
51274         * lib/unistdio/u-sprintf.h: New file.
51275         * lib/unistdio/u-vasprintf.h: New file.
51276         * lib/unistdio/u-vsnprintf.h: New file.
51277         * lib/unistdio/u-vsprintf.h: New file.
51278         * lib/unistdio/ulc-asnprintf.c: New file.
51279         * lib/unistdio/ulc-asprintf.c: New file.
51280         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51281         * lib/unistdio/ulc-printf-parse.c: New file.
51282         * lib/unistdio/ulc-snprintf.c: New file.
51283         * lib/unistdio/ulc-sprintf.c: New file.
51284         * lib/unistdio/ulc-vasnprintf.c: New file.
51285         * lib/unistdio/ulc-vasprintf.c: New file.
51286         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51287         * lib/unistdio/ulc-vsnprintf.c: New file.
51288         * lib/unistdio/ulc-vsprintf.c: New file.
51289         * lib/unistdio/u8-asnprintf.c: New file.
51290         * lib/unistdio/u8-asprintf.c: New file.
51291         * lib/unistdio/u8-printf-parse.c: New file.
51292         * lib/unistdio/u8-snprintf.c: New file.
51293         * lib/unistdio/u8-sprintf.c: New file.
51294         * lib/unistdio/u8-vasnprintf.c: New file.
51295         * lib/unistdio/u8-vasprintf.c: New file.
51296         * lib/unistdio/u8-vsnprintf.c: New file.
51297         * lib/unistdio/u8-vsprintf.c: New file.
51298         * lib/unistdio/u8-u8-asnprintf.c: New file.
51299         * lib/unistdio/u8-u8-asprintf.c: New file.
51300         * lib/unistdio/u8-u8-snprintf.c: New file.
51301         * lib/unistdio/u8-u8-sprintf.c: New file.
51302         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51303         * lib/unistdio/u8-u8-vasprintf.c: New file.
51304         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51305         * lib/unistdio/u8-u8-vsprintf.c: New file.
51306         * lib/unistdio/u16-asnprintf.c: New file.
51307         * lib/unistdio/u16-asprintf.c: New file.
51308         * lib/unistdio/u16-printf-parse.c: New file.
51309         * lib/unistdio/u16-snprintf.c: New file.
51310         * lib/unistdio/u16-sprintf.c: New file.
51311         * lib/unistdio/u16-vasnprintf.c: New file.
51312         * lib/unistdio/u16-vasprintf.c: New file.
51313         * lib/unistdio/u16-vsnprintf.c: New file.
51314         * lib/unistdio/u16-vsprintf.c: New file.
51315         * lib/unistdio/u16-u16-asnprintf.c: New file.
51316         * lib/unistdio/u16-u16-asprintf.c: New file.
51317         * lib/unistdio/u16-u16-snprintf.c: New file.
51318         * lib/unistdio/u16-u16-sprintf.c: New file.
51319         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51320         * lib/unistdio/u16-u16-vasprintf.c: New file.
51321         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51322         * lib/unistdio/u16-u16-vsprintf.c: New file.
51323         * lib/unistdio/u32-asnprintf.c: New file.
51324         * lib/unistdio/u32-asprintf.c: New file.
51325         * lib/unistdio/u32-printf-parse.c: New file.
51326         * lib/unistdio/u32-snprintf.c: New file.
51327         * lib/unistdio/u32-sprintf.c: New file.
51328         * lib/unistdio/u32-vasnprintf.c: New file.
51329         * lib/unistdio/u32-vasprintf.c: New file.
51330         * lib/unistdio/u32-vsnprintf.c: New file.
51331         * lib/unistdio/u32-vsprintf.c: New file.
51332         * lib/unistdio/u32-u32-asnprintf.c: New file.
51333         * lib/unistdio/u32-u32-asprintf.c: New file.
51334         * lib/unistdio/u32-u32-snprintf.c: New file.
51335         * lib/unistdio/u32-u32-sprintf.c: New file.
51336         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51337         * lib/unistdio/u32-u32-vasprintf.c: New file.
51338         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51339         * lib/unistdio/u32-u32-vsprintf.c: New file.
51340         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51341         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51342         * tests/unistdio/test-ulc-printf1.h: New file.
51343         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51344         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51345         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51346         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51347         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51348         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51349         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51350         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51351         * tests/unistdio/test-u8-asnprintf1.c: New file.
51352         * tests/unistdio/test-u8-asnprintf1.h: New file.
51353         * tests/unistdio/test-u8-printf1.h: New file.
51354         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51355         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51356         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51357         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51358         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51359         * tests/unistdio/test-u8-vasprintf1.c: New file.
51360         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51361         * tests/unistdio/test-u8-vsprintf1.c: New file.
51362         * tests/unistdio/test-u16-asnprintf1.c: New file.
51363         * tests/unistdio/test-u16-asnprintf1.h: New file.
51364         * tests/unistdio/test-u16-printf1.h: New file.
51365         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51366         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51367         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51368         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51369         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51370         * tests/unistdio/test-u16-vasprintf1.c: New file.
51371         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51372         * tests/unistdio/test-u16-vsprintf1.c: New file.
51373         * tests/unistdio/test-u32-asnprintf1.c: New file.
51374         * tests/unistdio/test-u32-asnprintf1.h: New file.
51375         * tests/unistdio/test-u32-printf1.h: New file.
51376         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51377         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51378         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51379         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51380         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51381         * tests/unistdio/test-u32-vasprintf1.c: New file.
51382         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51383         * tests/unistdio/test-u32-vsprintf1.c: New file.
51384         * modules/unistdio/base: New file.
51385         * modules/unistdio/u-printf-args: New file.
51386         * modules/unistdio/ulc-asnprintf: New file.
51387         * modules/unistdio/ulc-asprintf: New file.
51388         * modules/unistdio/ulc-fprintf: New file.
51389         * modules/unistdio/ulc-printf-parse: New file.
51390         * modules/unistdio/ulc-snprintf: New file.
51391         * modules/unistdio/ulc-sprintf: New file.
51392         * modules/unistdio/ulc-vasnprintf: New file.
51393         * modules/unistdio/ulc-vasprintf: New file.
51394         * modules/unistdio/ulc-vfprintf: New file.
51395         * modules/unistdio/ulc-vsnprintf: New file.
51396         * modules/unistdio/ulc-vsprintf: New file.
51397         * modules/unistdio/u8-asnprintf: New file.
51398         * modules/unistdio/u8-asprintf: New file.
51399         * modules/unistdio/u8-printf-parse: New file.
51400         * modules/unistdio/u8-snprintf: New file.
51401         * modules/unistdio/u8-sprintf: New file.
51402         * modules/unistdio/u8-vasnprintf: New file.
51403         * modules/unistdio/u8-vasprintf: New file.
51404         * modules/unistdio/u8-vsnprintf: New file.
51405         * modules/unistdio/u8-vsprintf: New file.
51406         * modules/unistdio/u8-u8-asnprintf: New file.
51407         * modules/unistdio/u8-u8-asprintf: New file.
51408         * modules/unistdio/u8-u8-snprintf: New file.
51409         * modules/unistdio/u8-u8-sprintf: New file.
51410         * modules/unistdio/u8-u8-vasnprintf: New file.
51411         * modules/unistdio/u8-u8-vasprintf: New file.
51412         * modules/unistdio/u8-u8-vsnprintf: New file.
51413         * modules/unistdio/u8-u8-vsprintf: New file.
51414         * modules/unistdio/u16-asnprintf: New file.
51415         * modules/unistdio/u16-asprintf: New file.
51416         * modules/unistdio/u16-printf-parse: New file.
51417         * modules/unistdio/u16-snprintf: New file.
51418         * modules/unistdio/u16-sprintf: New file.
51419         * modules/unistdio/u16-vasnprintf: New file.
51420         * modules/unistdio/u16-vasprintf: New file.
51421         * modules/unistdio/u16-vsnprintf: New file.
51422         * modules/unistdio/u16-vsprintf: New file.
51423         * modules/unistdio/u16-u16-asnprintf: New file.
51424         * modules/unistdio/u16-u16-asprintf: New file.
51425         * modules/unistdio/u16-u16-snprintf: New file.
51426         * modules/unistdio/u16-u16-sprintf: New file.
51427         * modules/unistdio/u16-u16-vasnprintf: New file.
51428         * modules/unistdio/u16-u16-vasprintf: New file.
51429         * modules/unistdio/u16-u16-vsnprintf: New file.
51430         * modules/unistdio/u16-u16-vsprintf: New file.
51431         * modules/unistdio/u32-asnprintf: New file.
51432         * modules/unistdio/u32-asprintf: New file.
51433         * modules/unistdio/u32-printf-parse: New file.
51434         * modules/unistdio/u32-snprintf: New file.
51435         * modules/unistdio/u32-sprintf: New file.
51436         * modules/unistdio/u32-vasnprintf: New file.
51437         * modules/unistdio/u32-vasprintf: New file.
51438         * modules/unistdio/u32-vsnprintf: New file.
51439         * modules/unistdio/u32-vsprintf: New file.
51440         * modules/unistdio/u32-u32-asnprintf: New file.
51441         * modules/unistdio/u32-u32-asprintf: New file.
51442         * modules/unistdio/u32-u32-snprintf: New file.
51443         * modules/unistdio/u32-u32-sprintf: New file.
51444         * modules/unistdio/u32-u32-vasnprintf: New file.
51445         * modules/unistdio/u32-u32-vasprintf: New file.
51446         * modules/unistdio/u32-u32-vsnprintf: New file.
51447         * modules/unistdio/u32-u32-vsprintf: New file.
51448         * modules/unistdio/ulc-asnprintf-tests: New file.
51449         * modules/unistdio/ulc-vasnprintf-tests: New file.
51450         * modules/unistdio/ulc-vasprintf-tests: New file.
51451         * modules/unistdio/ulc-vsnprintf-tests: New file.
51452         * modules/unistdio/ulc-vsprintf-tests: New file.
51453         * modules/unistdio/u8-asnprintf-tests: New file.
51454         * modules/unistdio/u8-vasnprintf-tests: New file.
51455         * modules/unistdio/u8-vasprintf-tests: New file.
51456         * modules/unistdio/u8-vsnprintf-tests: New file.
51457         * modules/unistdio/u8-vsprintf-tests: New file.
51458         * modules/unistdio/u16-asnprintf-tests: New file.
51459         * modules/unistdio/u16-vasnprintf-tests: New file.
51460         * modules/unistdio/u16-vasprintf-tests: New file.
51461         * modules/unistdio/u16-vsnprintf-tests: New file.
51462         * modules/unistdio/u16-vsprintf-tests: New file.
51463         * modules/unistdio/u32-asnprintf-tests: New file.
51464         * modules/unistdio/u32-vasnprintf-tests: New file.
51465         * modules/unistdio/u32-vasprintf-tests: New file.
51466         * modules/unistdio/u32-vsnprintf-tests: New file.
51467         * modules/unistdio/u32-vsprintf-tests: New file.
51468         * MODULES.html.sh (Unicode string functions): Add the new modules.
51469
51470 2007-07-01  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/sprintf.c (sprintf): Limit the available length estimation,
51473         to avoid address wraparound.
51474         * lib/vsprintf.c (vsprintf): Likewise.
51475         * modules/sprintf-posix (Dependencies): Add stdint.
51476         * modules/vsprintf-posix (Dependencies): Likewise.
51477
51478 2007-07-01  Bruno Haible  <bruno@clisp.org>
51479
51480         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51481         Windows PATH as well. Conservative double-quoting. Comments.
51482
51483 2007-07-01  Bruno Haible  <bruno@clisp.org>
51484             Eric Blake  <ebb9@byu.net>
51485             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51486
51487         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51488         empty components in $PATH, denoting '.'.
51489
51490 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51491
51492         * gnulib-tool: Fix indentation.
51493         (func_create_megatestdir): Likewise.
51494         Report by Bruno Haible.
51495
51496 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51497
51498         Sync from Automake.
51499         * build-aux/gnupload: Fix shell portability issues with for loops.
51500         Report by Karl Berry.
51501
51502 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51503
51504         * build-aux/maint.mk (POURL): Use translationproject.org.
51505
51506 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51507             Bruno Haible  <bruno@clisp.org>
51508
51509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51510         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51511         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51512         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51513         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51514
51515 2007-06-27  Bruno Haible  <bruno@clisp.org>
51516
51517         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51518         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51519
51520 2007-06-26  Karl Berry  <karl@gnu.org>
51521
51522         * MODULES.html.sh: remove xreadlink-with-size.
51523
51524 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51525
51526         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51527         method that I hope also handles the double-include problem noted
51528         by Bruno Haible in
51529         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51530
51531 2007-06-23  Bruno Haible  <bruno@clisp.org>
51532
51533         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51534         Don't let the 'mostlyclean' target fail if the last subdirectory could
51535         not be removed.
51536         Reported by Karl Berry.
51537
51538 2007-06-23  Bruno Haible  <bruno@clisp.org>
51539
51540         * gnulib-tool (echo): Add a speedier workaround for ksh.
51541         * tests/test-echo.sh: Likewise.
51542
51543 2007-06-23  Bruno Haible  <bruno@clisp.org>
51544
51545         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51546         * tests/test-echo.sh: Likewise.
51547
51548 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51549
51550         * gnulib-tool (IFS): Initialize early, so we don't set it to
51551         empty later.
51552         (self_abspathname): Rewrite algorithm to set it, reindent.
51553         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51554         (func_create_megatestdir): Merge some sed scripts.
51555
51556 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51559         exposed by Sun Studio 11 cc on Solaris 8.
51560
51561 2007-06-22  Bruno Haible  <bruno@clisp.org>
51562
51563         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51564         backslashes.
51565         * tests/test-echo.sh: New file.
51566
51567 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51568
51569         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51570         simplify `sed_replace_build_aux' scripts, they are portable but
51571         echoing them with `echo' is not.
51572         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51573
51574 2007-06-21  Karl Berry  <karl@gnu.org>
51575
51576         * config/srclist.txt: guess we can't handle the licenses via
51577         srclist at the moment.
51578
51579 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * MODULES.html.sh: Add include_next.
51582         * modules/include_next: New file.
51583
51584 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51585
51586         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51587         INCLUDE_NEXT.
51588         (gl_CHECK_NEXT_HEADERS): New macro.
51589         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51590         the obsolescent gl_ABSOLUTE_HEADER.
51591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51592         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51593         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51594         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51595         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51596         * m4/math_h.m4 (gl_MATH_H): Likewise.
51597         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51598         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51599         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51600         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51601         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51602         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51603         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51607         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51608         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51609         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51610         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51611         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51612         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51613         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51614         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51615         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51616         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51617         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51618         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51619         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51620         * lib/float_.h: Likewise.
51621         * lib/inttypes_.h: Likewise.
51622         * lib/math_.h: Likewise.
51623         * lib/search_.h: Likewise.
51624         * lib/signal_.h: Likewise.
51625         * lib/stdint_.h: Likewise.
51626         * lib/stdio_.h: Likewise.
51627         * lib/stdlib_.h: Likewise.
51628         * lib/string_.h: Likewise.
51629         * lib/sys_stat_.h: Likewise.
51630         * lib/sys_time_.h: Likewise.
51631         * lib/time_.h: Likewise.
51632         * lib/unistd_.h: Likewise.
51633         * lib/wchar_.h: Likewise.
51634         * lib/wctype_.h: Likewise.
51635         * lib/dirent_.h: Likewise.
51636         * lib/iconv_.h: Likewise.
51637         * lib/locale_.h: Likewise.
51638         * lib/netinet_in_.h: Likewise.
51639         * lib/sys_select_.h: Likewise.
51640         * lib/sys_socket_.h: Likewise.
51641         * lib/sysexits_.h: Likewise.
51642         * modules/fcntl (Depends-on): Depend on include_next, not
51643         absolute_header.
51644         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51645         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51646         * modules/fchdir: Likewise.
51647         * modules/float: Likewise.
51648         * modules/iconv_open: Likewise.
51649         * modules/inttypes: Likewise.
51650         * modules/locale: Likewise.
51651         * modules/math: Likewise.
51652         * modules/netinet_in: Likewise.
51653         * modules/search: Likewise.
51654         * modules/signal: Likewise.
51655         * modules/stdint: Likewise.
51656         * modules/stdio: Likewise.
51657         * modules/stdlib: Likewise.
51658         * modules/string: Likewise.
51659         * modules/sys_select: Likewise.
51660         * modules/sys_socket: Likewise.
51661         * modules/sys_stat: Likewise.
51662         * modules/sys_time: Likewise.
51663         * modules/sysexits: Likewise.
51664         * modules/time: Likewise.
51665         * modules/unistd: Likewise.
51666         * modules/wchar: Likewise.
51667         * modules/wctype: Likewise.
51668         * modules/sys_stat: Change maintainer to "all".
51669         * modules/unistd: Likewise.
51670
51671 2007-06-20  Karl Berry  <karl@gnu.org>
51672
51673         * config/srclist.txt: track www changes in license files.
51674
51675 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51676
51677         * build-aux/bootstrap: Remove stray dot.
51678         Make sure build_aux settings are honored when linking
51679         gnulib_extra_files.
51680
51681 2007-06-19  Eric Blake  <ebb9@byu.net>
51682
51683         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51684         Allow compilation on cygwin.
51685
51686 2007-06-19  Jim Meyering  <jim@meyering.net>
51687
51688         xreadlink-with-size: Remove module.  No longer used.
51689         Ex-callers now use xreadlink or mreadlink-with-size.
51690         * modules/xreadlink-with-size: Remove module.
51691         * lib/xreadlink-with-size.c: Remove file.
51692         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51693         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51694         just before the function definition *is* accurate.
51695
51696         Eliminate one way canonicalize_filename_mode could exit.
51697         * lib/canonicalize.c (canonicalize_filename_mode):
51698         Use mreadlink_with_size, not xreadlink_with_size.
51699
51700 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         Detect porting problems to FreeBSD/arm, which has time_t wider than
51703         long int.  Original problem reported for GNU diff by Xin Li in
51704         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51705         * modules/getdate (Depends-on): Add intprops, verify.
51706         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51707         is an integer type no wider than long int.
51708
51709 2007-06-18  Jim Meyering  <jim@meyering.net>
51710
51711         New module: mreadlink-with-size.
51712         * MODULES.html.sh: Add mreadlink-with-size.
51713         * modules/mreadlink-with-size: New module
51714         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51715         not xreadlink-with-size.
51716         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51717
51718 2007-06-16  Bruno Haible  <bruno@clisp.org>
51719
51720         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51721         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51722         Reported by Gary V. Vaughan <gary@gnu.org>.
51723
51724 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51725
51726         Revamp lchown so that it lives in unistd.h where it belongs.
51727         * lib/lchown.h: Remove.
51728         * lib/dirchownmod.c: Don't include lib/lchown.h.
51729         * lib/fchownat.c: Likewise.
51730         * lib/openat.c: Likewise.
51731         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51732         does not follow symlinks.
51733         (EOPNOTSUPP): Define if not defined.
51734         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51735         is defined to 0.
51736         (lchown): New decl.
51737         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51738         Do not check for lchown decl.
51739         Set REPLACE_LCHOWN.
51740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51741         REPLACE_LCHOWN.
51742         * modules/chown: Make it clear it follows symlinks.
51743         * modules/lchown: Make it clear it doesn't follow symlinks.
51744         (Files): Remove lib/lchown.h
51745         (Depends-on): Add unistd.
51746         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51747         (Include): Include <unistd.h>, not "lchown.h".
51748         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51749         REPLACE_LCHOWN.
51750
51751 2007-06-15  Jim Meyering  <jim@meyering.net>
51752
51753         Change license (GPL to LGPL) of fsusage and dependents.
51754         * modules/fsusage (License): Change to LGPL.
51755         * modules/full-read (License): Likewise.
51756         * modules/full-write (License): Likewise.
51757         * modules/safe-read (License): Likewise.
51758         * modules/safe-write (License): Likewise.
51759
51760 2007-06-14  Ben Pfaff  <blp@gnu.org>
51761
51762         Missing part of allocsa -> malloca transition.
51763         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51764         gl_MALLOCA.
51765
51766 2007-06-12  Bruno Haible  <bruno@clisp.org>
51767
51768         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51769         to ia64, x86_64, i386.
51770         Reported by Eric Blake.
51771
51772 2007-06-12  Bruno Haible  <bruno@clisp.org>
51773
51774         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51775         cross-compiling to x86_64.
51776
51777 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51780         glitch reported by Ralf Wildenhues in
51781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51782
51783         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51784         Vin Shelton.
51785
51786 2007-06-11  Bruno Haible  <bruno@clisp.org>
51787
51788         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51789         replacement string.
51790         Reported by Eric Blake.
51791
51792 2007-06-10  Bruno Haible  <bruno@clisp.org>
51793
51794         Prepare vasnprintf code for use with Unicode strings.
51795         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51796         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51797         TYPE_U32_STRING.
51798         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51799         a_u32_string variants.
51800         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51801         * lib/printf-args.c: Don't include config.h and the specification
51802         header if PRINTF_FETCHARGS is already defined.
51803         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51804         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51805         TYPE_U16_STRING, TYPE_U32_STRING.
51806         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51807         u16_directive, u16_directives, u32_directive, u32_directives): New
51808         types.
51809         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51810         New declarations.
51811         * lib/printf-parse.c: Don't include config.h and the specification
51812         header if PRINTF_PARSE is already defined. Eliminate the set of
51813         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51814         them now. Include c-ctype.h.
51815         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51816         directive and CHAR_T_ONLY_ASCII.
51817         * lib/vasnprintf.c: Don't include config.h and the specification header
51818         if VASNPRINTF is already defined.
51819         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51820         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51821         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51822         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51823         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51824         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51825         code accordingly.
51826         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51827         pad_ourselves also in this case, with the 'c' and 's' directives, and
51828         with a different notion of "width".
51829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51830
51831 2007-06-10  Bruno Haible  <bruno@clisp.org>
51832
51833         * modules/unistr/u32-mbsnlen: New file.
51834         * lib/unistr/u32-mbsnlen.c: New file.
51835
51836         * modules/unistr/u16-mbsnlen: New file.
51837         * lib/unistr/u16-mbsnlen.c: New file.
51838
51839         * modules/unistr/u8-mbsnlen: New file.
51840         * lib/unistr/u8-mbsnlen.c: New file.
51841
51842         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51843         declarations.
51844
51845 2007-06-10  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/string_.h (mbsnlen): New declaration.
51848         * lib/mbsnlen.c: New file.
51849         * m4/mbsnlen.m4: New file.
51850         * modules/mbsnlen: New file.
51851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51852         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51853         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51854
51855 2007-06-10  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51858
51859 2007-06-10  Bruno Haible  <bruno@clisp.org>
51860
51861         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51862         * lib/mbuiter.h: Likewise.
51863
51864 2007-06-10  Bruno Haible  <bruno@clisp.org>
51865
51866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51867         declaration.
51868
51869 2007-06-10  Karl Berry  <karl@gnu.org>
51870
51871         * config/srclist.txt: remove gettext entries, Bruno prefers
51872         to update individually.
51873
51874 2007-06-10  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51877         'maxlen'. Ensure only length + width bytes are allocated, not
51878         length + 1 + width.
51879
51880 2007-06-09  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51883         (CHAR_T): Remove macro.
51884         (VASNPRINTF): Update.
51885
51886 2007-06-09  Bruno Haible  <bruno@clisp.org>
51887
51888         * MODULES.html.sh (Unicode string functions): Add the new modules.
51889
51890         * modules/uniconv/u32-conv-to-enc: New file.
51891         * lib/uniconv/u32-conv-to-enc.c: New file.
51892         * modules/uniconv/u32-conv-to-enc-tests: New file.
51893         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51894
51895         * modules/uniconv/u16-conv-to-enc: New file.
51896         * lib/uniconv/u16-conv-to-enc.c: New file.
51897         * lib/uniconv/u-conv-to-enc.h: New file.
51898         * modules/uniconv/u16-conv-to-enc-tests: New file.
51899         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51900
51901         * modules/uniconv/u8-conv-to-enc: New file.
51902         * lib/uniconv/u8-conv-to-enc.c: New file.
51903         * modules/uniconv/u8-conv-to-enc-tests: New file.
51904         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51905
51906         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51907         u32_conv_to_encoding): New declarations.
51908
51909 2007-06-09  Bruno Haible  <bruno@clisp.org>
51910
51911         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51912
51913 2007-06-09  Bruno Haible  <bruno@clisp.org>
51914
51915         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51916         * modules/malloca: Renamed from modules/allocsa, updated.
51917         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51918         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51919         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51920         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51921         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51922         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51923         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51924         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51925         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51926         * modules/c-strcasestr (Depends-on): Update.
51927         * lib/c-strcasestr.c: Update.
51928         * modules/c-strstr (Depends-on): Update.
51929         * lib/c-strstr.c: Update.
51930         * modules/canonicalize-lgpl (Depends-on): Update.
51931         * lib/canonicalize-lgpl.c: Update.
51932         * modules/clean-temp (Depends-on): Update.
51933         * lib/clean-temp.c: Update.
51934         * modules/csharpcomp (Depends-on): Update.
51935         * lib/csharpcomp.c: Update.
51936         * modules/csharpexec (Depends-on): Update.
51937         * lib/csharpexec.c: Update.
51938         * modules/javacomp (Depends-on): Update.
51939         * lib/javacomp.c: Update.
51940         * modules/javaexec (Depends-on): Update.
51941         * lib/javaexec.c: Update.
51942         * modules/mbscasestr (Depends-on): Update.
51943         * lib/mbscasestr.c: Update.
51944         * modules/mbsstr (Depends-on): Update.
51945         * lib/mbsstr.c: Update.
51946         * modules/setenv (Depends-on): Update.
51947         * lib/setenv.c: Update.
51948         * modules/strcasestr (Depends-on): Update.
51949         * lib/strcasestr.c: Update.
51950         * modules/striconveha (Depends-on): Update.
51951         * lib/striconveha.c: Update.
51952         * modules/relocatable-prog-wrapper (Files): Update.
51953         * lib/relocwrapper.c: Update.
51954         * build-aux/install-reloc: Update.
51955         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51956
51957 2007-06-08  Bruno Haible  <bruno@clisp.org>
51958
51959         Port to uClibc.
51960         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51961         * lib/fpurge.c (fpurge): Likewise.
51962         * lib/freading.c (freading): Likewise.
51963         * lib/fseeko.c (rpl_fseeko): Likewise.
51964         * lib/fseterr.c (fseterr): Likewise.
51965         * lib/fwriting.c (fwriting): Likewise.
51966         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51967
51968 2007-06-08  Bruno Haible  <bruno@clisp.org>
51969
51970         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51971         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51972         * modules/gettext (Files): Add m4/intlmacosx.m4.
51973
51974 2007-06-07  Bruno Haible  <bruno@clisp.org>
51975
51976         * modules/localename-tests: New file.
51977         * tests/test-localename.c: New file.
51978
51979         New module 'localename'.
51980         * lib/localename.h: New file.
51981         * lib/localename.c: New file, from GNU gettext.
51982         * m4/localename.m4: New file.
51983         * modules/localename: New file.
51984
51985 2007-06-07  Bruno Haible  <bruno@clisp.org>
51986
51987         Work around the lack of <wchar.h> on some builds of uClibc.
51988         * doc/headers/wchar.texi: Update.
51989         * lib/wchar_.h: Include <wchar.h> only if it exists.
51990         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51991         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51992         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51993         doesn't exist.
51994         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51995         * modules/mbfile (Depends-on): Add wchar.
51996         * modules/mbiter (Depends-on): Likewise.
51997         * modules/mbuiter (Depends-on): Likewise.
51998         Reported by Simon Josefsson.
51999
52000 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52001
52002         Work around problem reported by Steven M. Schweda in
52003         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52004         Tru64 5.1B with the Compaq compiler environment installed declares
52005         an 'isblank' function but does not define it in the C library.
52006         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52007         * lib/regex_internal.h (isblank): Likewise.
52008         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52009         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52010
52011 2007-06-05  Bruno Haible  <bruno@clisp.org>
52012
52013         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52014         ia64.
52015         * modules/printf-safe: New file.
52016         * modules/fprintf-posix (Depends-on): Add printf-safe.
52017         * modules/printf-posix (Depends-on): Likewise.
52018         * modules/snprintf-posix (Depends-on): Likewise.
52019         * modules/sprintf-posix (Depends-on): Likewise.
52020         * modules/vasnprintf-posix (Depends-on): Likewise.
52021         * modules/vasprintf-posix (Depends-on): Likewise.
52022         * modules/vfprintf-posix (Depends-on): Likewise.
52023         * modules/vprintf-posix (Depends-on): Likewise.
52024         * modules/vsnprintf-posix (Depends-on): Likewise.
52025         * modules/vsprintf-posix (Depends-on): Likewise.
52026         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52027         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52028         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52029         "no" on i386, x86_64, ia64.
52030         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52031         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52032         on i386, x86_64, ia64.
52033         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52034         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52035         on i386, x86_64, ia64.
52036         * tests/test-vasnprintf-posix.c: Include float.h.
52037         (LDBL80_WORDS): New macro.
52038         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52039         on i386, x86_64, ia64.
52040         * tests/test-vasprintf-posix.c: Include float.h.
52041         (LDBL80_WORDS): New macro.
52042         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52043         on i386, x86_64, ia64.
52044         * tests/test-snprintf-posix.c: Include float.h.
52045         * tests/test-sprintf-posix.c: Likewise.
52046         * tests/test-vsnprintf-posix.c: Likewise.
52047         * tests/test-vsprintf-posix.c: Likewise.
52048
52049 2007-06-05  Bruno Haible  <bruno@clisp.org>
52050
52051         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52052         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52053         non-IEEE numbers on i386, x86_64, ia64.
52054         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52055         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52056         * tests/test-isnanl.h: Include float.h.
52057         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52058
52059 2007-06-05  Bruno Haible  <bruno@clisp.org>
52060
52061         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52062         also the %a / %A. Handle the %a / %A code before this extra handling.
52063
52064 2007-06-05  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52067         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52068
52069 2007-06-05  Bruno Haible  <bruno@clisp.org>
52070
52071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52072         typo in variable name.
52073
52074 2007-06-05  Eric Blake  <ebb9@byu.net>
52075
52076         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52077         Reported by Simon Josefsson.
52078
52079 2007-06-04  Bruno Haible  <bruno@clisp.org>
52080
52081         Avoid test failures on some PowerPC platforms.
52082         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52083         Define differently for PowerPC.
52084         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52085         Reported by Gary V. Vaughan <gary@gnu.org>.
52086
52087 2007-06-02  Bruno Haible  <bruno@clisp.org>
52088
52089         Fix test-stdint failure on FreeBSD/ia64.
52090         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52091         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52092         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52093         * doc/headers/stdint.texi: Update.
52094
52095 2007-06-01  Bruno Haible  <bruno@clisp.org>
52096
52097         * tests/test-binary-io.c (main): Pass a third argument to open().
52098         Reported by Gary V. Vaughan <gary@gnu.org>.
52099
52100 2007-06-01  Bruno Haible  <bruno@clisp.org>
52101
52102         * doc/functions/frexpl.texi: Update for mingw.
52103
52104 2007-06-01  Bruno Haible  <bruno@clisp.org>
52105
52106         * tests/test-lseek.c (main): Disable test of errno for invalid third
52107         argument.
52108         * doc/functions/lseek.texi: Update.
52109         Reported by Gary V. Vaughan <gary@gnu.org>.
52110
52111 2007-05-28  Bruno Haible  <bruno@clisp.org>
52112
52113         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52114
52115 2007-05-31  Eric Blake  <ebb9@byu.net>
52116
52117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52118         cross compiling.
52119
52120 2007-05-30  Eric Blake  <ebb9@byu.net>
52121         and Bruno Haible  <bruno@clisp.org>
52122
52123         Work around mingw test failures exposed by m4-1.4.9b.
52124         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52125         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52126         moment.
52127
52128 2007-05-30  Bruno Haible  <bruno@clisp.org>
52129
52130         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52131         assuming that they are closed. Needed on HP-UX 11.
52132
52133 2007-05-29  Bruno Haible  <bruno@clisp.org>
52134
52135         Fix a problem with #include_next.
52136         * lib/dirent_.h: Split the double-inclusion guard.
52137         * lib/fcntl_.h: Likewise.
52138         * lib/float_.h: Likewise.
52139         * lib/iconv_.h: Likewise.
52140         * lib/inttypes_.h: Likewise.
52141         * lib/locale_.h: Likewise.
52142         * lib/math_.h: Likewise.
52143         * lib/netinet_in_.h: Likewise.
52144         * lib/search_.h: Likewise.
52145         * lib/signal_.h: Likewise.
52146         * lib/stdint_.h: Likewise.
52147         * lib/stdio_.h: Likewise.
52148         * lib/stdlib_.h: Likewise.
52149         * lib/string_.h: Likewise.
52150         * lib/sys_select_.h: Likewise.
52151         * lib/sys_socket_.h: Likewise.
52152         * lib/sys_stat_.h: Likewise.
52153         * lib/sys_time_.h: Likewise.
52154         * lib/sysexits_.h: Likewise.
52155         * lib/time_.h: Likewise.
52156         * lib/unistd_.h: Likewise.
52157         * lib/wchar_.h: Likewise.
52158         * lib/wctype_.h: Likewise.
52159
52160 2007-05-29  Bruno Haible  <bruno@clisp.org>
52161
52162         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52163         for the moment.
52164
52165 2007-05-29  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52168         invocation.
52169         Reported by Eric Blake.
52170
52171 2007-05-29  Bruno Haible  <bruno@clisp.org>
52172
52173         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52174         compiling case.
52175
52176 2007-05-29  Eric Blake  <ebb9@byu.net>
52177             Bruno Haible  <bruno@clisp.org>
52178
52179         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52180         cross compiles.
52181
52182 2007-05-28  Eric Blake  <ebb9@byu.net>
52183
52184         * modules/closein-tests (test_closein_LDADD): Support test on
52185         cygwin with libtool.
52186
52187 2007-05-28  Bruno Haible  <bruno@clisp.org>
52188
52189         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52190         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52191         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52192         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52193         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52194         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52195         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52196         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52197         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52198
52199 2007-05-28  Eric Blake  <ebb9@byu.net>
52200
52201         Unconditionally include <config.h> in unit tests.
52202         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52203         * tests/test-allocsa.c, tests/test-arcfour.c,
52204         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52205         tests/test-array_list.c, tests/test-array_oset.c,
52206         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52207         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52208         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52209         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52210         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52211         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52212         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52213         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52214         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52215         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52216         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52217         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52218         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52219         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52220         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52221         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52222         test-md5.c, test-memmem.c, test-printf-posix.c,
52223         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52224         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52225         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52226         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52227         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52228         test-vasnprintf-posix2.c, test-vasnprintf.c,
52229         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52230         test-vfprintf-posix.c, test-vprintf-posix.c,
52231         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52232         test-xvasprintf.c: Likewise.
52233
52234 2007-05-28  Bruno Haible  <bruno@clisp.org>
52235
52236         * gnulib-tool (func_import): Remember the --with-tests command-line
52237         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52238         Reported by Eric Blake.
52239
52240 2007-05-28  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/ftell-tests: New file.
52243         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52244         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52245
52246         * lib/ftell.c: New file.
52247         * modules/ftell: New file.
52248         * m4/ftell.m4: New file.
52249         * doc/functions/ftell.texi: Update.
52250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52251         REPLACE_FTELL.
52252         * lib/stdio_.h (rpl_ftell): New declaration.
52253         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52254         REPLACE_FTELL.
52255
52256 2007-05-28  Eric Blake  <ebb9@byu.net>
52257
52258         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52259
52260 2007-05-28  Bruno Haible  <bruno@clisp.org>
52261
52262         * modules/fseek-tests: New file.
52263         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52264         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52265
52266         * lib/fseek.c: New file.
52267         * modules/fseek: New file.
52268         * m4/fseek.m4: New file.
52269         * doc/functions/fseek.texi: Update.
52270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52271         REPLACE_FSEEK.
52272         * lib/stdio_.h (rpl_fseek): New declaration.
52273         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52274         REPLACE_FSEEK.
52275
52276 2007-05-28  Bruno Haible  <bruno@clisp.org>
52277
52278         * lib/stdio_.h (fflush): More comments.
52279
52280 2007-05-28  Bruno Haible  <bruno@clisp.org>
52281
52282         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52283         runtime test.
52284
52285 2007-05-28  Eric Blake  <ebb9@byu.net>
52286
52287         Improve lseek module.
52288         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52289         * lib/unistd_.h (lseek): Scale back link warning message.
52290         * tests/test-lseek.c: Beef up test.
52291         * tests/test-lseek.sh: Exercise more facets of lseek.
52292         Reported by Bruno Haible.
52293
52294 2007-05-28  Bruno Haible  <bruno@clisp.org>
52295
52296         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52297         to define.
52298
52299 2007-05-27  Bruno Haible  <bruno@clisp.org>
52300
52301         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52302
52303 2007-05-27  Bruno Haible  <bruno@clisp.org>
52304
52305         * modules/openmp: New file.
52306         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52307         Noah Misch.
52308
52309 2007-05-26  Bruno Haible  <bruno@clisp.org>
52310
52311         * modules/chdir-long (Depends-on): Add fchdir.
52312         * modules/chdir-safer (Depends-on): Likewise.
52313         * modules/fts (Depends-on): Likewise.
52314         * modules/fts-lgpl (Depends-on): Likewise.
52315         * modules/openat (Depends-on): Likewise.
52316         * modules/savewd (Depends-on): Likewise.
52317
52318 2007-05-24  Eric Blake  <ebb9@byu.net>
52319
52320         Fix lseek on mingw.
52321         * modules/lseek: New module.
52322         * m4/lseek.m4: New file.
52323         * lib/lseek.c: New file.
52324         * modules/lseek-tests: New file.
52325         * tests/test-lseek.c: New file.
52326         * tests/test-lseek.sh: New file.
52327         * MODULES.html.sh: Document lseek module.
52328         * modules/fflush (Depends-on): Add lseek, fseeko.
52329         * modules/fseeko (Depends-on): Likewise.
52330         * modules/ftello (Depends-on): Likewise.
52331         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52332         broken.
52333         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52334         broken.
52335         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52336         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52337         * lib/ftello.c (rpl_ftello): Likewise.
52338         * tests/test-fseeko.c (main): Test this.
52339         * tests/test-fseeko.sh: Likewise.
52340         * tests/test-ftello.c (main): Likewise.
52341         * tests/test-ftello.sh: Likewise.
52342         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52343         implies replacing fseek.
52344         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52345         HAVE_FTELLO.
52346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52347         * modules/unistd (Makefile.am): Likewise.
52348         * lib/unistd_.h (lseek): Declare a replacement.
52349         * doc/functions/lseek.texi (lseek): Document this fix.
52350         * doc/functions/fseek.texi (fseek): Likewise.
52351         * doc/functions/ftell.texi (ftell): Likewise.
52352
52353 2007-05-24  Bruno Haible  <bruno@clisp.org>
52354
52355         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52356         in the printed representation of a NaN.
52357         * tests/test-vasprintf-posix.c (test_function): Likewise.
52358         * tests/test-snprintf-posix.h (test_function): Likewise.
52359         * tests/test-sprintf-posix.h (test_function): Likewise.
52360         Reported by Eric Blake.
52361
52362 2007-05-23  Eric Blake  <ebb9@byu.net>
52363
52364         Fix fseeko/ftello on cygwin 1.5.24.
52365         * doc/functions/fseeko.texi (fseeko): Document the fix.
52366         * doc/functions/ftello.texi (ftello): Document the fix.
52367         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52368         * doc/functions/stdout.text (stdout): New file.
52369         * doc/functions/stderr.text (stderr): New file.
52370         * doc/gnulib.texi (Function Substitutes): Use new files.
52371         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52372         prior to 1.7.0.
52373         * tests/test-ftello.c (main): Likewise for ftello.
52374         * tests/test-fseeko.sh: New file.
52375         * tests/test-ftello.sh: New file.
52376         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52377         with seekable stdin.
52378         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52379         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52380         (gl_REPLACE_FSEEKO): New macro.
52381         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52382         * modules/fseeko (Files): Distribute fseeko.c.
52383         * modules/ftello (Files): Distribute ftello.c.
52384         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52385         mode.
52386         * lib/ftello.c (rpl_ftello): New file.
52387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52388         fseeko, ftello.
52389         (gl_STDIN_LARGE_OFFSET): New macro.
52390         * modules/stdio (Makefile.am): Perform the replacement.
52391         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52392
52393 2007-05-23  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52396         GNULIB_POSIXCHECK is defined.
52397
52398 2007-05-21  Bruno Haible  <bruno@clisp.org>
52399
52400         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52401         Check also the output for NaN arguments. When cross-compiling, guess
52402         no on IRIX.
52403         * lib/vasnprintf.c: Update comments.
52404         * tests/test-vasnprintf-posix.c (strisnan): New function.
52405         (test_function): Use it.
52406         * tests/test-vasprintf-posix.c (strisnan): New function.
52407         (test_function): Use it.
52408         * tests/test-snprintf-posix.h (strisnan): New function.
52409         (test_function): Use it.
52410         * tests/test-sprintf-posix.h (strisnan): New function.
52411         (test_function): Use it.
52412         Reported by Eric Blake.
52413
52414 2007-05-20  Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52417         numbers that fails on BeOS.
52418         * doc/functions/frexpl.texi: Update.
52419
52420 2007-05-20  Jim Meyering  <jim@meyering.net>
52421
52422         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52423         forced upon us by glibc-2.6.
52424
52425 2007-05-20  Bruno Haible  <bruno@clisp.org>
52426
52427         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52428         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52429         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52430         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52431         NEED_PRINTF_INFINITE.
52432         (is_infinitel): New function.
52433         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52434         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52435         gl_PREREQ_VASNPRINTF_INFINITE.
52436         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52438         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52439         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52440         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52441         gl_PREREQ_VASNPRINTF_INFINITE.
52442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52446         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52449         * doc/functions/fprintf.texi: Update.
52450         * doc/functions/printf.texi: Update.
52451         * doc/functions/snprintf.texi: Update.
52452         * doc/functions/sprintf.texi: Update.
52453         * doc/functions/vfprintf.texi: Update.
52454         * doc/functions/vprintf.texi: Update.
52455         * doc/functions/vsnprintf.texi: Update.
52456         * doc/functions/vsprintf.texi: Update.
52457
52458 2007-05-20  Bruno Haible  <bruno@clisp.org>
52459
52460         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52461         was not found in libc.
52462         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52463
52464 2007-05-20  Bruno Haible  <bruno@clisp.org>
52465
52466         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52467         printed as "-nan" instead of "nan".
52468         * tests/test-vasprintf-posix.c (test_function): Likewise.
52469         * tests/test-snprintf-posix.h (test_function): Likewise.
52470         * tests/test-sprintf-posix.h (test_function): Likewise.
52471         Needed for HP-UX 11.
52472
52473 2007-05-20  Jim Meyering  <jim@meyering.net>
52474
52475         Fix buggy test for the fchownat-deref bug.
52476         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52477         symlink required for the run-test.  Without it, this test would
52478         always declare that fchownat doesn't work, and client code would
52479         unnecessarily use the replacement function with fixed libc.
52480         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52481         Reported by Greg Schafer.
52482
52483 2007-05-19  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52486         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52487         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52488         Needed for IRIX 6.5 and Solaris 2.5.1.
52489
52490 2007-05-19  Bruno Haible  <bruno@clisp.org>
52491
52492         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52493         (test_function): Skip tests involving -0.0 on platforms where
52494         -0.0 = 0.0.
52495         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52496         (test_function): Skip tests involving -0.0 on platforms where
52497         -0.0 = 0.0.
52498         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52499         (test_function): Skip tests involving -0.0 on platforms where
52500         -0.0 = 0.0.
52501         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52502         (test_function): Skip tests involving -0.0 on platforms where
52503         -0.0 = 0.0.
52504         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52505         tests.
52506         * tests/test-printf-posix.h (test_function): Likewise.
52507         * tests/test-printf-posix.output: Remove all -0.0 related results.
52508         Needed for IRIX 6.5.
52509
52510 2007-05-19  Bruno Haible  <bruno@clisp.org>
52511
52512         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52513         printed as "nan0x7fffffff" instead of "nan".
52514         * tests/test-vasprintf-posix.c (test_function): Likewise.
52515         * tests/test-snprintf-posix.h (test_function): Likewise.
52516         * tests/test-sprintf-posix.h (test_function): Likewise.
52517         * tests/test-fprintf-posix.h (NaN): Remove macro.
52518         (test_function): Remove all NaN related tests.
52519         * tests/test-printf-posix.h (NaN): Remove macro.
52520         (test_function): Remove all NaN related tests.
52521         * tests/test-printf-posix.output: Remove all NaN related results.
52522         Needed for IRIX 6.5.
52523
52524 2007-05-19  Bruno Haible  <bruno@clisp.org>
52525
52526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52528
52529 2007-05-19  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/float_.h: New file.
52532         * m4/float_h.m4: New file.
52533         * modules/float: New file.
52534         * modules/isnanl (Dependencies): Add float.
52535         * modules/isnanl-nolibm (Dependencies): Likewise.
52536         * modules/mathl (Dependencies): Likewise.
52537         * modules/printf-frexpl (Dependencies): Likewise.
52538         * modules/signbit (Dependencies): Likewise.
52539         * modules/vasnprintf (Dependencies): Likewise.
52540         * doc/headers/float.texi: Update.
52541
52542 2007-05-19  Jim Meyering  <jim@meyering.net>
52543
52544         * lib/utimens.c (gl_futimens): Rename from futimens,
52545         now that glibc-2.6 declares futimens.
52546         * lib/utimens.h: Likewise.
52547
52548 2007-05-19  Bruno Haible  <bruno@clisp.org>
52549
52550         Avoid test failures on mingw.
52551         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52552         * tests/test-printf-posix.sh: Likewise.
52553         * tests/test-vfprintf-posix.sh: Likewise.
52554         * tests/test-vprintf-posix.sh: Likewise.
52555
52556 2007-05-19  Bruno Haible  <bruno@clisp.org>
52557
52558         Fix *printf result for NaN, Inf, -0.0 on mingw.
52559         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52560         * lib/vasnprintf.c: Include math.h and isnan.h.
52561         (is_infinite_or_zero): New function.
52562         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52563         values in the %f, %F, %e, %E, %g, %G directives.
52564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52566         gl_PRINTF_INFINITE and test its result. Invoke
52567         gl_PREREQ_VASNPRINTF_INFINITE.
52568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52569         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52571         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52572         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52575         * doc/functions/fprintf.texi: Update.
52576         * doc/functions/printf.texi: Update.
52577         * doc/functions/snprintf.texi: Update.
52578         * doc/functions/sprintf.texi: Update.
52579         * doc/functions/vfprintf.texi: Update.
52580         * doc/functions/vprintf.texi: Update.
52581         * doc/functions/vsnprintf.texi: Update.
52582         * doc/functions/vsprintf.texi: Update.
52583
52584 2007-05-19  Bruno Haible  <bruno@clisp.org>
52585
52586         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52587         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52588         Instead of multiplying with 10^k, set extra_zeroes to k.
52589         (scale10_round_long_double): Remove function.
52590
52591 2007-05-18  Bruno Haible  <bruno@clisp.org>
52592
52593         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52594         introduced on 2007-05-06.
52595
52596 2007-05-18  Bruno Haible  <bruno@clisp.org>
52597
52598         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52599         %g directives.
52600         * tests/test-vasprintf-posix.c (test_function): Likewise.
52601         * tests/test-snprintf-posix.h (test_function): Likewise.
52602         * tests/test-sprintf-posix.h (test_function): Likewise.
52603
52604 2007-05-18  Bruno Haible  <bruno@clisp.org>
52605
52606         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52607         (strmatch): New function.
52608         (test_function): Test the %f directive on numbers of various exponents.
52609         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52610         (strmatch): New function.
52611         (test_function): Test the %f directive on numbers of various exponents.
52612         * tests/test-snprintf-posix.h (strmatch): New function.
52613         (test_function): Test the %f directive on numbers of various exponents.
52614         * tests/test-sprintf-posix.h (strmatch): New function.
52615         (test_function): Test the %f directive on numbers of various exponents.
52616         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52617         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52618         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52619         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52620
52621 2007-05-18  Bruno Haible  <bruno@clisp.org>
52622
52623         Add support for 'long double' number output.
52624         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52625         * lib/vasnprintf.c: Include math.h and float+.h.
52626         (mp_limb_t): New type.
52627         (GMP_LIMB_BITS): New macro.
52628         (mp_twolimb_t): New type.
52629         (GMP_TWOLIMB_BITS): New macro.
52630         (mpn_t): New type.
52631         (multiply, divide, convert_to_decimal, decode_long_double,
52632         scale10_round_long_double, scale10_round_decimal_long_double,
52633         floorlog10l): New functions.
52634         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52635         for the %f, %F, %e, %E, %g, %G directives.
52636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52638         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52639         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52647         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52648         * modules/snprintf-posix (Depends-on): Likewise.
52649         * modules/sprintf-posix (Depends-on): Likewise.
52650         * modules/vasnprintf-posix (Depends-on): Likewise.
52651         * modules/vasprintf-posix (Depends-on): Likewise.
52652         * modules/vfprintf-posix (Depends-on): Likewise.
52653         * modules/vsnprintf-posix (Depends-on): Likewise.
52654         * modules/vsprintf-posix (Depends-on): Likewise.
52655         * modules/vasnprintf (Files): Add lib/float+.h.
52656         * doc/functions/fprintf.texi: Update.
52657         * doc/functions/printf.texi: Update.
52658         * doc/functions/snprintf.texi: Update.
52659         * doc/functions/sprintf.texi: Update.
52660         * doc/functions/vfprintf.texi: Update.
52661         * doc/functions/vprintf.texi: Update.
52662         * doc/functions/vsnprintf.texi: Update.
52663         * doc/functions/vsprintf.texi: Update.
52664
52665 2007-05-18  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52668
52669 2007-05-18  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52672         for printing 64-bit integers. Needed for mingw.
52673
52674 2007-05-18  Bruno Haible  <bruno@clisp.org>
52675
52676         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52677         gl_FUNC_FREXPL_WORKS.
52678         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52679
52680 2007-05-18  Bruno Haible  <bruno@clisp.org>
52681
52682         * modules/frexpl-nolibm-tests: New file.
52683
52684         * modules/frexpl-nolibm: New file.
52685         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52686
52687 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52688
52689         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52690         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52691         GCC 4.2, which otherwise issues a lot of warnings.
52692         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52693         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52694         Likewise.
52695         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52696         * modules/iconv_open (iconv.h): Likewise.
52697         * modules/locale (locale.h): Likewise.
52698         * modules/netinet_in (netinet/in.h): Likewise.
52699         * modules/sys_select (sys_select.h): Likewise.
52700         * modules/sys_socket (sys/socket.h): Likewise.
52701         * modules/sys_stat (sys/stat.h): Likewise.
52702         * modules/sysexits (sysexits.h): Likewise.
52703         * modules/unistd (unistd.h): Likewise.
52704
52705 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52706
52707         * modules/closein-tests (Makefile.am): Distribute
52708         `test-closein.sh'.
52709
52710 2007-05-17  Bruno Haible  <bruno@clisp.org>
52711
52712         * tests/test-printf-posix.output: Renamed from
52713         tests/test-fprintf-posix.out.
52714         * modules/fprintf-posix-tests: Update.
52715         * modules/printf-posix-tests: Update.
52716         * modules/vfprintf-posix-tests: Update.
52717         * modules/vprintf-posix-tests: Update.
52718         * tests/test-fprintf-posix.sh: Update.
52719         * tests/test-printf-posix.sh: Update.
52720         * tests/test-vfprintf-posix.sh: Update.
52721         * tests/test-vprintf-posix.sh: Update.
52722         Reported by Ralf Wildenhues.
52723
52724 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52725
52726         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52727         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52728         GCC 4.2, which otherwise issues a lot of warnings.
52729         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52730         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52731         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52732         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52733         it should no longer be needed.
52734         * lib/string_.h: Likewise.
52735         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52736         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52737         * modules/inttypes (inttypes.h): Likewise.
52738         * modules/math (math.h): Likewise.
52739         * modules/search (search.h): Likewise.
52740         * modules/signal (signal.h): Likewise.
52741         * modules/stdint (stdint.h): Likewise.
52742         * modules/stdio (stdio.h): Likewise.
52743         * modules/stdlib (stdlib.h): Likewise.
52744         * modules/string (string.h): Likewise.
52745         * modules/sys_time (sys/time.h): Likewise.
52746         * modules/time (time.h): Likewise.
52747         * modules/wchar (wchar.h): Likewise.
52748         * modules/wctype (wtype.h): Likewise.
52749
52750 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52751
52752         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52753
52754 2007-05-13  Bruno Haible  <bruno@clisp.org>
52755
52756         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52757         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52758         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52759         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52760         (gl_PREREQ_STRTOK_R): Don't require it here.
52761
52762 2007-05-13  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52765         when used in C++ mode.
52766
52767 2007-05-12  Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/linebuffer.h: Tweak doc.
52770         * lib/linebuffer.c: Likewise.
52771
52772 2007-05-12  James Youngman  <jay@gnu.org>
52773
52774         * lib/linebuffer.c (readlinebuffer_delim): New function,
52775         like readlinebuffer, but use a caller-specified delimiter.
52776         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52777         as the delimiter.
52778         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52779
52780 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52781
52782         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52783         * modules/openat (Files): Remove openat-die.c.
52784         (Depends-on): Add openat-die.
52785         * modules/openat-die: New module.
52786
52787 2007-05-06  Bruno Haible  <bruno@clisp.org>
52788
52789         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52790         Update with info about Cygwin.
52791         * doc/functions/fprintf.texi: Update.
52792         * doc/functions/printf.texi: Update.
52793         * doc/functions/snprintf.texi: Update.
52794         * doc/functions/sprintf.texi: Update.
52795         * doc/functions/vfprintf.texi: Update.
52796         * doc/functions/vprintf.texi: Update.
52797         * doc/functions/vsnprintf.texi: Update.
52798         * doc/functions/vsprintf.texi: Update.
52799         Reported by Eric Blake.
52800
52801 2007-05-06  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52804         padding ourselves for the floating-point directives.
52805         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52807         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52808         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52809         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52810         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52814         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52816         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52817         * tests/test-snprintf-posix.h (test_function): Also check the width
52818         and some flags in the %f directive.
52819         * tests/test-sprintf-posix.h (test_function): Likewise.
52820         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52821         * tests/test-vasprintf-posix.c (test_function): Likewise.
52822         * doc/functions/fprintf.texi: Update.
52823         * doc/functions/printf.texi: Update.
52824         * doc/functions/snprintf.texi: Update.
52825         * doc/functions/sprintf.texi: Update.
52826         * doc/functions/vfprintf.texi: Update.
52827         * doc/functions/vprintf.texi: Update.
52828         * doc/functions/vsnprintf.texi: Update.
52829         * doc/functions/vsprintf.texi: Update.
52830
52831 2007-05-06  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52834         pass the ' flag character to sprintf or snprintf.
52835         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52838         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52839         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52840         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52847         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52848         flag.
52849         * tests/test-sprintf-posix.h (test_function): Likewise.
52850         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52851         * tests/test-vasprintf-posix.c (test_function): Likewise.
52852         * doc/functions/fprintf.texi: Update.
52853         * doc/functions/printf.texi: Update.
52854         * doc/functions/snprintf.texi: Update.
52855         * doc/functions/sprintf.texi: Update.
52856         * doc/functions/vfprintf.texi: Update.
52857         * doc/functions/vprintf.texi: Update.
52858         * doc/functions/vsnprintf.texi: Update.
52859         * doc/functions/vsprintf.texi: Update.
52860
52861 2007-05-01  Bruno Haible  <bruno@clisp.org>
52862
52863         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52864
52865 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52866
52867         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52868         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52869
52870 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52871
52872         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52873         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52875
52876 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52877
52878         * lib/argp-help.c (struct hol_entry): New member `ord'.
52879         (HOL_ENTRY_PTRCMP): Use ord for comparison
52880         (hol_sort): Initialize ord.
52881
52882 2007-05-01  Bruno Haible  <bruno@clisp.org>
52883
52884         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52885         Reported by Eric Blake.
52886         * doc/gnulib.texi (Function Substitutes): Update.
52887
52888 2007-05-01  Bruno Haible  <bruno@clisp.org>
52889
52890         * doc/functions.texi: Remove file, now redundant through
52891         doc/functions/*.texi.
52892
52893 2007-05-01  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/argp (Depends-on): Add sleep.
52896
52897 2007-05-01  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/sleep-tests: New file.
52900         * tests/test-sleep.c: New file.
52901
52902         * modules/sleep: New file.
52903         * lib/sleep.c: New file.
52904         * m4/sleep.m4: New file.
52905         * lib/unistd_.h (sleep): New declaration.
52906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52907         HAVE_SLEEP.
52908         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52909         * doc/functions/sleep.texi: Document the sleep module.
52910
52911 2007-05-01  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/sigprocmask.h: Remove file.
52914         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52915         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52916         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52917         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52918         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52919         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52920         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52921         HAVE_SIGSET_T as a shell variable.
52922         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52923         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52924         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52925         (Depends-on): Add signal. Remove verify.
52926         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52927         (Include): Mention <signal.h> instead of sigprocmask.h.
52928         * NEWS: Mention the change.
52929         * lib/fatal-signal.c: Don't include sigprocmask.h.
52930
52931 2007-05-01  Bruno Haible  <bruno@clisp.org>
52932
52933         * modules/signal: New file.
52934         * lib/signal_.h: New file.
52935         * m4/signal_h.m4: New file.
52936
52937 2007-05-01  Bruno Haible  <bruno@clisp.org>
52938
52939         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52940         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52941         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52942         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52943
52944 2007-05-01  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52947         configure time.
52948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52949         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52950         * modules/sys_stat (Makefile.am): Substitute their values into
52951         sys/stat.h.
52952
52953 2007-05-01  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52956         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52957         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52958
52959 2007-05-01  Bruno Haible  <bruno@clisp.org>
52960
52961         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52962         'assert' module here.
52963
52964 2007-05-01  Bruno Haible  <bruno@clisp.org>
52965
52966         * doc/functions/*.texi: New files.
52967         * doc/functions/google-ranking.txt: New file.
52968         * doc/gnulib.texi (Function Substitutes): New chapter.
52969         (ctime, inet_ntoa): Remove sections.
52970         * doc/ctime.texi: Remove file.
52971         * doc/inet_ntoa.texi: Remove file.
52972         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52973         dependencies.
52974         (%.info): New rule, specifying a --reference-limit.
52975
52976 2007-05-01  Bruno Haible  <bruno@clisp.org>
52977
52978         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52979
52980 2007-05-01  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52983         the portability of 'mkdir' to mingw systems.
52984
52985 2007-05-01  Bruno Haible  <bruno@clisp.org>
52986
52987         * doc/headers/google-ranking.txt: New file.
52988
52989 2007-04-30  Eric Blake  <ebb9@byu.net>
52990
52991         Prefer fseeko to fseek.
52992         * modules/getpass (Depends-on): Add fseeko.
52993         * lib/getpass.c (getpass): Use fseeko, not fseek.
52994
52995 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52996
52997         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52998         assumes the sorting is stable, while most qsort implementations
52999         are not.  Use argument addresses to ensure they never compare as
53000         equal.
53001
53002         * tests/test-argp-2.sh (usage-indent test): Fix output
53003         (func_compare): Restore diff options
53004         * tests/test-argp.c: Restore #include "progname.h"
53005
53006 2007-04-29  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53009         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53010         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53011         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53012         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53013         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53014         (TESTS, check_PROGRAMS): Add test-snprintf.
53015         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53016         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53017         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53018         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53019         assertions that fail on HP-UX, OSF/1, or IRIX.
53020         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53021
53022 2007-04-29  Bruno Haible  <bruno@clisp.org>
53023
53024         * MODULES.html.sh (posix_functions): Remove 'contents'.
53025
53026 2007-04-29  Karl Berry  <karl@gnu.org>
53027
53028         * config/srclist.txt (gendocs_template_min): new entry.
53029
53030 2007-04-29  Bruno Haible  <bruno@clisp.org>
53031
53032         Work around fpurge bug on BSD systems.
53033         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53034         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53035         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53036         fpurge to rpl_fpurge if the system already has this function.
53037         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53038         the case where the system already has this function. Correct invariants
53039         on BSD systems.
53040         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53041         BSD systems.
53042
53043 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53044
53045         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53046         proposed by Sven Verdoolaege.
53047
53048         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53049         options.
53050         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53051         (usage and help tests): Update
53052
53053 2007-04-29  Bruno Haible  <bruno@clisp.org>
53054
53055         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53056         Print more information in case of failure. Disable a test on BeOS.
53057
53058 2007-04-29  Bruno Haible  <bruno@clisp.org>
53059
53060         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53061         This helps debugging on systems on which no gdb is available.
53062
53063 2007-04-29  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/freading.h: Improve comments.
53066         * lib/fwriting.h: Likewise.
53067         * tests/test-freading.c (main): Don't check freading immediately after
53068         repositioning. Needed for glibc.
53069
53070 2007-04-29  Bruno Haible  <bruno@clisp.org>
53071
53072         * lib/freading.c (freading): Trivial simplification.
53073
53074 2007-04-28  Bruno Haible  <bruno@clisp.org>
53075
53076         * tests/test-fwriting.c (main): Also test the interaction between
53077         fflush and fwriting.
53078         * modules/fwriting-tests (Depends-on): Add fflush.
53079
53080         * tests/test-freading.c (main): Also test the interaction between
53081         fflush and freading.
53082         * modules/freading-tests (Depends-on): Add fflush.
53083
53084 2007-04-28  Bruno Haible  <bruno@clisp.org>
53085
53086         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53087         fseeko and ftello.
53088         Suggested by Eric Blake.
53089
53090 2007-04-28  Jim Meyering  <jim@meyering.net>
53091
53092         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53093         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53094         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53095
53096 2007-04-27  Eric Blake  <ebb9@byu.net>
53097
53098         * doc/headers/assert.texi (assert.h): Document assert module use.
53099
53100 2007-04-27  Bruno Haible  <bruno@clisp.org>
53101
53102         * doc/headers/*.texi: New files.
53103         * doc/gnulib.texi (Header File Substitutes): New chapter.
53104         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53105         dependencies.
53106         (standards.info ,standards.html, standards.dvi): Update dependencies.
53107         (mostlyclean, clean): New targets.
53108
53109 2007-04-27  Bruno Haible  <bruno@clisp.org>
53110
53111         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53112         * modules/sysexits (Files, Makefile.am): Update.
53113
53114         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53115         * modules/sys_socket (Files, Makefile.am): Update.
53116
53117         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53118         * modules/sys_stat (Files, Makefile.am): Update.
53119
53120 2007-04-27  Eric Blake  <ebb9@byu.net>
53121
53122         * lib/freading.h: Improve comments.
53123         * lib/fwriting.h: Likewise.
53124         * lib/fflush.c: Likewise.
53125
53126         Fix closein for mingw.
53127         * modules/closein-tests: Add tests for closein.
53128         * tests/test-closein.c: New file.
53129         * tests/test-closein.sh: Likewise.
53130         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53131         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53132
53133 2007-04-27  Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53136         version is < 6.
53137         * lib/math_.h [__DECC]: Likewise.
53138         * lib/stdio_.h [__DECC]: Likewise.
53139         * lib/stdlib_.h [__DECC]: Likewise.
53140         * lib/string_.h [__DECC]: Likewise.
53141         * lib/time_.h [__DECC]: Likewise.
53142         * lib/wchar_.h [__DECC]: Likewise.
53143         * lib/wctype_.h [__DECC]: Likewise.
53144
53145 2007-04-27  Bruno Haible  <bruno@clisp.org>
53146
53147         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53148
53149 2007-04-27  Bruno Haible  <bruno@clisp.org>
53150
53151         * lib/fflush.c: Add comments.
53152         * modules/fpurge-tests (Depends-on): Add fflush.
53153         * modules/freadable-tests (Depends-on): Likewise.
53154         * modules/fwritable-tests (Depends-on): Likewise.
53155
53156 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53157
53158         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53159         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53160         Report by Bruno Haible <bruno@clisp.org>.
53161
53162 2007-04-26  Eric Blake  <ebb9@byu.net>
53163
53164         Fix fflush on mingw.
53165         * modules/fflush (Depends-on): Add freading.
53166         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53167         but unread data.
53168
53169 2007-04-26  Eric Blake  <ebb9@byu.net>
53170         and Bruno Haible  <bruno@clisp.org>
53171
53172         Implement freading and fwriting.
53173         * lib/freading.c: New file.
53174         * lib/freading.h: Likewise.
53175         * m4/freading.m4: Likewise.
53176         * modules/freading: Likewise.
53177         * modules/freading-tests: Likewise.
53178         * tests/test-freading.c: Likewise.
53179         * lib/fwriting.c: New file.
53180         * lib/fwriting.h: Likewise.
53181         * m4/fwriting.m4: Likewise.
53182         * modules/fwriting: Likewise.
53183         * modules/fwriting-tests: Likewise.
53184         * tests/test-fwriting.c: Likewise.
53185         * MODULES.html.sh (File stream based Input/Output): Mention them.
53186
53187 2007-04-26  Bruno Haible  <bruno@clisp.org>
53188
53189         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53190         'long' when we assume it.
53191         Suggested by Eric Blake.
53192
53193 2007-04-26  Bruno Haible  <bruno@clisp.org>
53194
53195         Ensure fseeko, ftello are declared on glibc systems.
53196         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53197         * modules/fseeko (configure.ac-early): Likewise.
53198         * modules/ftello (configure.ac-early): Likewise.
53199         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53200         AC_FUNC_FSEEKO for this.
53201         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53202         (gl_CHECK_FSEEKO): Remove macro.
53203
53204 2007-04-26  Bruno Haible  <bruno@clisp.org>
53205
53206         * tests/test-fflush.c (main): Also check the ftell result after
53207         fflush and fseek/fseeko.
53208         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53209         file descriptor position cache in the stream.
53210         * lib/fseeko.c (rpl_fseeko): Likewise.
53211
53212 2007-04-26  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/fflush-tests (Depends-on): Add fseeko.
53215
53216 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53217             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53218
53219         * lib/argz_.h: ensure error_t definition is obtained in same
53220         mechanism system argz.h would have.
53221         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53222         argz facilities are known bad.  Err on the side of caution if
53223         cross-compiling.
53224
53225 2007-04-25  Eric Blake  <ebb9@byu.net>
53226
53227         * lib/fpurge.c (includes): Use stdlib.h for free.
53228         * tests/test-fflush.c (main): Also test fflush-fseeko.
53229
53230 2007-04-25  Bruno Haible  <bruno@clisp.org>
53231
53232         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53233         * lib/fseeko.c: New file.
53234         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53235         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53236         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53237         gl_FUNC_FSEEKO.
53238         (gl_FUNC_FSEEKO): Invoke it.
53239         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53240         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53241         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53242
53243 2007-04-25  Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/fflush (Depends-on): Add ftello.
53246
53247 2007-04-25  Bruno Haible  <bruno@clisp.org>
53248
53249         * modules/ftello-tests: New file.
53250         * tests/test-ftello.c: New file.
53251
53252         * modules/ftello: New file.
53253         * m4/ftello.m4: New file.
53254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53255         HAVE_FTELLO.
53256         * lib/stdio_.h (ftello): New declaration.
53257         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53258         HAVE_FTELLO.
53259
53260 2007-04-25  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/fseeko-tests: New file.
53263         * tests/test-fseeko.c: New file.
53264
53265         * modules/fseeko: New file.
53266         * m4/fseeko.m4: New file.
53267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53268         HAVE_FSEEKO.
53269         * lib/stdio_.h (fseeko): New declaration.
53270         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53271         HAVE_FSEEKO.
53272
53273 2007-04-25  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53276
53277 2007-04-25  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53280         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53281         * tests/test-unistd.c: Likewise.
53282         * tests/test-fcntl.c: Likewise.
53283
53284 2007-04-23  Eric Blake  <ebb9@byu.net>
53285
53286         * lib/fflush.c: Fix missing include.
53287         Reported by Bruno Haible.
53288
53289 2007-04-23  Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53292         Reported by Eric Blake.
53293
53294 2007-04-23  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53297
53298 2007-04-23  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53301
53302 2007-04-23  Bruno Haible  <bruno@clisp.org>
53303
53304         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53305         Needed on HP-UX 11.
53306
53307 2007-04-16  Eric Blake  <ebb9@byu.net>
53308
53309         Make fflush rely on fpurge.
53310         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53311         open coding all variants.
53312         * modules/fflush (Depends-on): Add fpurge and unistd.
53313         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53314         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53315
53316         Fix --with-tests compilation on cygwin.
53317         * modules/argmatch-tests (Makefile.am): List gnulib library first
53318         in LDADD.
53319         * modules/argp-tests (Makefile.am): Likewise.
53320         * modules/array-list-tests (Makefile.am): Likewise.
53321         * modules/array-oset-tests (Makefile.am): Likewise.
53322         * modules/avltree-list-tests (Makefile.am): Likewise.
53323         * modules/avltree-oset-tests (Makefile.am): Likewise.
53324         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53325         * modules/carray-list-tests (Makefile.am): Likewise.
53326         * modules/dirname-tests (Makefile.am): Likewise.
53327         * modules/frexp-tests (Makefile.am): Likewise.
53328         * modules/isnanl-tests (Makefile.am): Likewise.
53329         * modules/linked-list-tests (Makefile.am): Likewise.
53330         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53331         * modules/lock-tests (Makefile.am): Likewise.
53332         * modules/rbtree-list-tests (Makefile.am): Likewise.
53333         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53334         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53335         * modules/tls-tests (Makefile.am): Likewise.
53336         * modules/tsearch-tests (Makefile.am): Likewise.
53337         * modules/xvasprintf-tests (Makefile.am): Likewise.
53338
53339         Fix fpurge for cygwin.
53340         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53341         value.
53342         * modules/fpurge-tests (Depends-on): Clean up trash.
53343
53344 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53345
53346         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53347
53348         * m4/autobuild.m4: Re-indent.
53349
53350 2007-04-13  Bruno Haible  <bruno@clisp.org>
53351
53352         * modules/fpurge-tests: New file.
53353         * tests/test-fpurge.c: New file.
53354
53355         * modules/fpurge: New file.
53356         * lib/fpurge.h: New file.
53357         * lib/fpurge.c: New file.
53358         * m4/fpurge.m4: New file.
53359
53360 2007-04-13  Bruno Haible  <bruno@clisp.org>
53361
53362         * modules/fbufmode-tests: New file.
53363         * tests/test-fbufmode.c: New file.
53364
53365         * modules/fbufmode: New file.
53366         * lib/fbufmode.h: New file.
53367         * lib/fbufmode.c: New file.
53368         * m4/fbufmode.m4: New file.
53369
53370 2007-04-13  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/fwritable-tests: New file.
53373         * tests/test-fwritable.c: New file.
53374
53375         * modules/fwritable: New file.
53376         * lib/fwritable.h: New file.
53377         * lib/fwritable.c: New file.
53378         * m4/fwritable.m4: New file.
53379
53380 2007-04-13  Bruno Haible  <bruno@clisp.org>
53381
53382         * modules/freadable-tests: New file.
53383         * tests/test-freadable.c: New file.
53384
53385         * modules/freadable: New file.
53386         * lib/freadable.h: New file.
53387         * lib/freadable.c: New file.
53388         * m4/freadable.m4: New file.
53389
53390 2007-04-13  Bruno Haible  <bruno@clisp.org>
53391
53392         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53393         MOSTLYCLEANFILES.
53394
53395 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53396
53397         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53398         gzip bootstrap.conf to avoid dragging in i18n machinery.
53399         (gnulib_tool_option): Use it.
53400
53401 2007-04-13  Bruno Haible  <bruno@clisp.org>
53402
53403         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53404         %F directives.
53405         * tests/test-vasprintf-posix.c (test_function): Likewise.
53406         * tests/test-snprintf-posix.h (test_function): Likewise.
53407         * tests/test-sprintf-posix.h (test_function): Likewise.
53408         * tests/test-fprintf-posix.h (test_function): Likewise.
53409         * tests/test-printf-posix.h (test_function): Likewise.
53410         * tests/test-fprintf-posix.out: Likewise.
53411
53412 2007-04-13  Bruno Haible  <bruno@clisp.org>
53413
53414         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53415         * modules/tls-tests (configure.ac): Likewise.
53416         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53417
53418 2007-04-13  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/tls.c (glthread_tls_get): Fix return type.
53421         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53422
53423 2007-04-12  Eric Blake  <ebb9@byu.net>
53424
53425         * modules/gettime (Depends-on): Remove gettime.
53426         Reported by Dmitry V. Levin.
53427
53428 2007-04-12  Bruno Haible  <bruno@clisp.org>
53429
53430         * modules/fflush (Include): Mention <stdio.h>.
53431         * modules/strtoimax (Include): Mention <inttypes.h>.
53432         * modules/strtoumax (Include): Likewise.
53433
53434 2007-04-12  Eric Blake  <ebb9@byu.net>
53435
53436         * .cvsignore: New file.
53437         * .gitignore: Likewise.
53438
53439 2007-04-12  Bruno Haible  <bruno@clisp.org>
53440
53441         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53442         not before, since $(LDADD) often contains libgnu.a.
53443         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53444         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53445         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53446         Needed on Cygwin.
53447
53448 2007-04-12  Eric Blake  <ebb9@byu.net>
53449
53450         Work around glibc's failure to flush stdin on fclose.
53451         * lib/closein.c (close_stdin): Flush stdin before closing.
53452
53453         Work around glibc's failure to reset seekable stdin on exit.
53454         * modules/closein: New module.
53455         * lib/closein.c: New file.
53456         * lib/closein.h: Likewise.
53457         * m4/closein.m4: Likewise.
53458         * MODULES.html.sh (File stream based Input/Output): Document it.
53459
53460 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53461
53462         * gnulib-tool: Rename generated 'autobuild' script to
53463         'do-autobuild' in --create-megatestdir output.
53464
53465         * doc/gnulib.texi (Build robot for gnulib): Fix.
53466
53467 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53468
53469         * modules/sysexits (Depends-on): Add absolute-header.
53470
53471 2007-04-12  Eric Blake  <ebb9@byu.net>
53472
53473         No need to preserve errno on success.
53474         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53475         Reported by Bruno Haible.
53476
53477 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53478
53479         * MODULES.html.sh (Support for maintaining and releasing
53480         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53481
53482 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53483
53484         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53485
53486 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53487
53488         * modules/autobuild: New module.
53489
53490         * m4/autobuild.m4: New file.
53491
53492 2007-04-11  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53495         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53498         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53522         Reported by Eric Blake.
53523
53524 2007-04-11  Bruno Haible  <bruno@clisp.org>
53525
53526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53527
53528 2007-04-10  Bruno Haible  <bruno@clisp.org>
53529
53530         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53531         for NaN and Infinity. Needed on FreeBSD 6.1.
53532         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53533         regarding results for "%010a" of Infinity and NaN.
53534         * tests/test-vasprintf-posix.c (test_function): Likewise.
53535         * tests/test-snprintf-posix.h (test_function): Likewise.
53536         * tests/test-sprintf-posix.h (test_function): Likewise.
53537         * tests/test-fprintf-posix.h (test_function): Likewise.
53538         * tests/test-printf-posix.h (test_function): Likewise.
53539         * tests/test-fprintf-posix.out: Likewise.
53540
53541 2007-04-10  Bruno Haible  <bruno@clisp.org>
53542
53543         * modules/locale-tests: New file.
53544         * tests/test-locale.c: New file.
53545
53546         * modules/locale: New file.
53547         * lib/locale_.h: New file.
53548         * m4/locale_h.m4: New file.
53549
53550 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53551             Bruno Haible  <bruno@clisp.org>
53552
53553         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53554         be determined, test for availability of the copysignf, copysign,
53555         copysignl functions.
53556         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53557         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53558         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53559
53560 2007-04-09  Eric Blake  <ebb9@byu.net>
53561
53562         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53563         * modules/stdio (Makefile.am): Support fflush.
53564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53565         * modules/fflush: New file.
53566         * lib/fflush.c: Likewise.
53567         * m4/fflush.m4: Likewise.
53568         * modules/fflush-tests: New test.
53569         * tests/test-fflush.c: Likewise.
53570         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53571
53572 2007-04-06  Bruno Haible  <bruno@clisp.org>
53573
53574         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53575         (VASNPRINTF): Use signbit for faster determination whether to print a
53576         minus sign.
53577         * modules/vasnprintf (Files): Remove lib/float+.h.
53578         * modules/fprintf-posix (Depends-on): Add signbit.
53579         * modules/snprintf-posix (Depends-on): Likewise.
53580         * modules/sprintf-posix (Depends-on): Likewise.
53581         * modules/vasnprintf-posix (Depends-on): Likewise.
53582         * modules/vasprintf-posix (Depends-on): Likewise.
53583         * modules/vfprintf-posix (Depends-on): Likewise.
53584         * modules/vsnprintf-posix (Depends-on): Likewise.
53585         * modules/vsprintf-posix (Depends-on): Likewise.
53586
53587 2007-04-06  Bruno Haible  <bruno@clisp.org>
53588
53589         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53590         * tests/test-frexpl.c (main): Likewise.
53591         * tests/test-ldexpl.c (main): Likewise.
53592         * modules/frexp-tests (Depends-on): Add signbit.
53593         * modules/frexpl-tests (Depdends-on): Likewise.
53594         * modules/ldexpl-tests (Depdends-on): Likewise.
53595
53596 2007-04-06  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/signbit-tests: New file.
53599         * tests/test-signbit.c: New file.
53600
53601         * modules/signbit: New file.
53602         * lib/signbitf.c: New file.
53603         * lib/signbitd.c: New file.
53604         * lib/signbitl.c: New file.
53605         * m4/signbit.m4: New file.
53606         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53607         (signbit): New macro.
53608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53609         REPLACE_SIGNBIT.
53610         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53611         REPLACE_FREXPL into math.h.
53612
53613 2007-04-06  Bruno Haible  <bruno@clisp.org>
53614
53615         * modules/isnanf-nolibm-tests: New file.
53616         * tests/test-isnanf.c: New file.
53617
53618         * modules/isnanf-nolibm: New file.
53619         * lib/isnanf.h: New file.
53620         * lib/isnanf.c: New file.
53621         * lib/isnan.c: Consider the USE_FLOAT macro.
53622         * m4/isnanf.m4: New file.
53623
53624 2007-04-06  Bruno Haible  <bruno@clisp.org>
53625
53626         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53627         (Link): New section.
53628
53629         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53630
53631 2007-04-06  Bruno Haible  <bruno@clisp.org>
53632
53633         Assume the 'long double' type.
53634         * m4/longdouble.m4: Remove file.
53635         * config/srclist.txt: Don't mention longdouble.m4.
53636         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53637         * lib/float+.h: Likewise.
53638         * lib/frexp.c: Likewise.
53639         * lib/printf-args.h: Likewise.
53640         * lib/printf-args.c: Likewise.
53641         * lib/printf-frexp.c: Likewise.
53642         * lib/printf-parse.c: Likewise.
53643         * lib/vasnprintf.c: Likewise.
53644         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53645         * m4/intl.m4: Likewise.
53646         * m4/isnanl.m4: Likewise.
53647         * m4/printf.m4: Likewise.
53648         * m4/printf-frexpl.m4: Likewise.
53649         * m4/vasnprintf.m4: Likewise.
53650         * modules/allocsa (Files): Remove m4/longdouble.m4.
53651         * modules/gettext (Files): Likewise.
53652         * modules/relocatable-prog-wrapper (Files): Likewise.
53653         * modules/vasnprintf (Files): Likewise.
53654         * modules/isnanl (Files): Likewise.
53655         (Include): Simplify.
53656         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53657         (Include): Simplify.
53658         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53659         (Include): Simplify.
53660         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53661         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53662         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53663         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53664         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53665         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53666         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53667         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53668         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53670         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53672         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53673         * tests/test-isnanl.c: Likewise.
53674         * tests/test-snprintf-posix.h: Likewise.
53675         * tests/test-sprintf-posix.h: Likewise.
53676         * tests/test-vasnprintf-posix.c: Likewise.
53677         * tests/test-vasnprintf-posix2.c: Likewise.
53678         * tests/test-vasprintf-posix.c: Likewise.
53679
53680 2007-04-06  Bruno Haible  <bruno@clisp.org>
53681
53682         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53683         * lib/math_.h [__DECC]: Include the overridden include file through
53684         #include_next, outside the double-inclusion guard.
53685         * lib/stdio_.h [__DECC]: Likewise.
53686         * lib/stdlib_.h [__DECC]: Likewise.
53687         * lib/string_.h [__DECC]: Likewise.
53688         * lib/time_.h [__DECC]: Likewise.
53689         * lib/wchar_.h [__DECC]: Likewise.
53690         * lib/wctype_.h [__DECC]: Likewise.
53691         * lib/inttypes_.h [__DECC]: Likewise.
53692         Reported by Albert Chin <china@thewrittenword.com> in
53693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53694
53695 2007-04-04  Eric Blake  <ebb9@byu.net>
53696
53697         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53698         1.5.x.
53699
53700 2007-04-04  Bruno Haible  <bruno@clisp.org>
53701
53702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53703         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53704
53705 2007-04-04  Bruno Haible  <bruno@clisp.org>
53706
53707         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53708         results for "%010a" of Infinity and NaN.
53709         * tests/test-vasprintf-posix.c (test_function): Likewise.
53710         * tests/test-snprintf-posix.h (test_function): Likewise.
53711         * tests/test-sprintf-posix.h (test_function): Likewise.
53712         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53713         * tests/test-printf-posix.h (test_function): Likewise.
53714         * tests/test-fprintf-posix.out: Update.
53715         Needed for FreeBSD 6.1.
53716
53717 2007-04-04  Bruno Haible  <bruno@clisp.org>
53718
53719         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53720         directly used by the gnulib modules nor by gnulib-tool.
53721
53722 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53723
53724         * DEPENDENCIES: Give overall description of version dependency
53725         desirability.  Use more-typical names for apps.
53726         Add shell, coreutils, diffutils, grep, tar, gzip.
53727
53728 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53729
53730         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53731
53732 2007-04-04  Karl Berry  <karl@gnu.org>
53733
53734         * MODULES.html.sh (func_module): missing '.
53735
53736 2007-04-03  Bruno Haible  <bruno@clisp.org>
53737
53738         * modules/argmatch-tests (Makefile.am): New variable
53739         test_argmatch_LDADD.
53740         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53741         * modules/array-list-tests (Makefile.am): New variable
53742         test_array_list_LDADD.
53743         * modules/array-oset-tests (Makefile.am): New variable
53744         test_array_oset_LDADD.
53745         * modules/avltree-list-tests (Makefile.am): New variable
53746         test_avltree_list_LDADD.
53747         * modules/avltree-oset-tests (Makefile.am): New variable
53748         test_avltree_oset_LDADD.
53749         * modules/avltreehash-list-tests (Makefile.am): New variable
53750         test_avltreehash_list_LDADD.
53751         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53752         test_canonicalize_lgpl_LDADD.
53753         * modules/carray-list-tests (Makefile.am): New variable
53754         test_carray_list_LDADD.
53755         * modules/dirname-tests (Makefile.am): New variable
53756         test_dirname_LDADD.
53757         * modules/linked-list-tests (Makefile.am): New variable
53758         test_linked_list_LDADD.
53759         * modules/linkedhash-list-tests (Makefile.am): New variable
53760         test_linkedhash_list_LDADD.
53761         * modules/rbtree-list-tests (Makefile.am): New variable
53762         test_rbtree_list_LDADD.
53763         * modules/rbtree-oset-tests (Makefile.am): New variable
53764         test_rbtree_oset_LDADD.
53765         * modules/rbtreehash-list-tests (Makefile.am): New variable
53766         test_rbtreehash_list_LDADD.
53767         * modules/xvasprintf-tests (Makefile.am): New variable
53768         test_xvasprintf_LDADD.
53769         Reported by Eric Blake.
53770
53771 2007-04-03  Eric Blake  <ebb9@byu.net>
53772
53773         * DEPENDENCIES: Weaken m4 requirements.
53774
53775 2007-04-03  Bruno Haible  <bruno@clisp.org>
53776
53777         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53778         * modules/isnanl-tests (configure.ac): Likewise.
53779
53780 2007-04-03  Ben Pfaff  <blp@gnu.org>
53781
53782         * modules/iconv_open: Add $(srcdir)/ to source directory
53783         references in Makefile fragments that call gperf, to fix VPATH
53784         builds.
53785
53786 2007-04-03  Bruno Haible  <bruno@clisp.org>
53787
53788         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53789         * lib/ldexpl.c: Undo last change.
53790
53791 2007-04-03  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/printf-frexpl (Depends-on): Undo last change.
53794         (Files): Add m4/ldexpl.m4.
53795
53796 2007-04-03  Bruno Haible  <bruno@clisp.org>
53797
53798         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53799         * modules/isnanl (Link): New section.
53800
53801         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53802         * modules/frexp (Link): New section.
53803
53804         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53805         * modules/frexpl (Link): New section.
53806
53807         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53808         * modules/ldexpl (Link): New section.
53809
53810 2007-04-03  Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/TEMPLATE-EXTENDED: New file.
53813         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53814
53815 2007-04-03  Bruno Haible  <bruno@clisp.org>
53816
53817         * DEPENDENCIES: New file.
53818         Suggested by Simon Josefsson.
53819
53820 2007-04-03  Bruno Haible  <bruno@clisp.org>
53821
53822         * doc/gnulib.texi: Escape @.
53823
53824 2007-04-03  James Youngman  <jay@gnu.org>
53825         and Paul Eggert  <eggert@cs.ucla.edu>
53826
53827         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53828         birthtime on all systems that have birthtime, not just those which
53829         use st_birthtimensec rather than st_birthtim.  Putting zero in
53830         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53831         that the birth time is not available for files on an NFS mount.
53832
53833 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53834
53835         * modules/memxor: Move back from crypto/, suggested by Bruno.
53836         * modules/crypto/hmac-sha1: Fix memxor dependency.
53837
53838         * modules/crypto/gc: Moved from ../.
53839
53840 2007-04-02  Eric Blake  <ebb9@byu.net>
53841
53842         * lib/ldexpl.c (includes): Avoid libm.
53843
53844         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53845
53846 2007-04-02  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53849         on IRIX.
53850
53851 2007-04-02  Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53854         x86 or x86_64 platforms running MacOS X.
53855         Reported by Ryan Schmidt <@ryandesign.com>.
53856
53857 2007-04-02  Bruno Haible  <bruno@clisp.org>
53858
53859         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53860         i386.
53861
53862 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53863
53864         * modules/crypto/arcfour: Moved from ../.
53865         * modules/crypto/arcfour-tests: Moved from ../.
53866         * modules/crypto/arctwo: Moved from ../.
53867         * modules/crypto/arctwo-tests: Moved from ../.
53868         * modules/crypto/des: Moved from ../.
53869         * modules/crypto/des-tests: Moved from ../.
53870         * modules/crypto/gc-arcfour: Moved from ../.
53871         * modules/crypto/gc-arcfour-tests: Moved from ../.
53872         * modules/crypto/gc-arctwo: Moved from ../.
53873         * modules/crypto/gc-arctwo-tests: Moved from ../.
53874         * modules/crypto/gc-des: Moved from ../.
53875         * modules/crypto/gc-des-tests: Moved from ../.
53876         * modules/crypto/gc-hmac-md5: Moved from ../.
53877         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53878         * modules/crypto/gc-hmac-sha1: Moved from ../.
53879         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53880         * modules/crypto/gc-md2: Moved from ../.
53881         * modules/crypto/gc-md2-tests: Moved from ../.
53882         * modules/crypto/gc-md4: Moved from ../.
53883         * modules/crypto/gc-md4-tests: Moved from ../.
53884         * modules/crypto/gc-md5: Moved from ../.
53885         * modules/crypto/gc-md5-tests: Moved from ../.
53886         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53887         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53888         * modules/crypto/gc-random: Moved from ../.
53889         * modules/crypto/gc-rijndael: Moved from ../.
53890         * modules/crypto/gc-rijndael-tests: Moved from ../.
53891         * modules/crypto/gc-sha1: Moved from ../.
53892         * modules/crypto/gc-sha1-tests: Moved from ../.
53893         * modules/crypto/gc-tests: Moved from ../.
53894         * modules/crypto/hmac-md5: Moved from ../.
53895         * modules/crypto/hmac-md5-tests: Moved from ../.
53896         * modules/crypto/hmac-sha1: Moved from ../.
53897         * modules/crypto/hmac-sha1-tests: Moved from ../.
53898         * modules/crypto/md2: Moved from ../.
53899         * modules/crypto/md2-tests: Moved from ../.
53900         * modules/crypto/md4: Moved from ../.
53901         * modules/crypto/md4-tests: Moved from ../.
53902         * modules/crypto/md5: Moved from ../.
53903         * modules/crypto/md5-tests: Moved from ../.
53904         * modules/crypto/memxor: Moved from ../.
53905         * modules/crypto/rijndael: Moved from ../.
53906         * modules/crypto/rijndael-tests: Moved from ../.
53907         * modules/crypto/sha1: Moved from ../.
53908
53909 2007-03-30  James Youngman  <jay@gnu.org>
53910
53911         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53912         rename() to change the ctime of a file (because ctime is unaffected
53913         by rename on jfs2 on AIX 5.1).
53914         (main): Start by doing cleanup, in case a previous run failed leaving
53915         test files behind.
53916
53917 2007-03-31  Bruno Haible  <bruno@clisp.org>
53918
53919         Support old proprietary implementations of iconv.
53920         * modules/iconv_open: New file.
53921         * lib/iconv_.h: New file.
53922         * m4/iconv_h.m4: New file.
53923         * lib/iconv_open.c: New file.
53924         * lib/iconv_open-aix.gperf: New file.
53925         * lib/iconv_open-hpux.gperf: New file.
53926         * lib/iconv_open-irix.gperf: New file.
53927         * lib/iconv_open-osf.gperf: New file.
53928         * m4/iconv_open.m4: New file.
53929         * modules/linebreak (Depends-on): Add iconv_open.
53930         * modules/striconv (Depends-on): Likewise.
53931         * modules/striconveh (Depends-on): Likewise.
53932         * modules/unicodeio (Depends-on): Likewise.
53933         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53934         (iconv_t)(-1).
53935         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53936         conversion if cd is (iconv_t)(-1).
53937         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53938         is not possible.
53939
53940 2007-03-31  Bruno Haible  <bruno@clisp.org>
53941
53942         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53943         work on Solaris either. Protect also second use of "autodetect_jp".
53944
53945 2007-03-31  Bruno Haible  <bruno@clisp.org>
53946
53947         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53948         the function is not present.
53949
53950 2007-03-31  Bruno Haible  <bruno@clisp.org>
53951
53952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53953         the function is not present.
53954
53955 2007-03-31  Bruno Haible  <bruno@clisp.org>
53956
53957         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53958         a bug in HP-UX iconv_open().
53959
53960 2007-03-31  Bruno Haible  <bruno@clisp.org>
53961
53962         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53963         (Mathematics <math.h>): New section, add fpieee.
53964         (Input/output <stdio.h>): Add fseterr.
53965         (Mathematics <math.h>): New section, add printf-frexp.
53966         (Container data structures): Add sublist.
53967         (Core language properties): Add fpucw, inline.
53968         (Functions for greatest-width integer types <inttypes.h>): Add
53969         imaxabs, imaxdiv, inttypes.
53970         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53971         isnanl-nolibm, ldexp.
53972         (Mathematics <math.h>): New section, add printf-frexpl.
53973         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53974         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53975         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53976         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53977         (Unicode string functions): Add unistr/u*-mbtoucr.
53978         (Java): Add javacomp-script, javaexec-script.
53979         (C#): Add csharpcomp-script, csharpexec-script.
53980         (Support for building libraries and executables): Add havelib,
53981         relocatable-*.
53982         (Support for maintaining and releasing projects): Renamed from
53983         'Support for maintaining and release projects'. Add announce-gen.
53984
53985 2007-03-31  Bruno Haible  <bruno@clisp.org>
53986
53987         * README: Talk primarily about git.
53988         (git and CVS): Renamed from CVS.
53989         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53990         gnulib is available through git.
53991         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53992
53993 2007-03-30  Bruno Haible  <bruno@clisp.org>
53994
53995         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53996         * lib/poll_.h: Likewise.
53997         * lib/stat_.h: Likewise.
53998         * lib/sys_time_.h: Likewise.
53999         * lib/sysexit_.h: Likewise.
54000         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54001         * lib/stdbool_.h: Likewise.
54002         * lib/byteswap_.h: Add double-inclusion guard.
54003
54004 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54005
54006         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54007
54008 2007-03-30  Karl Berry  <karl@gnu.org>
54009
54010         * config/srclist-update: double space after USA in the license
54011         substitution, since that's how it's usually (?) written.
54012
54013 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54016         reported by Bruno Haible.
54017
54018 2007-03-29  Bruno Haible  <bruno@clisp.org>
54019
54020         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54021         a bug in AIX iconv().
54022
54023 2007-03-29  Bruno Haible  <bruno@clisp.org>
54024
54025         * modules/ldexpl-tests: New file.
54026         * tests/test-ldexpl.c: New file.
54027
54028 2007-03-29  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/ldexpl.c: Include fpucw.h.
54031         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54032         multiplication.
54033         * modules/ldexpl (Depends-on): Add fpucw.
54034
54035 2007-03-29  Bruno Haible  <bruno@clisp.org>
54036
54037         * modules/ldexpl: New file.
54038         * m4/ldexpl.m4: New file.
54039         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54040         set.
54041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54042         REPLACE_LDEXPL.
54043         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54044         REPLACE_LDEXPL.
54045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54046         gl_FUNC_LDEXPL_WORKS.
54047         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54048         * modules/mathl (Files): Remove lib/ldexpl.c.
54049         (Depends-on): Add ldexpl.
54050
54051 2007-03-29  Bruno Haible  <bruno@clisp.org>
54052
54053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54054
54055 2007-03-29  Bruno Haible  <bruno@clisp.org>
54056
54057         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54058         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54059         and possibly also HP-UX.
54060         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54061         work on AIX, IRIX, HP-UX, OSF/1.
54062         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54063         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54064         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54065         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54066         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54067         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54068
54069 2007-03-29  Bruno Haible  <bruno@clisp.org>
54070
54071         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54072
54073 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54074
54075         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54076         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54077
54078 2007-03-29  Eric Blake  <ebb9@byu.net>
54079
54080         * lib/acl-internal.h: Remove redundant include.
54081         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54082         Cygwin when a file is locked.
54083
54084 2007-03-29  Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54087         file.
54088         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54089
54090 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54091
54092         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54093         try to remove a parent directory if the child couldn't be removed
54094         (except for the first rmdir, which could fail because the child
54095         doesn't exist).  Problem reported by Jeff Blaine in
54096         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54097
54098 2007-03-28  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/striconveh.c (utf8conv_carefully): New function.
54101         (mem_cd_iconveh_internal): Invoke it.
54102
54103 2007-03-28  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54106         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54107         input.
54108         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54109         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54110         unistr/u8-uctomb.
54111
54112 2007-03-28  Bruno Haible  <bruno@clisp.org>
54113
54114         * modules/unistr/u8-mbtoucr: New file.
54115         * lib/unistr/u8-mbtoucr.c: New file.
54116         * modules/unistr/u16-mbtoucr: New file.
54117         * lib/unistr/u16-mbtoucr.c: New file.
54118         * modules/unistr/u16-mbtoucr: New file.
54119         * lib/unistr/u16-mbtoucr.c: New file.
54120         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54121
54122 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54123             Bruno Haible  <bruno@clisp.org>
54124
54125         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54126         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54127         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54128
54129         * m4/stdio_h.m4: Add stubs for vasprintf too.
54130
54131         * modules/stdio: Support vasprintf in sed command.
54132
54133         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54134         vasprintf.h.  Add stdio module indicator.
54135
54136         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54137         vasprintf.h.
54138
54139         * lib/vasprintf.h: File removed.
54140
54141         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54142         * lib/vasprintf.c: Ditto.
54143         * lib/xvasprintf.c: Ditto.
54144         * tests/test-vasprintf-posix.c: Ditto.
54145         * tests/test-vasprintf.c: Ditto.
54146
54147 2007-03-27  Bruno Haible  <bruno@clisp.org>
54148
54149         Make vasnprintf multithread-safe.
54150         * lib/vasnprintf.c (decimal_point_char): New function.
54151         (VASNPRINTF): Use it.
54152         Suggested by Simon Josefsson.
54153
54154 2007-03-27  Eric Blake  <ebb9@byu.net>
54155
54156         Support sub-second birthtime on cygwin.
54157         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54158         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54159         (get_stat_birthtime): Also work with st_birthtim.
54160
54161 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54162
54163         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54164         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54165         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54166         (get_stat_birthtime_ns): Simplify compile-time tests.
54167         (get_stat_birthtime): Change the API to look like
54168         get_stat_mtime etc., except return a negative tv_nsec on error.
54169         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54170         Don't check for "spare" fields.
54171         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54172         or for struct stat.st_birthtime, as these tests aren't used.
54173         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54174
54175 2007-03-27  Bruno Haible  <bruno@clisp.org>
54176
54177         * lib/stat-time.h: Include <sys/stat.h>.
54178
54179 2007-03-27  James Youngman  <jay@gnu.org>
54180
54181         * lib/stat-time.h (get_stat_birthtime): New function for
54182           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54183         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54184           and its variants.
54185         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54186         * modules/stat-time-test: New file.
54187         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54188
54189 2007-03-26  Bruno Haible  <bruno@clisp.org>
54190
54191         Better support of signalling NaNs.
54192         * lib/atanl.c: Include isnanl.h.
54193         (atanl): Perform test for NaN at the beginning of the function and
54194         through a call to isnanl.
54195         * lib/cosl.c: Include isnanl.h.
54196         (cosl): Perform test for NaN at the beginning of the function and
54197         through a call to isnanl.
54198         * lib/ldexpl.c: Include isnanl.h.
54199         (ldexpl): Perform test for NaN through a call to isnanl.
54200         * lib/logl.c: Include isnanl.h.
54201         (logl): Perform test for NaN at the beginning of the function and
54202         through a call to isnanl.
54203         * lib/sinl.c: Include isnanl.h.
54204         (sinl): Perform test for NaN at the beginning of the function and
54205         through a call to isnanl.
54206         * lib/sqrtl.c: Include isnanl.h.
54207         (sqrtl): Perform test for NaN at the beginning of the function and
54208         through a call to isnanl.
54209         * lib/tanl.c: Include isnanl.h.
54210         (tanl): Perform test for NaN at the beginning of the function and
54211         through a call to isnanl.
54212         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54213         * modules/mathl (Depends-on): Add isnanl.
54214
54215 2007-03-26  Eric Blake  <ebb9@byu.net>
54216
54217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54218         regression in logic sense of previous patch.
54219
54220 2007-03-26  Bruno Haible  <bruno@clisp.org>
54221
54222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54223         unportable shell command "if ! ...".
54224         Reported by Ralf Wildenhues.
54225
54226 2007-03-25  Bruno Haible  <bruno@clisp.org>
54227
54228         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54229         <sysexits.h> file, and only add EX_CONFIG.
54230         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54231         absolute file name and whether it is sufficient. Substitute also
54232         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54233         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54234         ABSOLUTE_SYSEXITS_H into sysexits.h.
54235
54236 2007-03-25  Bruno Haible  <bruno@clisp.org>
54237
54238         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54239         hints is NULL.
54240
54241 2007-03-25  Bruno Haible  <bruno@clisp.org>
54242
54243         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54244         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54245
54246 2007-03-25  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/vasnprintf.c: Include langinfo.h.
54249         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54250         multithread-safe.
54251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54252         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54254         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54260         Reported by Simon Josefsson.
54261
54262 2007-03-25  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54265         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54266         * modules/vasnprintf (Depends-on): Add stdint.
54267
54268 2007-03-25  Bruno Haible  <bruno@clisp.org>
54269
54270         * modules/fpieee: New file.
54271         * m4/fpieee.m4: New file.
54272         * modules/isnan-nolibm (Depends-on): Add fpieee.
54273         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54274         * modules/isnanl (Depends-on): Add fpieee.
54275
54276 2007-03-25  Bruno Haible  <bruno@clisp.org>
54277
54278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54279
54280 2007-03-25  Bruno Haible  <bruno@clisp.org>
54281
54282         Avoid test failures on IRIX 6.5.
54283         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54284         (main): Use it.
54285         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54286         macros.
54287         (main): Use them.
54288
54289 2007-03-25  Bruno Haible  <bruno@clisp.org>
54290
54291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54292         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54293         exists but doesn't work.
54294         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54295         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54297         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54298         math.h.
54299
54300 2007-03-25  Bruno Haible  <bruno@clisp.org>
54301
54302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54303         returns inf. Needed on IRIX 6.5.
54304
54305 2007-03-25  Bruno Haible  <bruno@clisp.org>
54306
54307         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54308         (main): Use isnanl instead of x != x idiom.
54309         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54310
54311         * tests/test-frexp.c: Include isnan.h.
54312         (main): Use isnan instead of x != x idiom.
54313         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54314
54315 2007-03-25  Bruno Haible  <bruno@clisp.org>
54316
54317         * tests/test-frexp.c (NaN): New function/macro.
54318         (main): Use it instead of 0.0 / 0.0.
54319         * tests/test-isnan.c (NaN): New function/macro.
54320         (main): Use it instead of 0.0 / 0.0.
54321         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54322         (test_function): Use it instead of 0.0 / 0.0.
54323         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54324         (test_function): Use it instead of 0.0 / 0.0.
54325         * tests/test-snprintf-posix.h (NaN): New function/macro.
54326         (test_function): Use it instead of 0.0 / 0.0.
54327         * tests/test-sprintf-posix.h (NaN): New function/macro.
54328         (test_function): Use it instead of 0.0 / 0.0.
54329         * tests/test-fprintf-posix.h (NaN): New function/macro.
54330         (test_function): Use it instead of 0.0 / 0.0.
54331         * tests/test-printf-posix.h (NaN): New function/macro.
54332         (test_function): Use it instead of 0.0 / 0.0.
54333
54334         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54335
54336 2007-03-25  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54339
54340 2007-03-25  Bruno Haible  <bruno@clisp.org>
54341
54342         * lib/regexec.c (merge_state_with_log): Make static.
54343
54344 2007-03-25  Bruno Haible  <bruno@clisp.org>
54345
54346         * lib/trigl.c (kernel_rem_pio2): Make static.
54347
54348 2007-03-25  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/sincosl.c (sincosl_table): Make static.
54351
54352 2007-03-25  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54355         if the compiler does not support C99.
54356
54357 2007-03-25  Bruno Haible  <bruno@clisp.org>
54358
54359         * modules/time (Makefile.am): Ensure all rule action lines start with a
54360         tab.
54361
54362 2007-03-24  Bruno Haible  <bruno@clisp.org>
54363
54364         * modules/tsearch-tests: New file.
54365         * tests/test-tsearch.sh: New file.
54366         * tests/test-tsearch.c: New file, mostly copied from glibc.
54367
54368         * modules/search-tests: New file.
54369         * tests/test-search.c: New file.
54370
54371         * modules/search: New file.
54372         * lib/search_.h: New file, incorporating lib/tsearch.h.
54373         * m4/search_h.m4: New file.
54374         * lib/tsearch.h: Remove file.
54375         * lib/tsearch.c: Include search.h instead of tsearch.h.
54376         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54377         HAVE_TSEARCH.
54378         * modules/tsearch (Files): Remove lib/tsearch.h.
54379         (Depends-on): Add search.
54380         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54381         (Include): Change tsearch.h into search.h.
54382
54383 2007-03-24  Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/fpucw: New file.
54386         * lib/fpucw.h: New file.
54387         * lib/frexp.c: Include fpucw.h.
54388         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54389         (FUNC): Use them.
54390         * lib/printf-frexp.c: Include fpucw.h.
54391         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54392         (FUNC): Use them.
54393         * lib/vasnprintf.c: Include fpucw.h.
54394         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54395         'long double' calculations.
54396         * tests/test-frexpl.c: Include fpucw.h.
54397         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54398         * tests/test-printf-frexpl.c: Include fpucw.h.
54399         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54400         * modules/frexpl (Depends-on): Add fpucw.
54401         * modules/printf-frexpl (Depends-on): Likewise.
54402         * modules/fprintf-posix (Depends-on): Likewise.
54403         * modules/snprintf-posix (Depends-on): Likewise.
54404         * modules/sprintf-posix (Depends-on): Likewise.
54405         * modules/vasnprintf-posix (Depends-on): Likewise.
54406         * modules/vasprintf-posix (Depends-on): Likewise.
54407         * modules/vfprintf-posix (Depends-on): Likewise.
54408         * modules/vsnprintf-posix (Depends-on): Likewise.
54409         * modules/vsprintf-posix (Depends-on): Likewise.
54410         * modules/frexpl-tests (Depends-on): Likewise.
54411         * modules/printf-frexpl-tests (Depends-on): Likewise.
54412
54413 2007-03-24  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/float+.h: New file.
54416         * lib/isnan.c: Include float+.h.
54417         (SIZE): New macro.
54418         (FUNC): Compare only SIZE bytes of the value.
54419         * lib/vasnprintf.c: Include float+.h.
54420         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54421         SIZEOF_LDBL or SIZEOF_DBL bytes.
54422         * modules/isnan-nolibm (Files): Add lib/float+.h.
54423         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54424         * modules/isnanl (Files): Add lib/float+.h.
54425         * modules/vasnprintf (Files): Add lib/float+.h.
54426
54427 2007-03-24  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54430         include isnanl-nolibm.h.
54431
54432 2007-03-24  Bruno Haible  <bruno@clisp.org>
54433
54434         * tests/test-read-file.c (main): Don't produce spurious output for
54435         expected situations. Make the test fail if it encountered unexpected
54436         results.
54437
54438 2007-03-24  Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54441         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54442
54443 2007-03-24  Bruno Haible  <bruno@clisp.org>
54444
54445         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54446
54447 2007-03-24  Bruno Haible  <bruno@clisp.org>
54448
54449         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54450         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54451
54452         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54453         * modules/utf8-ucs4: Turn into a symbolic link to module
54454         unistr/u8-mbtouc.
54455
54456         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54457         utf8-ucs4-unsafe.
54458         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54459         unistr/u8-mbtouc-unsafe.
54460
54461         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54462         * modules/utf16-ucs4: Turn into a symbolic link to module
54463         unistr/u16-mbtouc.
54464
54465         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54466         utf16-ucs4-unsafe.
54467         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54468         unistr/u16-mbtouc-unsafe.
54469
54470         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54471         * modules/ucs4-utf8: Turn into a symbolic link to module
54472         unistr/u8-ubtomb.
54473
54474         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54475         * modules/ucs4-utf16: Turn into a symbolic link to module
54476         unistr/u16-ubtomb.
54477
54478 2007-03-24  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54481         Enable the function only if HAVE_INLINE.
54482         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54483         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54484         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54485         Enable the function only if HAVE_INLINE.
54486         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54487         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54488         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54489         Enable the function only if HAVE_INLINE.
54490         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54491         Enable the function only if HAVE_INLINE.
54492         * modules/utf8-ucs4: Update.
54493         * modules/utf8-ucs4-unsafe: Update.
54494         * modules/utf16-ucs4: Update.
54495         * modules/utf16-ucs4-unsafe: Update.
54496         * modules/ucs4-utf8: Update.
54497         * modules/ucs4-utf16: Update.
54498
54499 2007-03-24  Bruno Haible  <bruno@clisp.org>
54500
54501         * lib/utf8-ucs4.h: Remove file.
54502         * lib/utf8-ucs4-unsafe.h: Remove file.
54503         * lib/utf16-ucs4.h: Remove file.
54504         * lib/utf16-ucs4-unsafe.h: Remove file.
54505         * lib/ucs4-utf8.h: Remove file.
54506         * lib/ucs4-utf16.h: Remove file.
54507         * lib/unistr.h: Include their previous contents.
54508         * m4/utf-ucs4.m4: Remove file.
54509         * m4/ucs4-utf.m4: Remove file.
54510         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54511         (Depends-on): Add unistr/base.
54512         (configure.ac): Remove gl_UTF_UCS4.
54513         (Makefile.am): Update.
54514         (Include): Change to unistr.h.
54515         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54516         (Depends-on): Add unistr/base.
54517         (configure.ac): Remove gl_UTF_UCS4.
54518         (Makefile.am): Update.
54519         (Include): Change to unistr.h.
54520         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54521         (Depends-on): Add unistr/base.
54522         (configure.ac): Remove gl_UTF_UCS4.
54523         (Makefile.am): Update.
54524         (Include): Change to unistr.h.
54525         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54526         (Depends-on): Add unistr/base.
54527         (configure.ac): Remove gl_UTF_UCS4.
54528         (Makefile.am): Update.
54529         (Include): Change to unistr.h.
54530         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54531         (Depends-on): Add unistr/base.
54532         (configure.ac): Remove gl_UCS4_UTF.
54533         (Makefile.am): Update.
54534         (Include): Change to unistr.h.
54535         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54536         (Depends-on): Add unistr/base.
54537         (configure.ac): Remove gl_UCS4_UTF.
54538         (Makefile.am): Update.
54539         (Include): Change to unistr.h.
54540         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54541         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54542         utf8-ucs4-unsafe.h.
54543         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54544         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54545         utf16-ucs4-unsafe.h.
54546         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54547         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54548         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54549         * lib/unistr/u8-strchr.c: Likewise.
54550         * lib/unistr/u8-strrchr.c: Likewise.
54551         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54552         * lib/unistr/u16-strchr.c: Likewise.
54553         * lib/unistr/u16-strrchr.c: Likewise.
54554         * lib/striconveh.c: Update.
54555         * lib/linebreak.c: Update.
54556
54557 2007-03-24  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54560         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54561
54562 2007-03-22  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54565
54566 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         * MODULES.html.sh (File system functions): New module write-any-file.
54569         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54570         * m4/write-any-file.m4: New files.
54571
54572 2007-03-23  Eric Blake  <ebb9@byu.net>
54573
54574         * gnulib-tool: Rearrange space-tab sequences, since some editors
54575         like to eat them.
54576
54577 2007-03-23  Eric Blake  <ebb9@byu.net>
54578
54579         * lib/version-etc.c (version_etc_va): Update license wording to
54580         be more concise.  Recommended by Richard Stallman.
54581
54582 2007-03-22  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/poll.c (MSG_PEEK): New fallback definition.
54585
54586 2007-03-22  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54589         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54590         (main): Update.
54591         Fixes a compilation error on BeOS.
54592
54593 2007-03-22  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/frexpl-tests: New file.
54596         * tests/test-frexpl.c: New file.
54597
54598         * modules/frexpl: New file.
54599         * m4/frexpl.m4: New file.
54600         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54601         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54603         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54604         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54605         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54606
54607 2007-03-22  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/frexpl.c: Share code with lib/frexp.c.
54610         * modules/mathl (Files): Add lib/frexp.c.
54611         (Depends-on): Add isnanl-nolibm.
54612
54613 2007-03-22  Bruno Haible  <bruno@clisp.org>
54614
54615         * modules/printf-frexp (Files): Add m4/frexp.m4.
54616         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54617         only if the found frexp function actually works.
54618
54619 2007-03-22  Bruno Haible  <bruno@clisp.org>
54620
54621         * lib/frexp.c: Remove older implementation that uses divisions.
54622
54623 2007-03-21  Bruno Haible  <bruno@clisp.org>
54624
54625         * modules/frexp-tests: New file.
54626         * tests/test-frexp.c: New file.
54627
54628         * modules/frexp: New file.
54629         * lib/frexp.c: New file.
54630         * m4/frexp.m4: New file.
54631         * lib/math_.h (frexp): New declaration.
54632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54633         REPLACE_FREXP.
54634         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54635
54636 2007-03-21  Bruno Haible  <bruno@clisp.org>
54637
54638         * modules/isnanl-tests: New file.
54639         * tests/test-isnanl.c: New file.
54640
54641         * modules/isnanl: New file.
54642         * lib/isnanl.h: New file.
54643         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54644         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54645         gl_FUNC_ISNANL_WORKS.
54646         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54647         New macros.
54648
54649 2007-03-21  Bruno Haible  <bruno@clisp.org>
54650
54651         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54652         lib/isnanl.h.
54653         (Include): Update.
54654         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54655         * lib/vasnprintf.c: Update.
54656         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54657         tests/test-isnanl.h, remove tests/test-isnanl.c.
54658         (Makefile.am): Update.
54659         * tests/test-isnanl-nolibm.c: New file.
54660         * tests/test-isnanl.h: New file.
54661         * tests/test-isnanl.c: Remove file.
54662
54663 2007-03-21  Jim Meyering  <jim@meyering.net>
54664
54665         When trying to open ".", treat ESTALE like EACCES.
54666         * lib/savewd.c (savewd_save): Resort to forking not just upon
54667         failure with EACCES, but also when errno is ESTALE.
54668
54669 2007-03-20  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54672         Needed on AIX 5.1. Reported by Matthew Woehlke.
54673
54674 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         Suggestions by Bruno Haible:
54677         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54678         our own.
54679         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54680         * modules/acl (Depends-on): Add gettext.
54681
54682 2007-03-19  Bruno Haible  <bruno@clisp.org>
54683
54684         * modules/iconvme: Remove file.
54685         * lib/iconvme.h: Remove file.
54686         * lib/iconvme.c: Remove file.
54687         * m4/iconvme.m4: Remove file.
54688
54689 2007-03-19  Bruno Haible  <bruno@clisp.org>
54690
54691         * doc/relocatable-maint.texi: Break long shell script line.
54692         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54693
54694 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54695
54696         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54697         handle file_has_acl.
54698         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54699         * lib/acl.c: Move header inclusions and related macro defns into
54700         lib/acl-internal.h.
54701         (S_ISLNK): Remove defn, since that's now done for us.
54702         (file_has_acl): Move to lib/file-has-acl.c.
54703         Call acl_trivial if available.  This is the crucial part of the fix.
54704         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54705         shared within the library.  Rewrite a bit, partly to make it compatible
54706         with the GNU coding style.
54707         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54708         Remove unnecessary double-quotes.
54709         Don't test for acl_to_text; the build will catch that.
54710         Replace acl_entries if it doesn't exist and it is needed.
54711         Check for -lsec and acl_trivial (as used on Solaris 10).
54712         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54713         lib/file-has-acl.c.
54714         (Depends-on): Add sys_stat, for S_ISLNK.
54715
54716 2007-03-19  Ben Pfaff  <blp@gnu.org>
54717
54718         * doc/gnulib.texi: Fix typos.
54719         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54720
54721 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54722
54723         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54724         If size is zero here, buf must be zero.
54725
54726 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54727
54728         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54729         <bruno@clisp.org>.
54730
54731 2007-03-18  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54734         Suggested by Eric Blake.
54735
54736 2007-03-18  Ben Pfaff  <blp@gnu.org>
54737
54738         * doc/relocatable.texi: Recommend using as prefix a directory
54739         that does not exist and will never be created.  Based on
54740         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54741         and others.
54742
54743 2007-03-17  Bruno Haible  <bruno@clisp.org>
54744
54745         * lib/fchownat.c: Include lchown.h.
54746
54747 2007-03-17  Bruno Haible  <bruno@clisp.org>
54748
54749         Fix endless loop when the given allocated size was > INT_MAX.
54750         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54751         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54752         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54753         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54754         * lib/sprintf.c (sprintf): Likewise.
54755
54756 2007-03-17  Bruno Haible  <bruno@clisp.org>
54757
54758         * tests/test-argp-2.sh (func_compare): Output a context diff.
54759
54760 2007-03-17  Bruno Haible  <bruno@clisp.org>
54761
54762         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54763         locale's decimal-point character.
54764
54765 2007-03-17  Bruno Haible  <bruno@clisp.org>
54766
54767         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54768         before comparing it. Needed because on some platforms (e.g. x86) a
54769         'long double' occupies less bytes than sizeof (long double).
54770
54771 2007-03-17  Bruno Haible  <bruno@clisp.org>
54772
54773         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54774         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54775         * tests/test-getaddrinfo.c (simple): Likewise.
54776         * tests/test-read-file.c (main): Likewise.
54777
54778 2007-03-17  Bruno Haible  <bruno@clisp.org>
54779
54780         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54781
54782 2007-03-17  Bruno Haible  <bruno@clisp.org>
54783
54784         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54785         unused variable.
54786
54787 2007-03-17  Bruno Haible  <bruno@clisp.org>
54788
54789         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54790         * tests/test-c-strncasecmp.c: Likewise.
54791
54792 2007-03-17  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/stdlib (Depends-on): Add unistd.
54795         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54796         Needed for MacOS X 10.3.
54797
54798 2007-03-17  Bruno Haible  <bruno@clisp.org>
54799
54800         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54801
54802 2007-03-17  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54805
54806 2007-03-17  Bruno Haible  <bruno@clisp.org>
54807
54808         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54809         to reflect files copied from gnulib (with or without modifications).
54810         Suggested by Jim Meyering.
54811
54812 2007-03-17  Eric Blake  <ebb9@byu.net>
54813
54814         * NEWS: Document stdlib change from 2007-02-18.
54815
54816 2007-03-17  Jim Meyering  <jim@meyering.net>
54817
54818         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54819         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54820         someone uses a name containing shell meta-characters.
54821         Reported by Alfred M. Szmidt.
54822
54823         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54824
54825 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54826
54827         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54828         and copy gettext configuration files only if configure.ac contains
54829         a use of AM_GNU_GETTEXT_VERSION.
54830
54831 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54832
54833         * build-aux/bootstrap (gnulib_name): New variable.
54834         (gnulib_tool_options): Use it.
54835
54836 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54837
54838         * tests/test-des.c: Use new namespace.
54839
54840 2007-03-15  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54843         Reported by James Youngman <jay@gnu.org>.
54844
54845 2007-03-15  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54848         declared prototype. Needed with cc on OSF/1 5.1.
54849
54850 2007-03-15  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54853         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54854         (struct gl_list_implementation): Add dispose_fn argument to the
54855         'create_empty', 'create' methods.
54856         (struct gl_list_impl_base): Add field 'dispose_fn'.
54857         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54858         argument.
54859         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54860         dispose_fn argument.
54861         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54862         dispose_fn on the dropped values.
54863         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54864         dispose_fn argument.
54865         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54866         dropped values.
54867         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54868         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54869         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54870         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54871         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54872         argument.
54873         (gl_tree_list_free): Call dispose_fn on the dropped values.
54874         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54875         the dropped values.
54876         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54877         Add dispose_fn argument.
54878         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54879         Call dispose_fn on the dropped values.
54880         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54881         Add dispose_fn argument.
54882         (gl_sublist_create): Initialize the 'dispose_fn' field.
54883         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54884         * tests/test-array_list.c (main): Update.
54885         * tests/test-carray_list.c (main): Update.
54886         * tests/test-avltree_list.c (main): Update.
54887         * tests/test-rbtree_list.c (main): Update.
54888         * tests/test-avltreehash_list.c (main): Update.
54889         * tests/test-rbtreehash_list.c (main): Update.
54890         * tests/test-linked_list.c (main): Update.
54891         * tests/test-linkedhash_list.c (main): Update.
54892         * tests/test-array_oset.c (main): Update.
54893
54894 2007-03-15  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54897         (gl_oset_create_empty): Add dispose_fn argument.
54898         (struct gl_oset_implementation): Add dispose_fn argument to
54899         'create_empty' method.
54900         (struct gl_oset_impl_base): Add dispose_fn field.
54901         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54902         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54903         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54904         values.
54905         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54906         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54907         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54908         dropped value.
54909         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54910         dropped value.
54911         * tests/test-array_oset.c (main): Update.
54912         * tests/test-avltree_oset.c (main): Update.
54913         * tests/test-rbtree_oset.c (main): Update.
54914         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54915
54916 2007-03-13  Bruno Haible  <bruno@clisp.org>
54917
54918         * tests/test-stdbool.c (i): Update after last patch.
54919
54920 2007-03-12  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54923         the iswprint macro. Needed on Solaris 2.5.1.
54924
54925 2007-03-12  Bruno Haible  <bruno@clisp.org>
54926
54927         * tests/test-printf-frexp.c (main): Declare x as volatile.
54928
54929 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54930
54931         * doc/gnulib.texi (Build robot for gnulib): New section.
54932
54933 2007-03-12  Jim Meyering  <jim@meyering.net>
54934
54935         * build-aux/bootstrap: New file.
54936         * build-aux/bootstrap.conf: New file, from coreutils.
54937
54938 2007-03-11  Bruno Haible  <bruno@clisp.org>
54939
54940         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54941
54942 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54943
54944         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54945         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54946         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54947
54948 2007-03-11  Bruno Haible  <bruno@clisp.org>
54949
54950         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54951         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54952
54953 2007-03-11  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54956         formula. Needed for SunPRO C 5.0.
54957
54958 2007-03-11  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/long-options (Depends-on): Add getopt.
54961
54962 2007-03-11  Bruno Haible  <bruno@clisp.org>
54963
54964         * modules/modechange (Depends-on): Add stdbool.
54965
54966 2007-03-11  Bruno Haible  <bruno@clisp.org>
54967
54968         * modules/i-ring (Depends-on): Add stdbool.
54969
54970 2007-03-11  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/gc-des (Depends-on): Add stdbool.
54973
54974 2007-03-11  Bruno Haible  <bruno@clisp.org>
54975
54976         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54977
54978 2007-03-11  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54981
54982 2007-03-11  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54985
54986 2007-03-11  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/vasnprintf.c (sprintf): Undefine.
54989
54990 2007-03-11  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54993         initializers in SunPRO C and Compaq C compilers.
54994
54995 2007-03-11  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54998         decrementing code ANSI C compliant.
54999
55000 2007-03-11  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55003         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55004
55005 2007-03-11  Bruno Haible  <bruno@clisp.org>
55006
55007         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55008         <stdbool.h> substitute doesn't pass.
55009
55010 2007-03-11  Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55013
55014 2007-03-11  Bruno Haible  <bruno@clisp.org>
55015
55016         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55017         script, for submission to autobuild.josefsson.org.
55018
55019 2007-03-10  Bruno Haible  <bruno@clisp.org>
55020
55021         * modules/canonicalize-lgpl-tests: New file.
55022         * tests/test-canonicalize-lgpl.sh: New file.
55023         * tests/test-canonicalize-lgpl.c: New file.
55024
55025         * modules/c-strcase-tests: New file.
55026         * tests/test-c-strcase.sh: New file.
55027         * tests/test-c-strcasecmp.c: New file.
55028         * tests/test-c-strncasecmp.c: New file.
55029
55030         * modules/atexit-tests: New file.
55031         * tests/test-atexit.sh: New file.
55032         * tests/test-atexit.c: New file.
55033
55034 2007-03-10  Bruno Haible  <bruno@clisp.org>
55035
55036         * tests/test-binary-io.sh: Use temporary filenames that are not so
55037         likely to clash with those of other tests (in a parallel make).
55038         * tests/test-binary-io.c: Likewise.
55039
55040 2007-03-10  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55043         fallback; use #error instead.
55044         Suggested by Simon Josefsson.
55045
55046 2007-03-10  Bruno Haible  <bruno@clisp.org>
55047
55048         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55049         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55050         first and the last.
55051
55052 2007-03-10  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55055
55056 2007-03-10  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55059         "make distcheck".
55060         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55061         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55062         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55063
55064 2007-03-10  Bruno Haible  <bruno@clisp.org>
55065
55066         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55067         variable.
55068         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55069         variable.
55070
55071 2007-03-09  Eric Blake  <ebb9@byu.net>
55072         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55073
55074         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55075         types are not being provided by gnulib.
55076         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55077         types are supported.
55078
55079 2007-03-10  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/stdio_.h (__attribute__): New macro.
55082         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55083         vsprintf): Specify __attribute__ __format__ for GCC.
55084         Suggested by Eric Blake.
55085
55086 2007-03-09  Bruno Haible  <bruno@clisp.org>
55087
55088         * modules/printf-posix-tests: New file.
55089         * tests/test-printf-posix.sh: New file.
55090         * tests/test-printf-posix.c: New file.
55091
55092         * modules/printf-posix: New file.
55093         * lib/printf.c: New file.
55094         * m4/printf-posix-rpl.m4: New file.
55095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55096         REPLACE_PRINTF.
55097         * lib/stdio_.h (printf): New declaration.
55098         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55099         ____strfmon____): New macros.
55100         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55101         REPLACE_PRINTF.
55102
55103 2007-03-09  Bruno Haible  <bruno@clisp.org>
55104
55105         * tests/test-vasnprintf-posix2.sh: New file.
55106         * tests/test-vasnprintf-posix2.c: New file.
55107         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55108         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55109         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55110
55111         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55112         a locale dependent decimal point, rather than always '.'.
55113
55114 2007-03-09  Eric Blake  <ebb9@byu.net>
55115
55116         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55117         spite of platforms like Tandem/NSK that define it to -1.
55118
55119 2007-03-08  Bruno Haible  <bruno@clisp.org>
55120
55121         * modules/vprintf-posix-tests: New file.
55122         * tests/test-vprintf-posix.sh: New file.
55123         * tests/test-vprintf-posix.c: New file.
55124         * tests/test-printf-posix.h: New file.
55125
55126         * modules/vprintf-posix: New file.
55127         * lib/vprintf.c: New file.
55128         * m4/vprintf-posix.m4: New file.
55129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55130         REPLACE_VPRINTF.
55131         * lib/stdio_.h (vprintf): New declaration.
55132         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55133         REPLACE_VPRINTF.
55134
55135 2007-03-08  Bruno Haible  <bruno@clisp.org>
55136
55137         * modules/fprintf-posix-tests: New file.
55138         * tests/test-fprintf-posix.sh: New file.
55139         * tests/test-fprintf-posix.c: New file.
55140
55141         * modules/fprintf-posix: New file.
55142         * lib/fprintf.c: New file.
55143         * m4/fprintf-posix.m4: New file.
55144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55145         REPLACE_FPRINTF.
55146         * lib/stdio_.h (fprintf): New declaration.
55147         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55148         REPLACE_FPRINTF.
55149
55150 2007-03-08  Bruno Haible  <bruno@clisp.org>
55151
55152         * modules/vfprintf-posix-tests: New file.
55153         * tests/test-vfprintf-posix.sh: New file.
55154         * tests/test-vfprintf-posix.c: New file.
55155         * tests/test-fprintf-posix.h: New file.
55156         * tests/test-fprintf-posix.out: New file.
55157
55158         * modules/vfprintf-posix: New file.
55159         * lib/vfprintf.c: New file.
55160         * m4/vfprintf-posix.m4: New file.
55161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55162         REPLACE_VFPRINTF.
55163         * lib/stdio_.h (vfprintf): New declaration.
55164         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55165         REPLACE_VFPRINTF.
55166
55167 2007-03-08  Bruno Haible  <bruno@clisp.org>
55168
55169         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55170
55171 2007-03-08  Bruno Haible  <bruno@clisp.org>
55172
55173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55174         instead of 'expr' invocations.
55175         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55176         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55180         Suggested by Paul Eggert.
55181
55182 2007-03-08  Bruno Haible  <bruno@clisp.org>
55183
55184         * modules/fseterr-tests: New file.
55185         * tests/test-fseterr.c: New file.
55186
55187         * modules/fseterr: New file.
55188         * lib/fseterr.h: New file.
55189         * lib/fseterr.c: New file.
55190
55191 2007-03-08  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55194         * lib/getopt_.h: Likewise.
55195         * lib/mbswidth.h: Likewise.
55196         * lib/setenv.h: Likewise.
55197         * lib/vasnprintf.h: Likewise.
55198         * lib/vasprintf.h: Likewise.
55199         * lib/verror.h: Likewise.
55200         * lib/xsetenv.h: Likewise.
55201         * lib/xvasprintf.h: Likewise.
55202
55203 2007-03-08  Jim Meyering  <jim@meyering.net>
55204
55205         * users.txt: Add parted.
55206
55207         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55208
55209 2007-03-07  Bruno Haible  <bruno@clisp.org>
55210
55211         * m4/printf.m4: Make the shell script snippets copy&pastable.
55212
55213 2007-03-02  Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/netinet_in_.h: New file.
55216         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55217         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55218         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55219         (Depends-on): Add absolute-header.
55220         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55221         into netinet/in.h.
55222
55223 2007-03-03  Bruno Haible  <bruno@clisp.org>
55224
55225         * lib/sys_select_.h: New file.
55226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55227         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55228         * modules/sys_select (Files): Add lib/sys_select_.h.
55229         (Depends-on): Add absolute-header.
55230         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55231         into sys/select.h.
55232
55233 2007-03-02  Bruno Haible  <bruno@clisp.org>
55234
55235         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55236         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55237         values.
55238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55239         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55240         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55241         * modules/sys_socket (Depends-on): Add absolute-header.
55242         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55243         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55244         (Include): Remove requirement of inclusion of <sys/types.h>.
55245
55246 2007-03-02  Bruno Haible  <bruno@clisp.org>
55247
55248         * lib/byteswap_.h (bswap_32): Fix formula.
55249
55250 2007-03-06  Bruno Haible  <bruno@clisp.org>
55251
55252         * modules/sprintf-posix-tests: New file.
55253         * tests/test-sprintf-posix.c: New file.
55254
55255         * modules/sprintf-posix: New file.
55256         * lib/sprintf.c: New file.
55257         * m4/sprintf-posix.m4: New file.
55258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55259         REPLACE_SPRINTF.
55260         * lib/stdio_.h (sprintf): New declaration.
55261         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55262         REPLACE_SPRINTF.
55263
55264 2007-03-06  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/vsprintf-posix-tests: New file.
55267         * tests/test-vsprintf-posix.c: New file.
55268         * tests/test-sprintf-posix.h: New file.
55269
55270         * modules/vsprintf-posix: New file.
55271         * lib/vsprintf.c: New file.
55272         * m4/vsprintf-posix.m4: New file.
55273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55274         REPLACE_VSPRINTF.
55275         * lib/stdio_.h (vsprintf): New declaration.
55276         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55277         REPLACE_VSPRINTF.
55278
55279 2007-03-06  Bruno Haible  <bruno@clisp.org>
55280
55281         * modules/vsnprintf (Depend-on): Remove minmax.
55282
55283 2007-03-06  Bruno Haible  <bruno@clisp.org>
55284
55285         * modules/snprintf-posix-tests: New file.
55286         * tests/test-snprintf-posix.c: New file.
55287
55288         * modules/snprintf-posix: New file.
55289         * m4/snprintf-posix.m4: New file.
55290         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55291         gl_FUNC_SNPRINTF.
55292         (gl_FUNC_SNPRINTF): Invoke it.
55293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55294         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55295         is set.
55296         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55297
55298 2007-03-06  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/vsnprintf-posix-tests: New file.
55301         * tests/test-vsnprintf-posix.c: New file.
55302         * tests/test-snprintf-posix.h: New file.
55303
55304         * modules/vsnprintf-posix: New file.
55305         * m4/vsnprintf-posix.m4: New file.
55306         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55307         gl_FUNC_VSNPRINTF.
55308         (gl_FUNC_VSNPRINTF): Invoke it.
55309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55310         * lib/stdio_.h (vsnprintf): Define as a replacement if
55311         REPLACE_VSNPRINTF is set.
55312         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55313
55314 2007-03-06  Bruno Haible  <bruno@clisp.org>
55315
55316         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55318
55319 2007-03-06  Bruno Haible  <bruno@clisp.org>
55320
55321         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55322         (asinl): Declare also if HAVE_DECL_ASINL is set.
55323         (atanl): Declare also if HAVE_DECL_ATANL is set.
55324         (ceill): Declare also if HAVE_DECL_CEILL is set.
55325         (cosl): Declare also if HAVE_DECL_COSL is set.
55326         (expl): Declare also if HAVE_DECL_EXPL is set.
55327         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55328         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55329         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55330         (logl): Declare also if HAVE_DECL_LOGL is set.
55331         (sinl): Declare also if HAVE_DECL_SINL is set.
55332         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55333         (tanl): Declare also if HAVE_DECL_TANL is set.
55334         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55336         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55337         declaration of frexpl, ldexpl.
55338         * modules/printf-frexpl (Depends-on): Add math.
55339         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55340
55341 2007-03-05  Bruno Haible  <bruno@clisp.org>
55342
55343         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55344         frexpl and ldexpl are declared.
55345         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55346
55347 2007-03-05  Bruno Haible  <bruno@clisp.org>
55348
55349         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55350         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55351
55352 2007-03-05  Bruno Haible  <bruno@clisp.org>
55353
55354         * lib/stdio_.h: Include <stddef.h>.
55355
55356 2007-03-05  Bruno Haible  <bruno@clisp.org>
55357
55358         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55359
55360 2007-03-05  Bruno Haible  <bruno@clisp.org>
55361
55362         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55363         NetBSD 4, from Ralf Wildenhues.
55364
55365 2007-03-04  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/vasprintf.h: Update #if logic for the case when the functions
55368         exist but are overridden.
55369
55370 2007-03-04  Bruno Haible  <bruno@clisp.org>
55371
55372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55373         implementations: glibc-2.4 and MacOS X 10.3.
55374         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55375         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55376         * tests/test-vasprintf-posix.c (test_function): Likewise.
55377
55378 2007-03-04  Bruno Haible  <bruno@clisp.org>
55379
55380         * modules/vasprintf-posix-tests: New file.
55381         * tests/test-vasprintf-posix.c: New file.
55382
55383         * modules/vasprintf-posix: New file.
55384         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55385         defined.
55386         * m4/vasprintf-posix.m4: New file.
55387         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55388         gl_FUNC_VASPRINTF.
55389         (gl_FUNC_VASPRINTF): Invoke it.
55390         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55391         here.
55392         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55393
55394 2007-03-04  Bruno Haible  <bruno@clisp.org>
55395
55396         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55397         REPLACE_GETTIMEOFDAY.
55398         * modules/sys_time (Makefile.am): Likewise.
55399         * m4/sys_time_h.m4: Likewise.
55400         * m4/gettimeofday.m4: Likewise.
55401
55402 2007-03-04  Bruno Haible  <bruno@clisp.org>
55403
55404         * modules/vasnprintf-posix-tests: New file.
55405         * tests/test-vasnprintf-posix.c: New file.
55406
55407         * modules/vasnprintf-posix: New file.
55408         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55409         printf-frexpl.h.
55410         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55411         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55412         REPLACE_VASNPRINTF is defined.
55413         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55414         gl_FUNC_VASNPRINTF.
55415         (gl_FUNC_VASNPRINTF): Invoke it.
55416         * m4/vasnprintf-posix.m4: New file.
55417         * m4/printf.m4: New file.
55418
55419 2007-03-04  Bruno Haible  <bruno@clisp.org>
55420
55421         Compile progreloc.c only if --enable-relocatable is specified.
55422         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55423         if --enable-relocatable was specified.
55424         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55425         lib_SOURCES.
55426
55427 2007-03-04  Jim Meyering  <jim@meyering.net>
55428
55429         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55430         Use it consistently, rather than enumerating errno constants.
55431
55432 2007-03-04  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/xvasprintf-tests: New file.
55435         * tests/test-xvasprintf.c: New file.
55436
55437         * modules/vasprintf-tests: New file.
55438         * tests/test-vasprintf.c: New file.
55439
55440         * modules/vasnprintf-tests: New file.
55441         * tests/test-vasnprintf.c: New file.
55442
55443         * modules/vsnprintf-tests: New file.
55444         * tests/test-vsnprintf.c: New file.
55445
55446         * modules/snprintf-tests: New file.
55447         * tests/test-snprintf.c: New file.
55448
55449 2007-03-04  Bruno Haible  <bruno@clisp.org>
55450
55451         Compile relocatable.c only if --enable-relocatable is specified.
55452         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55453         gl_RELOCATABLE_LIBRARY.
55454         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55455         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55456         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55457         gl_RELOCATABLE_LIBRARY.
55458         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55459         (Makefile.am): Remove lib_SOURCES.
55460         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55461         gl_RELOCATABLE_LIBRARY.
55462         (Makefile.am): Remove lib_SOURCES.
55463         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55464         always.
55465         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55466         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55467
55468 2007-03-04  Bruno Haible  <bruno@clisp.org>
55469
55470         * modules/argmatch-tests: New file.
55471         * tests/test-argmatch.c: New file.
55472
55473         * tests/test-allocsa.c (main): Halve the number of loop runs.
55474
55475         * modules/alloca-opt-tests: New file.
55476         * tests/test-alloca-opt.c: New file.
55477
55478 2007-03-04  Jim Meyering  <jim@meyering.net>
55479
55480         Work around difference between Linux ACLs and Solaris 10 ZFS.
55481         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55482         for EINVAL.
55483
55484 2007-03-03  Bruno Haible  <bruno@clisp.org>
55485
55486         * modules/relocatable-prog (Depends-on): Add back progreloc's
55487         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55488
55489 2007-03-03  Bruno Haible  <bruno@clisp.org>
55490
55491         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55492         * modules/relocatable-lib: New file.
55493
55494 2007-03-03  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/relocatable-prog: Renamed from modules/relocatable.
55497         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55498
55499 2007-03-03  Bruno Haible  <bruno@clisp.org>
55500
55501         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55502         m4/relocatable-lib.m4.
55503         (Depends-on): Remove 'relocatable'.
55504         (configure.ac): Add gl_RELOCATABLE_NOP.
55505
55506 2007-03-03  Bruno Haible  <bruno@clisp.org>
55507
55508         * modules/relocatable-prog-wrapper: New file.
55509         * modules/relocatable (Depends-on): Add it. Remove all other
55510         dependencies except progname.
55511         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55512
55513         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55514         (gl_FUNC_STRERROR): Nop.
55515         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55516
55517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55518         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55519
55520         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55521         (gl_FUNC_READLINK): Update.
55522
55523         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55524
55525 2007-03-03  Bruno Haible  <bruno@clisp.org>
55526
55527         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55528         * modules/xreadlink (Depends-on): Add unistd.
55529         * modules/xreadlink-with-size (Depends-on): Likewise.
55530
55531 2007-03-03  Bruno Haible  <bruno@clisp.org>
55532
55533         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55534         extracted from gt_FUNC_SETENV.
55535         (gt_FUNC_SETENV): Remove macro.
55536         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55537         remove gt_FUNC_SETENV.
55538
55539 2007-03-03  Bruno Haible  <bruno@clisp.org>
55540
55541         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55542         ENABLE_RELOCATABLE here.
55543         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55544
55545 2007-03-03  Bruno Haible  <bruno@clisp.org>
55546
55547         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55548         * tests/test-rbtreehash_list.c: Include progname.h.
55549         (main): Call set_program_name.
55550
55551         * modules/rbtree-oset-tests (Depends-on): Add progname.
55552         * tests/test-rbtree_oset.c: Include progname.h.
55553         (main): Call set_program_name.
55554
55555         * modules/rbtree-list-tests (Depends-on): Add progname.
55556         * tests/test-rbtree_list.c: Include progname.h.
55557         (main): Call set_program_name.
55558
55559         * modules/linked-list-tests (Depends-on): Add progname.
55560         * tests/test-linked_list.c: Include progname.h.
55561         (main): Call set_program_name.
55562
55563 2007-03-03  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55566         All uses of __restrict changed to _Restrict_.
55567         * lib/glob_.h (__restrict): Remove macro.
55568
55569 2007-03-02  Bruno Haible  <bruno@clisp.org>
55570
55571         * modules/gettext (configure.ac): Require gettext infrastructure
55572         from version 0.16.1.
55573
55574 2007-03-02  Bruno Haible  <bruno@clisp.org>
55575
55576         * modules/linkedhash-list-tests (Depends-on): Add progname.
55577         * tests/test-linkedhash_list.c: Include progname.h.
55578         (main): Call set_program_name.
55579
55580         * modules/carray-list-tests (Depends-on): Add progname.
55581         * tests/test-carray_list.c: Include progname.h.
55582         (main): Call set_program_name.
55583
55584         * modules/avltreehash-list-tests (Depends-on): Add progname.
55585         * tests/test-avltreehash_list.c: Include progname.h.
55586         (main): Call set_program_name.
55587
55588         * modules/avltree-oset-tests (Depends-on): Add progname.
55589         * tests/test-avltree_oset.c: Include progname.h.
55590         (main): Call set_program_name.
55591
55592         * modules/avltree-list-tests (Depends-on): Add progname.
55593         * tests/test-avltree_list.c: Include progname.h.
55594         (main): Call set_program_name.
55595
55596         * modules/array-oset-tests (Depends-on): Add progname.
55597         * tests/test-array_oset.c: Include progname.h.
55598         (main): Call set_program_name.
55599
55600         * modules/array-list-tests (Depends-on): Add progname.
55601         * tests/test-array_list.c: Include progname.h.
55602         (main): Call set_program_name.
55603
55604         * modules/argp-tests (Depends-on): Add progname.
55605         * tests/test-argp.c: Include argp.h first. Include progname.h.
55606         (main): Call set_program_name.
55607
55608 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55609
55610         * doc/gnulib-tool.texi (Initial import): Reword description of
55611         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55612         limited effect even if defined after the first system include.
55613
55614 2007-03-01  Bruno Haible  <bruno@clisp.org>
55615
55616         * build-aux/config.libpath: Update to libtool-1.5.22.
55617         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55618
55619 2007-03-01  Bruno Haible  <bruno@clisp.org>
55620
55621         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55622         foo_CFLAGS.
55623         Reported by Ralf Wildenhues.
55624
55625 2007-03-01  Bruno Haible  <bruno@clisp.org>
55626
55627         * build-aux/install-reloc: Remove object files left over by some
55628         compilers.
55629         Reported by Ralf Wildenhues.
55630
55631 2007-03-01  Bruno Haible  <bruno@clisp.org>
55632
55633         * build-aux/install-reloc: Break long lines.
55634
55635 2007-03-01  Bruno Haible  <bruno@clisp.org>
55636
55637         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55638         Reported by Ralf Wildenhues.
55639
55640 2007-03-01  Bruno Haible  <bruno@clisp.org>
55641
55642         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55643         include ordering constraints.
55644
55645 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55648         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55649         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55650         as another example.
55651         * lib/time_.h: Fix misspelling.
55652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55653         Require gl_HEADER_TIME_H_DEFAULTS.
55654         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55655         * m4/time_r.m4 (gl_TIME_R): Likewise.
55656         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55657
55658 2007-03-01  Bruno Haible  <bruno@clisp.org>
55659
55660         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55661         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55662
55663 2007-03-01  Jim Meyering  <jim@meyering.net>
55664
55665         * modules/xreadlink (Maintainer): Add my name.
55666         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55667
55668 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55669             Bruno Haible  <bruno@clisp.org>
55670
55671         * build-aux/install-reloc: Compile also c-ctype.c.
55672         * build-aux/relocatable.sh.in: New file.
55673         * doc/relocatable.texi: New file.
55674         * doc/relocatable-maint.texi: New file.
55675         * doc/gnulib.texi: Include relocatable-maint.texi.
55676         * lib/progreloc.c: Include unistd.h unconditionally.
55677         * lib/relocwrapper.c: Include unistd.h unconditionally.
55678         Include c-ctype.h.
55679         (add_dotbin): Use c_tolower.
55680         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55681         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55682         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55683         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55684         to m4/relocatable-lib.m4.
55685         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55686         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55687         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55688         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55689         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55690         * modules/relocatable: New file.
55691         * modules/relocatable-lib: New file.
55692         * modules/relocatable-script: New file.
55693
55694 2007-02-28  Bruno Haible  <bruno@clisp.org>
55695
55696         Import --enable-relocatable infrastructure.
55697         * build-aux/config.libpath: New file, from GNU gettext.
55698         * build-aux/install-reloc: New file, from GNU gettext.
55699         * build-aux/reloc-ldflags: New file, from GNU gettext.
55700         * lib/relocatable.h: New file, from GNU gettext.
55701         * lib/relocatable.c: New file, from GNU gettext.
55702         * lib/relocwrapper.c: New file, from GNU gettext.
55703         * m4/relocatable.m4: New file, from GNU gettext.
55704
55705 2007-02-28  Bruno Haible  <bruno@clisp.org>
55706
55707         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55708
55709         * modules/xreadlink: New file, from GNU gettext with modifications.
55710         * lib/xreadlink.c: New file, from GNU gettext.
55711         * lib/xreadlink.h: Add comments.
55712         (xreadlink): New declaration.
55713
55714         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55715         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55716         lib/xreadlink-with-size.c.
55717         (configure.ac): Remove gl_XREADLINK invocation.
55718         (Makefile.am): Augment lib_SOURCES.
55719         * m4/xreadlink.m4: Remove file.
55720         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55721         (xreadlink_with_size): Renamed from xreadink.
55722         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55723         * modules/canonicalize (Depends-on): Replace xreadlink with
55724         xreadlink-with-size.
55725         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55726
55727 2007-02-25  Jim Meyering  <jim@meyering.net>
55728
55729         * build-aux/announce-gen: When complaining about excess arguments,
55730         list them.
55731
55732 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55733
55734         * README: Document signed integer overflow situation more
55735         accurately.
55736
55737 2007-02-25  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55740         'a' or 'A' conversion.
55741
55742 2007-02-25  Bruno Haible  <bruno@clisp.org>
55743
55744         * modules/filename: Renamed from modules/pathname.
55745         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55746         lib/concatpath.c with lib/concat-filename.c.
55747         (Makefile.am): Update.
55748         (Include): Replace pathname.h with filename.h.
55749         * lib/filename.h: Renamed from lib/pathname.h.
55750         (concatenated_filename): Renamed from concatenated_pathname.
55751         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55752         (concatenated_filename): Renamed from concatenated_pathname.
55753         * lib/findprog.c: Include filename.h instead of pathname.h.
55754         (find_in_path): Update.
55755         * lib/javacomp.c: Include filename.h instead of pathname.h.
55756         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55757         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55758         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55759         is_oldgcj_14_13_usable, is_javac_usable): Update.
55760         * lib/javaexec.c: Include filename.h instead of pathname.h.
55761         (execute_java_class): Update.
55762         * modules/findprog: Update.
55763         * modules/javacomp: Update.
55764         * modules/javaexec: Update.
55765         * MODULES.html.sh (File system functions): Add 'filename', remove
55766         'pathname'.
55767
55768 2007-02-25  Bruno Haible  <bruno@clisp.org>
55769
55770         * modules/printf-frexpl-tests: New file.
55771         * tests/test-printf-frexpl.c: New file.
55772
55773         * modules/printf-frexpl: New file.
55774         * lib/printf-frexpl.h: New file.
55775         * lib/printf-frexpl.c: New file.
55776         * m4/printf-frexpl.m4: New file.
55777
55778 2007-02-25  Bruno Haible  <bruno@clisp.org>
55779
55780         * modules/printf-frexp-tests: New file.
55781         * tests/test-printf-frexp.c: New file.
55782
55783         * modules/printf-frexp: New file.
55784         * lib/printf-frexp.h: New file.
55785         * lib/printf-frexp.c: New file.
55786         * m4/printf-frexp.m4: New file.
55787
55788 2007-02-25  Bruno Haible  <bruno@clisp.org>
55789
55790         Assume automake >= 1.10 for the tests.
55791         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55792         * modules/arctwo-tests: Likewise.
55793         * modules/argp-tests: Likewise.
55794         * modules/avltree-list-tests: Likewise.
55795         * modules/avltree-oset-tests: Likewise.
55796         * modules/avltreehash-list-tests: Likewise.
55797         * modules/carray-list-tests: Likewise.
55798         * modules/crc-tests: Likewise.
55799         * modules/des-tests: Likewise.
55800         * modules/gc-arcfour-tests: Likewise.
55801         * modules/gc-arctwo-tests: Likewise.
55802         * modules/gc-des-tests: Likewise.
55803         * modules/gc-hmac-md5-tests: Likewise.
55804         * modules/gc-hmac-sha1-tests: Likewise.
55805         * modules/gc-md2-tests: Likewise.
55806         * modules/gc-md4-tests: Likewise.
55807         * modules/gc-md5-tests: Likewise.
55808         * modules/gc-pbkdf2-sha1-tests: Likewise.
55809         * modules/gc-rijndael-tests: Likewise.
55810         * modules/gc-sha1-tests: Likewise.
55811         * modules/gc-tests: Likewise.
55812         * modules/getaddrinfo-tests: Likewise.
55813         * modules/hmac-md5-tests: Likewise.
55814         * modules/hmac-sha1-tests: Likewise.
55815         * modules/linked-list-tests: Likewise.
55816         * modules/linkedhash-list-tests: Likewise.
55817         * modules/lock-tests: Likewise.
55818         * modules/md2-tests: Likewise.
55819         * modules/md4-tests: Likewise.
55820         * modules/md5-tests: Likewise.
55821         * modules/rbtree-list-tests: Likewise.
55822         * modules/rbtree-oset-tests: Likewise.
55823         * modules/rbtreehash-list-tests: Likewise.
55824         * modules/read-file-tests: Likewise.
55825         * modules/rijndael-tests: Likewise.
55826         * modules/stdint-tests: Likewise.
55827         * modules/tls-tests: Likewise.
55828
55829 2007-02-24  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55832         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55833         function; instead check whether isnan with a double argument links.
55834         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55835         function; instead check whether isnan with a 'long double' argument
55836         links.
55837         Reported by Eric Blake <ebb9@byu.net>.
55838
55839 2007-02-24  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55842         defined.
55843         * lib/isnanl.c: Remove all code. Just include isnan.c.
55844         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55845
55846 2007-02-25  Jim Meyering  <jim@meyering.net>
55847
55848         Avoid conflicting types for 'unsetenv' on FreeBSD.
55849         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55850         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55851         in stdlib.h.
55852
55853 2007-02-24  Bruno Haible  <bruno@clisp.org>
55854
55855         * modules/isnanl-nolibm-tests: New file.
55856         * tests/test-isnanl.c: New file.
55857
55858         * modules/isnanl-nolibm: New file.
55859         * lib/isnanl.h: New file.
55860         * lib/isnanl.c: New file.
55861         * m4/isnanl.m4: New file.
55862
55863 2007-02-24  Bruno Haible  <bruno@clisp.org>
55864
55865         * modules/isnan-nolibm-tests: New file.
55866         * tests/test-isnan.c: New file.
55867
55868         * modules/isnan-nolibm: New file.
55869         * lib/isnan.h: New file.
55870         * lib/isnan.c: New file.
55871         * m4/isnan.m4: New file.
55872
55873 2007-02-24  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55876         assume that an exponent fits in 20 bits.
55877
55878 2007-02-24  Jim Meyering  <jim@meyering.net>
55879
55880         * m4/regex.m4: Update the description of the configure-time option,
55881         --without-included-regex, to state accurately what the defaults are,
55882         and perhaps to give people an idea why using this option is risky.
55883
55884 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55887         loops on small arguments.  This attempts to avoid the problem
55888         Bruno Haible reported for AIX 4.3.2 in
55889         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55890
55891 2007-02-23  Bruno Haible  <bruno@clisp.org>
55892
55893         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55894         Needed for help2man.
55895
55896 2007-02-23  Karl Berry  <karl@gnu.org>
55897
55898         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55899         exists, foo.h should be cvs-ignored, not committed.
55900
55901 2007-02-23  Eric Blake  <ebb9@byu.net>
55902
55903         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55904         * lib/stat-time.h (includes): Likewise.
55905         * lib/utimecmp.c (includes): Likewise.
55906         * lib/utimens.h (includes): Likewise.
55907         * lib/getdate.y (includes): Also include "timespec.h" for use
55908         internal to the module.
55909         * modules/utimens (Depends-on): Revert yesterday's patch.
55910         * modules/nanosleep (Depends-on): Add missing dependency.
55911
55912 2007-02-22  Bruno Haible  <bruno@clisp.org>
55913
55914         * lib/glob.c: Don't include getlogin_r.h.
55915
55916 2007-02-22  Jim Meyering  <jim@meyering.net>
55917
55918         * modules/utimens (Depends-on): Add timespec, required for
55919         utimens.h's inclusion of timespec.h.
55920
55921 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55922
55923         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55924         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55925         Schwab in
55926         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55927         I'll try to think of a better way to fix the Solaris problem.
55928
55929         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55930         like glibc; on Solaris 10, it fails with errno == EINVAL.
55931         POSIX says the behavior is unspecified if the first argument is NULL,
55932         so play it safe and never pass NULL to the system getcwd.
55933
55934 2007-02-21  Jim Meyering  <jim@meyering.net>
55935
55936         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55937         of gettimeofday.  It would conflict with the one now always
55938         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55939         an IRIX 6.5 build failure.
55940
55941 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55942
55943         Minor fixups to port to Solaris 10 with Sun C 5.8.
55944         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55945         * modules/getcwd (Depends-on): Add dirfd.
55946         * lib/putenv.c (putenv): #undef it.
55947         (rpl_putenv): New decl.
55948         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55949
55950 2007-02-20  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/stdio-tests: New file.
55953         * tests/test-stdio.c: New file.
55954
55955         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55956         (Depends-on): Add stdio.
55957         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55958         (Include): Use <stdio.h> instead of vsnprintf.h.
55959         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55960         HAVE_DECL_VSNPRINTF.
55961         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55962
55963         * modules/snprintf (Files): Remove lib/snprintf.h.
55964         (Depends-on): Add stdio.
55965         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55966         (Include): Use <stdio.h> instead of snprintf.h.
55967         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55968         HAVE_DECL_SNPRINTF.
55969         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55970         * lib/getaddrinfo.c: Likewise.
55971
55972         * modules/stdio: New file.
55973         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55974         * lib/snprintf.h: Remove file.
55975         * lib/vsnprintf.h: Remove file.
55976         * lib/.cppi-disable: Remove snprintf.h.
55977         * m4/stdio_h.m4: New file.
55978         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55979
55980 2007-02-20  Jim Meyering  <jim@meyering.net>
55981
55982         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55983         used by e.g., mingw.  From Bruno Haible.
55984
55985 2007-02-19  Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55988         warnings.
55989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55990
55991 2007-02-19  Bruno Haible  <bruno@clisp.org>
55992
55993         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55994         from mingw users.
55995
55996 2007-02-19  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55999         warnings.
56000         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56001
56002 2007-02-19  Jim Meyering  <jim@meyering.net>
56003
56004         Don't use FD after a successful "fdopendir (fd)".
56005         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56006         Reset it by calling dirfd on the just-obtained DIR*.
56007
56008         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56009         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56010
56011 2007-02-18  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/readlink.c: Include <unistd.h>.
56014         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56015         HAVE_READLINK.
56016         * modules/readlink (Depends-on): Add unistd.
56017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56018         (Include): Add <unistd.h>.
56019
56020         * lib/getlogin_r.h: Remove file.
56021         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56022         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56023         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56024         HAVE_DECL_GETLOGIN_R.
56025         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56026         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56027         (Include): Use <unistd.h> instead of getlogin_r.h.
56028
56029         * lib/getcwd.h: Remove file.
56030         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56031         * lib/xgetcwd.c: Likewise.
56032         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56033         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56034         * modules/getcwd (Files): Remove lib/getcwd.h.
56035         (Depends-on): Add unistd.
56036         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56037         (Include): Use <unistd.h> instad of getcwd.h.
56038
56039         * lib/ftruncate.c: Include <unistd.h> first.
56040         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56041         Set HAVE_FTRUNCATE.
56042         * modules/ftruncate (Depends-on): Add unistd.
56043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56044
56045         * lib/fchdir.c: Include <unistd.h> first.
56046         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56047         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56048         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56049         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56050         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56051
56052         * lib/dup2.c: Include <unistd.h> first.
56053         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56054         HAVE_DUP2.
56055         * modules/dup2 (Depends-on): Add unistd.
56056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56057
56058         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56059         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56060         REPLACE_CHOWN. Don't define chown as a macro here.
56061         * modules/chown (Depends-on): Add unistd.
56062         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56063
56064         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56065         Add definition for GL_LINK_WARNING.
56066         (chown, dup2): New declarations.
56067         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56068         link warning.
56069         (ftruncate): New declaration.
56070         (getcwd): New declaration, taken from old getcwd.h.
56071         (getlogin_r): New declaration, taken from old getlogin_r.h.
56072         (readlink): New declaration.
56073         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56074         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56075         (gl_PREREQ_UNISTD): Remove macro.
56076         (gl_UNISTD_MODULE_INDICATOR): New macro.
56077         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56078         many new variables. Don't set UNISTD_H.
56079         * modules/unistd (Description): Change.
56080         (Depends-on): Add link-warning.
56081         (configure.ac): Update.
56082         (Makefile.am): Create unistd.h always. Substitute many new variables
56083         into it.
56084
56085 2007-02-18  Bruno Haible  <bruno@clisp.org>
56086
56087         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56088         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56089         HAVE_GETSUBOPT.
56090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56091         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56092         * lib/getsubopt.h: Remove file.
56093         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56094         (Depends-on): Add stdlib.
56095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56096         (Includes): Use <stdlib.h> instead of getsubopt.h.
56097         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56098         Set HAVE_GETSUBOPT.
56099         * lib/getsubopt.c: Don't include getsubopt.h.
56100
56101 2007-02-18  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/fchdir (Depends-on): Add dup2.
56104
56105 2007-02-18  Bruno Haible  <bruno@clisp.org>
56106
56107         * lib/stdlib_.h: Handle glibc's special invocation convention
56108         specially.
56109
56110 2007-02-18  Bruno Haible  <bruno@clisp.org>
56111
56112         * modules/stdlib-tests: New file.
56113         * tests/test-stdlib.c: New file.
56114
56115         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56116         (Depends-on): Add stdlib.
56117         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56118         (Includes): Use <stdlib.h> instead of mkstemp.h.
56119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56120         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56121         * lib/mkstemp.c: Don't include mkstemp.h.
56122         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56123         * lib/stdlib--.h: Don't include mkstemp.h.
56124
56125         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56126         (Depends-on): Add stdlib.
56127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56128         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56129         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56130         HAVE_MKDTEMP.
56131         * lib/mkdtemp.c: Don't include mkdtemp.h.
56132         * lib/clean-temp.c: Don't include mkdtemp.h.
56133
56134         * modules/exit (Files): Remove lib/exit.h.
56135         (Depends-on): Add stdlib.
56136         (Makefile.am): Remove lib_SOURCES.
56137         (Include): Use <stdlib.h> instead of exit.h.
56138         * lib/argmatch.c: Don't include exit.h.
56139         * lib/execute.c: Likewise.
56140         * lib/pagealign_alloc.c: Likewise.
56141         * lib/pipe.c: Likewise.
56142         * lib/wait-process.c: Likewise.
56143         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56144         * lib/exitfail.c: Likewise.
56145         * lib/savewd.c: Likewise.
56146         * lib/xsetenv.c: Likewise.
56147
56148         * modules/stdlib: New file.
56149         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56150         and extra comments about mkstemp().
56151         * lib/exit.h: Remove file.
56152         * lib/mkdtemp.h: Remove file.
56153         * lib/mkstemp.h: Remove file.
56154         * m4/stdlib_h.m4: New file.
56155         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56156
56157 2007-02-18  Bruno Haible  <bruno@clisp.org>
56158
56159         * modules/math-tests: New file.
56160         * tests/test-math.c: New file.
56161
56162         * modules/math: New file.
56163         * modules/mathl (Files): Remove lib/mathl.h.
56164         (Depends-on): Add math.
56165         (Makefile.am): Don't mention mathl.h.
56166         (Include): Use <math.h> instead of mathl.h.
56167         * lib/math_.h: New file.
56168         * lib/mathl.h: Remove file.
56169         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56170         mathl.h.
56171         * lib/asinl.c: Likewise.
56172         * lib/atanl.c: Likewise.
56173         * lib/ceill.c: Likewise.
56174         * lib/cosl.c: Likewise.
56175         * lib/expl.c: Likewise.
56176         * lib/floorl.c: Likewise.
56177         * lib/frexpl.c: Likewise.
56178         * lib/ldexpl.c: Likewise.
56179         * lib/logl.c: Likewise.
56180         * lib/sincosl.c: Likewise.
56181         * lib/sinl.c: Likewise.
56182         * lib/sqrtl.c: Likewise.
56183         * lib/tanl.c: Likewise.
56184         * lib/trigl.c: Likewise.
56185         * m4/math_h.m4: New file.
56186         * MODULES.html.sh (Mathematics): Add math.
56187
56188 2007-02-17  Bruno Haible  <bruno@clisp.org>
56189
56190         * modules/wctype-tests: New file.
56191         * tests/test-wctype.c: New file.
56192
56193         * modules/wchar-tests: New file.
56194         * tests/test-wchar.c: New file.
56195
56196         * modules/unistd-tests: New file.
56197         * tests/test-unistd.c: New file.
56198
56199         * modules/time-tests: New file.
56200         * tests/test-time.c: New file.
56201
56202         * modules/sysexits-tests: New file.
56203         * tests/test-sysexits.c: New file.
56204
56205         * modules/sys_time-tests: New file.
56206         * tests/test-sys_time.c: New file.
56207
56208         * modules/sys_stat-tests: New file.
56209         * tests/test-sys_stat.c: New file.
56210
56211         * modules/sys_socket-tests: New file.
56212         * tests/test-sys_socket.c: New file.
56213
56214         * modules/sys_select-tests: New file.
56215         * tests/test-sys_select.c: New file.
56216
56217         * modules/string-tests: New file.
56218         * tests/test-string.c: New file.
56219
56220         * modules/stdbool-tests: New file.
56221         * tests/test-stdbool.c: New file.
56222
56223         * modules/netinet_in-tests: New file.
56224         * tests/test-netinet_in.c: New file.
56225
56226         * modules/inttypes-tests: New file.
56227         * tests/test-inttypes.c: New file.
56228
56229         * modules/fcntl-tests: New file.
56230         * tests/test-fcntl.c: New file.
56231
56232         * modules/byteswap-tests: New file.
56233         * tests/test-byteswap.c: New file.
56234
56235         * modules/arpa_inet-tests: New file.
56236         * tests/test-arpa_inet.c: New file.
56237
56238 2007-02-17  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56241         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56242         if the corresponding module is not enabled. Emit link warnings if
56243         the function is used nevertheless.
56244         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56245         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56246         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56247         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56248         * modules/inttypes (Depends-on): Add link-warning.
56249         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56250         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56251         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56252         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56253         * modules/imaxdiv (configure.ac): Likewise.
56254         * modules/strtoimax (configure.ac): Likewise.
56255         * modules/strtoumax (configure.ac): Likewise.
56256
56257 2007-02-17  Bruno Haible  <bruno@clisp.org>
56258
56259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56260         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56261         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56262         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56263
56264 2007-02-17  Bruno Haible  <bruno@clisp.org>
56265
56266         * modules/link-warning: New file.
56267         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56268         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56269         * modules/string (Depends-on): Add link-warning.
56270         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56271         string.h.
56272         * MODULES.html.sh (Support for building libraries and executables): Add
56273         link-warning.
56274
56275 2007-02-17  Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56278         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56279         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56280         long lines.
56281
56282 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56283             Bruno Haible  <bruno@clisp.org>
56284
56285         * modules/tmpfile: New file.
56286         * lib/tmpfile.c: New file.
56287         * m4/tmpfile.m4: New file.
56288         * MODULES.html.sh (func_all_modules): New section "Input/output".
56289
56290 2007-02-15  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56293         (supports_delete_on_close): New function.
56294         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56295
56296 2007-02-14  Bruno Haible  <bruno@clisp.org>
56297
56298         * modules/mbspcasecmp-tests: New file.
56299         * tests/test-mbspcasecmp.sh: New file.
56300         * tests/test-mbspcasecmp.c: New file.
56301
56302         New module mbspcasecmp.
56303         * modules/mbspcasecmp: New file.
56304         * lib/mbspcasecmp.c: New file.
56305         * lib/string_.h (strncasecmp): Change warning message.
56306         (mbspcasecmp): New declaration.
56307         * m4/mbspcasecmp.m4: New file.
56308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56309         GNULIB_MBSPCASECMP.
56310         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56311         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56312
56313 2007-02-14  Bruno Haible  <bruno@clisp.org>
56314
56315         * modules/mbsncasecmp-tests: New file.
56316         * tests/test-mbsncasecmp.sh: New file.
56317         * tests/test-mbsncasecmp.c: New file.
56318
56319         New module mbsncasecmp.
56320         * modules/mbsncasecmp: New file.
56321         * lib/mbsncasecmp.c: New file.
56322         * lib/string_.h (mbsncasecmp): New declaration.
56323         * m4/mbsncasecmp.m4: New file.
56324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56325         GNULIB_MBSNCASECMP.
56326         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56327         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56328
56329 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56332         Verify that it doesn't overlap with our flags.
56333         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56334         do not have the desired effect in multibyte locales; instead, use
56335         mbscasecmp.
56336         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56337         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56338         we don't require GNU fnmatch ourselves (if our users require it, they
56339         should do so explicitly).
56340
56341         Fix regex code so it doesn't rely on strcasecmp.
56342         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56343         Otherwise, include gnulib's langinfo.h.
56344         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56345         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56346         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56347         * modules/regex (FILES): Remove m4/codeset.m4.
56348         (Depends-on): Add localcharset.  Remove strcase.
56349
56350 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56351
56352         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56353         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56354
56355 2007-02-13  Bruno Haible  <bruno@clisp.org>
56356
56357         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56358         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56359
56360 2007-02-12  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56363         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56364         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56365         time warning rather than a link error.
56366
56367 2007-02-12  Bruno Haible  <bruno@clisp.org>
56368
56369         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56370         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56372
56373 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56376         args, not 2.
56377
56378 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56379
56380         New module 'time', so that apps can include <time.h> as per
56381         POSIX and GNU instead of separate include files like time_r.h
56382         and timegm.h.  This implementation tries out a simpler approach
56383         for replacing decls in standard include files (as compared to
56384         the string module), somewhat as an experiment.
56385
56386         * config/srclist.txt: Comment out mktime.c for now.
56387         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56388         since it doesn't apply any more.  Use generic wording instead.
56389         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56390         'time'.
56391         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56392         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56393         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56394         Don't include <sys/types.h>; no longer needed since we assume C89.
56395         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56396         * lib/strftime.c: Likewise.
56397         * lib/time_r.c: Likewise.
56398         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56399         * lib/nanosleep.c: Include <time.h> first, to check interface.
56400         * lib/strptime.c: Likewise.
56401         * lib/time_r.c: Likewise.
56402         * lib/timegm.c: Likewise.
56403         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56404         needed.
56405         * lib/timegm.c: Don't include timegm.h; no longer needed.
56406         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56407         time.h now handles any problems in that area.
56408         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56409         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56410         that time.h defines struct timespec.
56411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56412         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56413         handles that.
56414         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56415         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56416         needed.  Set REPLACE_LOCALTIME.
56417         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56418         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56419         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56420         nanosleep; time_h.m4 now does that.  Don't require
56421         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56422         module handles this now.
56423         * modules/getdate (Depends-on): Remove timespec.  Add time.
56424         * modules/nanosleep (Depends-on): Likewise.
56425         * modules/stat-time (Depends-on): Likewise.
56426         * modules/nanosleep (Include): Include time.h, not timespec.h.
56427         * modules/strptime (Files): Remove lib/strptime.h.
56428         (Depends-on): Add extensions, time.
56429         (Include): Include time.h, not strptime.h.
56430         * modules/time_r (Files): Remove lib/time_r.h.
56431         (Depends-on): Add time.
56432         (Include): Include time.h, not time_r.h.
56433         * modules/timegm: Likewise.
56434         * modules/timespec (Description): Now does timespec-related decls
56435         of our own, instead of struct timespec itself.
56436         (Depends-on): Add time; remove extensions.
56437         (Maintainer): Add self.
56438         * modules/utimecmp (Depends-on): Add time; remove timespec.
56439         * modules/utimens (Depends-on): Likewise.
56440         * modules/xnanosleep (Depends-on): Likewise.
56441
56442 2007-02-11  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/c-strstr.c: Include allocsa.h.
56445         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56446         * lib/c-strcasestr.c: Include allocsa.h.
56447         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56448         * lib/strcasestr.c: Include allocsa.h.
56449         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56450         * lib/mbsstr.c: Include allocsa.h.
56451         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56452         allocsa/freesa instead of malloc/free.
56453         * lib/mbscasestr.c: Include allocsa.h.
56454         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56455         allocsa/freesa instead of malloc/free.
56456         * modules/c-strstr (Depends-on): Add allocsa.
56457         * modules/c-strcasestr (Depends-on): Likewise.
56458         * modules/strcasestr (Depends-on): Likewise.
56459         * modules/mbsstr (Depends-on): Likewise.
56460         * modules/mbscasestr (Depends-on): Likewise.
56461
56462 2007-02-11  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56465
56466         * modules/mbsspn-tests: New file.
56467         * tests/test-mbsspn.sh: New file.
56468         * tests/test-mbsspn.c: New file.
56469
56470 2007-02-11  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56473
56474         * modules/mbspbrk-tests: New file.
56475         * tests/test-mbspbrk.sh: New file.
56476         * tests/test-mbspbrk.c: New file.
56477
56478 2007-02-11  Bruno Haible  <bruno@clisp.org>
56479
56480         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56481         unneeded cast.
56482
56483         * modules/mbscspn-tests: New file.
56484         * tests/test-mbscspn.sh: New file.
56485         * tests/test-mbscspn.c: New file.
56486
56487 2007-02-11  Bruno Haible  <bruno@clisp.org>
56488
56489         * modules/mbscasecmp-tests: New file.
56490         * tests/test-mbscasecmp.sh: New file.
56491         * tests/test-mbscasecmp.c: New file.
56492
56493 2007-02-11  Bruno Haible  <bruno@clisp.org>
56494
56495         Ensure O(n) worst-case complexity of mbscasestr.
56496         * lib/mbscasestr.c: Include stdbool.h.
56497         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56498         functions.
56499         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56500         the bookkeeping indicates that it's worth it.
56501         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56502
56503         * modules/mbscasestr-tests: New file.
56504         * tests/test-mbscasestr1.c: New file.
56505         * tests/test-mbscasestr2.sh: New file.
56506         * tests/test-mbscasestr2.c: New file.
56507         * tests/test-mbscasestr3.sh: New file.
56508         * tests/test-mbscasestr3.c: New file.
56509         * tests/test-mbscasestr4.sh: New file.
56510         * tests/test-mbscasestr4.c: New file.
56511         * m4/locale-tr.m4: New file.
56512
56513 2007-02-11  Bruno Haible  <bruno@clisp.org>
56514
56515         Ensure O(n) worst-case complexity of mbsstr.
56516         * lib/mbsstr.c: Include stdbool.h.
56517         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56518         functions.
56519         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56520         bookkeeping indicates that it's worth it.
56521         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56522
56523         * modules/mbsstr-tests: New file.
56524         * tests/test-mbsstr1.c: New file.
56525         * tests/test-mbsstr2.sh: New file.
56526         * tests/test-mbsstr2.c: New file.
56527         * tests/test-mbsstr3.sh: New file.
56528         * tests/test-mbsstr3.c: New file.
56529         * m4/locale-fr.m4: New file.
56530
56531 2007-02-11  Bruno Haible  <bruno@clisp.org>
56532
56533         * lib/mbsrchr.c (mbsrchr): Fix bug.
56534
56535         * modules/mbsrchr-tests: New file.
56536         * tests/test-mbsrchr.sh: New file.
56537         * tests/test-mbsrchr.c: New file.
56538
56539 2007-02-11  Bruno Haible  <bruno@clisp.org>
56540
56541         * lib/mbschr.c (mbschr): Fix bug.
56542
56543         * modules/mbschr-tests: New file.
56544         * tests/test-mbschr.sh: New file.
56545         * tests/test-mbschr.c: New file.
56546         * m4/locale-zh.m4: New file.
56547
56548 2007-02-11  Bruno Haible  <bruno@clisp.org>
56549
56550         Support for copying multibyte string iterators.
56551         * lib/mbiter.h: Include <string.h>.
56552         (mbiter_multi_copy): New function.
56553         (mbi_copy): New macro.
56554         * lib/mbuiter.h: Include <string.h>.
56555         (mbuiter_multi_copy): New function.
56556         (mbui_copy): New macro.
56557
56558 2007-02-11  Bruno Haible  <bruno@clisp.org>
56559
56560         New module mbslen.
56561         * modules/mbslen: New file.
56562         * lib/mbslen.c: New file.
56563         * lib/string_.h (mbslen): New declaration.
56564         * m4/mbslen.m4: New file.
56565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56566         GNULIB_MBSLEN.
56567         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56568         * MODULES.html.sh (Internationalization functions): Add mbslen.
56569
56570 2007-02-11  Bruno Haible  <bruno@clisp.org>
56571
56572         Ensure O(n) worst-case complexity of strcasestr substitute.
56573         * lib/strcasestr.c: Include stdbool.h.
56574         (knuth_morris_pratt): New function.
56575         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56576         bookkeeping indicates that it's worth it.
56577         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56578
56579         * modules/strcasestr-tests: New file.
56580         * tests/test-strcasestr.c: New file.
56581
56582 2007-02-11  Bruno Haible  <bruno@clisp.org>
56583
56584         Ensure O(n) worst-case complexity of c_strcasestr.
56585         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56586         (knuth_morris_pratt): New function.
56587         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56588         the bookkeeping indicates that it's worth it.
56589         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56590
56591         * modules/c-strcasestr-tests: New file.
56592         * tests/test-c-strcasestr.c: New file.
56593
56594 2007-02-11  Bruno Haible  <bruno@clisp.org>
56595
56596         Ensure O(n) worst-case complexity of c_strstr.
56597         * lib/c-strstr.c: Include stdbool.h, string.h.
56598         (knuth_morris_pratt): New function.
56599         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56600         bookkeeping indicates that it's worth it.
56601         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56602
56603         * lib/c-strstr.c: Complete rewrite for maintainability.
56604
56605         * modules/c-strstr-tests: New file.
56606         * tests/test-c-strstr.c: New file.
56607
56608 2007-02-11  Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56611         5.2.1 and earlier, whereby \055 was treated just like the range
56612         delimiter '-'.
56613         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56614
56615 2007-02-08  Bruno Haible  <bruno@clisp.org>
56616
56617         * modules/regex (Depends-on): Add stdbool.
56618         Reported by Dalibor Topic <robilad@kaffe.org>.
56619
56620 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56623         Prefer returning from main to exiting from it.
56624         Remove unnecessary parens after sizeof.
56625
56626 2007-02-05  Bruno Haible  <bruno@clisp.org>
56627
56628         New module mbssep.
56629         * modules/mbssep: New file.
56630         * lib/mbssep.c: New file.
56631         * lib/string_.h (strsep): Add a conditional link warning.
56632         (mbssep): New declaration.
56633         * m4/mbssep.m4: New file.
56634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56635         GNULIB_MBSSEP.
56636         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56637         * MODULES.html.sh (Internationalization functions): Add mbssep.
56638
56639 2007-02-05  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56642         Optimize search in case of 1 delimiter.
56643
56644 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56645
56646         * lib/acl.h: Include sys/types.h before sys/acl.h.
56647
56648 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56649
56650         Merge upstream fix for glibc bugzilla #3957:
56651
56652         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56653
56654         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56655         bit for RE_HAT_LISTS_NOT_NEWLINE.
56656         (build_charclass_op): Remove bogus comment.
56657
56658 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56659
56660         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56661
56662 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56663
56664         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56665         * lib/memmem.c [!defined _LIBC]: Include config.h.
56666
56667 2007-02-04  Bruno Haible  <bruno@clisp.org>
56668
56669         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56670         warning message.
56671
56672 2007-02-04  Bruno Haible  <bruno@clisp.org>
56673
56674         New module mbstok_r.
56675         * modules/mbstok_r: New file.
56676         * lib/mbstok_r.c: New file.
56677         * lib/string_.h (strtok_r): Change argument names to match the
56678         comments. Add a conditional link warning.
56679         (mbstok_r): New declaration.
56680         * m4/mbstok_r.m4: New file.
56681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56682         GNULIB_MBSTOK_R.
56683         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56684         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56685
56686 2007-02-04  Bruno Haible  <bruno@clisp.org>
56687
56688         New module mbsspn.
56689         * modules/mbsspn: New file.
56690         * lib/mbsspn.c: New file.
56691         * lib/string_.h (strspn): Add a conditional link warning.
56692         (mbsspn): New declaration.
56693         * m4/mbsspn.m4: New file.
56694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56695         GNULIB_MBSSPN.
56696         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56697         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56698
56699 2007-02-04  Bruno Haible  <bruno@clisp.org>
56700
56701         New module mbspbrk.
56702         * modules/mbspbrk: New file.
56703         * lib/mbspbrk.c: New file.
56704         * lib/string_.h (strpbrk): Add a conditional link warning.
56705         (mbspbrk): New declaration.
56706         * m4/mbspbrk.m4: New file.
56707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56708         GNULIB_MBSPBRK.
56709         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56710         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56711
56712 2007-02-04  Bruno Haible  <bruno@clisp.org>
56713
56714         New module mbscspn.
56715         * modules/mbscspn: New file.
56716         * lib/mbscspn.c: New file.
56717         * lib/string_.h (strcspn): Add a conditional link warning.
56718         (mbscspn): New declaration.
56719         * m4/mbscspn.m4: New file.
56720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56721         GNULIB_MBSCSPN.
56722         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56723         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56724
56725 2007-02-04  Bruno Haible  <bruno@clisp.org>
56726
56727         New module mbscasestr, reduced goal of strcasestr.
56728         * modules/mbscasestr: New file.
56729         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56730         (mbscasestr): Renamed from strcasestr.
56731         * lib/strcasestr.c: Don't include mbuiter.h.
56732         (strcasestr): Remove support for multibyte locales.
56733         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56734         Change the conditional link warning.
56735         (mbscasestr): New declaration.
56736         * m4/mbscasestr.m4: New file.
56737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56738         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56739         REPLACE_STRCASESTR.
56740         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56742         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56743         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56744         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56745         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56746         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56747         (Depends-on): Remove mbuiter.
56748         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56749
56750 2007-02-04  Bruno Haible  <bruno@clisp.org>
56751
56752         Simplify handling of strncasecmp.
56753         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56754         the conditional link warning.
56755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56756         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56758         * modules/strcase (configure.ac): Don't invoke
56759         gl_STRING_MODULE_INDICATOR.
56760         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56761
56762 2007-02-04  Bruno Haible  <bruno@clisp.org>
56763
56764         New module mbscasecmp, reduced goal of strcasecmp.
56765         * modules/mbscasecmp: New file.
56766         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56767         (mbscasecmp): Renamed from strcasecmp.
56768         * lib/strcasecmp.c: Don't include mbuiter.h.
56769         (strcasecmp): Remove support for multibyte locales.
56770         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56771         Change the conditional link warning.
56772         (mbscasecmp): New declaration.
56773         * m4/mbscasecmp.m4: New file.
56774         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56775         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56776         REPLACE_STRCASECMP.
56777         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56779         GNULIB_MBSCASECMP.
56780         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56781         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56782         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56783         (Depends-on): Remove mbuiter.
56784         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56785
56786 2007-02-04  Bruno Haible  <bruno@clisp.org>
56787
56788         New module mbsstr. Remove module strstr.
56789         * modules/mbsstr: New file.
56790         * modules/strstr: Remove file.
56791         * lib/mbsstr.c: Renamed from lib/strstr.c.
56792         (mbsstr): Renamed from strstr.
56793         * lib/string_.h (strstr): Remove declaration. Change the conditional
56794         link warning.
56795         (mbsstr): New declaration.
56796         * m4/mbsstr.m4: New file.
56797         * m4/strstr.m4: Remove file.
56798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56799         REPLACE_STRSTR.
56800         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56801         Don't initialize GNULIB_STRSTR.
56802         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56803         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56804         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56805         (Support for systems lacking ANSI C 89): Remove strstr.
56806
56807 2007-02-04  Bruno Haible  <bruno@clisp.org>
56808
56809         New module mbsrchr.
56810         * modules/mbsrchr: New file.
56811         * lib/mbsrchr.c: New file.
56812         * lib/string_.h (strrchr): Add a conditional link warning.
56813         (mbsrchr): New declaration.
56814         * m4/mbsrchr.m4: New file.
56815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56816         GNULIB_MBSRCHR.
56817         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56818         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56819
56820 2007-02-04  Bruno Haible  <bruno@clisp.org>
56821
56822         New module mbschr.
56823         * modules/mbschr: New file.
56824         * lib/mbschr.c: New file.
56825         * lib/string_.h (strchr): Add a conditional link warning.
56826         (mbschr): New declaration.
56827         * m4/mbschr.m4: New file.
56828         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56829         GNULIB_MBSCHR.
56830         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56831         * MODULES.html.sh (Internationalization functions): Add mbschr.
56832
56833 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56834
56835         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56836
56837         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56838
56839 2007-02-04  Bruno Haible  <bruno@clisp.org>
56840
56841         New module description section 'configure.ac-early'.
56842         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56843         (func_get_autoconf_early_snippet): New function.
56844         (func_import, func_create_testdir): Use it. Remove special cases for
56845         modules 'extensions' and 'lock'.
56846         * modules/extensions (configure.ac-early): Require
56847         gl_USE_SYSTEM_EXTENSIONS.
56848         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56849
56850 2007-02-04  Bruno Haible  <bruno@clisp.org>
56851
56852         Make use of gcj-4.3's -fsource and -ftarget option.
56853         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56854         and if so try the options -fsource and -ftarget.
56855         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56856         source_version, ftarget_option, target_version arguments.
56857         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56858         (is_envjavac_oldgcj_14_14_usable): Renamed from
56859         is_envjavac_gcj_14_14_usable.
56860         (is_envjavac_oldgcj_14_13_usable): Renamed from
56861         is_envjavac_gcj_14_13_usable.
56862         (is_gcj_present): Update.
56863         (is_gcj_43, is_gcj43_usable): New functions.
56864         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56865         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56866         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56867         try the options -fsource and -ftarget.
56868
56869 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56870
56871         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56872         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56873         larger value.
56874
56875 2007-02-03  Jim Meyering  <jim@meyering.net>
56876
56877         Give tools a better chance to allocate space for very large buffers.
56878         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56879
56880         Make pwd and readlink work also when run with an unreadable parent dir
56881         on systems with openat support.
56882         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56883         provided getcwd function, even when we have openat support.
56884         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56885
56886 2007-02-02  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56889         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56890         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56891         portability problems if one of these functions is only used on specific
56892         platforms.
56893         Reported by Paul Eggert.
56894
56895 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56896
56897         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56898         is causing more trouble than it's curing.
56899         * lib/regex_internal.h (__mempcpy): Remove.
56900         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56901         (and make the code a tad smaller to boot).
56902         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56903
56904 2007-02-02  Jim Meyering  <jim@meyering.net>
56905
56906         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56907         section, not in the Makefile.am: one.
56908
56909 2007-02-02  Eric Blake  <ebb9@byu.net>
56910
56911         * lib/strchrnul.c: Always include config.h first.
56912
56913         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56914         gnulib strstr is not necessary here.
56915
56916 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56917
56918         * m4/socklen.m4: Fix typo.
56919
56920 2007-02-02  Eric Blake  <ebb9@byu.net>
56921
56922         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56923         * modules/netinet_in (Makefile.am): Likewise.
56924
56925 2007-02-01  Bruno Haible  <bruno@clisp.org>
56926
56927         * lib/string_.h (GL_LINK_WARNING): New macro.
56928         (strcasecmp, strstr, strcasestr): If provided by the system,
56929         conditionally define as a macro that leads to a warning instead of to
56930         an error.
56931         (strncasecmp): Conditionally define as a macro that leads to a warning.
56932
56933 2007-02-01  Karl Berry  <karl@gnu.org>
56934
56935         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56936
56937 2007-02-01  Bruno Haible  <bruno@clisp.org>
56938
56939         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56940         renamings.
56941
56942 2007-02-01  Eric Blake  <ebb9@byu.net>
56943
56944         * modules/regex (Depends-on): Revert dependence on mempcpy.
56945         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56946         module's definition of mempcpy.
56947         Reported by Paul Eggert.
56948
56949 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56950
56951         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56952         the symbol XYZ before redefining it.  This fixes a problem with
56953         programs that don't use XYZ, when compiled on systems that define
56954         XYZ to something else.
56955
56956 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56957
56958         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56959         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56960         writeable to group or other and (2) is intended to have a special
56961         mode bit that is set or cleared.  In such a case, the directory
56962         should be neither group- nor other-writeable until the special
56963         mode bits are right.
56964
56965 2007-01-31  Eric Blake  <ebb9@byu.net>
56966
56967         * modules/mountlist (Depends-on): Add strstr.
56968
56969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56970         bug.
56971         * modules/string (Makefile.am): Remove redundant replacement.
56972         * modules/regex (Depends-on): Add mempcpy.
56973
56974 2007-01-31  Bruno Haible  <bruno@clisp.org>
56975
56976         New module description field 'Link'.
56977         * gnulib-tool (func_usage): Document --extract-link-directive.
56978         (sed_extract_prog): Recognize 'Link' directive.
56979         (func_get_link_directive): New function.
56980         (func_import): Show summary of link directives.
56981         Handle --extract-link-directive option.
56982         * modules/acl (Link): New section.
56983         * modules/clock-time (Link): New section.
56984         * modules/euidaccess (Link): New section.
56985         * modules/gettext (Link): New section.
56986         * modules/iconv (Link): New section.
56987         * modules/lock (Link): New section.
56988         * modules/nanosleep (Link): New section.
56989         * modules/readline (Link): New section.
56990
56991 2007-01-27  Bruno Haible  <bruno@clisp.org>
56992
56993         Enforce the use of gnulib modules for unportable <string.h> functions.
56994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56995         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56996         (gl_HEADER_STRING_H_BODY): Require it.
56997         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56998         the symbol XYZ to one that gives a link error.
56999         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57000         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57001         * modules/mempcpy (configure.ac): Likewise.
57002         * modules/memrchr (configure.ac): Likewise.
57003         * modules/stpcpy (configure.ac): Likewise.
57004         * modules/stpncpy (configure.ac): Likewise.
57005         * modules/strcase (configure.ac): Likewise.
57006         * modules/strcasestr (configure.ac): Likewise.
57007         * modules/strchrnul (configure.ac): Likewise.
57008         * modules/strdup (configure.ac): Likewise.
57009         * modules/strndup (configure.ac): Likewise.
57010         * modules/strnlen (configure.ac): Likewise.
57011         * modules/strpbrk (configure.ac): Likewise.
57012         * modules/strsep (configure.ac): Likewise.
57013         * modules/strstr (configure.ac): Likewise.
57014         * modules/strtok_r (configure.ac): Likewise.
57015
57016 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57017
57018         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57019
57020 2007-01-30  Jim Meyering  <jim@meyering.net>
57021
57022         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57023
57024 2007-01-29  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57027         * lib/execute.c: Likewise.
57028         * lib/pipe.c: Likewise.
57029         * lib/printf-args.h: Likewise.
57030         * lib/printf-args.c: Likewise.
57031         * lib/printf-parse.c: Likewise.
57032         * lib/vasnprintf.c: Likewise.
57033
57034 2007-01-29  Eric Blake  <ebb9@byu.net>
57035
57036         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57037         declaration.
57038
57039 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57040
57041         * lib/strptime.h (strptime): Use 'restrict' for args where
57042         POSIX requires this.
57043         * lib/strptime.c (strptime): Likewise.
57044         Change license notice from LGPL to GPL, since gnulib-tool will
57045         change this as needed.
57046         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57047         defined.
57048         Include "strptime.h" first, to check interface.
57049         Do not #undef _LIBC and _NL_CURRENT.
57050         Do not include <stdlib.h>; no longer needed.
57051         Include "time_r.h" and declare ptime_locale_status
57052         only if _LIBC is not defined.
57053         (__P): Remove unused macro.
57054         (match_string): Bring back glibc version, but use it only if _LIBC
57055         is defined.
57056         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57057         Remove unnecessary assertion and abort() call.
57058         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57059         * m4/strptime.m4: Fix serial number comment.
57060         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57061         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57062         (Depends-on): Add time_r.
57063
57064 2007-01-29  Bruno Haible  <bruno@clisp.org>
57065
57066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57067         strptime.
57068         * modules/strptime (Depends-on): Add stdbool.
57069         * lib/strptime.h: Include <time.h> always. Add comments.
57070
57071 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57072
57073         * modules/strptime: New file.
57074         * lib/strptime.h: New file.
57075         * lib/strptime.c: New file.
57076         * m4/strptime.m4: New file.
57077
57078 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57079
57080         * MODULES.html.sh: New module mpsort.
57081         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57082
57083         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57084         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57085         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57086         All uses changed.
57087         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57088         All uses changed.
57089         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57090         to _Restrict_.
57091         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57092         the parameter matches the prototype.
57093
57094 2007-01-28  Jim Meyering  <jim@meyering.net>
57095
57096         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57097         sys/time.h here, reverting that part of the previous patch:
57098         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57099
57100 2007-01-28  Bruno Haible  <bruno@clisp.org>
57101
57102         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57103         value of $(SYS_TIME_H).
57104         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57105         remove it conditionally, too. [added by Jim Meyering]
57106         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57108         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57109         GETTIMEOFDAY_REPLACEMENT to 1.
57110
57111 2007-01-28  Bruno Haible  <bruno@clisp.org>
57112
57113         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57114         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57116         Set UNISTD_H instead of UNISTD_H2.
57117         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57118
57119 2007-01-28  Bruno Haible  <bruno@clisp.org>
57120
57121         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57122         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57123
57124 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57125
57126         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57127         (func_create_testdir): Ensure C locale for `grep' and `tr'
57128         character ranges.
57129         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57130         ACLOCAL_AMFLAGS parsing state machine.
57131
57132 2007-01-27  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/unistr/base: Update.
57135
57136 2007-01-27  Bruno Haible  <bruno@clisp.org>
57137
57138         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57139         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57140         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57141         modules/unistr/u32-mbtouc.
57142         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57143         * lib/unistr.h: Update.
57144         * lib/linebreak.c: Update.
57145         * modules/unistr/u32-mbtouc: Renamed from
57146         modules/unistr/u32-mbtouc-safe.
57147         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57148         * lib/unistr.h: Update.
57149         * lib/unistr/u32-to-u8.c: Update.
57150         * lib/unistr/u32-to-u16.c: Update.
57151
57152 2007-01-27  Bruno Haible  <bruno@clisp.org>
57153
57154         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57155         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57156         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57157         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57158         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57159         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57160         modules/unistr/u16-mbtouc.
57161         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57162         * lib/unistr.h: Update.
57163         * lib/linebreak.c: Update.
57164         * modules/linebreak: Update.
57165         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57166         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57167         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57168         * modules/unistr/u16-mbtouc: Renamed from
57169         modules/unistr/u16-mbtouc-safe.
57170         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57171         * lib/unistr.h: Update.
57172         * lib/unistr/u16-to-u8.c: Update.
57173         * modules/unistr/u16-to-u8: Update.
57174         * lib/unistr/u16-to-u32.c: Update.
57175         * modules/unistr/u16-to-u32: Update.
57176
57177 2007-01-27  Bruno Haible  <bruno@clisp.org>
57178
57179         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57180         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57181         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57182         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57183         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57184         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57185         modules/unistr/u8-mbtouc.
57186         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57187         * lib/unistr.h: Update.
57188         * lib/striconveh.c: Update.
57189         * modules/striconveh: Update.
57190         * lib/linebreak.c: Update.
57191         * modules/linebreak: Update.
57192         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57193         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57194         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57195         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57196         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57197         * lib/unistr.h: Update.
57198         * lib/striconveh.c: Update.
57199         * modules/striconveh: Update.
57200         * lib/unistr/u8-to-u16.c: Update.
57201         * modules/unistr/u8-to-u16: Update.
57202         * lib/unistr/u8-to-u32.c: Update.
57203         * modules/unistr/u8-to-u32: Update.
57204
57205 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57206
57207         Sync from Libtool.
57208         * lib/argz.c: Do not include strings.h nor memory.h, include
57209         string.h unconditionally.  Patch by Simon Josefsson.
57210
57211 2007-01-27  Bruno Haible  <bruno@clisp.org>
57212
57213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57214         from gl_HEADER_STRING_H_BODY.
57215         (gl_HEADER_STRING_H_BODY): Require it.
57216         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57217         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57218         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57219         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57221         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57223         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57224         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57225         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57226         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57227         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57228         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57229         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57230         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57231
57232 2007-01-27  Bruno Haible  <bruno@clisp.org>
57233
57234         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57235         check_PROGRAMS into noinst_PROGRAMS.
57236         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57237         check_PROGRAMS in this case.
57238         (func_import): Set for_test to false.
57239         (func_create_testdir): Set for_test to true.
57240
57241 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57242             Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57245         (Depends-on): Add string.
57246         (Includes): Use <string.h> instead of strcasestr.h.
57247         * modules/string (Makefile.am): Also substitute the value of
57248         REPLACE_STRCASESTR.
57249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57250         assume strcasestr is declared in <string.h> not <strings.h>. Also
57251         set REPLACE_STRCASESTR.
57252         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57253         REPLACE_STRCASESTR.
57254         * lib/strcasestr.h: Remove file.
57255         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57256         * lib/string_.h (strcasestr): New declaration.
57257
57258 2007-01-27  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/string_.h: Use 'extern'.
57261
57262 2007-01-27  Jim Meyering  <jim@meyering.net>
57263
57264         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57265         of set-but-not-used local, "q".
57266
57267         * lib/mempcpy.c: Include <config.h> before <string.h>.
57268         This fixes a compilation error on HP-UX, due to the system's
57269         "restrict"-using mempcpy prototype.
57270
57271 2007-01-26  Bruno Haible  <bruno@clisp.org>
57272
57273         Small optimization.
57274         * lib/javacomp.c: Include c-strstr.h.
57275          (is_envjavac_gcj): Use c_strstr instead of strstr.
57276         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57277
57278 2007-01-26  Bruno Haible  <bruno@clisp.org>
57279
57280         * MODULES.html.sh (Unicode string functions): Add the new modules.
57281
57282         * modules/uniconv/u32-strconv-to-locale: New file.
57283         * lib/uniconv/u32-strconv-to-locale.c: New file.
57284
57285         * modules/uniconv/u16-strconv-to-locale: New file.
57286         * lib/uniconv/u16-strconv-to-locale.c: New file.
57287
57288         * modules/uniconv/u8-strconv-to-locale: New file.
57289         * lib/uniconv/u8-strconv-to-locale.c: New file.
57290
57291         * modules/uniconv/u32-strconv-from-locale: New file.
57292         * lib/uniconv/u32-strconv-from-locale.c: New file.
57293
57294         * modules/uniconv/u16-strconv-from-locale: New file.
57295         * lib/uniconv/u16-strconv-from-locale.c: New file.
57296
57297         * modules/uniconv/u8-strconv-from-locale: New file.
57298         * lib/uniconv/u8-strconv-from-locale.c: New file.
57299
57300         * modules/uniconv/u32-strconv-to-enc: New file.
57301         * lib/uniconv/u32-strconv-to-enc.c: New file.
57302         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57303         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57304
57305         * modules/uniconv/u16-strconv-to-enc: New file.
57306         * lib/uniconv/u16-strconv-to-enc.c: New file.
57307         * lib/uniconv/u-strconv-to-enc.h: New file.
57308         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57309         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57310
57311         * modules/uniconv/u8-strconv-to-enc: New file.
57312         * lib/uniconv/u8-strconv-to-enc.c: New file.
57313         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57314         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57315
57316         * modules/uniconv/u32-strconv-from-enc: New file.
57317         * lib/uniconv/u32-strconv-from-enc.c: New file.
57318         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57319         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57320
57321         * modules/uniconv/u16-strconv-from-enc: New file.
57322         * lib/uniconv/u16-strconv-from-enc.c: New file.
57323         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57324         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57325
57326         * modules/uniconv/u8-strconv-from-enc: New file.
57327         * lib/uniconv/u8-strconv-from-enc.c: New file.
57328         * lib/uniconv/u-strconv-from-enc.h: New file.
57329         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57330         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57331
57332         * modules/uniconv/u32-conv-from-enc: New file.
57333         * lib/uniconv/u32-conv-from-enc.c: New file.
57334         * modules/uniconv/u32-conv-from-enc-tests: New file.
57335         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57336
57337         * modules/uniconv/u16-conv-from-enc: New file.
57338         * lib/uniconv/u16-conv-from-enc.c: New file.
57339         * lib/uniconv/u-conv-from-enc.h: New file.
57340         * modules/uniconv/u16-conv-from-enc-tests: New file.
57341         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57342
57343         * modules/uniconv/u8-conv-from-enc: New file.
57344         * lib/uniconv/u8-conv-from-enc.c: New file.
57345         * modules/uniconv/u8-conv-from-enc-tests: New file.
57346         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57347
57348         * modules/uniconv/base: New file.
57349         * lib/uniconv.h: New file.
57350
57351 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57352
57353         * doc/gnulib-tool.texi (Initial import): Update to match current
57354         behavior with strdup module.
57355         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57356         * lib/memmem.h: Remove; all uses removed.  This is now done
57357         by <string.h>.
57358         * lib/mempcpy.h: Likewise.
57359         * lib/memrchr.h: Likewise.
57360         * lib/stpcpy.h: Likewise.
57361         * lib/stpncpy.h: Likewise.
57362         * lib/strcase.h: Likewise.
57363         * lib/strchrnul.h: Likewise.
57364         * lib/strdup.h: Likewise.
57365         * lib/strndup.h: Likewise.
57366         * lib/strnlen.h: Likewise.
57367         * lib/strpbrk.h: Likewise.
57368         * lib/strsep.h: Likewise.
57369         * lib/strstr.h: Likewise.
57370         * lib/strtok_r.h: Likewise.
57371         * lib/string_.h: New file.
57372         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57373         Rely on <string.h> instead.
57374         * lib/canon-host.c: Likewise.
57375         * lib/chdir-long.c: Likewise.
57376         * lib/concatpath.c: Likewise.
57377         * lib/exclude.c: Likewise.
57378         * lib/fchdir.c: Likewise.
57379         * lib/getaddrinfo.c: Likewise.
57380         * lib/getcwd.c: Likewise.
57381         * lib/getsubopt.c: Likewise.
57382         * lib/glob.c: Likewise.
57383         * lib/hard-locale.c: Likewise.
57384         * lib/iconvme.c: Likewise.
57385         * lib/javacomp.c: Likewise.
57386         * lib/mempcpy.c: Likewise.
57387         * lib/memrchr.c: Likewise.
57388         * lib/regex_internal.h: Likewise.
57389         * lib/stpncpy.c: Likewise.
57390         * lib/strcasecmp.c: Likewise.
57391         * lib/strchrnul.c: Likewise.
57392         * lib/strdup.c: Likewise.
57393         * lib/striconv.c: Likewise.
57394         * lib/striconveh.c: Likewise.
57395         * lib/striconveha.c: Likewise.
57396         * lib/strncasecmp.c: Likewise.
57397         * lib/strndup.c: Likewise.
57398         * lib/strnlen.c: Likewise.
57399         * lib/strsep.c: Likewise.
57400         * lib/strstr.c: Likewise.
57401         * lib/strtok_r.c: Likewise.
57402         * lib/userspec.c: Likewise.
57403         * lib/w32spawn.h: Likewise.
57404         * lib/xstrndup.c: Likewise.
57405         * lib/mountlist.c (strstr): Remove decl.
57406         * m4/string_h.m4: New file.
57407         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57408         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57409         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57410         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57411         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57412         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57413         Set REPLACE_STRCASECMP if necessary.
57414         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57415         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57416         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57417         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57418         HAVE_DECL_STRDUP if necessary.
57419         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57420         since gl_FUNC_STRNDUP does that now.
57421         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57422         Check for decl here...
57423         (gl_PREREQ_STRNLEN): ... not here.
57424         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57425         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57426         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57428         necessary.
57429         * modules/string: New file.
57430         * modules/memmem (Files): Remove special-purpose include file.
57431         (Depends-on): Add string.
57432         (Include): Include <string.h>, not the removed file.
57433         * modules/mempcpy: Likewise.
57434         * modules/memrchr: Likewise.
57435         * modules/stpcpy: Likewise.
57436         * modules/stpncpy: Likewise.
57437         * modules/strcase: Likewise.
57438         * modules/strchrnul: Likewise.
57439         * modules/strdup: Likewise.
57440         * modules/strndup: Likewise.
57441         * modules/strnlen: Likewise.
57442         * modules/strpbrk: Likewise.
57443         * modules/strsep: Likewise.
57444         * modules/strstr: Likewise.
57445         * modules/strtok_r: Likewise.
57446         * tests/test-dirname.c: Don't include "strdup.h", since
57447         <string.h> now suffices.
57448         * tests/test-memmem.c: Don't include "memmem.h", since
57449         <string.h> now suffices.
57450
57451 2007-01-25  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57454         *resultp is 0.
57455
57456         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57457         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57458         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57459         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57460
57461         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57462         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57463         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57464         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57465         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57466         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57467
57468 2007-01-24  Bruno Haible  <bruno@clisp.org>
57469
57470         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57472         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57473         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57474         gl_FUNC_FTS_CORE.
57475         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57476         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57477         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57478         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57479         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57480         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57481         gl_FUNC_FCHOWNAT.
57482         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57483         gl_FUNC_STRFTIME.
57484         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57485         Reported by Ralf Wildenhues.
57486
57487 2007-01-24  Bruno Haible  <bruno@clisp.org>
57488
57489         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57490         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57491         gl_GETADDRINFO.
57492         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57493         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57494         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57495
57496 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57499         Don't use 'exit'; just return from 'main'.
57500         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57501
57502         * lib/fnmatch_.h: Readjust white space and comments to match
57503         glibc, to avoid spurious diffs.
57504
57505 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57506
57507         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57508         2004-12-01 change by Jakub Jelinek, since this code won't compile
57509         if !LIBC.  Problem reported by Bob Proulx.
57510
57511 2007-01-23  Bruno Haible  <bruno@clisp.org>
57512
57513         * lib/striconveh.c: Include c-strcaseeq.h.
57514         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57515         * modules/striconveh (Depends-on): Add c-strcaseeq.
57516
57517 2007-01-23  Bruno Haible  <bruno@clisp.org>
57518
57519         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57520
57521         * modules/c-strcaseeq: New file.
57522         * lib/c-strcaseeq.h: New file.
57523
57524         * modules/streq: New file.
57525         * lib/streq.h: New file.
57526
57527 2007-01-23  Bruno Haible  <bruno@clisp.org>
57528
57529         * modules/striconveha-tests: New file.
57530         * tests/test-striconveha.c: New file.
57531
57532         * lib/striconveha.h: Include <stdbool.h>.
57533         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57534         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57535         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57536         (mem_iconveha): New function.
57537         (str_iconveha_notranslit): Renamed from str_iconveha.
57538         (str_iconveha): New function.
57539         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57540         c-strcase.
57541
57542 2007-01-23  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57545         encodings without forgiving before trying any encoding with handler.
57546         (str_iconveha): Try all encodings without forgiving before trying any
57547         encoding with handler.
57548
57549 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57550
57551         Import the following changes from libc.
57552
57553         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57554
57555         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57556
57557         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57558
57559         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57560         normal_bracket label.
57561
57562         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57563
57564         [BZ #361]
57565         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57566         to normal_bracket after fetching the next character.
57567
57568 2007-01-22  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57571         argument.
57572         * lib/striconveh.c (iconv_carefully_1): New function.
57573         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57574         argument.
57575         (str_cd_iconveh): Update.
57576         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57577         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57578         * tests/test-striconveh.c (MAGIC): New macro.
57579         (new_offsets): New function.
57580         (main): Test call with and without offsets.
57581
57582 2007-01-22  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57585         * modules/sys_select (Makefile.am): Likewise.
57586         * modules/sys_socket (Makefile.am): Likewise.
57587         * modules/sys_time (Makefile.am): Likewise.
57588
57589 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57590
57591         * modules/gettimeofday (License): Change from GPL to LGPL, since
57592         gettimeofday is a library function.
57593
57594 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57595
57596         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57597
57598 2007-01-21  Bruno Haible  <bruno@clisp.org>
57599
57600         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57601
57602 2007-01-21  Bruno Haible  <bruno@clisp.org>
57603
57604         * modules/striconveha: New file.
57605         * lib/striconveha.h: New file.
57606         * lib/striconveha.c: New file.
57607         * MODULES.html.sh (Internationalization functions): Add striconveha.
57608         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57609         string.
57610         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57611
57612 2007-01-21  Bruno Haible  <bruno@clisp.org>
57613
57614         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57615         * lib/striconveh.c (str_iconveh): Likewise.
57616
57617 2007-01-21  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/striconveh.h (mem_iconveh): New declaration.
57620         * lib/striconveh.c (mem_iconveh): New function.
57621         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57622
57623 2007-01-21  Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57626
57627         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57628         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57629         original result buffer.
57630         (str_cd_iconveh): Update.
57631         * tests/test-striconveh.c (main): Update.
57632
57633         * lib/striconv.h (mem_cd_iconv): Change specification.
57634         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57635         result buffer.
57636         (str_cd_iconv): Update.
57637         * tests/test-striconv.c (main): Update.
57638
57639 2007-01-21  Bruno Haible  <bruno@clisp.org>
57640
57641         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57642
57643 2007-01-20  Jim Meyering  <jim@meyering.net>
57644
57645         * lib/userspec.c (parse_with_separator): If a user or group string
57646         starts with "+", skip the corresponding name-to-ID look-up, since
57647         such a look-up must fail: user and group names may not include "+".
57648
57649 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57650
57651         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57652         since we now assume the sys_time module.
57653         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57654         check for sys/time.h; no longer needed.
57655         * modules/poll (Depends-on): Depend on sys_time.
57656
57657 2007-01-18  Bruno Haible  <bruno@clisp.org>
57658
57659         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57660         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57661
57662         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57663         gettimeofday.
57664
57665         * tests/test-gettimeofday.c: Include <time.h>.
57666         (dummy): Remove variable.
57667
57668         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57669         gl_HEADER_SYS_TIME_H.
57670         (gl_HEADER_SYS_TIME_H): New macro.
57671
57672         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57673         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57675         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57676         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57678         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57679         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57680         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57681         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57682         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57683
57684         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57685         last change; it caused a compilation error when cross-compiling to
57686         Cygwin.
57687
57688 2007-01-18  Jim Meyering  <jim@meyering.net>
57689
57690         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57691         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57692         than the race-prone "test -d sys || mkdir sys".
57693         (configure.ac): Use AC_PROG_MKDIR_P.
57694         * modules/sys_select: Likewise.
57695         * modules/sys_socket: Likewise.
57696         * modules/sys_time: Likewise.
57697
57698 2007-01-18  Eric Blake  <ebb9@byu.net>
57699
57700         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57701         replace gettimeofday.
57702         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57703         name, to avoid infinite recursion.
57704
57705 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57706
57707         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57708         module sys_time.
57709         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57710         assume timespec.h defines struct timeval.
57711         * lib/settime.c: Likewise.
57712         * lib/utimens.c: Likewise.
57713         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57714         since we now assume the gettimeofday module.
57715         * lib/tempname.c (__gen_tempname): Likewise.
57716         * lib/gettimeofday.h: Remove.
57717         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57718         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57719         Include <time.h>, for 'time()'.
57720         (localtime_buffer_addr): Also use this workaround if
57721         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57722         to simplify the uses.  All uses changed.
57723         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57724         that #undef is inside {}, and 'const' follows type name consistently.
57725         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57726         (gettimeofday): Do not use the maximum possible value for
57727         tv->tv_usec, since that might break usages other than ls.c.
57728         Instead, we'll leave ls.c alone.  This undoes today's patch
57729         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57730         we've never observed the problem but might as well keep the
57731         canary.
57732         * lib/nanosleep.c: Include timespec.h first, for interface check.
57733         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57734         now assume the sys_time module.
57735         * lib/tempname.c: Likewise.
57736         * lib/timespec.h: Likewise.
57737         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57738         needed.
57739         * lib/strftime.c: Likewise.
57740         * lib/timespec.h: Likewise.
57741         * lib/posixtm.c: Include posixtm.h first, for interface check.
57742         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57743         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57744         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57745         * lib/sys_time_.h: New file.
57746         * lib/timespec.h (struct timespec): Use long int, not long.
57747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57748         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57749         Remove obsolescent call to AC_HEADER_TIME.
57750         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57752         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57753         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57754         Likewise.
57755         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57756         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57758         into the sys_time module.  Check for gettimeofday just once.
57759         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57760         for gettimeofday signature to just check the signature.  Merely
57761         compile it, since linking doesn't test signature.  Improve test for
57762         whether gettimeofday.o is actually needed.
57763         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57764         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57765         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57766         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57767         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57768         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57769         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57770         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57771         than worrying about sys/time.h.
57772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57773         Don't bother worrying about TIME_WITH_SYS_TIME.
57774         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57775         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57776         * m4/sys_time_h.m4: New file.
57777         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57778         Don't include sys/time.h.  Return from main rather than exiting.
57779         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57780         all uses changed.
57781         * modules/gethrxtime (Depends-on): Add sys_time.
57782         * modules/gettime (Depends-on): Likewise.
57783         * modules/gettimeofday (Depends-on): Likewise.
57784         * modules/nanosleep (Depends-on): Likewise.
57785         * modules/settime (Depends-on): Likewise.
57786         * modules/tempname (Depends-on): Likewise.
57787         * modules/utimens (Depends-on): Likewise.
57788         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57789         (Include): Change back to <sys/time.h>.
57790         (Maintainer): Add self.
57791         * modules/sys_time: New file.
57792         * modules/tempname (Depends-on): Add gettimeofday.
57793         * tests/test-gettimeofday.c: Include <sys/time.h>
57794         rather than gettimeofday.h.
57795
57796 2007-01-17  Bruno Haible  <bruno@clisp.org>
57797
57798         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57799         the license default to GPL.
57800         (func_create_testdir): Don't complain if a module is LGPL and its
57801         tests module depends on GPLed modules.
57802
57803 2007-01-17  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/gettimeofday.c (gettimeofday): Add code for the case
57806         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57807         maximum possible value for tv->tv_usec, rather than the minimum one.
57808
57809 2005-10-08  Martin Lambers  <marlam@marlam.de>
57810 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57811 2007-01-16  Bruno Haible  <bruno@clisp.org>
57812
57813         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57814         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57815         gl_FUNC_GETTIMEOFDAY.
57816         (Include): Add gettimeofday.h.
57817         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57818         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57819         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57820         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57821         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57822         * lib/gettimeofday.h: New file.
57823         * lib/gettimeofday.c: Include <sys/timeb.h>.
57824         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57825         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57826         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57827         fall back on time().
57828
57829         * tests/test-gettimeofday.c: New file.
57830         * modules/gettimeofday-tests: New file.
57831
57832 2007-01-16  Eric Blake  <ebb9@byu.net>
57833
57834         * modules/fnmatch (Depends-on): Depend on wchar.
57835         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57836         * m4/fnmatch.m4: Likewise.
57837         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57838         * m4/mbchar.m4: Likewise.
57839         * modules/mbswidth (Depends-on): Depend on wchar.
57840         * lib/mbswidth.c: Assume <wchar.h>.
57841         * m4/mbswidth.m4: Likewise.
57842         * modules/quotearg (Depends-on): Depend on wchar.
57843         * lib/quotearg.c: Assume <wchar.h>.
57844         * m4/quotearg.m4: Likewise.
57845         * modules/regex (Depends-on): Depend on wchar.
57846         * lib/regex_internal.h: Assume <wchar.h>.
57847         * m4/regex.m4: Likewise.
57848         * modules/stdint (Depends-on): Depend on wchar.
57849         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57850         * m4/stdint.m4: Likewise.
57851         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57852         * modules/strftime (Depends-on): Depend on wchar.
57853         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57854         * modules/strtol (Depends-on): Depend on wchar.
57855         * lib/strtol.c: Assume <wchar.h>.
57856         * modules/wcwidth (Depends-on): Depend on wchar.
57857         * lib/wcwidth.h: Assume <wchar.h>.
57858         * m4/wcwidth.m4: Likewise.
57859
57860 2007-01-16  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/csharpexec-script: New, created from...
57863         * modules/csharpexec: ... this.
57864
57865 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57866
57867         * modules/javaexec-script: New, created from...
57868         * modules/javaexec: ... this.
57869
57870 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57871
57872         * modules/poll (Dependencies): Add sys_select.
57873
57874 2007-01-15  Jim Meyering  <jim@meyering.net>
57875
57876         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57877         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57878         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57879         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57880
57881 2007-01-15  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/striconveh: New file.
57884         * lib/striconveh.h: New file.
57885         * lib/striconveh.c: New file.
57886         * MODULES.html.sh (Internationalization functions): Add striconveh.
57887
57888         * modules/striconveh-tests: New file.
57889         * tests/test-striconveh.c: New file.
57890
57891 2007-01-15  Bruno Haible  <bruno@clisp.org>
57892
57893         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57894         not from GNU libiconv or GNU libc.
57895
57896 2007-01-15  Bruno Haible  <bruno@clisp.org>
57897
57898         * doc/gnulib-intro.texi (Copyright): Explain the different license
57899         terms for module descriptions, autoconf macros, tests, documentation.
57900
57901 2007-01-14  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/striconv-tests: New file.
57904         * tests/test-striconv.c: New file.
57905
57906 2007-01-14  Bruno Haible  <bruno@clisp.org>
57907
57908         * modules/iconv-tests: New file.
57909         * tests/test-iconv.c: New file.
57910
57911 2007-01-14  Bruno Haible  <bruno@clisp.org>
57912
57913         * gnulib-tool (func_get_license): For test modules, use the license of
57914         the main module.
57915
57916 2007-01-14  Bruno Haible  <bruno@clisp.org>
57917
57918         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57919         if iconv is found to exist.
57920
57921 2007-01-14  Bruno Haible  <bruno@clisp.org>
57922
57923         * modules/c-ctype-tests: New file.
57924         * tests/test-c-ctype.c: New file.
57925
57926 2007-01-14  Bruno Haible  <bruno@clisp.org>
57927
57928         * modules/binary-io-tests: New file.
57929         * tests/test-binary-io.sh: New file.
57930         * tests/test-binary-io.c: New file.
57931
57932 2007-01-14  Bruno Haible  <bruno@clisp.org>
57933
57934         * modules/array-oset-tests: New file.
57935         * tests/test-array_oset.c: New file.
57936
57937 2007-01-14  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/array-list-tests: New file.
57940         * tests/test-array_list.c: New file.
57941
57942 2007-01-14  Bruno Haible  <bruno@clisp.org>
57943
57944         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57945         and make.
57946         Reported by Simon Josefsson in
57947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57948
57949 2007-01-14  Bruno Haible  <bruno@clisp.org>
57950
57951         * modules/allocsa-tests: New file.
57952         * tests/test-allocsa.c: New file.
57953
57954 2007-01-14  Bruno Haible  <bruno@clisp.org>
57955
57956         * modules/fchdir (Depends-on): Add absolute-header.
57957         * modules/unistd (Depends-on): Likewise.
57958
57959 2006-12-30  Bruno Haible  <bruno@clisp.org>
57960
57961         * modules/fchdir: New file.
57962         * modules/unistd (Files): Add lib/unistd_.h.
57963         (Makefile.am): Generate unistd.h from unistd_.h.
57964         * lib/fchdir.c: New file.
57965         * lib/dirent_.h: New file.
57966         * lib/unistd_.h: New file.
57967         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57968         * m4/fchdir.m4: New file.
57969         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57970         (gl_HEADER_UNISTD): Invoke it.
57971         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57972         function.
57973         * lib/backupfile.c (opendir, closedir): Undefine.
57974         * lib/chown.c (open, close): Undefine.
57975         * lib/clean-temp.c (open, close): Undefine.
57976         * lib/copy-file.c (open, close): Undefine.
57977         * lib/execute.c (open, close): Undefine.
57978         * lib/fsusage.c (open, close): Undefine.
57979         * lib/gc-gnulib.c (open, close): Undefine.
57980         * lib/getcwd.c (opendir, closedir): Undefine.
57981         * lib/glob.c (opendir, closedir): Undefine.
57982         * lib/javacomp.c (open, close): Undefine.
57983         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57984         * lib/openat-proc.c (open, close): Undefine.
57985         * lib/pagealign_alloc.c (open, close): Undefine.
57986         * lib/pipe.c (open, close): Undefine.
57987         * lib/progreloc.c (open, close): Undefine.
57988         * lib/savedir.c (opendir, closedir): Undefine.
57989         * lib/utime.c (open, close): Undefine.
57990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57991
57992 2007-01-10  Bruno Haible  <bruno@clisp.org>
57993
57994         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57995
57996 2007-01-12  Eric Blake  <ebb9@byu.net>
57997
57998         Provide a robust <wchar.h>.  Further simplifications are now
57999         possible in other modules, but not included here.
58000         * modules/wchar: New module.
58001         * m4/wchar.m4: New file.
58002         * lib/wchar_.h: Likewise.
58003         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58004         of the new module.
58005         * MODULES.html.sh (Extended multibyte and wide character utilities):
58006         New section.
58007
58008 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58009
58010         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58011         to a reasonable default for memory allocation.
58012         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58013         file system that reports garbage st_size values for symlinks.
58014         Problem reported by Liyang Hu.
58015
58016 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58017
58018         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58019         Emacs .#* auto-save files).
58020
58021 2007-01-11  Bruno Haible  <bruno@clisp.org>
58022
58023         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58024         directory.
58025
58026 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58027
58028         Use @...@ consistently in lib/wctype_.h.
58029         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58030         on it being set to 1 or 0.
58031         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58032         go back to AC_SUBSTing it.
58033         * modules/wctype (Makefile.am): Undo previous change.
58034
58035 2007-01-10  Eric Blake  <ebb9@byu.net>
58036
58037         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58038         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58039         * modules/wctype (Makefile.am): Likewise.
58040         Reported by Chris McGuire.
58041
58042 2007-01-10  Jim Meyering  <jim@meyering.net>
58043
58044         fts.c: a small readability/maintainability improvement
58045         * lib/fts.c (fts_read): Make this code slightly more readable and
58046         maintainable by hoisting the "sp->fts_cur = p" assignments to
58047         immediately follow the statements that set P.  Derived from
58048         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58049
58050 2007-01-10  Eric Blake  <ebb9@byu.net>
58051
58052         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58053         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58055         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58056         Reported by Chris McGuire.
58057
58058 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58059
58060         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58061         in sed script.
58062
58063 2007-01-09  Bruno Haible  <bruno@clisp.org>
58064
58065         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58066         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58067         variables.
58068         (func_module): Use them.
58069
58070 2007-01-09  Bruno Haible  <bruno@clisp.org>
58071
58072         * modules/unistr/base: New file.
58073         * lib/unistr.h: New file.
58074
58075         * modules/unistr/u8-to-u16: New file.
58076         * lib/unistr/u8-to-u16.c: New file.
58077
58078         * modules/unistr/u8-to-u32: New file.
58079         * lib/unistr/u8-to-u32.c: New file.
58080
58081         * modules/unistr/u16-to-u8: New file.
58082         * lib/unistr/u16-to-u8.c: New file.
58083
58084         * modules/unistr/u16-to-u32: New file.
58085         * lib/unistr/u16-to-u32.c: New file.
58086
58087         * modules/unistr/u32-to-u8: New file.
58088         * lib/unistr/u32-to-u8.c: New file.
58089
58090         * modules/unistr/u32-to-u16: New file.
58091         * lib/unistr/u32-to-u16.c: New file.
58092
58093         * modules/unistr/u8-check: New file.
58094         * modules/unistr/u16-check: New file.
58095         * modules/unistr/u32-check: New file.
58096         * lib/unistr/u8-check.c: New file.
58097         * lib/unistr/u16-check.c: New file.
58098         * lib/unistr/u32-check.c: New file.
58099
58100         * modules/unistr/u8-chr: New file.
58101         * modules/unistr/u16-chr: New file.
58102         * modules/unistr/u32-chr: New file.
58103         * lib/unistr/u8-chr.c: New file.
58104         * lib/unistr/u16-chr.c: New file.
58105         * lib/unistr/u32-chr.c: New file.
58106
58107         * modules/unistr/u8-cmp: New file.
58108         * modules/unistr/u16-cmp: New file.
58109         * modules/unistr/u32-cmp: New file.
58110         * lib/unistr/u8-cmp.c: New file.
58111         * lib/unistr/u16-cmp.c: New file.
58112         * lib/unistr/u32-cmp.c: New file.
58113
58114         * modules/unistr/u8-cpy: New file.
58115         * modules/unistr/u16-cpy: New file.
58116         * modules/unistr/u32-cpy: New file.
58117         * lib/unistr/u8-cpy.c: New file.
58118         * lib/unistr/u16-cpy.c: New file.
58119         * lib/unistr/u32-cpy.c: New file.
58120         * lib/unistr/u-cpy.h: New file.
58121
58122         * modules/unistr/u8-cpy-alloc: New file.
58123         * modules/unistr/u16-cpy-alloc: New file.
58124         * modules/unistr/u32-cpy-alloc: New file.
58125         * lib/unistr/u8-cpy-alloc.c: New file.
58126         * lib/unistr/u16-cpy-alloc.c: New file.
58127         * lib/unistr/u32-cpy-alloc.c: New file.
58128         * lib/unistr/u-cpy-alloc.h: New file.
58129
58130         * modules/unistr/u8-endswith: New file.
58131         * modules/unistr/u16-endswith: New file.
58132         * modules/unistr/u32-endswith: New file.
58133         * lib/unistr/u8-endswith.c: New file.
58134         * lib/unistr/u16-endswith.c: New file.
58135         * lib/unistr/u32-endswith.c: New file.
58136         * lib/unistr/u-endswith.h: New file.
58137
58138         * modules/unistr/u8-mblen: New file.
58139         * modules/unistr/u16-mblen: New file.
58140         * modules/unistr/u32-mblen: New file.
58141         * lib/unistr/u8-mblen.c: New file.
58142         * lib/unistr/u16-mblen.c: New file.
58143         * lib/unistr/u32-mblen.c: New file.
58144
58145         * modules/unistr/u8-mbtouc: New file.
58146         * modules/unistr/u16-mbtouc: New file.
58147         * modules/unistr/u32-mbtouc: New file.
58148         * lib/unistr/u8-mbtouc.c: New file.
58149         * lib/unistr/u16-mbtouc.c: New file.
58150         * lib/unistr/u32-mbtouc.c: New file.
58151
58152         * modules/unistr/u8-mbtouc-safe: New file.
58153         * modules/unistr/u16-mbtouc-safe: New file.
58154         * modules/unistr/u32-mbtouc-safe: New file.
58155         * lib/unistr/u8-mbtouc-safe.c: New file.
58156         * lib/unistr/u16-mbtouc-safe.c: New file.
58157         * lib/unistr/u32-mbtouc-safe.c: New file.
58158
58159         * modules/unistr/u8-move: New file.
58160         * modules/unistr/u16-move: New file.
58161         * modules/unistr/u32-move: New file.
58162         * lib/unistr/u8-move.c: New file.
58163         * lib/unistr/u16-move.c: New file.
58164         * lib/unistr/u32-move.c: New file.
58165         * lib/unistr/u-move.h: New file.
58166
58167         * modules/unistr/u8-next: New file.
58168         * modules/unistr/u16-next: New file.
58169         * modules/unistr/u32-next: New file.
58170         * lib/unistr/u8-next.c: New file.
58171         * lib/unistr/u16-next.c: New file.
58172         * lib/unistr/u32-next.c: New file.
58173
58174         * modules/unistr/u8-prev: New file.
58175         * modules/unistr/u16-prev: New file.
58176         * modules/unistr/u32-prev: New file.
58177         * lib/unistr/u8-prev.c: New file.
58178         * lib/unistr/u16-prev.c: New file.
58179         * lib/unistr/u32-prev.c: New file.
58180
58181         * modules/unistr/u8-set: New file.
58182         * modules/unistr/u16-set: New file.
58183         * modules/unistr/u32-set: New file.
58184         * lib/unistr/u8-set.c: New file.
58185         * lib/unistr/u16-set.c: New file.
58186         * lib/unistr/u32-set.c: New file.
58187         * lib/unistr/u-set.h: New file.
58188
58189         * modules/unistr/u8-startswith: New file.
58190         * modules/unistr/u16-startswith: New file.
58191         * modules/unistr/u32-startswith: New file.
58192         * lib/unistr/u8-startswith.c: New file.
58193         * lib/unistr/u16-startswith.c: New file.
58194         * lib/unistr/u32-startswith.c: New file.
58195         * lib/unistr/u-startswith.h: New file.
58196
58197         * modules/unistr/u8-stpcpy: New file.
58198         * modules/unistr/u16-stpcpy: New file.
58199         * modules/unistr/u32-stpcpy: New file.
58200         * lib/unistr/u8-stpcpy.c: New file.
58201         * lib/unistr/u16-stpcpy.c: New file.
58202         * lib/unistr/u32-stpcpy.c: New file.
58203         * lib/unistr/u-stpcpy.h: New file.
58204
58205         * modules/unistr/u8-stpncpy: New file.
58206         * modules/unistr/u16-stpncpy: New file.
58207         * modules/unistr/u32-stpncpy: New file.
58208         * lib/unistr/u8-stpncpy.c: New file.
58209         * lib/unistr/u16-stpncpy.c: New file.
58210         * lib/unistr/u32-stpncpy.c: New file.
58211         * lib/unistr/u-stpncpy.h: New file.
58212
58213         * modules/unistr/u8-strcat: New file.
58214         * modules/unistr/u16-strcat: New file.
58215         * modules/unistr/u32-strcat: New file.
58216         * lib/unistr/u8-strcat.c: New file.
58217         * lib/unistr/u16-strcat.c: New file.
58218         * lib/unistr/u32-strcat.c: New file.
58219         * lib/unistr/u-strcat.h: New file.
58220
58221         * modules/unistr/u8-strchr: New file.
58222         * modules/unistr/u16-strchr: New file.
58223         * modules/unistr/u32-strchr: New file.
58224         * lib/unistr/u8-strchr.c: New file.
58225         * lib/unistr/u16-strchr.c: New file.
58226         * lib/unistr/u32-strchr.c: New file.
58227
58228         * modules/unistr/u8-strcmp: New file.
58229         * modules/unistr/u16-strcmp: New file.
58230         * modules/unistr/u32-strcmp: New file.
58231         * lib/unistr/u8-strcmp.c: New file.
58232         * lib/unistr/u16-strcmp.c: New file.
58233         * lib/unistr/u32-strcmp.c: New file.
58234
58235         * modules/unistr/u8-strcpy: New file.
58236         * modules/unistr/u16-strcpy: New file.
58237         * modules/unistr/u32-strcpy: New file.
58238         * lib/unistr/u8-strcpy.c: New file.
58239         * lib/unistr/u16-strcpy.c: New file.
58240         * lib/unistr/u32-strcpy.c: New file.
58241         * lib/unistr/u-strcpy.h: New file.
58242
58243         * modules/unistr/u8-strcspn: New file.
58244         * modules/unistr/u16-strcspn: New file.
58245         * modules/unistr/u32-strcspn: New file.
58246         * lib/unistr/u8-strcspn.c: New file.
58247         * lib/unistr/u16-strcspn.c: New file.
58248         * lib/unistr/u32-strcspn.c: New file.
58249         * lib/unistr/u-strcspn.h: New file.
58250
58251         * modules/unistr/u8-strdup: New file.
58252         * modules/unistr/u16-strdup: New file.
58253         * modules/unistr/u32-strdup: New file.
58254         * lib/unistr/u8-strdup.c: New file.
58255         * lib/unistr/u16-strdup.c: New file.
58256         * lib/unistr/u32-strdup.c: New file.
58257         * lib/unistr/u-strdup.h: New file.
58258
58259         * modules/unistr/u8-strlen: New file.
58260         * modules/unistr/u16-strlen: New file.
58261         * modules/unistr/u32-strlen: New file.
58262         * lib/unistr/u8-strlen.c: New file.
58263         * lib/unistr/u16-strlen.c: New file.
58264         * lib/unistr/u32-strlen.c: New file.
58265         * lib/unistr/u-strlen.h: New file.
58266
58267         * modules/unistr/u8-strmblen: New file.
58268         * modules/unistr/u16-strmblen: New file.
58269         * modules/unistr/u32-strmblen: New file.
58270         * lib/unistr/u8-strmblen.c: New file.
58271         * lib/unistr/u16-strmblen.c: New file.
58272         * lib/unistr/u32-strmblen.c: New file.
58273
58274         * modules/unistr/u8-strmbtouc: New file.
58275         * modules/unistr/u16-strmbtouc: New file.
58276         * modules/unistr/u32-strmbtouc: New file.
58277         * lib/unistr/u8-strmbtouc.c: New file.
58278         * lib/unistr/u16-strmbtouc.c: New file.
58279         * lib/unistr/u32-strmbtouc.c: New file.
58280
58281         * modules/unistr/u8-strncat: New file.
58282         * modules/unistr/u16-strncat: New file.
58283         * modules/unistr/u32-strncat: New file.
58284         * lib/unistr/u8-strncat.c: New file.
58285         * lib/unistr/u16-strncat.c: New file.
58286         * lib/unistr/u32-strncat.c: New file.
58287         * lib/unistr/u-strncat.h: New file.
58288
58289         * modules/unistr/u8-strncmp: New file.
58290         * modules/unistr/u16-strncmp: New file.
58291         * modules/unistr/u32-strncmp: New file.
58292         * lib/unistr/u8-strncmp.c: New file.
58293         * lib/unistr/u16-strncmp.c: New file.
58294         * lib/unistr/u32-strncmp.c: New file.
58295
58296         * modules/unistr/u8-strncpy: New file.
58297         * modules/unistr/u16-strncpy: New file.
58298         * modules/unistr/u32-strncpy: New file.
58299         * lib/unistr/u8-strncpy.c: New file.
58300         * lib/unistr/u16-strncpy.c: New file.
58301         * lib/unistr/u32-strncpy.c: New file.
58302         * lib/unistr/u-strncpy.h: New file.
58303
58304         * modules/unistr/u8-strnlen: New file.
58305         * modules/unistr/u16-strnlen: New file.
58306         * modules/unistr/u32-strnlen: New file.
58307         * lib/unistr/u8-strnlen.c: New file.
58308         * lib/unistr/u16-strnlen.c: New file.
58309         * lib/unistr/u32-strnlen.c: New file.
58310         * lib/unistr/u-strnlen.h: New file.
58311
58312         * modules/unistr/u8-strpbrk: New file.
58313         * modules/unistr/u16-strpbrk: New file.
58314         * modules/unistr/u32-strpbrk: New file.
58315         * lib/unistr/u8-strpbrk.c: New file.
58316         * lib/unistr/u16-strpbrk.c: New file.
58317         * lib/unistr/u32-strpbrk.c: New file.
58318         * lib/unistr/u-strpbrk.h: New file.
58319
58320         * modules/unistr/u8-strrchr: New file.
58321         * modules/unistr/u16-strrchr: New file.
58322         * modules/unistr/u32-strrchr: New file.
58323         * lib/unistr/u8-strrchr.c: New file.
58324         * lib/unistr/u16-strrchr.c: New file.
58325         * lib/unistr/u32-strrchr.c: New file.
58326
58327         * modules/unistr/u8-strspn: New file.
58328         * modules/unistr/u16-strspn: New file.
58329         * modules/unistr/u32-strspn: New file.
58330         * lib/unistr/u8-strspn.c: New file.
58331         * lib/unistr/u16-strspn.c: New file.
58332         * lib/unistr/u32-strspn.c: New file.
58333         * lib/unistr/u-strspn.h: New file.
58334
58335         * modules/unistr/u8-strstr: New file.
58336         * modules/unistr/u16-strstr: New file.
58337         * modules/unistr/u32-strstr: New file.
58338         * lib/unistr/u8-strstr.c: New file.
58339         * lib/unistr/u16-strstr.c: New file.
58340         * lib/unistr/u32-strstr.c: New file.
58341         * lib/unistr/u-strstr.h: New file.
58342
58343         * modules/unistr/u8-strtok: New file.
58344         * modules/unistr/u16-strtok: New file.
58345         * modules/unistr/u32-strtok: New file.
58346         * lib/unistr/u8-strtok.c: New file.
58347         * lib/unistr/u16-strtok.c: New file.
58348         * lib/unistr/u32-strtok.c: New file.
58349         * lib/unistr/u-strtok.h: New file.
58350
58351         * modules/unistr/u8-uctomb: New file.
58352         * modules/unistr/u16-uctomb: New file.
58353         * modules/unistr/u32-uctomb: New file.
58354         * lib/unistr/u8-uctomb.c: New file.
58355         * lib/unistr/u16-uctomb.c: New file.
58356         * lib/unistr/u32-uctomb.c: New file.
58357
58358         * MODULES.html.sh (Unicode string functions): Add the new modules.
58359
58360 2007-01-08  Bruno Haible  <bruno@clisp.org>
58361
58362         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58363         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58364         subdirectories.
58365
58366 2007-01-08  Karl Berry  <karl@gnu.org>
58367
58368         * doc/error.texi: mention that main() fns must set program_name
58369         when progname is used.
58370
58371 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58374         WCTYPE_H is empty, for the benefit of builds from non-distclean
58375         directories.  Problem reported by Eric Blake in
58376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58377
58378 2007-01-08  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58381         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58382         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58383         PROVIDE_CANONICALIZE_FILENAME_MODE.
58384         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58385
58386 2007-01-08  Bruno Haible  <bruno@clisp.org>
58387
58388         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58389         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58390         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58391         * lib/fts.c: Likewise.
58392         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58393
58394 2006-12-25  Bruno Haible  <bruno@clisp.org>
58395
58396         * modules/utf8-ucs4-safe: New file.
58397         * lib/utf8-ucs4-safe.h: New file.
58398         * lib/unistr/utf8-ucs4-safe.c: New file.
58399
58400         * modules/utf16-ucs4-safe: New file.
58401         * lib/utf16-ucs4-safe.h: New file.
58402         * lib/unistr/utf16-ucs4-safe.c: New file.
58403
58404         * MODULES.html.sh (Unicode string functions): Add the new modules.
58405
58406 2007-01-08  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58409         (Depends-on): Add unitypes.
58410         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58411         (u8_mbtouc_aux): Move out to separate file.
58412         (u8_mbtouc): Use ucs4_t, uint8_t types.
58413         * lib/unistr/utf8-ucs4.c: New file.
58414
58415         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58416         (Depends-on): Add unitypes.
58417         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58418         (u16_mbtouc_aux): Move out to separate file.
58419         (u16_mbtouc): Use ucs4_t, uint16_t types.
58420         * lib/unistr/utf16-ucs4.c: New file.
58421
58422         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58423         (Depends-on): Add unitypes.
58424         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58425         (u8_uctomb_aux): Move out to separate file.
58426         (u8_uctomb): Use ucs4_t, uint8_t types.
58427         * lib/unistr/ucs4-utf8.c: New file.
58428
58429         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58430         (Depends-on): Add unitypes.
58431         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58432         (u16_uctomb_aux): Move out to separate file.
58433         (u16_uctomb): Use ucs4_t, uint16_t types.
58434         * lib/unistr/ucs4-utf16.c: New file.
58435
58436 2006-12-25  Bruno Haible  <bruno@clisp.org>
58437
58438         * modules/unitypes: New file.
58439         * lib/unitypes.h: New file.
58440         * MODULES.html.sh (func_all_modules): New section "Unicode string
58441         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58442         this section. Add unitypes.
58443
58444 2007-01-08  Bruno Haible  <bruno@clisp.org>
58445
58446         Avoid variable names that conflict with those from libtool.
58447         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58448         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58449         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58450         library_names_spec to acl_library_names_spec, hardcode_* to
58451         acl_hardcode_*.
58452         Reported by Ralf Wildenhues.
58453
58454 2007-01-08  Bruno Haible  <bruno@clisp.org>
58455
58456         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58457         definition.
58458         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58459         definition.
58460         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58461         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58462         definition.
58463         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58464         definition.
58465         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58466         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58467         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58468         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58469         definition.
58470         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58471         definition.
58472         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58473         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58474         GC_USE_<algorithm>.
58475         * lib/gc-libgcrypt.c: Likewise.
58476         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58477         * modules/gc-arctwo (configure.ac): Likewise.
58478         * modules/gc-des (configure.ac): Likewise.
58479         * modules/gc-hmac-md5 (configure.ac): Likewise.
58480         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58481         * modules/gc-md2 (configure.ac): Likewise.
58482         * modules/gc-md4 (configure.ac): Likewise.
58483         * modules/gc-md5 (configure.ac): Likewise.
58484         * modules/gc-random (configure.ac): Likewise.
58485         * modules/gc-rijndael (configure.ac): Likewise.
58486         * modules/gc-sha1 (configure.ac): Likewise.
58487
58488 2007-01-08  Bruno Haible  <bruno@clisp.org>
58489
58490         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58491         macro definition.
58492         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58493         definition.
58494         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58495         definition.
58496         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58497         * modules/fcntl-safer (configure.ac): Likewise.
58498         * modules/fopen-safer (configure.ac): Likewise.
58499         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58500         GNULIB_FWRITEERROR macro definition.
58501
58502 2007-01-08  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/gnulib-common.m4: New file.
58505         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58506         (func_get_filelist): Add m4/gnulib-common.m4.
58507
58508 2007-01-08  Bruno Haible  <bruno@clisp.org>
58509
58510         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58511         command.
58512
58513 2007-01-08  Jim Meyering  <jim@meyering.net>
58514
58515         Use a more robust test for a "can't happen" condition.
58516         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58517         narrowed the st_size value.  Presuming the "can't happen" condition
58518         is true, that narrowing could conceivably convert an invalid st_size
58519         value into a valid one.  Instead, use a change based on Matthew
58520         Woehlke's original patch.
58521
58522         Slight readability improvement: use an assert-like macro
58523         in place of literal "abort ()" uses.
58524         * lib/fts.c (fts_assert): Define.
58525         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58526         Use this macro instead of a bare 'abort'.
58527
58528 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58529
58530         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58531         simply work around them.
58532         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58533         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58534         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58535         declaring.
58536         Don't bother to define as macros, since the standard doesn't require it.
58537         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58538         longer worry about IRIX 5.3.
58539         (HAVE_WCTYPE_CTMP_BUG): Remove.
58540
58541 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58544         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58545         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58546         Problems reported by Georg Schwarz for IRIX 5.3.
58547
58548         * gnulib-tool (autoconf_minversion): Take the maximum version number
58549         found, not the minimum.  Problem reported by James Youngman.
58550
58551 2007-01-03  Karl Berry  <karl@gnu.org>
58552
58553         * doc/error.texi: new file, explaining interaction with progname.
58554         * doc/gnulib.texi: include it.  Update copyright.
58555
58556 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58557
58558         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58559         AC_CANONICAL_HOST, to improve autobuild outputs.
58560
58561 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58562             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58563
58564         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58565         sockets, server sockets, and other file descriptors.  Count errors
58566         to compute the return value.  Reorder the code a bit to be easier
58567         to follow.  Don't set event bits that were not requested (except
58568         POLLERR and POLLHUP).
58569
58570 2007-01-01  Bruno Haible  <bruno@clisp.org>
58571
58572         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58573
58574 2007-01-03  Jim Meyering  <jim@meyering.net>
58575
58576         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58577
58578 2007-01-02  Bruno Haible  <bruno@clisp.org>
58579
58580         * modules/settime (Include): Require timespec.h.
58581         * modules/nanosleep (Include): Likewise.
58582
58583 2007-01-01  Bruno Haible  <bruno@clisp.org>
58584
58585         * gnulib-tool (func_emit_copyright_notice): Bump year.
58586         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58587
58588 2007-01-01  Bruno Haible  <bruno@clisp.org>
58589
58590         Improve support for OpenBSD.
58591         * build-aux/config.rpath (libname_spec): Export.
58592         (library_names_spec): New variable. Export.
58593         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58594         library_names_spec from the config.rpath output. Locate shared library
58595         through the name pattern in library_names_spec.
58596
58597 2007-01-01  Eric Blake  <ebb9@byu.net>
58598
58599         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58600
58601 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58604         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58605         assume the C locale, and avoid an "eval" that could cause trouble.
58606         Problem with SORT reported by Bob Proulx.
58607
58608         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58609         Define.  Trivial patch from Henning Nielsen Lund, originally
58610         sent to bug-grep@gnu.org today.
58611
58612 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58615         struct stat.  Problem reported by Henning Nielsen Lund.
58616         * lib/acl.c: Include acl.h first, to check interface.  Don't
58617         bother to include sys/types.h and sys/stat.h again.
58618
58619 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58620
58621         Import the following change from libc; problem reported by
58622         Sven Verdoolaege.
58623
58624         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58625
58626         [BZ #1373]
58627         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58628
58629 2006-12-28  Jim Meyering  <jim@meyering.net>
58630
58631         * build-aux/announce-gen: Do not assume that the package
58632         builds any of tar.gz, tar.bz2, and .xdelta files.
58633         Suggestion from Simon Josefsson.
58634
58635 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58636
58637         * modules/announce-gen: New file.
58638
58639 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58642         handles its gotchas now.
58643         * lib/mbswidth.c: Likewise.
58644         * lib/wcwidth.h: Likewise.
58645         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58646         and iswcntrl; the wctype module does this stuff now.
58647         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58649         * modules/mbchar (Depends-on): Add wctype.
58650         * modules/mbswidth (Depends-on): Likewise.
58651         * modules/wcwidth (Depends-on): Likewise.
58652
58653 2006-12-27  Eric Blake  <ebb9@byu.net>
58654
58655         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58656         module uses more than what <wctype.h> is required to provide.
58657
58658 2006-12-26  Eric Blake  <ebb9@byu.net>
58659
58660         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58661
58662 2006-12-26  Eric Blake  <ebb9@byu.net>
58663
58664         * modules/absolute-header: New module.
58665         * modules/fcntl (Depends-on): Depend on it.
58666         * modules/inttypes (Depends-on): Likewise.
58667         * modules/stdint (Depends-on): Likewise.
58668         * modules/sys_stat (Depends-on): Likewise.
58669         * modules/wctype (Depends-on): Likewise.
58670         * MODULES.html.sh (Support for building libraries and
58671         executables): Document it.
58672
58673 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * gnulib-tool (SED): Remove, undoing previous change.
58676         The problem was that it broke coreutils on Solaris, because
58677         "sed --posix" leaked into a makefile.
58678         (sed): New alias, if 'alias' and GNU sed.
58679
58680 2006-12-24  Jim Meyering  <jim@meyering.net>
58681
58682         Work around an fchownat bug in glibc-2.4:
58683         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58684         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58685         in spite of the -P option.
58686         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58687         New macros.
58688         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58689         * modules/openat (Files): Add lib/fchownat.c.
58690         * lib/openat.c (fchownat): Don't define here.  Move to...
58691         * lib/fchownat.c: ...this new file.
58692
58693 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         Fix bug reported by Bruno Haible in
58696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58697         where quotearg.c didn't compile on Mac OS X 10.2 because it
58698         lacks <wchar.h> and wint_t.
58699         * lib/wctype_.h (__wctype_wint_t): New type.
58700         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58701         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58702         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58703         Arg is now of type __wctype_wint_t, not wint_t.
58704         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58705         substitute HAVE_WINT_T.
58706         * modules/wctype (Files): Add m4/wint_t.m4.
58707         (wctype.h): Substitute HAVE_WINT_T.
58708
58709 2006-12-23  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58712
58713 2006-12-23  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58716         S_ISLNK.
58717         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58718         mingw.
58719
58720 2006-12-22  Bruno Haible  <bruno@clisp.org>
58721
58722         * lib/copy-file.c: Include acl.h.
58723         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58724         Close the file descriptors only after being done with copy_acl.
58725         * modules/copy-file (Depends-on): Add acl.
58726
58727 2006-12-22  Bruno Haible  <bruno@clisp.org>
58728
58729         * gnulib-tool (SED): New variable.
58730         Use $SED instead of sed everywhere.
58731
58732 2006-12-22  Bruno Haible  <bruno@clisp.org>
58733
58734         * modules/no-c++: New file.
58735         * m4/no-c++.m4: New file.
58736         * MODULES.html.sh (Support for building libraries and executables):
58737         Add no-c++.
58738
58739 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58742         Include <limits.h>, and use its INT_MAX to rewrite the
58743         j loop so that it does not overflow 'int'.  Problem reported by
58744         Ralf Wildenhues in
58745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58746         Play it safe by shifting left by 1 rather than multiplying by 2,
58747         as GCC is less likely to optimize this away when the value
58748         is signed (when it assumes overflow leads to undefined behavior).
58749         Also, don't assume time_t uses two's complement.
58750
58751 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58752
58753         * MODULES.html.sh: New module wctype.
58754         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58755         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58756         <wctype.h>, since the new wctype module should fix this.
58757         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58758         the wctype module should arrange for it.
58759         * lib/regex_internal.h: Likewise.
58760         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58761         since the wctype module should handle this now.
58762         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58763         * modules/fnmatch (Depends-on): Add wctype.
58764         * modules/quotearg (Depends-on): Likewise.
58765         * modules/regex (Depends-on): Likewise.
58766
58767 2006-12-19  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58770         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58771
58772 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58773
58774         * modules/savewd (Depends-on): Fix dependency on fcntl.
58775
58776 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58777
58778         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58779         conforms to C99, rather than relying on the user's environment
58780         setting of STDINT_H.
58781
58782 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58783         and Eric Blake  <ebb9@byu.net>
58784
58785         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58786         This is more consistent with the other defines here.
58787         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58788         Port to z/OS.  Problem reported by Paul Gilmartin.
58789         Change local vars to use gl_ prefix rather than ac_.
58790         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58791         with other defines.
58792         * modules/double-slash-root: New module.
58793         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58794         (Depends-on): Add double-slash-root.
58795         * MODULES.html.sh (File system functions): Mention new module.
58796
58797 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58798
58799         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58800         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58801         This is for the benefit of gzip, which doesn't do i18n.
58802
58803 2006-12-12  Jim Meyering  <jim@meyering.net>
58804
58805         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58806         Reported by Andreas Schwab <schwab@suse.de>.
58807
58808 2006-12-12  Bruno Haible  <bruno@clisp.org>
58809
58810         Merge these changes.
58811         2006-09-05  Bruno Haible  <bruno@clisp.org>
58812         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58813         iconv_alloc succeeded.
58814         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58815         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58816         test for " && dest " at the end - dest is always != NULL there. Call
58817         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58818         with 2xNULL arguments, also to flush the state storage. Handle the
58819         IRIX iconv behaviour. Realloc the final result, to throw away unused
58820         memory.
58821
58822 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58825         and fchmodat unconditionally, since glibc 2.4 has them.
58826         Problem reported by Arkadiusz Miskiewicz.
58827
58828 2006-12-10  Bruno Haible  <bruno@clisp.org>
58829
58830         * gnulib-tool (func_import): Show the include files only for those
58831         modules that are copied and specified.
58832         Reported by Karl Berry.
58833
58834 2006-12-08  Jim Meyering  <jim@meyering.net>
58835
58836         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58837         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58838
58839         * build-aux/announce-gen: Add two new options, both optional:
58840         --bootstrap-tools=TOOL_LIST
58841               a comma-separated list of tools, e.g.,
58842               autoconf,automake,bison,gnulib
58843         --gnulib-snapshot-date=DATE
58844               if gnulib is in the bootstrap tool list,
58845               then report this as the snapshot date.
58846               If not specified, use the current date/time.
58847               If you specify a date here, be sure it's UTC.
58848
58849 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58850
58851         * tests/test-argp-2.sh: Fix test to match actual output.
58852         (func_compare): Fix sed script to be portable.
58853
58854 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58857         workaround for this case.  It is not autoconfigured now; offhand
58858         it's hard to see how to autoconfigure it.
58859
58860 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58863         a directory that is about to be chowned.  Such a directory's
58864         initial file permissions should permit the owner only and this
58865         should not be changed until after the chown, since the group and
58866         other bits would be incorrect if they granted permission before
58867         the chown.
58868
58869         Fix porting problem for iswctype reported by Georg Schwarz in:
58870         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58871         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58872         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58873         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58874         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58875
58876 2006-12-03  Jim Meyering  <jim@meyering.net>
58877
58878         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58879         p->fts_statp may not yet be defined.
58880         (fts_read): Instead, set it in the caller, once p->fts_statp is
58881         sure to be defined, and corresponds to a top-level directory.
58882         This bug made du -x fail.  Here's the coreutils test case:
58883         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58884         Reported by Mike Frysinger.
58885
58886 2006-12-01  Jim Meyering  <jim@meyering.net>
58887
58888         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58889         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58890         Reported by Simon Josefsson.
58891
58892 2006-11-30  Jim Meyering  <jim@meyering.net>
58893
58894         * m4/warning.m4: Use the all-permissive copyright notice
58895         recommended by RMS (rather than LGPL).
58896         * m4/vararrays.m4: Likewise.
58897         * m4/flexmember.m4: Likewise.
58898
58899 2006-11-29  Bruno Haible  <bruno@clisp.org>
58900
58901         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58902         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58903         using +=.
58904         Reported by Simon Josefsson <simon@josefsson.org>.
58905
58906 2006-11-28  James Youngman <jay@gnu.org>
58907
58908         * README: Advise users that they might find the bug-gnulib@gnu.org
58909         and autotools-announce@gnu.org mailing lists useful.
58910
58911 2006-11-28  Bruno Haible  <bruno@clisp.org>
58912
58913         * m4/ptrdiff_max.m4: Remove file.
58914
58915 2006-11-21  Bruno Haible  <bruno@clisp.org>
58916
58917         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58918         _AC_COMPUTE_INT.
58919         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58920         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58921         _AC_COMPUTE_INT.
58922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58923         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58924         _AC_COMPUTE_INT.
58925         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58926
58927 2006-11-28  Jim Meyering  <jim@meyering.net>
58928
58929         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58930         warning from "gcc -Wshadow" about shadowing the builtin.
58931
58932 2006-11-27  Bruno Haible  <bruno@clisp.org>
58933
58934         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58935         _AC_COMPUTE_INT.
58936         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58937
58938 2006-11-27  Bruno Haible  <bruno@clisp.org>
58939             Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58942
58943 2006-11-26  Bruno Haible  <bruno@clisp.org>
58944
58945         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58946         noinst_LTLIBRARIES.
58947
58948 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58949             Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58952         if compiling with "gcc -ansi".
58953
58954 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58955
58956         Fix some incompatibilities with gcc -ansi -pedantic.
58957         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58958         if compiling pedantically with GCC, unless it's C99 or later.
58959         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58960         it mishandles gcc -ansi -pedantic as well.
58961         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58962         if gcc -pedantic.
58963         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58964         initializers for struct if -pedantic, unless it's C99 or later.
58965
58966 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58967
58968         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58969         Don't close an fd more than once. Identical atimes indicate
58970         success, not failure.
58971
58972 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58973
58974         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58975
58976 2006-11-23  Jim Meyering  <jim@meyering.net>
58977
58978         * build-aux/announce-gen: New file.  From coreutils.
58979
58980 2006-11-22  Jim Meyering  <jim@meyering.net>
58981
58982         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58983         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58984         (fts_read): Use a temporary to narrow the overused st_size member
58985         before using it in a switch statement.  Reported by Matthew Woehlke.
58986
58987         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58988         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58989
58990 2006-11-20  Bruno Haible  <bruno@clisp.org>
58991
58992         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58993         changequote instead of pairs of brackets.
58994         Reported by Andreas Schwab <schwab@suse.de>.
58995
58996 2006-11-21  Jim Meyering  <jim@meyering.net>
58997
58998         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58999         so as to remain compatible with older compilers.
59000         Patch from Michael Deutschmann.
59001
59002 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * MODULES.html.sh (File system functions): Add openat.
59005
59006         * lib/openat.h (rpl_fstatat): New macro, if
59007         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59008         (fstatat): Define to rpl_fstatat under the same conditions,
59009         unless COMPILING_FSTATAT.
59010         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59011         seems to have the bug.
59012         * lib/fstatat.c: New file.
59013         * modules/openat (Files): Add it.
59014
59015 2006-11-20  Bruno Haible  <bruno@clisp.org>
59016
59017         * Makefile: New file.
59018
59019 2006-11-20  Jim Meyering  <jim@meyering.net>
59020
59021         The beginnings of syntax-related checks for gnulib.
59022         * lib/Makefile: New file.
59023         * lib/t-idcache: New script.  Ensure that the two halves of
59024         idcache.c stay in sync.
59025
59026         * lib/idcache.c: Adjust comments in user- and group- portions to
59027         be more accurate, and to be consistent with one another.
59028
59029 2006-11-20  Jim Meyering  <jim@meyering.net>
59030
59031         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59032         continue using the flexible array member (thus, this module performs
59033         half as many malloc calls), with the addition that...
59034         (getgroup, getuser): Consistently record a non-match via an empty
59035         "name" string, and map an empty string match to a NULL return value.
59036         * modules/idcache (Depends-on): Re-add flexmember.
59037
59038         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59039         (getuidbyname, getgroup, getgidbyname): Likewise.
59040
59041         Use cleaner syntax: NULL rather than 0.
59042         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59043
59044 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59047         It mishandled the case where the group was missing.
59048         Problem reported by Greg Schafer.
59049         * modules/idcache: Likewise.
59050
59051 2006-11-18  Jim Meyering  <jim@meyering.net>
59052
59053         * check-module (%exempt_header): Add exception for some
59054         conditionally-included headers.
59055
59056         * modules/i-ring (Depends-on): Add verify.
59057         (License): Change to LGPL.
59058
59059 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59060
59061         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59062         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59063         and inttostr.h.  Use snprintf rather than uinttostr, so that
59064         LGPLed code doesn't depend on GPLed.
59065
59066 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * modules/inline (License): Change from GPL to LGPL.
59069
59070 2006-11-17  Jim Meyering  <jim@meyering.net>
59071
59072         * modules/d-type (License): Switch to LGPL.
59073
59074 2006-11-15  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59077
59078 2006-11-15  Eric Blake  <ebb9@byu.net>
59079
59080         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59081         the module dependency.
59082
59083 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59084             Bruno Haible  <bruno@clisp.org>
59085
59086         * gnulib-tool (func_create_testdir): Add license consistency check.
59087
59088 2006-11-15  Eric Blake  <ebb9@byu.net>
59089
59090         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59091         random "(cached)" in configure output.
59092
59093 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59094
59095         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59096         test for conforming inttypes.h is both announced and cached.
59097
59098         * MODULES.html.sh (seen_modules, seen_files): New variables.
59099         (func_module): Rewrite to use a few less gnulib-tool and sed
59100         invocations.  Avoid a couple of quadratic algorithms for ...
59101         (missed_modules, missed_files): ... these, with ...
59102         (func_append, func_tmpdir): ... these new functions, from
59103         gnulib-tool.  Analogously, install traps for cleanup.
59104
59105         * tests/test-gc.c (main): Remove unused variables.
59106         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59107
59108 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         * modules/inttostr (License): Change to LGPL.
59111
59112 2006-11-14  Eric Blake  <ebb9@byu.net>
59113
59114         * modules/tempname (License): Change to LGPL.
59115
59116 2006-11-14  Eric Blake  <ebb9@byu.net>
59117
59118         * doc/functions.texi (Function Portability): *printf functions on
59119         Cygwin now understand all POSIX size specifiers.
59120
59121 2006-11-14  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/c-ctype (License): Change to LGPL.
59124
59125 2006-11-12  Bruno Haible  <bruno@clisp.org>
59126
59127         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59128         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59129         for GNOME libraries, for which the include files are installed in
59130         subdirectories of $prefix/include.
59131
59132 2006-11-12  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/lib-link.m4: Require at least autoconf-2.54.
59135         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59136         name to underscores for the --with option.
59137
59138 2006-11-13  Bruno Haible  <bruno@clisp.org>
59139
59140         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59141         the tests directory.
59142         Reported by Ralf Wildenhues.
59143
59144 2006-11-13  Bruno Haible  <bruno@clisp.org>
59145
59146         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59147         (func_emit_initmacro_end): Undo the override here.
59148         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59149         Works around the famous automake error in coreutils.
59150
59151 2006-11-13  Eric Blake  <ebb9@byu.net>
59152
59153         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59154         element, not its node.
59155
59156 2006-11-12  Bruno Haible  <bruno@clisp.org>
59157
59158         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59159         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59160
59161 2006-11-12  Bruno Haible  <bruno@clisp.org>
59162
59163         * gnulib-tool: New option --local-symlink.
59164         (func_usage): Document it.
59165         (lsymbolic): New variable.
59166         (func_import, func_create_testdir): If --symlink was not specified,
59167         test whether --local-symlink was specified and the file comes from
59168         the local_gnulib_dir.
59169
59170 2006-11-12  Bruno Haible  <bruno@clisp.org>
59171
59172         * gnulib-tool (func_ln): New function.
59173         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59174
59175 2006-11-12  Bruno Haible  <bruno@clisp.org>
59176
59177         Finish support for source files in subdirectories.
59178         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59179         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59180         AUTOMAKE_OPTIONS.
59181         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59182
59183 2006-11-12  Bruno Haible  <bruno@clisp.org>
59184
59185         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59186         EXTRA_lib_SOURCES augmentation.
59187         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59188
59189 2006-11-12  Jim Meyering  <jim@meyering.net>
59190
59191         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59192         file descriptors.  This also averts a failure on systems with
59193         native openat support when a traversed directory lacks "x" access.
59194         * lib/fts_.h: Include "i-ring.h"
59195         (struct FTS) [fts_fd_ring]: New member.
59196         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59197         (FCHDIR): Add parentheses.
59198         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59199         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59200         When descending, rather than simply closing the previous
59201         fts_cwd_fd value, push that file descriptor onto the ring.
59202         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59203         (fts_open): Initialize the new fd_ring member.
59204         (fts_close): Clear the ring.
59205         (fts_safe_changedir): When possible, use our new fd_ring to skip
59206         the diropen and fstat and dev/ino comparison that would normally
59207         accompany a virtual `chdir ("..")'.
59208
59209         * modules/fts (Depends-on): Add i-ring.
59210         * modules/i-ring: New module.
59211         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59212         * m4/i-ring.m4: New file.
59213
59214 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59215
59216         * gnulib-tool (func_create_testdir): Fix replacement of
59217         `build-aux' in configure.ac.  Run autotools in gltests
59218         subdirectory.
59219         (func_create_testdir, func_create_megatestdir, test): There is
59220         no need for '--force' in most autotool invocations in a new
59221         tree.  Actually fail the whole test if any of the tools, or the
59222         configure or make stages fail.
59223
59224         Sync from Automake.
59225         * build-aux/gnupload: Revert last change.  Add pointer to upload
59226         instructions of the GNU Maintenance Instructions.
59227         Suggestion by Karl Berry.
59228
59229 2006-11-10  Jim Meyering  <jim@meyering.net>
59230
59231         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59232
59233 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59236         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59237         (bind_textdomain_codeset) [! ENABLE_NLS]:
59238         Evaluate all the arguments.  That way, callers get compatible behavior
59239         if the arguments have side effects.  Also, it avoids some GCC
59240         diagnostics in some cases; Joel E. Denny reported problems when Bison
59241         was configured with --enable-gcc-warnigs.
59242
59243 2006-11-10  Jim Meyering  <jim@meyering.net>
59244
59245         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59246         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59247         account.
59248
59249 2006-11-10  Jim Meyering  <jim@meyering.net>
59250
59251         * modules/inline: New file/module.
59252         * modules/xalloc (Files): Remove m4/inline.m4.
59253         (Depends-on): Add inline, instead.
59254         * modules/oset: Likewise.
59255         * modules/list: Likewise.
59256
59257 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59260         Problem reported by Matthew Woehlke.
59261
59262 2006-11-09  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/tempname.c (gen_tempname): Remove variant that invokes
59265         __gen_tempname.
59266         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59267         __gen_tempname.
59268
59269 2006-11-08  Bruno Haible  <bruno@clisp.org>
59270
59271         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59272         to 'yes' instead of 'cross-compiling'.
59273
59274 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59275
59276         * lib/quotearg.h (quotearg_free): New decl.
59277         * lib/quotearg.c (quotearg_free): New function.
59278         (slot0, nslots, slotvec0, slotvec):
59279         Now file-scope so that quotearg_free can get at them.
59280
59281 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59282
59283         Sync from Automake.
59284         * build-aux/gnupload: Add missing 'gnu' to example URL.
59285         Report by Karl Berry.
59286
59287 2006-11-08  Bruno Haible  <bruno@clisp.org>
59288
59289         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59290         Suggested by Paul Eggert.
59291
59292 2006-11-08  Jim Meyering  <jim@meyering.net>
59293
59294         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59295         It's already included if !_LIBC.
59296         (fts_safe_changedir): Add a comment.
59297
59298 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59299
59300         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59301         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59302         Matthew Woehlke.
59303
59304         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59305         definitions up, to avoid colliding with change below.
59306         (static_inline) [HAVE_INLINE]: New macro.
59307         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59308         Provide extern decls when !HAVE_INLINE.  Do not define unless
59309         static_inline is defined, either by us or by xmalloc.c.  Use
59310         static_inline rather than static inline.
59311         (XCALLOC): Optimize sizeof(T) = 1 case.
59312         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59313
59314 2006-11-07  Bruno Haible  <bruno@clisp.org>
59315
59316         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59317         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59318         AC_C_INLINE.
59319         * modules/xalloc (Files): Add m4/inline.m4.
59320
59321 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59322
59323         * README: Fix typo.
59324         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59325         (Miscellanous Notes): ...from this.
59326
59327 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59328
59329         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59330         Mention that offsetof should be used instead of sizeof.
59331         From Bruno Haible.
59332
59333 2006-11-07  Bruno Haible  <bruno@clisp.org>
59334
59335         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59336
59337 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59338
59339         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59340         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59341         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59342         (gl_tree_add_before, gl_tree_add_after):
59343         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59344         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59345         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59346         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59347         (gl_linked_add_after, gl_linked_add_at): Likewise.
59348         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59349         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59350         (gl_tree_add_before, gl_tree_add_after): Likewise.
59351         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59352         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59353         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59354
59355 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59356
59357         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59358
59359 2006-11-06  Bruno Haible  <bruno@clisp.org>
59360
59361         * m4/inline.m4: New file.
59362         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59363         * modules/list (Files): Add m4/inline.m4.
59364         * modules/oset (Files): Likewise.
59365
59366 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * lib/idcache.c: Include <stddef.h>, for offsetof.
59369         (struct userid.name): Change from char * to a flexible array member.
59370         All uses changed.
59371         * modules/idcache (Depends-on): Add flexmember.
59372
59373         * MODULES.html.sh (Core language properties): New module flexmember.
59374         * modules/flexmember, m4/flexmember.m4: New files.
59375
59376         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59377         inline functions that are identical with the old xnmalloc_inline,
59378         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59379         that we can avoid some unnecessary integer multiplications and
59380         divisions in the common case where the element size is known at
59381         compile time.
59382         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59383         needed.
59384         (xnboundedmalloc): Remove.
59385         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59386         arguments, for consistency with rest of this header.
59387         (xcharalloc): Rewrite using XNMALLOC.
59388         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59389         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59390         versions have been moved to lib/xalloc.h and renamed to be the
59391         non-*_inline versions.
59392         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59393         and xnrealloc functions, since those functions are now inline and
59394         now call us.
59395         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59396         renaming described above.
59397         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59398         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59399         captures the dependency in AC_C_INLINE.
59400
59401         New module canonicalize-lgpl, proposed by Charles Wilson in
59402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59403         with a few small changes afterwards.
59404         * MODULES.html.sh (File system functions): New module
59405         canonicalize-lgpl.
59406         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59407         and canonicalize_file_name.
59408         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59409         * modules/canonicalize-lgpl: New files.
59410
59411 2006-11-05  Bruno Haible  <bruno@clisp.org>
59412
59413         * gnulib-tool (func_import, func_create_testdir): Create directories
59414         also for files in subdirectories of lib/.
59415
59416 2006-11-05  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59419         ANSI C compliant.
59420
59421 2006-11-03  Bruno Haible  <bruno@clisp.org>
59422
59423         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59424         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59425         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59426         (xnboundedmalloc): New inline function.
59427         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59428         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59429         xmalloc.
59430         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59431         xmalloc.
59432         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59433         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59434         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59435         xmalloc.
59436         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59437         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59438         xmalloc.
59439         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59440         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59441         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59442         xmalloc.
59443         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59444         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59445         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59446         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59447         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59448         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59449         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59450
59451 2006-11-03  Bruno Haible  <bruno@clisp.org>
59452
59453         * lib/c-ctype.h [C++]: Define functions without name mangling.
59454         * lib/fwriteerror.h [C++]: Likewise.
59455         * lib/gcd.h [C++]: Likewise.
59456         * lib/linebreak.h [C++]: Likewise.
59457
59458 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59459
59460         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59461         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59462         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59463         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59464         Check for functions and headers just once.
59465         Check for declaration of canonicalize_file_name.
59466         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59467
59468 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59469
59470         * gnulib-tool (func_import): Fix typo in actioncmd.
59471
59472 2006-11-02  Bruno Haible  <bruno@clisp.org>
59473
59474         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59475         newline sequence in the Makefile.am snippet as a space, like "make"
59476         does.
59477         Reported by Roger Persson <perrog@gmail.com>.
59478
59479 2006-11-01  Bruno Haible  <bruno@clisp.org>
59480
59481         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59482         already declared in <string.h>.
59483         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59484
59485 2006-11-01  Bruno Haible  <bruno@clisp.org>
59486
59487         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59488         * lib/strcase.h: Include <string.h>.
59489         (strcasecmp): Define to rpl_strcasecmp here.
59490
59491 2006-11-01  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59494
59495 2006-11-01  Eric Blake  <ebb9@byu.net>
59496
59497         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59498
59499         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59500
59501 2006-10-29  Bruno Haible  <bruno@clisp.org>
59502
59503         Make it compile in C++ mode.
59504         * lib/full-write.c (full_rw): Add a cast.
59505
59506 2006-11-01  Bruno Haible  <bruno@clisp.org>
59507
59508         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59509         be POSIX compliant.
59510         Reported by Roger Persson <perrog@gmail.com>.
59511
59512 2006-11-01  Eric Blake  <ebb9@byu.net>
59513
59514         * lib/getopt_.h: Fix comments.
59515
59516 2006-10-31  Eric Blake  <ebb9@byu.net>
59517
59518         * modules/tmpdir (Depends-on): Add sys_stat.
59519         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59520         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59521         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59522         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59523         tempname.
59524
59525 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         Avoid some C++ diagnostics reported by Bruno Haible.
59528         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59529         xmalloc.
59530         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59531         (struct slotvec): Move to top level.
59532         (quotearg_n_options): Rewrite to avoid xmalloc.
59533         * lib/xalloc.h (xcharalloc): New function.
59534         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59535         [defined __cplusplus]: Add function template that provides result
59536         type propagation.  This part of the change is from Bruno Haible.
59537
59538 2006-10-29  Bruno Haible  <bruno@clisp.org>
59539
59540         Make it compile in C++ mode.
59541         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59542         * lib/strnlen1.c (strnlen1): Cast memchr result.
59543         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59544         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59545         (create_temp_dir): Rename local variable 'template'.
59546         (compile_csharp_using_sscli): Add cast.
59547         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59548         * lib/findprog.c (find_in_path): Likewise.
59549         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59550         * lib/wait-process.c (register_slave_subprocess): Likewise.
59551
59552 2006-10-22  Bruno Haible  <bruno@clisp.org>
59553
59554         * modules/tsearch: New file.
59555         * lib/tsearch.h: New file.
59556         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59557         * m4/tsearch.m4: New file.
59558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59559
59560 2006-10-29  Eric Blake  <ebb9@byu.net>
59561
59562         * lib/arcfour.c: Assume config.h.
59563         * lib/arctwo.c: Likewise.
59564         * lib/base64.c: Likewise.
59565         * lib/check-version.c: Likewise.
59566         * lib/crc.c: Likewise.
59567         * lib/des.c: Likewise.
59568         * lib/gc-gnulib.c: Likewise.
59569         * lib/gc-libgcrypt.c: Likewise.
59570         * lib/gc-pbkdf2-sha1.c: Likewise.
59571         * lib/getaddrinfo.c: Likewise.
59572         * lib/getdelim.c: Likewise.
59573         * lib/getline.c: Likewise.
59574         * lib/hmac-md5.c: Likewise.
59575         * lib/hmac-sha1.c: Likewise.
59576         * lib/iconvme.c: Likewise.
59577         * lib/md2.c: Likewise.
59578         * lib/md4.c: Likewise.
59579         * lib/memxor.c: Likewise.
59580         * lib/read-file.c: Likewise.
59581         * lib/readline.c: Likewise.
59582         * lib/rijndael-alg-fst.c: Likewise.
59583         * lib/rijndael-api-fst.c: Likewise.
59584         * lib/xgetdomainname.c: Likewise.
59585
59586 2006-10-28  Eric Blake  <ebb9@byu.net>
59587
59588         * lib/xstrndup.c: Assume config.h.
59589
59590 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59591
59592         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59593         stat-macros.h is now for our own macros, whereas stat_h is for
59594         macros in the <sys/stat.h> name space.
59595         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59596         (STAT_MACROS_H): Remove.
59597         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59598         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59599         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59600         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59601         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59602         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59603         Move these macros to ...
59604         * lib/stat_.h: here.  Don't include stat-macros.h.
59605         * lib/canonicalize.c: Don't include stat-macros.h.
59606         * lib/chown.c: Likewise.
59607         * lib/euidaccess.c: Likewise.
59608         * lib/file-type.c: Likewise.
59609         * lib/filemode.c: Likewise.
59610         * lib/glob.c: Likewise.
59611         * lib/isapipe.c: Likewise.
59612         * lib/lchown.c: Likewise.
59613         * lib/lstat.c: Likewise.
59614         * lib/mkdir-p.c: Likewise.
59615         * lib/rmdir.c: Likewise.
59616         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59618         unless mkdir isn't declared, to speed up 'configure'.
59619         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59620         would define all the S_* symbols.
59621         * modules/canonicalize (Depends-on):
59622         Depend on sys_stat, not stat-macros.
59623         * modules/chown: Likewise.
59624         * modules/euidaccess: Likewise.
59625         * modules/filemode: Likewise.
59626         * modules/file-type: Likewise.
59627         * modules/glob: Likewise.
59628         * modules/isapipe: Likewise.
59629         * modules/lchown: Likewise.
59630         * modules/lstat: Likewise.
59631         * modules/mkancesdirs: Likewise.
59632         * modules/rmdir: Likewise.
59633         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59634         * modules/modechange: Likewise.
59635         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59636         (configure.ac): Remove gl_STAT_MACROS.
59637         * modules/sys_stat (Depends-on): Remove stat-macros.
59638
59639 2006-10-27  Bruno Haible  <bruno@clisp.org>
59640
59641         * m4/signed.m4: Remove file.
59642         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59643         invocation.
59644         * modules/vasnprintf (Files): Remove m4/signed.m4.
59645
59646 2006-10-27  Bruno Haible  <bruno@clisp.org>
59647
59648         Update to GNU gettext 0.16.
59649         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59650         m4/inttypes-h.m4, m4/signed.m4.
59651         * m4/gettext.m4: Update to GNU gettext 0.16.
59652         * m4/intl.m4: New file, from GNU gettext.
59653         * m4/intldir.m4: New file, from GNU gettext.
59654         * config/srclist.txt: Update
59655
59656 2006-10-27  Eric Blake  <ebb9@byu.net>
59657
59658         * MODULES.html.sh: Document tempname.
59659         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59660         dependencies.
59661         (Files): Move lib/tempname.c...
59662         * modules/tempname: ...to this new module.
59663         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59664         (gl_PREREQ_TEMPNAME): Move...
59665         * m4/tempname.m4: ...to this new file.
59666         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59667         * modules/sys_stat (Depends-on): Add stat-macros.
59668         * lib/stat_.h (includes): Pick up stat macros.
59669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59670         if stat macros are broken.
59671         * lib/tempname.c (includes): No need to include "stat-macros.h".
59672         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59673         (direxists, __path_search) [!_LIBC]: Don't compile these in
59674         gnulib; the tmpdir module covers that.
59675         * lib/tempname.h: New file.
59676
59677 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * COPYING: Explain how gnulib-tool converts licence headers.
59680         Almost all wording by Eric Blake.
59681
59682 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59683
59684         * lib/mbchar.h (is_basic_table): Make read-only.
59685         * lib/mbchar.c (is_basic_table): Likewise.
59686         Reported by John Darrington.
59687
59688 2006-10-25  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/progname.h (set_program_name): Undefine before defining.
59691
59692 2006-10-25  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59695         false for non-gcc C++ compilers.
59696         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59697
59698 2006-10-24  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59701         iconv implementations like Irix iconv.
59702
59703 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * modules/vararrays: New file.
59706         * m4/vararrays.m4: New file, taken from diffutils.
59707         * MODULES.html.sh: New module vararrays.
59708
59709 2006-10-24  Karl Berry  <karl@gnu.org>
59710
59711         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59712         Don't call GNU Unix.
59713
59714 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59715
59716         * users.txt: Add Libtool.
59717
59718         Sync from Libtool:
59719
59720         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59723         to gnulib's policy of including config.h unconditionally.
59724
59725 2006-10-24  Bruno Haible  <bruno@clisp.org>
59726
59727         * modules/wcwidth (Files): Add m4/wint_t.m4.
59728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59729         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59730
59731 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59734         to pacify GCC with some -W flags enabled.  Problem reported by
59735         Bruno Haible.
59736
59737 2006-10-24  Jim Meyering  <jim@meyering.net>
59738
59739         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59740         Reported by Karl Berry.
59741
59742 2006-10-23  Bruno Haible  <bruno@clisp.org>
59743
59744         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59745
59746 2006-10-24  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/gl_list.h: Use C comment style, not C++ comment style.
59749
59750 2006-10-23  Eric Blake  <ebb9@byu.net>
59751
59752         * lib/getaddrinfo.c (includes): Add missing include.
59753
59754 2006-10-23  Bruno Haible  <bruno@clisp.org>
59755             Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         Ability to rename obstack_free.
59758         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59759         obstack_free.
59760         (obstack_free): Invoke the __obstack_free macro.
59761         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59762
59763 2006-10-23  Bruno Haible  <bruno@clisp.org>
59764             Paul Eggert  <eggert@cs.ucla.edu>
59765
59766         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59767         __argc, __argv from the declaration. (They are defined as macros on
59768         mingw.)
59769
59770 2006-10-22  Bruno Haible  <bruno@clisp.org>
59771
59772         * doc/gnulib-intro.texi: New file.
59773         * doc/gnulib.texi: Include it.
59774
59775 2006-10-21  Bruno Haible  <bruno@clisp.org>
59776
59777         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59778         "Introduction", "Miscellanous Notes", "Particular Modules".
59779
59780 2006-10-21  Bruno Haible  <bruno@clisp.org>
59781
59782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59783         Change mostlyclean-local rule to avoid sh syntax error from bash
59784         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59785
59786 2006-10-23  Jim Meyering  <jim@meyering.net>
59787
59788         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59789         in place of snprintf.
59790
59791         * modules/inttostr (Files): Add lib/uinttostr.c.
59792         * lib/uinttostr.c (inttostr): New file/function.
59793         * lib/inttostr.h (uinttostr): Declare.
59794         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59795         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59796         Add uinttostr.
59797         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59798
59799 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * lib/canonicalize.c (ELOOP): Define if not already defined.
59802         Problem reported by Bruno Haible in
59803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59804
59805 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59808         Problem reported by Perry Smith and Ville Laurikari.
59809
59810         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59811         uses.
59812
59813 2006-10-19  Bruno Haible  <bruno@clisp.org>
59814
59815         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59816         for mingw.
59817
59818 2006-10-19  Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59821         Needed for mingw.
59822
59823 2006-10-19  Bruno Haible  <bruno@clisp.org>
59824
59825         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59826
59827 2006-10-19  Bruno Haible  <bruno@clisp.org>
59828
59829         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59830         it.
59831
59832 2006-10-19  Bruno Haible  <bruno@clisp.org>
59833
59834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59835         invocation.
59836
59837 2006-10-19  Bruno Haible  <bruno@clisp.org>
59838
59839         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59840         mountlist by default.
59841
59842 2006-10-16  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/c-strstr.c: Include c-strstr.h.
59845
59846 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59847
59848         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59849         in a slash.
59850
59851 2006-10-18  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/lock.h [C++]: Wrap definitions in extern "C".
59854
59855 2006-10-18  Bruno Haible  <bruno@clisp.org>
59856
59857         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59858         gl_LIBOBJS list.
59859
59860 2006-10-18  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59863
59864 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * lib/xstrtol.h: Include gettext.h.
59867         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59868         Problem reported by Eric Blake.
59869         * modules/xstrtol (Depends-on): Add gettext-h.
59870
59871 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59872
59873         * lib/strftime.c (advance): New macro.
59874         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59875         incomplete type, so you can't add 0 to it.  Problem and patch
59876         reported by Eelco Dolstra for dietlibc.
59877
59878 2006-10-18  Jim Meyering  <jim@meyering.net>
59879
59880         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59881         type for a local, and rename it: s/up/user_proc/.
59882
59883 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59884
59885         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59886         READ_UTMP_USER_PROCESS.
59887         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59888
59889 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59892         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59893
59894 2006-10-17  Eric Blake  <ebb9@byu.net>
59895
59896         * lib/sigprocmask.c (sigprocmask): Fix typo.
59897
59898         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59899
59900         * modules/clean-temp (Makefile.am): Don't add to make output...
59901         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59902         config.h.
59903
59904 2006-10-17  Bruno Haible  <bruno@clisp.org>
59905
59906         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59907         differently if DEFAULT_TEXT_DOMAIN is set.
59908
59909 2006-10-16  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/clean-temp.c: Include fwriteerror.h.
59912
59913 2006-10-16  Bruno Haible  <bruno@clisp.org>
59914
59915         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59916
59917 2006-10-16  Bruno Haible  <bruno@clisp.org>
59918
59919         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59920         * lib/sigprocmask.h: Include <sys/types.h>.
59921         (sigset_t): Use the system's definition if present.
59922
59923 2006-10-17  Eric Blake  <ebb9@byu.net>
59924
59925         * lib/xvasprintf.c (includes): Assume config.h.
59926         * lib/xasprintf.c (includes): Likewise.
59927
59928 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59931         at least as wide as intmax_t.
59932
59933 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59934
59935         (Imported from Automake.)
59936         * build-aux/gnupload: Update to version 1.1 of directive file.
59937
59938 2006-10-16  Eric Blake  <ebb9@byu.net>
59939
59940         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59941         match Automake 1.10a.
59942
59943 2006-10-14  Bruno Haible  <bruno@clisp.org>
59944
59945         * modules/sigprocmask: New file.
59946         * lib/sigprocmask.h: New file.
59947         * lib/sigprocmask.c: New file.
59948         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59949         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59950         request sigprocmask.o.
59951         (gl_PREREQ_SIGPROCMASK): New macro.
59952         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59953         (Depends-on): Add sigprocmask.
59954         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59955         gt_SIGNALBLOCKING. Test for 'raise' only once.
59956         * lib/fatal-signal.c: Include sigprocmask.h.
59957         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59958         unblock_fatal_signals): Define always.
59959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59960         sigprocmask.
59961
59962 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59963
59964         Sync from Automake.
59965         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59966         which incorrectly sets the mode of an existing destination
59967         directory.  In some cases the unpatched install-sh could do the
59968         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59969         system.  We hope this is rare in practice, but it's clearly worth
59970         fixing.  Problem reported by Alex Unleashed in
59971         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59972         Also, don't bother to check for -m bugs unless we're using -m;
59973         suggested by Stepan Kasal.
59974
59975 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59976
59977         Sync from Automake.
59978         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59979         `-c' flag, so they appear at the same position as in %FASTDEP%
59980         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59981         which ignores unknown options only after the first non-option.
59982         Bug report against M4 by Nelson H. F. Beebe.
59983
59984 2006-10-13  Jim Meyering  <jim@meyering.net>
59985
59986         Fix a bug in yesterday's change.
59987         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59988         p->fts_statp->st_dev would be used uninitialized.
59989         Ensures that we always call fts_stat on the very first entry.
59990         Miklos Szeredi reported that find -xdev stopped working.
59991
59992 2006-10-12  Bruno Haible  <bruno@clisp.org>
59993
59994         * gnulib-tool (func_get_automake_snippet): Append an automatically
59995         computed EXTRA_DIST augmentation.
59996         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59997         * modules/alloca-opt (Makefile.am): Likewise.
59998         * modules/allocsa (Makefile.am): Likewise.
59999         * modules/arcfour (Makefile.am): Likewise.
60000         * modules/arctwo (Makefile.am): Likewise.
60001         * modules/argmatch (Makefile.am): Likewise.
60002         * modules/argz (Makefile.am): Likewise.
60003         * modules/atexit (Makefile.am): Likewise.
60004         * modules/backupfile (Makefile.am): Likewise.
60005         * modules/byteswap (Makefile.am): Likewise.
60006         * modules/c-strtod (Makefile.am): Likewise.
60007         * modules/c-strtold (Makefile.am): Likewise.
60008         * modules/calloc (Makefile.am): Likewise.
60009         * modules/canon-host (Makefile.am): Likewise.
60010         * modules/canonicalize (Makefile.am): Likewise.
60011         * modules/chdir-long (Makefile.am): Likewise.
60012         * modules/chdir-safer (Makefile.am): Likewise.
60013         * modules/check-version (Makefile.am): Likewise.
60014         * modules/chown (Makefile.am): Likewise.
60015         * modules/cloexec (Makefile.am): Likewise.
60016         * modules/close-stream (Makefile.am): Likewise.
60017         * modules/closeout (Makefile.am): Likewise.
60018         * modules/crc (Makefile.am): Likewise.
60019         * modules/csharpexec (Makefile.am): Likewise.
60020         * modules/cycle-check (Makefile.am): Likewise.
60021         * modules/des (Makefile.am): Likewise.
60022         * modules/dev-ino (Makefile.am): Likewise.
60023         * modules/dirfd (Makefile.am): Likewise.
60024         * modules/dirname (Makefile.am): Likewise.
60025         * modules/dup2 (Makefile.am): Likewise.
60026         * modules/eealloc (Makefile.am): Likewise.
60027         * modules/error (Makefile.am): Likewise.
60028         * modules/euidaccess (Makefile.am): Likewise.
60029         * modules/exclude (Makefile.am): Likewise.
60030         * modules/exitfail (Makefile.am): Likewise.
60031         * modules/fcntl-safer (Makefile.am): Likewise.
60032         * modules/fcntl (Makefile.am): Likewise.
60033         * modules/file-type (Makefile.am): Likewise.
60034         * modules/fileblocks (Makefile.am): Likewise.
60035         * modules/filemode (Makefile.am): Likewise.
60036         * modules/filenamecat (Makefile.am): Likewise.
60037         * modules/fnmatch (Makefile.am): Likewise.
60038         * modules/fopen-safer (Makefile.am): Likewise.
60039         * modules/fpending (Makefile.am): Likewise.
60040         * modules/fprintftime (Makefile.am): Likewise.
60041         * modules/free (Makefile.am): Likewise.
60042         * modules/fsusage (Makefile.am): Likewise.
60043         * modules/ftruncate (Makefile.am): Likewise.
60044         * modules/fts (Makefile.am): Likewise.
60045         * modules/gc-arcfour (Makefile.am): Likewise.
60046         * modules/gc-des (Makefile.am): Likewise.
60047         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60048         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60049         * modules/gc-md4 (Makefile.am): Likewise.
60050         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60051         * modules/gc-sha1 (Makefile.am): Likewise.
60052         * modules/gc (Makefile.am): Likewise.
60053         * modules/getaddrinfo (Makefile.am): Likewise.
60054         * modules/getcwd (Makefile.am): Likewise.
60055         * modules/getdelim (Makefile.am): Likewise.
60056         * modules/getdomainname (Makefile.am): Likewise.
60057         * modules/getgroups (Makefile.am): Likewise.
60058         * modules/gethostname (Makefile.am): Likewise.
60059         * modules/gethrxtime (Makefile.am): Likewise.
60060         * modules/getline (Makefile.am): Likewise.
60061         * modules/getloadavg (Makefile.am): Likewise.
60062         * modules/getlogin_r (Makefile.am): Likewise.
60063         * modules/getndelim2 (Makefile.am): Likewise.
60064         * modules/getopt (Makefile.am): Likewise.
60065         * modules/getpagesize (Makefile.am): Likewise.
60066         * modules/getpass-gnu (Makefile.am): Likewise.
60067         * modules/getpass (Makefile.am): Likewise.
60068         * modules/getsubopt (Makefile.am): Likewise.
60069         * modules/gettime (Makefile.am): Likewise.
60070         * modules/gettimeofday (Makefile.am): Likewise.
60071         * modules/getugroups (Makefile.am): Likewise.
60072         * modules/getusershell (Makefile.am): Likewise.
60073         * modules/glob (Makefile.am): Likewise.
60074         * modules/group-member (Makefile.am): Likewise.
60075         * modules/hard-locale (Makefile.am): Likewise.
60076         * modules/hash (Makefile.am): Likewise.
60077         * modules/hmac-md5 (Makefile.am): Likewise.
60078         * modules/hmac-sha1 (Makefile.am): Likewise.
60079         * modules/human (Makefile.am): Likewise.
60080         * modules/idcache (Makefile.am): Likewise.
60081         * modules/imaxabs (Makefile.am): Likewise.
60082         * modules/imaxdiv (Makefile.am): Likewise.
60083         * modules/inet_ntop (Makefile.am): Likewise.
60084         * modules/inet_pton (Makefile.am): Likewise.
60085         * modules/intprops (Makefile.am): Likewise.
60086         * modules/inttostr (Makefile.am): Likewise.
60087         * modules/inttypes (Makefile.am): Likewise.
60088         * modules/isapipe (Makefile.am): Likewise.
60089         * modules/javaversion (Makefile.am): Likewise.
60090         * modules/lchmod (Makefile.am): Likewise.
60091         * modules/lchown (Makefile.am): Likewise.
60092         * modules/localcharset (Makefile.am): Likewise.
60093         * modules/long-options (Makefile.am): Likewise.
60094         * modules/lstat (Makefile.am): Likewise.
60095         * modules/malloc (Makefile.am): Likewise.
60096         * modules/mathl (Makefile.am): Likewise.
60097         * modules/mbchar (Makefile.am): Likewise.
60098         * modules/md2 (Makefile.am): Likewise.
60099         * modules/md4 (Makefile.am): Likewise.
60100         * modules/md5 (Makefile.am): Likewise.
60101         * modules/memcasecmp (Makefile.am): Likewise.
60102         * modules/memchr (Makefile.am): Likewise.
60103         * modules/memcmp (Makefile.am): Likewise.
60104         * modules/memcoll (Makefile.am): Likewise.
60105         * modules/memcpy (Makefile.am): Likewise.
60106         * modules/memmem (Makefile.am): Likewise.
60107         * modules/memmove (Makefile.am): Likewise.
60108         * modules/mempcpy (Makefile.am): Likewise.
60109         * modules/memrchr (Makefile.am): Likewise.
60110         * modules/memset (Makefile.am): Likewise.
60111         * modules/memxor (Makefile.am): Likewise.
60112         * modules/mkancesdirs (Makefile.am): Likewise.
60113         * modules/mkdir-p (Makefile.am): Likewise.
60114         * modules/mkdir (Makefile.am): Likewise.
60115         * modules/mkdtemp (Makefile.am): Likewise.
60116         * modules/mkstemp (Makefile.am): Likewise.
60117         * modules/mktime (Makefile.am): Likewise.
60118         * modules/modechange (Makefile.am): Likewise.
60119         * modules/mountlist (Makefile.am): Likewise.
60120         * modules/nanosleep (Makefile.am): Likewise.
60121         * modules/obstack (Makefile.am): Likewise.
60122         * modules/openat (Makefile.am): Likewise.
60123         * modules/pagealign_alloc (Makefile.am): Likewise.
60124         * modules/pathmax (Makefile.am): Likewise.
60125         * modules/physmem (Makefile.am): Likewise.
60126         * modules/poll (Makefile.am): Likewise.
60127         * modules/posixtm (Makefile.am): Likewise.
60128         * modules/posixver (Makefile.am): Likewise.
60129         * modules/putenv (Makefile.am): Likewise.
60130         * modules/quote (Makefile.am): Likewise.
60131         * modules/quotearg (Makefile.am): Likewise.
60132         * modules/raise (Makefile.am): Likewise.
60133         * modules/read-file (Makefile.am): Likewise.
60134         * modules/readline (Makefile.am): Likewise.
60135         * modules/readlink (Makefile.am): Likewise.
60136         * modules/readtokens (Makefile.am): Likewise.
60137         * modules/readutmp (Makefile.am): Likewise.
60138         * modules/realloc (Makefile.am): Likewise.
60139         * modules/regex (Makefile.am): Likewise.
60140         * modules/rename-dest-slash (Makefile.am): Likewise.
60141         * modules/rename (Makefile.am): Likewise.
60142         * modules/rijndael (Makefile.am): Likewise.
60143         * modules/rmdir (Makefile.am): Likewise.
60144         * modules/rpmatch (Makefile.am): Likewise.
60145         * modules/safe-read (Makefile.am): Likewise.
60146         * modules/safe-write (Makefile.am): Likewise.
60147         * modules/same-inode (Makefile.am): Likewise.
60148         * modules/same (Makefile.am): Likewise.
60149         * modules/save-cwd (Makefile.am): Likewise.
60150         * modules/savedir (Makefile.am): Likewise.
60151         * modules/setenv (Makefile.am): Likewise.
60152         * modules/settime (Makefile.am): Likewise.
60153         * modules/sha1 (Makefile.am): Likewise.
60154         * modules/sig2str (Makefile.am): Likewise.
60155         * modules/snprintf (Makefile.am): Likewise.
60156         * modules/stat-macros (Makefile.am): Likewise.
60157         * modules/stat-time (Makefile.am): Likewise.
60158         * modules/stdbool (Makefile.am): Likewise.
60159         * modules/stdint (Makefile.am): Likewise.
60160         * modules/stdlib-safer (Makefile.am): Likewise.
60161         * modules/stpcpy (Makefile.am): Likewise.
60162         * modules/stpncpy (Makefile.am): Likewise.
60163         * modules/strcase (Makefile.am): Likewise.
60164         * modules/strcasestr (Makefile.am): Likewise.
60165         * modules/strchrnul (Makefile.am): Likewise.
60166         * modules/strcspn (Makefile.am): Likewise.
60167         * modules/strdup (Makefile.am): Likewise.
60168         * modules/strerror (Makefile.am): Likewise.
60169         * modules/strftime (Makefile.am): Likewise.
60170         * modules/strndup (Makefile.am): Likewise.
60171         * modules/strnlen (Makefile.am): Likewise.
60172         * modules/strpbrk (Makefile.am): Likewise.
60173         * modules/strsep (Makefile.am): Likewise.
60174         * modules/strstr (Makefile.am): Likewise.
60175         * modules/strtod (Makefile.am): Likewise.
60176         * modules/strtoimax (Makefile.am): Likewise.
60177         * modules/strtok_r (Makefile.am): Likewise.
60178         * modules/strtol (Makefile.am): Likewise.
60179         * modules/strtoll (Makefile.am): Likewise.
60180         * modules/strtoul (Makefile.am): Likewise.
60181         * modules/strtoull (Makefile.am): Likewise.
60182         * modules/strtoumax (Makefile.am): Likewise.
60183         * modules/strverscmp (Makefile.am): Likewise.
60184         * modules/sys_socket (Makefile.am): Likewise.
60185         * modules/sys_stat (Makefile.am): Likewise.
60186         * modules/sysexits (Makefile.am): Likewise.
60187         * modules/time_r (Makefile.am): Likewise.
60188         * modules/timegm (Makefile.am): Likewise.
60189         * modules/timespec (Makefile.am): Likewise.
60190         * modules/tmpfile-safer (Makefile.am): Likewise.
60191         * modules/trim (Makefile.am): Likewise.
60192         * modules/unistd-safer (Makefile.am): Likewise.
60193         * modules/unlinkdir (Makefile.am): Likewise.
60194         * modules/unlocked-io (Makefile.am): Likewise.
60195         * modules/userspec (Makefile.am): Likewise.
60196         * modules/utime (Makefile.am): Likewise.
60197         * modules/utimecmp (Makefile.am): Likewise.
60198         * modules/utimens (Makefile.am): Likewise.
60199         * modules/vasnprintf (Makefile.am): Likewise.
60200         * modules/vasprintf (Makefile.am): Likewise.
60201         * modules/vsnprintf (Makefile.am): Likewise.
60202         * modules/xalloc (Makefile.am): Likewise.
60203         * modules/xgetcwd (Makefile.am): Likewise.
60204         * modules/xnanosleep (Makefile.am): Likewise.
60205         * modules/xreadlink (Makefile.am): Likewise.
60206         * modules/xstrtod (Makefile.am): Likewise.
60207         * modules/xstrtol (Makefile.am): Likewise.
60208         * modules/xstrtold (Makefile.am): Likewise.
60209         * modules/yesno (Makefile.am): Likewise.
60210         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60211
60212 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60213
60214         * modules/error (Makefile.am): Distribute files through
60215         EXTRA_DIST, not lib_SOURCES.
60216
60217 2006-10-12  Eric Blake  <ebb9@byu.net>
60218
60219         * modules/error (Makefile.am): Distribute files in /lib.
60220         * modules/obstack (Makefile.am): Likewise.
60221
60222 2006-10-12  Bruno Haible  <bruno@clisp.org>
60223
60224         * modules/acl (Makefile.am): Distribute all files in lib/ through
60225         EXTRA_DIST.
60226         * modules/arcfour (Makefile.am): Likewise.
60227         * modules/arctwo (Makefile.am): Likewise.
60228         * modules/argmatch (Makefile.am): Likewise.
60229         * modules/argz (Makefile.am): Likewise.
60230         * modules/atexit (Makefile.am): Likewise.
60231         * modules/backupfile (Makefile.am): Likewise.
60232         * modules/c-strtod (Makefile.am): Likewise.
60233         * modules/c-strtold (Makefile.am): Likewise.
60234         * modules/calloc (Makefile.am): Likewise.
60235         * modules/canon-host (Makefile.am): Likewise.
60236         * modules/canonicalize (Makefile.am): Likewise.
60237         * modules/chdir-long (Makefile.am): Likewise.
60238         * modules/chdir-safer (Makefile.am): Likewise.
60239         * modules/check-version (Makefile.am): Likewise.
60240         * modules/chown (Makefile.am): Likewise.
60241         * modules/cloexec (Makefile.am): Likewise.
60242         * modules/close-stream (Makefile.am): Likewise.
60243         * modules/closeout (Makefile.am): Likewise.
60244         * modules/crc (Makefile.am): Likewise.
60245         * modules/cycle-check (Makefile.am): Likewise.
60246         * modules/des (Makefile.am): Likewise.
60247         * modules/dirfd (Makefile.am): Likewise.
60248         * modules/dirname (Makefile.am): Likewise.
60249         * modules/dup2 (Makefile.am): Likewise.
60250         * modules/euidaccess (Makefile.am): Likewise.
60251         * modules/exclude (Makefile.am): Likewise.
60252         * modules/exitfail (Makefile.am): Likewise.
60253         * modules/fcntl-safer (Makefile.am): Likewise.
60254         * modules/file-type (Makefile.am): Likewise.
60255         * modules/fileblocks (Makefile.am): Likewise.
60256         * modules/filemode (Makefile.am): Likewise.
60257         * modules/filenamecat (Makefile.am): Likewise.
60258         * modules/fnmatch (Makefile.am): Likewise.
60259         * modules/fopen-safer (Makefile.am): Likewise.
60260         * modules/fpending (Makefile.am): Likewise.
60261         * modules/fprintftime (Makefile.am): Likewise.
60262         * modules/free (Makefile.am): Likewise.
60263         * modules/fsusage (Makefile.am): Likewise.
60264         * modules/ftruncate (Makefile.am): Likewise.
60265         * modules/fts (Makefile.am): Likewise.
60266         * modules/gc (Makefile.am): Likewise.
60267         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60268         * modules/getaddrinfo (Makefile.am): Likewise.
60269         * modules/getcwd (Makefile.am): Likewise.
60270         * modules/getdelim (Makefile.am): Likewise.
60271         * modules/getdomainname (Makefile.am): Likewise.
60272         * modules/getgroups (Makefile.am): Likewise.
60273         * modules/gethostname (Makefile.am): Likewise.
60274         * modules/gethrxtime (Makefile.am): Likewise.
60275         * modules/getline (Makefile.am): Likewise.
60276         * modules/getloadavg (Makefile.am): Likewise.
60277         * modules/getlogin_r (Makefile.am): Likewise.
60278         * modules/getopt (Makefile.am): Likewise.
60279         * modules/getpass (Makefile.am): Likewise.
60280         * modules/getpass-gnu (Makefile.am): Likewise.
60281         * modules/getsubopt (Makefile.am): Likewise.
60282         * modules/gettime (Makefile.am): Likewise.
60283         * modules/gettimeofday (Makefile.am): Likewise.
60284         * modules/getugroups (Makefile.am): Likewise.
60285         * modules/getusershell (Makefile.am): Likewise.
60286         * modules/glob (Makefile.am): Likewise.
60287         * modules/group-member (Makefile.am): Likewise.
60288         * modules/hard-locale (Makefile.am): Likewise.
60289         * modules/hash (Makefile.am): Likewise.
60290         * modules/hmac-md5 (Makefile.am): Likewise.
60291         * modules/hmac-sha1 (Makefile.am): Likewise.
60292         * modules/human (Makefile.am): Likewise.
60293         * modules/idcache (Makefile.am): Likewise.
60294         * modules/imaxabs (Makefile.am): Likewise.
60295         * modules/imaxdiv (Makefile.am): Likewise.
60296         * modules/inet_ntop (Makefile.am): Likewise.
60297         * modules/inet_pton (Makefile.am): Likewise.
60298         * modules/inttostr (Makefile.am): Likewise.
60299         * modules/isapipe (Makefile.am): Likewise.
60300         * modules/lchown (Makefile.am): Likewise.
60301         * modules/long-options (Makefile.am): Likewise.
60302         * modules/lstat (Makefile.am): Likewise.
60303         * modules/malloc (Makefile.am): Likewise.
60304         * modules/mathl (Makefile.am): Likewise.
60305         * modules/mbchar (Makefile.am): Likewise.
60306         * modules/md2 (Makefile.am): Likewise.
60307         * modules/md4 (Makefile.am): Likewise.
60308         * modules/md5 (Makefile.am): Likewise.
60309         * modules/memcasecmp (Makefile.am): Likewise.
60310         * modules/memchr (Makefile.am): Likewise.
60311         * modules/memcmp (Makefile.am): Likewise.
60312         * modules/memcoll (Makefile.am): Likewise.
60313         * modules/memcpy (Makefile.am): Likewise.
60314         * modules/memmem (Makefile.am): Likewise.
60315         * modules/memmove (Makefile.am): Likewise.
60316         * modules/mempcpy (Makefile.am): Likewise.
60317         * modules/memrchr (Makefile.am): Likewise.
60318         * modules/memset (Makefile.am): Likewise.
60319         * modules/memxor (Makefile.am): Likewise.
60320         * modules/mkancesdirs (Makefile.am): Likewise.
60321         * modules/mkdir (Makefile.am): Likewise.
60322         * modules/mkdir-p (Makefile.am): Likewise.
60323         * modules/mkdtemp (Makefile.am): Likewise.
60324         * modules/mkstemp (Makefile.am): Likewise.
60325         * modules/mktime (Makefile.am): Likewise.
60326         * modules/modechange (Makefile.am): Likewise.
60327         * modules/mountlist (Makefile.am): Likewise.
60328         * modules/nanosleep (Makefile.am): Likewise.
60329         * modules/openat (Makefile.am): Likewise.
60330         * modules/pagealign_alloc (Makefile.am): Likewise.
60331         * modules/physmem (Makefile.am): Likewise.
60332         * modules/poll (Makefile.am): Likewise.
60333         * modules/posixtm (Makefile.am): Likewise.
60334         * modules/posixver (Makefile.am): Likewise.
60335         * modules/putenv (Makefile.am): Likewise.
60336         * modules/quote (Makefile.am): Likewise.
60337         * modules/quotearg (Makefile.am): Likewise.
60338         * modules/raise (Makefile.am): Likewise.
60339         * modules/read-file (Makefile.am): Likewise.
60340         * modules/readline (Makefile.am): Likewise.
60341         * modules/readlink (Makefile.am): Likewise.
60342         * modules/readtokens (Makefile.am): Likewise.
60343         * modules/readutmp (Makefile.am): Likewise.
60344         * modules/realloc (Makefile.am): Likewise.
60345         * modules/regex (Makefile.am): Likewise.
60346         * modules/rename (Makefile.am): Likewise.
60347         * modules/rename-dest-slash (Makefile.am): Likewise.
60348         * modules/rijndael (Makefile.am): Likewise.
60349         * modules/rmdir (Makefile.am): Likewise.
60350         * modules/rpmatch (Makefile.am): Likewise.
60351         * modules/safe-read (Makefile.am): Likewise.
60352         * modules/safe-write (Makefile.am): Likewise.
60353         * modules/same (Makefile.am): Likewise.
60354         * modules/save-cwd (Makefile.am): Likewise.
60355         * modules/savedir (Makefile.am): Likewise.
60356         * modules/setenv (Makefile.am): Likewise.
60357         * modules/settime (Makefile.am): Likewise.
60358         * modules/sha1 (Makefile.am): Likewise.
60359         * modules/sig2str (Makefile.am): Likewise.
60360         * modules/snprintf (Makefile.am): Likewise.
60361         * modules/stdlib-safer (Makefile.am): Likewise.
60362         * modules/stpcpy (Makefile.am): Likewise.
60363         * modules/stpncpy (Makefile.am): Likewise.
60364         * modules/strcase (Makefile.am): Likewise.
60365         * modules/strcasestr (Makefile.am): Likewise.
60366         * modules/strchrnul (Makefile.am): Likewise.
60367         * modules/strcspn (Makefile.am): Likewise.
60368         * modules/strdup (Makefile.am): Likewise.
60369         * modules/strerror (Makefile.am): Likewise.
60370         * modules/strftime (Makefile.am): Likewise.
60371         * modules/strndup (Makefile.am): Likewise.
60372         * modules/strnlen (Makefile.am): Likewise.
60373         * modules/strpbrk (Makefile.am): Likewise.
60374         * modules/strsep (Makefile.am): Likewise.
60375         * modules/strstr (Makefile.am): Likewise.
60376         * modules/strtod (Makefile.am): Likewise.
60377         * modules/strtoimax (Makefile.am): Likewise.
60378         * modules/strtok_r (Makefile.am): Likewise.
60379         * modules/strtol (Makefile.am): Likewise.
60380         * modules/strtoll (Makefile.am): Likewise.
60381         * modules/strtoul (Makefile.am): Likewise.
60382         * modules/strtoull (Makefile.am): Likewise.
60383         * modules/strtoumax (Makefile.am): Likewise.
60384         * modules/strverscmp (Makefile.am): Likewise.
60385         * modules/time_r (Makefile.am): Likewise.
60386         * modules/timegm (Makefile.am): Likewise.
60387         * modules/tmpfile-safer (Makefile.am): Likewise.
60388         * modules/unistd-safer (Makefile.am): Likewise.
60389         * modules/unlinkdir (Makefile.am): Likewise.
60390         * modules/userspec (Makefile.am): Likewise.
60391         * modules/utime (Makefile.am): Likewise.
60392         * modules/utimecmp (Makefile.am): Likewise.
60393         * modules/utimens (Makefile.am): Likewise.
60394         * modules/vasnprintf (Makefile.am): Likewise.
60395         * modules/vasprintf (Makefile.am): Likewise.
60396         * modules/vsnprintf (Makefile.am): Likewise.
60397         * modules/xalloc (Makefile.am): Likewise.
60398         * modules/xgetcwd (Makefile.am): Likewise.
60399         * modules/xnanosleep (Makefile.am): Likewise.
60400         * modules/xreadlink (Makefile.am): Likewise.
60401         * modules/xstrtod (Makefile.am): Likewise.
60402         * modules/xstrtol (Makefile.am): Likewise.
60403         * modules/xstrtold (Makefile.am): Likewise.
60404         * modules/yesno (Makefile.am): Likewise.
60405
60406 2006-10-12  Jim Meyering  <jim@meyering.net>
60407
60408         * m4/getloadavg.m4: Revert the change below.
60409
60410         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60411         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60412         fail with a symlink, which is what coreutils' ./bootstrap now
60413         creates by default.
60414
60415 2006-10-12  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60418         mingw.
60419         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60420         MSVC and mingw explicitly.
60421
60422 2006-10-11  Simon Josefsson  <jas@extundo.com>
60423             Bruno Haible  <bruno@clisp.org>
60424
60425         Add support for multiple gnulib-tool invocations in the scope of a
60426         single configure.ac file.
60427         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60428         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60429         with the same contents as the _LIBADD variable.
60430         (func_emit_initmacro_start, func_emit_initmacro_end,
60431         func_emit_initmacro_done): New functions.
60432         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60433         gl_LIBOBJS and gl_LTLIBOBJS.
60434
60435 2006-10-11  Bruno Haible  <bruno@clisp.org>
60436
60437         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60438         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60439         autoreconf. Instead, invoke autopoint explicitly but move back the
60440         *.m4 files from gnulib.
60441
60442 2006-10-11  Bruno Haible  <bruno@clisp.org>
60443
60444         * gnulib-tool (func_usage): Make module names after --create-testdir
60445         optional.
60446         (func_create_testdir): If no module was specified, use nearly all
60447         modules.
60448
60449 2006-10-12  Jim Meyering  <jim@meyering.net>
60450
60451         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60452         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60453         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60454         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60455         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60456         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60457         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60458         (fts_set_stat_required): New function.
60459         (fts_open): Defer the calls to fts_stat, if possible or requested.
60460         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60461         into fts_stat itself.
60462         (fts_read): Perform any required (deferred) fts_stat call.
60463         (fts_build): Likewise, for the directory we're about to open and read.
60464         In the readdir loop, carefully decide whether each entry will require
60465         an eventual call to fts_stat, using dirent.d_type info if available.
60466         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60467         a command line argument into this function.  Update all callers.
60468         Map a return value of FTS_DOT to FTS_D for a command line argument.
60469         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60470         Thanks to Miklos Szeredi for his tenacity and for the initial
60471         bug report about "find" failing on a FUSE-based file system.
60472
60473         * lib/fts.c (fts_open): Use consistent indentation.
60474
60475 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60476
60477         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60478         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60479         reported by Jim Meyering.  All uses of cache variables renamed
60480         to match Autoconf's.
60481         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60482         the other one.
60483
60484         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60485         Fix misspelling in diagnostic.
60486
60487 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60490         defined.  Problem reported by Matthew Woehlke.
60491
60492         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60493         Add support for Tandem NonStop R series.
60494         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60495         Use new macro.
60496
60497         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60498         (has_trailing_slash): Omit size arg; all callers changed.
60499         Omit 'inline', since it doesn't help performance and we'd
60500         need to configure it.
60501         Don't count //, ///, etc. as having a trailing slash.
60502         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60503         (rpl_rename_dest_slash): On failure, use rename's errno rather
60504         than (in some cases) an incorrect or junk errno.
60505         Simplify code by removing need to compute length; this does
60506         cause it to make two passes instead of one over the file name,
60507         but it's worth it.
60508
60509         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60510         change, since Autoconf's version may no longer be appropriate now
60511         that we are using CVS Autoconf's version.  Add support for Tandem.
60512
60513 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60514             Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60517         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60518         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60519         gl_AC_TYPE_LONG_LONG.
60520
60521         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60522         instead of HAVE_LONG_LONG.
60523         * lib/printf-args.c (printf_fetchargs): Likewise.
60524         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60525         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60526         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60527         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60528         gl_AC_TYPE_LONG_LONG.
60529
60530 2006-10-11  Bruno Haible  <bruno@clisp.org>
60531
60532         * m4/longlong.m4: Add comments.
60533         * m4/ulonglong.m4: Likewise.
60534
60535 2006-10-10  Bruno Haible  <bruno@clisp.org>
60536
60537         Make it possible to #define stpcpy, strdup to aliases.
60538         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60539         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60540
60541 2006-10-10  Bruno Haible  <bruno@clisp.org>
60542
60543         Make it possible to #define gcd to an alias.
60544         * lib/gcd.c: Include config.h.
60545
60546 2006-10-10  Bruno Haible  <bruno@clisp.org>
60547
60548         Make it possible to #define c_isascii to an alias.
60549         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60550         defined. Undefine the macros before defining them, to avoid gcc
60551         warnings.
60552         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60553         define NO_C_CTYPE_MACROS early.
60554
60555 2006-10-10  Bruno Haible  <bruno@clisp.org>
60556
60557         Make it possible to #define set_program_name to an alias.
60558         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60559         ENABLE_RELOCATABLE early.
60560
60561 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60562
60563         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60564         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60565         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60566         More generally, don't assume that 64-bit signed int is available
60567         if unsigned int is, and vice versa.
60568         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60569         unsigned symbols, not on their signed counterparts.
60570         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60571         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60572         (UINT64_C, UINTMAX_C):
60573         Likewise.
60574         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60575         unsigned counterparts.
60576         (Have_long_long, Unsigned): New macros.
60577         (Int): Renamed from INT.
60578         (strtoimax): Use the new macros.
60579         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60580         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60581         * modules/inttypes (inttypes.h): Substitute
60582         HAVE_UNSIGNED_LONG_LONG_INT.
60583         * modules/stdint (stdint.h): Likewise.
60584         (Files): Add m4/ulonglong.m4.
60585
60586 2006-10-10  Bruno Haible  <bruno@clisp.org>
60587
60588         Fix a gcc -Wshadow warning.
60589         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60590         to 'bucket'.
60591         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60592         gl_linked_indexof_from_to): Likewise.
60593         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60594         Likewise.
60595         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60596         Likewise.
60597         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60598         Reported by Eric Blake.
60599
60600 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60601
60602         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60603         for NetBSD.  Problem reported by Bruno Haible.
60604
60605 2006-10-09  Jim Meyering  <jim@meyering.net>
60606
60607         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60608         Patch from Bruno Haible.
60609
60610 2006-10-09  Jim Meyering  <jim@meyering.net>
60611
60612         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60613         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60614         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60615
60616 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         Don't include <config.h> twice; this doesn't work in some cases,
60619         e.g., when config.h has "#define intmax_t long long int" and
60620         we include <config.h>, <inttypes.h>, <config.h> in that order.
60621         Problem reported by Matthew Woehlke in:
60622         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60623         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60624         * lib/fts-cycle.c: Don't include config.h.
60625         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60626         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60627         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60628         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60629         inttypes.h.
60630         * lib/xstrtoumax.c: Likewise.
60631         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60632         __strtol and the like, so that this module is more like its siblings.
60633         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60634         Remove; no longer needed now that we assume gnulib inttypes.h.
60635
60636 2006-10-08  Bruno Haible  <bruno@clisp.org>
60637
60638         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60639         option.
60640
60641 2006-10-07  Jim Meyering  <jim@meyering.net>
60642
60643         * modules/inttypes (inttypes.h): Revert what seems to have been
60644         an inadvertent part of today's change: use "|", not "/" in the
60645         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60646
60647 2006-10-07  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/sublist: New file.
60650
60651 2006-10-07  Bruno Haible  <bruno@clisp.org>
60652
60653         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60654         * modules/argz (argz.h): Likewise.
60655         * modules/arpa_inet (arpa/inet.h): Likewise.
60656         * modules/byteswap (byteswap.h): Likewise.
60657         * modules/configmake (configmake.h): Likewise.
60658         * modules/fcntl (fcntl.h): Likewise.
60659         * modules/fnmatch (fnmatch.h): Likewise.
60660         * modules/getopt (getopt.h): Likewise.
60661         * modules/glob (glob.h): Likewise.
60662         * modules/inttypes (inttypes.h): Likewise.
60663         * modules/netinet_in (netinet/in.h): Likewise.
60664         * modules/poll (poll.h): Likewise.
60665         * modules/stdbool (stdbool.h): Likewise.
60666         * modules/stdint (stdint.h): Likewise.
60667         * modules/sys_select (sys/select.h): Likewise.
60668         * modules/sys_socket (sys/socket.h): Likewise.
60669         * modules/sys_stat (sys/stat.h): Likewise.
60670         * modules/sysexits (sysexits.h): Likewise.
60671         * modules/unistd (unistd.h): Likewise.
60672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60673         Add a "DO NOT EDIT" comment to the generated file.
60674         (func_import): Likewise for gnulib-comp.m4.
60675
60676 2006-10-07  Bruno Haible  <bruno@clisp.org>
60677
60678         * lib/gl_sublist.h: New file.
60679         * lib/gl_sublist.c: New file.
60680
60681 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60682
60683         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60684         name (relative to the original working directory) and the file
60685         name component (relative to the temporary working directory).  All
60686         callers changed.
60687         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60688         * lib/mkdir-p.c (make_dir_parents): Likewise.
60689         * lib/mkdir-p.h (make_dir_parents): Likewise.
60690
60691 2006-10-06  Eric Blake  <ebb9@byu.net>
60692
60693         Define several macros for use by the clean-temp module.
60694         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60695         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60696         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60697
60698         * lib/clean-temp.h (close_stream_temp): New declaration.
60699         * lib/clean-temp.c (includes): Pull in headers according to what
60700         other modules are in use.
60701         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60702
60703 2006-10-06  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60706         instead of fopen, fwriteerror.
60707
60708 2006-10-06  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60711         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60712         int.
60713         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60714         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60715         Return an error indicator.
60716         Suggested by Eric Blake.
60717
60718 2006-10-06  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60721         Reported by Eric Blake.
60722
60723 2006-10-06  Bruno Haible  <bruno@clisp.org>
60724
60725         * modules/closeout (Description): Mention stderr too.
60726
60727 2006-10-06  Bruno Haible  <bruno@clisp.org>
60728         and Paul Eggert  <eggert@cs.ucla.edu>
60729
60730         * lib/closeout.c (close_stdout): Also close stderr.
60731         * lib/closeout.h: Update comment.
60732
60733 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60736         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60737         * lib/dirchownmod.c: Include lchown.h.
60738         * lib/lchown.c: Don't include files that lchown.h now includes.
60739         Don't declare chown, since lchown.h now does that.
60740         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60741         (lchown): Define to rpl_chown if lchown is declared but
60742         does not exist.  Declare using a prototype if lchown is not
60743         declared.  Add a copyright notice.
60744         * lib/mkstemp.h: Include <unistd.h>.
60745         * lib/openat.c: Include lchown.h.
60746
60747         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60748         we now test for that separately.
60749         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60750         rather than O_NOFOLLOW, when testing whether it's possible to
60751         avoid a race condition reliably.
60752         * lib/savewd.c (savewd_chdir): Likewise.
60753
60754         Remove macros that are no longer needed now that stdint.h is
60755         reliable.
60756         * lib/fsusage.c (UINTMAX_MAX): Remove.
60757         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60758         * lib/utimecmp.c (SIZE_MAX): Remove.
60759
60760         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60761
60762         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60763         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60764         O_NOATIME works.
60765
60766 2006-10-05  Bruno Haible  <bruno@clisp.org>
60767
60768         * lib/gl_list.h (gl_sortedlist_search_from_to,
60769         gl_sortedlist_indexof_from_to): New declarations.
60770         (gl_list_implementation): New fields sortedlist_search_from_to,
60771         sortedlist_indexof_from_to.
60772         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60773         inline functions.
60774         * lib/gl_list.c (gl_sortedlist_search_from_to,
60775         gl_sortedlist_indexof_from_to): New functions.
60776         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60777         function.
60778         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60779         (gl_array_sortedlist_search_from_to): New function.
60780         (gl_array_list_implementation): Update.
60781         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60782         function.
60783         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60784         (gl_carray_sortedlist_search_from_to): New function.
60785         (gl_carray_list_implementation): Update.
60786         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60787         gl_linked_sortedlist_indexof_from_to): New functions.
60788         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60789         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60790         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60791         gl_tree_sortedlist_indexof_from_to): New functions.
60792         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60793         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60794         Update.
60795         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60796         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60797         Update.
60798
60799 2006-10-05  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60802         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60803         (struct gl_list_implementation): Add fields search_from_to,
60804         indexof_from_to. Remove fields search, indexof.
60805         (gl_list_search): Use the search_from_to method.
60806         (gl_list_search_from, gl_list_search_from_to): New functions.
60807         (gl_list_indexof): Use the indexof_from_to method.
60808         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60809         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60810         (gl_list_search_from, gl_list_search_from_to): New functions.
60811         (gl_list_indexof): Use the indexof_from_to method.
60812         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60813         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60814         gl_array_indexof. Add start_index, end_index arguments.
60815         (gl_array_search_from_to): Renamed from gl_array_search. Add
60816         start_index, end_index arguments.
60817         (gl_array_remove, gl_array_list_implementation): Update.
60818         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60819         gl_carray_indexof. Add start_index, end_index arguments.
60820         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60821         start_index, end_index arguments.
60822         (gl_carray_remove, gl_carray_list_implementation): Update.
60823         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60824         gl_linked_search. Add start_index, end_index arguments.
60825         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60826         start_index, end_index arguments.
60827         (gl_linked_remove): Update.
60828         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60829         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60830         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60831         field to 'size_t'.
60832         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60833         gl_tree_search. Add start_index, end_index arguments.
60834         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60835         start_index, end_index arguments.
60836         (gl_tree_remove): Update.
60837         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60838         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60839         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60840         function.
60841         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60842         gl_tree_search. Add start_index, end_index arguments.
60843         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60844         start_index, end_index arguments.
60845         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60846         Update.
60847         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60848
60849 2006-10-05  Bruno Haible  <bruno@clisp.org>
60850
60851         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60852
60853         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60854         fwriteerror_temp): New declarations.
60855         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60856         (descriptors): New variable.
60857         (cleanup): First, close the descriptors.
60858         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60859         fclose_temp, fwriteerror_temp): New functions.
60860
60861 2006-10-04  Jim Meyering  <jim@meyering.net>
60862
60863         * lib/fts.c (fts_open): Tiny comment change.
60864
60865 2006-10-04  Bruno Haible  <bruno@clisp.org>
60866
60867         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60868         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60869         gl_LOCK_BODY.
60870         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60871         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60872         gl_LOCK_EARLY_BODY.
60873         (gl_LOCK): Require gl_LOCK_BODY.
60874
60875 2006-10-04  Bruno Haible  <bruno@clisp.org>
60876
60877         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60878         (gl_oset_search_atleast): New declaration.
60879         (struct gl_oset_implementation): Add field 'search_atleast'.
60880         (gl_oset_search_atleast): New inline function.
60881         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60882         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60883         (gl_array_oset_implementation): Update.
60884         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60885         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60886         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60887
60888 2006-10-04  Bruno Haible  <bruno@clisp.org>
60889
60890         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60891
60892 2006-10-03  Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60895         from gl_avltreehash_list_implementation.
60896
60897 2006-10-03  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/gl_oset.c (gl_oset_add): Fix return type.
60900
60901 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60902
60903         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60904
60905 2006-10-02  Eric Blake  <ebb9@byu.net>
60906
60907         * modules/strnlen (Depends-on): Add extensions.
60908
60909 2006-10-02  Eric Blake  <ebb9@byu.net>
60910
60911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60912         definition in 2.60+.
60913
60914 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60915
60916         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60917         checks.
60918
60919 2006-10-02  Bruno Haible  <bruno@clisp.org>
60920
60921         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60922         to the AUTOMAKE_OPTIONS.
60923         Reported by Jim Meyering.
60924
60925 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         Work around bug in Solaris 10 /proc file system:
60928         /proc/self/fd/NNN/.. isn't the parent directory of
60929         the directory whose file descriptor is NNN.  This needs to
60930         be worked around at run time, not compile time, since a
60931         program might be built on Solaris 8, where things work, and
60932         run on Solaris 10.
60933         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60934         to use the following interface instead:
60935         (OPENAT_BUFFER_SIZE): New macro.
60936         (openat_proc_name): New function.
60937         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60938         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60939         Likewise.
60940         * lib/openat-proc.c: New file.
60941         * modules/openat (Files): Add lib/openat-proc.c.
60942         (Depends-on): Add same-inode, stdbool.
60943         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60944
60945 2006-09-29  Bruno Haible  <bruno@clisp.org>
60946
60947         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60948         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60949         argument. Set stdout_closed before testing for ferror, not after.
60950         (fwriteerror, fwriteerror_no_ebadf): New functions.
60951
60952 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60953
60954         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60955
60956 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60957
60958         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60959         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60960
60961 2006-09-28  Jim Meyering  <jim@meyering.net>
60962
60963         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60964         Include <unistd.h>.
60965
60966 2006-09-28  Bruno Haible  <bruno@clisp.org>
60967
60968         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60969         * modules/linkedhash-list (Depends-on): Likewise.
60970         * modules/rbtreehash-list (Depends-on): Likewise.
60971
60972 2006-09-28  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/strndup.h: Simplify the redefinition of strndup.
60975         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60976         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60977
60978 2006-09-28  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60981         * lib/gl_linkedhash_list.c: Likewise.
60982         * lib/gl_rbtreehash_list.c: Likewise.
60983
60984 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60987         getaddrinfo.
60988
60989         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60990         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60991         it causes <stdio_ext.h> to cause a compile-time error.
60992         Problem reported by Nelson H. F. Beebe.
60993         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60994         of HAVE_DECL___PENDING.
60995
60996         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60997         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60998         declaration.
60999
61000 2006-09-27  Jim Meyering  <jim@meyering.net>
61001
61002         This file could end up with a definition for a function
61003         named __strndup, rather than rpl_strndup on a system with
61004         incomplete weak_alias support.
61005         * lib/strndup.c (strndup): Rename from __strndup.
61006         Remove #defines that used to map __strndup to strndup.
61007         Don't use K&R prototypes.
61008         Remove LIBC-related code, since this file is not sync'd with glibc.
61009         * lib/strndup.h: Revamp, accordingly.
61010         * m4/strndup.m4: Modernize.
61011
61012 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61013
61014         * modules/savewd (Depends-on): Add 'raise'.
61015         * lib/savewd.c: Include <signal.h>, for 'raise'.
61016
61017 2006-09-26  Jim Meyering  <jim@meyering.net>
61018
61019         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61020         when we detect Darwin 8.7.0's acl_get_file bug.
61021         Rearrange to perform the new (below) run-test while $LIBS
61022         contains any acl-related library.  Set USE_ACL at the end.
61023         (gl_ACL_GET_FILE): New function.
61024
61025 2006-09-26  Eric Blake  <ebb9@byu.net>
61026
61027         * lib/verror.c: Include <config.h> unconditionally.
61028
61029 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         * modules/clock-time (Maintainer): Add self.
61032         * modules/getlogin_r (Depends-on): Add extensions.
61033
61034 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61035
61036         * modules/clock-time: New module.
61037         * modules/nanosleep (Depends-on): Add clock-time.
61038         * modules/gethrxtime (Depends-on): Likewise.
61039         * modules/gettime (Depends-on): Likewise.
61040         * modules/settime (Depends-on): Likewise.
61041
61042         * modules/fts-lgpl: Depend on openat.
61043         * modules/mkancesdirs: Depend on savewd.
61044         * modules/mkdir-p: Likewise.
61045
61046 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61047
61048         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61049
61050         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61051         `gl_have_arbitrary_file_name_length_limit' to
61052         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61053         actually works between configure runs.
61054
61055 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61056             Bruno Haible  <bruno@clisp.org>
61057
61058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61059
61060 2006-09-25  Jim Meyering  <jim@meyering.net>
61061
61062         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61063         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61064
61065 2006-09-25  Eric Blake  <ebb9@byu.net>
61066
61067         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61068         exec's in 2006-09-18 patch when shuffling fds.
61069
61070 2006-09-25  Bruno Haible  <bruno@clisp.org>
61071
61072         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61073         Reported by Jim Meyering.
61074
61075 2006-09-24  Jim Meyering  <jim@meyering.net>
61076
61077         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61078         compare a pointer against a literal "0".  That caused failures with
61079         at least HP-UX's hpcc.
61080
61081 2006-09-22  Simon Josefsson  <jas@extundo.com>
61082
61083         * modules/gc-sha1:
61084         * modules/gc-md4:
61085         * modules/gc-hmac-sha1:
61086         * modules/gc-hmac-md5:
61087         * modules/gc-des:
61088         * modules/gc-arcfour: Distribute more files.
61089
61090 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61091
61092         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61093         (gl_linked_iterator_from_to): Initialize struct completely.
61094         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61095         (gl_tree_iterator_from_to): Likewise
61096         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61097         * lib/gl_array_list.c [lint] (gl_array_iterator)
61098         (gl_array_iterator_from_to): Likewise.
61099         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61100         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61101         (gl_carray_iterator_from_to): Likewise.
61102
61103         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61104         * lib/md4.c (md4_process_block): Remove unused variable.
61105         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61106         parentheses for clarity.
61107
61108 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61109
61110         * modules/bison-i18n (Depends-on): Add gettext.
61111
61112 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61113
61114         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61115         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61116         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61117         also add missing comma that caused broken test.
61118         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61119         stdlib.h, for `abort'.
61120         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61121         variables.
61122         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61123         include unistd.h if present, for `rmdir'.
61124         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61125         variables.
61126         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61127         in the process include standard headers for prototypes.
61128         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61129         gets declared on GNU/Linux.
61130         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61131         unistd.h, for `rmdir'.
61132         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61133
61134         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61135         always true.
61136         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61137
61138         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61139
61140 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61141
61142         * gnulib-tool (func_version): Create output all at once.  This
61143         may help avoid triggering unnecessary SIGPIPEs, and at any
61144         rate it doesn't hurt.
61145
61146 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61147             Bruno Haible  <bruno@clisp.org>
61148
61149         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61150         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61151         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61152
61153         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61154         (gl_FUNC_VASPRINTF): Invoke it.
61155
61156 2006-09-22  Bruno Haible  <bruno@clisp.org>
61157
61158         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61159         getloadavg.c as first argument.
61160
61161 2006-09-22  Bruno Haible  <bruno@clisp.org>
61162
61163         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61164         at the beginning of the gl_INIT macro.
61165         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61166         gl_GETLOADAVG.
61167
61168 2006-09-22  Bruno Haible  <bruno@clisp.org>
61169
61170         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61171         module.
61172         Suggested by Ralf Wildenhues.
61173
61174 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61175
61176         Import this patch from libc:
61177
61178         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61179
61180         * lib/regex_internal.c (re_string_reconstruct): Handle
61181         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61182         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61183         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61184         re_string_context_at.
61185
61186         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61187         now requires it.
61188         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61189         gl_REGEX now does it for us.
61190         (gl_REGEX): Add test taken from
61191         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61192
61193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61194         Check that large offsets work.  Modernize Autoconf usages.
61195         Prefer "yes" to mean a good thing rather than a bad.
61196         Don't put "#define mkstemp" in config.h, as this might interfere
61197         with standard system headers that "#define mkstemp mkstemp64".
61198
61199         * modules/mkstemp (Depends-on): Add extensions, so that
61200         mkstemp is visible on some platforms.
61201         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61202         (Include): Change to "mkstemp.h" from <stdlib.h>.
61203         (Files): Add mkstemp.h.
61204
61205         * lib/mkstemp.h: New file, since some standard headers
61206         #define mkstemp.
61207         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61208         Include "mkstemp.h".
61209         Make the _LIBC code resemble glibc original more,
61210         e.g., use K&R style.
61211         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61212         (mkstemp): Remove, since mkstemp.h does this for us.
61213         * lib/stdlib--.h: Include mkstemp.h.
61214
61215         Import this patch from libc:
61216
61217         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61218
61219         * lib/tempname.c (__gen_tempname): Change attempts_min
61220         into a macro.  Use preprocessor to decide how to initialize
61221         attempts [Coverity CID 67].
61222
61223 2006-09-20  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/mkdtemp.c: Import from libc.
61226         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61227                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61228                 attempts_min into a macro.  Use preprocessor to decide how to
61229                 initialize attempts [Coverity CID 67].
61230         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61231                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61232                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61233
61234 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61235
61236         * gnulib-tool (func_exit): New function, to allow to pass the
61237         exit status portably through the trap.  Use everywhere.
61238         (--help, --version): Signal a write error.
61239         (trap): catch SIGPIPE, for write errors.
61240         Exit at the end of the trap, with the correct exit status.
61241
61242 2006-09-19  Karl Berry  <karl@gnu.org>
61243
61244         * doc/gnulib.texi: note about the license texinfo files.
61245
61246 2006-09-19  Eric Blake  <ebb9@byu.net>
61247
61248         * gnulib-tool: Avoid space-tab.
61249
61250 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61253         that prevented coreutils 6.1 from building.  Problem reported
61254         by Petter Reinholdtsen.
61255
61256 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61257
61258         * gnulib-tool (avoidlist): Fix typo that broke options like
61259         --avoid=lock that are used by coreutils bootstrap.
61260
61261 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61262
61263         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61264         more systematically.
61265
61266 2006-09-18  Jim Meyering  <jim@meyering.net>
61267
61268         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61269
61270 2006-09-18  Bruno Haible  <bruno@clisp.org>
61271
61272         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61273
61274 2006-09-18  Bruno Haible  <bruno@clisp.org>
61275
61276         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61277         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61278         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61279         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61280         * m4/gettext.m4: Require autoconf >= 2.52.
61281         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61282         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61283         of gl_cv_header_inttypes_h.
61284
61285 2006-09-18  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/javaversion.c: Include configmake.h.
61288
61289 2006-09-18  Bruno Haible  <bruno@clisp.org>
61290
61291         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61292         avoid that the while loops be executed in a subshell.
61293
61294 2006-09-18  Bruno Haible  <bruno@clisp.org>
61295
61296         * MODULES.html.sh (func_module): Break long lines.
61297         Suggested by Bruce Korb <bkorb@gnu.org>.
61298
61299 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61300
61301         Speed up by a factor of 1.12.
61302         * gnulib-tool (nl): New variable.
61303         (func_import): Rewrite include directive extraction to only read each
61304         directive once.
61305
61306 2006-09-17  Bruno Haible  <bruno@clisp.org>
61307
61308         * modules/javaversion (Makefile.am): Remove DEFS setting.
61309         (Depends-on): Add configmake, for PKGDATADIR definition.
61310
61311 2006-09-17  Bruno Haible  <bruno@clisp.org>
61312
61313         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61314
61315 2006-09-17  Bruno Haible  <bruno@clisp.org>
61316
61317         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61318         (func_modules_transitive_closure, func_modules_add_dummy,
61319         func_modules_to_filelist, func_import, func_create_testdir,
61320         func_create_megatestdir, ...): Use it wherever possible.
61321         Suggested by Ralf Wildenhues.
61322
61323 2006-09-16  Karl Berry  <karl@gnu.org>
61324
61325         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61326         to avoid sectioning errors.
61327         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61328         [ifinfo]: blank line after @center-ed titles.
61329         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61330         Spell FSF address consistently with others.
61331         (These changes approved by rms.)
61332
61333 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61334
61335         Speed up by a factor of 1.61.
61336         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61337         already checked module names again.
61338
61339 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61340
61341         Speed up by a factor of 1.13.
61342         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61343         for new_files, and the input to func_add_or_update.
61344
61345 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61346
61347         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61348         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61349
61350 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61351
61352         * modules/mkancesdirs (Depends-on): Add fcntl.
61353         * modules/savewd: New file.
61354         * MODULES.html.sh (File system functions): Add savewd.
61355
61356         * modules/configmake (Makefile.am): Add support for the
61357         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61358
61359 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61360
61361         * m4/savewd.m4: New file.
61362
61363 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61364
61365         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61366         (dirchownmod): New arg FD.  All callers changed.
61367         Use FD rather than opening the directory ourself, as opening is
61368         now the caller's responsibility.
61369         * lib/dirchownmod.h: Likewise.
61370         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61371         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61372         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61373         (test_dir): Remove.
61374         (mkancesdirs): Return length of prefix of FILE that has already
61375         been made, or -2 if there is a child doing the work.  Redo
61376         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61377         ".", and treat ".." specially since it might stray back into
61378         already-created areas.  Use a subprocess if necessary.  New arg
61379         WD; all users changed.  MAKE_DIR function should now return 1
61380         if it creates a directory that is not readable.  Return -2 if
61381         a child process is spun off.
61382         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61383         Adjust signature to match code.
61384         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61385         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61386         all users changed.
61387         * lib/savewd.c, lib/savewd.h: New files.
61388
61389 2006-09-15  Jim Meyering  <jim@meyering.net>
61390
61391         * modules/rename-dest-slash: New module.
61392         * MODULES.html.sh (posix_compat): Add it here.
61393
61394         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61395
61396 2006-09-15  Jim Meyering  <jim@meyering.net>
61397
61398         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61399         file.
61400
61401         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61402
61403 2006-09-15  Jim Meyering  <jim@meyering.net>
61404
61405         * lib/rename-dest-slash.c (has_trailing_slash): Use
61406         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61407         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61408         test before testing whether SRC is a directory.
61409         Suggestions from Bruno Haible.
61410
61411         Avoid a warning about an unused variable.
61412         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61413         into the #ifdef block where it's used.
61414
61415         * lib/rename-dest-slash.c: New file.
61416
61417 2006-09-14  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/allocsa.c: Include <config.h> unconditionally.
61420         * lib/asnprintf.c: Likewise.
61421         * lib/asprintf.c: Likewise.
61422         * lib/c-strcasecmp.c: Likewise.
61423         * lib/c-strcasestr.c: Likewise.
61424         * lib/c-strncasecmp.c: Likewise.
61425         * lib/c-strstr.c: Likewise.
61426         * lib/classpath.c: Likewise.
61427         * lib/clean-temp.c: Likewise.
61428         * lib/concatpath.c: Likewise.
61429         * lib/copy-file.c: Likewise.
61430         * lib/csharpcomp.c: Likewise.
61431         * lib/csharpexec.c: Likewise.
61432         * lib/execute.c: Likewise.
61433         * lib/fatal-signal.c: Likewise.
61434         * lib/findprog.c: Likewise.
61435         * lib/fwriteerror.c: Likewise.
61436         * lib/gl_array_list.c: Likewise.
61437         * lib/gl_array_oset.c: Likewise.
61438         * lib/gl_avltree_list.c: Likewise.
61439         * lib/gl_avltree_oset.c: Likewise.
61440         * lib/gl_avltreehash_list.c: Likewise.
61441         * lib/gl_carray_list.c: Likewise.
61442         * lib/gl_linked_list.c: Likewise.
61443         * lib/gl_linkedhash_list.c: Likewise.
61444         * lib/gl_list.c: Likewise.
61445         * lib/gl_oset.c: Likewise.
61446         * lib/gl_rbtree_list.c: Likewise.
61447         * lib/gl_rbtree_oset.c: Likewise.
61448         * lib/gl_rbtreehash_list.c: Likewise.
61449         * lib/imaxabs.c: Likewise.
61450         * lib/imaxdiv.c: Likewise.
61451         * lib/javacomp.c: Likewise.
61452         * lib/javaexec.c: Likewise.
61453         * lib/javaversion.c: Likewise.
61454         * lib/linebreak.c: Likewise.
61455         * lib/localcharset.c: Likewise.
61456         * lib/lock.c: Likewise.
61457         * lib/mbchar.c: Likewise.
61458         * lib/mbswidth.c: Likewise.
61459         * lib/mkdtemp.c: Likewise.
61460         * lib/pipe.c: Likewise.
61461         * lib/printf-args.c: Likewise.
61462         * lib/printf-parse.c: Likewise.
61463         * lib/progname.c: Likewise.
61464         * lib/progreloc.c: Likewise.
61465         * lib/readlink.c: Likewise.
61466         * lib/sh-quote.c: Likewise.
61467         * lib/stpcpy.c: Likewise.
61468         * lib/stpncpy.c: Likewise.
61469         * lib/strcasecmp.c: Likewise.
61470         * lib/strcasestr.c: Likewise.
61471         * lib/strcspn.c: Likewise.
61472         * lib/striconv.c: Likewise.
61473         * lib/strncasecmp.c: Likewise.
61474         * lib/strnlen1.c: Likewise.
61475         * lib/strstr.c: Likewise.
61476         * lib/strtok_r.c: Likewise.
61477         * lib/tls.c: Likewise.
61478         * lib/tmpdir.c: Likewise.
61479         * lib/unicodeio.c: Likewise.
61480         * lib/unsetenv.c: Likewise.
61481         * lib/vasnprintf.c: Likewise.
61482         * lib/vasprintf.c: Likewise.
61483         * lib/wait-process.c: Likewise.
61484         * lib/xallocsa.c: Likewise.
61485         * lib/xsetenv.c: Likewise.
61486         * lib/xstriconv.c: Likewise.
61487
61488 2006-09-13  Simon Josefsson  <jas@extundo.com>
61489
61490         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61491         that internally, suggested by Ralf Wildenhues
61492         <Ralf.Wildenhues@gmx.de>.
61493
61494 2006-09-13  Simon Josefsson  <jas@extundo.com>
61495
61496         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61497         @LIBOBJS@.
61498         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61499
61500 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61501
61502         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61503         longer worry about uses that don't define HAVE_CONFIG_H.
61504         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61505         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61506         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61507         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61508         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61509         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61510         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61511         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61512         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61513         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61514         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61515         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61516         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61517         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61518         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61519         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61520         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61521         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61522         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61523         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61524         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61525         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61526         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61527         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61528         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61529         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61530         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61531         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61532         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61533         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61534         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61535         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61536         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61537         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61538         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61539         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61540         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61541         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61542         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61543         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61544         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61545         Likewise.
61546
61547 2006-09-13  Eric Blake  <ebb9@byu.net>
61548
61549         * lib/getopt.c: Fix typo in last commit.
61550
61551 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61552
61553         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61554         dgettext.
61555
61556 2006-09-12  Jim Meyering  <jim@meyering.net>
61557
61558         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61559         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61560         Reported by Nelson H. F. Beebe.
61561
61562 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61563
61564         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61565         program_invocation_name and program_invocation_short_name are
61566         initialized.
61567         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61568         and program_invocation_short_name to argp.h, so they are visible
61569         to user programs.
61570         * lib/argp.h: Likewise
61571
61572 2006-09-10  Bruno Haible  <bruno@clisp.org>
61573
61574         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61575         m4/inttypes_h.m4, m4/uintmax_t.m4.
61576
61577 2006-09-10  Bruno Haible  <bruno@clisp.org>
61578
61579         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61580         gl_AC_TYPE_UINTMAX_T.
61581
61582 2006-09-10  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61585
61586 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61587
61588         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61589         convention.  Text proposed by Bruno Haible.
61590         (struct argp_option): Document the use of N_() wrappers.
61591
61592         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61593         '\v', and translate the two parts separately, instead of feeding
61594         the whole string to gettext.  This allows to exclude
61595         '\v' from the strings visible to the translator by writing doc
61596         strings as N_("..") "\v" N_("..").
61597
61598 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         * config/srclist.txt: Undo latest change; the bug was fixed.
61601
61602 2006-09-09  Bruno Haible  <bruno@clisp.org>
61603
61604         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61605         assignments if building a library without libtool.
61606         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61607         in func_emit_lib_Makefile_am.
61608         (func_import): When building a static library libfoo.a, arrange to
61609         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61610         (func_create_testdir): Likewise.
61611         * modules/gc (configure.ac, Makefile.am): If building statically,
61612         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61613         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61614         * modules/striconv (configure.ac, Makefile.am): Likewise.
61615         Based on a suggestion by Ralf Wildenhues.
61616
61617 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61618
61619         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61620         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61621         Also:
61622
61623         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61624         Add year_2050_test to catch glibc bug 2821
61625         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61626
61627         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61628         Prefer #ifdef to #if.
61629
61630         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61631         Return from 'main' instead of calling 'exit'.
61632
61633 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61636         returned the maximum time_t value rather than (time_t) -1.
61637         Problem originally reported by William Bardwell
61638         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61639
61640         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61641         Moved to here ...
61642         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61643         ... from here.
61644
61645 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61646
61647         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61648         2821 is fixed.
61649
61650 2006-09-08  Jim Meyering  <jim@meyering.net>
61651
61652         Don't make generated files read-only.  That would bother too many
61653         people.  However, do retain the ability to work when targets are
61654         read-only: remove the destination and temporary files before writing
61655         them (when generated via sed or echo), or by using the -f option for
61656         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61657         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61658         * modules/byteswap, modules/configmake, modules/fcntl:
61659         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61660         * modules/localcharset, modules/netinet_in, modules/poll:
61661         * modules/stdbool, modules/stdint, modules/sys_select:
61662         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61663
61664 2006-09-08  Jim Meyering  <jim@meyering.net>
61665
61666         Avoid new build failure on FreeBSD 6.0.
61667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61668         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61669         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61670
61671 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61672
61673         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61674
61675 2006-09-07  Jim Meyering  <jim@meyering.net>
61676
61677         Fix global typo in last change: use chmod u-w, not chmod u-x.
61678         Spotted by Paul Eggert and Bruce Korb.
61679         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61680         * modules/byteswap, modules/configmake, modules/fcntl:
61681         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61682         * modules/localcharset, modules/netinet_in, modules/poll:
61683         * modules/stdbool, modules/stdint, modules/sys_select:
61684         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61685
61686 2006-09-06  Jim Meyering  <jim@meyering.net>
61687
61688         Make generated files be read-only.
61689         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61690         Ensure that each generated file is now read-only.
61691         * modules/argz: Likewise.
61692         * modules/arpa_inet: Likewise.
61693         * modules/byteswap: Likewise.
61694         * modules/configmake: Likewise.
61695         * modules/fcntl: Likewise.
61696         * modules/fnmatch: Likewise.
61697         * modules/getopt: Likewise.
61698         * modules/glob: Likewise.
61699         * modules/inttypes: Likewise.
61700         * modules/netinet_in: Likewise.
61701         * modules/poll: Likewise.
61702         * modules/stdbool: Likewise.
61703         * modules/stdint: Likewise.
61704         * modules/sys_select: Likewise.
61705         * modules/sys_socket: Likewise.
61706         * modules/sys_stat: Likewise.
61707         * modules/sysexits: Likewise.
61708         * modules/localcharset: Same as above, but continue using temporary
61709         file named "t-$@" (why different?) rather than the "$@-t" used
61710         everywhere else.
61711
61712         * modules/sysexits (Makefile.am): Replace literal occurrences
61713         of "sysexit.h" more readable, and more consistent, "$@".
61714
61715 2006-09-06  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/striconv: New file.
61718         * modules/xstriconv: New file.
61719         * MODULES.html.sh (Internationalization functions): Add striconv,
61720         xstriconv.
61721
61722 2006-09-06  Bruno Haible  <bruno@clisp.org>
61723
61724         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61725         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61726         not using libtool correctly.
61727
61728 2006-09-06  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/striconv.h: New file.
61731         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61732         iconvstring.c.
61733         * lib/xstriconv.h: New file.
61734         * lib/xstriconv.c: New file.
61735
61736 2006-09-06  Bruno Haible  <bruno@clisp.org>
61737
61738         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61739         lib_..._LDFLAGS.
61740
61741 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61742
61743         * lib/argz_.h: Sync from Libtool.
61744
61745         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61746                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61747
61748         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61749
61750 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61751
61752         * modules/trim: New file.
61753
61754 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61755
61756         * lib/trim.h: New file.
61757         * lib/trim.c: New file.
61758
61759 2006-09-05  Bruno Haible  <bruno@clisp.org>
61760
61761         * MODULES.html.sh (String handling): Add trim.
61762
61763 2006-09-04  Karl Berry  <karl@gnu.org>
61764
61765         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61766         until next release.
61767
61768 2006-09-03  Bruno Haible  <bruno@clisp.org>
61769
61770         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61771         correctly.
61772
61773 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61774
61775         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61776         not gl_GETLOADAVG.  Omit unneeded semicolons.
61777         Problems reported by Ralf Wildenhues in
61778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61779         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61780         at the end, which is the usual gnulib style.
61781
61782         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61783         of doing all the work ourselves.
61784         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61785         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61786
61787 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61790         Problem reported by Ralf Wildenhues in
61791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61792
61793         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61794         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61795
61796 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61799         yesterday's patch by changing test -n to test -z.
61800
61801 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61804         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61805         the former is now obsolescent.
61806
61807         * modules/chdir-long (Depends-on): Add fcntl.
61808
61809 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61810
61811         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61812         obsolescent, and programs should use gnulib instead.
61813         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61814         but with prefixes changed.
61815
61816 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61817
61818         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61819         or stdbool.h, because they might not exist while configuring.
61820
61821         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61822         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61823         does that for us.
61824         (O_DIRECTORY): Remove.
61825
61826 2006-08-31  Eric Blake  <ebb9@byu.net>
61827
61828         * gnulib-tool: Don't let emacs change spaces to TAB.
61829
61830 2006-08-31  Bruno Haible  <bruno@clisp.org>
61831
61832         * gnulib-tool: When calling func_import more than once, do it in a
61833         subshell.
61834         Reported by Eric Blake <ebb9@byu.net>.
61835
61836 2006-08-31  Bruno Haible  <bruno@clisp.org>
61837
61838         * gnulib-tool (nl): Remove variable.
61839         (sed_transform_lib_file): Use more robust test for config-h module.
61840         (func_import): Fix typo in 2006-08-25 patch.
61841
61842 2006-08-31  Bruno Haible  <bruno@clisp.org>
61843
61844         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61845         specified, augment Makefile.am variables instead of assigning them.
61846
61847 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         Work around a bug in both the Linux and SunOS 64-bit kernels:
61850         nanosleep mishandles sleeps for longer than 2**31 seconds.
61851         Problem reported by Frank v Waveren in
61852         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61854         Check for nanosleep bug.
61855         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61856
61857 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61858
61859         Work around a bug in both the Linux and SunOS 64-bit kernels:
61860         nanosleep mishandles sleeps for longer than 2**31 seconds.
61861         Problem reported by Frank v Waveren in
61862         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61863         * lib/nanosleep.c (BILLION): New constant.
61864         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61865         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61866         implementation.
61867
61868 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61869
61870         * modules/nanosleep (Depends-on): Add gettime.
61871
61872 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61873         and Simon Josefsson  <jas@extundo.com>
61874         and Oskar Liljeblad  <oskar@osk.mine.nu>
61875
61876         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61877         * gnulib-tool (func_import): New license type 'unmodifiable license
61878         text'.
61879         * modules/fdl: Use it.  Longer description.
61880         * module/gpl, module/lgpl: New files.
61881
61882 2006-08-30  Jim Meyering  <jim@meyering.net>
61883
61884         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61885         shadowing the parameter.
61886
61887 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61888
61889         Sync from Libtool:
61890
61891         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61892
61893         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61894         sharing with gnulib.  Report by Eric Blake.
61895
61896 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61897
61898         * modules/isapipe: New file.
61899         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61900
61901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * modules/configmake (Makefile.am): Add a comment, and omit
61904         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61905         by Bruno Haible.
61906
61907 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61908
61909         * m4/isapipe.m4: New file.
61910
61911 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         * lib/isapipe.c, lib/isapipe.h: New files.
61914
61915 2006-08-29  Jim Meyering  <jim@meyering.net>
61916
61917         * modules/configmake (Makefile.am): Make configmake.h depend on
61918         Makefile.  Otherwise, a stale configmake.h could hang around.
61919
61920 2006-08-29  Eric Blake  <ebb9@byu.net>
61921
61922         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61923         resolution of upstream bug 3044.
61924
61925 2006-08-29  Bruno Haible  <bruno@clisp.org>
61926
61927         * modules/localcharset (Depends-on): Add configmake.
61928         (Makefile.am): Remove setting of LIBDIR through DEFS.
61929
61930 2006-08-29  Bruno Haible  <bruno@clisp.org>
61931
61932         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61933         defined.
61934
61935 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         * modules/fcntl: New file.
61938         * modules/chdir-safer (Depends-on): Add fcntl.
61939         * modules/fts: Likewise.
61940         * modules/mkdir-p: Likewise.
61941
61942         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61943         This undoes the most recent change, since we're now addressing the
61944         problem in a different way.
61945
61946         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61947         into output, since the output might be called Makefile.am even
61948         if $makefile_name is something different.
61949         (func_import): Use $makefile_am rather than
61950         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61951         empty.
61952
61953         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61954
61955 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61958         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61959         recent change to stdint.m4, since we're now addressing the problem in a
61960         different way.
61961
61962 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         * m4/fcntl_h.m4: New file.
61965
61966 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * lib/fcntl_.h: New file.
61969         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61970         the fcntl module.
61971         * lib/dirchownmod.c: Likewise.
61972         * lib/fts.c: Likewise.
61973
61974         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61975         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61976         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61977         just before including <inttypes.h>, to avoid circular inclusion.
61978
61979 2006-08-28  Jim Meyering  <jim@meyering.net>
61980
61981         * doc/visibility.texi: Actually read and correct the grammar of the
61982         sentence affected by yesterday's change.
61983
61984 2006-08-28  Eric Blake  <ebb9@byu.net>
61985
61986         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61987         needs wrapper.
61988
61989 2006-08-28  Eric Blake  <ebb9@byu.net>
61990
61991         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61992
61993 2006-08-28  Eric Blake  <ebb9@byu.net>
61994
61995         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61996
61997 2006-08-28  Bruno Haible  <bruno@clisp.org>
61998
61999         * modules/c-strstr: New file, from GNU gettext.
62000         * MODULES.html.sh (String handling): Add c-strstr.
62001
62002 2006-08-28  Bruno Haible  <bruno@clisp.org>
62003
62004         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62005         macros.
62006         Reported by Eric Blake.
62007
62008 2006-08-28  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62011         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62012         * lib/vasprintf.c: Include errno.h, limits.h.
62013         (EOVERFLOW): New fallback definition.
62014         (vasprintf): Test here whether the string length is > INT_MAX.
62015         * lib/vsnprintf.c: Include errno.h, limits.h.
62016         (EOVERFLOW): New fallback definition.
62017         (vsnprintf): Fix bug when generated string was too long for the buffer.
62018         Test here whether the string length is > INT_MAX.
62019
62020 2006-08-28  Bruno Haible  <bruno@clisp.org>
62021
62022         * lib/inttypes_.h (SCNX*): Remove definitions.
62023         Reported by Eric Blake.
62024
62025 2006-08-28  Bruno Haible  <bruno@clisp.org>
62026
62027         * lib/c-strstr.h: New file, from GNU gettext.
62028         * lib/c-strstr.c: New file, from GNU gettext.
62029
62030 2006-08-28  Bruno Haible  <bruno@clisp.org>
62031
62032         * gnulib-tool: Reorder some statements.
62033
62034 2006-08-28  Bruno Haible  <bruno@clisp.org>
62035
62036         * gnulib-tool: New option --makefile-name.
62037         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62038         $makefile_name.
62039         (func_import): Write $makefile_name to the cache file, and read it from
62040         there unless explicitly specified. Use $makefile_name as file name
62041         instead of Makefile.am. Adjust the recommendations accordingly.
62042
62043 2006-08-28  Bruno Haible  <bruno@clisp.org>
62044
62045         * gnulib-tool (func_verify_module): Check against misapplying patch.
62046
62047 2006-08-28  Bruno Haible  <bruno@clisp.org>
62048
62049         * gnulib-tool (func_relativize, func_relconcat): New functions.
62050         Give an error if --local-dir is given with --update.
62051         Remove trailing slashes from $local_gnulib_dir.
62052         (func_import): Store the relativized $local_gnulib_dir in
62053         gnulib-cache.m4, and read it from there if not specified explicitly.
62054
62055 2006-08-28  Bruno Haible  <bruno@clisp.org>
62056
62057         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62058         is the current directory. Respect also $local_gnulib_dir.
62059
62060 2006-08-28  Bruno Haible  <bruno@clisp.org>
62061             Simon Josefsson  <jas@extundo.com>
62062
62063         BeOS portability.
62064         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62065
62066 2006-08-27  Jim Meyering  <jim@meyering.net>
62067
62068         * doc/visibility.texi: Remove duplicate word: "pointer".
62069
62070 2006-08-26  Bruno Haible  <bruno@clisp.org>
62071
62072         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62073         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62074         (Makefile.am): Create inttypes.h from inttypes_.h.
62075         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62076
62077         * modules/imaxabs: New file.
62078
62079         * modules/imaxdiv: New file.
62080
62081 2006-08-26  Bruno Haible  <bruno@clisp.org>
62082
62083         * m4/inttypes.m4: New file.
62084         * m4/_inttypes_h.m4: Remove file.
62085         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62086         PRI_MACROS_BROKEN.
62087         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62088
62089         * m4/imaxabs.m4: New file.
62090
62091         * m4/imaxdiv.m4: New file.
62092
62093 2006-08-26  Bruno Haible  <bruno@clisp.org>
62094
62095         * lib/inttypes_.h: New file.
62096         * lib/inttypes.h: Remove file.
62097         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62098
62099         * lib/imaxabs.c: New file.
62100
62101         * lib/imaxdiv.c: New file.
62102
62103 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62104
62105         New config-h module, so that "make" output needn't be cluttered
62106         by -DHAVE_CONFIG_H.
62107         * MODULES.html.sh (Support for building libraries and executables):
62108         Add config-h.
62109         * modules/config-h: New file.
62110         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62111         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62112         the config-h module is used.
62113
62114         New configmake module, so that "make" output needn't be cluttered
62115         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62116         * MODULES.html.sh (Support for building libraries and executables):
62117         Add configmake.
62118         * modules/configmake: New file.
62119
62120 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62121
62122         * m4/config-h.m4: New file.
62123
62124 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * config/srclist.txt: Add elisp-comp.
62127
62128 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * MODULES.html.sh (Support for building libraries and executables):
62131         Add elisp-comp.
62132         * build-aux/elisp-comp: New file.
62133         * modules/elisp-comp: New file.
62134
62135 2006-08-24  Bruno Haible  <bruno@clisp.org>
62136
62137         * gnulib-tool (func_create_testdir): Use non-default values of
62138         sourcebase and m4base.
62139
62140 2006-08-24  Bruno Haible  <bruno@clisp.org>
62141
62142         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62143         HTML structure.
62144
62145 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62146
62147         * modules/openat (Depends-on): Add lchown.
62148
62149 2006-08-23  Bruno Haible  <bruno@clisp.org>
62150
62151         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62152         of gl_LOCK_EARLY instead of gl_LOCK.
62153
62154 2006-08-23  Bruno Haible  <bruno@clisp.org>
62155
62156         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62157         on OSF/1 to no.
62158         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62159
62160 2006-08-23  Bruno Haible  <bruno@clisp.org>
62161
62162         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62163         as unusable.
62164
62165         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62166         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62167         (gl_LOCK): New macro.
62168
62169 2006-08-22  Simon Josefsson  <jas@extundo.com>
62170
62171         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62172         to md5 module.
62173
62174 2006-08-22  Simon Josefsson  <jas@extundo.com>
62175
62176         * MODULES.html.sh: Add "Support for maintaining and release
62177         projects".
62178
62179         * build-aux/gnupload: New file, from coreutils.
62180
62181 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62182
62183         Avoid the need for AC_LIBSOURCES in m4 macros.
62184         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62185         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62186         * modules/check-version (EXTRA_DIST): Add check-version.h.
62187         * modules/crc (EXTRA_DIST): Add crc.h.
62188         * modules/des (EXTRA_DIST): Add des.h.
62189         * modules/gc (EXTRA_DIST): Add gc.h.
62190         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62191         * modules/getline (EXTRA_DIST): Add getline.h.
62192         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62193         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62194         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62195         * modules/md2 (EXTRA_DIST): Add md2.h.
62196         * modules/md4 (EXTRA_DIST): Add md4.h.
62197         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62198         * modules/read-file (EXTRA_DIST): Add read-file.h.
62199         * modules/readline (EXTRA_DIST): Add readline.h.
62200         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62201         rijndael-api-fst.h.
62202
62203 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62204
62205         * m4/rijndael.m4 (gl_ARCFOUR):
62206         * m4/arctwo.m4 (gl_ARCTWO):
62207         * m4/check-version.m4 (gl_CHECK_VERSION):
62208         * m4/crc.m4 (gl_CRC):
62209         * m4/des.m4 (gl_DES):
62210         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62211         * m4/gc.m4 (gl_GC):
62212         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62213         * m4/getline.m4 (gl_FUNC_GETLINE):
62214         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62215         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62216         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62217         * m4/md2.m4 (gl_MD2):
62218         * m4/md4.m4 (gl_MD4):
62219         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62220         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62221         * m4/readline.m4 (gl_FUNC_READLINE):
62222         * m4/rijndael.m4 (gl_RIJNDAEL):
62223         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62224         to get the necessary .h files and whatnot.
62225
62226 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62227
62228         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62229         gnulib rather than the other way around.
62230         * config/srclistvars.sh (COREUTILS): Remove.
62231
62232 2006-08-22  Jim Meyering  <jim@meyering.net>
62233
62234         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62235
62236         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62237
62238 2006-08-22  Eric Blake  <ebb9@byu.net>
62239
62240         * modules/regexprops-generic: New file.
62241         * MODULES.html.sh (Support for building documentation): List it.
62242
62243 2006-08-22  Eric Blake  <ebb9@byu.net>
62244
62245         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62246         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62247         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62248         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62249
62250 2006-08-22  Bruno Haible  <bruno@clisp.org>
62251
62252         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62253         and lib_LTLIBRARIES like the other lib_* variables.
62254
62255 2006-08-22  Bruno Haible  <bruno@clisp.org>
62256
62257         * build-aux/x-to-1.in: New file, from GNU gettext.
62258
62259 2006-08-22  Bruno Haible  <bruno@clisp.org>
62260
62261         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62262         <utmpx.h> exists.
62263
62264 2006-08-22  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62267         <utmpx.h> exists.
62268
62269 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62270
62271         BeOS portability.
62272         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62273         exist.
62274         Problem reported by Bruno Haible.
62275
62276 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         Avoid the need for AC_LIBSOURCES in m4 macros.
62279         * modules/acl (EXTRA_DIST): Add acl.h.
62280         * modules/argmatch (Files): Add m4/argmatch.m4.
62281         (configure.ac): Add gl_ARGMATCH.
62282         (EXTRA_DIST): Renamed from lib_SOURCES, for
62283         consistency with the other modules.  Remove argmatch.c.
62284         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62285         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62286         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62287         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62288         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62289         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62290         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62291         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62292         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62293         * modules/closeout (EXTRA_DIST): Add closeout.h.
62294         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62295         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62296         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62297         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62298         dirname.h; remove basename.c and stripslash.c.
62299         * modules/exclude (EXTRA_DIST): Add exclude.h.
62300         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62301         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62302         * modules/file-type (EXTRA_DIST): Add file-type.h.
62303         * modules/filemode (EXTRA_DIST): Add filemode.h.
62304         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62305         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62306         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62307         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62308         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62309         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62310         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62311         * modules/getdate (EXTRA_DIST): Add getdate.c.
62312         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62313         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62314         * modules/getpass (EXTRA_DIST): Add getpass.h.
62315         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62316         * modules/group-member (EXTRA_DIST): Add group-member.h.
62317         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62318         * modules/hash (EXTRA_DIST): Add hash.h.
62319         * modules/human (EXTRA_DIST): Add human.h.
62320         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62321         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62322         * modules/lchown (EXTRA_DIST): Add lchown.h.
62323         * modules/long-options (EXTRA_DIST): Add long-options.h.
62324         * modules/lstat (EXTRA_DIST): Add lstat.h.
62325         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62326         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62327         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62328         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62329         * modules/memxor (EXTRA_DIST): Add memxor.h.
62330         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62331         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62332         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62333         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62334         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62335         * modules/physmem (EXTRA_DIST): Add physmem.h.
62336         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62337         * modules/posixver (EXTRA_DIST): Add posixver.h.
62338         * modules/quote (EXTRA_DIST): Add quote.h.
62339         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62340         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62341         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62342         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62343         regex_internal.h regexec.c.
62344         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62345         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62346         * modules/same (EXTRA_DIST): Add same.h.
62347         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62348         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62349         * modules/savedir (EXTRA_DIST): Add savedir.h.
62350         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62351         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62352         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62353         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62354         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62355         * modules/strdup (EXTRA_DIST): Add strdup.h.
62356         * modules/strftime (EXTRA_DIST): Add strftime.h.
62357         * modules/strndup (EXTRA_DIST): Add strndup.h.
62358         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62359         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62360         * modules/time_r (EXTRA_DIST): Add time_r.h.
62361         * modules/timespec (EXTRA_DIST): Add timespec.h.
62362         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62363         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62364         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62365         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62366         * modules/userspec (EXTRA_DIST): Add userspec.h.
62367         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62368         * modules/utimens (EXTRA_DIST): Add utimens.h.
62369         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62370         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62371         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62372         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62373         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62374         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62375         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62376         * modules/yesno (EXTRA_DIST): Add yesno.h.
62377
62378 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62379
62380         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62381
62382         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62383         * m4/dev-ino.m4, same-inode.m4: Remove.
62384
62385         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62386         * m4/acl.m4 (AC_FUNC_ACL):
62387         * m4/backupfile.m4 (gl_BACKUPFILE):
62388         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62389         * m4/canon-host.m4 (gl_CANON_HOST):
62390         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62391         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62392         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62393         * m4/cloexec.m4 (gl_CLOEXEC):
62394         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62395         * m4/closeout.m4 (gl_CLOSEOUT):
62396         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62397         * m4/dirname.m4 (gl_DIRNAME):
62398         * m4/exclude.m4 (gl_EXCLUDE):
62399         * m4/exitfail.m4 (gl_EXITFAIL):
62400         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62401         * m4/file-type.m4 (gl_FILE_TYPE):
62402         * m4/filemode.m4 (gl_FILEMODE):
62403         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62404         * m4/fpending.m4 (gl_FUNC_FPENDING):
62405         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62406         * m4/fts.m4 (gl_FUNC_FTS):
62407         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62408         * m4/getdate.m4 (gl_GETDATE):
62409         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62410         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62411         * m4/getpass.m4 (gl_FUNC_GETPASS):
62412         * m4/gettime.m4 (gl_GETTIME):
62413         * m4/getugroups.m4 (gl_GETUGROUPS):
62414         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62415         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62416         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62417         * m4/hash.m4 (gl_HASH):
62418         * m4/idcache.m4 (gl_IDCACHE):
62419         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62420         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62421         * m4/long-options.m4 (gl_LONG_OPTIONS):
62422         * m4/lstat.m4 (gl_FUNC_LSTAT):
62423         * m4/md5.m4 (gl_MD5):
62424         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62425         * m4/memcoll.m4 (gl_MEMCOLL):
62426         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62427         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62428         * m4/memxor.m4 (gl_MEMXOR):
62429         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62430         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62431         * m4/modechange.m4 (gl_MODECHANGE):
62432         * m4/mountlist.m4 (gl_MOUNTLIST):
62433         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62434         * m4/openat.m4 (gl_FUNC_OPENAT):
62435         * m4/pathmax.m4 (gl_PATHMAX):
62436         * m4/physmem.m4 (gl_PHYSMEM):
62437         * m4/posixtm.m4 (gl_POSIXTM):
62438         * m4/posixver.m4 (gl_POSIXVER):
62439         * m4/quote.m4 (gl_QUOTE):
62440         * m4/quotearg.m4 (gl_QUOTEARG):
62441         * m4/readtokens.m4 (gl_READTOKENS):
62442         * m4/readutmp.m4 (gl_READUTMP):
62443         * m4/regex.m4 (gl_REGEX):
62444         * m4/safe-read.m4 (gl_SAFE_READ):
62445         * m4/safe-write.m4 (gl_SAFE_WRITE):
62446         * m4/same.m4 (gl_SAME):
62447         * m4/save-cwd.m4 (gl_SAVE_CWD):
62448         * m4/savedir.m4 (gl_SAVEDIR):
62449         * m4/settime.m4 (gl_SETTIME):
62450         * m4/sha1.m4 (gl_SHA1):
62451         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62452         * m4/stat-macros.m4 (gl_STAT_MACROS):
62453         * m4/stat-time.m4 (gl_STAT_TIME):
62454         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62455         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62456         * m4/strdup.m4 (gl_FUNC_STRDUP):
62457         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62458         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62459         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62460         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62461         * m4/time_r.m4 (gl_TIME_R):
62462         * m4/timespec.m4 (gl_TIMESPEC):
62463         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62464         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62465         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62466         * m4/userspec.m4 (gl_USERSPEC):
62467         * m4/utimecmp.m4 (gl_UTIMECMP):
62468         * m4/utimens.m4 (gl_UTIMENS):
62469         * m4/xalloc.m4 (gl_XALLOC):
62470         * m4/xgetcwd.m4 (gl_XGETCWD):
62471         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62472         * m4/xreadlink.m4 (gl_XREADLINK):
62473         * m4/xstrtod.m4 (gl_XSTRTOD):
62474         * m4/yesno.m4 (gl_YESNO):
62475         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62476         to get the necessary .h files and whatnot.
62477
62478 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62479             Bruno Haible  <bruno@clisp.org>
62480
62481         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62482         /bin/sh understanding of '!' conditional negation.
62483
62484 2006-08-21  Jim Meyering  <jim@meyering.net>
62485
62486         * modules/openat (Depends-on): Really alphabetize.
62487
62488         * modules/acl (Depends-on): Add error and quote.
62489
62490         * check-module (find_included_lib_files): Add at-func.c to the
62491         ok-to-include-more-than-once white list.
62492
62493         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62494
62495 2006-08-21  Bruno Haible  <bruno@clisp.org>
62496
62497         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62498         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62499         Reported by Martin Lambers <marlam@marlam.de>.
62500
62501 2006-08-21  Bruno Haible  <bruno@clisp.org>
62502
62503         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62504         specify an installation location, don't emit a noinst_LIBRARIES or
62505         noinst_LTLIBRARIES assignment.
62506
62507 2006-08-21  Bruno Haible  <bruno@clisp.org>
62508
62509         BeOS portability.
62510         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62511         BeOS has mbrtowc() but no <wctype.h>.
62512
62513 2006-08-21  Bruno Haible  <bruno@clisp.org>
62514
62515         BeOS portability.
62516         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62517         exist.
62518
62519 2006-08-21  Bruno Haible  <bruno@clisp.org>
62520
62521         BeOS portability.
62522         * lib/mbchar.h: Include <wctype.h> only if it exists.
62523
62524 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         Remove files that are no longer needed by their respective modules.
62527         * m4/obstack.m4: Remove.
62528         * m4/strerror_r.m4: Remove.
62529         * m4/uint32_t.m4: Remove.
62530         * m4/uintptr_t.m4: Remove.
62531         * m4/ullong_max.m4: Remove.
62532         * m4/xstrtoimax.m4: Remove.
62533         * m4/xstrtoumax.m4: Remove.
62534
62535         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62536         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62537         dependencies now capture this.
62538
62539         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62540         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62541         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62542         * m4/human.m4 (gl_HUMAN): Likewise.
62543         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62544         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62545
62546         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62547
62548         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62549         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62550         stdint.
62551         * m4/human.m4 (gl_HUMAN): Likewise.
62552         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62553         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62554         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62555         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62556         * m4/xstrtol (gl_XSTRTOL): Likewise.
62557
62558         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62559         AC_TYPE_LONG_LONG_INT.
62560         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62561         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62562         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62563         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62564
62565         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62566         on stdbool.
62567
62568         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62569         (gl_PREREQ_XSTRTOUL): Remove.
62570
62571         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62572
62573         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62574         mode.
62575
62576 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62577
62578         Add and change modules to make it easier for coreutils to use
62579         gnulib-tool.
62580         * modules/backupfile (Files): Remove m4/d-ino.m4.
62581         (Depends-on): Add d-ino.
62582         * modules/cycle-check (Depends-on): Add stdint.
62583         (lib_SOURCES): Add cycle-check.h.
62584         * modules/d-ino: New module.
62585         * modules/d-type: New module.
62586         * modules/error (Files): Remove m4/strerror_r.m4.
62587         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62588         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62589         m4/inttypes_h.m4, m4/uintmax_t.m4.
62590         (Depends-on): Add stdint.
62591         (lib_SOURCES): Add fsusage.h.
62592         * modules/getcwd (Files): Remove d-ino.m4.
62593         (Depends-on): Add d-ino.
62594         * modules/getndelim2 (Depends-on): Add stdint.
62595         * modules/glob (Files): Remove m4/d-type.m4.
62596         (Depends-on): Add d-type.
62597         * modules/host-os: New module.
62598         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62599         m4/inttypes_h.m4, m4/uintmax_t.m4.
62600         * Depends-on: Add stdint.
62601         (lib_SOURCES): Add human.h.
62602         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62603         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62604         m4/uintmax_t.m4, m4/ulonglong.m4.
62605         (Depends-on): Add stdint.
62606         (EXTRA_DIST): Add inttostr.h.
62607         * modules/lchmod: New module.
62608         * modules/link-follow: New module.
62609         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62610         (Depends-on): Add lchmod.
62611         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62612         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62613         (Depends-on): Add stdint.
62614         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62615         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62616         (Depends-on): Add stdint.
62617         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62618         * modules/perl: New module.
62619         * modules/regex (Depends-on): Add stdint.
62620         * modules/rmdir-errno: New module.
62621         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62622         m4/intmax_t.m4.
62623         (Depends-on): Add stdint.
62624         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62625         m4/uintmax_t.m4.
62626         (Depends-on): Add stdint.
62627         * modules/unlink-busy: New module.
62628         * modules/utimecmp (Depends-on): Add stdint.
62629         * modules/uptime: New module.
62630         * modules/winsz-ioctl: New module.
62631         * modules/winsz-termios: New module.
62632         * modules/xnanosleep (Depends-on): Add nanosleep.
62633         * modules/ullong_max: Remove.
62634         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62635         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62636         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62637         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62638         (Depends-on): Add inttypes.
62639         (lib_SOURCES): Add xstrtol.h.
62640         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62641         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62642         * MODULES.html.sh: Move 'assert' into the assert section.
62643         Move 'dummy' into the linking section.
62644         Remove ullong_max.
62645         Add section for compatibility checks for POSIX:2001 functions,
62646         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62647         winsz-ioctl, and winsz-termios into it.
62648         Add lchmod.
62649         Add top-level Misc section and put host-os, perl, and uptime
62650         into it.
62651
62652 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62655         now assume the stdint module.  Do not include inttypes.h.
62656         * lib/fsusage.h: Likewise.
62657         * lib/getndelim2.c: Likewise.
62658         * lib/human.h: Likewise.
62659         * lib/inttostr.h: Likewise.
62660         * lib/obstack.c: Likewise.
62661         * lib/regex_internal.h: Likewise.
62662         * lib/tempname.c: Likewise.
62663         * lib/utimecmp.c: Likewise.
62664         * lib/xstrtol.h: Likewise.
62665
62666         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62667
62668         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62669         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62670         * lib/xtime.h: Likewise.
62671
62672 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         * modules/openat (Files): Add lib/fchmodat.c.
62675         Fixes problem reported by Jay Youngman.
62676
62677 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62678
62679         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62680         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62681
62682 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62683             Bruno Haible  <bruno@clisp.org>
62684
62685         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62686         and is a script that invokes bison. Tighten the code. Add comments.
62687
62688 2006-08-18  Jim Meyering  <jim@meyering.net>
62689
62690         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62691         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62692         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62693         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62694
62695 2006-08-18  Bruno Haible  <bruno@clisp.org>
62696
62697         * modules/bison-i18n: New file.
62698         * MODULES.html.sh (Internationalization functions): Add it.
62699
62700 2006-08-18  Bruno Haible  <bruno@clisp.org>
62701
62702         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62703         sys/statvfs.h. When getmntinfo was found, check its declaration and
62704         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62705
62706 2006-08-18  Bruno Haible  <bruno@clisp.org>
62707
62708         * m4/bison-i18n.m4: New file, from bison.
62709
62710 2006-08-18  Bruno Haible  <bruno@clisp.org>
62711
62712         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62713         (ME_DUMMY): Treat "kernfs" as a dummy.
62714         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62715
62716 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         Update from coreutils.
62719
62720         2006-08-15  Jim Meyering  <jim@meyering.net>
62721
62722         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62723
62724         2006-01-17  Jim Meyering  <jim@meyering.net>
62725
62726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62727
62728         2006-01-11  Jim Meyering  <jim@meyering.net>
62729
62730         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62731         Check for the lchmod function.
62732
62733 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62734
62735         Update from coreutils.
62736
62737         * lib/__fpending.h: Add copyright notice.
62738         * lib/fprintftime.h: Likewise.
62739         * lib/savedir.c: Use (C) in copyright notice.
62740         * lib/savedir.h: Likewise.
62741
62742         2006-08-15  Jim Meyering  <jim@meyering.net>
62743
62744         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62745         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62746         in support of the EXPECTED_ERRNO macro.
62747         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62748         definitions.  Instead, define the appropriate symbols and include
62749         "at-func.c".
62750         * lib/mkdirat.c (mkdirat): Likewise.
62751         * lib/fchmodat.c (fchmodat): Likewise.
62752         (ENOSYS): Remove definition.
62753         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62754         it.  Don't include "unistd--.h" -- it wasn't ever used.
62755
62756         2006-01-17  Jim Meyering  <jim@meyering.net>
62757
62758         Rewrite fts.c not to change the current working directory,
62759         by using openat, fstatat, fdopendir, etc..
62760
62761         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62762         (HAVE_OPENAT_SUPPORT): Define.
62763         [_LIBC] (fchdir): Don't undef or define; no longer used.
62764         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62765         Now, this `function' always succeeds, and consumes its file descriptor
62766         parameter -- so callers must not close such FDs.  Update callers.
62767         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62768         (diropen): Add parameter, SP.  Adjust all callers.
62769         Implement using diropen_fd, rather than open.
62770         (fts_open): Initialize new member, fts_cwd_fd.
62771         Remove fts_rft-setting code.
62772         (fts_close): Close fts_cwd_fd, if necessary.
62773         (__opendir2): Define in terms of opendir or opendirat,
62774         depending on whether the FST_NOCHDIR flag is set.
62775         (fts_build): Since fts_safe_changedir consumes its FD, and since
62776         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62777         and close the dup'd file descriptor upon failure.
62778         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62779         (fts_safe_changedir): Tweak semantics to reflect that this function
62780         now calls cwd_advance_fd and hence consumes its FD argument.
62781         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62782         [struct FTS] (fts_rft): Remove now-unused member.
62783         [struct FTS] (fts_cycle.state): Improve comment.
62784
62785         * lib/openat.c (openat_needs_fchdir): New function.
62786         * lib/openat.h (openat_needs_fchdir): Declare it.
62787
62788 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62791         Problem and fix reported by Pádraig Brady in
62792         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62793
62794 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62797
62798 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * lib/memcoll.c (memcoll): Optimize for the common case where the
62801         arguments are bytewise equal.
62802
62803 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * doc/regexprops-generic.texi: Add a copyright notice.
62806
62807 2006-08-15  Bruno Haible  <bruno@clisp.org>
62808
62809         * modules/tmpdir (License): Change to LGPL.
62810
62811 2006-08-15  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62814         module.
62815
62816 2006-08-14  Simon Josefsson  <jas@extundo.com>
62817
62818         * config/srclist.txt: Add gnupload.
62819
62820 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         Change copyright notice from LGPL 2 to GPL 2, since that's the
62823         standard form used in the gnulib repository.
62824         * tests/test-lock.c: Likewise.
62825         * tests/test-stdint.c: Likewise.
62826         * tests/test-tls.c: Likewise.
62827
62828         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62829         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62830         Add copyright notice.
62831
62832         * check-module: Add copyright notice.  Output a copyright
62833         notice if "--version" is specified.
62834         * modules/COPYING: New file.
62835         * tests/test-getaddrinfo.c: Add copyright notice.
62836         * tests/test-verify.c: Likewise.
62837
62838 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         Change copyright notice from LGPL 2 to GPL 2, since that's the
62841         standard form used in the gnulib repository.
62842         * lib/lock.c: LGPL -> GPL.
62843         * lib/lock.h: Likewise.
62844         * lib/strnlen1.c: Likewise.
62845         * lib/strnlen1.h: Likewise.
62846         * lib/tls.c: Likewise.
62847         * lib/tls.h: Likewise.
62848         * lib/tmpdir.c: Likewise.
62849
62850         * lib/TODO: Remove; this belongs only in coreutils.
62851
62852 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62853
62854         Add copyright notices to long-enough files that lack them, since
62855         otherwise the files aren't clearly free.  Use the same notice that
62856         getdate.texi already uses.
62857         * doc/alloca-opt.texi: Add copyright notice.
62858         * doc/alloca.texi: Likewise.
62859         * doc/ctime.texi: Likewise.
62860         * doc/functions.texi: Likewise.
62861         * doc/gcd.texi: Likewise.
62862         * doc/gnulib-tool.texi: Likewise.
62863         * doc/inet_ntoa.texi: Likewise.
62864         * doc/visibility.texi: Likewise.
62865
62866         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62867         * doc/quote.texi: Add copyright notice.
62868
62869         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62870         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62871         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62872         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62873         is now obsolete, and give a pointer to the Sun list.
62874         Add copyright notice.
62875
62876 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * config/srclistvars.sh: Add copyright notice.
62879
62880 2006-08-14  Eric Blake  <ebb9@byu.net>
62881
62882         Import the following change from libc:
62883
62884         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62885
62886         Upstream bug 2997.
62887         * lib/misc/error.c: Add space between program name and message if file
62888         name is missing.
62889
62890 2006-08-12  Karl Berry  <karl@gnu.org>
62891
62892         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62893         remove, these originate in gnulib now.
62894
62895 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62896
62897         * doc/Makefile (standards.info standards.html standards.dvi):
62898         Also depend on make-stds.texi.
62899
62900 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62901
62902         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62903         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62904
62905         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62906         in wchar_t.  Problem reported by Eric Blake.
62907
62908         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62909         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62910         Also, help the compiler to keep LEN in a register.
62911
62912 2006-08-11  Eric Blake  <ebb9@byu.net>
62913
62914         * users.txt: Sort.  Add tar.
62915
62916 2006-08-11  Bruno Haible  <bruno@clisp.org>
62917
62918         * users.txt: New file.
62919
62920 2006-08-11  Bruno Haible  <bruno@clisp.org>
62921
62922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62923         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62924
62925 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62926
62927         * modules/snprintf (Depends-on): Remove minmax.
62928         (Maintainer): Add self and Bruno.
62929
62930 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62933         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62934         (EOVERFLOW): Define if the system does not.
62935         Do not include "minmax.h"; it wasn't used.
62936         (snprintf): Don't assume size_t promotes to an unsigned type.
62937         Fix bug when generated string was too long for the buffer: the
62938         buffer's contents are supposed to be the initial prefix of the
62939         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62940         exceeds INT_MAX; do the check ourselves.
62941
62942         Import the following changes from libc:
62943
62944         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62945
62946         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62947         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62948         set wc to the byte which couldn't be converted.
62949         (re_string_reconstruct): Don't clear valid_raw_len before calling
62950         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62951         tip_context using re_string_context_at.
62952
62953         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62954
62955         * lib/posix/regex.h: g++ still cannot handled [restrict].
62956
62957         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62958
62959         * lib/posix/regex.h: Remove special handling for VMS.
62960
62961 2006-08-10  Jim Meyering  <jim@meyering.net>
62962
62963         * modules/same-inode: New module.
62964         * modules/dev-ino: New module.
62965         * modules/cycle-check: Depend on these modules, rather than simply
62966         including their .h files.
62967         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62968         required via m4/cycle-check.m4.
62969         * modules/same: Depend on new same-inode module, rather than
62970         including same-inode.h.
62971         * modules/chdir-safer: New file.
62972
62973         * modules/chown (Depends-on): Add stat-macros.
62974
62975 2006-08-10  Jim Meyering  <jim@meyering.net>
62976
62977         * m4/cycle-check.m4: New file.
62978         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62979         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62980
62981 2006-08-10  Eric Blake  <ebb9@byu.net>
62982
62983         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62984         in from original proposal.
62985
62986 2006-08-10  Eric Blake  <ebb9@byu.net>
62987         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62988
62989         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62990         namespace.
62991
62992 2006-08-10  Bruno Haible  <bruno@clisp.org>
62993
62994         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62995         as well.
62996
62997 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62998
62999         Sync from coreutils.
63000
63001         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63002
63003         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63004         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63005
63006 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * modules/restrict: Remove; no longer needed now that we assume
63009         Autoconf 2.59 or later.
63010         * MODULES.html.sh: Remove 'restrict'.
63011         * modules/argp (Depends-on): Remove 'restrict'.
63012         * modules/base64 (Depends-on): Likewise.
63013         * modules/gc (Depends-on): Likewise.
63014         * modules/getaddrinfo (Depends-on): Likewise.
63015         * modules/glob (Depends-on): Likewise.
63016         * modules/inet_ntop (Depends-on): Likewise.
63017         * modules/inet_pton (Depends-on): Likewise.
63018         * modules/memxor (Depends-on): Likewise.
63019         * modules/regex (Depends-on): Likewise.
63020         * modules/strtok_r (Depends-on): Likewise.
63021         * modules/time_r (Depends-on): Likewise.
63022
63023 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63026         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63027         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63028         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63029         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63030         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63031         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63032         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63033
63034         Merge from coreutils.
63035         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63036         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63037         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63038         * m4/time_r.m4 (gl_TIME_R): Likewise.
63039
63040 2006-08-09  Karl Berry  <karl@gnu.org>
63041
63042         * config/srclist.txt: no more gettext-tools, per Bruno.
63043
63044 2006-08-08  Eric Blake  <ebb9@byu.net>
63045
63046         * modules/verror: New module.
63047         * MODULES.html.sh: Document it.
63048
63049 2006-08-08  Eric Blake  <ebb9@byu.net>
63050
63051         * lib/verror.h, lib/verror.c: New files.
63052
63053 2006-08-08  Eric Blake  <ebb9@byu.net>
63054
63055         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63056         verror_at_line output complies with GNU Coding Standards even when
63057         file is NULL.
63058
63059 2006-08-07  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63062         versions of AIX.
63063         Reported by Ralf Wildenhues.
63064
63065 2006-08-07  Bruno Haible  <bruno@clisp.org>
63066
63067         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63068         in an AC_DEFUN. Needed so that the autoconf snippets can use
63069         AC_REQUIRE.
63070
63071 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63072
63073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63074         Initialize pkgdata_DATA.
63075         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63076         overriding it.
63077
63078 2006-08-06  Eric Blake  <ebb9@byu.net>
63079
63080         * lib/error.h: Fold in some upstream changes from glibc.
63081         * lib/error.c: Likewise.
63082
63083 2006-08-04  Bruno Haible  <bruno@clisp.org>
63084
63085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63086         Make the mostlyclean-local rule depend on mostlyclean-generic.
63087         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63088
63089 2006-07-31  Bruno Haible  <bruno@clisp.org>
63090
63091         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63092         <stdlib.h>, <string.h>.
63093
63094 2006-07-30  Bruno Haible  <bruno@clisp.org>
63095
63096         * modules/readlink (License): Change to LGPL.
63097
63098 2006-07-30  Bruno Haible  <bruno@clisp.org>
63099
63100         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63101         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63102         set PKGDATADIR to point to it.
63103
63104 2006-07-30  Bruno Haible  <bruno@clisp.org>
63105
63106         * modules/csharpexec (configure.ac): Comment out macro invocation.
63107         * modules/javaexec (configure.ac): Likewise.
63108         * modules/javacomp-script (configure.ac): Likewise.
63109
63110         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63111
63112 2006-07-30  Bruno Haible  <bruno@clisp.org>
63113
63114         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63115         linked-list.
63116
63117 2006-07-30  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63120
63121 2006-07-30  Bruno Haible  <bruno@clisp.org>
63122
63123         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63124         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63125         get removed.
63126
63127 2006-07-29  Bruno Haible  <bruno@clisp.org>
63128
63129         Make it possible for gnulib-tool to work with locally modified or
63130         augmented gnulib repositories.
63131         * gnulib-tool (func_usage): Document --local-dir option.
63132         (local_gnulib_dir): New variable.
63133         Handle --local-dir option.
63134         (func_lookup_file): New function.
63135         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63136         (func_get_description, func_get_filelist, func_get_description,
63137         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63138         func_get_automake_snippet, func_get_include_directive,
63139         func_get_license, func_get_maintainer): Use func_lookup_file.
63140         (func_import, func_create_testdir): Use func_lookup_file.
63141
63142 2006-07-29  Bruno Haible  <bruno@clisp.org>
63143
63144         * modules/setenv (Depends-on): Add unistd.
63145
63146 2006-07-29  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63149
63150 2006-07-29  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63153
63154 2006-07-29  Bruno Haible  <bruno@clisp.org>
63155
63156         * gnulib-tool (import, update): If there is no Makefile.am, look at
63157         aclocal.m4, instead of bailing out.
63158
63159 2006-07-29  Bruno Haible  <bruno@clisp.org>
63160
63161         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63162         Categorize the options by when they are useful.
63163
63164 2006-07-29  Bruno Haible  <bruno@clisp.org>
63165
63166         * gnulib-tool (func_usage): Document option --no-libtool.
63167         Handle option --no-libtool.
63168         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63169         for changed semantics of $libtool variable.
63170         (func_import): Likewise. If libtool is not used, show this through
63171         an option --no-libtool.
63172         (func_create_testdir): Update.
63173
63174 2006-07-29  Bruno Haible  <bruno@clisp.org>
63175
63176         * gnulib-tool (func_import): Extend error message about missing
63177         --doc-base.
63178
63179 2006-07-29  Bruno Haible  <bruno@clisp.org>
63180
63181         * gnulib-tool (func_import): Don't create the $docbase directory if
63182         there is no file to store there.
63183
63184 2006-07-29  Bruno Haible  <bruno@clisp.org>
63185
63186         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63187         relevant, look for configure.ac there, not in the current directory.
63188         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63189
63190 2006-07-29  Bruno Haible  <bruno@clisp.org>
63191
63192         * gnulib-tool (SORT): New variable.
63193         (func_usage): Undocument --assume-autoconf option.
63194         Remove --assume-autoconf option handling.
63195         (autoconf_minversion): Determine from the contents of configure.ac.
63196         (func_import): Remove autoconf_minversion handling.
63197         Suggested by Eric Blake.
63198
63199 2006-07-29  Bruno Haible  <bruno@clisp.org>
63200
63201         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63202
63203 2006-07-29  Bruno Haible  <bruno@clisp.org>
63204
63205         * config/srclist.txt (*setenv.[ch]): Remove rules.
63206
63207 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63208
63209         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63210
63211 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63212
63213         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63214         arpa/inet.h.
63215
63216 2006-07-28  Simon Josefsson  <jas@extundo.com>
63217
63218         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63219         * modules/inet_pton (Depends-on): Likewise.
63220
63221 2006-07-28  Simon Josefsson  <jas@extundo.com>
63222
63223         * m4/netinet_in_h.m4: New file.
63224
63225 2006-07-28  Simon Josefsson  <jas@extundo.com>
63226
63227         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63228         #include's.
63229
63230 2006-07-28  Simon Josefsson  <jas@extundo.com>
63231
63232         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63233         #include's.
63234
63235 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63236
63237         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63238         setgid on directories only if they set these bits.
63239         * lib/modechange.h: Remove obsolete comment about masks.
63240
63241 2006-07-28  Eric Blake  <ebb9@byu.net>
63242
63243         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63244         macro expansion.
63245
63246 2006-07-28  Bruno Haible  <bruno@clisp.org>
63247
63248         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63249
63250 2006-07-28  Bruno Haible  <bruno@clisp.org>
63251
63252         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63253
63254 2006-07-28  Bruno Haible  <bruno@clisp.org>
63255
63256         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63257         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63258         Define fallbacks.
63259         Avoids link error on FreeBSD 4.x.
63260         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63261
63262         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63263         encoding.
63264         * lib/mbswidth.c (iswcntrl): Likewise.
63265
63266 2006-07-27  Bruno Haible  <bruno@clisp.org>
63267
63268         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63269         test.
63270
63271 2006-07-27  Bruno Haible  <bruno@clisp.org>
63272
63273         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63274         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63275         defined.
63276
63277 2006-07-26  Eric Blake  <ebb9@byu.net>
63278
63279         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63280
63281 2006-07-26  Eric Blake  <ebb9@byu.net>
63282
63283         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63284         like mingw that lack mkstemp.
63285         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63286         avoid compilation warning on mingw.
63287
63288 2006-07-26  Bruno Haible  <bruno@clisp.org>
63289
63290         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63291         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63292         INT_FAST*_MIN, INTPTR_MIN.
63293
63294 2006-07-25  Bruno Haible  <bruno@clisp.org>
63295
63296         * modules/version-etc (Depends-on): Add stdarg.
63297
63298 2006-07-25  Bruno Haible  <bruno@clisp.org>
63299
63300         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63301         complex commands.
63302
63303 2006-07-25  Bruno Haible  <bruno@clisp.org>
63304
63305         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63306         defined in <stdarg.h> or config.h.
63307
63308 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63311         (gl_STDIO_SAFER): Remove.
63312
63313 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         * MODULES.html.sh (File stream based Input/Output):
63316         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63317         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63318         * modules/fopen-safer, modules/tmpfile-safer: New files.
63319         * modules/stdio-safer: Remove.
63320
63321 2006-07-24  Bruno Haible  <bruno@clisp.org>
63322
63323         * modules/tmpdir: New file.
63324         * MODULES.html.sh (File system functions): Add it.
63325
63326 2006-07-24  Bruno Haible  <bruno@clisp.org>
63327
63328         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63329         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63330
63331 2006-07-24  Bruno Haible  <bruno@clisp.org>
63332
63333         * modules/clean-temp: New file.
63334
63335 2006-07-24  Bruno Haible  <bruno@clisp.org>
63336
63337         * m4/tmpdir.m4: New file, from GNU gettext.
63338
63339 2006-07-24  Bruno Haible  <bruno@clisp.org>
63340
63341         * lib/tmpdir.h: New file, from GNU gettext.
63342         * lib/tmpdir.c: New file, from GNU gettext.
63343
63344 2006-07-24  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/clean-temp.h: New file, from GNU gettext.
63347         * lib/clean-temp.c: New file, from GNU gettext.
63348
63349 2006-07-23  Eric Blake  <ebb9@byu.net>
63350
63351         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63352         (Depends-on): Add binary-io.
63353
63354 2006-07-23  Eric Blake  <ebb9@byu.net>
63355
63356         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63357
63358 2006-07-23  Eric Blake  <ebb9@byu.net>
63359
63360         * lib/tmpfile-safer.c: New file.
63361         * lib/stdio-safer.h (fopen_safer): Add prototype.
63362         * lib/stdio--.h (tmpfile): Make safer.
63363
63364 2006-07-23  Bruno Haible  <bruno@clisp.org>
63365
63366         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63367         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63368         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63369         gl_linked_remove_at): Use it.
63370
63371 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63372         and Simon Josefsson <jas@extundo.com>
63373
63374         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63375
63376         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63377
63378 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         * modules/close-stream: New file.
63381         * modules/closeout (Description): Make it clear that it exits
63382         with a diagnostic on error.
63383         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63384         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63385
63386 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         * m4/close-stream.m4: New file.
63389
63390 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         * lib/close-stream.c, lib/close-stream.h: New files.
63393
63394 2006-07-22  Bruno Haible  <bruno@clisp.org>
63395
63396         Merge from GNU gettext 0.15.
63397
63398         2006-05-01  Bruno Haible  <bruno@clisp.org>
63399
63400                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63401
63402         2006-07-22  Bruno Haible  <bruno@clisp.org>
63403
63404                 * modules/javaversion: New file.
63405                 * MODULES.html.sh (Java): Add javaversion.
63406
63407         2006-03-12  Bruno Haible  <bruno@clisp.org>
63408
63409                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63410
63411         2005-12-04  Bruno Haible  <bruno@clisp.org>
63412
63413                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63414                 (untested).
63415
63416         2006-06-21  Bruno Haible  <bruno@clisp.org>
63417
63418                 Avoid warnings from recent versions of mcs.
63419                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63420                 -o, -L, -r any more. Use options documented since mcs-1.0
63421                 instead. Similarly for -g.
63422
63423         2005-12-04  Bruno Haible  <bruno@clisp.org>
63424
63425                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63426                 .resources, not .resource.
63427
63428         2005-07-09  Bruno Haible  <bruno@clisp.org>
63429
63430                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63431                 add a .dll suffix.
63432                 Reported by Mark Junker <mjscod@gmx.de>.
63433
63434         2006-07-22  Bruno Haible  <bruno@clisp.org>
63435
63436                 * modules/gettext: Upgrade to gettext-0.15.
63437                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63438                 m4/visibility.m4.
63439                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63440
63441 2006-07-22  Bruno Haible  <bruno@clisp.org>
63442
63443         Merge from GNU gettext 0.15.
63444
63445         2006-03-25  Bruno Haible  <bruno@clisp.org>
63446
63447                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63448
63449         2006-07-21  Bruno Haible  <bruno@clisp.org>
63450
63451                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63452                 "1.1".
63453
63454         2006-05-09  Bruno Haible  <bruno@clisp.org>
63455
63456                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63457                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63458                 for the conftestver execution.
63459
63460         2006-05-01  Bruno Haible  <bruno@clisp.org>
63461
63462                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63463                 optional target-version argument. Verify that the compiler
63464                 groks source of the specified source-version, or add -source
63465                 option as necessary. Verify that the compiler produces
63466                 bytecode in the specified target-version, or add -target and
63467                 -source options as necessary. Make the result of the test
63468                 available as variable CONF_JAVAC. Also log error output in
63469                 config.log.
63470
63471         2006-03-11  Bruno Haible  <bruno@clisp.org>
63472
63473                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63474
63475         2006-05-09  Bruno Haible  <bruno@clisp.org>
63476
63477                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63478                 CLASSPATH_SEPARATOR to a semicolon.
63479
63480         2006-03-12  Bruno Haible  <bruno@clisp.org>
63481
63482                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63483                 available as variable CONF_JAVA, for subsequent autoconf
63484                 tests. Also log error output in config.log.
63485
63486         2006-07-19  Bruno Haible  <bruno@clisp.org>
63487
63488                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63489                 that getline works on glibc2 systems. Needed to avoid trouble
63490                 in relocatable.c.
63491                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63492
63493         2005-12-04  Bruno Haible  <bruno@clisp.org>
63494
63495                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63496                 launcher (untested).
63497
63498         2005-12-04  Bruno Haible  <bruno@clisp.org>
63499
63500                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63501
63502         2006-07-22  Bruno Haible  <bruno@clisp.org>
63503
63504                 * gettext.m4: Update from GNU gettext-0.15.
63505                 * nls.m4: Likewise.
63506                 * po.m4: Likewise.
63507                 * inttypes-pri.m4: Likewise.
63508                 * inttypes-h.m4: Renamed from inttypes.m4.
63509                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63510
63511 2006-07-22  Bruno Haible  <bruno@clisp.org>
63512
63513         Merge from GNU gettext 0.15.
63514
63515         2005-07-05  Bruno Haible  <bruno@clisp.org>
63516
63517                 * printf-args.c (printf_fetchargs): Work around broken
63518                 definition of wint_t on mingw.
63519
63520         2005-02-12  Bruno Haible  <bruno@clisp.org>
63521
63522                 * xallocsa.h: Add extern "C" for C++.
63523
63524         2006-05-17  Bruno Haible  <bruno@clisp.org>
63525
63526                 Cygwin portability.
63527                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63528
63529         2006-04-30  Bruno Haible  <bruno@clisp.org>
63530
63531                 * progreloc.c: Include <mach-o/dyld.h> if available.
63532                 (find_executable): Use _NSGetExecutablePath when possible.
63533
63534         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63535
63536                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63537                 function.
63538
63539         2005-12-29  Bruno Haible  <bruno@clisp.org>
63540
63541                 * progreloc.c (set_program_name_and_installdir): Fix
63542                 compilation error.
63543
63544         2005-12-04  Bruno Haible  <bruno@clisp.org>
63545
63546                 Cygwin portability.
63547                 * progreloc.c: Include <windows.h> also on Cygwin.
63548                 (find_executable): Add support for Cygwin.
63549                 (set_program_name_and_installdir): Handle also platforms with
63550                 nonempty EXEEXT.
63551
63552         2006-07-11  Bruno Haible  <bruno@clisp.org>
63553
63554                 * javacomp.c: Fix a comment.
63555                 Reported by Jim Meyering.
63556
63557         2006-04-30  Bruno Haible  <bruno@clisp.org>
63558
63559                 * javacomp.h (compile_java_class): Add source_version,
63560                 target_version arguments.
63561                 * javacomp.c: Rewritten to choose only a compiler that
63562                 respects the specified source_version and target_version.
63563
63564         2006-06-27  Bruno Haible  <bruno@clisp.org>
63565
63566                 Assume correct S_ISDIR macro.
63567                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63568
63569         2006-07-22  Bruno Haible  <bruno@clisp.org>
63570
63571                 * javaversion.h: New file, from GNU gettext.
63572                 * javaversion.c: New file, from GNU gettext.
63573                 * javaversion.java: New file, from GNU gettext.
63574                 * javaversion.class: New file, from GNU gettext.
63575
63576         2006-05-17  Bruno Haible  <bruno@clisp.org>
63577
63578                 Cygwin portability.
63579                 * javaexec.c (execute_java_class): Test for jview program
63580                 also on Cygwin.
63581
63582         2006-04-09  Bruno Haible  <bruno@clisp.org>
63583
63584                 * fatal-signal.c: Don't include string.h.
63585                 (at_fatal_signal): Use a copying loop instead of memcpy.
63586
63587         2005-12-04  Bruno Haible  <bruno@clisp.org>
63588
63589                 * csharpexec.c: Add support for 'clix' launcher (untested).
63590                 (execute_csharp_using_sscli): New function.
63591                 (execute_csharp_program): Call it.
63592
63593         2006-06-21  Bruno Haible  <bruno@clisp.org>
63594
63595                 Avoid warnings from recent versions of mcs.
63596                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63597                 -o, -L, -r any more. Use options documented since mcs-1.0
63598                 instead. Similarly for -g.
63599
63600         2005-07-09  Bruno Haible  <bruno@clisp.org>
63601
63602                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63603                 add a .dll suffix.
63604                 Reported by Mark Junker <mjscod@gmx.de>.
63605
63606         2006-06-17  Bruno Haible  <bruno@clisp.org>
63607
63608                 * config.charset: Update for NetBSD 3.0.
63609
63610         2006-05-17  Bruno Haible  <bruno@clisp.org>
63611
63612                 Cygwin portability.
63613                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63614
63615         2006-05-16  Bruno Haible  <bruno@clisp.org>
63616
63617                 * localcharset.c [CYGWIN]: Include <windows.h>.
63618                 (get_charset_aliases): For Cygwin, return the same CPxxx
63619                 aliases list as under WIN32.
63620                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63621                 the environment variables. Fall back to GetACP().
63622
63623         2006-04-05  Bruno Haible  <bruno@clisp.org>
63624
63625                 * config.charset: Update Juan Manuel Guerrero's address.
63626
63627         2005-02-12  Bruno Haible  <bruno@clisp.org>
63628
63629                 * allocsa.h: Add extern "C" for C++.
63630
63631         2005-02-10  Bruno Haible  <bruno@clisp.org>
63632
63633                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63634                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63635
63636         2006-07-22  Bruno Haible  <bruno@clisp.org>
63637
63638                 * gettext.h: Update to GNU gettext-0.15.
63639
63640 2006-07-22  Bruno Haible  <bruno@clisp.org>
63641
63642         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63643         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63644         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63645
63646 2006-07-21  Eric Blake  <ebb9@byu.net>
63647
63648         * modules/stdlib-safer: New file.
63649         * MODULES.html.sh (File stream based Input/Output): Add
63650         stdlib-safer.
63651
63652 2006-07-21  Eric Blake  <ebb9@byu.net>
63653
63654         * lib/stdlib-safer.h: New file from coreutils, required by
63655         stdlib--.h.
63656
63657 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63658
63659         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63660
63661 2006-07-20  Bruno Haible  <bruno@clisp.org>
63662
63663         * gnulib-tool: Recognize new option --assume-autoconf.
63664         (autoconf_minversion): New variable.
63665         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63666
63667 2006-07-20  Bruno Haible  <bruno@clisp.org>
63668
63669         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63670
63671 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63672
63673         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63674         Reindent and repaginate.
63675
63676 2006-07-19  Derek Price  <derek@ximbiot.com>
63677
63678         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63679         Correct grammar.
63680
63681 2006-07-17  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/list: New file.
63684         * modules/array-list: New file.
63685         * modules/carray-list, modules/carray-list-tests: New files.
63686         * modules/linked-list, modules/linked-list-tests: New files.
63687         * modules/avltree-list, modules/avltree-list-tests: New files.
63688         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63689         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63690         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63691         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63692         * modules/oset: New file.
63693         * modules/array-oset: New file.
63694         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63695         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63696         * tests/test-carray_list.c: New file.
63697         * tests/test-linked_list.c: New file.
63698         * tests/test-avltree_list.c: New file.
63699         * tests/test-rbtree_list.c: New file.
63700         * tests/test-linkedhash_list.c: New file.
63701         * tests/test-avltreehash_list.c: New file.
63702         * tests/test-rbtreehash_list.c: New file.
63703         * tests/test-avltree_oset.c: New file.
63704         * tests/test-rbtree_oset.c: New file.
63705         * MODULES.html.sh (Container data structures): New section.
63706
63707 2006-07-17  Bruno Haible  <bruno@clisp.org>
63708
63709         * m4/gl_list.m4: New file.
63710
63711 2006-07-17  Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/gl_list.h: New file.
63714         * lib/gl_list.c: New file.
63715         * lib/gl_array_list.h: New file.
63716         * lib/gl_array_list.c: New file.
63717         * lib/gl_carray_list.h: New file.
63718         * lib/gl_carray_list.c: New file.
63719         * lib/gl_linked_list.h: New file.
63720         * lib/gl_linked_list.c: New file.
63721         * lib/gl_anylinked_list1.h: New file.
63722         * lib/gl_anylinked_list2.h: New file.
63723         * lib/gl_avltree_list.h: New file.
63724         * lib/gl_avltree_list.c: New file.
63725         * lib/gl_anyavltree_list1.h: New file.
63726         * lib/gl_anyavltree_list2.h: New file.
63727         * lib/gl_rbtree_list.h: New file.
63728         * lib/gl_rbtree_list.c: New file.
63729         * lib/gl_anyrbtree_list1.h: New file.
63730         * lib/gl_anyrbtree_list2.h: New file.
63731         * lib/gl_anytree_list1.h: New file.
63732         * lib/gl_anytree_list2.h: New file.
63733         * lib/gl_linkedhash_list.h: New file.
63734         * lib/gl_linkedhash_list.c: New file.
63735         * lib/gl_anyhash_list1.h: New file.
63736         * lib/gl_anyhash_list2.h: New file.
63737         * lib/gl_avltreehash_list.h: New file.
63738         * lib/gl_avltreehash_list.c: New file.
63739         * lib/gl_rbtreehash_list.h: New file.
63740         * lib/gl_rbtreehash_list.c: New file.
63741         * lib/gl_anytreehash_list1.h: New file.
63742         * lib/gl_anytreehash_list2.h: New file.
63743
63744         * lib/gl_oset.h: New file.
63745         * lib/gl_oset.c: New file.
63746         * lib/gl_array_oset.h: New file.
63747         * lib/gl_array_oset.c: New file.
63748         * lib/gl_avltree_oset.h: New file.
63749         * lib/gl_avltree_oset.c: New file.
63750         * lib/gl_rbtree_oset.h: New file.
63751         * lib/gl_rbtree_oset.c: New file.
63752         * lib/gl_anytree_oset.h: New file.
63753
63754 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * m4/mkancesdirs.m4: New file.
63757         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63758         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63759         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63760         it.
63761
63762 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63763
63764         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63765         * lib/mkancesdirs.h: New files.
63766         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63767         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63768         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63769         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63770         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63771         callers changed.  Revamp internals significantly, by not
63772         attempting to create directories that are temporarily more
63773         permissive than the final results.  Do not attempt to use
63774         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63775         This removes some race conditions, fixes some bugs, and simplifies
63776         things.  Use new dirchownmod function to do owner and mode changes.
63777         * lib/mkdir-p.h: Likewise.
63778         * lib/modechange.c (octal_to_mode): New function.
63779         (struct mode_change): New member mentioned.
63780         (make_node_op_equals): New arg mentioned.  All callers changed.
63781         (mode_compile): Keep track of which mode bits the user has explicitly
63782         mentioned.
63783         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63784         New arg PMODE_BITS, to keep track of which mode bits the user
63785         mentioned; it treats S_ISUID and S_ISGID speciall.
63786         All callers changed.
63787         * lib/modechange.h: Likewise.
63788
63789 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * MODULES.html.sh: Add mkancestors.
63792         * modules/mkancesdirs: New module.
63793         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63794         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63795         The chdir-safer and afs files are now orphans; I'll remove them
63796         unless someone speaks up.
63797         Add lib/dirchownmod.c, lib/dirchownmod.h.
63798         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63799         Add lchown, mkancesdirs.
63800         (Maintainer): Add self.
63801
63802 2006-07-15  Karl Berry  <karl@gnu.org>
63803
63804         * gnulib-tool: help message wording/arrangement.
63805
63806 2006-07-14  Simon Josefsson  <jas@extundo.com>
63807
63808         * doc/gnulib.texi (Libtool and Windows): New section.
63809
63810 2006-07-12  Simon Josefsson  <jas@extundo.com>
63811
63812         * modules/gendocs (License): Fix license, approved by Karl.
63813
63814 2006-07-12  Eric Blake  <ebb9@byu.net>
63815
63816         * MODULES.html.sh: Add gendocs.
63817
63818 2006-07-11  Eric Blake  <ebb9@byu.net>
63819
63820         * modules/fdl: New module, to install doc/fdl.texi.
63821         * MODULES.html.sh: Add new section for documentation modules.
63822         * gnulib-tool: Avoid space-tab.
63823         (--doc-base): New option, to manage files from doc.
63824
63825 2006-07-11  Eric Blake  <ebb9@byu.net>
63826
63827         * m4/absolute-header.m4: Fix comments to match recent change.
63828
63829 2006-07-11  Eric Blake  <ebb9@byu.net>
63830
63831         * gnulib-tool: List --doc-base before --tests-base.
63832
63833 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63834
63835         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63836
63837 2006-07-11  Bruno Haible  <bruno@clisp.org>
63838
63839         * README: Mention where to put documentation.
63840
63841 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63842
63843         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63844
63845 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63848         to stdint.m4.
63849
63850 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63851
63852         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63853         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63854         "no/such/file/stdint.h" when there is no such file, so that
63855         the resulting C code can be parsed by dodgy compilers.
63856         Problems reported by Bob Proulx.
63857
63858 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63859
63860         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63861         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63862         macros into the GNU _D_EXACT_NAMLEN.
63863         * lib/savedir.c:  Likewise.
63864         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63865
63866 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63867         and Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63870         * m4/savedir.m4:
63871         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63872         macros into the GNU _D_EXACT_NAMLEN.
63873
63874 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63877         around the absolute name, to work around a problem with the HP-UX
63878         11.23 native C compiler, reported by Bob Proulx.
63879
63880 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * doc/maintain.texi, make-stds.texi: Sync from
63883         <http://savannah.gnu.org/projects/gnustandards>.
63884
63885 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63886
63887         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63888
63889 2006-07-09  Jim Meyering  <jim@meyering.net>
63890
63891         * m4/glob.m4: Remove a doubled word in a comment.
63892
63893 2006-07-09  Jim Meyering  <jim@meyering.net>
63894
63895         * lib/argp-pv.c: Remove a doubled word in a comment.
63896         * lib/check-version.c (check_version): Likewise.
63897         * lib/javacomp.c (compile_java_class): Likewise.
63898
63899 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63902         for the benefit of people using Autoconf 2.60.  If you want to
63903         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63904         (or m4/onceonly.m4, if pre-2.57) manually.
63905
63906 2006-07-08  Jim Meyering  <jim@meyering.net>
63907
63908         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63909         comment.
63910         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63911         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63912         comment.
63913
63914 2006-07-08  Jim Meyering  <jim@meyering.net>
63915
63916         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63917
63918 2006-07-07  Simon Josefsson  <jas@extundo.com>
63919
63920         * tests/test-crc.c: Change expected crc value, the test vector
63921         were probably computed using the old broken crc.c?
63922
63923 2006-07-06  Simon Josefsson  <jas@extundo.com>
63924
63925         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63926         now the canonical place for the M4 file).
63927
63928         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63929         from the sys_socket dependency now.
63930
63931         * modules/inet_pton (Files): Ditto.
63932
63933         * modules/inet_ntop (Files): Ditto.
63934
63935 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63936
63937         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63938         not gl_PREREQ_GETUSERSHELL.
63939
63940 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63941
63942         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63943         with only one argument, for Autoconf 2.60.
63944         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63945         expand to nothing, so add a shell command to avoid syntax error.
63946         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63947
63948 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63949
63950         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63951
63952 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63953
63954         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63955         no longer needed.  Check for isblank decl.
63956         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63957         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63958         of existence.
63959
63960 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * lib/getloadavg.c: Use __VMS, not VMS.
63963         * lib/getopt.c: Likewise.
63964         * lib/getpagesize.h: Likewise.
63965         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63966         and probably does not work.
63967
63968 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * lib/.cppi-disable: Add wcwidth.
63971         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63972         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63973         (ISGRAPH): Remove.  All uses changed to isgraph.
63974         (FOLD) [!defined _LIBC]: Remove special case.
63975         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63976         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63977         HAVE_ISBLANK.
63978         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63979         case.
63980
63981 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63982
63983         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63984         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63985         brackets.  Other minor changes to suppress some compiler
63986         warnings.
63987
63988 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63989         and Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63992         of invoking obsolescent AC_HEADER_DIRENT macro.
63993         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63994         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63996         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63997         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63998         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63999         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64000         * m4/readdir.m4: Remove; no longer needed.
64001
64002 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64003         and Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64006         Don't worry about this obsolete case any more.
64007         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64008         directories.
64009         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64010         worry about this obsolete case any more.
64011         * lib/fts.c: Likewise.
64012         * lib/getcwd.c: Likewise.
64013         * lib/glob.h: Likewise.
64014         * lib/savedir.c: Likewise.
64015
64016 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64019         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64020         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64021         needed.
64022         All uses removed.
64023         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64024         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64025         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64026         needed.
64027         * m4/getdate.m4 (gl_GETDATE): Likewise.
64028         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64029         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64030         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64031         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64032         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64033         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64034         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64035         needed.
64036
64037 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * lib/memcasecmp.c: Include <limits.h>.
64040         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64041         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64042         Don't assume isdigit succeeds only on '0' through '9'.
64043
64044 2006-07-05  Eric Blake  <ebb9@byu.net>
64045
64046         * modules/getaddrinfo (Depends-on): Add snprintf.
64047
64048 2006-07-05  Eric Blake  <ebb9@byu.net>
64049
64050         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64051         to avoid 'header present but could not be compiled' on cygwin.
64052
64053 2006-07-05  Eric Blake  <ebb9@byu.net>
64054
64055         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64056         missing from netdb.h.
64057         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64058
64059 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64060
64061         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64062         no longer needed.
64063         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64064         * m4/getdate.m4 (gl_GETDATE): Likewise.
64065         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64066         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64067         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64068         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64069         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64070
64071 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64072
64073         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64074         All uses of is_space replaced by isspace.
64075         * lib/exit.h: Don't talk about STDC_HEADERS.
64076         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64077         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64078         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64079         replaced by isprint etc.
64080         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64081         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64082         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64083         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64084         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64085         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64086
64087 2006-07-05  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64090         the function exists, before testing against AIX.
64091         Reported by Martin Lambers <marlam@marlam.de>.
64092
64093 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64096         From Mark D. Baushke.
64097
64098 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64101         to the absolute name, not just one, to bypass Sun C 5.8's
64102         "warning: #include of /usr/include/... may be non-portable".
64103
64104 2006-07-04  Eric Blake  <ebb9@byu.net>
64105
64106         * modules/dirname-tests: New test module.
64107         * tests/test-dirname.c: New file, replacing dirname.c
64108         TEST_DIRNAME section that was recently deleted.
64109
64110 2006-07-04  Bruno Haible  <bruno@clisp.org>
64111
64112         Assume ANSI C header files and <ctype.h> functions.
64113         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64114         (mbsnwidth): Use isprint, iscntrl instead.
64115
64116 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         Merge from coreutils.
64119         * MODULES.html.sh: Add xstrtold.
64120         * modules/xstrtold: New file.
64121         * modules/cycle-check (Files): Add lib/same-inode.h.
64122         * modules/dirname (Files): Add m4/double-slash-root.m4.
64123         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64124         * modules/mkdir-p (Files): Add lib/same-inode.h.
64125         * modules/same (Files): Add lib/same-inode.h.
64126
64127 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64130         This is to keep the terminology clean; POSIX talks about
64131         "absolute pathnames", not "full pathnames", but the GNU
64132         Coding Standards say to use "path" for something else;
64133         so use "absolute" to keep both sides happy.
64134         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64135         Set gl_absolute_header, not gl_full_header_path.
64136         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64137         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64138         All uses changed.
64139
64140         Merge from coreutils.
64141
64142         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64145         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64146         want to require the building of c-strtod.o.
64147         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64148         needs -lm directly.
64149         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64150
64151         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64152
64153         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64154         --as-needed option if available.  Problem reported by Albert Chin in
64155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64156         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64157         cc merely issues a bunch of annoying warnings for --as-needed
64158         (this problem was reported by Bob Proulx).  Also, try linking with
64159         -lm to detect a bug in binutils 2.16 (this problem was reported
64160         by Ralf Wildenhues).
64161
64162         2006-06-18  Jim Meyering  <jim@meyering.net>
64163
64164         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64165         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64166         macro.
64167         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64168         also check for glibc-2.4's abort-inducing bug.
64169
64170         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64171         Low-probability clean-up should be to use rmdir to get rid of
64172         the just-created directory, not unlink.
64173
64174         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64175         configure fail, and request a bug report to inform us about it.
64176         Add a comment that, barring reports to the contrary, in 2007 we'll
64177         assume ftruncate is universally available.
64178
64179         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64182
64183         2006-03-12  Jim Meyering  <jim@meyering.net>
64184
64185         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64186         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64187         * m4/same.m4 (gl_SAME): Likewise.
64188         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64189
64190         2006-03-11  Eric Blake  <ebb9@byu.net>
64191
64192         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64193         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64194         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64195         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64196
64197 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64198
64199         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64200         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64201         reported by Mark D. Baushke, one in
64202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64203
64204         Merge from coreutils.
64205
64206         * lib/.cppi-disable: Add stdint_.h.
64207         * lib/.cvsignore: Add stdint.h.
64208
64209         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64212         both double and long double versions.
64213         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64214         * lib/xstrtold.c: New file.
64215         * lib/xstrtod.h (xstrtold): New decl.
64216
64217         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64218
64219         * lib/filemode.c (setst): Remove.
64220         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64221         (arguably) clearer, and the generated code is a bit smaller on my
64222         Debian GNU/Linux stable x86 host.
64223
64224         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64227         Assume that filemode.h includes sys/types.h and sys/stat.h.
64228         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64229         (ftypelet): Reorder to put common cases first, for efficiency.
64230         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64231         to do 'M'.
64232         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64233         of 10, for compatibility with FreeBSD.  All callers changed.
64234         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64235         types that can't be deduced solely from st_mode.  First arg is now a
64236         const pointer.
64237         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64238         (strmode): Renamed from mode_string.
64239         (filemodestring): New decl.
64240         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64241         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64242         needed.
64243         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64244
64245         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64246
64247         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64248         fsusage.h now does that.  Include fsusage.h first, to test interface.
64249         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64250         at most one method (the old code could have generated decls that
64251         didn't conform to C89, not that this was ever exercised).
64252         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64253
64254         2006-03-19  Jim Meyering  <jim@meyering.net>
64255
64256         Work even in a chroot where d_ino values for entries in "/"
64257         don't match the stat.st_ino values for the same names.
64258         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64259         number, iterate through all entries again, using lstat instead.
64260         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64261         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64262
64263         * lib/getcwd.c (__getcwd): Clarify a comment.
64264         Use memcpy in place of a call to strcpy.
64265
64266         2006-03-12  Jim Meyering  <jim@meyering.net>
64267
64268         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64269         matches that of the current directory (which we're about to chdir ".."
64270         out of), then save the dev-ino of the parent, instead.
64271
64272         * lib/same-inode.h (SAME_INODE): New file/macro.
64273         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64274         Include "same-inode.h", instead.
64275         * lib/same.c: Likewise.
64276         * lib/cycle-check.h: Include "same-inode.h".
64277         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64278         * lib/cycle-check.c (SAME_INODE): Remove definition.
64279         * lib/root-dev-ino.h: Include "same-inode.h".
64280
64281         2006-03-11  Eric Blake  <ebb9@byu.net>
64282
64283         * lib/same.c (same_name): s/base_name/last_component/
64284         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64285         * lib/filenamecat.c (file_name_concat): Likewise.
64286
64287         2006-03-11  Eric Blake  <ebb9@byu.net>,
64288                     Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64291         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64292         drive prefix.
64293         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64294         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64295         (last_component): New method.
64296         * lib/dirname.c (dir_len): Determine when drive letters need a
64297         subsequent slash.  Preserve // when it is special.
64298         (dir_name): Don't append dot when drive letter is absolute.
64299         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64300         * lib/basename.c (base_name): New semantics - malloc the result.
64301         Preserve // when it is special.  Preserve relative files that look
64302         like drive letters.
64303         (base_len): Preserve // when it is special.
64304         (last_component): New method, similar to old base_name semantics.
64305         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64306         base_name.  Strip redundant slashes from ///.
64307
64308 2006-07-03  Jim Meyering  <jim@meyering.net>
64309
64310         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64311         macro is used before the first cycle_check call.
64312
64313 2006-07-03  Eric Blake  <ebb9@byu.net>
64314
64315         * modules/dirname (Depends-on): Add xstrndup.
64316
64317 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64320         test cases, so that config.log is a bit easier to follow.
64321
64322 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64325         both are 64 bits, since this seems to be the tradition, and this
64326         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64327         we ever run into a host that prefers long long to long in this
64328         case, we'll need another configure-time test.  Problem reported by
64329         Jim Meyering.
64330
64331 2006-07-02  Eric Blake  <ebb9@byu.net>
64332
64333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64334
64335 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * modules/inttypes (Depends-on): No longer depends on stdint.
64338         * modules/stdint (Description): Say more about assumptions.
64339         Say that the fast types might differ.  Say macros are used.
64340         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64341         (Makefile.am): Revise list of substituted symbols to match
64342         new stdint.m4.
64343         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64344         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64345         * tests/test-stdint.c (verify_same_types)
64346         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64347         the code conforms to C99/C89.
64348         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64349         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64350
64351 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64354         but fix a bug, by requiring at least 64 bits.
64355         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64356         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64357         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64358         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64359
64360         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64361         changes.  Make 2.59 a prerequisite.  Check and substitute for
64362         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64363         inttypes.h.  Do not use special include files; just use the
64364         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64365         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64366         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64367         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64368         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64369         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64370         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64371         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64372         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64373         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64374         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64375         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64376         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64377         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64378         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64379         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64380         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64381         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64382         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64383         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64384         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64385         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64386         not check for things that C99 does not require, e.g., int8_t.  If
64387         a test isn't needed unless <stdint.h> isn't working, and is
64388         unlikely to be needed for any other reason, then don't do it
64389         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64390         size_t, since we assume C89 freestanding at least.  Do not check
64391         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64392         the right thing even if the types are not defined.  Instead use:
64393         (gl_STDINT_TYPE_PROPERTIES): New macro.
64394         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64395         testing whether <sys/types.h> clashes, as Autoconf does this for
64396         us now.  All uses removed.
64397         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64398         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64399         (gl_CHECK_TYPE_SAME):
64400         Remove; no longer needed.
64401         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64402         exists, since we'll return 0 anyway in that case.
64403         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64404
64405 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64408         possible collision with system files.
64409         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64410         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64411         WCHAR_MIN and WCHAR_MAX in this case.
64412         (<stddef.h>): Do not include; no longer needed.
64413         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64414         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64415         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64416         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64417         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64418         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64419         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64420         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64421         !defined(__c99))]: Include in this case too, since it's harmless
64422         now.
64423         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64424         dangerous to do so.
64425         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64426         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64427         (_STDINT_MIN, _STDINT_MAX): New macros.
64428         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64429         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64430         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64431         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64432         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64433         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64434         macros, not typedefs; this simplifies things quite a bit.
64435         Use long int for all types narrower than int64_t.
64436         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64437         Define in terms of long long int or int64_t or long int,
64438         not int64_t or int32_t.  This saves some compile-time testing.
64439         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64440         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64441         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64442         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64443         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64444         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64445         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64446         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64447         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64448         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64449         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64450         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64451         undef any previous version and define our own version, for
64452         simplicity and consistency with the new macros for types.
64453         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64454         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64455         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64456         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64457         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64458         @WINT_T_SUFFIX@ to keep things simple here.
64459         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64460         Simplify by assuming typical 8/16/32/64 host, since we're
64461         already doing that elsewhere anyway.
64462         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64463         and assume long long int is 64 bits if available.  This
64464         speeds up 'configure'.
64465
64466 2006-07-01  Eric Blake  <ebb9@byu.net>
64467
64468         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64469         Reported by Andreas Buening.
64470
64471 2006-07-01  Eric Blake  <ebb9@byu.net>
64472
64473         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64474
64475 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64476
64477         * lib/getaddrinfo.c: fixed typo
64478
64479 2006-06-29  Jim Meyering  <jim@meyering.net>
64480
64481         * modules/strftime (Maintainer): Add my name, since with the
64482         FPRINTFTIME changes strftime.c has forked from glibc.
64483
64484 2006-06-29  Eric Blake  <ebb9@byu.net>
64485
64486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64487
64488 2006-06-29  Eric Blake  <ebb9@byu.net>
64489
64490         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64491
64492 2006-06-29  Eric Blake  <ebb9@byu.net>
64493
64494         * lib/stat_.h: New file.
64495
64496 2006-06-29  Eric Blake  <ebb9@byu.net>
64497
64498         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64499         unused static function.
64500
64501 2006-06-29  Eric Blake  <ebb9@byu.net>
64502
64503         * doc/functions.texi (Function Portability): Document missing lstat
64504         on mingw.
64505
64506 2006-06-29  Eric Blake  <ebb9@byu.net>
64507
64508         * MODULES.html.sh: Add sys_stat.
64509         * modules/sys_stat: New module.
64510         * modules/mkstemp (Depends-on): Add sys_stat.
64511
64512 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64513
64514         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64515
64516 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64517
64518         * m4/c-bs-a.m4: Removed.
64519
64520 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64521
64522         * lib/strftime.c: Assume strftime() exists.
64523
64524 2006-06-29  Derek Price  <derek@ximbiot.com>
64525
64526         * modules/c-bs-a: Removed - \a is C89.
64527         * MODULES.html.sh: Remove c-bs-a.
64528
64529 2006-06-29  Bruno Haible  <bruno@clisp.org>
64530
64531         * modules/wcwidth (License): Change to LGPL.
64532
64533 2006-06-28  Simon Josefsson  <jas@extundo.com>
64534
64535         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64536         on _WIN32.
64537
64538         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64539         getnameinfo.
64540
64541 2006-06-28  Simon Josefsson  <jas@extundo.com>
64542
64543         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64544
64545 2006-06-28  Simon Josefsson  <jas@extundo.com>
64546
64547         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64548         functions there.  It will succeed on Windows XP, but on Windows
64549         2000 and (presumably) earlier, it will fail, and use the internal
64550         re-implementation.
64551         (use_win32_p): New function.
64552         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64553         Support AI_NUMERICSERV to disable getservbyname.
64554         (getnameinfo): New function, only supports
64555         NI_NUMERICHOST|NI_NUMERICSERV for now.
64556
64557         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64558         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64559         getnameinfo.
64560
64561 2006-06-28  Eric Blake  <ebb9@byu.net>
64562
64563         * modules/wcwidth: New file.
64564         * modules/mbchar (Depends-on): Add wcwidth.
64565         * modules/mbswidth (Depends-on): Add wcwidth.
64566         * MODULES.html.sh: Add wcwidth.
64567
64568 2006-06-28  Eric Blake  <ebb9@byu.net>
64569
64570         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64572
64573 2006-06-28  Eric Blake  <ebb9@byu.net>
64574
64575         * lib/xvasprintf.h: Fix comments.
64576
64577 2006-06-28  Eric Blake  <ebb9@byu.net>
64578
64579         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64580         * lib/mbswidth.c (wcwidth): Move from here...
64581         * lib/wcwidth.h: ...to this new file.
64582
64583 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64584
64585         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64586
64587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64588         it's obsolete.
64589         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64590
64591 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64592
64593         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64594         Autoconf 2.60 says this stuff was obsolete.
64595
64596 2006-06-28  Bruno Haible  <bruno@clisp.org>
64597
64598         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64599
64600 2006-06-28  Bruno Haible  <bruno@clisp.org>
64601
64602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64603         gt_TYPE_WCHAR_T.
64604
64605 2006-06-28  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64608         declaration for wcwidth.
64609         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64610
64611 2006-06-28  Bruno Haible  <bruno@clisp.org>
64612
64613         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64614         (mkdir): Define using _mkdir.
64615
64616 2006-06-28  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/getaddrinfo.h: Fix POSIX URL.
64619         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64620         _WIN32.
64621         (use_win32_p): Make static.
64622         (getaddrinfo): Reject service name if it is empty or does not consist
64623         solely of decimal digits, or if its value is > 65535.
64624         (getnameinfo): Remove useless casts.
64625
64626 2006-06-27  Simon Josefsson  <jas@extundo.com>
64627
64628         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64629         Eggert and Martin Lambers.
64630
64631 2006-06-27  Simon Josefsson  <jas@extundo.com>
64632
64633         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64634         Eggert and Martin Lambers.
64635
64636 2006-06-27  Bruno Haible  <bruno@clisp.org>
64637
64638         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64639         result to 0, not to empty.
64640         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64641
64642 2006-06-27  Bruno Haible  <bruno@clisp.org>
64643
64644         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64645
64646 2006-06-26  Simon Josefsson  <jas@extundo.com>
64647
64648         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64649         present.
64650
64651 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64652
64653         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64654         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64656
64657 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64658
64659         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64660
64661 2006-06-26  Bruno Haible  <bruno@clisp.org>
64662
64663         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64664
64665 2006-06-26  Bruno Haible  <bruno@clisp.org>
64666
64667         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64668
64669 2006-06-26  Bruno Haible  <bruno@clisp.org>
64670
64671         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64672         SGI C compiler in pre-C99 mode.
64673         Suggested by Mark D. Baushke and Larry Jones.
64674
64675 2006-06-26  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64678         WCHAR_MAX.
64679         Reported by Mark D. Baushke and Larry Jones.
64680
64681 2006-06-26  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64684         in pre-C99 mode.
64685         Suggested by Mark D. Baushke and Larry Jones.
64686
64687 2006-06-23  Simon Josefsson  <jas@extundo.com>
64688             Bruno Haible  <bruno@clisp.org>
64689
64690         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64691         Emit mostlyclean-local rule.
64692         (func_emit_tests_Makefile_am): Likewise.
64693         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64694
64695 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64696
64697         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64698
64699 2006-06-23  Bruno Haible  <bruno@clisp.org>
64700
64701         * tests/test-stdint.c: Update to match ISO C 99 Technical
64702         Corrigendum 1.
64703
64704 2006-06-23  Bruno Haible  <bruno@clisp.org>
64705
64706         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64707
64708 2006-06-23  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/stdint_.h: Treat IRIX like OpenBSD.
64711
64712 2006-06-23  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64715         ISO C 99 Technical Corrigendum 1.
64716
64717 2006-06-22  Simon Josefsson  <jas@extundo.com>
64718
64719         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64720         MinGW.
64721
64722 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64725         needed.  Some compiler complained about some of them.  Problem reported
64726         by Larry Jones in
64727         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64728
64729 2006-06-21  Simon Josefsson  <jas@extundo.com>
64730
64731         * tests/test-getaddrinfo.c: New file.
64732
64733         * modules/getaddrinfo-tests: New file.
64734
64735         * MODULES.html.sh: Add inet_pton.
64736
64737         * modules/inet_pton: New file.
64738
64739 2006-06-21  Simon Josefsson  <jas@extundo.com>
64740
64741         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64742         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64743         of using the (limited) gnulib implementation on Windows XP.
64744
64745         * m4/inet_pton.m4: New file.
64746
64747 2006-06-21  Simon Josefsson  <jas@extundo.com>
64748
64749         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64750         variable.
64751
64752         * lib/socket_.h: Don't define WINVER.
64753
64754         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64755         slightly modified to work in gnulib.
64756
64757 2006-06-21  Simon Josefsson  <jas@extundo.com>
64758
64759         * doc/gnulib.texi (Windows sockets): Add.
64760
64761 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64762
64763         * lib/read-file.c (fread_file): Start with buffer allocation of
64764         0 bytes rather than 1 byte; this simplifies the code.
64765         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64766         code to free buffer and save/restore errno.
64767         (internal_read_file): Remove unused local.
64768
64769 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64770
64771         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64772         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64773         Problem reported by Denis Excoffier in
64774         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64775
64776 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64777
64778         * modules/sys_socket, modules/socklen: Include sys/types since
64779         FreeBSD 4.x's sys/socket.h needs it.
64780
64781 2006-06-19  Simon Josefsson  <jas@extundo.com>
64782
64783         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64784
64785 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64786
64787         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64788
64789 2006-06-19  Bruno Haible  <bruno@clisp.org>
64790
64791         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64792         and FULL_PATH_INTTYPES_H in angle brackets.
64793         Reported by Mark D. Baushke <mdb@gnu.org>.
64794
64795 2006-06-17  Eric Blake  <ebb9@byu.net>
64796
64797         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64798         errno.
64799
64800 2006-06-17  Bruno Haible  <bruno@clisp.org>
64801
64802         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64803         <sys/inttypes.h>.
64804
64805 2006-06-17  Bruno Haible  <bruno@clisp.org>
64806
64807         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64808         whether errno is declared. Assume <errno.h> declares errno.
64809
64810 2006-06-17  Bruno Haible  <bruno@clisp.org>
64811
64812         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64813
64814 2006-06-17  Bruno Haible  <bruno@clisp.org>
64815
64816         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64817         problem on Solaris 2.5.1.
64818
64819 2006-06-16  Eric Blake  <ebb9@byu.net>
64820
64821         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64822         * lib/unicodeio.c [!defined errno]: Likewise.
64823         * lib/strtol.c [!defined errno]: Likewise.
64824         * lib/strtod.c [!defined errno]: Likewise.
64825
64826 2006-06-15  Eric Blake  <ebb9@byu.net>
64827
64828         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64829
64830 2006-06-15  Eric Blake  <ebb9@byu.net>
64831
64832         * config/srclist.txt (ssize_t.m4): Lose sync.
64833
64834 2006-06-15  Bruno Haible  <bruno@clisp.org>
64835
64836         * modules/stdint (Files): Include m4/full-header-path.m4,
64837         m4/size_max.m4, m4/wchar_t.m4.
64838         (Makefile.am): Many more substitutions.
64839         * modules/stdint-tests: New file.
64840         * tests/test-stdint.c: New file.
64841
64842 2006-06-15  Bruno Haible  <bruno@clisp.org>
64843
64844         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64845         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64846         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64847         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64848         gl_CHECK_TYPE_SAME): New macros.
64849
64850 2006-06-15  Bruno Haible  <bruno@clisp.org>
64851
64852         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64853
64854 2006-06-15  Bruno Haible  <bruno@clisp.org>
64855
64856         * lib/stdint_.h: Rewritten to be fully auto-configured.
64857         Fixes bug on HP-UX/IA64.
64858
64859 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * lib/getdate.y (__attribute__): Don't define if already defined.
64862         Problem reported by Larry Jones.
64863         * lib/utimens.c (__attribute__): Likewise.
64864
64865 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64868         reported by Andreas Schwab.
64869
64870 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64871             Bruno Haible  <bruno@clisp.org>
64872
64873         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64874         check for the declaration of strnlen and a run test that exposes the
64875         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64876         rpl_strndup.
64877
64878 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64879             Bruno Haible  <bruno@clisp.org>
64880
64881         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64882
64883 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64884
64885         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64886         compile test, for Tru64 4.0D.
64887
64888 2006-05-28  Karl Berry  <karl@gnu.org>
64889
64890         * config/srclist.txt (printf-args.c): lose sync.
64891
64892 2006-05-26  Martin Lambers  <marlam@marlam.de>
64893
64894         * lib/getpass.c: Updates the test for the native W32 API, and adds
64895         missing includes, thus fixing compilation warnings.
64896
64897 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64898
64899         * lib/exclude.c (exclude_fnmatch): New function.
64900         (excluded_file_name): Call exclude_fnmatch.
64901         * lib/exclude.h (excluded_file_name): New prototype
64902
64903 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * lib/tempname.c (small_open, large_open): New macros.
64906         (__open, __open64) [!_LIBC]: Remove.
64907         (__gen_tempname): Use small_open and large_open instead of __open
64908         and __open64.  This fixes a portability bug on HP-UX 11.11i
64909         reported by Simon Wing-Tang in
64910         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64911
64912 2006-05-24  Bruno Haible  <bruno@clisp.org>
64913
64914         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64915         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64916         Reported by Thorsten Maerz <torte@netztorte.de> via
64917         Aaron Stone <aaron@serendipity.cx>.
64918
64919 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64922         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64923         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64924         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64925         not really conditional on the cache.
64926         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64927
64928 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64931         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64932         (my_usleep): Don't mishandle maximum value.
64933
64934 2006-05-19  Jim Meyering  <jim@meyering.net>
64935
64936         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64937
64938 2006-05-17  Bruno Haible  <bruno@clisp.org>
64939
64940         Cygwin portability.
64941         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64942
64943 2006-05-17  Bruno Haible  <bruno@clisp.org>
64944
64945         * lib/stdint_.h: Fix recognition of Cygwin.
64946
64947 2006-05-15  Bruno Haible  <bruno@clisp.org>
64948
64949         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64950         on libtool patch by Ralf Wildenhues.
64951
64952 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64955         test for C99 conformance; (bool) 0.5 is an integer constant
64956         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64957         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64958
64959 2006-05-11  Simon Josefsson  <jas@extundo.com>
64960
64961         * m4/xvasprintf.m4: Fix obvious typo.
64962
64963 2006-05-11  Jim Meyering  <jim@meyering.net>
64964
64965         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64966         James Lemley.
64967
64968 2006-05-10  Simon Josefsson  <jas@extundo.com>
64969
64970         * lib/md4.c: Typo fix, update copyright years.
64971         (K1, K2): Don't use L because it turn computations into 64-bit on
64972         64-bit platforms.
64973
64974 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64977         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64978         unwanted sign propagation, e.g., on hosts with 64-bit int.
64979         There still are some problems with reeelly weird theoretical hosts
64980         (e.g., 33-bit int) but it's not worth worrying about now.
64981         * lib/sha1.c (rol): Likewise.
64982         (K1, K2, K3, K4): Remove unnecessary L suffix.
64983
64984 2006-05-10  Bruno Haible  <bruno@clisp.org>
64985
64986         * lib/des.c: Cast to avoid warnings.
64987
64988 2006-05-09  Bruno Haible  <bruno@clisp.org>
64989
64990         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64991         (Depends-on): Depend also on xsize, stdarg.
64992         (configure.ac): Add gl_XVASPRINTF.
64993
64994 2006-05-09  Bruno Haible  <bruno@clisp.org>
64995
64996         * m4/xvasprintf.m4: New file.
64997
64998 2006-05-09  Bruno Haible  <bruno@clisp.org>
64999
65000         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65001         (EOVERFLOW): Define fallback value.
65002         (xstrcat): New function.
65003         (xvasprintf): Recognize the special case of a string concatenation.
65004
65005 2006-05-08  Eric Blake  <ebb9@byu.net>
65006
65007         * gnulib-tool (func_version): Base copyright year on CVS date.
65008         (func_emit_copyright_notice): New function.
65009         (func_emit_lib_Makefile_am): Use it.
65010         (func_emit_tests_Makefile_am): Likewise.
65011         (func_import): Likewise.
65012
65013 2006-05-08  Bruno Haible  <bruno@clisp.org>
65014
65015         * modules/stdarg: New file.
65016         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65017
65018 2006-05-08  Bruno Haible  <bruno@clisp.org>
65019
65020         * m4/stdarg.m4: New file, from GNU gettext.
65021
65022 2006-05-08  Bruno Haible  <bruno@clisp.org>
65023
65024         * config/srclist.txt (build-aux/config.rpath): different from latest
65025         release.
65026
65027 2006-05-08  Bruno Haible  <bruno@clisp.org>
65028
65029         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65030
65031 2006-05-05  Jim Meyering  <jim@meyering.net>
65032
65033         * m4/warning.m4: New file, derived from bison's file by the same name.
65034
65035 2006-05-03  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/stdint_.h: Shorter URL.
65038         * lib/inttypes.h: Likewise.
65039
65040 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65043
65044 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * lib/verify.h: Document the internals better.  Most of this change
65047         was written by Bruno Haible.
65048
65049 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * doc/verify.texi: New file, partly based on a proposal by
65052         Bruno Haible.
65053
65054 2006-05-02  Bruno Haible  <bruno@clisp.org>
65055
65056         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65057         test from here...
65058         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65059
65060 2006-04-29  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65063         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65064
65065 2006-04-29  Bruno Haible  <bruno@clisp.org>
65066
65067         * gnulib-tool: Make --update option actually work.
65068
65069 2006-04-29  Bruno Haible  <bruno@clisp.org>
65070
65071         * doc/gcd.texi: New file.
65072         * doc/gnulib.texi: Include it.
65073
65074 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         * lib/getdate.y (get_date): When adding relative date, start with the
65077         initial time, not with the result of the first mktime call.
65078
65079 2006-04-25  Bruno Haible  <bruno@clisp.org>
65080
65081         * gnulib-tool (func_import): Output the include directives in three
65082         blocks, sorted separately.
65083         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65084
65085 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65088         to define main with arguments, for C++.  Reported by Eric Blake.
65089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65090         Prefer 'int main ()' to 'int main (void)', for C++.
65091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65092         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65093         for 'main', for C99 and C++.
65094
65095 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65096
65097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65098         Don't assume that exit status -1 is valid.
65099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65100         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65102         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65103         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65104         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65105         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65106         functions can be used without declaring them, or that you can
65107         exit with status -1.
65108         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65109
65110 2006-04-24  Karl Berry  <karl@gnu.org>
65111
65112         * config/srclist.txt (longdouble.m4): sync lost.
65113
65114 2006-04-24  Eric Blake  <ebb9@byu.net>
65115
65116         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65117
65118 2006-04-24  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65121         poll() implementation in AIX.
65122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65123
65124 2006-04-24  Bruno Haible  <bruno@clisp.org>
65125
65126         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65127         assigned exactly once.
65128
65129 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65130             Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65133         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65134         for AM_CPPFLAGS.
65135
65136 2006-04-23  Bruno Haible  <bruno@clisp.org>
65137
65138         * modules/copy-file: Depend on unistd.
65139         * modules/execute: Likewise.
65140         * modules/fatal-signal: Likewise.
65141         * modules/findprog: Likewise.
65142         * modules/mkdtemp : Likewise.
65143         * modules/pipe: Likewise.
65144         * modules/wait-process: Likewise.
65145
65146 2006-04-23  Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65149         condition was already detected.
65150         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65151
65152 2006-04-23  Bruno Haible  <bruno@clisp.org>
65153
65154         * lib/copy-file.c: Include <unistd.h> unconditionally.
65155         * lib/execute.c: Likewise.
65156         * lib/fatal-signal.c: Likewise.
65157         * lib/findprog.c: Likewise.
65158         * lib/mkdtemp.c: Likewise.
65159         * lib/pipe.h: Likewise.
65160         * lib/pipe.c: Likewise.
65161         * lib/wait-process.h: Likewise.
65162
65163 2006-04-23  Bruno Haible  <bruno@clisp.org>
65164
65165         * gnulib-tool (func_usage): Fix --import description. Document
65166         --update.
65167         (func_import): Create temporary file in a temporary directory, if
65168         --dry-run is specified. Silence errors from 'grep' when there are no
65169         m4 files in $m4dir.
65170         (func_create_testdir): Silence errors from 'grep' when there are no
65171         m4 files in $m4dir.
65172         Reported by Karl Berry <karl@freefriends.org>.
65173
65174 2006-04-20  Bruno Haible  <bruno@clisp.org>
65175
65176         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65177         one argument, so that the code will be portable to Autoconf 2.60.
65178         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65179         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65180         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65181
65182 2006-04-19  Derek Price  <derek@ximbiot.com>
65183             Eric Blake  <ebb9@byu.net>
65184
65185         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65186         rather than "/full/path.h".  Update comment to match.  Shorten &
65187         generalize m4_translit call via AS_TR_CPP.
65188
65189 2006-04-19  Derek Price  <derek@ximbiot.com>
65190             Eric Blake  <ebb9@byu.net>
65191
65192         * lib/inttypes.h: Correct grammar in comment.
65193
65194 2006-04-18  Derek Price  <derek@ximbiot.com>
65195             Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * modules/inttypes: New file.
65198         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65199
65200 2006-04-18  Derek Price  <derek@ximbiot.com>
65201             Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65204         New files.
65205
65206 2006-04-18  Derek Price  <derek@ximbiot.com>
65207             Paul Eggert  <eggert@cs.ucla.edu>
65208
65209         * lib/inttypes.h: New file.
65210         * lib/strtoimax.c: Assume <inttypes.h>.
65211
65212 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65215         isn't mounted.  Problem reported by Kir Kolyshkin.
65216
65217 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65218
65219         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65220         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65221         Derek R. Price.
65222         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65223         implementation.
65224
65225 2006-04-12  Eric Blake  <ebb9@byu.net>
65226
65227         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65228         is now done automatically by the corresponding Autoconf macro.
65229
65230 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65233         time_r.h.
65234
65235 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65236
65237         Merge regex changes from libc, removing some of our
65238         POSIX-conformance changes that were rejected and redoing them in a
65239         less-intrusive way.
65240
65241         * lib/regcomp.c (re_compile_internal, init_dfa):
65242         Length arg is now size_t, not Idx.  All uses changed.
65243         (peek_token): Forward decl now says internal_function.
65244         (__re_error_msgid, __re_error_msgid_idx):
65245         Now static rather than extern with attribute_hidden.
65246         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65247         For some reason libc prefers K&R style defns for external functions.
65248         (regerror) [!defined _LIBC]: Likewise.
65249         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65250         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65251         (build_range_exp, build_collating_symbol):
65252         Use K&R-style defn.
65253         (re_compile_fastmap): Use '\0' to memset, not 0.
65254         (utf8_sb_map): Make the calculations more obvious.
65255         (init_dfa, parse_bracket_exp, build_charclass_op):
65256         Call calloc and cast result, as glibc does.
65257         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65258         (build_range_exp, build_collating_symbol):
65259         Now internal functions.
65260
65261         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65262
65263         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65264         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65265         Don't depend on VMS; depend on __VMS instead, for POSIX
65266         namespace cleanness.
65267         (regoff_t): Define to ssize_t, not long int.
65268
65269         Remove the REG_ macros named below.  Instead, make the old names
65270         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65271         __USE_GNU_REGEX.
65272         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65273         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65274         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65275         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65276         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65277         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65278         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65279         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65280         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65281         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65282         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65283         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65284         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65285         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65286         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65287         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65288         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65289         (REG_NREGS):
65290         Remove.  All uses replaced by the old RE_* names.
65291         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65292         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65293         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65294         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65295         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65296         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65297         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65298         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65299         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65300         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65301         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65302         Don't bother having these macros be independent of each others'
65303         values, since they no longer exist in the POSIX name space.
65304
65305         Rename the following member names back to their old names,
65306         unless !__USE_GNU_REGEX.  All uses changed back.
65307         (buffer): Renamed from re_buffer.
65308         (allocated): Renamed from re_allocated.
65309         (used): Renamed from re_used.
65310         (syntax): Renamed from re_syntax.
65311         (fastmap): Renamed from re_fastmap.
65312         (translate): Renamed from re_translate.
65313         (can_be_null): Renamed from re_can_be_null.
65314         (regs_allocated): Renamed from re_regs_allocated.
65315         (fastmap_accurate): Renamed from re_fastmap_accurate.
65316         (no_sub): Renamed from re_no_sub.
65317         (not_bol): Renamed from re_not_bol.
65318         (not_eol): Renamed from re_not_eol.
65319         (newline_anchor): Renamed from re_newline_anchor.
65320         (num_regs): Renamed from rm_num_regs.
65321         (start): Renamed from rm_start.
65322         (end): Renamed from rm_end.
65323
65324         (free_state): Move up a bit.
65325
65326         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65327         #define to be empty.
65328         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65329         when that is what is intended.
65330         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65331         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65332         (MAX): New macro.
65333         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65334         All uses changed back to re_malloc, etc.  It's now the caller's
65335         responsibility to check for overflow; all callers changed.
65336         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65337         (re_x2nrealloc): Remove.
65338         (free_state): Remove decl.
65339
65340         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65341         (re_set_registers, re_exec):
65342         Use K&R-style defn.
65343
65344         2006-01-31  Roland McGrath  <roland@redhat.com>
65345
65346         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65347         Reported by Mike Frysinger <vapier@gentoo.org>.
65348
65349         2006-01-15  Andreas Jaeger  <aj@suse.de>
65350
65351         [BZ #1950]
65352         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65353         build_wcs_upper_buffer change.
65354         (build_wcs_upper_buffer): Change return type.
65355
65356         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65357
65358         * lib/regex_internal.h: Include <stdint.h> if available.
65359
65360         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65361
65362         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65363
65364         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65365
65366         * lib/regcomp.c: Adjust for changed secondary hash function.
65367
65368         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65369
65370         * lib/regex.h: Pretty printing.
65371         Clean up namespace a bit.
65372
65373         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65374
65375         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65376         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65377
65378         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65379                     Ulrich Drepper  <drepper@redhat.com>
65380
65381         [BZ #1302]
65382         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65383         changed.
65384         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65385
65386         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65387
65388         [BZ #281]
65389         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65390         * lib/regcomp.c: Remove unnecessary uses of
65391         unsigned RE_TRANSLATE_TYPE.
65392         * lib/regex_internal.h: Likewise.
65393         * lib/regex_internal.c: Likewise.
65394         * lib/regexec.c: Likewise.
65395         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65396
65397         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65398
65399         * lib/regexec.c (find_recover_state): Remove unnecessary
65400         initialization.
65401         (transit_state_bkref): Make DFA a const pointer.
65402         (get_subexp): Likewise.
65403         (check_arrival): Likewise.
65404         (update_cur_sifted_state): Likewise.
65405         (re_search_internal): Likewise.
65406         (prune_impossible_nodes): Likewise.
65407         (acquire_init_state_context): Likewise.
65408         (proceed_next_node): Likewise.
65409         (set_regs): Likewise.
65410         (free_fail_stack_return): Likewise.
65411         (check_arrival_expand_ecl): Mark DFA parameter as const.
65412         (check_arrival_expand_ecl_sub): Likewise.
65413         (check_subexp_limits): Likewise.
65414         (sub_epsilon_src_nodes):  Likewise.
65415         (add_epsilon_src_nodes):  Likewise.
65416         (merge_state_array): Likewise.
65417         (update_regs): Likewise.
65418         (build_trtable): Likewise.
65419         (sift_states_backward): Mark MCTX parameter as const.
65420         (build_sifted_states): Likewise.
65421         (update_cur_sifted_state): Likewise.
65422         (sift_states_mkref): Likewise.
65423         (check_arrival_expand_ecl): Mark eclosure as const.
65424         (check_dst_limits_calc_pos_1): Likewise.
65425         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65426         pointer.
65427
65428         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65429
65430         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65431         (transit_state_sb): Likewise.
65432         (transit_state_mb): Likewise.
65433         (sift_states_iter_mb): Likewise.
65434         (check_arrival_add_next_nodes): Likewise.
65435         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65436         [_LIBC] (re_search_2_stub): Use mempcpy.
65437
65438         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65439         mbrtowc for very simple UTF-8 case.
65440
65441         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65442         a pointer-to-const.
65443         (re_acquire_state_context): Likewise.
65444         * lib/regex_internal.h: Adjust prototypes.
65445
65446         * lib/regex.c: Prevent using C++ compilers.
65447
65448         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65449         (re_acquire_state_context): Likewise.
65450
65451 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65452
65453         * modules/regex (Depends-on): Add ssize_t.
65454
65455 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65458         translation table.
65459
65460 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65463
65464 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65465             Bruno Haible  <bruno@clisp.org>
65466
65467         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65468         <sys/types.h> and <inttypes.h>.
65469
65470 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65471
65472         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65473         `__error_t_defined', so argp.h will not typedef the former.
65474
65475 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65478         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65479         glibc names.  Even if glibc is changed to conform to POSIX, the
65480         traditional names will be available anyway, since regex depends on
65481         the extensions module.  Also, fix a longstanding typo in the
65482         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65483         reported by Emanuele Giaquinta.  Also, change sense of cached
65484         variable, so that the message makes sense.
65485
65486 2006-03-24  Simon Josefsson  <jas@extundo.com>
65487
65488         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65489         including some doc fixes.
65490         (base64_encode_alloc): Fix +1 bug on allocation failures.
65491
65492 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65493
65494         * lib/base64.c (base64_encode): Do not read past end of array with
65495         unsanitized input on systems with CHAR_BIT > 8.
65496
65497 2006-03-24  Eric Blake  <ebb9@byu.net>
65498
65499         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65500
65501 2006-03-22  Karl Berry  <karl@gnu.org>
65502
65503         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65504         * config/srclistvars.sh (COREUTILS): new var.
65505
65506 2006-03-17  Jim Meyering  <jim@meyering.net>
65507
65508         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65509         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65510
65511 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65514         no longer needs it.  Instead, check that regoff_t is as least
65515         as wide as ptrdiff_t.
65516
65517         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65518         so that our regex.h stays compatible with the installed regex.
65519         This is helpful for installers who configure --without-included-regex.
65520         Problem reported by Emanuele Giaquinta.
65521
65522 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65523
65524         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65525         Typedef to long int, not to off_, as POSIX will likely change
65526         in that direction.
65527
65528 2006-03-15  Eric Blake  <ebb9@byu.net>
65529
65530         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65531
65532 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65533
65534         * lib/argp-help.c (validate_uparams): Fix typo
65535         * lib/argp-parse.c (argp_default_options): Consistently begin help
65536         messages with a lowercase letter.
65537
65538 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65539
65540         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65541         overrun buffers and shouldn't be used (much as gets shouldn't be
65542         used).
65543         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65544
65545 2006-03-08  Simon Josefsson  <jas@extundo.com>
65546
65547         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65548         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65549
65550 2006-03-08  Simon Josefsson  <jas@extundo.com>
65551
65552         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65553         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65554
65555 2006-03-08  Simon Josefsson  <jas@extundo.com>
65556
65557         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65558         signal that configure disabled the device.
65559
65560 2006-03-08  Simon Josefsson  <jas@extundo.com>
65561
65562         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65563         languages.
65564
65565 2006-03-07  Simon Josefsson  <jas@extundo.com>
65566
65567         * modules/getopt (Depends-on): Add unistd.
65568
65569         * modules/unistd: New file.
65570
65571 2006-03-07  Simon Josefsson  <jas@extundo.com>
65572
65573         * modules/gc-random: New file.
65574
65575 2006-03-07  Simon Josefsson  <jas@extundo.com>
65576
65577         * m4/unistd_h.m4: New file.
65578
65579 2006-03-07  Simon Josefsson  <jas@extundo.com>
65580
65581         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65582         test to be side-effect free by storing the result in the cache
65583         variable gl_cv_lib_readline, and moving the assignment of
65584         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65585         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65586
65587 2006-03-07  Simon Josefsson  <jas@extundo.com>
65588
65589         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65590         error on missing devices (the functions will return an error).
65591
65592         * m4/gc.m4: Move random stuff to gc-random.m4
65593
65594 2006-03-07  Simon Josefsson  <jas@extundo.com>
65595
65596         * lib/unistd_.h: New file.
65597
65598 2006-03-07  Simon Josefsson  <jas@extundo.com>
65599
65600         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65601
65602 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65603
65604         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65605         Problem reported by Juan Manuel Guerrero.
65606
65607 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65608
65609         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65610         the unistd module.
65611         * lib/getlogin_r.c: Likewise.
65612         * lib/getlogin_r.h: Likewise.
65613         * lib/glob.c: Likewise.
65614         * lib/pagealign_alloc.c: Likewise.
65615         * lib/unistd_.h: Remove; no longer needed.
65616
65617 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65620         Add unistd.
65621         * modules/c-stack (Depends-on): Add unistd.
65622         * modules/getlogin_r: Likewise.
65623         * modules/glob: Likewise.
65624         * modules/pagealign_alloc: Likewise.
65625         * modules/unistd (Files): Remove lib/unistd_.h.
65626         (EXTRA_DIST): Remove.
65627         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65628         need unistd_.h.
65629         (MOSTLYCLEANFILES): Remove unistd.h-t.
65630
65631 2006-03-03  Simon Josefsson  <jas@extundo.com>
65632
65633         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65634
65635 2006-03-03  Simon Josefsson  <jas@extundo.com>
65636
65637         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65638         libidn and bison.
65639
65640 2006-03-03  Simon Josefsson  <jas@extundo.com>
65641
65642         * build-aux/maint.mk: Add indent target.
65643
65644 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65645
65646         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65647         our replacement poll.h in any case, to avoid a differing
65648         declaration from a system header.  Seen on AIX.
65649
65650 2006-03-01  Simon Josefsson  <jas@extundo.com>
65651
65652         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65653         <kasal@ucw.cz>.
65654
65655 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * modules/gettime (Depends-on): Add extensions module.
65658         * modules/nanosleep (Depends-on): Likewise.
65659         * modules/settime (Depends-on): Likewise.
65660
65661 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65664         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65665         pedantically.
65666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65667         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65668
65669         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65670         not "==".  Reported by Ralf Wildenhues.
65671
65672 2006-03-01  Karl Berry  <karl@gnu.org>
65673
65674         * doc/Copyright/request-*: new files, synced from gnuorg.
65675
65676 2006-03-01  Karl Berry  <karl@gnu.org>
65677
65678         * config/srclist.txt (Copyright/*): new entries.
65679
65680 2006-02-28  Simon Josefsson  <jas@extundo.com>
65681
65682         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65683
65684 2006-02-27  Simon Josefsson  <jas@extundo.com>
65685
65686         * lib/base64.h: Indent #define's.  From Jim Meyering
65687         <jim@meyering.net>.
65688
65689 2006-02-27  Jim Meyering  <jim@meyering.net>
65690
65691         Revert the change of 2006-02-24, so these files can continue
65692         to be sync'd from gettext.
65693         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65694         of `config.h'.
65695
65696 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * modules/intprops: New file.
65699         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65700         Add intprops.
65701         * modules/getloadavg (Files): Remove lib/intprops.h.
65702         (Depends-on): Add intprops.
65703         * modules/human: Likewise.
65704         * modules/inttostr: Likewise.
65705         * modules/openat: Likewise.
65706         * modules/sig2str: Likewise.
65707         * modules/userspec: Likewise.
65708         * modules/utimecmp: Likewise.
65709         * modules/xnanosleep: Likewise.
65710         * modules/xstrtol: Likewise.
65711
65712 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65713
65714         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65715         * modules/lock-tests (TESTS): Use $(EXEEXT).
65716         * modules/tls-tests: Likewise.
65717         * modules/argp-tests: Likewise.
65718         (check_PROGRAMS): New var, replacing...
65719         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65720
65721 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65722
65723         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65724         `config.h'.
65725
65726 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65729
65730 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65731
65732         Sync from coreutils.
65733         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65734         gl_CHDIR_SAFER.
65735
65736 2006-02-22  Jim Meyering  <jim@meyering.net>
65737
65738         Sync from coreutils.
65739         * m4/chdir-safer.m4: New file.
65740
65741 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65744         AT_FDCWD exceeds INT_MAX.
65745         * lib/openat.h (AT_FDCWD): Likewise.
65746
65747 2006-02-17  Eric Blake  <address@hidden>
65748
65749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65750
65751 2006-02-16  Simon Josefsson  <jas@extundo.com>
65752
65753         * modules/getaddrinfo (Depends-on): Add sys_socket.
65754
65755 2006-02-15  Simon Josefsson  <jas@extundo.com>
65756
65757         * build-aux/maint.mk: Add dsyntax-check rule.
65758
65759 2006-02-15  Eric Blake  <ebb9@byu.net>
65760
65761         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65762         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65763         'present but cannot compile' warnings on cygwin.
65764         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65765         use ws2tcpip.h if sys/socket.h works.
65766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65767         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65768
65769 2006-02-14  Simon Josefsson  <jas@extundo.com>
65770
65771         * modules/maintainer-makefile (Files): Rename.
65772
65773         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65774         and (the local) Makefile.cfg to maint-cfg.mk.
65775
65776         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65777         to the latter.
65778
65779         * modules/maintainer-makefile: New module.
65780
65781         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65782         severaly stripped to make it possible to build it up from scratch
65783         with reliable tests.
65784
65785         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65786         fixes to permit overriding the default actions when configure and
65787         makefile are not available.
65788
65789 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         Sync from coreutils.
65792         * modules/lstat (Depends-on): Don't depend on xalloc.
65793         (License): Change from GPL to LGPL, since this is now simply a
65794         replacement for a libc function.
65795
65796 2006-02-14  Jim Meyering  <jim@meyering.net>
65797
65798         Sync from coreutils.
65799
65800         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65801         failure on deficient systems, and simplify gnulib lgpl dependencies.
65802         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65803         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65804
65805         * lib/xalloc-die.c: Remove unused definition of N_.
65806
65807 2006-02-14  Jim Meyering  <jim@meyering.net>
65808
65809         Sync from coreutils.
65810         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65811         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65812         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65813         double-quote uses of that variable, to accommodate the rare case in
65814         which getmntent is available in none of the libraries checked.  This
65815         happens at least on FreeBSD 5.0.
65816
65817 2006-02-13  Simon Josefsson  <jas@extundo.com>
65818
65819         * gnulib-tool (Usage): Fix --import, from
65820         karl@freefriends.org (Karl Berry).
65821
65822 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65823
65824         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65825
65826 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65827
65828         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65829         "autoupdate" on 2005-12-12.
65830
65831 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         * modules/closeout (Depends-on): Remove atexit.
65834
65835 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65838         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65839
65840 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65843         __EXTENSIONS__ if this causes compilation to fail.  Problem
65844         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65845         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65846
65847 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65850         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65852         All uses changed.
65853
65854 2006-01-26  Simon Josefsson  <jas@extundo.com>
65855
65856         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65857         prototype is visible on mingw32.
65858
65859         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65860         for mingw32.
65861
65862         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65863         mingw32).
65864
65865 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65868         attempt to open for write; this always fails, at least on POSIX
65869         hosts.  This reinstates the 2006-01-09 change, which was
65870         inadvertently removed.
65871
65872 2006-01-26  Bruno Haible  <bruno@clisp.org>
65873
65874         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65875         Reported by Paul Eggert.
65876
65877 2006-01-26  Bruno Haible  <bruno@clisp.org>
65878             Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         * lib/stdbool_.h (_Bool)
65881         [(! (defined __cplusplus || defined __BEOS__)
65882           && !defined __GNUC__
65883           && !(defined __HP_cc || defined __xlc__
65884                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65885                || defined __sgi))]:
65886         #define to signed char in these cases too; this simplifies
65887         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65888         etc., separately) and makes it more conservative.
65889
65890 2006-01-25  Simon Josefsson  <jas@extundo.com>
65891
65892         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65893         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65894         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65895
65896 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65897
65898         * lib/argp-namefrob.h: Bugfix. Remove stray #
65899
65900 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65903         so that we test the test.
65904         Check for yet another HP-UX cc bug involving *bool |= bool.
65905
65906 2006-01-25  Karl Berry  <karl@gnu.org>
65907
65908         * config/srclist.txt (vasnprintf.c): sync lost.
65909
65910 2006-01-25  Jim Meyering  <jim@meyering.net>
65911
65912         Sync from the stable (b5) branch of coreutils:
65913
65914         * lib/fts.c (fts_children): Don't let close() clobber errno from
65915         failed fchdir().
65916
65917         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65918         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65919         a dangling symlink.  That can also happen at least for ELOOP.
65920         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65921         FYI, this bug predates the inclusion of fts.c in coreutils.
65922
65923         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65924         in their own block, so pre-c99 compilers don't object.
65925
65926         Avoid the double-free (first in fts_read, second in fts_close) that
65927         would occur when an `active' directory is made inaccessible (e.g.,
65928         via chmod a-x) during a traversal.
65929         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65930         before returning.  Reproduce this failure by
65931         mkdir -p a/b; cd a; chmod a-x . b
65932         Reported by Stavros Passas.
65933
65934 2006-01-25  Jim Meyering  <jim@meyering.net>
65935
65936         * lib/fileblocks.c: Remove more useless parentheses.
65937         * lib/readutmp.h: Likewise.
65938
65939 2006-01-25  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65942         warnings.
65943         Reported by Paul Eggert.
65944
65945 2006-01-25  Bruno Haible  <bruno@clisp.org>
65946
65947         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65948         rid of a trap command. For Solaris sh.
65949         Reported by Mark D. Baushke <mdb@gnu.org>.
65950
65951 2006-01-24  Simon Josefsson  <jas@extundo.com>
65952
65953         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65954         Bruno.
65955
65956 2006-01-24  Karl Berry  <karl@gnu.org>
65957
65958         * config/srclist.txt (argp-namefrob.h): sync lost.
65959
65960 2006-01-24  Jim Meyering  <jim@meyering.net>
65961
65962         * modules/openat (Files): Add lib/intprops.h.
65963         From Mark D. Baushke.
65964
65965 2006-01-24  Jim Meyering  <jim@meyering.net>
65966
65967         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65968         Reported by Mark D. Baushke.
65969
65970 2006-01-24  Jim Meyering  <jim@meyering.net>
65971
65972         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65973
65974 2006-01-24  Bruno Haible  <bruno@clisp.org>
65975
65976         * modules/strnlen (Maintainer): Change from glibc to all.
65977
65978 2006-01-24  Bruno Haible  <bruno@clisp.org>
65979
65980         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65981         Patch by Paul Eggert.
65982
65983 2006-01-24  Bruno Haible  <bruno@clisp.org>
65984
65985         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65986         already has it.
65987         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65988         2005-11-26.
65989
65990         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65991         'signed char' to avoid problems with the built-in _Bool type.
65992         Reported by Paul Eggert on 2005-11-26.
65993
65994 2006-01-24  Bruno Haible  <bruno@clisp.org>
65995
65996         * gnulib-tool (func_import): Avoid constructing complicated sed
65997         expressions inside backquote.
65998         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65999
66000 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66001
66002         These changes imported from libc.
66003         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66004         test and two separate function calls.
66005         * lib/strndup.c (__strndup): Add libc_hidden_def.
66006
66007 2006-01-23  Simon Josefsson  <jas@extundo.com>
66008
66009         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66010         Remove the test_*_SOURCES variable: automake infers it by default.
66011         * modules/tls-tests: Likewise.
66012
66013 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66014
66015         Work around porting bugs reported by Dieter in
66016         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66017         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66018         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66019         Include "getopt.h" first, to check interface.
66020         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66021         !HAVE_DECL_GETENV.
66022         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66023         (__strndup): Revert to K&R-style function dfns, the glibc style.
66024         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66025         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66026         Include strnlen.h first, to get prototype properly.
66027         (strnlen): Renamed from __strnlen.
66028         Remove weak alias.
66029
66030 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66033
66034 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         * config/srclist.txt: Adjust to reflect glibc reorganization.
66037         This affects only comments.
66038
66039 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66040
66041          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66042          Reported by Bruce Korb <bkorb@gnu.org>.
66043
66044 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66045
66046         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66047         to pacify gcc -Wswitch-default.
66048
66049 2006-01-22  Bruno Haible  <bruno@clisp.org>
66050
66051         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66052         temporary buffer for sprintf, take into account the precision also
66053         for 'd', 'i', 'u', 'o', 'x', 'X'.
66054
66055 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66056
66057         * modules/argp-tests: New module
66058         * tests/test-argp.c: New file
66059         * tests/test-argp-2.sh: New file
66060
66061 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66062
66063         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66064         (__argp_base_name): Removed
66065         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66066         typo.
66067         (__argp_base_name): Provide macro definition or extern declaration
66068         depending on the configuration
66069
66070 2006-01-20  Simon Josefsson  <jas@extundo.com>
66071
66072         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66073
66074 2006-01-20  Simon Josefsson  <jas@extundo.com>
66075
66076         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66077
66078 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66079
66080         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66081         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66082         Suggested by Bruno Haible.
66083
66084 2006-01-20  Karl Berry  <karl@gnu.org>
66085
66086         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66087         until changes propagate, I guess.
66088
66089 2006-01-19  Simon Josefsson  <jas@extundo.com>
66090
66091         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66092
66093 2006-01-19  Simon Josefsson  <jas@extundo.com>
66094
66095         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66096
66097 2006-01-19  Simon Josefsson  <jas@extundo.com>
66098
66099         * gnulib-tool: Set check_PROGRAMS.
66100
66101         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66102         modules/des-tests, modules/gc-arcfour-tests,
66103         modules/gc-arctwo-tests, modules/gc-des-tests,
66104         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66105         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66106         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66107         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66108         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66109         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66110         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66111         test_*_SOURCES.
66112
66113 2006-01-18  Simon Josefsson  <jas@extundo.com>
66114
66115         * modules/socklen (Depends-on): Depend on sys_socket.
66116
66117 2006-01-18  Simon Josefsson  <jas@extundo.com>
66118
66119         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66120         modules/des-tests, modules/gc-arcfour-tests,
66121         modules/gc-arctwo-tests, modules/gc-des-tests,
66122         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66123         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66124         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66125         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66126         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66127         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66128         $(EXEEXT) to automake TESTS variable, for mingw32.
66129
66130 2006-01-17  Simon Josefsson  <jas@extundo.com>
66131
66132         * modules/socklen (Include): Need sys/socket.h.
66133
66134 2006-01-17  Bruno Haible  <bruno@clisp.org>
66135
66136         * modules/ssize_t (Include): Add <sys/types.h>.
66137
66138 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66141         it's not portable and it doesn't work with cross-compiles.
66142         Problem reported by Bruno Haible.  Fix missing-$ typo in
66143         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66144         -zignore from being used with Sun's C compiler.
66145
66146 2006-01-12  Simon Josefsson  <jas@extundo.com>
66147
66148         * lib/base64.c: Fix warning, reported by Bruno Haible
66149         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66150
66151 2006-01-12  Bruno Haible  <bruno@clisp.org>
66152
66153         * modules/ldd: New file.
66154         * build-aux/ldd.sh.in: New file.
66155         * MODULES.html.sh (Support for building libraries and executables): Add
66156         ldd.
66157
66158 2006-01-12  Bruno Haible  <bruno@clisp.org>
66159
66160         * m4/ldd.m4: New file.
66161
66162 2006-01-12  Bruno Haible  <bruno@clisp.org>
66163
66164         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66165         endless loop while replacing $auxdir with build-aux.
66166
66167 2006-01-11  Simon Josefsson  <jas@extundo.com>
66168
66169         * lib/stdint_.h (SIZE_MAX): Add missing (.
66170
66171 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         Sync from coreutils.
66174         * lib/md5.c: Fix commentary typos.
66175         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66176         * lib/md5.h (__attribute__): Remove; unused.
66177         * lib/sha1.c: Fix commentary to match md5 better.
66178         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66179         so that we don't need to worry about alignment.  All uses changed.
66180         This merges the 2005-10-28 md5 change into sha1.
66181
66182 2006-01-11  Jim Meyering  <jim@meyering.net>
66183
66184         Sync from coreutils.
66185         * lib/md5.c (OP): Fix spacing.
66186
66187 2006-01-11  Bruno Haible  <bruno@clisp.org>
66188
66189         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66190         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66191         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66192
66193 2006-01-11  Bruno Haible  <bruno@clisp.org>
66194
66195         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66196         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66197         the "early" section as well.
66198
66199 2006-01-11  Bruno Haible  <bruno@clisp.org>
66200
66201         Avoid "ar: no archive members specified" error on MacOS X.
66202         * gnulib-tool (func_modules_add_dummy): New function.
66203         (func_import, func_create_testdir): Invoke it.
66204
66205 2006-01-11  Bruno Haible  <bruno@clisp.org>
66206
66207         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66208         with $auxdir in AC_CONFIG_FILES statements.
66209
66210 2006-01-11  Bruno Haible  <bruno@clisp.org>
66211
66212         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66213         Initialize also noinst_HEADERS to empty.
66214
66215 2006-01-11  Bruno Haible  <bruno@clisp.org>
66216
66217         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66218         variables.
66219         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66220         autoreconf.
66221
66222 2006-01-11  Bruno Haible  <bruno@clisp.org>
66223
66224         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66225         overridable by the user.
66226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66227
66228 2006-01-10  Simon Josefsson  <jas@extundo.com>
66229
66230         * modules/sys_socket: New file.
66231
66232 2006-01-10  Simon Josefsson  <jas@extundo.com>
66233
66234         * m4/sys_socket_h.m4: New file.
66235
66236 2006-01-10  Simon Josefsson  <jas@extundo.com>
66237
66238         * lib/socket_.h: New file.
66239
66240 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66241
66242         * modules/readutmp (Maintainer): Add myself.
66243
66244 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66247         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66248         People who are still concerned with buggy memcmp implementations
66249         can invoke gl_FUNC_MEMCMP themselves.
66250
66251 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * lib/regex_internal.h (BITSET_WORD_BITS):
66254         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66255         preprocessor mishandles large unsigned values as if they were signed.
66256         Problem reported by Claudio Fontana in
66257         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66258
66259 2006-01-10  Jim Meyering  <jim@meyering.net>
66260
66261         Avoid the double-free (first in fts_read, second in fts_close) that
66262         would occur when an `active' directory is made inaccessible (e.g.,
66263         via chmod a-x) during a traversal.
66264         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66265         before returning.  Reproduce this failure by
66266         mkdir -p a/b; cd a; chmod a-x . b
66267         Reported by Stavros Passas.
66268
66269         Sync from coreutils.
66270         * lib/sha1.c: Tweak grammar in a comment.
66271
66272 2006-01-10  Jim Meyering  <jim@meyering.net>
66273
66274         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66275         Patch by Joerg Sonnenberger.
66276
66277 2006-01-10  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/readutmp: Depend on module free.
66280         * modules/strtok_r: Depend on module restrict.
66281
66282 2006-01-10  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/gettext (configure.ac): Add an invocation of
66285         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66286
66287 2006-01-10  Bruno Haible  <bruno@clisp.org>
66288
66289         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66290         Reported by Werner Lemberg <wl@gnu.org>.
66291
66292 2006-01-10  Bruno Haible  <bruno@clisp.org>
66293
66294         * lib/localcharset.c: Update from GNU gettext.
66295
66296 2006-01-10  Bruno Haible  <bruno@clisp.org>
66297
66298         * lib/argp.h (__const): Remove macro. Use const instead.
66299         * lib/argp-fmtstream.h (__const): Likewise.
66300         * lib/glob_.h (__const): Remove macro.
66301         * lib/glob-libc.h: Use const instead of __const.
66302
66303 2006-01-10  Bruno Haible  <bruno@clisp.org>
66304
66305         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66306         variable.
66307         Needed to avoid an automake error regarding the 'gettext' module.
66308
66309 2006-01-09  Simon Josefsson  <jas@extundo.com>
66310
66311         * modules/inet_ntop (Depends-on): Add restrict.
66312
66313 2006-01-09  Simon Josefsson  <jas@extundo.com>
66314
66315         * modules/gc-rijndael-tests (License): Put under LGPL.
66316
66317         * modules/gc-des-tests (License): Likewise.
66318
66319         * modules/gc-arcfour-tests (License): Likewise.
66320
66321         * modules/gc-arctwo-tests (License): Likewise.
66322
66323         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66324
66325         * modules/gc-hmac-sha1-tests (Files): Likewise.
66326
66327         * modules/gc-hmac-md5-tests (License): Likewise.
66328
66329         * modules/gc-sha1-tests (License): Likewise.
66330
66331         * modules/gc-md5-tests (License): Likewise.
66332
66333         * modules/gc-md4-tests (License): Likewise.
66334
66335         * modules/gc-md2-tests (License): Likewise.
66336
66337         * modules/gc-tests (License): Likewise.
66338
66339         * modules/des-tests (License): Likewise.
66340
66341         * modules/md4-tests (License): Likewise.
66342
66343         * modules/md2-tests (License): Likewise.
66344
66345 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         Sync from coreutils:
66348
66349         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66350         * modules/lib-ignore: New file.
66351         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66352         chdir-safer.m4, lchmod.m4.
66353         * modules/openat: Add mkdirat.c, openat-priv.h.
66354
66355 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         Sync from coreutils.
66358         * m4/lib-ignore.m4: New file.
66359         * m4/lchmod.m4: New file.
66360
66361 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         Sync from coreutils.
66364         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66365         for write access: POSIX says that must fail.
66366         * lib/fts.c (diropen): Likewise.
66367         * lib/save-cwd.c (save_cwd): Likewise.
66368         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66369         well, for minor improvements on hosts that lack O_DIRECTORY.
66370         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66371         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66372         Fall back on chown if open failed with EACCES.
66373
66374         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66375         Report an error at compile-time if only a 1-second nominal clock
66376         resolution is found.
66377
66378         * lib/lchmod.h: New file.
66379         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66380         (make_dir_parents): Use lchown rather than chown, and
66381         lchmod rather than chmod.
66382
66383         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66384         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66385         "proc" reported by n0dalus.
66386
66387         * lib/mountlist.c: Include <limits.h>.
66388         (dev_from_mount_options)
66389         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66390         New function.  It no longer assumes "dev=" has the System V meaning
66391         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66392         (read_file_system_list)
66393         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66394         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66395         dev= in that case.
66396
66397         * lib/posixtm.h (PDS_PRE_2000): New macro.
66398         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66399         allow_century.  All usages changed.  Reject dates outside the range
66400         1969-1999 if PDS_PRE_2000 is used.
66401
66402 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66403
66404         Sync from coreutils.
66405         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66406         (Time of day items): Mention the possibility of leap seconds.
66407         Problem reported by Dr. David Alan Gilbert.
66408
66409 2006-01-09  Jim Meyering  <jim@meyering.net>
66410
66411         Sync from coreutils.
66412
66413         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66414
66415         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66416
66417         * lib/modechange.c (mode_compile): Reject an invalid mode string
66418         that starts with an octal digit.  From Andreas Gruenbacher.
66419
66420         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66421         and dup to open_safer and dup_safer, respectively.
66422         (openat_permissive): Fix typo in comment.
66423
66424         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66425         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66426         (_): Remove; no longer needed.
66427         (openat): Renamed from rpl_openat; no need for rpl_openat
66428         since openat.h renames openat for us.
66429         Replace most of the body with a call to openat_permissive,
66430         to avoid duplicate code.
66431         Port to (probably hypothetical) environments were mode_t is
66432         wider than int.
66433         (openat_permissive): Require mode arg, so that we can check
66434         types better.  Put it just after flags.  Change cwd failure
66435         indicator from pointer-to-bool to pointer-to-errno-value.
66436         All callers changed.
66437         Invoke openat_save_fail and/or openat_restore_fail if
66438         cwd_errno is null, so that openat can call us.
66439         (openat_permissive, fdopendir, fstatat, unlinkat):
66440         Simplify errno handling to avoid some duplicate code,
66441         as it's OK to set errno on success.
66442         * lib/openat.h: Revamp code so that function macros depend on
66443         __OPENAT_PREFIX only, not also on AT_FDCWD.
66444         (openat_ro): Remove.  Caller changed to use openat_permissive.
66445         (openat_permissive): Now a macro, if not a function.
66446         (openat_restore_fail, openat_save_fail): Now always functions,
66447         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66448
66449         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66450         and openat.c.
66451         * lib/mkdirat.c: Include openat-priv.h.
66452         Remove definitions of macros defined therein.
66453         * lib/openat.c: Likewise.
66454
66455         * lib/mkdirat.c (mkdirat): New file and function.
66456         * lib/openat.h (mkdirat): Declare.
66457
66458         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66459
66460         * lib/openat.h (openat_permissive): Declare.
66461         (openat_ro): Define.
66462
66463         * lib/openat.c (EXPECTED_ERRNO): New macro.
66464         (openat_permissive): New function -- used in remove.c rewrite.
66465         (all functions): Set errno just before returning, only if there
66466         was an actual failure.
66467         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66468
66469         Emulate openat-family functions using Linux's procfs, if possible.
66470         Idea and some code based on Ulrich Drepper's glibc changes.
66471
66472         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66473         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66474         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66475         before falling back on save_cwd and restore_cwd.
66476         (fdopendir, fstatat, unlinkat): Likewise.
66477
66478         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66479         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66480
66481         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66482         as second argument to va_arg.  Otherwise, some versions of gcc
66483         warn that `if this code is reached, the program will abort'.
66484
66485 2006-01-09  Jim Meyering  <jim@meyering.net>
66486
66487         Sync from coreutils.
66488         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66489         Require openat-priv.h.
66490
66491 2006-01-09  Bruno Haible  <bruno@clisp.org>
66492
66493         * modules/strnlen (Include): Use strnlen.h.
66494
66495 2006-01-09  Bruno Haible  <bruno@clisp.org>
66496
66497         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66498
66499 2006-01-09  Bruno Haible  <bruno@clisp.org>
66500
66501         * lib/sysexit_.h (EX_OK): New macro.
66502         Suggested by Martin Lambers <marlam@marlam.de>.
66503
66504 2006-01-09  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66507         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66508
66509 2006-01-09  Bruno Haible  <bruno@clisp.org>
66510
66511         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66512         numbers.
66513
66514 2006-01-09  Bruno Haible  <bruno@clisp.org>
66515
66516         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66517         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66518         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66519         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66520
66521 2006-01-09  Bruno Haible  <bruno@clisp.org>
66522
66523         * build-aux/javacomp.sh.in: New file, moved from lib/.
66524         * modules/javacomp-script (Files): Update.
66525         (configure.ac): Add AC_CONFIG_FILES invocation.
66526         (EXTRA_DIST): Remove variable.
66527
66528         * build-aux/javaexec.sh.in: New file, moved from lib/.
66529         * modules/javaexec (Files): Update.
66530         (configure.ac): Add AC_CONFIG_FILES invocation.
66531         (EXTRA_DIST): Remove javaexec.sh.in.
66532
66533         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66534         * modules/csharpcomp-script (Files): Update.
66535         (configure.ac): Add AC_CONFIG_FILES invocation.
66536         (EXTRA_DIST): Remove variable.
66537
66538         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66539         * modules/csharpexec (Files): Update.
66540         (configure.ac): Add AC_CONFIG_FILES invocation.
66541         (EXTRA_DIST): Remove csharpexec.sh.in.
66542
66543 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66544
66545         Sync from coreutils.
66546
66547         Add POSIX ACL support
66548         * lib/acl.h (copy_acl, set_acl): Add declarations.
66549         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66550         systems other than Linux.
66551         (chmod_or_fchmod): New function: use fchmod when possible,
66552         and chmod otherwise.
66553         (file_has_acl): Add a POSIX ACL implementation, with a
66554         Linux-specific subcase.
66555         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66556         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66557         acls are unsupported.
66558         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66559         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66560         are unsupported.
66561
66562 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66563
66564         Sync from coreutils.
66565         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66566
66567 2006-01-07  Bruno Haible  <bruno@clisp.org>
66568
66569         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66570         gl_EARLY.
66571
66572 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66575         Problem reported for Mingw by Mark Junker.
66576
66577 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * README: Gnulib normally doesn't generate a tarball.
66580
66581 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66582
66583         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66584         long int, not int, for nanosecond counts, so that people who are
66585         used to POSIX struct timespec won't be surprised.  Reported by Jim
66586         Meyering.
66587
66588 2005-12-28  Bruno Haible  <bruno@clisp.org>
66589
66590         * build-aux/config.rpath: Update from GNU gettext.
66591
66592 2005-12-16  Jim Meyering  <jim@meyering.net>
66593
66594         * modules/fprintftime: New module.
66595         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66596
66597 2005-12-16  Jim Meyering  <jim@meyering.net>
66598
66599         * m4/fprintftime.m4: New file.
66600
66601 2005-12-16  Jim Meyering  <jim@meyering.net>
66602
66603         * lib/fprintftime.c, lib/fprintftime.h: New files.
66604
66605 2005-12-15  Simon Josefsson  <jas@extundo.com>
66606
66607         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66608         new m4/socklen.m4.
66609
66610 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66611
66612         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66613         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66614
66615 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66616
66617         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66618         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66619         struct uparams is valid. Fall back to the default values if it is
66620         not.
66621
66622 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66623
66624         * modules/argp (Files): Add argp-pin.c
66625         (Depends-on): dirname
66626         (lib_SOURCES): Add argp-pin.c
66627
66628 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66629
66630         * m4/argp.m4:  Check if program_invocation_name and
66631         program_invocation_short_name are declared and define appropriate
66632         macros if they are not.
66633
66634 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66635
66636         * lib/argp-help.c (__argp_base_name): New function
66637         (__argp_short_program_name): Rewrite using __argp_base_name
66638         * lib/argp-namefrob.h: Define program_invocation_name and
66639         program_invocation_short_name if requested
66640         (__argp_base_name): Add prototype
66641         * lib/argp-parse.c (argp_def): Use gettext wrappers
66642         (argp_default_parser): Use __argp_base_name
66643         * lib/argp-pin.c: New file. Defines program_invocation_name and
66644         program_invocation_short_name on systems that lack them.
66645
66646 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66647
66648         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66649         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66650         porting problem reported by Georg Schwarz in
66651         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66652
66653 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66656         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66657         porting problem reported by Georg Schwarz in
66658         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66659
66660 2005-12-05  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66663         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66664         Reported by Mark Junker <mjscod@gmx.de>.
66665
66666 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66667
66668         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66669         Use implementation from Albert Chin, with some
66670         comments/corrections by Stepan Kasal and myself.
66671
66672 2005-12-02  Bruno Haible  <bruno@clisp.org>
66673
66674         * gnulib-tool (func_import): Accept GPLed build tool modules when
66675         --lgpl is given.
66676         * modules/csharpcomp-script: New file.
66677         * modules/csharpcomp: Depend on it.
66678         * modules/javacomp-script: New file.
66679         * modules/javacomp: Depend on it.
66680         Suggested by Simon Josefsson.
66681
66682 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66685         statement, to work around an HP-UX 10.20 compiler bug reported by
66686         Peter O'Gorman.
66687
66688 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * modules/savedir (Depends-on): Add openat.
66691
66692 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66693
66694         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66695         (uintmax_t) [defined uintmax_t]: Do not declare.
66696         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66697         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66698         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66699         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66700         sake of portability to weird hosts that C allows (though we don't
66701         know of any practical examples).
66702
66703         * lib/savedir.h (fdsavedir): New decl.
66704         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66705         contains most of the former guts of savedir.
66706         (savedir): Use savedirstream.
66707         Include "openat.h".
66708
66709 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * modules/obstack (Files): Add m4/ulonglong.m4.
66712         Problem reported by Davide Angelocola.
66713
66714 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66717         coreutils no longer futzes with rounding modes.
66718
66719 2005-11-14  Jim Meyering  <jim@meyering.net>
66720
66721         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66722         replacement of mkstemp.
66723
66724 2005-11-10  Simon Josefsson  <jas@extundo.com>
66725
66726         * lib/readline.c: Remove EOL.
66727
66728 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * modules/gethrxtime (Depends-on): Add gettime.
66731
66732 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66735         or gettimeofday; no longer needed.
66736
66737 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66740         time business.
66741         (gethrxtime) [! (HAVE_NANOUPTIME
66742         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66743         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66744         our own approximation.
66745
66746 2005-11-08  Eric Blake  <ebb9@byu.net>
66747
66748         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66749
66750 2005-11-08  Eric Blake  <ebb9@byu.net>
66751
66752         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66753
66754 2005-11-04  Bruno Haible  <bruno@clisp.org>
66755
66756         * gnulib-tool: Implement --update mode.
66757
66758 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         Fix porting problem reported by Theodoros V. Kalamatianos.
66761         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66762         Don't assume that futimes failing means we must fail.
66763
66764 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66765
66766         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66767         variables to suggest the intended function of the PATH_MAX check.
66768
66769 2005-10-30  Kean Johnston  <jkj@sco.com>
66770
66771         Trivial changes to support SCO systems.
66772         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66773         as PATH_MAX.
66774         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66775         where __ptr is null when no I/O is pending.
66776
66777 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66780         leave errno alone.  Problem reported by Dmitry V. Levin.
66781
66782 2005-10-28  Simon Josefsson  <jas@extundo.com>
66783
66784         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66785         Test more.
66786
66787         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66788
66789         * modules/md2, modules/md2-tests: New files.
66790
66791 2005-10-28  Simon Josefsson  <jas@extundo.com>
66792
66793         * m4/inet_ntop.m4: More tests.
66794
66795         * m4/gc-md2.m4, md2.m4: New file.
66796
66797 2005-10-28  Simon Josefsson  <jas@extundo.com>
66798
66799         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66800         "restrict" keywords, as per POSIX.  Protect the function
66801         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66802         Don't use K&R prototypes.  Check the sprintf return values.
66803         Re-define EAFNOSUPPORT if not present.  Indent.
66804
66805         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66806         suggested by Bruno Haible <bruno@clisp.org>.
66807
66808         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66809
66810         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66811
66812         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66813         libgcrypt).
66814
66815         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66816
66817         * lib/md2.h, lib/md2.c: New files.
66818
66819 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66822         errno alone.  Problem reported by Frederic Jolliton.
66823
66824 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66825
66826         * modules/verify (License): Change from GPL to LGPL.  This is a
66827         tiny module and there are apparently near-equivalents that are
66828         under the BSD license.
66829
66830 2005-10-24  Simon Josefsson  <jas@extundo.com>
66831
66832         * modules/sha1: Relicense to LGPL.
66833
66834 2005-10-24  Simon Josefsson  <jas@extundo.com>
66835
66836         * lib/md4.h: Shrink buffer size, now that we changed the type.
66837
66838 2005-10-23  Simon Josefsson  <jas@extundo.com>
66839
66840         * gnulib-tool (func_import): Fix --tests-base.
66841
66842 2005-10-22  Simon Josefsson  <jas@extundo.com>
66843
66844         * modules/arcfour (Depends-on): Need stdint.
66845
66846 2005-10-22  Simon Josefsson  <jas@extundo.com>
66847
66848         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66849         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66850
66851 2005-10-22  Simon Josefsson  <jas@extundo.com>
66852
66853         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66854         suggested by Bruno Haible <bruno@clisp.org>.
66855
66856 2005-10-22  Simon Josefsson  <jas@extundo.com>
66857
66858         * lib/crc.h: Include stddef.h, for size_t.
66859
66860 2005-10-22  Simon Josefsson  <jas@extundo.com>
66861
66862         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66863         arcfour_context struct (simplify test vector testing in GNU
66864         Shishi).
66865
66866 2005-10-21  Simon Josefsson  <jas@extundo.com>
66867
66868         * modules/des, modules/des-tests: New files.
66869
66870         * modules/gc-des, modules/gc-des-tests: New files.
66871
66872         * tests/test-des.c, tests/test-gc-des.c: New file.
66873
66874 2005-10-21  Simon Josefsson  <jas@extundo.com>
66875
66876         * modules/arctwo, modules/arctwo-tests: New files.
66877
66878         * tests/test-arctwo.c: New file.
66879
66880         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66881
66882         * tests/test-gc-arctwo.c: New file.
66883
66884 2005-10-21  Simon Josefsson  <jas@extundo.com>
66885
66886         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66887         Bruno Haible <bruno@clisp.org>.
66888
66889         * m4/gc-des.m4: New file.
66890
66891 2005-10-21  Simon Josefsson  <jas@extundo.com>
66892
66893         * m4/arctwo.m4: New file.
66894
66895         * m4/gc-arctwo.m4: New file.
66896
66897 2005-10-21  Simon Josefsson  <jas@extundo.com>
66898
66899         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66900         block.
66901
66902 2005-10-21  Simon Josefsson  <jas@extundo.com>
66903
66904         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66905         <bruno@clisp.org>.
66906
66907         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66908
66909         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66910         Bruno Haible <bruno@clisp.org>.
66911
66912         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66913         <bruno@clisp.org>.
66914
66915 2005-10-21  Simon Josefsson  <jas@extundo.com>
66916
66917         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66918
66919 2005-10-21  Simon Josefsson  <jas@extundo.com>
66920
66921         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66922
66923 2005-10-21  Simon Josefsson  <jas@extundo.com>
66924
66925         * lib/des.h, lib/des.c: New files.
66926
66927         * lib/gc-gnulib.c: Support DES.c
66928
66929 2005-10-21  Simon Josefsson  <jas@extundo.com>
66930
66931         * lib/arctwo.h, lib/arctwo.c: New files.
66932
66933         * lib/gc-gnulib.c: Support ARCTWO.
66934
66935 2005-10-21  Simon Josefsson  <jas@extundo.com>
66936
66937         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66938         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66939
66940 2005-10-21  Simon Josefsson  <jas@extundo.com>
66941
66942         * gnulib-tool (func_import, func_create_testdir): Define automake
66943         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66944         Makefile.am snippet),
66945         suggested by Bruno Haible <bruno@clisp.org>.
66946
66947         * modules/gc (Makefile.am): Use it.
66948
66949 2005-10-21  Bruno Haible  <bruno@clisp.org>
66950
66951         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66952         patch.
66953
66954 2005-10-19  Simon Josefsson  <jas@extundo.com>
66955
66956         * tests/test-gc-rijndael.c: New file.
66957
66958         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66959
66960 2005-10-19  Simon Josefsson  <jas@extundo.com>
66961
66962         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66963         interface too.
66964
66965 2005-10-19  Simon Josefsson  <jas@extundo.com>
66966
66967         * tests/test-gc-arcfour.c: New file.
66968
66969         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66970
66971 2005-10-19  Simon Josefsson  <jas@extundo.com>
66972
66973         * modules/gc-md4, modules/gc-md4-tests: New file.
66974
66975         * tests/test-gc-md4.c: New file.
66976
66977 2005-10-19  Simon Josefsson  <jas@extundo.com>
66978
66979         * m4/gc-md4.m4: New file.
66980
66981 2005-10-19  Simon Josefsson  <jas@extundo.com>
66982
66983         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66984         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66985         <kasal@ucw.cz>.
66986
66987 2005-10-19  Simon Josefsson  <jas@extundo.com>
66988
66989         * m4/gc-arcfour.m4: New file.
66990
66991         * m4/gc-rijndael.m4: New file.
66992
66993 2005-10-19  Simon Josefsson  <jas@extundo.com>
66994
66995         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66996
66997 2005-10-19  Simon Josefsson  <jas@extundo.com>
66998
66999         * lib/gc-gnulib.c: Support ARCFOUR.
67000
67001 2005-10-19  Simon Josefsson  <jas@extundo.com>
67002
67003         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67004         support.
67005
67006         * lib/gc.h: Add ECB enum type.
67007
67008         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67009
67010 2005-10-18  Simon Josefsson  <jas@extundo.com>
67011
67012         * tests/test-md5.c: New file.
67013
67014         * modules/md5-tests: New file.
67015
67016 2005-10-18  Simon Josefsson  <jas@extundo.com>
67017
67018         * tests/test-md4.c: New file.
67019
67020         * modules/md4, modules/md4-tests: New files.
67021
67022 2005-10-18  Simon Josefsson  <jas@extundo.com>
67023
67024         * m4/md4.m4: New file.
67025
67026 2005-10-18  Simon Josefsson  <jas@extundo.com>
67027
67028         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67029
67030 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67031
67032         * gnulib-tool (func_create_testdir): Omit the second check whether
67033         BUILT_SOURCES in nonempty.
67034
67035 2005-10-17  Simon Josefsson  <jas@extundo.com>
67036
67037         * tests/test-rijndael.c: New file.
67038
67039 2005-10-17  Simon Josefsson  <jas@extundo.com>
67040
67041         * modules/sha1: Depend on stdint instead of md5.
67042
67043         * modules/md5: Depend on stdint, remove uint32_t.
67044
67045 2005-10-17  Simon Josefsson  <jas@extundo.com>
67046
67047         * modules/gc-sha1-tests: New file.
67048
67049         * tests/test-gc-sha1.c: New file.
67050
67051 2005-10-17  Simon Josefsson  <jas@extundo.com>
67052
67053         * m4/md5.m4: Remove call to uint32_t.m4.
67054
67055 2005-10-17  Simon Josefsson  <jas@extundo.com>
67056
67057         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67058
67059         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67060         md5.h.
67061
67062         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67063
67064         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67065
67066 2005-10-17  Simon Josefsson  <jas@extundo.com>
67067
67068         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67069
67070 2005-10-17  Simon Josefsson  <jas@extundo.com>
67071
67072         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67073
67074 2005-10-17  Simon Josefsson  <jas@extundo.com>
67075
67076         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67077
67078         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67079
67080 2005-10-17  Bruno Haible  <bruno@clisp.org>
67081
67082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67083         that it can also be used in a test.
67084
67085 2005-10-16  Bruno Haible  <bruno@clisp.org>
67086
67087         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67088         TESTS_ENVIRONMENT, so that individual tests can augment it.
67089
67090         * gnulib-tool (func_create_testdir): Use an intermediate target for
67091         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67092         macros, like $(ALLOCA_H), which cannot be passed through the command
67093         line.
67094
67095 2005-10-15  Simon Josefsson  <jas@extundo.com>
67096
67097         * modules/rijndael-tests: New file.
67098
67099         * modules/rijndael: New file.
67100
67101 2005-10-15  Simon Josefsson  <jas@extundo.com>
67102
67103         * m4/rijndael.m4: New file.
67104
67105 2005-10-15  Simon Josefsson  <jas@extundo.com>
67106
67107         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67108
67109         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67110
67111 2005-10-14  Simon Josefsson  <jas@extundo.com>
67112
67113         * tests/test-arcfour.c: New file.
67114
67115         * modules/arcfour, modules/arcfour-tests: New files.
67116
67117 2005-10-14  Simon Josefsson  <jas@extundo.com>
67118
67119         * m4/arcfour.m4: New file.
67120
67121 2005-10-14  Simon Josefsson  <jas@extundo.com>
67122
67123         * lib/arcfour.h, lib/arcfour.c: New files.
67124
67125 2005-10-14  Roland McGrath  <roland@redhat.com>
67126
67127         Import from libc.  [BZ #1331]
67128         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67129         macro argument.
67130         Reported by Matej Vela <vela@debian.org>.
67131
67132 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67133
67134         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67135         include <wchar.h>; no longer needed.
67136
67137 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67140
67141 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67142         and  Ulrich Drepper  <drepper@redhat.com>
67143
67144         Import from libc.
67145         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67146         instead of inline stream orientation test and two separate
67147         function calls.  Pay no attention to USE_IN_LIBIO.
67148
67149 2005-10-13  Simon Josefsson  <jas@extundo.com>
67150
67151         * modules/gc-hmac-md5-tests: New file.
67152
67153         * tests/test-gc-hmac-sha1.c: New file.
67154
67155         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67156
67157         * modules/gc-hmac-md5-tests: New file.
67158
67159         * tests/test-gc-md5.c: New file.
67160
67161         * modules/gc-md5-tests: New file.
67162
67163 2005-10-13  Simon Josefsson  <jas@extundo.com>
67164
67165         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67166         Move memory allocation outside of loop.
67167
67168 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67171         intermediate directory is in a read-only file system.  Problem
67172         reported by Eric Blake.
67173
67174 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67175
67176         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67177
67178 2005-10-12  Simon Josefsson  <jas@extundo.com>
67179
67180         * tests/test-hmac-sha1.c: New file.
67181
67182         * modules/hmac-sha1-tests: New file.
67183
67184         * modules/hmac-sha1: New file.
67185
67186 2005-10-12  Simon Josefsson  <jas@extundo.com>
67187
67188         * modules/gc-sha1: New file.
67189
67190 2005-10-12  Simon Josefsson  <jas@extundo.com>
67191
67192         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67193
67194         * tests/test-gc-pbkdf2-sha1.c: New file.
67195
67196 2005-10-12  Simon Josefsson  <jas@extundo.com>
67197
67198         * modules/gc-md5, modules/gc-hmac-md5: New files.
67199
67200         * modules/gc (Files): Remove md5, memxor and hmac files.
67201
67202 2005-10-12  Simon Josefsson  <jas@extundo.com>
67203
67204         * m4/gc-pbkdf2-sha1.m4: New file.
67205
67206         * m4/gc-hmac-sha1.m4: New file.
67207
67208         * m4/gc-sha1: New file.
67209
67210         * m4/hmac-sha1.m4: New file.
67211
67212 2005-10-12  Simon Josefsson  <jas@extundo.com>
67213
67214         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67215
67216         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67217
67218 2005-10-12  Simon Josefsson  <jas@extundo.com>
67219
67220         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67221         suggested by Bruno Haible <bruno@clisp.org>.
67222
67223 2005-10-12  Simon Josefsson  <jas@extundo.com>
67224
67225         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67226
67227 2005-10-12  Simon Josefsson  <jas@extundo.com>
67228
67229         * lib/gc-pbkdf2-sha1.c: New file.
67230
67231         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67232
67233 2005-10-12  Simon Josefsson  <jas@extundo.com>
67234
67235         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67236
67237         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67238
67239 2005-10-12  Simon Josefsson  <jas@extundo.com>
67240
67241         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67242         GC_USE_HMAC_MD5, respectively.
67243
67244         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67245         (gc_md5): Fix typo.
67246
67247         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67248
67249         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67250
67251         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67252
67253 2005-10-12  Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67256         Reported by Stepan Kasal <kasal@ucw.cz>.
67257
67258 2005-10-11  Simon Josefsson  <jas@extundo.com>
67259
67260         * tests/test-crc.c: New file.
67261
67262         * modules/crc, modules/crc-tests: New files.
67263
67264 2005-10-11  Simon Josefsson  <jas@extundo.com>
67265
67266         * m4/crc.m4: New file.
67267
67268 2005-10-11  Simon Josefsson  <jas@extundo.com>
67269
67270         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67271
67272         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67273
67274         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67275
67276 2005-10-11  Simon Josefsson  <jas@extundo.com>
67277
67278         * lib/crc.h, lib/crc.c: New files.
67279
67280         * lib/gc.h (gc_hash_buffer): Add doc.
67281
67282 2005-10-11  Bruno Haible  <bruno@clisp.org>
67283
67284         * modules/c-strcasestr: New file.
67285         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67286
67287 2005-10-11  Bruno Haible  <bruno@clisp.org>
67288
67289         * modules/c-strcase: New file.
67290         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67291
67292 2005-10-11  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/strcasecmp.c: Include limits.h.
67295         (strcasecmp): Avoid integer overflow on exotic platforms.
67296         * lib/strncasecmp.c: Include limits.h.
67297         (strncasecmp): Avoid integer overflow on exotic platforms.
67298         Reported by Paul Eggert.
67299
67300 2005-10-11  Bruno Haible  <bruno@clisp.org>
67301
67302         * lib/c-strcasestr.h: New file, from GNU gettext.
67303         * lib/c-strcasestr.c: New file, from GNU gettext.
67304
67305 2005-10-11  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/c-strcase.h: New file, from GNU gettext.
67308         * lib/c-strcasecmp.c: New file, from GNU gettext.
67309         * lib/c-strncasecmp.c: New file, from GNU gettext.
67310
67311 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * modules/mempcpy (License): GPL -> LGPL.
67314         * modules/strchrnul (License): Likewise.
67315         * modules/sysexits (License): Likewise.
67316
67317 2005-10-08  Simon Josefsson  <jas@extundo.com>
67318
67319         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67320
67321 2005-10-07  Simon Josefsson  <jas@extundo.com>
67322
67323         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67324
67325 2005-10-06  Simon Josefsson  <jas@extundo.com>
67326
67327         * tests/test-hmac-md5.c: New file.
67328
67329         * modules/hmac-md5-tests: New file.
67330
67331         * modules/hmac-md5: New file.
67332
67333 2005-10-06  Simon Josefsson  <jas@extundo.com>
67334
67335         * m4/hmac-md5.m4: New file.
67336
67337         * m4/memxor.m4: Require gl_C_RESTRICT.
67338
67339 2005-10-06  Simon Josefsson  <jas@extundo.com>
67340
67341         * lib/memxor.c (memxor): Avoid casts and warnings.
67342
67343 2005-10-06  Simon Josefsson  <jas@extundo.com>
67344
67345         * lib/hmac-md5.c: New file.
67346
67347         * lib/hmac.h: New file.
67348
67349 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67350
67351         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67352         promotes to int, not unsigned int, to catch the AIX 5.3
67353         compiler bug.
67354
67355 2005-10-05  Simon Josefsson  <jas@extundo.com>
67356
67357         * modules/memxor: New file.
67358
67359         * modules/iconv (Files): Move config.rpath to havelib, it is used
67360         there.
67361
67362         * modules/havelib (Files): Add config.rpath.
67363
67364 2005-10-05  Simon Josefsson  <jas@extundo.com>
67365
67366         * m4/memxor.m4: New file.
67367
67368 2005-10-05  Simon Josefsson  <jas@extundo.com>
67369
67370         * lib/memxor.c (memxor): Fix compiler error.
67371
67372         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67373         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67374
67375         * lib/memxor.h, lib/memxor.c: New files.
67376
67377         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67378         we assume all systems have it, suggested by Jim Meyering
67379         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67380         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67381         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67382         same reasons.
67383
67384 2005-10-05  Simon Josefsson  <jas@extundo.com>
67385
67386         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67387
67388 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67391         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67392         needed, since the source code now assumes these .h files.
67393
67394 2005-10-05  Derek Price  <derek@ximbiot.com>
67395
67396         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67397
67398 2005-10-05  Bruno Haible  <bruno@clisp.org>
67399
67400         * modules/stdint (License): Change to LGPL.
67401
67402 2005-10-04  Simon Josefsson  <jas@extundo.com>
67403
67404         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67405         D. Baushke" <mdb@gnu.org>.
67406
67407 2005-10-04  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/verify.h (verify_true): Provide alternative definition for C++.
67410
67411 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67414         (SSIZE_MAX): New macro, if not already defined.
67415         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67416         than 2 GiB.
67417
67418 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67419
67420         Sync from coreutils.
67421         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67422         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67423         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67424         ULLONG_MAX doesn't work with 2.7.2.1.
67425
67426 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67429         From Ben Pfaff.
67430
67431         * modules/exclude (Depends-on): Depend on verify.
67432         * modules/strtoimax (Depends-on): Likewise.
67433         * modules/utimecmp (Depends-on): Likewise.
67434
67435 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         * lib/exclude.c: Include verify.h.
67438         (verify): Remove.  All callers changed to use verify.h's version.
67439         * lib/strtoimax.c: Likewise.
67440         * lib/utimecmp.c: Likewis.e
67441
67442         Sync from coreutils.
67443         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67444         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67445         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67446         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67447         bother returning ENOSYS if settimeofday or stime fails; just let
67448         them return whatever errno they want to return.
67449         * lib/utimens.c: Include unistd.h, for dup2.
67450         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67451         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67452
67453 2005-10-02  Jim Meyering  <jim@meyering.net>
67454
67455         Sync from coreutils.
67456         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67457         from glibc-2.2.5 that fails for read-only files.
67458
67459 2005-10-02  Jim Meyering  <jim@meyering.net>
67460
67461         Sync from coreutils.
67462         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67463         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67464         `#if HAVE_CONFIG_H'.
67465         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67466         Remove AT_FDCWD test.
67467         Do not consume the fd unless successful.
67468         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67469         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67470         block, so that we don't even try to compile it if settimeofday is
67471         available.  This works around a compilation failure on OSF1 V5.1,
67472         due to stime requiring a `long int*' while tv_sec is `int'.
67473
67474 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67475
67476         Sync from coreutils.
67477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67478         against `yes', rather than just testing for nonempty.
67479
67480 2005-10-01  Simon Josefsson  <jas@extundo.com>
67481
67482         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67483         and Darwin.
67484
67485         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67486         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67487         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67488         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67489         Check if struct addrinfo is declared.
67490
67491 2005-10-01  Simon Josefsson  <jas@extundo.com>
67492
67493         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67494         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67495         AI_* and EAI_* definitions.  Protect function declarations.
67496
67497 2005-10-01  Jim Meyering  <jim@meyering.net>
67498
67499         Sync from coreutils.
67500
67501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67502         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67503         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67505         in the inet and nsl libraries.  Required on Solaris 5.7.
67506
67507 2005-10-01  Jim Meyering  <jim@meyering.net>
67508
67509         Sync from coreutils.
67510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67511         in the inet and nsl libraries.  Required on Solaris 5.7.
67512
67513 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67514
67515         * lib/getdelim.c (getdelim): Remove unused variables.
67516
67517 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67520         so that the code works even with ancient cpp.  Portability problem
67521         with GCC 2.7.2.1 reported by Thomas M.Ott.
67522
67523 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * modules/regex (Depends-on): Add strcase.
67526
67527         * modules/gethostname (Licence): Change from GPL to LGPL, since
67528         gethostname.c is a trivial implementation of a standard library
67529         function.
67530         * modules/poll (License): Change from GPL to LGPL, since it's
67531         derived from LGPL code.
67532
67533 2005-09-27  Jim Meyering  <jim@meyering.net>
67534
67535         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67536         HAVE_CONFIG_H.
67537
67538         * lib/intprops.h (signed_type_or_expr__): Define.
67539         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67540         for unsigned types.
67541
67542 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * lib/verify.h (verify_expr): Remove, replacing with:
67545         (verify_true): New macro that returns true instead of void.
67546         (verify_type__): Remove.
67547         (verify): Use verify_true rather than verify_type__.
67548
67549 2005-09-26  Bruno Haible  <bruno@clisp.org>
67550
67551         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67552         is necessary.
67553         (lib_SOURCES): Remove mbchar.c.
67554         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67555         (Files): Add m4/mbrtowc.m4.
67556         * modules/mbiter: Likewise.
67557         * modules/mbuiter: Likewise.
67558
67559 2005-09-26  Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67562         compile mbchar.c if they are not both present.
67563         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67564         * m4/mbiter.m4 (gl_MBITER): Likewise.
67565         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67566         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67567         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67568
67569 2005-09-25  Jim Meyering  <jim@meyering.net>
67570
67571         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67572         also uses socklen_t.
67573
67574 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         * lib/utimens.c (ENOSYS): Define if not already defined.
67577         (futimens): Support having a null PATH if the file descriptor
67578         is nonnegative.
67579
67580         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67581         Remove.
67582         (__attribute): Define to empty unless GCC 3.1 or later.
67583         This works around a core dump on OpenBSD 3.4, which has GCC
67584         2.95.3, which dumps core when given __attribute__(()).  It also
67585         simplifies other tests, since we really don't want to bother with
67586         worrying about which ancient version of GCC supported what.
67587         Original problem reported by Yoann Vandoorselaere, with part of
67588         the fix suggested by Derek Price.
67589
67590 2005-09-24  Jim Meyering  <jim@meyering.net>
67591
67592         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67593         so we can once again use a positive bitfield width of 1 -- now we
67594         don't have to explain why we were using a bitfield width of 2.
67595
67596 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67599         and similarly for the other external symbols.  Problem reported
67600         by James Gallager.
67601
67602         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67603         bug reported by Jim Meyering.
67604
67605         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67606         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67607         not needed, since socklen is a prerequisite module.
67608
67609 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67610
67611         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67612         Problem reported by Eric Blake.
67613         (getaddrinfo): Initialize se so that it's not garbage.
67614         Redo internal storage allocation so that it doesn't make unportable
67615         assumptions about alignment.
67616         Fix a memory leak.
67617
67618         * lib/utimens.c (futimens): Use futimesat if available.
67619         Prefer it to futimes since it doesn't have the futimes bug.
67620
67621         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67622         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67623         Instead, declare a function that returns a pointer to an array,
67624         and use verify_type__ to declare the size of the array.
67625         Problem and germ of a solution reported by Bruno Haible.
67626         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67627         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67628
67629 2005-09-23  Jim Meyering  <jim@meyering.net>
67630
67631         Sync from coreutils.
67632         Correct build failure (socklen_t not defined) on at least
67633         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67634         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67635
67636 2005-09-23  Jim Meyering  <jim@meyering.net>
67637
67638         * modules/getaddrinfo (Depends-on): Add socklen.
67639
67640 2005-09-23  Bruno Haible  <bruno@clisp.org>
67641
67642         * tests/test-verify.c: New file.
67643
67644 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         Sync from coreutils.
67647
67648         * modules/argmatch (Depends-on): Add verify.
67649         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67650         unistd-safer.
67651         * modules/save-cwd (Depends-on): Likewise.
67652
67653         * modules/openat (Files): Add lib/openat-die.c.
67654         (Depends-on): Remove error, exitfail.
67655         Add dirname.
67656
67657         * modules/verify: New file.
67658         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67659         with "verify" module.
67660
67661 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67662
67663         Sync from coreutils.
67664
67665         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67666         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67667         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67668         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67669         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67670         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67671         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67672         Don't bother checking for string.h, stdlib.h, unistd.h.
67673         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67674         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67675         module's job.
67676         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67677         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67678
67679         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67680         (gl_GETDATE): Use it.
67681
67682         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67683
67684 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         Sync from coreutils.
67687
67688         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67689         stat-time.h.
67690         * lib/argmatch.h: Include verify.h
67691         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67692         (ARGMATCH_ASSERT): Remove; unused.
67693         * lib/canonicalize.c: Assume STDC_HEADERS.
67694         * lib/exclude.c: Include "strcase.h".
67695         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67696         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67697         and stdio-safer.h.
67698         (getusershell): Call fopen, not fopen_safer.
67699         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67700         Do not include unistd-safer.h.
67701         (save_cwd): Don't call fd_safer; no longer needed
67702         now that we include fcntl--.h.
67703
67704         * lib/getdate.y (relative_time): New type.
67705         (RELATIVE_TIME_0): New constant.
67706         (parser_control): Use relative_time instead of doing it ourselves.
67707         (%union): Add new relative_time rel member.
67708         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67709         Now typeless.
67710         (relunit, relunit_snumber): Now of type rel.
67711         (zone, rel, relunit, get_date): Adjust to above changes.
67712
67713         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67714         Do not include unistd-safer.h.
67715         (getloadavg): Don't call fd_safer; no longer needed
67716         now that we include fcntl--.h.
67717
67718         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67719         (make_dir_parents): Treat ENOSYS like EEXIST.
67720
67721         Improve quality of diagnostics on restore_cwd failure.
67722         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67723         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67724         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67725         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67726         each time through the loop.  Do not diagnose restore_cwd failure;
67727         that is the caller's job (and perhaps the caller does not care).
67728
67729         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67730         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67731         If the file already exists but is not a directory, don't bother
67732         to try to make its parents.
67733         Close potential file descriptor leak if we can't chdir("/") (!).
67734         Don't always return true if chdir($PWD) fails; return true only
67735         if the requested action was done successfully (except for the
67736         chdir($PWD)).
67737         Don't log final directory unless we actually made it.
67738         Refactor to avoid duplicate code to fix up permissions.
67739         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67740
67741         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67742         to make it a bit faster and (I hope) clearer.
67743         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67744         Fix bug in formats like %2N.
67745
67746         * lib/verify.h: New file.
67747
67748 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67749
67750         Sync from coreutils.
67751         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67752
67753 2005-09-22  Jim Meyering  <jim@meyering.net>
67754
67755         Sync from coreutils.
67756
67757         * m4/lstat.m4 (gl_FUNC_LSTAT):
67758         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67759         Remove obsolete comment.
67760         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67761         * m4/xstrtod.m4: Likewise.
67762
67763         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67764
67765 2005-09-22  Jim Meyering  <jim@meyering.net>
67766
67767         Sync from coreutils.
67768
67769         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67770
67771         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67772         the .tm_year member, since otherwise gcc-4.0 would now warn about
67773         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67774
67775         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67776         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67777
67778         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67779         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67780         when run in a time zone for which daylight savings time is in effect
67781         for the starting date.
67782
67783         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67784         stop us from restricting permissions of just-created absolute-named
67785         directories.
67786         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67787         to restore initial working directory.
67788         * lib/mkdir-p.c (make_dir_parents): New parameter:
67789         different_working_dir, to tell caller if/when we change the working
67790         directory and are unable to return to the initial one.
67791         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67792         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67793         `return false'.  This fixes a bug introduced on 2004-07-30.
67794
67795         * lib/openat.c (fdopendir): Be sure to close the supplied
67796         file descriptor before returning.  This makes our replacement
67797         implementation a little closer to Solaris's, where fdopendir
67798         ties the file descriptor to the returned DIR* pointer.
67799         * lib/openat.c (unlinkat): New function.
67800         * lib/openat.h (unlinkat): Add prototype.
67801         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67802         (openat_restore_fail): Rename from openat_restore_die.
67803         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67804
67805         Provide an alternative to exiting immediately upon save_cwd or
67806         restore_cwd failure.  Now, an application can arrange e.g.,
67807         to perform a longjump in that case.
67808         * lib/openat.c: Include dirname.h.
67809         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67810         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67811         and openat_restore_die rather than calling error directly.
67812         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67813
67814         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67815         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67816         define.
67817
67818         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67819         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67820                             int utc, int nanoseconds);
67821         Background:
67822         date should not have to allocate a megabyte of virtual memory to
67823         handle a format argument like +%1048575T.  When implemented with
67824         strftime, it must allocate such a buffer, use strftime to fill it
67825         in, print it, then free it.
67826         With fprintftime, it simply prints everything and exits.
67827         With no need for memory allocation, that's one fewer way to fail.
67828         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67829         optional field width, not before, so we accept %9:z, not %:9z.
67830         (my_strftime): Be sure to use L_('x') for literals.
67831
67832         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67833         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67834         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67835         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67836         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67837         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67838         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67839         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67840         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67841         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67842         * lib/xgethostname.c, lib/xreadlink.c:
67843         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67844
67845         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67846         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67847         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67848         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67849         and don't include <sys/file.h>).
67850
67851 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67852
67853         Sync from coreutils.
67854
67855         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67856         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67857         [!LDAV_DONE]: Avoid unused variable warning.
67858
67859 2005-09-21  Bruno Haible  <bruno@clisp.org>
67860
67861         * lib/unicodeio.h (unicode_to_mb): New declaration.
67862
67863 2005-09-20  Derek Price  <derek@ximbiot.com>
67864
67865         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67866         getaddrinfo.h.
67867
67868 2005-09-20  Bruno Haible  <bruno@clisp.org>
67869
67870         * gnulib-tool: Remove trailing slashes from the values specified for
67871         --source-base, --m4-base, --tests-base, --aux-dir.
67872         Suggested by Simon Josefsson <jas@extundo.com>.
67873
67874 2005-09-20  Bruno Haible  <bruno@clisp.org>
67875
67876         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67877         func_modules_to_filelist, func_import, func_create_testdir): Make all
67878         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67879         change when gnulib-tool is invoked in a different locale.
67880
67881 2005-09-19  Simon Josefsson  <jas@extundo.com>
67882
67883         * m4/socklen.m4: Fix typo.
67884
67885 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67886
67887         Use a consistent style for including <config.h>.
67888         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67889         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67890         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67891         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67892         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67893         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67894         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67895         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67896         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67897         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67898         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67899         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67900         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67901         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67902         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67903         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67904         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67905         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67906         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67907         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67908         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67909         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67910         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67911         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67912         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67913         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67914         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67915         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67916         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67917         lib/xstrtoumax.c, lib/yesno.c:
67918         Standardize inclusion of config.h.
67919         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67920         lib/inttostr.h:  Removed inclusion of config.h from header files.
67921         * lib/inttostr.c:  Adjusted in-tree users.
67922         * lib/timespec.h: Remove superfluous warning to include config.h.
67923         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67924         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67925         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67926         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67927         config.h with HAVE_CONFIG_H.
67928
67929 2005-09-19  Jim Meyering  <jim@meyering.net>
67930
67931         * modules/pathmax (License): Change to LGPL.
67932
67933 2005-09-19  Derek Price  <derek@ximbiot.com>
67934
67935         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67936
67937 2005-09-19  Bruno Haible  <bruno@clisp.org>
67938
67939         * gnulib-tool (import): Provide default for --tests-base.
67940
67941 2005-09-19  Bruno Haible  <bruno@clisp.org>
67942
67943         * doc/quote.texi: New file, extracted from gnulib.texi.
67944         * doc/ctime.texi: New file, extracted from gnulib.texi.
67945         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67946         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67947         * doc/gnulib.texi: Include them.
67948
67949 2005-09-18  Bruno Haible  <bruno@clisp.org>
67950
67951         Portability fix.
67952         * gnulib-tool (func_readlink): New function.
67953         (func_ln_if_changed): Use it.
67954
67955 2005-09-18  Bruno Haible  <bruno@clisp.org>
67956
67957         * gnulib-tool: Support --with-tests also with --import.
67958         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67959         (func_import): Use variables $testsbase and $inctests. Emit a
67960         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67961         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67962         SUBDIRS += $testsdir.
67963         (func_create_testdir): Update.
67964
67965 2005-09-18  Bruno Haible  <bruno@clisp.org>
67966
67967         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67968         instead of $dry_run.
67969         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67970         (func_ln_if_changed): Don't handle dry-run here.
67971         (func_import): In dry-run mode, detect more precisely which actions
67972         would be performed, and don't use "...ing" verbs.
67973
67974 2005-09-18  Bruno Haible  <bruno@clisp.org>
67975
67976         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67977         (func_import): Use join on two temporary files instead of three nested
67978         loops, in order to determine which files are new or old.
67979
67980 2005-09-18  Bruno Haible  <bruno@clisp.org>
67981
67982         * gnulib-tool (func_import): Comment out code that spits out the
67983         new files with --dry-run.
67984
67985 2005-09-18  Bruno Haible  <bruno@clisp.org>
67986
67987         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67988
67989 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * lib/stat-time.h: New file.
67992         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67993         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67994         in a different way.
67995         (timespec_cmp): New function.
67996         * lib/utimecmp.c: Include stat-time.h.
67997         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67998         members exist, not on the obsolescent ST_MTIM_NSEC.
67999         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68000
68001 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68004
68005 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68006
68007         * MODULES.html.sh (File system functions): Add stat-time.
68008         * modules/stat-time: New file.
68009         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68010         is now done in a different way, by the stat-time module.
68011         * modules/utimecmp (Depends-on): Add stat-time.
68012
68013 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68014
68015         * m4/st_mtim.m4: Remove.  Superseded by...
68016         * m4/stat-time.m4: New file.
68017         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68018         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68019
68020 2005-09-15  Derek Price  <derek@ximbiot.com>
68021
68022         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68023
68024 2005-09-15  Derek Price  <derek@ximbiot.com>
68025
68026         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68027         * lib/regex_internal.c: Ditto, using this...
68028         (__GNUC_PREREQ): ...new macro.
68029         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68030         using...
68031         (__GNUC_PREREQ): ...this new macro.
68032
68033         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68034
68035 2005-09-15  Derek Price  <derek@ximbiot.com>
68036             Paul Eggert  <eggert@cs.ucla.edu>
68037
68038         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68039         changes, consolidating in...
68040         * lib/regex_internal.h: ...this file.
68041
68042 2005-09-13  Jim Meyering  <jim@meyering.net>
68043
68044         * lib/canon-host.c: Filter through gnu indent and reword comments
68045         slightly.
68046         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68047
68048 2005-09-13  Derek Price  <derek@ximbiot.com>
68049
68050         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68051         failure.
68052         Reported by Jim Meyering  <jim@meyering.net>.
68053
68054 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68055
68056         * lib/base64.c: Typo.
68057         (base64_encode): Put b64str in initialized data section.
68058
68059 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68060
68061         Merge glibc and coreutils changes into gnulib, plus a few
68062         extra fixes.
68063         * lib/md5.c: Use #error rather than a string.
68064         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68065         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68066         (__attribute__): Define to empty for non recent-GCC.
68067         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68068         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68069         Renamed from their non-__ counterparts, with new macros replacing
68070         them if not _LIBC.  Add __THROW attribute.
68071         (rol): Remove.
68072         (struct md5_ctx): Align buffer if using GCC.
68073         * lib/sha1.h (struct sha1_ctx): Likewise.
68074         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68075         The old name was backwards.
68076         (NOTSWAP): Remove; not used.
68077         (rol): New macro, moved here from md5.h.
68078         (sha1_process_block): Remove a FIXME that doesn't make sense.
68079
68080 2005-09-12  Derek Price  <derek@ximbiot.com>
68081
68082         Return usable errors from canon-host.
68083         * lib/canon-host.h: New file.
68084         * lib/canon-host.c (canon_host): Wrap...
68085         (canon_host_r): ...this new function, which now relies exclusively on
68086         getaddrinfo.
68087         (ch_strerror): New function.
68088         (last_cherror): New global.
68089         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68090         interface.
68091         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68092         void *.
68093         (freeaddrinfo): Free ai->ai_canonname when set.
68094
68095 2005-09-12  Derek Price  <derek@ximbiot.com>
68096
68097         Make canon-host require getaddrinfo.
68098         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68099         AC_LIBSOURCE canon-host.h.  Call...
68100         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68101         gl_GETADDRINFO.
68102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68103
68104 2005-09-12  Derek Price  <derek@ximbiot.com>
68105
68106         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68107         LGPL.
68108         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68109
68110 2005-09-12  Derek Price  <derek@ximbiot.com>
68111
68112         * lib/gai_strerror.c: Include config.h when available.  Include
68113         getaddrinfo.h before other headers to test interface.
68114         Reported by Larry Jones <lawrence.jones@ugs.com>.
68115
68116 2005-09-12  Derek Price  <derek@ximbiot.com>
68117             Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * modules/glob (Files): Add glob-libc.h.
68120
68121 2005-09-12  Derek Price  <derek@ximbiot.com>
68122             Paul Eggert  <eggert@cs.ucla.edu>
68123
68124         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68125         glob_.h, glob-libc.h.
68126         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68127
68128 2005-09-12  Derek Price  <derek@ximbiot.com>
68129             Paul Eggert  <eggert@cs.ucla.edu>
68130
68131         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68132         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68133         protecting things that should be done only in gnulib contexts.
68134         * lib/glob_.h: New file, containing only the glob things needed for
68135         gnulib.
68136         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68137         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68138         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68139         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68140         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68141         and to respect the namespace rules better.
68142
68143 2005-09-08  Simon Josefsson  <jas@extundo.com>
68144
68145         * modules/socklen: New file.
68146
68147 2005-09-08  Simon Josefsson  <jas@extundo.com>
68148
68149         * m4/socklen.m4: New file.
68150
68151 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * modules/utimens (Files): Add m4/utimbuf.m4, since
68154         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68155         Reported by Sergey Poznyakoff.
68156
68157 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68158
68159         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68160         definitions, since that's the preferred style in glibc.
68161         Fix a minor spacing issue, and update copyright notice to match
68162         glibc's.
68163
68164 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68167
68168 2005-09-06  Simon Josefsson  <jas@extundo.com>
68169
68170         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68171         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68172
68173 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68176         warning.
68177
68178 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * config/srclist.txt: Add glibc bug 1302.
68181
68182 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68183
68184         Change bitset word type from unsigned int to unsigned long int,
68185         as this has better performance on typical 64-bit hosts.
68186         Port bitset code to hosts with unusual word sizes.
68187         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68188         (build_collating_symbol):
68189         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68190         argument is a bitset.  This is merely a style issue, but it makes
68191         it clearer that an entire array is expected.
68192         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68193         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68194         Port to the case where bitset_word is not the same as unsigned int.
68195         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68196         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68197         Likewise.
68198         * lib/regexec.c (check_dst_limits_calc_pos_1,
68199         check_subexp_matching_top):
68200         (build_trtable, group_nodes_into_DFAstates):
68201         Likewise.
68202         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68203         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68204         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68205         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68206         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68207         * lib/regcomp.c (optimize_subexps, lower_subexp):
68208         Work even if bitset_word has holes in its bitwise representation.
68209         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68210         * lib/regexec.c (check_dst_limits_calc_pos_1,
68211         check_subexp_matching_top):
68212         Likewise.
68213         * lib/regex_internal.c (re_string_reconstruct):
68214         Don't assume UCHAR_MAX == 255.
68215         * lib/regex_internal.h (bitset_set_all): Likewise.
68216         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68217         All uses changed.
68218         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68219         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68220         All uses changed.
68221         (BITSET_WORD_MAX): New macro.
68222         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68223         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68224         (bitset_empty, bitset_copy):
68225         Prefer sizeof (bitset) to multiplying it out ourselves.
68226         (bitset_not_merge): Remove; unused.
68227         (bitset_contain): Return bool, not unsigned int with one bit on.
68228         All callers changed.
68229         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68230         alignment than re_node_set; do this by defining a new internal
68231         type struct dests_alloc and using it to allocate memory.
68232
68233 2005-09-05  Bruno Haible  <bruno@clisp.org>
68234
68235         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68236         links.
68237
68238 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68239
68240         * modules/size_max (Makefile.am): Add size_max.h
68241
68242 2005-09-04  Derek Price  <derek@ximbiot.com>
68243
68244         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68245
68246 2005-09-03  Simon Josefsson  <jas@extundo.com>
68247
68248         * gnulib-tool: Fix typo.
68249
68250 2005-09-03  Simon Josefsson  <jas@extundo.com>
68251
68252         * config/srclist.txt: Add glibc bug 1293.
68253
68254 2005-09-03  Derek Price  <derek@ximbiot.com>
68255
68256         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68257         From Larry Jones <lawrence.jones@ugs.com>.
68258
68259 2005-09-02  Simon Josefsson  <jas@extundo.com>
68260
68261         * modules/socklen: New file.
68262
68263 2005-09-02  Simon Josefsson  <jas@extundo.com>
68264
68265         * modules/havelib: New module.
68266
68267         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68268         Use havelib.
68269
68270 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         Check for arithmetic overflow when calculating sizes, to prevent
68273         some buffer-overflow issues.  These patches are conservative, in the
68274         sense that when I couldn't determine whether an overflow was possible,
68275         I inserted a run-time check.
68276         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68277         macros.
68278         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68279         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68280         (re_xnrealloc, re_x2nrealloc): New inline functions.
68281         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68282         parse_bracket_exp):
68283         (build_equiv_class, build_charclass): Check for arithmetic overflow
68284         in size expression calculations.
68285         * lib/regex_internal.c (re_string_realloc_buffers):
68286         (build_wcs_upper_buffer, re_node_set_add_intersect):
68287         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68288         (re_dfa_add_node, register_state): Likewise.
68289         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68290         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68291         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68292         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68293
68294 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68295
68296         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68297         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68298
68299 2005-09-02  Bruno Haible  <bruno@clisp.org>
68300
68301         Support for lib vs. lib64 distinction on biarch platforms.
68302         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68303         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68304         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68305
68306 2005-09-02  Bruno Haible  <bruno@clisp.org>
68307
68308         * gnulib-tool (import): In the other first-use case, provide defaults
68309         as well.
68310
68311 2005-09-02  Bruno Haible  <bruno@clisp.org>
68312
68313         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68314         patches not yet found in the latest gettext release.
68315
68316 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68319         to avoid a collision with bits/local_lim.h in glibc.
68320         All uses changed.  Problem reported by Dmitry V. Levin in
68321         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68322
68323         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68324         bugs in int versus size_t comparisons.
68325         (re_string_context_at): Fix bug where the code assumed that
68326         Idx is signed.
68327
68328         Use bool where appropriate.
68329         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68330         All callers changed.
68331         (calc_eclosure_iter): Likewise, for ROOT arg.
68332         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68333         (build_charclass_op): Likewise, for NON_MATCH arg.
68334         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68335         (re_string_construct_common): Likewise, for ICASE arg.
68336         * lib/regexec.c (re_search_2_stub, re_search_stub):
68337         Likewise, for RET_LEN arg.
68338         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68339         (set_regs): Likewise, for FL_BACKTRACK arg.
68340         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68341         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68342         (calc_eclosure_iter, parse_bracket_exp):
68343         Use bool for internal variables that are booleans.
68344         * lib/regexec.c (re_search_internal, check_matching,
68345         proceed_next_node):
68346         (set_regs, build_sifted_states, sift_states_bkref):
68347         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68348         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68349         (find_collation_sequence_value):
68350         Likewise.
68351         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68352         (re_node_set_compare):
68353         Return bool, not int. All callers changed.
68354         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68355         (build_trtable, check_node_accept): Likewise.
68356         * lib/regex_internal.h: Include stdbool.h.
68357
68358         Fix bugs uncovered when converting to bool.
68359         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68360         failure instead of charging ahead blindly.
68361         * lib/regex_internal.c (register_state): Likewise.
68362         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68363         for freeing internal storage.
68364         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68365         bitset pieces used as boolean, to avoid undefined behavior
68366         on hosts that do int overflow checking.
68367
68368 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * config/srclist.txt: Add glibc bugs 1285-1287.
68371
68372 2005-09-01  Jim Meyering  <jim@meyering.net>
68373
68374         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68375         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68376         Require gl_STAT_MACROS, too.
68377
68378 2005-09-01  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (import): In the first-use case, provide defaults.
68381
68382 2005-09-01  Bruno Haible  <bruno@clisp.org>
68383
68384         * gnulib-tool (func_import): Remove the .tmp files.
68385
68386 2005-09-01  Bruno Haible  <bruno@clisp.org>
68387
68388         * gnulib-tool (func_import): Fix handling of symbolic links.
68389
68390 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68393         old glibc regex code mishandles strings longer than 2**31 bytes.
68394         This patch fixes this when the regex code is used in gnulib
68395         (i.e., outside glibc).
68396
68397         This patch should not affect the use of the regex code inside
68398         glibc.  No doubt this problem also needs to be handled for glibc
68399         as well, but the result will be an incompatible change to the
68400         glibc ABI, and the old ABI will have to be supported too.  That
68401         can be the the subject for another patch.
68402
68403         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68404         governing whether the rest of this patch is active.  By default,
68405         the macro is disabled and the patch has no effect.
68406         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68407         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68408         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68409         (re_match_2, re_set_registers): Use the new types.
68410         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68411         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68412         New macros.
68413         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68414         (re_string_context_at, bin_tree_t, re_dfastate_t):
68415         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68416         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68417         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68418         (re_string_char_size_at, re_string_wchar_at):
68419         (re_string_elem_size_at):
68420         Use the new types and macros to port to 64-bit hosts.
68421         Use unsigned types for internal values, so that the code
68422         mostly works even for arrays larger than SSIZE_MAX.
68423         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68424         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68425         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68426         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68427         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68428         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68429         (calc_inveclosure, parse_dup_op, build_range_exp):
68430         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68431         (fetch_number, create_token_tree, mark_opt_subexp):
68432         Likewise.
68433         * lib/regex_internal.c (re_string_construct_common,
68434         create_ci_newstate):
68435         (create_cd_newstate, re_string_allocate, re_string_construct):
68436         (re_string_realloc_buffers, build_wcs_upper_buffer):
68437         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68438         (re_string_reconstruct, re_string_peek_byte_case):
68439         (re_string_fetch_byte_case, re_string_context_at):
68440         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68441         (re_node_set_init_copy, re_node_set_add_intersect):
68442         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68443         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68444         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68445         (re_acquire_state, re_acquire_state_context, register_state):
68446         Likewise.
68447         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68448         search_cur_bkref_entry):
68449         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68450         (re_search_internal, re_search_2_stub, re_search_stub)
68451         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68452         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68453         (update_cur_sifted_state, check_dst_limits):
68454         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68455         (check_subexp_limits, sift_states_bkref, merge_state_array):
68456         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68457         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68458         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68459         (expand_bkref_cache, check_node_accept_bytes):
68460         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68461         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68462         (acquire_init_state_context, check_halt_node_context):
68463         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68464         (sift_states_backward, clean_state_log_if_needed):
68465         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68466         (find_recover_state, transit_state_sb, transit_state_mb):
68467         (transit_state_bkref, build_trtable, match_ctx_clean):
68468         Likewise.
68469         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68470         to work around an assumption that REG_MISSING is negative.
68471
68472         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68473         (seek_collating_symbol_entry) [defined _LIBC]:
68474         (lookup_collation_sequence_value) [defined _LIBC]:
68475         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68476         Use prototypes rather than old-style function definitions.
68477         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68478         (transit_state_sb) [0]:
68479         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68480
68481         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68482         rm_eo.
68483
68484         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68485         (optimize_subexps, lower_subexp):
68486         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68487         since the signed shift might overflow.  Use 1u<<31 instead.
68488         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68489         Likewise.
68490         * lib/regexec.c (check_dst_limits_calc_pos_1,
68491         check_subexp_matching_top): Likewise.
68492
68493         * lib/regcomp.c (optimize_subexps, lower_subexp):
68494         Use CHAR_BIT rather than 8, for clarity.
68495         * lib/regexec.c (check_dst_limits_calc_pos_1):
68496         (check_subexp_matching_top): Likewise.
68497         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68498         have to worry about portability issues when shifting it left.
68499         Remove no-longer-needed test for table_size > 0.
68500         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68501         in a word, as the resulting behavior is undefined.
68502         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68503         in one case, a <= should have been an <, and in another case the
68504         whole test was missing.
68505         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68506         the standard name CHAR_BIT.
68507         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68508         this is not true on one's complement and signed-magnitude hosts.
68509
68510         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68511         next_last_offset.
68512         (struct re_dfa_t): Remove unused member states_alloc.
68513         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68514
68515 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68518         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68519         and large-file glibc and in 32-bit large-file Solaris.
68520
68521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68524         lengths fit in regoff_t; this isn't true if regoff_t is the same
68525         width as size_t.
68526         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68527         (= START + RANGE) instead of RANGE.  This avoids overflow
68528         problems when regoff_t is the same width as size_t.
68529         All callers changed.
68530         (re_search_2_stub): Check for overflow when adding the
68531         sizes of the two strings.
68532         (re_search_stub): Check for overflow when adding START
68533         to RANGE; if it occurs, substitute the extreme value.
68534
68535 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68538
68539 2005-08-31  Jim Meyering  <jim@meyering.net>
68540
68541         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68542         a pointer-to-const.
68543         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68544         (register_state): Likewise.
68545         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68546         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68547         (group_nodes_into_DFAstates): Likewise.
68548
68549 2005-08-31  Jim Meyering  <jim@meyering.net>
68550
68551         * check-module: Add a FIXME comment.
68552
68553 2005-08-31  Eric Blake  <ebb9@byu.net>
68554
68555         * modules/unistd-safer (Files): Add unistd--.h.
68556         * modules/stdio-safer (Files): Add stdio--.h.
68557
68558 2005-08-31  Derek Price  <derek@ximbiot.com>
68559
68560         * lib/getdelim.c (getdelim): Return EOF on EOF.
68561         Reported by Larry Jones <lawrence.jones@ugs.com>.
68562
68563 2005-08-31  Bruno Haible  <bruno@clisp.org>
68564
68565         Avoid unnecessary diffs in the generated lib/Makefile.am.
68566         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68567         the generated files.
68568         (func_import): Don't set cmd.
68569
68570 2005-08-31  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/strstr.c: Include <stddef.h>, for NULL.
68573         * lib/strcasestr.c: Likewise.
68574         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68575
68576 2005-08-31  Bruno Haible  <bruno@clisp.org>
68577
68578         * gnulib-tool: New option --macro-prefix.
68579         (func_import): Use macro_prefix.
68580         (import): Handle option --macro-prefix.
68581
68582 2005-08-31  Bruno Haible  <bruno@clisp.org>
68583
68584         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68585         Also use new variables cached_lgpl, cached_libtool.
68586
68587 2005-08-31  Bruno Haible  <bruno@clisp.org>
68588
68589         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68590         always instantiating them.
68591
68592 2005-08-31  Bruno Haible  <bruno@clisp.org>
68593
68594         * gnulib-tool (func_import): Read the previous cached settings
68595         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68596         earlier added by gnulib but are now dropped. Warn when a gnulib file
68597         overwrites a non-gnulib file.
68598
68599 2005-08-31  Bruno Haible  <bruno@clisp.org>
68600
68601         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68602         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68603         projects that don't keep autogenerated files in CVS. Put into
68604         actioncmd only the specified modules, not the transitive closure.
68605
68606 2005-08-31  Bruno Haible  <bruno@clisp.org>
68607
68608         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68609         Create directories that shall be filled.
68610         (import): Don't look for gl_* macros in configure.ac. Recurse across
68611         all directories containing a gnulib-cache.m4 files, if meaningful.
68612
68613 2005-08-31  Bruno Haible  <bruno@clisp.org>
68614
68615         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68616         (import): Set seen_libtool when we see gl_LIBTOOL.
68617
68618 2005-08-31  Bruno Haible  <bruno@clisp.org>
68619
68620         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68621         declaration macro definitions from generated gnulib.m4.
68622
68623 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68624
68625         * lib/iconvme.h: Add prototype for iconv_alloc.
68626
68627 2005-08-29  Simon Josefsson  <jas@extundo.com>
68628
68629         * lib/iconvme.c: Fix errno.
68630
68631 2005-08-29  Bruno Haible  <bruno@clisp.org>
68632
68633         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68634         that it works when the directory contains spaces.
68635
68636 2005-08-29  Bruno Haible  <bruno@clisp.org>
68637
68638         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68639
68640 2005-08-29  Bruno Haible  <bruno@clisp.org>
68641
68642         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68643         Emit more advice.
68644
68645 2005-08-29  Bruno Haible  <bruno@clisp.org>
68646         and Stepan Kasal  <kasal@ucw.cz>
68647
68648         * check-module: If more parameters are given, check each of them
68649         separately; add more exceptions, as noted by Jim Meyering.
68650         (check_module): New procedure.
68651         (%exempt_header): Now contains all exceptions.
68652
68653 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68654
68655         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68656
68657 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68658
68659         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68660
68661 2005-08-28  Bruno Haible  <bruno@clisp.org>
68662
68663         * m4/gnulib-tool.m4: New file.
68664
68665 2005-08-27  Jim Meyering  <jim@meyering.net>
68666
68667         * modules/unistd-safer (Files): Add pipe-safer.c.
68668         * modules/fcntl-safer (Files): Add creat-safer.c.
68669
68670 2005-08-27  Jim Meyering  <jim@meyering.net>
68671
68672         * m4/stdlib-safer.m4: New file.  From coreutils.
68673         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68675         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68676         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68677         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68678
68679 2005-08-27  Jim Meyering  <jim@meyering.net>
68680
68681         * lib/fopen-safer.c: Merge minor changes from coreutils.
68682         * lib/dup-safer.c: Likewise.
68683         * lib/fd-safer.c: Likewise.
68684
68685         Merge from coreutils.
68686         * lib/stdio--.h: New file.
68687         * lib/stdlib--.h: New file.
68688         * lib/mkstemp-safer.c: New file.
68689
68690         GNU tar needs these.
68691         * lib/pipe-safer.c: New file.
68692         * lib/creat-safer.c: New file.
68693         * lib/fcntl--.h (creat): Define to creat_safer.
68694         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68695         * lib/unistd--.h (pipe): Define to pipe_safer.
68696         * lib/unistd-safer.h: Declare pipe_safer.
68697
68698 2005-08-26  Simon Josefsson  <jas@extundo.com>
68699
68700         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68701         Haible <bruno@clisp.org>.
68702
68703 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         * lib/regex_internal.h: Remove all references to
68706         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68707         or better.
68708         (bitset_not, bitset_merge, bitset_not_merge):
68709         (bitset_mask, re_string_allocate, re_string_construct):
68710         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68711         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68712         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68713         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68714         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68715         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68716         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68717         (re_acquire_state_context):
68718         Remove unnecessary forward decls.
68719         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68720         Put __attribute at function definition,
68721         now that the function decl has been removed.
68722         * lib/regex_internal.c (re_string_peek_byte_case):
68723         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68724         Likewise.
68725
68726 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68727
68728         * m4/regex.m4: Add AC_PREREQ(2.50).
68729         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68730
68731 2005-08-25  Simon Josefsson  <jas@extundo.com>
68732
68733         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68734         __fsetlocking.
68735
68736 2005-08-25  Simon Josefsson  <jas@extundo.com>
68737
68738         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68739         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68740         GLIBC specific code.
68741
68742 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68743
68744         Make regex safe for g++.  This fixes one real bug (an "err"
68745         that should have been "*err").  g++ problem reported by
68746         Sam Steingold.
68747         * lib/regex_internal.h (re_calloc): New macro, consistent with
68748         re_malloc etc.  All callers of calloc changed to use re_calloc.
68749         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68750         not int.  All callers changed.
68751         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68752         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68753         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68754         (find_recover_state): Change "err" to "*err"; this fixes what
68755         appears to be a real bug.
68756         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68757         versus int.
68758
68759 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * modules/regex (Depends-on): Add malloc, since the code
68762         assumes that !malloc(0) means failure.
68763
68764 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68767
68768         alloca modernization/simplification for regex.
68769         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68770         needs to be at the start of the file, and can be moved into
68771         regex_internal.h and simplified.
68772         * lib/regex_internal.h: Include <alloca.h>.
68773         (__libc_use_alloca) [!defined _LIBC]: New macro.
68774         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68775         now works outside glibc.
68776
68777 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * config/srclist.txt: Add glibc bugs 1241, 1245.
68780
68781 2005-08-25  Jim Meyering  <jim@meyering.net>
68782
68783         * lib/open-safer.c: Include <config.h>.
68784         Otherwise, we'd lose LARGEFILE support in any file using
68785         e.g. "fcntl--.h"
68786
68787 2005-08-25  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/minmax.m4: Require autoconf 2.52.
68790         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68791         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68792         alternatives of translit over the alphabet.
68793         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68794
68795 2005-08-24  Simon Josefsson  <jas@extundo.com>
68796
68797         * tests/test-getpass.c: New file.
68798
68799 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68802         for GNU regex features.
68803
68804 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68807         * lib/regex.h (regerror): Likewise.
68808
68809         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68810         requires this.  (The code never needed it.)
68811
68812         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68813         All uses of recently-renamed identifiers changed to use the new,
68814         POSIX-compliant names.  The code will build and run just fine
68815         without these changes, but it's better to eat our own dog food
68816         and use the standard-conforming names.
68817
68818         * lib/regex.h: Fix a multitude of POSIX name space violations.
68819         These changes have an effect only for programs that define
68820         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68821         do not change anything for programs compiled in the normal way.
68822         Also, there is no effect on the ABI.
68823
68824         (_REGEX_SOURCE): New macro.
68825         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68826         defined and _GNU_SOURCE is not; this fixes a name space violation.
68827
68828         Rename the following macros to obey POSIX requirements.
68829         The old names are still visible as macros if _REGEX_SOURCE is defined.
68830         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68831         RE_BACKSLASH_ESCAPE_IN_LISTS.
68832         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68833         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68834         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68835         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68836         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68837         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68838         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68839         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68840         (REG_INTERVALS): renamed from RE_INTERVALS.
68841         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68842         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68843         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68844         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68845         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68846         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68847         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68848         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68849         RE_UNMATCHED_RIGHT_PAREN_ORD.
68850         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68851         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68852         (REG_DEBUG): renamed from RE_DEBUG.
68853         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68854         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68855         unusual, since we can't clash with the POSIX REG_ICASE.
68856         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68857         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68858         (REG_NO_SUB): renamed from RE_NO_SUB.
68859         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68860         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68861         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68862         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68863         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68864         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68865         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68866         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68867         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68868         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68869         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68870         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68871         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68872         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68873         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68874         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68875         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68876         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68877         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68878         (REG_FIXED): Renamed from REGS_FIXED.
68879         (REG_NREGS): Renamed from RE_NREGS.
68880
68881         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68882         of other REG_* macros, since POSIX says the user is allowed to
68883         #undef these macros selectively.
68884
68885         (reg_errcode_t): Update comment stating what other tables need
68886         to be consistent.
68887
68888         Rename the following enum values to obey POSIX requirements.
68889         The old names are still visible as macros.
68890         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68891         is not defined, since GNU is supposed to be a superset of POSIX as
68892         much as possible, and since we want reg_errcode_t to be a signed
68893         type for implementation consistency.
68894         (_REG_NOERROR): Renamed from REG_NOERROR.
68895         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68896         (_REG_BADPAT): Renamed from REG_BADPAT.
68897         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68898         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68899         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68900         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68901         (_REG_EBRACK): Renamed from REG_EBRACK.
68902         (_REG_EPAREN): Renamed from REG_EPAREN.
68903         (_REG_EBRACE): Renamed from REG_EBRACE.
68904         (_REG_BADBR): Renamed from REG_BADBR.
68905         (_REG_ERANGE): Renamed from REG_ERANGE.
68906         (_REG_ESPACE): Renamed from REG_ESPACE.
68907         (_REG_BADRPT): Renamed from REG_BADRPT.
68908         (_REG_EEND): Renamed from REG_EEND.
68909         (_REG_ESIZE): Renamed from REG_ESIZE.
68910         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68911         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68912         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68913         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68914         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68915
68916         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68917         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68918         changed.  But support the old name if the new one is not defined
68919         and if _REGEX_SOURCE.
68920
68921         Change the following member names in struct re_pattern_buffer.
68922         The old names are still supported if !_REGEX_SOURCE.
68923         The new names are always supported, regardless of _REGEX_SOURCE.
68924         (re_buffer): Renamed from buffer.
68925         (re_allocated): Renamed from allocated.
68926         (re_used): Renamed from used.
68927         (re_syntax): Renamed from syntax.
68928         (re_fastmap): Renamed from fastmap.
68929         (re_translate): Renamed from translate.
68930         (re_can_be_null): Renamed from can_be_null.
68931         (re_regs_allocated): Renamed from regs_allocated.
68932         (re_fastmap_accurate): Renamed from fastmap_accurate.
68933         (re_no_sub): Renamed from no_sub.
68934         (re_not_bol): Renamed from not_bol.
68935         (re_not_eol): Renamed from not_eol.
68936         (re_newline_anchor): Renamed from newline_anchor.
68937
68938         Change the following member names in struct re_registers.
68939         The old names are still supported if !_REGEX_SOURCE.
68940         The new names are always supported, regardless of _REGEX_SOURCE.
68941         (rm_num_regs): Renamed from num_regs.
68942         (rm_start): Renamed from start.
68943         (rm_end): Renamed from end.
68944
68945         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68946         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68947         Prepend __ to parameter names.
68948
68949         Undo yesterday's changes.
68950
68951 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68954         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68955         lib/regex.c.
68956
68957 2005-08-24  Jim Meyering  <jim@meyering.net>
68958
68959         Sync from coreutils.
68960         * m4/fcntl-safer.m4: New file.
68961
68962         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68963         and object files for this module.
68964
68965 2005-08-24  Jim Meyering  <jim@meyering.net>
68966
68967         Sync from coreutils.
68968         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68969
68970 2005-08-24  Jim Meyering  <jim@meyering.net>
68971
68972         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68973         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68974
68975 2005-08-24  Jim Meyering  <jim@meyering.net>
68976
68977         * modules/fcntl-safer: New module.
68978         * modules/fts (Depends-on): Add fcntl-safer.
68979         * MODULES.html.sh (File descriptor based Input/Output):
68980         Add fcntl-safer.
68981
68982 2005-08-24  Bruno Haible  <bruno@clisp.org>
68983
68984         Support for unit test modules.
68985         * modules/README: Mention tests modules.
68986         * modules/TEMPLATE-TESTS: New file.
68987         * gnulib-tool: New options --extract-tests-module, --with-tests and
68988         --tests-base (unused for the moment).
68989         (testsbase, inctests): New variables.
68990         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68991         (func_verify_module): Exclude TEMPLATE-TESTS.
68992         (func_verify_nontests_module, func_verify_tests_module): New functions.
68993         (func_get_dependencies): Add implicit dependency for tests modules.
68994         (func_get_tests_module): New function.
68995         (func_modules_transitive_closure): When --with-tests was specified,
68996         include the unit tests as well, unless explicitly avoided.
68997         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68998         (func_emit_tests_Makefile_am): New function.
68999         (func_create_testdir): When --with-tests was specified, emit a
69000         tests/ directory.
69001         * MODULES.html.sh (Future developments): Update.
69002
69003 2005-08-24  Bruno Haible  <bruno@clisp.org>
69004
69005         * modules/tls-tests: New file.
69006         * tests/test-tls.c: New file, from GNU gettext.
69007
69008 2005-08-24  Bruno Haible  <bruno@clisp.org>
69009
69010         * modules/lock-tests: New file.
69011         * tests/test-lock.c: New file, from GNU gettext.
69012
69013 2005-08-24  Bruno Haible  <bruno@clisp.org>
69014
69015         * lib/lock.h: Add multiple inclusion guard.
69016         * lib/tls.h: Add multiple inclusion guard.
69017
69018 2005-08-24  Bruno Haible  <bruno@clisp.org>
69019
69020         * gnulib-tool: Add support for the --aux-dir option to
69021         --create-testdir, --create-megatestdir, --test, --megatest.
69022         (func_create_testdir, func_create_megatestdir): Optionally emit a
69023         AC_CONFIG_AUX_DIR directive.
69024         (create-testdir, create-megatestdir, test, megatest): Provide a
69025         default value for $auxdir.
69026
69027 2005-08-24  Bruno Haible  <bruno@clisp.org>
69028
69029         * gnulib-tool (import): Use compound statement instead of subshell
69030         where possible.
69031
69032 2005-08-24  Bruno Haible  <bruno@clisp.org>
69033
69034         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69035
69036 2005-08-24  Bruno Haible  <bruno@clisp.org>
69037
69038         * gnulib-tool (func_version): Update.
69039
69040 2005-08-24  Bruno Haible  <bruno@clisp.org>
69041
69042         * gnulib-tool (func_import, func_create_testdir,
69043         func_create_megatestdir): Quote all autoconf macro arguments.
69044
69045 2005-08-24  Bruno Haible  <bruno@clisp.org>
69046
69047         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69048         option --force, because --force causes the aclocal.m4 of each
69049         subdirectory to be newer than the corresponding config.h.in.
69050
69051 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69052
69053         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69054         All contents moved to gl_REGEX.
69055         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69056         assume that it does.
69057
69058 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * lib/regex.h (REG_NOSYS)
69061         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69062         Define, since POSIX requires it as of 2001.
69063         (_REG_ENOSYS)
69064         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69065         New private symbol, used to keep the enum signed in all cases.
69066         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69067         Youngman in
69068         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69069
69070         * lib/regex_internal.c (re_string_skip_chars, register_state):
69071         (calc_state_hash):
69072         Remove forward decls; no longer needed now that we use prototypes.
69073         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69074         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69075         (clean_state_log_if_needed): Likewise.
69076
69077 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * config/srclist.txt: Add glibc bugs 1231-1233.
69080
69081 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         Fix problems reported by Sam Steingold in
69084         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69085         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69086         assumed that reg_errcode_t is a signed type, which is not
69087         necessarily true if _XOPEN_SOURCE is not defined.
69088         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69089         since some compilers warn about it otherwise.
69090
69091 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69094         (init_word_char, create_initial_state, duplicate_node_closure):
69095         (fetch_token, peek_token_bracket, build_range_exp):
69096         (build_collating_symbol): Remove forward decls; no longer needed
69097         now that we use prototypes.
69098
69099         * lib/regcomp.c:
69100         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69101         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69102         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69103         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69104         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69105         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69106         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69107         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69108         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69109         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69110         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69111         (build_charclass, build_charclass_op, fetch_number, create_tree):
69112         (create_token_tree, mark_opt_subexp, duplicate_tree):
69113         Use prototypes rather than old-style definitions.
69114
69115         * lib/regex_internal.c:
69116         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69117         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69118         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69119         (re_string_reconstruct, re_string_peek_byte_case):
69120         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69121         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69122         (re_node_set_init_copy, re_node_set_add_intersect):
69123         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69124         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69125         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69126         (re_acquire_state, re_acquire_state_context, register_state):
69127         (create_ci_newstate, create_cd_newstate, free_state):
69128         Likewise.
69129         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69130         re_search_2):
69131         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69132         (re_search_internal, prune_impossible_nodes):
69133         (acquire_init_state_context, check_matching, static):
69134         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69135         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69136         (update_regs, sift_states_backward, build_sifted_states):
69137         (clean_state_log_if_needed, merge_state_array):
69138         (update_cur_sifted_state, add_epsilon_src_nodes):
69139         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69140         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69141         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69142         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69143         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69144         (check_arrival, check_arrival_add_next_nodes):
69145         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69146         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69147         (check_node_accept_bytes, check_node_accept, extend_buffers):
69148         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69149         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69150         (sift_ctx_init):
69151         Likewise.
69152
69153         * lib/regex_internal.h:
69154         (re_string_allocate, re_string_construct, re_string_reconstruct):
69155         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69156         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69157         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69158         (re_string_context_at, re_string_peek_byte_case):
69159         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69160         is defined, since we now use prototypes always.
69161
69162         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69163         C89 or better.  All uses removed.
69164
69165 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69166
69167         * config/srclist.txt: Add glibc bugs 1220-1227.
69168
69169 2005-08-20  Jim Meyering  <jim@meyering.net>
69170
69171         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69172         of unused local, dfa.
69173
69174 2005-08-20  Bruno Haible  <bruno@clisp.org>
69175
69176         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69177
69178 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69181         (re_node_set_insert_last, re_dfa_add_node):
69182         Rename local variables to avoid GCC shadowing warnings.
69183
69184 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69187         [defined lint]: Suppress bogus uninitialized-variable warnings.
69188
69189         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69190         and let the caller return REG_ESPACE if out of space.  This
69191         removes an uninitialied-variable warning with GCC 4.0.1, and also
69192         avoids taking the address of a local variable.  All callers
69193         changed.
69194
69195 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69198         $LIBCSRC/posix/regexec.c.
69199         Add glibc bug 1217 for regcomp.c.
69200
69201 2005-08-19  Jim Meyering  <jim@meyering.net>
69202
69203         * lib/regexec.c (proceed_next_node): Redo local variables to
69204         avoid GCC shadowing warnings.
69205
69206 2005-08-18  Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/strstr.c (strstr): Fix return value in multibyte case.
69209         * lib/strcasestr.c (strcasestr): Likewise.
69210
69211 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69214
69215 2005-08-17  Jim Meyering  <jim@meyering.net>
69216
69217         Make the %s format (seconds since the epoch) work for a negative
69218         number and when used with a zero-padded field width, e.g. %015s.
69219
69220         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69221         label so that it precedes the code to set `digits'.  Otherwise,
69222         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69223         print `00-22'.  Now, it prints `-0022', as it should.
69224
69225 2005-08-17  Bruno Haible  <bruno@clisp.org>
69226
69227         * modules/strstr (Files): Add m4/mbrtowc.m4.
69228         (Depends-on): Add mbuiter.
69229
69230 2005-08-17  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/strcasestr: New file.
69233         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69234         strcasestr.
69235
69236 2005-08-17  Bruno Haible  <bruno@clisp.org>
69237
69238         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69239
69240 2005-08-17  Bruno Haible  <bruno@clisp.org>
69241
69242         * modules/mbuiter: New file.
69243         * MODULES.html.sh (Extended multibyte and wide character utilities):
69244         Add mbuiter.
69245
69246 2005-08-17  Bruno Haible  <bruno@clisp.org>
69247
69248         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69249         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69250
69251 2005-08-17  Bruno Haible  <bruno@clisp.org>
69252
69253         * m4/strcasestr.m4: New file.
69254
69255 2005-08-17  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69258         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69259
69260 2005-08-17  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/strcasestr.h: New file.
69263         * lib/strcasestr.c: New file.
69264
69265 2005-08-17  Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/strcasecmp.c: Use mbuiter.h.
69268
69269 2005-08-17  Bruno Haible  <bruno@clisp.org>
69270
69271         * lib/mbuiter.h: New file.
69272
69273 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69276         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69277         and gl_GETOPT are both invoked via different paths (as happens
69278         with GNU tar CVS because it uses both argp and getopt), the former
69279         wins.
69280
69281 2005-08-16  Bruno Haible  <bruno@clisp.org>
69282
69283         * modules/tls: New file.
69284         * MODULES.html.sh (Multithreading): Add tls.
69285
69286 2005-08-16  Bruno Haible  <bruno@clisp.org>
69287
69288         * modules/strnlen1: New file.
69289         * MODULES.html.sh (String handling): Add strnlen1.
69290
69291 2005-08-16  Bruno Haible  <bruno@clisp.org>
69292
69293         * modules/strcase (Files): Add m4/mbrtowc.m4.
69294         (Depends-on): Add strnlen1, mbchar.
69295
69296 2005-08-16  Bruno Haible  <bruno@clisp.org>
69297
69298         * modules/mbiter: New file.
69299         * MODULES.html.sh (Extended multibyte and wide character utilities):
69300         Add mbiter.
69301
69302 2005-08-16  Bruno Haible  <bruno@clisp.org>
69303
69304         * modules/mbfile: New file.
69305         * MODULES.html.sh (Extended multibyte and wide character utilities):
69306         Add mbfile.
69307
69308 2005-08-16  Bruno Haible  <bruno@clisp.org>
69309
69310         * modules/mbchar: New file.
69311         * MODULES.html.sh (Extended multibyte and wide character utilities):
69312         New section.
69313
69314 2005-08-16  Bruno Haible  <bruno@clisp.org>
69315
69316         * m4/tls.m4: New file, from GNU gettext.
69317
69318 2005-08-16  Bruno Haible  <bruno@clisp.org>
69319
69320         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69321         always.
69322         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69323
69324 2005-08-16  Bruno Haible  <bruno@clisp.org>
69325
69326         * m4/mbiter.m4: New file.
69327
69328 2005-08-16  Bruno Haible  <bruno@clisp.org>
69329
69330         * m4/mbfile.m4: New file.
69331
69332 2005-08-16  Bruno Haible  <bruno@clisp.org>
69333
69334         * m4/mbchar.m4: New file.
69335
69336 2005-08-16  Bruno Haible  <bruno@clisp.org>
69337
69338         * lib/tls.h: New file, from GNU gettext.
69339         * lib/tls.c: New file, from GNU gettext.
69340
69341 2005-08-16  Bruno Haible  <bruno@clisp.org>
69342
69343         * lib/strnlen1.h: New file.
69344         * lib/strnlen1.c: New file.
69345
69346 2005-08-16  Bruno Haible  <bruno@clisp.org>
69347
69348         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69349         (mbi_init): Update.
69350         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69351         NUL byte, not after it.
69352
69353 2005-08-16  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/strcase.h (strcasecmp): Add note in comments.
69356         * lib/strncasecmp.c: Use code from strcasecmp.c.
69357         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69358         (strcasecmp): Work correctly in multibyte locales.
69359
69360 2005-08-16  Bruno Haible  <bruno@clisp.org>
69361
69362         * lib/mbiter.h: New file.
69363
69364 2005-08-16  Bruno Haible  <bruno@clisp.org>
69365
69366         * lib/mbfile.h: New file.
69367
69368 2005-08-16  Bruno Haible  <bruno@clisp.org>
69369
69370         * lib/mbchar.h: New file.
69371         * lib/mbchar.c: New file.
69372
69373 2005-08-16  Bruno Haible  <bruno@clisp.org>
69374
69375         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69376         the valid ones. Makes the comparison operations transitive:
69377         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69378         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69379
69380 2005-08-15  Simon Josefsson  <jas@extundo.com>
69381
69382         * modules/ssize_t (License): Change to 'unlimited'.
69383
69384         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69385
69386 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69389         Add comments for each pending glibc patch.
69390
69391 2005-08-15  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69394         __cplusplus is defined.
69395
69396 2005-08-14  Jim Meyering  <jim@meyering.net>
69397
69398         Sync from coreutils.
69399
69400         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69401         Use the hash-table-based cycle-detection code not just when
69402         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69403         Reported by James Youngman in
69404         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69405         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69406         FTS_TIGHT_CYCLE_CHECK.
69407         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69408         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69409         once again.
69410         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69411         * lib/fts.c (fd_safer): Remove decl.
69412         Include fcntl--.h rather than unistd-safer.h
69413         (fts_safe_changedir): Don't call fd_safer; no longer needed
69414         now that we include fcntl--.h.
69415
69416 2005-08-12  Simon Josefsson  <jas@extundo.com>
69417
69418         * modules/getndelim2: Use ssize_t module.
69419         * modules/getnline: Likewise.
69420         * modules/safe-read: Likewise.
69421         * modules/xreadlink: Likewise.
69422
69423         * modules/ssize_t: New file.
69424
69425 2005-08-12  Simon Josefsson  <jas@extundo.com>
69426
69427         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69428
69429 2005-08-12  Simon Josefsson  <jas@extundo.com>
69430
69431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69432         ssize_t.
69433
69434 2005-08-12  Simon Josefsson  <jas@extundo.com>
69435
69436         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69437         readline, getdelim and check_version.
69438         (Support for systems lacking ISO C 99: Sizes of integer types):
69439         Add size_max.
69440
69441 2005-08-12  Bruno Haible  <bruno@clisp.org>
69442
69443         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69444
69445 2005-08-11  Simon Josefsson  <jas@extundo.com>
69446
69447         * modules/readline: New file.
69448
69449         * modules/strnlen (Files): Add strnlen.h.
69450
69451 2005-08-11  Simon Josefsson  <jas@extundo.com>
69452
69453         * m4/readline.m4: New file.
69454
69455 2005-08-11  Simon Josefsson  <jas@extundo.com>
69456
69457         * lib/readline.h, readline.c: New file.
69458
69459 2005-08-11  Simon Josefsson  <jas@extundo.com>
69460
69461         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69462         gl_AVOID.
69463
69464 2005-08-11  Bruno Haible  <bruno@clisp.org>
69465
69466         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69467
69468 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69469
69470         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69471
69472 2005-08-10  Simon Josefsson  <jas@extundo.com>
69473
69474         * tests/test-iconvme.c: New file.
69475
69476 2005-08-10  Simon Josefsson  <jas@extundo.com>
69477
69478         * m4/strnlen.m4: New file.
69479
69480         * m4/strndup.m4: Don't check for strnlen declaration, done in
69481         strnlen.m4.
69482
69483 2005-08-10  Simon Josefsson  <jas@extundo.com>
69484
69485         * lib/strndup.c: Use strnlen.h.
69486
69487         * lib/strnlen.h: New file.
69488
69489 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69490
69491         * README: Typos.
69492
69493 2005-08-02  Simon Josefsson  <jas@extundo.com>
69494
69495         * modules/readline: New file.
69496
69497 2005-08-02  Simon Josefsson  <jas@extundo.com>
69498
69499         * modules/getdelim: New file.
69500
69501         * modules/getline: Rewrite, don't use getndelim2.
69502
69503 2005-08-02  Simon Josefsson  <jas@extundo.com>
69504
69505         * m4/getline.m4: Separate out getdelim stuff into separate module.
69506
69507         * m4/getdelim.m4: New file.
69508
69509 2005-08-02  Simon Josefsson  <jas@extundo.com>
69510
69511         * lib/getline.h, getline.c: Rewrite.
69512
69513         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69514
69515 2005-07-31  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/lock.h (gl_lock_initializer): New macro.
69518         (gl_lock_define_initialized): Use it.
69519         (gl_rwlock_initializer): New macro.
69520         (gl_rwlock_define_initialized): Use it.
69521         (gl_recursive_lock_initializer): New macro.
69522         (gl_recursive_lock_define_initialized): Use it.
69523
69524 2005-07-30  Karl Berry  <karl@gnu.org>
69525
69526         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69527         Report from Ben Pfaff, regarding getopt.
69528
69529 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69532         normal way.
69533         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69534         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69535         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69536         (gl_GETOPT): Use the new macros.  Most of the implementation
69537         is moved to the new macros.  This is for programs like Emacs
69538         that don't want all the functionality of gl_GETOPT.
69539
69540 2005-07-26  Bruno Haible  <bruno@clisp.org>
69541
69542         * m4/lock.m4: Update from GNU gettext.
69543
69544 2005-07-26  Bruno Haible  <bruno@clisp.org>
69545
69546         * lib/lock.h: Update from GNU gettext.
69547         * lib/lock.c: Update from GNU gettext.
69548
69549 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69552         obsolescent AC_TRY_RUN.  Include the default includes files, for
69553         'exit'.
69554
69555 2005-07-24  Bruno Haible  <bruno@clisp.org>
69556
69557         * modules/visibility: New file.
69558         * MODULES.html.sh (Misc): Add visibility.
69559
69560 2005-07-24  Bruno Haible  <bruno@clisp.org>
69561
69562         * m4/visibility.m4: New file.
69563
69564 2005-07-24  Bruno Haible  <bruno@clisp.org>
69565
69566         * doc/visibility.texi: New file.
69567
69568 2005-07-22  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69571         $(ALLOCA_H), redundant through BUILT_SOURCES.
69572         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69573         redundant through BUILT_SOURCES.
69574         * modules/byteswap (Makefile.am): Remove explicit dependency on
69575         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69576         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69577         $(FNMATCH_H), redundant through BUILT_SOURCES.
69578         * modules/getopt (Makefile.am): Remove explicit dependency on
69579         $(GETOPT_H), redundant through BUILT_SOURCES.
69580         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69581         redundant through BUILT_SOURCES.
69582         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69583         redundant through BUILT_SOURCES.
69584         * modules/stdbool (Makefile.am): Remove explicit dependency on
69585         $(STDBOOL_H), redundant through BUILT_SOURCES.
69586         * modules/stdint (Makefile.am): Remove explicit dependency on
69587         $(STDINT_H), redundant through BUILT_SOURCES.
69588         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69589         Remove explicit dependency on $(SYSEXITS_H).
69590         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69591
69592 2005-07-18  Simon Josefsson  <jas@extundo.com>
69593
69594         * lib/check-version.c (check_version): Accept identical versions too.
69595
69596 2005-07-18  Bruno Haible  <bruno@clisp.org>
69597
69598         * modules/lock: New file.
69599         * MODULES.html.sh (Multithreading): New section.
69600
69601 2005-07-18  Bruno Haible  <bruno@clisp.org>
69602
69603         * m4/lock.m4: New file, from GNU gettext.
69604
69605 2005-07-18  Bruno Haible  <bruno@clisp.org>
69606
69607         * lib/lock.h: New file, from GNU gettext.
69608         * lib/lock.c: New file, from GNU gettext.
69609
69610 2005-07-18  Bruno Haible  <bruno@clisp.org>
69611
69612         * lib/lock.h (gl_once_t): New type.
69613         (gl_once_define, gl_once): New macros.
69614         * lib/lock.c (fresh_once): New variable.
69615         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69616         functions.
69617
69618 2005-07-16  Simon Josefsson  <jas@extundo.com>
69619
69620         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69621         workaround, suggested by Bruno.
69622
69623 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * modules/xalloc (Depends-on): Add xalloc-die.
69626         * modules/xvasprintf (Depends-on): Add xalloc-die.
69627
69628 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69629
69630         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69631         with a minor change.
69632
69633 2005-07-15  Bruno Haible  <bruno@clisp.org>
69634
69635         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69636         When using lib/poll.c, define poll as rpl_poll.
69637
69638 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * modules/argp (Depends-on): Remove unlocked-io.
69641
69642 2005-07-14  Derek Price  <derek@ximbiot.com>
69643
69644         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69645         for glob symlink bug.
69646
69647 2005-07-14  Bruno Haible  <bruno@clisp.org>
69648
69649         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69650         Instead, test for *_unlocked function declarations directly.
69651
69652 2005-07-11  Simon Josefsson  <jas@extundo.com>
69653
69654         * modules/size_max: New file.
69655
69656         * modules/xsize: Depend on size_max module for size_max.m4.
69657
69658 2005-07-11  Simon Josefsson  <jas@extundo.com>
69659
69660         * lib/size_max.h: New file.
69661
69662 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69663
69664         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69665         copyright symbol and the year.
69666         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69667         (version_etc_va): Use parameterized copyright notice.
69668         Reword to conform to the current GNU coding standards.
69669
69670 2005-07-11  Karl Berry  <karl@gnu.org>
69671
69672         * doc/gnulib.texi (Quoting): new node.
69673         (Initial import): more info, from Patrice.
69674
69675 2005-07-11  Bruno Haible  <bruno@clisp.org>
69676
69677         * gnulib-tool (func_usage): Document option --avoid.
69678         (Command line options): Handle --avoid.
69679         (func_acceptable): New function.
69680         (func_modules_transitive_closure): Use it.
69681
69682 2005-07-11  Bruno Haible  <bruno@clisp.org>
69683
69684         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69685         Reported by Jim Meyering.
69686
69687 2005-07-10  Bruno Haible  <bruno@clisp.org>
69688
69689         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69690         Needed when size_t is smaller than 'unsigned int'.
69691         Reported by Paul Eggert.
69692
69693 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69694
69695         * modules/argp (Depends-on): Add unlocked-io
69696
69697 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69698
69699         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69700         block of defines.
69701
69702 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69705         fix now.
69706
69707 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69708         and Paul Eggert  <eggert@cs.ucla.edu>
69709
69710         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69711         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69712
69713 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * modules/regex (Files): Add lib/regex_internal.c,
69716         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69717         (Depends-on): Add extensions.
69718         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69719
69720 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69723         pathconf.
69724         * m4/same.m4 (gl_SAME): Likewise.
69725         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69726
69727         * m4/regex.m4: Adjust to new libc regex implementation.
69728         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69729         all the .c and .h parts of (the new) regex.
69730         Quote the m4 stuff better.
69731         Check for RE_ICASE bug of old gnulib.
69732         Check for REG_STARTEND of recent libc.
69733         Rename local variables from jm_* to gl_*.
69734         Quote operand of "test -f".
69735         Say "recent enough" version of libc, not "version 2".
69736         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69737         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69738         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69739         Remove check for btowc, isascii.
69740         Require AM_LANGINFO_CODESET.
69741
69742 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         * lib/regex.c, regex.h: Sync from libc.
69745         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69746         * lib/regexec.c:
69747         New files, synced from libc, except that regex_internal.h
69748         currently has a small porting fix.
69749
69750 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69753         regex_internal.c, regexec.c.
69754         Add regex_internal.h too, but as a comment, since the libc version
69755         is currently broken in gnulib mode.
69756
69757 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         Support programs like Emacs that use gnulib but not gettext.
69760         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69761         * modules/gettext-h: New file.
69762         * modules/gettext (Files): Remove lib/gettext.h.
69763         (Depends-on): Add gettext-h.
69764         (Makefile.am): Remove lib_SOURCES.
69765         * modules/argmatch, modules/c-stack, modules/closeout:
69766         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69767         * modules/execute, modules/file-type, modules/getaddrinfo:
69768         * modules/getopt, modules/human, modules/javacomp:
69769         * modules/javaexec, modules/mkdir-p, modules/obstack:
69770         * modules/openat, modules/pagealign_alloc, modules/pipe:
69771         * modules/quotearg, modules/regex, modules/rpmatch:
69772         * modules/unicodeio, modules/userspec, modules/version-etc:
69773         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69774         * modules/xsetenv:
69775         Depend on gettext-h, not gettext.
69776
69777 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * gnulib-tool (func_import): Add support for 'public domain' license.
69780         * modules/alloca, modules/atexit, modules/memmove:
69781         Now public domain, not GPL.
69782         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69783         * modules/realloc, modules/strerror, modules/strtod:
69784         Now LGPL, not GPL.
69785
69786 2005-07-05  Bruno Haible  <bruno@clisp.org>
69787
69788         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69789         autoconf CVS. Needed for mingw.
69790
69791 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         Remove the dependency of the strftime module on the tzset module.
69794         * modules/strftime (Depends-on): Remove dependency on tzset.
69795
69796 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         Remove the dependency of the strftime module on the tzset module.
69799         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69800         gl_FUNC_TZSET_CLOBBER.
69801
69802 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         Remove the dependency of the strftime module on the tzset module.
69805         * lib/strftime.c (my_strftime)
69806         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69807         Copy the input structure, to work around some of the bug with
69808         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69809         Solaris releases, you should also use the tzset module, but we won't
69810         require it as a dependency any more since we don't want LGPLed code
69811         to depend on GPLed code.
69812
69813 2005-07-02  Jim Meyering  <jim@meyering.net>
69814
69815         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69816         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69817         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69818         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69819
69820 2005-07-02  Jim Meyering  <jim@meyering.net>
69821
69822         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69823
69824 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69827         declares only 'struct timespec;' (!).
69828
69829 2005-07-01  Jim Meyering  <jim@meyering.net>
69830
69831         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69832         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69833         * lib/save-cwd.c, tempname.c:
69834         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69835         and don't include <sys/file.h>).
69836
69837 2005-06-29  Jim Meyering  <jim@meyering.net>
69838
69839         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69840         type name.  Use the variable name instead.
69841         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69842         Likewise.
69843
69844 2005-06-28  Simon Josefsson  <jas@extundo.com>
69845
69846         * modules/check-version (Files): Add check-version.m4.
69847
69848 2005-06-28  Simon Josefsson  <jas@extundo.com>
69849
69850         * m4/check-version.m4: New file, suggested by Jim Meyering
69851         <jim@meyering.net>.
69852
69853 2005-06-28  Simon Josefsson  <jas@extundo.com>
69854
69855         * lib/check-version.h, lib/check-version.c: New files.
69856
69857 2005-06-28  Simon Josefsson  <jas@extundo.com>
69858
69859         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69860         collision with global variable.  Better indentation.  Don't
69861         increment buffer pointer beyond buffer end.  Based on comments
69862         from Paul Eggert <eggert@cs.ucla.edu>.
69863
69864         * lib/base64.h: Indent.
69865
69866 2005-06-28  Simon Josefsson  <jas@extundo.com>
69867
69868         * doc/gnulib.texi (Library version handling): New section.
69869
69870 2005-06-28  Jim Meyering  <jim@meyering.net>
69871
69872         * check-module (find_included_lib_files): Hard-code another
69873         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69874         but modules/fts-lgpl (correctly) does not list those files.
69875
69876         * modules/canonicalize (Files): Add lib/pathmax.h.
69877
69878 2005-06-25  Simon Josefsson  <jas@extundo.com>
69879
69880         * modules/check-version: New file.
69881
69882 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69885         initializer of struct addrinfo, as an indication that we don't
69886         care how many members the structure has.
69887
69888 2005-06-24  Derek Price  <derek@ximbiot.com>
69889         and Bruno Haible  <bruno@clisp.org>
69890
69891         Remove stat module & update lstat.
69892         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69893         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69894         * m4/stat.m4: Remove this file.
69895
69896 2005-06-24  Derek Price  <derek@ximbiot.com>
69897         and Bruno Haible  <bruno@clisp.org>
69898
69899         Remove stat module & update lstat.
69900         * lib/stat.c: Remove this file...
69901         (slash_aware_lstat): ...moving this content and its support...
69902         * lib/lstat.c (rpl_lstat): ...into here.
69903         * lib/lstat.h: New file.
69904
69905 2005-06-24  Derek Price  <derek@ximbiot.com>
69906         and Bruno Haible  <bruno@clisp.org>
69907
69908         Remove stat module & update lstat.
69909         * config/srclist.txt (libc sources): Remove stat.
69910
69911 2005-06-24  Derek Price  <derek@ximbiot.com>
69912         and Bruno Haible  <bruno@clisp.org>
69913
69914         Remove stat module & update lstat.
69915         * MODULES.html.sh (stat): Remove.
69916         * MODULES.html: Regenerated.
69917         * modules/lstat (Description): Correct function name.
69918         (Files): Add "lstat.h".
69919         (Depends-on): Remove stat, add xalloc, stat-macros.
69920         * modules/stat: Remove this file.
69921         (Include): Add "lstat.h", remove <sys/stat.h>.
69922
69923 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69926         (ranged_convert): Don't save conversion in a temporary struct.
69927         This causes a warning with GCC 4.0.0, and anyway in the typical
69928         case it's not worth the extra 100 bytes or so of code.
69929         (ranged_convert, __mktime_internal): When calling a function via a
69930         pointer P, use P () rather than (*P) (), as we now assume C89 or
69931         better.
69932
69933 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69936         "who -r" failed to give output.  Problem reported by Tim Waugh.
69937
69938         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69939         (xcalloc): Use it to avoid needless tests.
69940         Problem reported by Jim Meyering.
69941
69942 2005-06-20  Derek Price  <derek@ximbiot.com>
69943
69944         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69945         unnecessary for Autoconfs > 2.59c.
69946
69947 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69948
69949         * lib/argp.h (__option_is_short): Check upper limit of
69950         __key. Isprint() requires its argument to have the value
69951         of an unsigned char or EOF.
69952
69953 2005-06-16  Jim Meyering  <jim@meyering.net>
69954
69955         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69956         when either N or S is zero.
69957
69958 2005-06-16  Derek Price  <derek@ximbiot.com>
69959
69960         * m4/bison.m4: Declare YACC & YFLAGS precious.
69961
69962 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69965         multibyte string or pattern, fall back on unibyte matching.
69966         Problem reported by James Youngman.
69967
69968 2005-06-08  Bruno Haible  <bruno@clisp.org>
69969
69970         * modules/csharpcomp: New file.
69971         * MODULES.html.sh (C#): Add csharpcomp.
69972
69973 2005-06-08  Bruno Haible  <bruno@clisp.org>
69974
69975         * m4/csharpcomp.m4: New file, from GNU gettext.
69976
69977 2005-06-08  Bruno Haible  <bruno@clisp.org>
69978
69979         * lib/csharpcomp.h: New file, from GNU gettext.
69980         * lib/csharpcomp.c: New file, from GNU gettext.
69981         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69982
69983 2005-06-08  Bruno Haible  <bruno@clisp.org>
69984
69985         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69986         warning on mingw.
69987
69988 2005-06-07  Derek Price  <derek@ximbiot.com>
69989
69990         Sync from CVS.
69991         * lib/glob_.h: Indent nested #ifdef.
69992
69993 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         Sync from coreutils.
69996         Use "file name" when talking about file names, instead of "filename"
69997         or "path", as per the GNU coding standards.
69998         * lib/mkdir-p.c: Renamed from makepath.c.
69999         (make_dir_parents): Renamed from make_path.  All callers changed.
70000         * lib/mkdir-p.h: Likewise.  All includers changed.
70001         * lib/filenamecat.c: Renamed from path-concat.c.
70002         (file_name_concat): Renamed from path_concat.  All callers changed.
70003         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70004         * lib/filenamecat.h: Likewise.  All includers changed.
70005         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70006         in comments or local variable names.
70007         * lib/basename.c: Likewise.
70008         * lib/canonicalize.c, canonicalize.h: Likewise.
70009         * lib/dirname.c, dirname.h: Likewise.
70010         * lib/euidaccess.c: Likewise.
70011         * lib/exclude.c: Likewise
70012         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70013         * lib/fsusage.c, fsuage.h: Likewise.
70014         * lib/fts.c, fts_.h: Likewise.
70015         * lib/getcwd.c: Likewise.
70016         * lib/getloadavg.c: Likewise.
70017         * lib/mkstemp.c: Likewise.
70018         * lib/mountlist.c, mountlist.h: Likewise.
70019         * lib/openat.c, openat.h: Likewise.
70020         * lib/readlink-stub.c: Likewise.
70021         * lib/readutmp.c, readutmp.h: Likewise.
70022         * lib/rename.c: Likewise.
70023         * lib/rmdir.c: Likewise.
70024         * lib/same.c: Likewise.
70025         * lib/savedir.c: Likewise.
70026         * lib/stripslash.c: Likewise.
70027         * lib/tempname.c: Likewise.
70028         * lib/xreadlink.c: Likewise.
70029         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70030         All uses changed.
70031         * lib/exclude.h: Likewise.
70032
70033         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70034         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70035         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70036         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70037         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70038         files have been getting away with it for years (MORE/BSD 4.3
70039         is extinct now).
70040         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70041         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70042
70043         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70044         Define to 256, not 255, as per modern POSIX.
70045
70046 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         Sync from coreutils.
70049         Use "file name" when talking about file names, instead of "filename"
70050         or "path", as per the GNU coding standards.
70051         * MODULES.html.sh: mkdir-p renamed from makepath.
70052         filenamecat renamed from path-concat.
70053         * modules/filenamecat: Renamed from modules/path-concat.
70054         (Files): filenamecat.h and filenamecat.c renamed from
70055         path-concat.h and path-concat.c.
70056         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70057         (Include): filenamecat.h, not path-concat.h.
70058         * modules/mkdir-p: Renamed from modules/makepath.
70059         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70060         makepath.c.
70061         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70062         (Include): mkdir-p.h, not makepath.h.
70063
70064 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         Sync from coreutils.
70067         * m4/mkdir-p.m4: Renamed from makepath.m4.
70068         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70069         Rename files from makepath.c to mkdir-p.c, and from
70070         makepath.h to mkdir-p.h.
70071         * m4/filenamecat.m4: Renamed from path-concat.m4.
70072         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70073         Rename files from path-concat.c to filenamecat.c,
70074         and from path-concat.h to filenamecat.h.
70075         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70076         "file name" in local variables or comments.
70077         * m4/rename.m4: Likewise.
70078
70079 2005-06-01  Bruno Haible  <bruno@clisp.org>
70080
70081         * modules/csharpexec: New file.
70082         * MODULES.html.sh (C#): New section.
70083
70084 2005-06-01  Bruno Haible  <bruno@clisp.org>
70085
70086         * m4/csharp.m4: New file, from GNU gettext.
70087         * m4/csharpexec.m4: New file, from GNU gettext.
70088
70089 2005-06-01  Bruno Haible  <bruno@clisp.org>
70090
70091         * lib/csharpexec.h: New file, from GNU gettext.
70092         * lib/csharpexec.c: New file, from GNU gettext.
70093         * lib/csharpexec.sh.in: New file, from GNU gettext.
70094
70095 2005-05-31  Derek Price  <derek@ximbiot.com>
70096             Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         Sync from cvs.
70099         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70100
70101 2005-05-31  Derek Price  <derek@ximbiot.com>
70102             Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         Sync from cvs.
70105         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70106
70107 2005-05-29  Derek Price  <derek@ximbiot.com>
70108
70109         * config/srclist.txt (glob_.h, glob.c): Add these files.
70110
70111 2005-05-29  Derek Price  <derek@ximbiot.com>
70112
70113         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70114         * modules/glob: New file.
70115         * modules/getlogin_r: Add link to POSIX spec in description.
70116
70117 2005-05-29  Derek Price  <derek@ximbiot.com>
70118             Paul Eggert  <eggert@cs.ucla.edu>
70119
70120         * m4/glob.m4: New file.
70121
70122 2005-05-29  Derek Price  <derek@ximbiot.com>
70123             Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * lib/glob_.h, lib/glob.c: New files.
70126
70127 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70130         * modules/fts-lgpl (Depends-on): Remove gettext.
70131
70132 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70133
70134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70135         and don't require gt_INTTYPES_PRI.
70136
70137 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70140
70141         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70142         the configuration hassle isn't worth it.
70143         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70144         (LONGEST_MODIFIER, PRIuMAX): Remove.
70145
70146 2005-05-27  Bruno Haible  <bruno@clisp.org>
70147
70148         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70149
70150 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70153         _POSIX_PTHREAD_SEMANTICS for Solaris.
70154
70155 2005-05-25  Derek Price  <derek@ximbiot.com>
70156
70157         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70158
70159 2005-05-25  Derek Price  <derek@ximbiot.com>
70160             Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70163         * lib/getlogin_r.c, getlogin_r.h: New files.
70164
70165 2005-05-25  Bruno Haible  <bruno@clisp.org>
70166             Derek Price  <derek@ximbiot.com>
70167
70168         * lib/getlogin_r.h: Simplify API documentation.
70169
70170 2005-05-23  Derek Price  <derek@ximbiot.com>
70171
70172         * modules/minmax (Files): Add m4/minmax.m4.
70173         (configure.ac): Add gl_MINMAX.
70174
70175 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70178         so that unistd-safer.h (GPL'ed code) need not be included.
70179
70180 2005-05-22  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/minmax.m4: New file.
70183         Based on a patch by Derek Price <derek@ximbiot.com>.
70184
70185 2005-05-22  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70188         (INT64_MIN): Fix definition.
70189         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70190
70191         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70192         NEED_SIGNED_INT_TYPES.
70193
70194         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70195         HAVE_SYSTEM_INTTYPES.
70196
70197 2005-05-22  Bruno Haible  <bruno@clisp.org>
70198
70199         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70200         Also include <sys/param.h> if it defines MIN, MAX.
70201         Based on a patch by Derek Price <derek@ximbiot.com>.
70202
70203 2005-05-21  Jim Meyering  <jim@meyering.net>
70204
70205         * modules/fts (Files): Add m4/inttypes-pri.m4.
70206         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70207
70208 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         New fts module.
70211         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70212         (setup_dir, free_dir): New functions.
70213         (enter_dir, leave_dir): Define trivial
70214         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70215         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70216         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70217         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70218         Move to fts-cycle.c.
70219         (fts_open): Use setup_dir.
70220         (fts_close): Use free_dir.
70221         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70222         This adds a label and some gotos, but the alternatives were messier.
70223         Check for memory allocation failure when entering a dir.
70224         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70225         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70226         (FTS): New member fts_cycle, that is a union that contains the
70227         old active_dir_ht and cycle_state.  All uses changed to mention
70228         fts_cycle.ht and fts_cycle.state.
70229         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70230         fts.c, with the following changes:
70231         (setup_dir, free_dir): New functions.
70232         (enter_dir): Now returns bool.  Return true if successful, false
70233         if memory exhausted.  All callers changed.
70234         Do not bother partly cleaning up on
70235         memory allocation failure; that is free_dir's job.
70236         However, free ad if hash_insert fails, to avoid memory leak.
70237         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70238         fts->fts_options to see which union member to use.
70239
70240 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70241
70242         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70243         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70244
70245 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70246
70247         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70248
70249 2005-05-20  Jim Meyering  <jim@meyering.net>
70250
70251         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70252         Now a macro, to pacify GCC.
70253
70254 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70255
70256         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70257         of -1.
70258
70259 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70260
70261         * lib/chown.c (rpl_chown): Return -1 on failure.
70262
70263 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70266         Don't check for stddef.h.
70267         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70268         don't use its results.
70269         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70270         since we include them unconditionally.  Don't require
70271         AM_STDBOOL_H, since stdbool is a prerequisite.
70272         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70273         since we assume C89 or better.
70274         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70275         as we don't use their results.
70276         Don't check for fchdir, memmove, memset, strrchr, as we use
70277         them unconditionally.
70278         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70279         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70280
70281 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70284         Include <stddef.h> unconditionally, since we assume C89 now.
70285         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70286         * lib/fts.c: Include fts_.h first, to check interface.
70287         Do not include intprops.h; no longer needed.
70288         Include cycle-check.h and hash.h, since fts_.h no longer does.
70289         Remove unnecessary casts of closedir to void.
70290         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70291         decide whether to decrement nlinks.
70292         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70293         (FTS): Use struct hash_table * instead of Hash_table, so that
70294         we no longer need to include hash.h here.
70295
70296 2005-05-18  Jim Meyering  <jim@meyering.net>
70297
70298         * modules/dirfd (License): Change to LGPL.  Most of the code
70299         is already in the public domain.
70300
70301 2005-05-18  Jim Meyering  <jim@meyering.net>
70302
70303         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70304         Reported by Yoann Vandoorselaere.
70305
70306 2005-05-17  Jim Meyering  <jim@meyering.net>
70307
70308         * m4/fts.m4: New file, from coreutils.
70309
70310 2005-05-17  Jim Meyering  <jim@meyering.net>
70311
70312         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70313
70314 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         Sync from coreutils.
70317         * m4/unlinkdir.m4: New file.
70318
70319 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         Sync from coreutils.
70322         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70323         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70324         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70325         White space changes only.
70326         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70327         special.
70328         * lib/yesno.c: Include getline.h, not ctype.h.
70329         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70330         Use getline to remove arbitrary restriction on response length.
70331
70332 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * config/srclist-update: Spell out "Street" in FSF postal
70335         mail address; this is the style the FSF seems to prefer.
70336
70337         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70338         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70339         this updates FSF postal mail address.
70340
70341         Sync from coreutils.
70342         * modules/unlinkdir: New file.
70343         * modules/yesno (Depends-on): Add getline.
70344         * MODULES.html.sh (File system functions): Add unlinkdir.
70345
70346 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70349         lib/strsep.h:
70350         Change the initial comment to refer to GPL, not LGPL.
70351         gnulib-tool will change it to LGPL as needed.
70352
70353         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70354         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70355         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70356         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70357         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70358         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70359         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70360         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70361         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70362         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70363         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70364         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70365         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70366         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70367         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70368         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70369         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70370         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70371         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70372         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70373         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70374         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70375         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70376         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70377         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70378         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70379         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70380         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70381         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70382         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70383         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70384         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70385         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70386         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70387         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70388         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70389         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70390         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70391         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70392         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70393         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70394         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70395         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70396         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70397         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70398         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70399         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70400         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70401         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70402         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70403         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70404         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70405         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70406         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70407         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70408         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70409         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70410         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70411         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70412         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70413         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70414         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70415         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70416         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70417         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70418         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70419         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70420         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70421         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70422         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70423         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70424         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70425         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70426         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70427         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70428         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70429         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70430         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70431         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70432         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70433         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70434         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70435         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70436         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70437         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70438         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70439         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70440         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70441         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70442         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70443         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70444         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70445         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70446         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70447         lib/yesno.c, lib/yesno.h:
70448         Update FSF postal mail address.
70449
70450 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70451
70452         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70453         tests/test-memmem.c, tests/test-stpncpy.c:
70454         Update FSF postal mail address.
70455
70456 2005-05-13  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70459         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70460         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70461         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70462         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70463         Add support for 64-bit integers in the MSVC compiler.
70464
70465 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70466
70467         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70468
70469 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70470
70471         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70472
70473 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * doc/getdate.texi (General date syntax): Don't say that date
70476         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70477         Problem reported by Nic Ferrier.
70478
70479 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70480
70481         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70482         specified in ai_socktype. Fix invalid ai_protocol
70483         check. ai_protocol is usually set to 0 or depending on
70484         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70485         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70486         ai_socktype / ai_protocol in the returned addrinfo structure.
70487
70488 2005-05-10  Simon Josefsson  <jas@extundo.com>
70489
70490         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70491         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70492
70493 2005-05-10  Karl Berry  <karl@gnu.org>
70494
70495         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70496         (from http://www.gnu.org/licenses).
70497         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70498         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70499         fdl.texi suffices.
70500
70501 2005-05-10  Karl Berry  <karl@gnu.org>
70502
70503         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70504         (COPYING.DOC): remove.
70505
70506         * config/srclist-update: new FSF address.
70507
70508 2005-05-10  Derek Price  <derek@ximbiot.com>
70509
70510         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70511         possible.
70512
70513 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70514             Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/inet_ntop: New file.
70517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70518         inet_ntop.
70519
70520 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70521             Bruno Haible  <bruno@clisp.org>
70522
70523         * m4/inet_ntop.m4: New file.
70524
70525 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70526             Bruno Haible  <bruno@clisp.org>
70527
70528         * lib/inet_ntop.h: New file.
70529         * lib/inet_ntop.c: New file, from glibc with modifications.
70530
70531 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * modules/time_r (License): Change to LGPL.
70534         * modules/extensions (License): Change to LGPL.  Actually,
70535         the license is more permissive than that, but currently gnulib-tool
70536         doesn't know how to handle more-permissive licenses.
70537
70538         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70539         Problem reported by Dave Love.
70540
70541 2005-05-08  Jim Meyering  <jim@meyering.net>
70542
70543         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70544         blank.
70545
70546 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70547
70548         * modules/argmatch (Depends-on): Add stdbool.
70549         * modules/backupfile (Depends-on): Likewise.
70550         * modules/chdir-long (Depends-on): Likewise.
70551         * modules/closeout (Depends-on): Likewise.
70552         * modules/cycle-check (Depends-on): Likewise.
70553         * modules/dirname (Depends-on): Likewise.
70554         * modules/fnmatch (Depends-on): Likewise.
70555         * modules/fsusage (Depends-on): Likewise.
70556         * modules/fwriteerror (Depends-on): Likewise.
70557         * modules/getcwd (Depends-on): Likewise.
70558         * modules/getloadavg (Depends-on): Likewise.
70559         * modules/hard-locale (Depends-on): Likewise.
70560         * modules/makepath (Depends-on): Likewise.
70561         * modules/mountlist (Depends-on): Likewise.
70562         * modules/nanosleep (Depends-on): Likewise.
70563         * modules/posixtm (Depends-on): Likewise.
70564         * modules/quotearg (Depends-on): Likewise.
70565         * modules/readtokens (Depends-on): Likewise.
70566         * modules/readtokens0 (Depends-on): Likewise.
70567         * modules/readutmp (Depends-on): Likewise.
70568         * modules/save-cwd (Depends-on): Likewise.
70569         * modules/strftime (Depends-on): Likewise.
70570         * modules/userspec (Depends-on): Likewise.
70571         * modules/utimecmp (Depends-on): Likewise.
70572         * modules/xgetcwd (Depends-on): Likewise.
70573         * modules/xnanosleep (Depends-on): Likewise.
70574         * modules/xstrtod (Depends-on): Likewise.
70575         * modules/yesno (Depends-on): Likewise.
70576
70577 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70578
70579         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70580         needless checks.
70581
70582 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         Merge from coreutils.  Among other things,
70585         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70586         * lib/fd-safer.c: New file.
70587         * lib/fcntl-safer.h, open-safer.c: Remove.
70588         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70589         * lib/dup-safer.c: Include unistd-safer.h first.
70590         Don't include errno.h.
70591         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70592         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70593         * lib/file-type.c: Rely on file-type.h change.
70594         * lib/getloadavg.c: Include unistd-safer.h.
70595         (getloadavg): Use safer open.
70596         * lib/getusershell.c: Include "stdio-safer.h".
70597         (getusershell): Use safer fopen.
70598         * lib/long-options.c (long_options): Use NULL rather than 0.
70599         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70600         'free'.
70601         * lib/modechange.c: Likewise.
70602         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70603         (MODE_DONE): New constant.
70604         (struct mode_change): Remove 'next' member.
70605         (make_node_op_equals): New function; like the old one of the
70606         same name, except it allocates an array.
70607         (mode_compile, mode_create_from_ref): Use it.
70608         (mode_compile): Allocate result as an array, not a linked list.
70609         Parse octal string ourself, so that we catch mistakes like "+0".
70610         (mode_adjust): Arg is an array, not a linked list.
70611         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70612         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70613         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70614         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70615         Remove.  This is now stat-macros.h's job.
70616         (talloc): Remove.  All callers replaced by xalloc, so that
70617         our invokers don't have to worry about reporting memory failures.
70618         (make_node_op_equals): Remove.
70619         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70620         New constants.
70621         (struct mode_change): Moved here from modechange.h.
70622         (mode_append_entry): Remove.
70623         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70624         apps to have incorrect behavior.  Use simpler algorithm for head
70625         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70626         Detect more invalid usages rather than having somewhat-random behavior.
70627         Don't insert an "a=" action, as that leads to incorrect behavior.
70628         (mode_compile, mode_create_from_ref): Return NULL on error instead
70629         of an enum, since now there's only one way to have an error.  All
70630         callers changed.
70631         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70632         at the correct time.  Simplify calculation of "+u" and its ilk.
70633         Don't mishandle "+X".
70634         (mode_free): Remove "register" and localize decls.
70635         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70636         (struct mode_change): Move to modechange.c; callers don't
70637         need to see this stuff.
70638         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70639         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70640         (mode_change, mode_adjust): Reflect the new signatures noted above.
70641         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70642         that might redefine system include files.
70643         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70644         (my_usleep): Use NULL rather than (void *) 0.
70645         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70646         Use siginterrupt to specify that system calls should be interrupted.
70647         (rpl_nanosleep): Move initialization of suspended closer to call of
70648         my_usleep.
70649         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70650         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70651         (desirable_utmp_entry): New function.
70652         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70653         using x2nrealloc, to simplify logic.
70654         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70655         size calculation.  Do not assume utmp file is a regular file.
70656         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70657         (READ_UTMP_CHECK_PIDS): New constant.
70658         * lib/save-cwd.c: Include unistd-safer.h.
70659         (save_cwd): Use fd_safer.
70660         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70661         [!_LIBC] Include "stat-macros.h" instead.
70662         * lib/unistd-safer.h (fd_safer): New decl.
70663
70664 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         * modules/getloadavg (Depends-on): Add unistd-safer.
70667         * modules/getusershell (Depends-on): Add stdio-safer.
70668         * modules/lstat (Depends-on): Remove xalloc.
70669         * modules/mkstemp (Depends-on): Add stat-macros.
70670         * modules/modechange (Depends-on): Remove xstrtol.
70671         Add stat-macros, xalloc.
70672         * modules/save-cwd (Depends-on): Add unistd-safer.
70673         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70674         * modules/unistd-safer (Files): Add lib/fd-safer.c
70675         (Makefile.am): Remove lib_SOURCES.
70676
70677         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70678         Remove fcntl-safer; unistd-safer supersedes it.
70679
70680 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70683         AC_HEADER_STAT.
70684         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70685         (gl_PREREQ_CHOWN): Remove.
70686         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70687         it.  Don't require AC_HEADER_STAT.
70688         (gl_PREREQ_LSTAT): Remove.
70689         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70690         Don't require AC_HEADER_STAT.
70691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70692         (gl_PREREQ_RMDIR): Remove.
70693         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70694         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70695         the stat-macros module a prerequisite.
70696         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70697         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70698         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70699         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70700         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70701         variable names.
70702         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70703         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70704         variable prefixes.
70705         * m4/fcntl-safer.m4: Remove.
70706         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70707         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70708         Invoke gl_PREREQ_FD_SAFER.
70709         (gl_PREREQ_FD_SAFER): New macro.
70710         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70711         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70712         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70713         Remove duplicate call to AC_LIBOBJ(readutmp).
70714         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70715
70716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70717         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70718
70719 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * MODULES.html.sh (Misc): Add byteswap.
70722
70723 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70724
70725         * modules/getcwd (Depends-on): Add extensions.
70726         * modules/openat (Depends-on): Likewise.
70727
70728 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70729
70730         * modules/byteswap: New file.
70731
70732 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70733
70734         * m4/byteswap.m4: New file.
70735
70736 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70737
70738         * lib/byteswap_.h: New file.
70739
70740 2005-04-25  Karl Berry  <karl@gnu.org>
70741
70742         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70743
70744 2005-04-25  Albert Chin  <china@thewrittenword.com>
70745
70746         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70747         Toolkit C bug.
70748
70749 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70750
70751         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70752         (func_ln_if_changed): Remove forcibly for no error message
70753         in case file does not exist.
70754
70755 2005-04-19  Simon Josefsson  <jas@extundo.com>
70756
70757         * gnulib-tool (Options): Make --symlink mean --symbolic.
70758
70759 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70760
70761         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70762
70763 2005-04-16  Simon Josefsson  <jas@extundo.com>
70764
70765         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70766
70767 2005-04-15  Simon Josefsson  <jas@extundo.com>
70768
70769         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70770
70771 2005-04-15  Simon Josefsson  <jas@extundo.com>
70772
70773         * gnulib-tool: Rename --symlink to --symbolic.
70774
70775 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70776
70777         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70778         symbolic links to files instead of copying/moving.  Add --aux-dir,
70779         specifying directory relative --dir where auxiliary build tools
70780         are placed.
70781
70782 2005-04-14  Bruno Haible  <bruno@clisp.org>
70783
70784         * modules/allocsa (License): Change to LGPL.
70785         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70786
70787 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70790         that "UTC +1 second" continues to work.  Problem reported
70791         by Dmitry V. Levin.
70792         (relunit_snumber): New rule.
70793         (relunit): Use it.
70794
70795 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         * lib/getdate.y (universal_time_zone_table): New constant.
70798         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70799         universal_time_zone_table.
70800         (lookup_zone): Prefer universal_time_zone_table to
70801         local_time_zone_table, so that "GMT" time stamps are allowed in
70802         London during the summer.  Problem reported by Ian Abbott.
70803
70804 2005-04-12  Jim Meyering  <jim@meyering.net>
70805
70806         * lib/human.c (humblock): Set *options even when returning due to
70807         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70808         warning from gcc-4.
70809
70810 2005-04-09  Jim Meyering  <jim@meyering.net>
70811
70812         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70813         -Wuninitialized: initialize tm0.tm_year.
70814
70815 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70818         count, since there's no maximum.  All uses changed.
70819         Add member dsts_seen.
70820         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70821         not being INT_MAX.
70822         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70823         Use pc_rels_seen to decide whther a date is absolute.
70824
70825         * lib/getdate.y (number): Don't overwrite year.
70826         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70827         check.
70828
70829 2005-04-02  Simon Josefsson  <jas@extundo.com>
70830
70831         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70832         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70833
70834 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70835
70836         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70837         where no absolute path name can be longer than PATH_MAX.
70838
70839 2005-03-27  Jim Meyering  <jim@meyering.net>
70840
70841         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70842
70843 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70846         "one's complement" -> "ones' complement" in comment, as per Knuth.
70847         "value of type" -> "type or expression" in comment.
70848         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70849
70850 2005-03-26  Jim Meyering  <jim@meyering.net>
70851
70852         Comment nits.
70853         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70854         Correct typos: s/or/of/.
70855
70856 2005-03-26  Jim Meyering  <jim@meyering.net>
70857
70858         * modules/check-include-files: Move to ../ and rename to...
70859         * check-module: ...this.
70860
70861 2005-03-25  Jim Meyering  <jim@meyering.net>
70862
70863         * modules/xvasprintf (Files): Add xalloc.h.
70864
70865 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * modules/gettext (Files): config/config.rpath ->
70868         build-aux/config.rpath
70869         * modules/iconv (Files): Likewise.
70870         Problem reported by Oskar Liljeblad.
70871
70872 2005-03-23  Jim Meyering  <jim@meyering.net>
70873
70874         * modules/check-include-files: New script to check for
70875         missing dependencies, multiple includes, etc.
70876
70877         * modules/c-strtold (Depends-on): Add xalloc.
70878         * modules/c-strtod (Depends-on): Add xalloc.
70879         * modules/hash (Depends-on): Add xalloc.
70880         (Files): Remove lib/xalloc.h.
70881
70882         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70883         * modules/userspec (Files): Add lib/inttostr.h.
70884
70885 2005-03-23  Jim Meyering  <jim@meyering.net>
70886
70887         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70888
70889 2005-03-22  Jim Meyering  <jim@meyering.net>
70890
70891         * modules/stat-macros: New module.
70892         * modules/canonicalize, modules/euidaccess, modules/file-type,
70893         * modules/filemode, modules/lchown, modules/makepath,
70894         * modules/rmdir, modules/stat: Depend on new stat-macros module
70895         rather than listing lib/stat-macros.h manually.
70896         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70897
70898 2005-03-22  Jim Meyering  <jim@meyering.net>
70899
70900         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70901
70902 2005-03-22  Bruno Haible  <bruno@clisp.org>
70903
70904         * config/srclist.txt: Replace target directory 'config' with
70905         'build-aux'.
70906         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70907         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70908         ../build-aux/.
70909
70910 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         * modules/chdir-long (Depends-on): Add mempcpy.
70913
70914         * modules/acl, modules/backupfile, modules/c-strtod,
70915         modules/c-strtold, modules/canon-host, modules/canonicalize,
70916         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70917         modules/exclude, modules/exitfail, modules/file-type,
70918         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70919         modules/getdate, modules/getline, modules/getpagesize,
70920         modules/getpass, modules/getugroups, modules/group-member,
70921         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70922         modules/inttostr, modules/long-options, modules/makepath,
70923         modules/md5, modules/memcasecmp, modules/memcoll,
70924         modules/modechange, modules/mountlist, modules/path-concat,
70925         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70926         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70927         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70928         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70929         modules/strftime, modules/strndup, modules/strverscmp,
70930         modules/timespec, modules/unlocked-io, modules/userspec,
70931         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70932         modules/yesno:
70933         Remove lib_SOURCES line from Makefile.am section, as this is now
70934         done automatically by the corresponding Autoconf macro.
70935
70936 2005-03-21  Jim Meyering  <jim@meyering.net>
70937
70938         Changes imported from coreutils.
70939
70940         * lib/cycle-check.c: Don't include xalloc.h.
70941
70942         * lib/path-concat.c: Don't include assert.h.
70943         (path_concat): Remove assertion that would have triggered
70944         for ABASE starting with more than one slash.
70945         Reported by Andreas Schwab.
70946
70947         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70948         properly when ABASE is an absolute file name.
70949         Correct the description of this function.
70950         Include <assert.h>.
70951         Add an assertion and a test driver.
70952         This fixes a bug introduced on 2004-07-02.
70953         Andreas Schwab reported the resulting failure of cp --parents:
70954         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70955
70956 2005-03-21  Jim Meyering  <jim@meyering.net>
70957
70958         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70959         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70960
70961 2005-03-21  Jim Meyering  <jim@meyering.net>
70962         and  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70965         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70966         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70967         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70968         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70969         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70970         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70971         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70972         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70973         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70974         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70975         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70976         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70977         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70978         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70979         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70980         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70981         for these modules.
70982
70983 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70984
70985         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70986         (which shouldn't happen), generate nothing instead of returning 0
70987         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70988
70989 2005-03-16  Bruno Haible  <bruno@clisp.org>
70990
70991         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70992         HAVE_LONGLONG_64BIT.
70993
70994 2005-03-16  Bruno Haible  <bruno@clisp.org>
70995
70996         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70997         HAVE_LONGLONG_64BIT.
70998
70999 2005-03-16  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71002         HAVE_LONGLONG_64BIT.
71003
71004 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71007         reliably distinguish strftime failure from empty output on POSIX
71008         hosts.
71009
71010 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71013         (iconv_string): Don't guess a size-zero buffer, as that might cause
71014         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71015         result would be 'too large', where 'too large' is (heuristically)
71016         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71017         overflow concerns.  This will prevent some unwanted malloc failures
71018         when the inputs are very large.
71019
71020 2005-03-15  Karl Berry  <karl@gnu.org>
71021
71022         * config/srclist.txt (config.rpath): from gettext.
71023         * config/config.rpath: update.
71024
71025 2005-03-15  Bruno Haible  <bruno@clisp.org>
71026
71027         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71028         to 'negate'.
71029
71030         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71031         variable.
71032
71033         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71034         results.
71035
71036 2005-03-14  Simon Josefsson  <jas@extundo.com>
71037
71038         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71039         <fx@gnu.org>.
71040
71041 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71042
71043         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71044         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71045         intprops.h.
71046         * lib/strtol.c: Likewise.
71047
71048 2005-03-14  Jim Meyering  <jim@meyering.net>
71049
71050         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71051         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71052         to be nonzero so that we (and caller) can detect the difference
71053         between a valid zero-length expansion and an error return, even
71054         when the underlying strftime fails before writing anything into
71055         that location.
71056
71057 2005-03-14  Bruno Haible  <bruno@clisp.org>
71058
71059         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71060         Update from GNU gettext 0.14.3.
71061
71062 2005-03-10  Jim Meyering  <jim@meyering.net>
71063
71064         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71065
71066 2005-03-10  Jim Meyering  <jim@meyering.net>
71067
71068         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71069         so that this module works on systems without fchdir.
71070
71071 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71072
71073         Factor int-properties macros into a single file, except for
71074         glibc-related files.
71075         * lib/intprops.h: New file.
71076         * lib/getloadavg.c: Include it instead of limits.h.
71077         (INT_STRLEN_BOUND): Remove.
71078         * lib/human.c: Include intprops.h.
71079         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71080         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71081         302/1000.
71082         * lib/inttostr.h: Include intprops.h instead of limits.h.
71083         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71084         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71085         for consistency with intprops.h.
71086         (time_t_is_integer, twos_complement_arithmetic): Use them.
71087         * lib/sig2str.h: Include <signal.h>, intprops.h.
71088         (INT_STRLEN_BOUND): Remove.
71089         * lib/strftime.c (TYPE_SIGNED): Remove.
71090         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71091         * lib/strtol.c: Adjust comments to match intprops.h.
71092         * lib/userspec.c: Include intprops.h.
71093         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71094         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71095         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71096         instead of rolling our own expressions.
71097         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71098
71099         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71100         instead of int.
71101         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71102         the right thing even if adding 1900 would overflow.  Similarly
71103         for tm_mon + 1 and tm_yday + 1.
71104         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71105         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71106         (DO_SIGNED_NUMBER): New macro.
71107         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71108
71109 2005-03-07  Bruno Haible  <bruno@clisp.org>
71110
71111         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71112
71113 2005-03-07  Bruno Haible  <bruno@clisp.org>
71114
71115         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71116
71117 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71118
71119         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71120         (func_import): Only replace files via --import when they have actually
71121         changed.
71122
71123 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71124
71125         * m4/mmap-anon.m4: New file.
71126         * m4/pagealign_alloc.m4: New file.
71127
71128 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71129             Bruno Haible  <bruno@clisp.org>
71130
71131         * modules/pagealign_alloc: New file.
71132         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71133
71134 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71135             Bruno Haible  <bruno@clisp.org>
71136
71137         * lib/pagealign_alloc.h: New file.
71138         * lib/pagealign_alloc.c: New file.
71139
71140 2005-03-03  Bruno Haible  <bruno@clisp.org>
71141
71142         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71143         Use an all-permissive copyright notice, recommended by RMS.
71144
71145 2005-03-02  Bruno Haible  <bruno@clisp.org>
71146
71147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71148         of AIX, the replacement has to be done only after <string.h> is
71149         included, therefore not in config.h. stpncpy.h does the replacement,
71150         and stpncpy.c uses it.
71151
71152 2005-03-02  Bruno Haible  <bruno@clisp.org>
71153
71154         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71155         stpncpy.c uses it.
71156
71157 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71160         The workaround isn't strictly needed for POSIX conformance, and
71161         it's too much of a pain to configure and maintain.  We'll ask
71162         people to fix their kernels instead.
71163         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71164         (NANOSLEEP_BUG_WORKAROUND): Remove.
71165         (xnanosleep): Remove the workaround.
71166
71167 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71170         Reported by Derek Price.
71171         (Include): Add "timespec.h".
71172
71173         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71174
71175 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71178         to detect nanosleep bug.
71179
71180 2005-03-01  Bruno Haible  <bruno@clisp.org>
71181
71182         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71183
71184 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         * modules/gethrxtime: New file.
71187         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71188         (Depends-on): Add gethrxtime.
71189         (configure.ac): Add gl_XNANOSLEEP.
71190         (Makefile.am): Remove lib_SOURCES line.
71191
71192 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71195         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71196
71197 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71198
71199         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71200         * lib/timespec.h (gettime): Return void, since it always
71201         succeeds now.  All uses changed.
71202         * lib/gettime.c (gettime): Likewise.
71203         [HAVE_NANOTIME]: Prefer nanotime.
71204         Assume gettimeofday succeeds, as POSIX requires.
71205         Assime time () succeeds, since other code already does.
71206         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71207         (timespec_subtract): Remove.
71208         (NANOSLEEP_BUG_WORKAROUND): New constant.
71209         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71210         things considerably.  Use it only on GNU/Linux hosts, since the
71211         workaround shouldn't be needed elsewhere.
71212
71213 2005-02-24  Bruno Haible  <bruno@clisp.org>
71214
71215         * modules/gettext (Files): Add m4/glibc2.m4.
71216
71217 2005-02-24  Bruno Haible  <bruno@clisp.org>
71218
71219         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71220         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71221         * m4/progtest.m4:
71222         Update from GNU gettext 0.14.2.
71223         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71224
71225 2005-02-24  Bruno Haible  <bruno@clisp.org>
71226
71227         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71228         * lib/config.charset: Update from GNU gettext 0.14.2.
71229
71230 2005-02-24  Bruno Haible  <bruno@clisp.org>
71231
71232         * lib/gettext.h: Update from GNU gettext 0.14.2.
71233
71234 2005-02-23  Simon Josefsson  <jas@extundo.com>
71235
71236         * m4/iconvme.m4: New file.
71237
71238 2005-02-23  Jim Meyering  <jim@meyering.net>
71239
71240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71241         change.
71242         Thanks to Bruno Haible for catching it.
71243
71244 2005-02-22  Simon Josefsson  <jas@extundo.com>
71245
71246         * modules/iconvme: New file.
71247
71248         * MODULES.html.sh: Add iconvme.
71249
71250 2005-02-22  Simon Josefsson  <jas@extundo.com>
71251
71252         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71253
71254 2005-02-22  Simon Josefsson  <jas@extundo.com>
71255
71256         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71257
71258 2005-02-22  Jim Meyering  <jim@meyering.net>
71259
71260         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71261         s/ifndef/ifdef/.
71262
71263 2005-02-20  Neil Conway  <neilc@samurai.com>
71264
71265         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71266         returned by OSX/Darwin if the specified buffer is not large
71267         enough for the hostname.
71268
71269 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71270
71271         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71272         pass it to _help, otherwise the latter coredumps trying to
71273         dereference state.root_argp.
71274
71275 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         * modules/chdir-long (Depends-on): Add memrchr.
71278         * modules/memrchr (Files): Add lib/memrchr.h.
71279         (Include): "memrchr.h".
71280
71281 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71284
71285 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71286
71287         * lib/memrchr.h: New file.
71288         * lib/chdir-long.c: Include it.
71289         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71290         Don't bother including stddef.h.
71291
71292 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71295         inclusion.
71296         Include <sys/types.h>, for dev_t.
71297         (ME_DUMMY, ME_REMOTE): Move from here....
71298         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71299         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71300         Dmitry V. Levin.
71301         Include mountlist.h first, to test the interface.
71302
71303 2005-01-29  Bruno Haible  <bruno@clisp.org>
71304
71305         * lib/progname.c (program_name): Initialize.
71306         Needed when linking statically on MacOS X.
71307
71308 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         Sync from coreutils.
71311         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71312         (Depends-on): Add c-strtod.
71313         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71314
71315 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         Sync from coreutils.
71318         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71319
71320         Remove files that are specific to coreutils.
71321         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71322
71323 2005-01-28  Bruno Haible  <bruno@clisp.org>
71324
71325         * modules/javacomp: New file.
71326         * MODULES.html.sh (Java): Add javacomp.
71327
71328 2005-01-28  Bruno Haible  <bruno@clisp.org>
71329
71330         * m4/javacomp.m4: New file, from GNU gettext.
71331
71332 2005-01-28  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/javacomp.sh.in: New file, from GNU gettext.
71335         * lib/javacomp.h: New file, from GNU gettext.
71336         * lib/javacomp.c: New file, from GNU gettext.
71337
71338 2005-01-26  Simon Josefsson  <jas@extundo.com>
71339
71340         * lib/gai_strerror.c: Use GPL in header.
71341
71342 2005-01-26  Bruno Haible  <bruno@clisp.org>
71343
71344         * modules/javaexec: New file.
71345         * MODULES.html.sh (Java): Add javaexec.
71346
71347 2005-01-26  Bruno Haible  <bruno@clisp.org>
71348
71349         * m4/javaexec.m4: New file, from GNU gettext.
71350
71351 2005-01-26  Bruno Haible  <bruno@clisp.org>
71352
71353         * lib/javaexec.sh.in: New file, from GNU gettext.
71354         * lib/javaexec.h: New file, from GNU gettext.
71355         * lib/javaexec.c: New file, from GNU gettext.
71356
71357 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71358
71359         * modules/lchown (Depends-on): Remove lchown.h
71360
71361 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71362
71363         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71364         must be defined if the header file was not found, in order
71365         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71366
71367 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71368
71369         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71370         initializers for struct pentry_state.
71371         (__argp_error): Check return value of __asprintf
71372         (__argp_failure): Translate error message
71373
71374         * lib/argp-parse.c: Removed braces around the expansion of N_()
71375
71376 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71377
71378         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71379         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71380         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71381         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71382         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71383         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71384         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71385         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71386         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71387         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71388         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71389         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71390         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71391         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71392         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71393         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71394         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71395         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71396         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71397         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71398         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71399         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71400         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71401         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71402         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71403         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71404         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71405         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71406         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71407         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71408         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71409         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71410         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71411         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71412         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71413         Use an all-permissive copyright notice, recommended by RMS.
71414
71415 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71416
71417         * modules/chdir-long (Depends-on): Remove mempcpy.
71418
71419 2005-01-21  Jim Meyering  <jim@meyering.net>
71420
71421         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71422         same value as for Solaris 9.
71423
71424         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71425         component length.  This included changing the parameter to be
71426         of type `char *' rather than `char const *'.
71427         * lib/chdir-long.h (chdir_long): Update prototype.
71428
71429         * lib/openat.c (fdopendir, fstatat): New functions.
71430         * lib/openat.h: Include headers required for use of DIR and struct
71431         stat.
71432         [AT_SYMLINK_NOFOLLOW]: Define.
71433         (fdopendir, fstatat): Add prototypes.
71434
71435 2005-01-21  Bruno Haible  <bruno@clisp.org>
71436
71437         * modules/classpath: New file.
71438         * MODULES.html.sh (Java): Add classpath.
71439
71440 2005-01-21  Bruno Haible  <bruno@clisp.org>
71441
71442         * lib/classpath.h: New file, from GNU gettext.
71443         * lib/classpath.c: New file, from GNU gettext.
71444
71445 2005-01-20  Simon Josefsson  <jas@extundo.com>
71446
71447         * modules/version-etc-fsf: New file.
71448
71449 2005-01-20  Simon Josefsson  <jas@extundo.com>
71450
71451         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71452         * lib/version-etc.c: Remove version_etc_copyright.
71453         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71454         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71455
71456 2005-01-20  Simon Josefsson  <jas@extundo.com>
71457
71458         * lib/base64.h (isbase64): Add.
71459
71460         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71461         using a unsigned prototype, don't inline.
71462         (base64_decode): Use it.
71463
71464 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71467         it.
71468
71469 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         * lib/save-cwd.c (save_cwd): Remove code to support the case
71472         where fchdir is missing or flaky.
71473
71474 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71477
71478 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71479
71480         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71481         AC_LIBSOURCES now does this.
71482         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71483         with new ullong_max module.
71484
71485 2005-01-19  Bruno Haible  <bruno@clisp.org>
71486
71487         * modules/sh-quote: New file.
71488         * MODULES.html.sh (Executing programs): Add sh-quote.
71489
71490 2005-01-19  Bruno Haible  <bruno@clisp.org>
71491
71492         * lib/sh-quote.h: New file, from GNU gettext.
71493         * lib/sh-quote.c: New file, from GNU gettext.
71494
71495 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         Merge from coreutils.
71498         * m4/ullong_max.m4: New file.
71499         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71500         (gl_MACROS): Assume localeconv exists.
71501
71502 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         Merge changes from coreutils, as described below in several
71505         changelogs dated today.
71506
71507         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71508         (O_DIRECTORY): Remove; not needed here, since "." must be
71509         a directory.  All uses removed.
71510         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71511         universal on Suns, and we also need to test for IRIX.
71512         Revamp code to use 'if' rather than '#if'.
71513         Avoid unnecessary comparison of cwd->desc to 0.
71514
71515         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71516         for known valid error numbers rather than observed invalid ones.
71517
71518 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         * modules/ullong_max: New file.
71521
71522         * modules/chdir-long, modules/openat: New files.
71523         * modules/save-cwd (Depends-on): Depend on chdir-long.
71524         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71525
71526 2005-01-18  Jim Meyering  <jim@meyering.net>
71527
71528         Merge from coreutils.
71529         * m4/chdir-long.m4, m4/openat.m4: New files.
71530         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71531         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71532         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71533         is sane and DOES follow symlinks.  Besides, testing 20 different
71534         systems found no broken chown implementations.
71535         Prompted by a change in rsync's copy of this macro.
71536         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71537
71538         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71539
71540         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71541         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71542         NULL-means-set-to-current-time semantics.
71543         Remove temporary file immediately, rather than waiting
71544         for configure's at-exit trap code to do it.
71545
71546 2005-01-18  Jim Meyering  <jim@meyering.net>
71547
71548         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71549
71550         * lib/utimens.c (futimens): Account for the fact that futimes
71551         can also fail with errno == ENOSYS or errno == ENOENT.
71552         Patch from Dmitry V. Levin.
71553
71554         Change the name of the robust chdir function from chdir to chdir_long.
71555         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71556         (restore_cwd): Use chdir_long, not chdir.
71557         * lib/chdir-long.c: Renamed from chdir.c.
71558         * lib/chdir-long.h: Renamed from chdir.h.
71559         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71560         Hurd.
71561
71562 2005-01-18  Bruno Haible  <bruno@clisp.org>
71563
71564         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71565         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71566         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71567         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71568         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71569         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71570         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71571         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71572         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71573         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71574         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71575         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71576         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71577         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71578         Use an all-permissive copyright notice, recommended by RMS.
71579
71580 2005-01-18  Bob Proulx  <bob@proulx.com>
71581
71582         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71583         simplify offsetof() macro construct to avoid compile failure with
71584         native HP-UX 11.0 ANSI C compiler.
71585
71586 2005-01-17  Bruno Haible  <bruno@clisp.org>
71587
71588         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71589         redundant because stpncpy.m4 takes care of it.
71590
71591 2005-01-17  Bruno Haible  <bruno@clisp.org>
71592
71593         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71594
71595 2005-01-17  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71598         used.
71599
71600 2005-01-17  Bruno Haible  <bruno@clisp.org>
71601
71602         * lib/fwriteerror.h (fwriteerror): Change specification to include
71603         fclose.
71604         * lib/fwriteerror.c: Include <stdbool.h>.
71605         (fwriteerror): At the end, close the file stream. Record whether
71606         stdout was already closed.
71607
71608 2005-01-17  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/execute.c (environ): Declare if needed.
71611         * lib/pipe.c (environ): Likewise.
71612         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71613
71614 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71615
71616         * modules/argp: Depend on vsnprintf
71617
71618 2005-01-10  Jim Meyering  <jim@meyering.net>
71619
71620         * modules/closeout (Depends-on): Add atexit.
71621
71622 2005-01-06  Bruno Haible  <bruno@clisp.org>
71623
71624         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71625
71626 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71629         definitions to be after all include files, to avoid collisions.
71630         Problem reported by Bob Proulx.
71631
71632 2005-01-04  Jim Meyering  <jim@meyering.net>
71633
71634         Changes imported from coreutils.
71635         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71636         as the mkstemp template, use a temporary directory and an
71637         8.3-friendly template to avoid trouble on systems like DJGPP.
71638         Reported by Juan M. Guerrero via Stepan Kasal.
71639         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71640         close. Remove the temporary directory right away, rather than waiting
71641         for configure's at-exit trap code to do it.
71642         Suggestion from Stepan Kasal.
71643
71644 2005-01-01  Simon Josefsson  <jas@extundo.com>
71645
71646         * gnulib-tool: Print #include directives when --import'ing.
71647
71648 2004-12-28  Simon Josefsson  <jas@extundo.com>
71649
71650         * tests/test-base64.c: Include required header files.  Remove
71651         unused variables.
71652
71653 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71654
71655         * modules/error (Depends-on): Remove gettext.
71656
71657 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71660         not needed.  This removes a dependency on the gettext module.
71661         [defined _LIBC]: Do not include <libintl.h>; not needed.
71662
71663 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71664
71665         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71666         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71667
71668 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71671         HAVE_DECL_STRTOLD.
71672
71673 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * modules/getdate (Depends-on): Remove alloca-opt.
71676
71677 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71680
71681 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * lib/argp-parse.c: Include <stddef.h>.
71684         (alignof, alignto): New macros.
71685         (parser_init): Don't assume that void * is aligned sufficiently
71686         for struct option.
71687
71688         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71689         need to extend the stack.
71690         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71691         large.
71692
71693 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71694
71695         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71696
71697 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71700         (2004-10-24) change.  Apparently this was a false alarm.
71701
71702         * modules/getdate: Depend on alloca-opt, not alloca.
71703
71704 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71707         Remove now-obsolete comment about AIX.
71708         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71709         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71710         (YYMAXDEPTH): New macro.
71711
71712 2004-12-18  Simon Josefsson  <jas@extundo.com>
71713
71714         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71715
71716 2004-12-18  Bruno Haible  <bruno@clisp.org>
71717
71718         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71719
71720 2004-12-18  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/fatal-signal.c (fatal_signals): Make non-const.
71723         (init_fatal_signals): New function.
71724         (uninstall_handlers, install_handlers): Ignore signals that were set to
71725         SIG_IGN.
71726         (at_fatal_signal): Call init_fatal_signals.
71727         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71728         SIG_IGN.
71729         Reported by Paul Eggert.
71730
71731 2004-12-18  Bruno Haible  <bruno@clisp.org>
71732
71733         * doc/alloca.texi: New file.
71734         * doc/alloca-opt.texi: New file.
71735
71736 2004-12-17  Jim Meyering  <jim@meyering.net>
71737
71738         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71739         Otherwise, install-sh could exit with improper exit status when
71740         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71741
71742 2004-12-16  Simon Josefsson  <jas@extundo.com>
71743
71744         * tests/test-base64.c: Add license.
71745
71746 2004-12-15  Stepan Kasal  <address@hidden>
71747
71748         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71749
71750 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * modules/getcwd (Files): Add m4/d-ino.m4.
71753         Suggested by Mark D. Baushke.
71754
71755 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * lib/getdate.y (textint): New member "negative".
71758         (time_zone_hhmm): New function.
71759         Expect 14 shift-reduce conflicts, not 13.
71760         (o_colon_minutes): New rule.
71761         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71762         (yylex): Set the "negative" member of signed numbers.
71763
71764 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         * doc/getdate.texi (Time of day items, Time zone items):
71767         Describe new formats +00:00, UTC+00:00.
71768
71769 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71772         spurious "-l"s.  Problem reported by Stepan Kasal.
71773
71774 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71777         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71778
71779 2004-12-04  Simon Josefsson  <jas@extundo.com>
71780
71781         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71782         Vandoorselaere <yoann@prelude-ids.org>.
71783
71784 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         Changes imported from coreutils.
71787         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71788         exist.
71789         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71790
71791 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         Changes imported from coreutils.
71794         * lib/hard-locale.c: Assume <locale.h> exists.
71795         Include "strdup.h".
71796         (GLIBC_VERSION): New macro.
71797         (hard_locale): Assume setlocale exists.
71798         Rewrite to avoid #ifdef.
71799         Use strdup rather than malloc + strcpy.
71800         * lib/human.c: Assume <locale.h> exists.
71801         (human_readable): Assume localeconv exists.
71802
71803 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * modules/hard-locale (Depends-on): Add strdup.
71806
71807 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71808
71809         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71810         convert T2, not T.  (Imported from libc.)
71811
71812 2004-11-30  Simon Josefsson  <jas@extundo.com>
71813
71814         * modules/restrict (License): Change to LGPL.
71815
71816 2004-11-30  Simon Josefsson  <jas@extundo.com>
71817
71818         * m4/restrict.m4: Add copyright and copying conditions.
71819
71820 2004-11-30  Simon Josefsson  <jas@extundo.com>
71821
71822         * m4/base64.m4: New file.
71823
71824 2004-11-30  Simon Josefsson  <jas@extundo.com>
71825
71826         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71827         base64.
71828
71829         * tests/test-base64.c: New file.
71830
71831         * modules/base64: New file.
71832
71833 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71836         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71837
71838         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71839
71840 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71843         (__getcwd.c): Don't restore errno; glibc doesn't.
71844         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71845         first, falling back to our code only if its results look suspicious.
71846         Ensure that the resulting buffer is only as large as necessary.
71847
71848         * lib/readutmp.c: Include readutmp.h first.
71849         Include <errno.h>, since readutmp.h no longer does that.
71850         * lib/readutmp.h: Don't include <errno.h>,
71851         <sys/param.h>, <time.h>; not needed to establish interface.
71852         (errno): Remove decl.
71853         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71854         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71855         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71856
71857 2004-11-28  Simon Josefsson  <jas@extundo.com>
71858
71859         * lib/base64.h, base64.c: New file.
71860
71861 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71864
71865 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71868         (Depends-on): Remove pathmax, same.  Add mempcpy.
71869         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71870         (Makefile.am): Append getcwd.h to lib_SOURCES.
71871         (Include): Add getcwd.h.
71872         (Maintainer): Change from Jim Meyering to "all, glibc",
71873         since getdate now uses intended-for-glibc code.
71874         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71875         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71876
71877 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71880         HP's ANSI C compiler.
71881         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71882         Declaring int functions causes warnings on some modern systems and
71883         shouldn't be needed to compile on ancient ones.
71884         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71885         defined.
71886
71887         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71888         with the following changes.
71889         (__set_errno): Parenthesize properly.
71890         Include <stdbool.h>.
71891         (MIN, MAX, MATCHING_INO): New macros.
71892         (__getcwd): Define with prototype, not K&R form.
71893         Use heuristics to allocate default buffer on stack if possible.
71894         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71895         behavior, and to avoid the PATH_MAX limit when computing
71896         ../../../../...
71897         Use MATCHING_INO to compare inode number to file.
71898         Check for arithmetic overflow in size calculations.
71899         Fix bug in reallocation of dot array that caused getcwd to fail
71900         on directories nested deeper than 75.
71901         Be more careful about saving errno on error.
71902         Do not use realloc; use only free+malloc, as this is a bit
71903         more flexible and avoids a needless copy operation.
71904         Do not inspect st_dev and st_ino for symbolic links; POSIX
71905         doesn't specify the latter.
71906         Check for closedir errors.
71907         Avoid needless casts.
71908         Use "#ifdef weak_alias" around weak_alias, to be like other
71909         glibc code.
71910         The following changes to getcwd.c have effect only when used in
71911         gnulib; they have no effect inside glibc proper.
71912         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71913         as alloca isn't used.
71914         (alloca, __alloca): Likewise.
71915         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71916         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71917         unconditionally, as gnulib assumes C89 or better.
71918         Do not include <sys/param.h>.
71919         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71920         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71921         better.
71922         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71923         Include <dirent.h> in a way that is compatible with modern Autoconf.
71924         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71925         New macros, if not already defined.
71926         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71927         Use "_LIBC", not "defined _LIBC", for consistency.
71928         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71929         a mempcpy module.
71930         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71931         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71932         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71933         credit only to Jim Meyering and adjust the copyright dates.
71934         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71935         <stdlib.h>, <unistd.h>, "pathmax.h".
71936         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71937         (INITIAL_BUFFER_SIZE): Remove.
71938         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71939
71940 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71941
71942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71943         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71944         Use the _ONCE methods, for efficiency.
71945         Check for fcntl.h.  In test program, include <errno.h>
71946         and <fcntl.h> if available.  Remove old K&R cruft from
71947         test program.  Check for common errors in GNU/Linux,
71948         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71949         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71950         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71951         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71952         name accordingly.
71953         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71954         accommodate new getcwd.c.
71955         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71956         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71957         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71958         that's all we need now.
71959
71960 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71961
71962         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71963         argp-parse.c depends on getopt internals, that means we should
71964         always use our getopt, to be on the safe side.
71965         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71966         order not to spoil the result of an eventual previous invocation
71967         of gl_GETOPT_SUBSTITUTE.
71968
71969 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71970
71971         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71972         redefinition warnings. To avoid them, include the defines
71973         in `#if !defined __need_getopt ... #endif'. The only place
71974         where __getopt_argv_const is used is in definitions
71975         of getopt_long and getopt_long_only below, which are as well
71976         protected by `#ifndef __need_getopt'.
71977         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71978         __need_getopt after including <stdio.h> and <unistd.h> These
71979         headers might have defined it.
71980
71981 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71984
71985 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71988         (futimens): New function, which uses futimes if available.
71989         (futimens, utimens): Support timespec==NULL, with same semantics
71990         as utime and utimens.
71991         * lib/utimens.h (futimens): New decl.
71992
71993 2004-11-23  Jim Meyering  <jim@meyering.net>
71994
71995         * lib/getopt_.h: Remove trailing blanks.
71996
71997 2004-11-23  Jim Meyering  <jim@meyering.net>
71998
71999         * lib/__fpending.c: Add comment.
72000
72001 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72002
72003         * modules/canonicalize (Depends-on): Add xreadlink.
72004         Problem reported by James Youngman.
72005
72006 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72009         New macros.
72010         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72011         optopt): Use them instead of invoking ## directly; otherwise, the
72012         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72013
72014 2004-11-19  Bruno Haible  <bruno@clisp.org>
72015
72016         * lib/strtok_r.c: Move comments from here...
72017         * lib/strtok_r.h: ... to here.
72018
72019 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72022         implementations that mishandle size_t overflow.
72023
72024 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72027         might fail.  Problem reported by Yoann Vandoorselaere.
72028         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72029         implementations that mishandle size_t overflow.
72030
72031 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * modules/canon-host (Depends-on): Add strdup.
72034
72035 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72038
72039 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * lib/canon-host.c: Include "strdup.h".
72042         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72043         Use strdup instead of malloc/strcpy to duplicate strings.
72044
72045         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72046         (human_space_before_unit): New constant.
72047         * lib/human.c (human_readable): Support it.
72048
72049         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72050         (xgetcwd): Set errno correctly when failing.
72051         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72052         the failure is actually due to a PATH_MAX problem.
72053
72054         Further getopt changes to make it more likely that glibc will
72055         buy the changes back.
72056         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72057         (getopt): Use it, so to preserve glibc semantic
72058         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72059         when compiling for libc.
72060         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72061         (getopt_long, getopt_long_only): Use it.
72062
72063         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72064         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72065         (getopt): Argv is now char * const *, as per standard.
72066         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72067         not char *__getopt_argv_const *.
72068         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72069         _getopt_long_only_r): Likewise.
72070         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72071         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72072         _getopt_long_r, _getopt_long_only_r): Likewise.
72073         * lib/getopt_.h (__getopt_argv_const): Remove.
72074         (getopt): Argv is now char * const *, as per standard.
72075
72076         * lib/getdate.y (tORDINAL): New token.
72077         (day, relunit): Allow it for relative times.
72078         (relative_time_table): Use tORDINAL for ordinals.
72079
72080 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72081
72082         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72083         Document that "second" isn't allowed as an ordinal number.
72084
72085 2004-11-16  Jim Meyering  <jim@meyering.net>
72086
72087         * modules/closeout (Depends-on): Add fpending.
72088
72089 2004-11-15  Jim Meyering  <jim@meyering.net>
72090
72091         * lib/closeout.c: Include "__fpending.h" once again.
72092         Include <stdbool.h>.
72093         (close_stdout): Don't fail just because stdout was closed initially,
72094         since some programs don't write to stdout in the normal course of
72095         operation (other than --version and --help), and we don't want this
72096         function to make e.g. `touch file >&-' fail.
72097         But do fail if it was closed and someone has tried to write to it.
72098         E.g., `printf foo >&-' must fail.
72099
72100 2004-11-13  Jim Meyering  <jim@meyering.net>
72101
72102         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72103
72104 2004-11-12  Simon Josefsson  <jas@extundo.com>
72105
72106         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72107         small doc fix is still pending.
72108
72109 2004-11-11  Simon Josefsson  <jas@extundo.com>
72110
72111         * modules/strtok_r: New file.
72112
72113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72114         strtok_r.
72115
72116 2004-11-11  Simon Josefsson  <jas@extundo.com>
72117
72118         * m4/strtok_r.m4: New file.
72119
72120         * m4/getopt.m4: Replace opterr.
72121
72122 2004-11-11  Simon Josefsson  <jas@extundo.com>
72123
72124         * lib/strtok_r.h, strtok_r.c: New file.
72125
72126 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72129         of replacing opterr, getopt, etc.  This should handle the
72130         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72131
72132 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72135         we can stop lying to compilers about the constness of argv when we
72136         are compiled outside glibc.
72137         (getopt, getopt_long, getopt_long_only): Use it.
72138         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72139         _getopt_internal, getopt): Likewise.
72140         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72141         _getopt_long_only_r): Likewise.
72142         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72143         _getopt_long_r, _getopt_long_only_r): Likewise.
72144
72145         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72146         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72147         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72148         the other external symbols.
72149         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72150         declaration, since the above renaming now works around collisions.
72151
72152 2004-11-11  Jim Meyering  <jim@meyering.net>
72153
72154         * lib/linebreak.c: Remove trailing blanks.
72155         * lib/alloca_.h: Likewise.
72156         * lib/acosl.c: Likewise.
72157         * lib/euidaccess.c: Likewise.
72158         * lib/allocsa.h: Likewise.
72159
72160 2004-11-10  Simon Josefsson  <jas@extundo.com>
72161
72162         * m4/getaddrinfo.m4: New file.
72163
72164 2004-11-10  Simon Josefsson  <jas@extundo.com>
72165
72166         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72167
72168 2004-11-10  Simon Josefsson  <jas@extundo.com>
72169
72170         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72171         getaddrinfo.
72172
72173         * modules/getaddrinfo: New file.
72174
72175 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72176
72177         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72178
72179 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * lib/mktime.c (SHR): New macro, which is a portable
72182         substitute for >> that should work even on Crays.
72183         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72184         Problem reported by Mark D. Baushke in
72185         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72186         * lib/getdate.y (SHR): Likewise.
72187         (tm_diff): Use it.
72188         * lib/strftime.c (SHR): Likewise.
72189         (tm_diff): Use it.
72190         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72191         quote_these_too, so that right shifts are well defined.  All uses
72192         changed.
72193
72194 2004-11-10  Jim Meyering  <jim@meyering.net>
72195
72196         Ensure that no close failure goes unreported.
72197         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72198         return early when it seems there's nothing to flush.
72199         Don't include __fpending.h.
72200
72201 2004-11-10  Jim Meyering  <jim@meyering.net>
72202
72203         * modules/closeout (Depends-on): Remove fpending.
72204
72205 2004-11-10  Jim Meyering  <jim@meyering.net>
72206
72207         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72208
72209 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72212         gl_FUNC_STRFTIME.
72213         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72214         and AC_REQUIRE when possible, to avoid duplicate checks.
72215         Check for <wchar.h>.
72216
72217 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72218
72219         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72220
72221 2004-11-09  Bruno Haible  <bruno@clisp.org>
72222
72223         * m4/sockpfaf.m4: New file.
72224
72225 2004-11-05  Bruno Haible  <bruno@clisp.org>
72226
72227         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72228         Reported by Mark D. Baushke <mdb@cvshome.org>.
72229
72230 2004-11-04  Bruno Haible  <bruno@clisp.org>
72231
72232         2004-09-11  Bruno Haible  <bruno@clisp.org>
72233                 * allocsa.valgrind: New file.
72234         2004-02-06  Bruno Haible  <bruno@clisp.org>
72235                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72236                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72237                 Reported by Christopher Seip <chris.seip@hp.com>.
72238
72239 2004-11-04  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72242         (Makefile.am): Distribute it.
72243
72244 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72247         with errno == ERANGE if the buffer is too small.
72248         Problem reported by Mark D. Baushke.
72249
72250 2004-11-03  Albert Chin  <china@thewrittenword.com>
72251             Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72254         equivalent, substitute $ac_type for equivalent type rather than
72255         blindly using uint32_t *always* which won't work if uint32_t is not
72256         available.  Define _UINT32_T to work around typedef of uint32_t if
72257         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72258         2.5.1.
72259
72260 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72261
72262         * m4/jm-macros.m4: Sync from coreutils.
72263         (gl_MACROS): Check for mbrlen, for pathchk.
72264         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72265
72266 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         * lib/xreadlink.c (MAXSIZE): New macro.
72269         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72270         size does not exceed MAXSIZE.  Avoid cast.
72271         As suggested by Mark D. Baushke in
72272         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72273         if readlink fails with buffer size just under MAXSIZE, try again
72274         with MAXSIZE.
72275
72276 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72279
72280 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72281         and  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72284         (get_date): Overparenthesize to avoid GCC warning.
72285
72286 2004-11-02  Bruno Haible  <bruno@clisp.org>
72287
72288         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72289         returns void.
72290
72291 2004-11-02  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72294         function returns void.
72295
72296 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72299         fflush_unlocked, flockfile, funlockfile, funlockfile,
72300         fputs_unlocked, putc_unlocked.
72301
72302 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72305         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72306         already declared.
72307
72308 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72309
72310         * modules/getdate (Files): Add doc/getdate.texi.
72311         (Depends-on): Add setenv, xalloc.
72312
72313 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72314
72315         * lib/getdate.y: Add support for TZ="foo" within a date string.
72316         Fix some bugs near time_t boundaries.  Reject dates with
72317         out-of-range components, e.g., "Sept 31".
72318         Include <stdlib.h>, "setenv.h", "xalloc.h".
72319         (ISDIGIT_LOCALE): Remove; unused.
72320         Note that the TZ and time functions used here are not reentrant.
72321         (mktime_ok, get_tz): New functions.
72322         (TZBUFSIZE): New constant.
72323         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72324         This requires that we sometimes generate our own TZ="XXX..." setting.
72325
72326 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * doc/getdate.texi: New file, from coreutils with modifications for
72329         the new TZ parsing.
72330
72331 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72332
72333         * lib/mktime.c (not_equal_tm): Remove redundant check.
72334
72335 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * modules/regex (lib_SOURCES): Add regex.c.
72338         Reported by James Youngman in
72339         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72340
72341 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72342
72343         * lib/getdate.y: Use Bison 1.875 features, and some minor
72344         code cleanups.  This change does not affect semantics.
72345         Don't include <stdlib.h>; no longer needed.
72346         Don't include unlocked-io.h; only the "#if TEST" code uses
72347         stdio, and performance isn't crucial there.
72348         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72349         Bison 1.875 features as described below.
72350         All uses of "PC." replaced by "pc->".
72351         (YYSTYPE): Add a forward declaration.
72352         (yylex, yyerror): Use full prototypes in forward decls.
72353         Use "%pure-parser" rather than obsolescent "%pure_parser".
72354         Use %parse-param and %lex-param instead of obsolescent
72355         YYPARSE_PARAM and YYLEX_PARAM.
72356         (meridian_table, month_and_day_table, time_units_table,
72357         relative_time_table, time_zone_table, military_table,
72358         lookup_zone, lookup_word, get_date):
72359         Use NULL instead of 0 where appropriate.
72360         (to_hour): Avoid abort (), to avoid a dependency on
72361         stdlib.h.
72362         (yyerror, yylex): Now accepts parser_control * arg.
72363         (main) [TEST]: Use '\0' rather than 0 for char.
72364
72365 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72368
72369 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72372         It's now the caller's responsibility to handle the case where
72373         !HAVE_GETPAGESIZE && !defined getpagesize.
72374
72375         * lib/mktime.c (leapyear): Arg is long int, not int.
72376
72377 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72380
72381 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72384         missing.  Problem reported by James Youngman.
72385
72386 2004-10-16  Simon Josefsson  <jas@extundo.com>
72387
72388         * gnulib-tool: Fix comments.  Fix parse problem.
72389         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72390
72391 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72394         implementation of getopt_long.  Problem reported by Alexander Taler in:
72395         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72396
72397 2004-10-15  Bruno Haible  <bruno@clisp.org>
72398
72399         * gnulib-tool: Untabify. Initialize supplied_libname.
72400         (func_usage): More homogenous output.
72401         (func_modules_transitive_closure, func_modules_to_filelist,
72402         func_emit_lib_Makefile_am): New functions.
72403         (func_import): New function, extracted from big case statement. Use
72404         func_get_license, func_modules_transitive_closure,
72405         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72406         opt_lgpl. Don't use test -a, as it's not portable.
72407         (func_create_testdir): Use func_modules_transitive_closure,
72408         func_modules_to_filelist, func_emit_lib_Makefile_am.
72409
72410 2004-10-15  Bruno Haible  <bruno@clisp.org>
72411
72412         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72413
72414 2004-10-15  Bruno Haible  <bruno@clisp.org>
72415
72416         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72417         the portions belonging to each module.
72418         Suggested by Derek Robert Price <derek@ximbiot.com>.
72419
72420 2004-10-12  Simon Josefsson  <jas@extundo.com>
72421
72422         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72423         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72424         to real functions.
72425
72426 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72427
72428         * modules/vsnprintf: New file.
72429
72430 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72431
72432         * m4/vsnprintf.m4: New file.
72433
72434 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72435
72436         * lib/vsnprintf.h: New file.
72437         * lib/vsnprintf.c: New file.
72438
72439 2004-10-11  Bruno Haible  <bruno@clisp.org>
72440
72441         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72442         vsnprintf.
72443
72444 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72447
72448 2004-10-07  Bruno Haible  <bruno@clisp.org>
72449
72450         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72451         fits into the provided buffer.
72452
72453 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * lib/diacrit.c, diacrit.h: Add GPL notice.
72456
72457         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72458         notice.
72459         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72460         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72461         This avoids a potential constant-folding bug.
72462
72463 2004-10-05  Bruno Haible  <bruno@clisp.org>
72464
72465         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72466         for the declaration of strsep.
72467
72468 2004-10-05  Bruno Haible  <bruno@clisp.org>
72469
72470         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72471
72472 2004-10-04  Simon Josefsson  <jas@extundo.com>
72473
72474         * modules/memmem: New file.
72475         * tests/test-memmem.c: New file.
72476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72477
72478 2004-10-04  Simon Josefsson  <jas@extundo.com>
72479
72480         * m4/memmem.m4: New file.
72481
72482 2004-10-04  Simon Josefsson  <jas@extundo.com>
72483
72484         * lib/memmem.h: New file.
72485         * lib/memmem.c: New file, taken from glibc.
72486
72487 2004-10-04  Simon Josefsson  <jas@extundo.com>
72488
72489         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72490         '#ifdef USE_UNLOCKED_IO'.
72491
72492 2004-10-04  Simon Josefsson  <jas@extundo.com>
72493
72494         * config/srclist.txt: Add memmem from glibc.
72495
72496 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72499
72500         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72501         modules/exclude, modules/getdate, modules/getline,
72502         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72503         modules/getusershell, modules/linebuffer, modules/md5,
72504         modules/mountlist, modules/posixtm, modules/readtokens,
72505         modules/readutmp, modules/regex, modules/sha1,
72506         modules/version-etc, modules/yesno:
72507         Remove dependency on unlocked-io.
72508
72509 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72512
72513         * m4/unlocked-io.m4: Add copyright notice.
72514         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72515
72516 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72519         * lib/xmalloc.c (xmemdup): Likewise.
72520         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72521         XFREE): Remove these long-obsolescent macros.
72522         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72523         * lib/xstrdup.c: Remove.
72524
72525         * lib/regex.c (re_comp): Cast gettext return value to char *,
72526         Problem reported by Martin Neitzel via Mark D. Baushke.
72527
72528 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72531         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72532         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72533         regex.c, sha1.c, version-etc.c, yesno.c:
72534         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72535         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72536         the includer's responsibility.
72537
72538         Sync from coreutils.
72539
72540         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72541         points to the start of a string, as the C Standard says the
72542         resulting behavior is undefined.
72543
72544         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72545         simple -> simple_backups, numbered_existing ->
72546         numbered_existing_backups, numbered -> numbered_backups
72547         to avoid shadowing problems.  All uses changed.
72548         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72549         * lib/backupfile.c (check_extension, numbered_backup):
72550         Rename locals to avoid shadowing 'basename'.
72551         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72552         once.
72553
72554         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72555         * lib/.cvsignore: Add getopt.h.
72556
72557 2004-10-04  Bruno Haible  <bruno@clisp.org>
72558
72559         * modules/README: New file.
72560         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72561         not a module.
72562
72563 2004-10-02  Jim Meyering  <jim@meyering.net>
72564
72565         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72566
72567 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72568
72569         * modules/strsep: New file.
72570
72571 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72572
72573         * m4/strsep.m4: New file.
72574
72575 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72576
72577         * lib/strsep.h: New file.
72578         * lib/strsep.c: New file.
72579
72580 2004-10-01  Simon Josefsson  <jas@extundo.com>
72581
72582         * lib/snprintf.c (snprintf): Handle size==0.
72583
72584 2004-10-01  Simon Josefsson  <jas@extundo.com>
72585             Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72588         (snprintf): Declare 'args'.
72589
72590 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         * lib/snprintf.c: Remove comments as to why each header is needed.
72593
72594 2004-10-01  Bruno Haible  <bruno@clisp.org>
72595
72596         * MODULES.html.sh: Add strsep.
72597
72598 2004-09-30  Simon Josefsson  <jas@extundo.com>
72599
72600         * modules/snprintf: New file.
72601
72602 2004-09-30  Simon Josefsson  <jas@extundo.com>
72603
72604         * m4/snprintf.m4: New file.
72605
72606 2004-09-30  Simon Josefsson  <jas@extundo.com>
72607
72608         * lib/snprintf.h, lib/snprintf.c: New files.
72609
72610 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72611
72612         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72613         (hol_entry_help): Never translate an empty string.
72614         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72615         * lib/argp.h (OPTION_NO_TRANS): New option.
72616
72617 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72618
72619         * modules/argp (Maintainer): Replace Simon Josefsson
72620         by Sergey Poznyakoff.
72621
72622 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72623
72624         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72625         changes merged back into glibc.
72626
72627 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72630
72631 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72632
72633         * lib/xvasprintf.c: Include xalloc.h.
72634         (xvasprintf): Use xalloc_die, not xmalloc_die.
72635
72636 2004-09-29  Bruno Haible  <bruno@clisp.org>
72637
72638         * modules/alloca-opt: New file, derived from modules/alloca.
72639         * modules/allocsa: Depend on alloca-opt instead of alloca.
72640         * modules/setenv: Likewise.
72641         * modules/vasnprintf: Likewise.
72642         * MODULES.html.sh: Add alloca-opt.
72643
72644 2004-09-28  Simon Josefsson  <jas@extundo.com>
72645
72646         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72647         LGPL, and to replace license template from GPL to LGPL.
72648
72649 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * modules/dummy: Change license to LGPL.
72652
72653 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72656
72657 2004-09-24  Simon Josefsson  <jas@extundo.com>
72658
72659         * modules/minmax (License): Change from GPL to LGPL.
72660
72661 2004-09-23  Simon Josefsson  <jas@extundo.com>
72662
72663         * gnulib-tool (--import): Typo.
72664
72665 2004-09-23  Simon Josefsson  <jas@extundo.com>
72666
72667         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72668
72669 2004-09-22  Bruno Haible  <bruno@clisp.org>
72670
72671         * modules/*: Add 'License' field.
72672         * gnulib-tool: Accept --extract-license option.
72673         (func_get_license): New function.
72674
72675 2004-09-21  Bruno Haible  <bruno@clisp.org>
72676
72677         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72678         Reported by Simon Josefsson.
72679
72680 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72683         gl_AC_TYPE_LONG_LONG.
72684
72685 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72688
72689 2004-09-18  Simon Josefsson  <jas@extundo.com>
72690         and  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72693         calls with autoreconf.  Define GL_LIB.
72694
72695 2004-09-14  Karl Berry  <karl@gnu.org>
72696
72697         * config/srclist.txt: unsync setenv.c, sigh.
72698
72699 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72702         Problem reported by Bruno Haible in:
72703         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72704
72705 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         * config/srclist.txt: Comment out argp-pvh.c.
72708
72709 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72710
72711         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72712         in case some system header has #define'd it.  Problem reported by
72713         Soeren D. Schulze in
72714         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72715
72716 2004-09-09  Karl Berry  <karl@gnu.org>
72717
72718         * regex.[ch]: delete from the root.  These were supposed to be
72719                 synced with emacs cvs, but this has not happened for about
72720                 a year, and anyway nothing else uses emacs regex.[ch].
72721                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72722                 lib/regex[.ch] is untouched.
72723
72724 2004-09-09  Bruno Haible  <bruno@clisp.org>
72725
72726         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72727
72728 2004-09-09  Bruno Haible  <bruno@clisp.org>
72729
72730         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72731         modifications.
72732         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72733
72734 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72735
72736         * modules/xvasprintf: New file.
72737         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72738
72739 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72740
72741         * lib/xvasprintf.h: New file.
72742         * lib/xvasprintf.c: New file.
72743         * lib/xasprintf.c: New file.
72744
72745 2004-09-08  Bruno Haible  <bruno@clisp.org>
72746
72747         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72748
72749 2004-09-08  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72752         length is > INT_MAX.
72753         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72754         more.
72755
72756 2004-09-08  Bruno Haible  <bruno@clisp.org>
72757
72758         * lib/stdint_.h: New file, taken from GNU clisp.
72759
72760 2004-09-08  Bruno Haible  <bruno@clisp.org>
72761             Oskar Liljeblad  <oskar@osk.mine.nu>
72762
72763         * modules/stdint: New file.
72764         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72765
72766 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         Import from coreutils.
72769         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72770         strings on unbounded length.  alloca's performance benefits aren't
72771         that important here.
72772         (V_STRDUP): Remove.
72773         (parse_with_separator): New function, with most of the internals
72774         of the old parse_user_spec.  Allow user to omit both user and group,
72775         for compatibility with FreeBSD.
72776         Clone only the user name, not the entire spec.
72777         Do not set *uid, *gid unless entirely successful.
72778         Avoid memory leak in some failing cases.
72779         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72780         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72781         (parse_user_spec): Rewrite to use parse_with_separator.
72782
72783 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72784
72785         * modules/userspec: Don't depend on alloca.
72786
72787 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72790
72791 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72794         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72795         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72796
72797 2004-08-16  Simon Josefsson  <jas@extundo.com>
72798
72799         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72800         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72801         Add --dry-run for --import.
72802         Let user provided command line parameters override configure.ac
72803         settings.
72804
72805 2004-08-12  Simon Josefsson  <jas@extundo.com>
72806
72807         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72808         as discussed with Paul Eggert in threads rooted at
72809         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72810         and
72811         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72812         Before, the test was empty, and relied on ELIDE_CODE in source
72813         code.)
72814         (gl_PREREQ_GETOPT): New macro.
72815         (gl_GETOPT): Use them.
72816
72817 2004-08-12  Simon Josefsson  <jas@extundo.com>
72818
72819         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72820         * lib/getopt_.h: Renamed from getopt.h.
72821
72822 2004-08-12  Simon Josefsson  <jas@extundo.com>
72823
72824         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72825         Change default library name from libfoo to libgnu.
72826         Now, if you have a configure.ac that says:
72827                 gl_SOURCE_BASE(gl)
72828                 gl_M4_BASE(gl/m4)
72829                 gl_MODULES(error getopt etcetera)
72830                 gl_INIT
72831         you can import all you need by running:
72832                 ../gnulib/gnulib-tool --import
72833
72834         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72835         (Makefile.am): Rewrite, use logic from argz.
72836         (Include): Use <getopt.h> instead of "getopt.h".
72837
72838 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72839
72840         * modules/argp (Files): Add m4/unlocked-io.m4.
72841         (Depends-on): Add extensions.
72842
72843 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72846         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72847         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72848         Check for program_invocation_name, program_invocation_short_name,
72849         flockfile, funlockfile, features.h, _getopt_long_only_r.
72850
72851 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72854         its complicated substitute.
72855         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72856         and program_invocation_name.
72857         (__argp_basename) [!_LIBC]: Remove; the only use was
72858         replaced by its body.
72859         (__argp_short_program_name): Change condition from
72860         !defined __argp_short_program_name to
72861         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72862         to match argp-namefrob.h.
72863         (__argp_failure): Don't assume strerror_r returns char *.
72864         * lib/argp-parse.c (N_): Define unconditionally.
72865         (argp_default_options): Fill out initializers with 0 to avoid
72866         gcc warnings.
72867
72868 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72871         getopt1.c.
72872
72873 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         Merge from coreutils.
72876
72877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72878
72879         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72880         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72881
72882 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72883
72884         Merge from coreutils.
72885
72886         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72887         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72888         for Reliant Unix 5.43.
72889
72890         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72891         (union fooround): Use uintmax_t, not long int.
72892         The rest is a merge from libc:
72893         [defined _LIBC]: Include <shlib-compat.h>.
72894         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72895
72896         * lib/settime.c (settime): Recode to avoid warning with
72897         Sun Forte C 6U2.
72898
72899         * lib/strverscmp.c: Convert to UTF-8.
72900
72901 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72902
72903         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72904         m4/uintmax_t.m4.
72905
72906 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * modules/xalloc-die: New file.
72909         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72910
72911         * modules/md5 (Files): Add m4/uint32_t.m4.
72912         * modules/sha1: Renamed from modules/sha.
72913         (Files):
72914         Rename lib/sha.h to lib/sha1.h.
72915         Rename lib/sha.c to lib/sha1.c.
72916         Rename m4/sha.m4 to m4/sha1.m4.
72917         (lib_SOURCES): Likewise.
72918         (configure.ac): Rename gl_SHA to gl_SHA1.
72919         (Include): sha.h -> sha1.h.
72920
72921 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72924         * m4/sha1.m4: Renamed from sha.m4.
72925         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72926
72927 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * lib/obstack.h (obstack_empty_p):
72930         Don't assume that chunk->contents is suitably aligned.
72931         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72932         Likewise. Problem reported by Benno in
72933         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72934
72935         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72936         readable.  This could be improved further but it'd take some work.
72937
72938 2004-08-08  Simon Josefsson  <jas@extundo.com>
72939
72940         * modules/xgethostname (Depends-on): Remove exit and error (not
72941         used).
72942
72943         * modules/getpass-gnu: Add getpass.h.
72944         (Depends-on): Add stdbool.
72945         * modules/getpass: Add getpass.h.
72946
72947 2004-08-08  Simon Josefsson  <jas@extundo.com>
72948
72949         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72950         Check getpass declaration.
72951
72952 2004-08-08  Simon Josefsson  <jas@extundo.com>
72953
72954         * lib/xgethostname.c: Don't include error.h (not used).
72955
72956         * lib/getpass.h: Add.
72957         * lib/getpass.c: Include getpass.h first.
72958
72959 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72960
72961         * lib/xalloc-die.c: New file.
72962         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72963         All uses removed.
72964         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72965         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72966         xalloc-die.c.
72967         (_, N_, xalloc_die): Move to xalloc-die.c.
72968         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72969         so that we needn't mess with xalloc_msg_memory_exhausted.
72970
72971         * lib/sha1.h: Renamed from sha.h.
72972         (SHA1_H): Renamed from _SHA_H.
72973         (sha1_ctx): Renamed from sha_ctx.
72974         (sha1_init_ctx): Renamed from sha_init_ctx.
72975         (sha1_process_block): Renamed from sha_process_block.
72976         (sha1_process_bytes): Renamed from sha_process_bytes.
72977         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72978         (sha1_read_ctx): Renamed from sha_read_ctx.
72979         (sha1_stream): Renamed from sha_stream.
72980         (sha1_buffer): Renamed from sha_buffer.
72981         * lib/sha1.c: Likewise; renamed from sha.c.
72982         Do not include <sys/types.h>.
72983         Include <stddef.h> rather than <stdlib.h>.
72984
72985 2004-08-08  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72988         FILESYSTEM_PREFIX_LEN.
72989         * lib/progreloc.c: Likewise.
72990         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72991
72992 2004-08-06  Simon Josefsson  <jas@extundo.com>
72993
72994         * modules/progname (Depends-on): Don't depend on stdbool.
72995
72996 2004-08-06  Simon Josefsson  <jas@extundo.com>
72997
72998         * modules/getsubopt: New file.
72999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73000         getsubopt.
73001
73002 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         More merge from coreutils.
73005
73006         * m4/utimens.m4, m4/utimecmp.m4: New files.
73007         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73008         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73009         prereq.m4, sha.m4: Import changes from coreutils.
73010
73011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         More merge from coreutils.
73014         * modules/raise, modules/readtokens0, modules/utimens:
73015         * modules/utimecmp, module/xnanosleep: New files.
73016         * modules/strftime: Add lib/strftime.h.
73017         Change include from <time.h> to "strftime.h".
73018         * modules/yesno: Add lib/yesno.h.
73019         * modules/backupfile: Remove lib/addext.c.
73020         * modules/euidaccess: Add stat-macros.h.
73021         * modules/canonicalize, modules/euidaccess,
73022         modules/filemode, modules/lchown, modules/makepath,
73023         modules/rmdir, modules/stat: Likewise.
73024
73025 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         Merge from tar.
73028         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73029         SIZE_MAX is a valid preprocessor constant.
73030         (__argp_basename): Change from "#ifndef _LIBC"
73031         to "#ifndef __argp_short_program_name", so that
73032         we don't compile these functions for tar.
73033
73034         More merges from coreutils.
73035         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73036         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73037         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73038         * lib/addext.c: Remove; no longer needed.
73039         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73040         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73041         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73042         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73043         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73044         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73045         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73046         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73047         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73048         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73049         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73050         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73051         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73052         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73053         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73054         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73055         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73056         Import changes from coreutils.
73057
73058 2004-08-05  Simon Josefsson  <jas@extundo.com>
73059
73060         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73061
73062 2004-08-05  Simon Josefsson  <jas@extundo.com>
73063
73064         * m4/getsubopt.m4: New file.
73065
73066 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         Merge from coreutils.
73069
73070         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73071         * m4/getcwd-path-max.m4: New files.
73072
73073         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73074         FILESYSTEM_PREFIX_LEN ->
73075         FILE_SYSTEM_PREFIX_LEN.
73076         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73077         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73078         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73079         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73080
73081         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73082         prerequisite modules now handle the DOS stuff.
73083         Don't check for unistd.h.
73084
73085 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         Merge from coreutils.
73088
73089         * lib/.gdb-history: Remove; this doesn't belong here.
73090
73091         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73092         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73093         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73094         * lib/getcwd.c: New files.
73095
73096         * lib/dirname.h: Include <stdbool.h>.
73097         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73098         for consistency with POSIX terminology.  All uses changed.
73099         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73100         (strip_trailing_slashes): Use bool for booleans.
73101         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73102
73103         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73104         sometimes returns a positive errno value even when it succeeds.
73105         (print_errno_message) [!LIBC]: Fall back on strerror if
73106         __strerror_r fails.
73107
73108         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73109         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73110         (longest_relative_suffix): New function.
73111         (path_concat): Use it.  Assume first argument is not NULL.
73112         Port to DOS.  Omit redundant separators.
73113         Report an error instead of returning NULL.
73114         Use mempcpy instead of memcpy.
73115         (xpath_concat): Remove: not declared or used.
73116
73117         * lib/same.h: Include <stdbool.h>
73118         (same_name): Return bool, not int.
73119         * lib/same.c (same_name): Likewise.
73120         (errno): Don't declare; we assume C89 or better now.
73121
73122         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73123         if not already defined.
73124
73125         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73126         * lib/dup-safer.c (errno): Likewise.
73127
73128 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         Merge from coreutils.
73131         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73132         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73133         * modules/path-concat: Don't depend on strdup.
73134
73135 2004-08-03  Simon Josefsson  <jas@extundo.com>
73136
73137         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73138         * lib/progname.h: Don't include stdbool.h.
73139
73140 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73143         * MODULES.html.sh (func_all_modules): Remove fatal.
73144
73145 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73148
73149 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73152         working.
73153
73154 2004-08-02  Simon Josefsson  <jas@extundo.com>
73155
73156         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73157         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73158         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73159
73160 2004-08-01  Simon Josefsson  <jas@extundo.com>
73161
73162         * lib/xgetdomainname.c: Include stdlib.h, for free().
73163
73164 2004-07-19  Bruno Haible  <bruno@clisp.org>
73165
73166         * MODULES.html.sh (func_all_modules): Add dummy.
73167
73168 2004-07-16  Simon Josefsson  <jas@extundo.com>
73169
73170         * modules/dummy: New file.
73171
73172 2004-07-16  Simon Josefsson  <jas@extundo.com>
73173
73174         * lib/dummy.c: New file.
73175
73176 2004-07-16  Bruno Haible  <bruno@clisp.org>
73177
73178         * lib/backupfile.h: Add extern "C" for C++.
73179         * lib/closeout.h: Likewise.
73180         * lib/copy-file.h: Likewise.
73181         * lib/findprog.h: Likewise.
73182         * lib/full-write.h: Likewise.
73183         * lib/pathname.h: Likewise.
73184         * lib/progname.h: Likewise.
73185         * lib/stpcpy.h: Likewise.
73186         * lib/stpncpy.h: Likewise.
73187         * lib/strcase.h: Likewise.
73188         * lib/strstr.h: Likewise.
73189         * lib/xalloc.h: Likewise.
73190
73191         * lib/mbswidth.h: Add extern "C" for C++.
73192         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73193
73194 2004-07-13  Robert Millan  <robertmh@gnu.org>
73195
73196         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73197
73198 2004-07-09  Simon Josefsson  <jas@extundo.com>
73199
73200         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73201         failed without this.)
73202
73203 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         * modules/chown (Files): Add lib/fchown-stub.c, since
73206         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73207
73208 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * lib/fchown-stub.c: New file.
73211
73212 2004-06-24  Jim Meyering  <jim@meyering.net>
73213
73214         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73215
73216 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73217
73218         * modules/argz: Omit "#include".
73219
73220         * MODULES.html.sh (func_all_modules): Add calloc, to match
73221         2004-06-01 addition of calloc module.
73222
73223 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * m4/argz.m4: New file, which is autoupdated from libtool.
73226
73227 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73230         libtool.
73231
73232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * config/srclist-update: Don't insist on "USA." before the
73235         close-comment, as libtool omits the period and puts the */ on a
73236         separate line.
73237         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73238         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73239
73240 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73241
73242         * modules/argz: New file.
73243         * MODULES.html.sh (func_all_modules): Add argz.
73244
73245 2004-06-12  Jim Meyering  <jim@meyering.net>
73246         and  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * modules/hash (Files): Add lib/xalloc.h.
73249         * modules/pipe (Depends-on): Add wait-process.
73250         * modules/stat (Depends-on): Add xalloc.
73251         * modules/userspec (Files): Add lib/userspec.h.
73252         * modules/xstrto
73253
73254         Upgrade from gettext-0.13.
73255         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73256         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73257         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73258
73259 2004-06-10  Jim Meyering  <jim@meyering.net>
73260
73261         * lib/calloc.c: New file.
73262
73263 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * lib/getdate.y (yylex): Allow space between sign and number.
73266         Problem reported by Dan Jacobson.
73267
73268 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         Merge from coreutils CVS.
73271
73272         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73273         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73274         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73275         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73276         xstrtol.m4: Fix copyright date and/or serial number.
73277
73278         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73279         See if we need an fchown replacement.
73280         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73281         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73282         and use the replacement function if we detect either defect.
73283
73284         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73285         gl_UTIMECMP.
73286
73287 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73288         and  Jim Meyering  <jim@meyering.net>
73289
73290         Merge from coreutils CVS.
73291
73292         * lib/stat-macros.h: New file, with contents from file-type.h
73293         and coreutils' system.h.
73294         * lib/file-type.c: Include "stat-macros.h".
73295         * lib/file-type.h (file_type): Move all macro definitions to new file,
73296         stat-macros.h.
73297
73298         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73299         Wrap old code with this conditional.
73300         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73301         function that does not dereference symlinks.
73302         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73303
73304         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73305         dependency problems.
73306         (xreadlink): Accept new arg SIZE, for efficiency.
73307         All decls and uses changed.
73308         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73309
73310         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73311         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73312
73313         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73314         sysexits.h.
73315
73316 2004-06-01  Jim Meyering  <jim@meyering.net>
73317
73318         * m4/calloc.m4: New file.
73319
73320 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73323         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73324         Also, fix a typo in a diagnostic.
73325
73326 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73329         or AC_FUNC_REALLOC.
73330
73331 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73334         macros to be defined.
73335         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73336         the allocator returns NULL because the requested size is zero.
73337
73338 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73341         var.  Add comment explaining why libc still defines it.  This
73342         merges the following patch from glibc:
73343         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73344
73345 2004-05-20  Andreas Schwab  <schwab@suse.de>
73346
73347         * m4/free.m4: Replace free if it not known to work, not the other
73348         way round.
73349
73350 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73351
73352         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73353         present in glibc since revision 1.1 of this file.
73354         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73355         obstack_alignment_mask, obstack_alloc, obstack_base,
73356         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73357         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73358         obstack_grow0, obstack_init, obstack_int_grow,
73359         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73360         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73361         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73362         nonexistent functions.
73363
73364 2004-05-18  Karl Berry  <karl@gnu.org>
73365
73366         * config/srclist.txt: break link for vasnprintf.c.
73367
73368 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         Port obstack to the AS/400, where pointers are 16 bytes wide and
73371         you cannot cast an integer to a valid pointer.  This patch is
73372         currently waiting to be integrated into glibc; see
73373         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73374
73375         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73376         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73377         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73378         (struct obstack): temp member is now a union of a pointer and
73379         an integer, instead of an integer.  All integer uses changed.
73380         This does not affect the physical layout of struct obstack,
73381         except on hosts (like the AS/400) where the size or alignment of
73382         void * is greater than that of ptrdiff_t.
73383         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73384         __STDC__)]: Store temporary in pointer member of union, not
73385         integer member.
73386         * lib/obstack.c: Include <stddef.h>, for offsetof.
73387         (struct fooalign): Remove; it doesn't need a name.
73388         (union fooround): Change double to long double, and add void *.
73389         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73390         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73391         not a macro.  Hence the values are always int; so remove all
73392         casts-to-int in uses.
73393
73394 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73397         we can get this patch merged into glibc.
73398
73399 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73400             Paul Eggert  <eggert@cs.ucla.edu>
73401
73402         * m4/argp: Depend on alloca.
73403
73404 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73405             Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73408         freecoding.
73409
73410 2004-05-17  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73413         precision that consists of a '.' followed by an empty digit string.
73414         Patch by Tor Lillqvist <tml@iki.fi>.
73415
73416 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73419         for backward compatibility with older code.  We need our own
73420         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73421         it under some other name, and our alloca.h will define it.
73422
73423 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73424             Derek Price  <derek@ximbiot.com>
73425
73426         * lib/alloca.c: Include <alloca.h>, to get our interface.
73427         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73428         include <alloca.h> first.  Use C89 prototype for alloca; this
73429         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73430         Use #elif for simplicity, since we can assume C89 now.
73431         Don't try to source the system alloca.h since it will not be found
73432         and to prevent recursively including its replacement.
73433         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73434         * lib/regex.c: Likewise.
73435
73436 2004-05-16  Derek Price  <derek@ximbiot.com>
73437             Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         getline cleanup.  This changes the getndelim2 API: both order of
73440         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73441         no delimiter).
73442
73443         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73444         interface does that.
73445         (getline): Always use getdelim, so that we don't have two
73446         copies of this code.
73447         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73448         if available.
73449         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73450         (GETNDELIM2_MAXIMUM): New macro.
73451         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73452         instead of the old practice of delim2==0.  All callers changed.
73453         Return -1 on overflow, instead of returning junk.
73454         Do not set *linesize unless allocation succeeds.
73455         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73456         that we include sys/types.h.
73457         * lib/getnline.h: Likewise.
73458         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73459         (getndelim2): Reorder arguments.
73460         * lib/getnline.c (getnline, getndelim):
73461         Don't discard the NMAX argument.
73462         (getnline): Invoke getndelim, to avoid code duplication.
73463         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73464         of (size_t) -1 by callers of the getnline family.
73465
73466 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73469         Check for gettimeofday.
73470         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73471         Check for settimeofday, stime.
73472
73473 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         * lib/nanosleep.c (suspended): Change its type from int to
73476         sig_atomic_t volatile.
73477         (first_call): Make it private to rpl_nanosleep, and have it
73478         be zero initially as that's a bit faster.
73479         (my_usleep): Round up fractional times instead of truncating them,
73480         as this is the usual meaning for 'sleep'.
73481
73482         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73483         doesn't work.
73484         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73485         (ENOSYS): Define if not defined.
73486         (settime): Fall back on stime if it exists and settimeofday fails.
73487         But don't bother with fallbacks if a method fails with errno == EPERM.
73488
73489 2004-05-11  Jim Meyering  <jim@meyering.net>
73490
73491         Prior to this change, the save_cwd caller required read access to the
73492         current directory on most systems (ones with the fchdir function).
73493
73494         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73495         fails, try write-only, and finally, resort to using xgetcwd.
73496
73497 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * lib/obstack.c, obstack.h: Import changes from libc.
73500
73501 2004-04-28  Bruno Haible  <bruno@clisp.org>
73502
73503         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73504         also implicitly appends .exe to executables.
73505         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73506         accepts Windows pathnames.
73507         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73508         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73509         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73510         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73511         Reported by Derek Robert Price <derek@ximbiot.com>.
73512
73513 2004-04-21  Karl Berry  <karl@gnu.org>
73514
73515         * config/srclist.txt (localcharset.c): break sync.
73516
73517 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73518
73519         * m4/host-os.m4: Add a copyright notice.
73520
73521 2004-04-20  Jim Meyering  <jim@meyering.net>
73522
73523         Change UTILS_ to gl_ in AC_DEFINE'd names.
73524         Change utils_- and jm_-prefixed variables, too.
73525         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73526         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73528
73529         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73530         Don't emit trailing blanks.
73531         Also rename jm_-prefixed variables to have gl_ prefix.
73532
73533         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73534         Also rename jm_-prefixed variables to have gl_ prefix.
73535
73536         * m4/jm-macros.m4: Reflect the renamings.
73537         * m4/prereq.m4: Likewise.
73538
73539 2004-04-20  Jim Meyering  <jim@meyering.net>
73540
73541         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73542         memory.
73543
73544 2004-04-20  Jim Meyering  <jim@meyering.net>
73545             Bruno Haible  <bruno@clisp.org>
73546
73547         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73548         memory when realloc fails.
73549
73550 2004-04-19  Jim Meyering  <jim@meyering.net>
73551
73552         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73553         now that readutmp.c may call `free (0)'.
73554
73555 2004-04-19  Bruno Haible  <bruno@clisp.org>
73556
73557         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73558         * m4/inttypes_h.m4: Likewise.
73559         * m4/stdint_h.m4: Likewise.
73560         * m4/intmax_t.m4: Likewise.
73561         * m4/uintmax_t.m4: Likewise.
73562
73563 2004-04-18  Jim Meyering  <jim@meyering.net>
73564
73565         * m4/prereq.m4: Don't forbid jm_ prefix.
73566
73567         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73568         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73569         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73570         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73571         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73572         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73573         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73574         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73575         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73576         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73577         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73578         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73579         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73580         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73581         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73582         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73583         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73584         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73585         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73586
73587 2004-04-18  Jim Meyering  <jim@meyering.net>
73588
73589         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73590         failure, don't leak memory and do call END_UTMP_ENT.
73591
73592 2004-04-16  Jim Meyering  <jim@meyering.net>
73593
73594         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73595         coreutils' stat program.
73596         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73597
73598 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73599
73600         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73601         C89.
73602         (CHAR_BIT): Remove, since we assume C89.
73603         Include <stdint.h> if available, as per current Autoconf CVS advice.
73604
73605 2004-03-31  Jim Meyering  <jim@meyering.net>
73606
73607         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73608         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73609         * m4/xalloc.m4: Likewise.
73610
73611 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73612
73613         Merge from coreutils.
73614
73615         * m4/inttostr.m4: New file.
73616         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73617         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73618         Require gl_CLOCK_TIME.
73619         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73620
73621 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73622
73623         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73624         not bool, to be more consistent with Unix conventions.
73625         Suggested by Bruno Haible.
73626
73627         Merge from coreutils.
73628
73629         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73630         * lib/umaxtostr.c: New files.
73631
73632         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73633         the usual <time.h> dance.
73634         (get_date): Change signature to support fractional time stamps.
73635         All callers changed.
73636         * lib/getdate.y: Include "getdate.h" first, as we can now
73637         assume C89 and don't need to worry about 'const'.
73638         Similarly, include "unlocked-io.h" near start, not in middle.
73639         Include <limits.h>.
73640         (textint.value): Use long int rather than int.
73641         (textint.digits): Use size_t rather than int.
73642         (BILLION, LOG10_BILLION): New constants.
73643         (parser_control): New member rel_ns.  Members day_ordinal,
73644         time_zone, month, day, hour, minutes, rel_year, rel_month,
73645         rel_day, rel_hour, rel_minutes, rel_seconds
73646         are now long int, not int.  Member seconds is now struct timespec,
73647         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73648         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73649         not int.
73650         (%union.intval): Now long int, not int.
73651         New member timespec.
73652         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73653         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73654         (spec): Now is a timespec or an item list.
73655         (timespec, items): New nonterminals.
73656         (time, rel, relunit, number, get_date):
73657         Add support for fractional seconds.
73658         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73659         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73660         (to_hour): First arg is now long int, not int.
73661         (to_year): Returns long int, not int.
73662         Don't treat year -70 like 70.
73663         (tm_diff): Returns long int, not int.
73664         (lookup_word): Use bool instead of int when appropriate.
73665         (yylex): Use size_t for count, not int.
73666         Detect overflow when parsing large integer constants.
73667         Add support for fractions.
73668         (get_date): Make pointers 'const' if possible.
73669         Use more-portable code to detect integer overflow.
73670         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73671         Don't use ctime; it's not reliable if the year has >4 digits.
73672
73673         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73674         This is for compatibility with BSD.
73675
73676         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73677         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73678         From coreutils' system.h.
73679
73680         * lib/userspec.c: Don't include "posixver.h".
73681         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73682         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73683         compatible extension.  Simplify code by removing a boolean int
73684         that was always nonzero if a string was nonnull.
73685
73686 2004-03-30  Jim Meyering  <jim@meyering.net>
73687
73688         Merge from coreutils.
73689
73690         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73691         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73692         on some systems one must include <grp.h> before it.
73693         Reported by Christian Krackowizer.
73694
73695 2004-03-30  Jim Meyering  <jim@meyering.net>
73696
73697         Merge from coreutils.
73698
73699         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73700
73701         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73702         an empty input stream.
73703
73704         * lib/readtokens.c: Include <stdbool.h>.
73705         (readtoken): Use `size_t' rather than int/long.
73706         All callers adjusted.
73707         Use `bool' rather than `int' where appropriate.
73708         Use memset rather than an explicit loop.
73709         Use x2nrealloc rather than xrealloc.
73710         Allow the use of `\0' as a delimiter.
73711         (readtokens): Likewise.
73712         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73713
73714 2004-03-30  Jim Meyering  <jim@meyering.net>
73715
73716         * m4/realloc.m4: Remove file, since now it does no more than
73717         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73718         the `configure.ac' section of module/realloc.
73719         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73720
73721 2004-03-30  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73724         nonnull.
73725
73726 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73727
73728         Merge changes to getloadavg.c from coreutils and Emacs.
73729
73730         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73731         Define to an expression, not to the empty string.
73732         Include cloexec.h and xalloc.h.
73733         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73734         Use set_cloexec_flag rather than rolling our own.
73735         * lib/cloexec.c, lib/cloexec.h: New files.
73736
73737 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73738
73739         * m4/cloexec.m4: New file.
73740
73741 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73742
73743         * lib/getopt.h: Sync with libc CVS.
73744
73745 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73746             Bruno Haible  <bruno@clisp.org>
73747
73748         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73749         mbswidth.
73750
73751 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73752             Bruno Haible  <bruno@clisp.org>
73753
73754         * lib/mbswidth.h: Include <wchar.h> only if
73755         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73756         <wchar.h>.
73757         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73758
73759 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73760
73761         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73762         Sync with libc CVS.
73763         * lib/getopt_int.h: New file, also synced from libc.
73764
73765 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73766
73767         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73768         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73769         Bring back getopt.c, getopt.h, getopt1.c.
73770
73771 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73772
73773         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73774         All uses changed.  Check for sa_sigaction member; this fixes
73775         a bug first reported by Jason Andrade in
73776         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73777
73778 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73779
73780         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73781         '#if' expressions.  Unlike the code it replaces, it does not
73782         depend on (defined _SC_PAGESIZE).  However, it does depend on
73783         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73784         first reported by Jason Andrade in
73785         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73786
73787 2004-02-25  Simon Josefsson  <jas@extundo.com>
73788
73789         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73790
73791 2004-02-25  Simon Josefsson  <jas@extundo.com>
73792
73793         * lib/strdup.h: New file.
73794         * lib/strdup.c: Include it.
73795         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73796         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73797
73798 2004-02-23  Karl Berry  <karl@gnu.org>
73799
73800         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73801         (from fencepost.gnu.org:/gd/gnuorg).
73802
73803 2004-02-23  Karl Berry  <karl@gnu.org>
73804
73805         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73806         * config/srclist.txt: add maintain/standards documents.
73807
73808 2004-02-18  Bruno Haible  <bruno@clisp.org>
73809
73810         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73811         Reported by Derek Robert Price <derek@ximbiot.com>.
73812
73813 2004-02-16  Karl Berry  <karl@gnu.org>
73814
73815         * config/mkinstalldirs, install-sh: update from automake.
73816
73817 2004-02-06  Karl Berry  <karl@gnu.org>
73818
73819         * m4/po.m4: update from gettext 0.14.1.
73820
73821 2004-02-06  Karl Berry  <karl@gnu.org>
73822
73823         * lib/config.charset: update from gettext 0.14.1.
73824
73825 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73826
73827         Add comments and code, prompted by suggestions from Bruno Haible
73828         for sh-quote.
73829         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73830         describing the enum quoting_style values.
73831         * lib/quotearg.c (quotearg_alloc): New function.
73832         (quotearg_buffer_restyled): Treat lone { and } as special.
73833         Treat = as special.  Work around bug with older shells
73834         that "see" a '\' that is really the 2nd byte of a multibyte char.
73835         Quote empty string with shell_quoting_style.
73836
73837 2004-02-03  Bruno Haible  <bruno@clisp.org>
73838
73839         * m4/pipe.m4: New file, from GNU gettext.
73840
73841 2004-02-03  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/pipe.h: New file, from GNU gettext.
73844         * lib/pipe.c: New file, from GNU gettext.
73845
73846 2004-01-27  Bruno Haible  <bruno@clisp.org>
73847
73848         * m4/execute.m4: New file, from GNU gettext.
73849
73850 2004-01-27  Bruno Haible  <bruno@clisp.org>
73851
73852         * lib/execute.h: New file, from GNU gettext.
73853         * lib/execute.c: New file, from GNU gettext.
73854         * lib/w32spawn.h: New file, from GNU gettext.
73855
73856 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73857
73858         Merge from diffutils.
73859
73860         * lib/file-type.c (file_type): Add typed memory objects.
73861         * lib/file-type.h (S_TYPEISTMO): New macro.
73862
73863         * lib/c-stack.h (c_stack_action): Remove argv argument.
73864         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73865         (die): Don't calculate message unless segv_action returns.
73866         (get_stack_location, min_address_from_argv, max_address_from_argv,
73867         volatile stack_base, volatile_stack_size): Remove.
73868         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73869         that every segmentation violation is a stack overflow.  (Ouch!)
73870         See Debian bug 136249 (still outstanding) for more info about why
73871         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73872
73873 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73874
73875         Exit-status fix from coreutils.
73876
73877         Use exit_failure consistently in place of EXIT_FAILURE,
73878         so that program exit statuses are consistent on failure.
73879
73880         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73881         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73882         * lib/argmatch.h: Comment fix to match the above.
73883         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73884         Now a macro referring to exit_failure, instead of a separate
73885         variable.  Include "exitfail.h" to get it.
73886         * lib/xstrtol.h: Include "exitfail.h".
73887         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73888
73889         * lib/long-options.c (parse_long_options): Use prototype
73890         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73891         for clarity.
73892
73893 2004-01-21  Jim Meyering  <jim@meyering.net>
73894
73895         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73896         so as not to conflict with a different-sized __mktime_internal
73897         function in GNU libc.
73898         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73899         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73900
73901 2004-01-20  Karl Berry  <karl@gnu.org>
73902
73903         * config/config.guess: update from config.
73904
73905         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73906
73907 2004-01-20  Bruno Haible  <bruno@clisp.org>
73908
73909         Safer stack allocation.
73910         * lib/setenv.c: Include allocsa.h.
73911         (alloca): Remove fallback definition.
73912         (freea): Remove macro.
73913         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73914         instead of freea.
73915
73916 2004-01-20  Bruno Haible  <bruno@clisp.org>
73917
73918         * m4/eealloc.m4: New file, from GNU gettext.
73919
73920 2004-01-20  Bruno Haible  <bruno@clisp.org>
73921
73922         * m4/allocsa.m4: New file, from GNU gettext.
73923
73924 2004-01-20  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/xallocsa.h: New file, from GNU gettext.
73927         * lib/xallocsa.c: New file, from GNU gettext.
73928
73929 2004-01-20  Bruno Haible  <bruno@clisp.org>
73930
73931         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73932
73933 2004-01-20  Bruno Haible  <bruno@clisp.org>
73934
73935         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73936         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73937         specially.
73938
73939 2004-01-20  Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73942         patch.
73943
73944 2004-01-20  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73947
73948 2004-01-20  Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/eealloc.h: New file.
73951
73952 2004-01-20  Bruno Haible  <bruno@clisp.org>
73953
73954         * lib/binary-io.h: Avoid warnings on Cygwin.
73955
73956 2004-01-20  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/allocsa.h: New file, from GNU gettext.
73959         * lib/allocsa.c: New file, from GNU gettext.
73960
73961 2004-01-18  Karl Berry  <karl@gnu.org>
73962
73963         * doc/gpl.texi, doc/lgpl.texi: new files.
73964
73965 2004-01-18  Karl Berry  <karl@gnu.org>
73966
73967         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73968         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73969
73970 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73971
73972         Merge from coreutils.
73973
73974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73975         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73976         (gl_DEFAULT_POSIX2_VERSION): Move
73977         the documentation from 'configure' into 'config.hin',
73978         so that 'configure --help' isn't burdened by it and
73979         we don't have to worry about its formatting there.
73980         Reword the documentation so that it's more succinct
73981         and can be run together into a single paragraph.
73982         * m4/same.m4 (gl_SAME): Check for pathconf.
73983
73984 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73985
73986         Merge from coreutils.
73987
73988         * lib/posixver.c: Include posixver.h.
73989
73990         * lib/same.c: Include <stdbool.h>, <limits.h>.
73991         (_POSIX_NAME_MAX): Define if not defined.
73992         (MIN): New macro.
73993         (same_name): If file names are silently truncated, report
73994         that the file names are the same if they are the same after
73995         the silent truncation.
73996
73997         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73998         conversion function.
73999         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74000         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74001         longer needed.
74002
74003 2004-01-15  Jim Meyering  <jim@meyering.net>
74004
74005         Merge from coreutils.
74006
74007         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74008         if no library is required.
74009         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74010         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74011         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74012         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74013         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74014         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74015         value, $ac_cv_search_crypt, if it's "none required".
74016         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74017         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74018         not gl_FUNC_GETLOADAVG.
74019         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74020         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74021
74022 2004-01-15  Jim Meyering  <jim@meyering.net>
74023
74024         Merge from coreutils.
74025
74026         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74027         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74028         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74029
74030         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74031         optional configure-time default.
74032
74033         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74034
74035         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74036
74037 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74038
74039         Merge from coreutils.
74040
74041         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74042         value, $ac_cv_search_nanosleep, if it's "none required".
74043
74044 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74045
74046         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74047         with like-named macro in fnmatch.c.
74048         (EXT): Use an internal constant instead.
74049
74050         Merge fnmatch patches from glibc.
74051         * lib/fnmatch.c (mbsinit): Remove define.
74052         Add libc_hidden_ver (__fnmatch, fnmatch).
74053         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74054         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74055
74056 2004-01-14  Karl Berry  <karl@gnu.org>
74057
74058         * config/install-sh: update from automake.
74059
74060 2004-01-13  Karl Berry  <karl@gnu.org>
74061
74062         * config/install-sh: update from automake.
74063
74064 2004-01-09  Karl Berry  <karl@gnu.org>
74065
74066         * config/install-sh: update from automake.
74067
74068 2004-01-05  Karl Berry  <karl@gnu.org>
74069
74070         * config/config.{sub,guess}: update from config.
74071
74072 2003-12-31  Karl Berry  <karl@gnu.org>
74073
74074         * config/depcomp: update from automake.
74075
74076 2003-12-14  Karl Berry  <karl@gnu.org>
74077
74078         * lib/config.charset: update from gettext-runtime.
74079
74080 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74081
74082         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74083         Bug reported by Alfred M. Szmidt.
74084
74085 2003-12-03  Bruno Haible  <bruno@clisp.org>
74086
74087         * m4/gettext.m4: Upgrade from gettext-0.13.
74088         * m4/po.m4: Upgrade from gettext-0.13.
74089         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74090         * m4/intmax.m4: New file, from gettext-0.13.
74091         * m4/printf-posix.m4: New file, from gettext-0.13.
74092
74093 2003-11-29  Karl Berry  <karl@gnu.org>
74094
74095         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74096
74097 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74098             Bruno Haible  <bruno@clisp.org>
74099
74100         * lib/printf-parse.h: Don't include sys/types.h.
74101         (ARG_NONE): New macro.
74102         (char_directive): Change type of *arg_index fields to size_t.
74103         * lib/printf-parse.c: Don't include sys/types.h.
74104         (SSIZE_MAX): Remove macro.
74105         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74106         Remove unnecessary overflow check.
74107         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74108         fields.
74109
74110 2003-11-25  Bruno Haible  <bruno@clisp.org>
74111
74112         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74113
74114 2003-11-25  Bruno Haible  <bruno@clisp.org>
74115
74116         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74117         gt_TYPE_SSIZE_T.
74118
74119 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74120
74121         * modules/alloca: Remove dependency on xalloc.
74122
74123 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74124
74125         * lib/alloca.c: Remove dependency on xalloc module.
74126         (xalloc_die): Remove.
74127         (memory_full) [!defined emacs]: New macro.
74128         [!defined emacs]: Don't include xalloc.h.
74129         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74130         address arithmetic overflows.  Change datatypes a bit to avoid
74131         unnecessary casts.
74132
74133 2003-11-22  Jim Meyering  <jim@meyering.net>
74134
74135         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74136         s/size/size_t/.
74137
74138 2003-11-21  Karl Berry  <karl@gnu.org>
74139
74140         * config/config.{sub,guess}: update from config.
74141
74142 2003-11-18  Karl Berry  <karl@gnu.org>
74143
74144         * config/config.{sub,guess}: update from config.
74145
74146         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74147
74148 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74149
74150         * README: Mention that S+T cannot overflow if S is the size of
74151         an existing object and T is sufficiently small.
74152
74153 2003-11-17  Jim Meyering  <jim@meyering.net>
74154
74155         On systems without utime and without a utimes function capable of
74156         dealing with a NULL struct utimbuf* argument, this utime replacement
74157         could -- in unusual circumstances -- leak a file descriptor.
74158         * lib/utime.c: Include <unistd.h> and <errno.h>.
74159         (utime_null): Be sure to close `fd' and to preserve errno.
74160         Reported by Geoff Collyer via Arnold Robbins.
74161
74162 2003-11-17  Bruno Haible  <bruno@clisp.org>
74163
74164         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74165         (Depends-on): Add xsize.
74166
74167 2003-11-17  Bruno Haible  <bruno@clisp.org>
74168
74169         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74170
74171 2003-11-17  Bruno Haible  <bruno@clisp.org>
74172
74173         * lib/vasnprintf.c (alloca): Remove fallback definition.
74174         (freea): Remove definition.
74175         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74176         Reported by Paul Eggert.
74177
74178 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74179             Bruno Haible  <bruno@clisp.org>
74180
74181         Protect against address arithmetic overflow.
74182         * lib/printf-args.h: Include stddef.h.
74183         (arguments): Change type of field 'count' to size_t.
74184         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74185         'unsigned int' where appropriate.
74186         * lib/printf-parse.h: Include sys/types.h.
74187         (char_directive): Change type of *arg_index fields to ssize_t.
74188         (char_directives): Change type of fields 'count', max_*_length to
74189         size_t.
74190         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74191         (SSIZE_MAX): Define fallback value.
74192         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74193         instead of 'int' where appropriate. Check a_allocated, d_allocated
74194         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74195         * lib/vasnprintf.c: Include xsize.h.
74196         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74197         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74198         overflow. Avoid wraparound when converting a width or precision from
74199         decimal to binary.
74200
74201 2003-11-16  Bruno Haible  <bruno@clisp.org>
74202
74203         Update from GNU gettext.
74204         * lib/printf-parse.c: Generalize to it can be compiled for wide
74205         strings.
74206         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74207         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74208         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74209         SNPRINTF): New macros.
74210         Don't include <alloca.h> if the file is used inside libintl.
74211         (local_wcslen): New function, for Solaris 2.5.1.
74212         (VASNPRINTF): Use it instead of wcslen.
74213
74214 2003-11-16  Bruno Haible  <bruno@clisp.org>
74215
74216         * lib/xsize.h (xmax): New function.
74217         (xsum, xsum3, xsum4): Declare as "pure" functions.
74218
74219 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74220
74221         * modules/xalloc (Files): Undo latest change, since xalloc.h
74222         no longer needs SIZE_MAX or PTRDIFF_MAX.
74223
74224 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74225
74226         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74227         gl_PTRDIFF_MAX.
74228
74229 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74230
74231         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74232         "return", to pacify some unknown compiler.  Problem reported
74233         by Joerg Schilling.
74234
74235 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74236
74237         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74238         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74239         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74240         heuristic is just as accurate as far as we know, and it removes a
74241         dependency on size_max.m4 and ptrdiff_max.m4.
74242
74243 2003-11-11  Bruno Haible  <bruno@clisp.org>
74244
74245         * modules/xsize (Files): Add m4/size_max.m4.
74246         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74247
74248 2003-11-11  Bruno Haible  <bruno@clisp.org>
74249
74250         * m4/size_max.m4: New file.
74251         * m4/ptrdiff_max.m4: New file.
74252         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74253         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74254         (gl_XALLOC): Invoke it.
74255
74256 2003-11-11  Bruno Haible  <bruno@clisp.org>
74257
74258         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74259         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74260         defined.
74261
74262 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74263
74264         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74265         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74266         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74267         From Bruno Haible.
74268         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74269         not (size_t) -1, since it's defined here.
74270
74271 2003-11-09  Karl Berry  <karl@gnu.org>
74272
74273         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74274
74275 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74276
74277         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74278         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74279         Reject sizes of exactly SIZE_MAX bytes.
74280         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74281         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74282
74283 2003-11-05  Bruno Haible  <bruno@clisp.org>
74284
74285         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74286         SIZE_MAX defined in <limits.h> on Solaris.
74287
74288 2003-11-04  Jim Meyering  <jim@meyering.net>
74289
74290         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74291         variable names, rather than @VAR@.
74292         * modules/poll: Likewise.
74293
74294 2003-11-04  Bruno Haible  <bruno@clisp.org>
74295
74296         * modules/xsize: New file.
74297         * modules/linebreak: Depend on xsize.
74298         * MODULES.html.sh (func_all_modules): Add xsize.
74299
74300 2003-11-04  Bruno Haible  <bruno@clisp.org>
74301
74302         * m4/xsize.m4: New file.
74303
74304 2003-11-04  Bruno Haible  <bruno@clisp.org>
74305
74306         * lib/xsize.h: New file.
74307         * lib/linebreak.c: Include xsize.h.
74308         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74309         argument for overflow.
74310         Suggested by Paul Eggert.
74311
74312 2003-11-03  Karl Berry  <karl@gnu.org>
74313
74314         * config/config.{guess,sub}: update from config.
74315
74316 2003-11-03  Jim Meyering  <jim@meyering.net>
74317
74318         * modules/userspec (lib_SOURCES): Add userspec.h.
74319         (Include): Add "userspec.h".
74320         Improve description.
74321
74322 2003-11-03  Jim Meyering  <jim@meyering.net>
74323
74324         * lib/userspec.c: Include "userspec.h".
74325         * lib/userspec.h: New file.
74326
74327 2003-11-03  Bruno Haible  <bruno@clisp.org>
74328
74329         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74330
74331 2003-11-03  Bruno Haible  <bruno@clisp.org>
74332
74333         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74334         available, to avoid (extremely rare) race condition.
74335         Suggested by Paul Eggert.
74336
74337 2003-11-02  Karl Berry  <karl@gnu.org>
74338
74339         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74340
74341 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74342
74343         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74344         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74345         (read_filesystem_list): Set and use me_type_malloced.
74346         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74347         whatever the type happens to be), for brevity and consistency.
74348         Check for size calculation overflow on Alphas running OSF/1.
74349
74350 2003-10-31  Jim Meyering  <jim@meyering.net>
74351
74352         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74353
74354         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74355
74356 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74357             Bruno Haible  <bruno@clisp.org>
74358
74359         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74360         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74361
74362 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74365         netbsd*-gnu*.  Suggested by Robert Millan.
74366
74367 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74368
74369         * modules/group-member: Depend on stdbool.
74370
74371 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74372
74373         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74374
74375 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74376
74377         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74378         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74379         after the 'gnu' in these cases.  This fixes some bugs in the
74380         previous change, and is based on suggestions by Robert Millan.
74381
74382 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74383
74384         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74385         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74386         no longer needed.
74387         * lib/quotearg.c (quotearg_n_options): Use it.
74388         * lib/group-member.c: Include <stdbool.h>.
74389         (free_group_info): Arg is now const *; don't free arg.
74390         (get_group_info): Now returns bool and accepts struct group_info *,
74391         rather than returning a malloc'ed struct group_info *.
74392         All uses changed.  Check for overflow in internal size calculation.
74393
74394         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74395         rather than xmalloc/xrealloc.
74396         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74397         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74398         conformance bug: the old code used a pointer after freeing the
74399         storage that it addressed.
74400         * lib/hash.c (hash_initialize): Simplify the code by using
74401         xalloc_oversized rather than doing it by hand.
74402         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74403         the buffer preserved.  Use free and xmalloc instead.
74404         * lib/quotearg.c (quotearg_n_options): Likewise.
74405         Use a simpler test for size overflow.  Don't use xalloc_oversized
74406         because unsigned int might be wider than size_t (!); this suggests
74407         that we should switch from unsigned int to size_t for slot numbers.
74408
74409 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74410
74411         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74412         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74413         NetBSD kernels.  Requested by Richard Stallman.
74414
74415 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74416
74417         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74418         to allocate the returned structure.  Do not allocate a subarray,
74419         as x2nrealloc will do that.
74420         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74421         instead of xnrealloc.
74422         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74423
74424 2003-10-27  Bruno Haible  <bruno@clisp.org>
74425
74426         * lib/stdbool_.h: Better support for BeOS.
74427
74428 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74429
74430         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74431         now uses inline.
74432
74433 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74434
74435         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74436         callers that want to do their own size-overflow checking.  Include
74437         <stdbool.h>, since xalloc_oversized returns bool.
74438         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74439         to use xalloc_oversized.
74440
74441         Add two functions x2realloc, x2nrealloc, for programs that grow
74442         arrays dynamically by doubling their sizes.
74443         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74444         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74445         New functions.
74446
74447         Port to C99 semantics for 'inline' of external functions.
74448         Bug reported by Bruno Haible.
74449         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74450         with the old contents of xnmalloc.
74451         (xnmalloc, xmalloc): Use it.
74452         (xnrealloc_inline): New static inline function,
74453         with the old contents of xnrealloc.
74454         (xnrealloc, xrealloc): Use it.
74455
74456         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74457         that.
74458
74459 2003-10-26  Karl Berry  <karl@gnu.org>
74460
74461         * config/srclist.txt (COPYING.DOC): no longer available from
74462         /gd/gnuorg; don't know where the ultimate source is.
74463
74464 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74465
74466         Fix several address-calculation bugs in the hash modules,
74467         plus some minor code cleanup.
74468
74469         * lib/hash.h: Include <stdbool.h>, for bool.
74470         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74471         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74472         hash_get_n_entries, hash_get_max_bucket_length,
74473         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74474         hash_rehash): Use size_t rather than unsigned.
74475         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74476         hash_get_n_buckets_used, hash_get_n_entries,
74477         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74478         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74479         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74480         Likewise.
74481         (SIZE_MAX): Define if not defined.
74482         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74483         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74484         hash_print):
74485         Use const * when possible.
74486         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74487         (check_tuning): Fix bug: if tuning parameters were very close to
74488         0 or 1, rounding errors could have caused subscript violations.
74489         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74490         (hash_initialize): Add 'fail:' label
74491         to free table and return NULL, and use it to simplify code.
74492         Use calloc rather than clearing the storage ourself.
74493         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74494         buffer size calculations.
74495         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74496         Include <stddef.h>, for size_t.
74497         * lib/hash-pjw.c (hash_pjw): Likewise.
74498         Switch to method described by Bruno Haible.
74499         Include <limits.h>, for CHAR_BIT.
74500         (SIZE_BITS): New macro.
74501
74502 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74503
74504         * m4/getline.m4 (AM_FUNC_GETLINE):
74505         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74506         hosts.  Problem reported by Derek Robert Price in
74507         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74508         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74509         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74510
74511 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74512
74513         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74514         ceiling the allocation at NMAX bytes rather than silently
74515         discarding input bytes before NMAX is reached.  This makes
74516         a difference only if NMAX exceeds SIZE_MAX / 2.
74517
74518         * lib/obstack.c: Merge from glibc.
74519         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74520         Add libc_hidden_def (_obstack_newchunk).
74521         (_obstack_free) [! defined _LIBC]: Remove.
74522         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74523         a clone of the function body.
74524         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74525         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74526
74527         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74528         glibc.
74529         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74530         arg to memcpy.
74531
74532         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74533         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74534         Don't use lvalue casts, as GCC plans to remove support for them
74535         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74536         was also present in the non-GCC version, indicating that this
74537         code had always been buggy and had never been widely used.
74538         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74539         Use the fast variant of each macro, rather than copying the
74540         definiens of the fast variant; that way, we'll be more likely to
74541         catch future bugs in the fast variants.
74542
74543 2003-10-20  Bruno Haible  <bruno@clisp.org>
74544
74545         * modules/wait-process: New file.
74546         * MODULES.html.sh (func_all_modules): Add wait-process.
74547
74548 2003-10-20  Bruno Haible  <bruno@clisp.org>
74549
74550         * m4/wait-process.m4: New file.
74551
74552 2003-10-20  Bruno Haible  <bruno@clisp.org>
74553
74554         * lib/wait-process.h: New file, from GNU gettext.
74555         * lib/wait-process.c: New file, from GNU gettext.
74556
74557 2003-10-19  Jim Meyering  <jim@meyering.net>
74558
74559         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74560         HPUX 10.20.
74561
74562 2003-10-18  Karl Berry  <karl@gnu.org>
74563
74564         * config/config.guess: update from config.
74565
74566 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74567
74568         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74569         (getgroups): First arg is int, not size_t.
74570         Don't let 'free' mangle errno.
74571
74572 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74573
74574         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74575
74576 2003-10-16  Karl Berry  <karl@gnu.org>
74577
74578         * config/config.{guess,sub}: update from config.
74579
74580 2003-10-16  Jim Meyering  <jim@meyering.net>
74581
74582         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74583         memcpy.
74584
74585 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74586
74587         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74588         (SIZE_MAX): Remove.
74589         (new_exclude, add_exclude_file): Initial size no longer needs to
74590         be a power of 2.
74591         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74592         our own address arithmetic overflow checking.
74593
74594         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74595         (fnmatch): Do not alloca more than 2000 wide characters;
74596         instead, use malloc for large buffers.
74597         Check for address arithmetic overflow, and return -1
74598         with errno set to ENOMEM in that case.
74599         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74600         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74601         instead, return -1.  Check for address arithmetic overflow.
74602
74603 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74604
74605         Handle invalid suffixes and overflow independently, so that
74606         callers can treat them independently as needed.  Fix some bugs in
74607         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74608         suffix for a human-readable blocksize.  The major caller-visible
74609         change is the addition of a new
74610         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74611         that both overflow and suffix chars were found.
74612
74613         * lib/human.c (humblock): Don't check separately for invalid suffix
74614         char; that is xstrtoumax's job (now that its bug is fixed).
74615         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74616         INTMAX_MAX]: New macros.
74617         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74618         TYPE_MAXIMUM): New macros.
74619         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74620         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74621         if overflow occurs, as it's what __strtol does and it's more useful
74622         in practice.
74623         (__xstrtol): If __strtol reports some error other than ERANGE,
74624         reflect it to the caller as LONGINT_INVALID.  If it reports
74625         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74626         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74627         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74628         value.
74629         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74630         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74631         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74632         [defined UINTMAX_MAX]: New macros.
74633
74634 2003-10-14  Bruno Haible  <bruno@clisp.org>
74635
74636         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74637
74638 2003-10-14  Bruno Haible  <bruno@clisp.org>
74639
74640         * m4/sig_atomic_t: New file, from GNU gettext.
74641         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74642
74643 2003-10-14  Bruno Haible  <bruno@clisp.org>
74644
74645         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74646         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74647         Also use volatile where needed.
74648
74649 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74650
74651         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74652         Change maintainer from Bruno Haible to 'all'.
74653
74654 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74655
74656         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74657
74658 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74659
74660         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74661         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74662         and define in terms of the other primitives.
74663         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74664         (SIZE_MAX): Define if not already defined.
74665         (array_size_overflow): New function.
74666         (xalloc_die): Abort instead of exiting if 'error' returns.
74667         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74668         (xmalloc, xrealloc): Use them.
74669         (xcalloc): Check for address arithmetic overflow.
74670         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74671         a bit faster than strcpy.
74672
74673 2003-10-10  Simon Josefsson  <jas@extundo.com>
74674
74675         * modules/argp (Depends-on): Add restrict and strcase.
74676
74677 2003-10-10  Simon Josefsson  <jas@extundo.com>
74678
74679         * m4/argp.m4: Add AC_C_INLINE.
74680
74681 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74682
74683         Merge getpass from libc, plus a few fixes.
74684
74685         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74686         Include <stdbool.h>.
74687         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74688         __fsetlocking to empty.
74689         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74690         do include <bits/libc-lock.h>.
74691         Do not include <fcntl.h>; not needed.
74692         [_LIBC]: Include <wchar.h>.
74693         (NOTCANCEL_MODE): New macro.
74694         (flockfile, funlockfile) [_LIBC]: New macros.
74695         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74696         [!_LIBC]: New macros.
74697         (call_fclose): New function.
74698         (getpass): Use it.  Save tty stream separately; this simplifies the
74699         code and makes it more reliable if stdin happens to equal stdout.
74700         Invoke __fsetlocking on tty.
74701         Handle thread cancellation if needed.
74702         Namespace cleanup (use __tcgetattr, __getline).
74703         Use bool for Booleans.
74704         [USE_IN_LIBIO]: Handle wide streams.
74705         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74706         stream might go where.
74707
74708         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74709         doesn't have to include <stdio.h> before us.
74710         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74711         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74712         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74713         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74714         if not declared, so that we can use getpass.c code from libc without
74715         rewriting it.
74716         (flockfile, ftrylockfile, funlockfile): New macros.
74717
74718 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74719
74720         * modules/getpass: Depend on stdbool.
74721
74722 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74723
74724         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74725
74726 2003-10-07  Karl Berry  <karl@gnu.org>
74727
74728         * config/config.{guess,sub}: update from config.
74729
74730 2003-10-06  Jim Meyering  <jim@meyering.net>
74731             Bruno Haible  <bruno@clisp.org>
74732
74733         This lets translators provide better translations for the
74734         "Written by ..." part of --version output.
74735         * lib/version-etc.h: Include stdarg.h.
74736         (version_etc_copyright): Declare as readonly.
74737         (version_etc): Make this function variadic with a NULL-terminated list
74738         of author name strings.
74739         (version_etc_va): New declaration.
74740         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74741         (version_etc_copyright): Declare as readonly.
74742         (version_etc_va): New function. Provide a different translatable string
74743         for each possible number of authors < 10. Abbreviate when there are 10
74744         authors or more.
74745         (version_etc): Make this function variadic. Call version_etc_va.
74746         Suggestion from Gary V. Vaughan.
74747
74748         * lib/long-options.h (parse_long_options): Change prototype: the
74749         authors string is moved to the end and becomes variadic.
74750         * lib/long-options.c: Include stdarg.h.
74751         (parse_long_options): Make this function variadic, too.
74752         Call version_etc_va, not version_etc.
74753
74754 2003-10-06  Bruno Haible  <bruno@clisp.org>
74755
74756         * modules/version-etc-2: Remove file.
74757         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74758
74759 2003-10-06  Bruno Haible  <bruno@clisp.org>
74760
74761         * modules/fatal-signal: New file.
74762         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74763
74764 2003-10-06  Bruno Haible  <bruno@clisp.org>
74765
74766         * m4/fatal-signal.m4: New file.
74767         * m4/signalblocking.m4: New file, from GNU gettext.
74768
74769 2003-10-06  Bruno Haible  <bruno@clisp.org>
74770
74771         * lib/version-etc-2.h: Remove file.
74772         * lib/version-etc-2.c: Remove file.
74773
74774 2003-10-06  Bruno Haible  <bruno@clisp.org>
74775
74776         * lib/fatal-signal.h: New file, from GNU gettext.
74777         * lib/fatal-signal.c: New file, from GNU gettext.
74778
74779 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74780
74781         * README: Rework advice for preventing empty .o files.
74782         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74783         not <sys/types.h>.
74784
74785 2003-10-04  Karl Berry  <karl@gnu.org>
74786
74787         * lib/argp*: update from libc.
74788
74789 2003-10-04  Karl Berry  <karl@gnu.org>
74790
74791         * config/config.{guess,sub}: update from config.
74792
74793 2003-10-02  Bruno Haible  <bruno@clisp.org>
74794
74795         * modules/lchown (Include): Add lchown.h.
74796         * modules/time_r (Include): Use "..." syntax.
74797         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74798
74799 2003-10-01  Simon Josefsson  <jas@extundo.com>
74800
74801         * MODULES.html.sh (func_all_modules): Move gethostname from section
74802         'based on' to section 'lacking' POSIX:2001.
74803
74804 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74805
74806         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74807         to output mode on the same stream.
74808
74809 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74810
74811         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74812         Fix arg typo in previous patch.
74813
74814 2003-09-28  Jim Meyering  <jim@meyering.net>
74815
74816         * lib/error.c: Correct cpp indentation.
74817
74818 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74819
74820         * modules/free: New file.
74821
74822 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74823
74824         * m4/free.m4: New file.
74825
74826 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74827
74828         * lib/minmax.h (MIN, MAX)
74829         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74830         Omit the special code that used __typeof__, since we worry that
74831         it could be more trouble than it's worth.  See:
74832         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74833         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74834
74835         * lib/free.c: New file.
74836
74837 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74838
74839         Trivial fixes to Makefile.am parts of module listings.
74840         * modules/strstr: Append strstr.h to lib_SOURCES.
74841         * modules/strcase: Likewise, for strcase.h.
74842
74843 2003-09-27  Karl Berry  <karl@gnu.org>
74844
74845         * config/mkinstalldirs: update from automake.
74846
74847 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74848
74849         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74850         (error_tail): Do not loop, reallocating temporary buffer, since
74851         the output cannot contain more wide characters than the input
74852         contains bytes, the size must be big enough already.  This avoids
74853         one potential size overflow calculation.  Check for size overflow
74854         when calculating temporary buffer size.  Free temporary buffer
74855         when done, if it was allocated with malloc; this plugs a memory
74856         leak.  Remove casts from void * to pointers, that are no longer
74857         needed now that we're assuming C89 or better.
74858
74859         Merge error changes from glibc.
74860
74861         * lib/error.c, error.h: Update copyright notice header to match glibc.
74862         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74863         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74864         Disable cancellation while printing error.
74865         * lib/error.h: Prepend __ to parameter names.
74866
74867 2003-09-26  Jim Meyering  <jim@meyering.net>
74868
74869         * lib/error.c (error_tail): Move some declarations
74870         into inner scope where the local variables are used.
74871
74872 2003-09-26  Bruno Haible  <bruno@clisp.org>
74873
74874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74875         stpncpy().
74876         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74877
74878 2003-09-26  Bruno Haible  <bruno@clisp.org>
74879
74880         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74881         (stpncpy): Define as alias for gnu_stpncpy.
74882         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74883
74884 2003-09-25  Simon Josefsson  <jas@extundo.com>
74885
74886         * lib/xgetdomainname.h: New file.
74887         * lib/xgetdomainname.c: New file.
74888
74889 2003-09-25  Simon Josefsson  <jas@extundo.com>
74890             Bruno Haible  <bruno@clisp.org>
74891
74892         * modules/getdomainname: New file.
74893         * modules/xgetdomainname: New file.
74894         * MODULES.html.sh (func_all_modules): Add getdomainname,
74895         xgetdomainname.
74896
74897 2003-09-25  Simon Josefsson  <jas@extundo.com>
74898             Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/getdomainname.m4: New file.
74901
74902 2003-09-25  Simon Josefsson  <jas@extundo.com>
74903             Bruno Haible  <bruno@clisp.org>
74904
74905         * lib/getdomainname.h: New file.
74906         * lib/getdomainname.c: New file.
74907
74908 2003-09-25  Karl Berry  <karl@gnu.org>
74909
74910         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74911
74912 2003-09-25  Karl Berry  <karl@gnu.org>
74913
74914         * config/install-sh: update from automake.
74915
74916 2003-09-25  Bruno Haible  <bruno@clisp.org>
74917
74918         * modules/version-etc-2: New file, from modules/version-etc with
74919         modifications.
74920         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74921
74922 2003-09-25  Bruno Haible  <bruno@clisp.org>
74923
74924         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74925         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74926
74927 2003-09-24  Simon Josefsson  <jas@extundo.com>
74928
74929         * modules/xgethostname: Add xgethostname.h.
74930
74931 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74932
74933         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74934         the buffer associated with the argument.  Bug reported by
74935         Simon Josefsson.
74936
74937 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74938
74939         * README: Document assumptions that 'int' is at least 32 bits
74940         wide, that integer arithmetic is 2's complement without overflow,
74941         that there are no holes in integer values, that adding sizes of
74942         two nonoverlapping objects can't overflow, and that all-bits-zero
74943         yields scalar zero.  Fix spelling and capitalization typos.
74944
74945 2003-09-19  Karl Berry  <karl@gnu.org>
74946
74947         * lib/argp.h: update from libc.
74948
74949 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74950
74951         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74952         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74953         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74954
74955 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74956
74957         * gnulib-tool: Use "test -h", not "test -L", for portability
74958         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74959         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74960         (sed_extract_prog): Issue s commands one-by-one, rather than
74961         using \| in one s command.
74962
74963 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74964
74965         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74966         input error, instead of returning NULL the next time we are called
74967         (and therefore losing track of errno).
74968
74969 2003-09-16  Bruno Haible  <bruno@clisp.org>
74970
74971         * gnulib-tool (func_create_testdir): Warn about duplicated
74972         dependencies.
74973
74974 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74975
74976         * modules/argmatch, modules/fatal, modules/obstack,
74977         modules/xalloc, modules/xgethostname: Sort dependencies by
74978         importance, not alphabetically.
74979
74980 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74981
74982         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74983         fails, so that the caller gets the proper errno.
74984
74985         * lib/readutmp.c (read_utmp): Likewise.
74986         Check for fstat error.  Close stream and free storage
74987         when failing.
74988
74989 2003-09-14  Karl Berry  <karl@gnu.org>
74990
74991         * config/srclist.txt (strdup.c): disable for c89 changes.
74992
74993 2003-09-14  Jim Meyering  <jim@meyering.net>
74994
74995         * lib/getloadavg.c: Correct cpp indentation.
74996         * lib/strdup.c: Likewise.
74997         * lib/vasnprintf.c: Likewise.
74998
74999 2003-09-14  Bruno Haible  <bruno@clisp.org>
75000
75001         * modules/fwriteerror: New file.
75002         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75003
75004 2003-09-14  Bruno Haible  <bruno@clisp.org>
75005
75006         * lib/fwriteerror.h: New file.
75007         * lib/fwriteerror.c: New file.
75008
75009 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75010
75011         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75012         modules/xgethostname, modules/xalloc: Depend on exit.
75013
75014 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75015
75016         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75017
75018         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75019         and AC_MINIX, too, so that their extensions are available.
75020
75021         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75022         This macro has been superseded by gl_BACKUPFILE.
75023
75024         More patches to assume C89 or better.
75025
75026         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75027
75028         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75029         unconditionally.
75030         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75031         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75032         Include <string.h>, <stdlib.h> unconditionally.
75033         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75034         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75035         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75036         headers or for string.h.
75037         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75038         or strtoul.
75039
75040         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75041         headers.
75042         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75043         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75044         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75045         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75046         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75047         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75048         memcpy, memset.
75049         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75050         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75051         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75052         strtol.
75053         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75054         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75056         strtoul.
75057
75058 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75059
75060         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75061         * lib/obstack.c [!defined _LIBC]: Likewise.
75062         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75063         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75064         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75065
75066         More changes to assume C89 or better.
75067
75068         * lib/error.c (error_tail): Assume vprintf.
75069
75070         * lib/argmatch.c (getenv): Remove decl.
75071         * lib/progreloc.c (get_full_program_name): Define via prototype.
75072         * lib/setenv.c (clearenv): Likewise.
75073         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75074         needed.
75075         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75076         (malloc, memcpy): Remove decls.
75077         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75078         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75079         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75080         (memcpy): Remove macro.
75081         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75082         (__P): Remove.  All uses removed.
75083         (PTR): Remove.  All uses changed to void *.
75084         (CHAR_BIT, NULL): Remove.
75085         (spaces, zeros, memset_space, memset_zero)
75086         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75087         Remove.
75088         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75089         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75090         Define with prototype.
75091         Remove now-unnecessary prototype decl.
75092         (extra_args_spec): Assume ANSI C.  All uses changed.
75093         (extra_args_spec_iso): Remove.
75094         (my_strftime, emacs_strftimeu): Define via prototype.
75095         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75096         unconditionally.
75097         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75098         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75099         (strtoul, strtol): Remove decls.
75100         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75101         LONG_MAX): Remove.
75102         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75103         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75104         (LOCALE_PARAM_PROTO): New macro.
75105         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75106         (INTERNAL (strtol), strtol): Define with a prototype.
75107         (PARAMS): Remove.  All uses removed.
75108         * lib/tempname.c: Include <string.h> unconditionally.
75109         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75110         * lib/xgethostname.c (main): Define with a prototype.
75111         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75112         Include <stdlib.h> unconditionally.
75113         (calloc, malloc, realloc, free): Remove decls.
75114         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75115         Include <stdlib.h> unconditionally.  Sort include file names.
75116         (strtod): Remove.
75117         (xstrtod): Define with a prototype.
75118         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75119         (strtol, strtoul): Remove decls.
75120
75121 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75122
75123         More patches to assume C89 or better.
75124         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75125         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75126         string.h, memchr, STDC_HEADERS.
75127
75128 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75129
75130         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75131         Include <stdlib.h>, <string.h> unconditionally.
75132         Remove now-unnecessary cast to char *.
75133         * lib/strnlen.c: Include <string.h> unconditionally.
75134         * lib/yesno.c (yesno): Define with a prototype.
75135
75136 2003-09-11  Bruno Haible  <bruno@clisp.org>
75137
75138         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75139
75140 2003-09-10  Jim Meyering  <jim@meyering.net>
75141
75142         * lib/error.c: Correct indentation of cpp directives.
75143
75144 2003-09-10  Bruno Haible  <bruno@clisp.org>
75145
75146         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75147         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75148         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75149         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75150         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75151         <stdlib.h> and <string.h> checks.
75152         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75153         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75154
75155 2003-09-10  Bruno Haible  <bruno@clisp.org>
75156
75157         * lib/strcspn.c: Include <string.h> unconditionally.
75158         * lib/strpbrk.c: Include <string.h> unconditionally.
75159         * lib/strstr.c: Include <string.h> unconditionally.
75160         * lib/unicodeio.c: Include <string.h> unconditionally.
75161         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75162         * lib/unsetenv.c: Likewise.
75163         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75164         * lib/yesno.c: Include <stdlib.h> unconditionally.
75165         (rpmatch): Add prototype.
75166
75167 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75168
75169         More patches to assume C89 or better.
75170         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75171         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75172         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75173         or for string.h.
75174         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75175         stdlib.h.
75176         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75177         C headers.
75178         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75179         string.h.
75180         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75181         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75182         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75183         or for string.h.
75184         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75185         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75186         C headers.
75187         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75188         memcpy.
75189         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75190         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75191         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75192         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75193         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75194         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75195         string.h, free.
75196         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75197         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75198         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75199         C headers, or for string.h.
75200         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75201         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75202         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75203         headers, memory.h, stdlib.h, string.h, strings.h.
75204         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75205         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75206         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75207         strchr.
75208         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75209         headers, memory.h, string.h.
75210         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75211         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75212         free.
75213         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75214         headers.
75215         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75216         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75217         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75218         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75219         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75220
75221 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75222
75223         More K&R removal.
75224
75225         * lib/acosl.c (main): Use a prototype.
75226         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75227         tanl.c: Likewise.
75228
75229         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75230
75231         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75232         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75233         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75234         with a prototype.
75235         * lib/getopt.c (const): Remove macro.
75236         Include <string.h> unconditionally.
75237         (my_index): Remove; all uses changed to strchr.
75238         (strlen): Remove decl.
75239         (exchange): Remove forward decl; no longer needed.
75240         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75241         Define with prototype.
75242         * lib/getopt1.c (const): Remove macro.
75243         (getopt_long, getopt_long_only, main): Define with prototype.
75244
75245         * lib/getugroups.c: Include <string.h> unconditionally.
75246
75247         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75248         (getusershell, setusershell, endusershell, readname, main):
75249         Define with prototypes.
75250
75251         * lib/group-member.c: Include group-member.h first.
75252         Include <stdlib.h> unconditionally.
75253
75254         * lib/hard-locale.c: Include hard-locale.h first.
75255         Include <stdlib.h>, <string.h> unconditionally.
75256
75257         * lib/hash.c (free, malloc): Remove decls.
75258         Include <stdlib.h> unconditionally.
75259
75260         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75261         (getenv): Do not declare.
75262
75263         * lib/idcache.c: Include <string.h> unconditionally.
75264
75265         * lib/long-options.c: Include long-options.h first, to test interface.
75266         Include <stdlib.h> unconditionally.
75267
75268         * lib/makepath.c: Include makepath.h first, to test interface.
75269         Include <stdlib.h> and <string.h> unconditionally.
75270
75271         * lib/linebuffer.c: Include <stdlib.h>.
75272         (free): Remove decl.
75273
75274         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75275         stddef.h. rpl_malloc returns void *, not char *.
75276         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75277         prototype.
75278
75279         * lib/md5.h: Include <limits.h> unconditionally.
75280         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75281         (__P): Remove; all uses removed.
75282         * lib/md5.c: Include "md5.h" first.
75283         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75284         md5_buffer, md5_process_bytes, md5_process_block):
75285         Define with prototypes.
75286         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75287         * lib/sha.c: Include "sha.h" first.
75288         Include <stdlib.h>, <string.h> unconditionally.
75289
75290         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75291         * lib/memcmp.c (__ptr_t): Likewise.
75292         * lib/memrchr.c (__ptr_t): Likewise.
75293         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75294         Include <string.h> unconditionally.
75295         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75296         * lib/memchr.c: Include <stdlib.h> unconditionally.
75297         * lib/memchr.c (LONG_MAX): Remove.
75298         * lib/memrchr.c (LONG_MAX): Likewise.
75299         * lib/memchr.c (__memchr): Define via a prototype.
75300         * lib/memrchr.c (__memrchr): Likewise.
75301         * lib/memcmp.c (__P): Remove, and remove all uses.
75302         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75303         Remove forward decls; no longer needed.
75304         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75305         Use types required by C89 in prototype.
75306
75307         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75308         * lib/savedir.c: Likewise.
75309         * lib/mkdir.c (free): Remove decl.
75310         * lib/rmdir.c (rmdir): Define with a prototype.
75311         * lib/savedir.c: Include savedir.h first, to test interface.
75312
75313         * lib/mktime.c (STDC_HEADERS): Remove.
75314         Include <stdlib.h>, <string.h> unconditionally.
75315
75316         * lib/modechange.c: Include <stdlib.h> unconditionally.
75317         (malloc): Remove decl.
75318
75319         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75320         (free): Remove decl.
75321
75322         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75323         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75324         (This type really should be intptr_t, but that's a C99ism.)
75325         (_obstack_memcpy): Remove: all uses changed to memcpy.
75326         Include <string.h> unconditionally.
75327         (struct obstack): Assume __STDC__ for types of members
75328         chunkfun, freefun, extra_arg.
75329         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75330         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75331         obstack_begin, obstack_specify_allocation,
75332         obstack_specify_allocation_with_arg, obstack_chunkfun,
75333         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75334         Remove unprototyped decls and the macros that use them.
75335         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75336         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75337         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75338         (defined __STDC__ && __STDC__)]:
75339         Remove nonprototyped code.
75340         Include <stdlib.h> unconditionally.
75341         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75342         _obstack_allocated_p, _obstack_free, obstack_free,
75343         _obstack_memory_used, print_and_abort):
75344         Define using prototypes.
75345         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75346         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75347         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75348         obstack_next_free, obstack_object_size, obstack_room) [0]:
75349         Remove unused, unprototyped code.
75350
75351         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75352
75353         * lib/physmem.c (physmem_total, physmem_available, main): Define
75354         with prototypes.
75355
75356         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75357         (main): Define with a prototype.
75358
75359         * lib/posixver.c (getenv): Remove decl.
75360
75361         * lib/putenv.c (malloc): Returns void *, not char *.
75362         Include <string.h> unconditionally.
75363         (strchr, memcpy, NULL): Do not define.
75364
75365         * lib/readtokens.c: Include readtokens.h first, to test interface.
75366         Include <stdlib.h>, <string.h> unconditionally.
75367         (init_tokenbuffer): Define with a prototype.
75368
75369         * lib/regex.c (PARAMS): Remove.  All uses removed.
75370         All uses of _RE_ARGS removed, too.
75371         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75372         unconditionally.
75373         (bzero): Assume memset exists.
75374         (memcmp, memcpy, NULL): Remove.
75375         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75376         char, or assignments to local vars of type signed char.
75377         (init_syntax_once, PREFIX(extract_number_and_incr),
75378         PREFIX(print_partial_compiled_pattern),
75379         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75380         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75381         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75382         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75383         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75384         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75385         wcs_compile_range, byte_compile_range, truncate_wchar,
75386         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75387         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75388         count_mbs_length, wcs_re_match_2_internal,
75389         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75390         PREFIX(alt_match_null_string_p),
75391         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75392         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75393         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75394         now-unnecessary declaration, if any.
75395         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75396         regcomp, regexec):
75397         Remove now-unnecessary casts among pointer types.
75398         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75399
75400         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75401         (free): Remove decl.
75402
75403         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75404
75405         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75406         (free): Remove decl.
75407
75408         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75409         * lib/xgetcwd.c: Likewise.
75410
75411         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75412         (free): Remove decl.
75413
75414         * lib/strchrnul.c (strchrnul): Define with a prototype.
75415         Fix bug: c_in was not converted to char before searching.
75416
75417         The following changes are not K&R related:
75418
75419         * lib/group-member.h: Include <sys/types.h>, so that this file is
75420         self-contained.
75421         * lib/makepath.h: Likewise.
75422
75423         * lib/getusershell.c (readname, default_index, line_size, readname):
75424         Use size_t, not int, for sizes.
75425         (readname): If the size overflows, report an error instead of
75426         looping forever.
75427
75428 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75429
75430         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75431         libc.
75432
75433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75434
75435         * README: New section: portability guidelines.
75436
75437 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75438
75439         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75440         C89 spec.
75441
75442 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75443
75444         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75445
75446 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75447
75448         Assume C89 or better; remove K&R cruft.
75449         A few of these changes were first proposed by Derek Robert Price
75450         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75451
75452         * lib/addext.c: Include <string.h> unconditionally.
75453         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75454         Don't declare getenv or malloc.
75455
75456         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75457         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75458         (NULL): Remove.
75459         (find_stack_direction, alloca): Use prototypes.
75460
75461         * lib/atexit.c (atexit): Define using a prototype.
75462
75463         * lib/basename.c, dirname.c, stripslash.c:
75464         Include <string.h> unconditionally.
75465
75466         * lib/bcopy.c: Include <stddef.h>.
75467         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75468
75469         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75470
75471         * lib/error.h (error, error_at_line, error_print_progname)
75472         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75473         * lib/error.c: Include error.h first, to check interface.
75474         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75475         (VA_START): Remove; all uses changeed to va_start.
75476         (exit, strerror): Remove decls.
75477         (error_print_progname): Prototype uncondionally.
75478         Don't include <errno.h>; no longer needed.
75479         (private_strerror): Remove.
75480         (error_tail): Always define.
75481         (error, error_at_line): Assume C89 or better; always use prototypes.
75482         * lib/fatal.c: Include "fatal.h" first, to test interface.
75483         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75484         (VA_START): Remove; all uses changed to va_start.
75485         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75486         this case.
75487         (exit): Remove decl.
75488         (fatal): Prototype unconditionally.  Assume va_start works.
75489         Abort at end, to pacify gcc.
75490
75491         * lib/euidaccess.c (main): Define with a prototype.
75492
75493         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75494
75495         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75496
75497         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75498         prototypes.
75499         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75500         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75501         (getenv): Remove decl.
75502         (fnmatch): Define using a prototype.
75503         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75504         (FCT): Define using a prototype.
75505
75506         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75507
75508         * lib/gethostname.c: Include <stddef.h>.
75509         (gethostname): Define with prototype.  Length is size_t, not int.
75510
75511 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75512
75513         Assume C89 or better; remove K&R cruft.
75514         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75515         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75516         string.h, getenv, malloc.
75517         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75518         headers.
75519         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75520         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75521         do not check for strerror.
75522         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75523         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75524         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75525         do not check for doprnt or vprintf.
75526         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75527         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75528
75529 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75530
75531         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75532         getversion.c should have been removed then, but was accidentally
75533         preserved.
75534
75535         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75536         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75537
75538 2003-09-08  Karl Berry  <karl@gnu.org>
75539
75540         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75541                 config, forget about prep.
75542
75543         * config/depcomp, missing: update from automake.
75544
75545 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75546
75547         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75549
75550 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75551
75552         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75553         copy_tm_result.  Bug reported by Simon Josefsson in
75554         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75555
75556 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75557
75558         * m4/time_r.m4: New file.
75559         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75560         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75561         is. Check for timegm declaration.
75562         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75563         Do not check for gmtime_r.
75564         Replace mktime if __mktime_internal does not exist and if mktime
75565         hasn't been replaced already.
75566
75567 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75568
75569         * lib/time_r.c, lib/time_r.h: New files.
75570
75571         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75572         __localtime_r.
75573         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75574         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75575
75576         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75577         __gmtime_r.
75578         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75579         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75580         Include <time_r.h>.
75581
75582         * lib/timegm.c: Switch to glibc implementation, with the following
75583         changes:
75584         [defined HAVE_CONFIG_H]: Include <config.h>.
75585         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75586         (__mktime_internal) [!defined _LIBC]: New decl.
75587         (__gmtime_r) [!defined _LIBC]: New macro and function.
75588         (timegm): Use a prototype, since gnulib assumes C89.
75589         Do not bother declaring tmp to be const, as it's not really usefu.
75590         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75591         (timegm): Declare only if HAVE_DECL_TIMEGM.
75592
75593 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75594
75595         * MODULES.html.sh (func_all_modules): Add time_r.
75596         * modules/time_r: New file.
75597         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75598         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75599
75600 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75601
75602         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75603         Bug reported by Lute Kamstra in
75604         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75605
75606         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75607         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75608         course with correspondingly smaller numbers for tomorrow and
75609         yesterday.  From Tadayoshi Funaba.  Originally installed into
75610         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75611         coreutils merge?).
75612
75613 2003-08-31  Simon Josefsson  <jas@extundo.com>
75614
75615         * modules/timegm: New file.
75616         * MODULES.html.sh (func_all_modules): Add timegm.
75617
75618 2003-08-31  Simon Josefsson  <jas@extundo.com>
75619
75620         * m4/timegm.m4: New file.
75621
75622 2003-08-31  Simon Josefsson  <jas@extundo.com>
75623
75624         * lib/timegm.h: New file.
75625         * lib/timegm.c: New file.  Based on
75626         wget-1.8.2/src/http.c:mktime_from_utc.
75627
75628 2003-08-31  Karl Berry  <karl@gnu.org>
75629
75630         * lib/argp.h: update from libc.
75631
75632 2003-08-28  Bruno Haible  <bruno@clisp.org>
75633
75634         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75635         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75636         followed by '#define fnmatch fnmatch_posix' gives an error.
75637
75638 2003-08-28  Bruno Haible  <bruno@clisp.org>
75639
75640         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75641         warning on QNX, which defines O_BINARY to 000000.
75642
75643 2003-08-27  Jim Meyering  <jim@meyering.net>
75644
75645         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75646         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75647         would fail after 32.  Reported by Danny Levinson.  Details here:
75648         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75649
75650 2003-08-24  Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75653         MSVC7 <stdio.h> is included later.
75654
75655 2003-08-22  Simon Josefsson  <jas@extundo.com>
75656
75657         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75658
75659 2003-08-20  Karl Berry  <karl@gnu.org>
75660
75661         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75662
75663 2003-08-20  Bruno Haible  <bruno@clisp.org>
75664
75665         * modules/progname: New file.
75666         * MODULES.html.sh (func_all_modules): Add progname.
75667
75668 2003-08-20  Bruno Haible  <bruno@clisp.org>
75669
75670         * lib/progname.h: New file, from GNU gettext.
75671         * lib/progname.c: New file, from GNU gettext.
75672         * lib/progreloc.c: New file, from GNU gettext.
75673
75674 2003-08-19  Jim Meyering  <jim@meyering.net>
75675
75676         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75677         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75678
75679 2003-08-19  Bruno Haible  <bruno@clisp.org>
75680
75681         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75682         more.
75683
75684 2003-08-19  Bruno Haible  <bruno@clisp.org>
75685
75686         * lib/xstrdup.c: Assume <string.h> exists.
75687
75688 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75689
75690         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75691         in makefile rules.
75692
75693 2003-08-18  Jim Meyering  <jim@meyering.net>
75694
75695         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75696         * m4/lib-ld.m4: Likewise.
75697
75698 2003-08-18  Jim Meyering  <jim@meyering.net>
75699
75700         * lib/setenv.h: Indent nested cpp directive.
75701         * lib/vasnprintf.c: Remove trailing blanks.
75702
75703 2003-08-17  Simon Josefsson  <jas@extundo.com>
75704
75705         * modules/xstrndup: New file.
75706         * MODULES.html.sh (func_all_modules): Add xstrndup.
75707
75708 2003-08-17  Simon Josefsson  <jas@extundo.com>
75709
75710         * modules/argp: Fix autoconf macro name. Add more dependencies.
75711
75712 2003-08-17  Simon Josefsson  <jas@extundo.com>
75713
75714         * m4/xstrndup.m4: New file.
75715
75716 2003-08-17  Simon Josefsson  <jas@extundo.com>
75717
75718         * m4/argp.m4: New file.
75719
75720 2003-08-17  Simon Josefsson  <jas@extundo.com>
75721             Bruno Haible  <bruno@clisp.org>
75722
75723         * lib/xstrndup.h: New file.
75724         * lib/xstrndup.c: New file.
75725
75726 2003-08-17  Bruno Haible  <bruno@clisp.org>
75727
75728         * modules/strndup (Files, Include): Add lib/strndup.h.
75729
75730 2003-08-17  Bruno Haible  <bruno@clisp.org>
75731
75732         * modules/euidaccess (Files): Add lib/euidaccess.h.
75733
75734 2003-08-17  Bruno Haible  <bruno@clisp.org>
75735
75736         * lib/strndup.h: New file.
75737
75738 2003-08-17  Bruno Haible  <bruno@clisp.org>
75739
75740         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75741         like AC_GNU_SOURCE.
75742         * modules/extensions (configure.ac): Comment out the invocation of
75743         gl_USE_SYSTEM_EXTENSIONS.
75744
75745 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75746
75747         Merges from coreutils, etc.
75748         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75749         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75750         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75751         fixing a typo.
75752         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75753         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75754
75755 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75756
75757         Document merge from coreutils.
75758         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75759         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75760         * modules/utime: Add m4/utimes-null.m4.
75761
75762 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75763
75764         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75765         space, undoing this 2003-08-12 change:
75766         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75767
75768 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75769
75770         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75771         strtoul.c from libc, undoing this 2003-08-12 change:
75772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75773
75774 2003-08-16  Jim Meyering  <jim@meyering.net>
75775
75776         Merges from coreutils.
75777         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75778         prefix.  Adjust cache variables similarly.  Create 500 rather than
75779         just 300 files, to exercise bug on Darwin6.5, too.
75780         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75781         $missing_dir.
75782         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75783         AM_SYS_POSIX_TERMIOS.
75784         Reported by mkc@mathdogs.com.
75785         Also change use of $am_cv_sys_posix_termios
75786         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75787         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75788         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75789         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75790         in /proc/mounts until it finds one with matching device number.  This
75791         is unnecessary when the FILE argument *is* a mount point.  No stat call
75792         is necessary in that case.  So, disable the statvfs-testing code on
75793         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75794         as RedHat bug# 84846.
75795         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75796         to 1MB, so as not to render systems with no stack size limit (e.g.,
75797         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75798         Include <unistd.h>.  On some systems,
75799         it is required for the definition of _SC_PAGESIZE.
75800
75801 2003-08-16  Jim Meyering  <jim@meyering.net>
75802
75803         Merge from coreutils.
75804         * lib/xstrtoimax.c: #else #if -> #elif.
75805         * lib/xstrtoumax.c: Likewise.
75806
75807 2003-08-16  Jim Meyering  <jim@meyering.net>
75808
75809         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75810         * m4/utimes.m4: Removed.
75811         * m4/utimes-null.m4: Renamed from utimes.m4.
75812
75813         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75814         to 1MB, so as not to render systems with no stack size limit (e.g.,
75815         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75816         Include <unistd.h>.  On some systems,
75817         it is required for the definition of _SC_PAGESIZE.
75818
75819 2003-08-16  Jim Meyering  <jim@meyering.net>
75820         and Paul Eggert  <eggert@cs.ucla.edu>
75821
75822         Merges from coreutils, etc.
75823
75824         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75825         using the latest version from cvs.  This avoids problems with #line
75826         directives using a vendor (Sun) compiler.
75827         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75828         Don't set GETGROUPS_LIB here; now it's
75829         done via getgroups.m4's wrapper function.
75830         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75831         rather than just in sh-util/configure.in, so that the
75832         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75833         same.
75834         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75835         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75836         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75837         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75838         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75839         Remove code that is now done by the newly-required macros.
75840         Append $(EXEEXT) to DF_PROG.
75841         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75842         Do not invoke or require the following here,
75843         since prereq.m4 or some gnulib .m4 now does this for us:
75844         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75845         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75846         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75847         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75848         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75849         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75850         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75851         AC_FUNC_OBSTACK.
75852         Do not replace the following functions, as this is now the job
75853         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75854         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75855         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75856         atexit getpass, strdup, getpagesize.
75857         Replace 'raise'.
75858         Do not check for the following functions, as this is now the job
75859         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75860         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75861         setregid.
75862         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75863         Check for sys/sysctl.h.
75864         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75865         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75866         of checking for ssize_t ourselves.
75867
75868         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75869         Require every macro that gnulib/modules/* suggests for us.
75870         (jm_PREREQ_ADDEXT): New macro.
75871         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75872         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75873
75874         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75875         (gl_PHYSMEM): Use it.
75876         Also check for `table' function.
75877         Check for new headers and functions.
75878         Add check for sys/sysmp.h.
75879         With suggestions from Kaveh Ghazi.
75880         Ignore headers that are present but cannot be compiled.  This
75881         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75882         C 5.4.
75883
75884 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75885
75886         Document merge from coreutils.
75887         * modules/userspec: Depend on posixver.
75888         * modules/strftime: Depend on tzset.
75889
75890 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75891
75892         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75893         rather than tab, after '#' in shell-script copyright notices.
75894         Suggested by Bruno Haible.
75895
75896 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75897
75898         * config/srclist-update: Use three spaces, rather than tab, after '#'
75899         in shell-script copyright notices.  Suggested by Bruno Haible.
75900         Remove unnecessary parenthesization in regular expression.
75901
75902 2003-08-15  Jim Meyering  <jim@meyering.net>
75903
75904         Merge from coreutils.
75905         * lib/xgethostname.c: Include <stdlib.h>.
75906         (xghostname): Don't exit for anything other than memory-related
75907         failure; just return NULL.
75908         * lib/userspec.c: Include "posixver.h".
75909         (parse_user_spec): Accept `.' as a separator only
75910         in pre-POSIX-200112 mode.
75911         * lib/strtoimax.c: Use #elif rather than #else #if.
75912         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75913         Remove function, now that we can rely on a working tzset function.
75914         [!_LIBC]: Ensure that the required autoconf test has been run.
75915         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75916         Use underlying_strftime for %r.
75917         * lib/sha.c: Merge in some clean-up and optimization changes from
75918         glibc.
75919         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75920         Ensure that it is a multiple of 64.
75921         Rearrange loop exit tests so as to avoid performing an
75922         additional fread after encountering an error or EOF.
75923         * lib/realloc.c: Update copyright date.
75924
75925 2003-08-15  Jim Meyering  <jim@meyering.net>
75926         and Paul Eggert  <eggert@twinsun.com>
75927
75928         Merge from coreutils.
75929         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75930         member but strut utmpx does not.  Needed for AIX 4.3.3.
75931         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75932
75933 2003-08-15  Jim Meyering  <jim@meyering.net>
75934         and Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         Merges from coreutils, etc.
75937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75938         Require gl_FUNC_TZSET_CLOBBER.
75939         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75940         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75941         members.
75942
75943 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75944
75945         Help the merge from coreutils.
75946         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75947         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75948         * m4/tzset.m4: Use it too.
75949
75950 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75951
75952         * modules/tzset: New file.
75953
75954 2003-08-14  Jim Meyering  <jim@meyering.net>
75955
75956         Merges from coreutils.
75957         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75958         variable names, rather than @FNMATCH_H@.
75959         * modules/alloca: Likewise for $(ALLOCA_H).
75960
75961         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75962         the three copies of the literal target, `fnmatch.h'.
75963         * modules/alloca (alloca.h): Likewise.
75964
75965 2003-08-14  Jim Meyering  <jim@meyering.net>
75966
75967         Merge from coreutils.
75968         * m4/tzset.m4: New file.
75969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75970         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75971         otherwise, AIX 5.1 systems would end up using the latter.
75972         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75973         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75974         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75975         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75976
75977 2003-08-14  Jim Meyering  <jim@meyering.net>
75978
75979         Merge from coreutils.
75980         * lib/obstack.h: Whitespace changes.
75981         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75982         and xcalloc return values.
75983         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75984         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75985         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75986         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75987         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75988         error from mntctl.
75989         Use mntctl's return value to drive the entry-processing loop, since
75990         we can't rely on the value of the vmt_length member in the last
75991         entry.  On some systems doing so could result in exhausting
75992         virtual memory.  Based in part on a patch from Mike Jetzer.
75993
75994 2003-08-14  Jim Meyering  <jim@meyering.net>
75995         and Paul Eggert  <eggert@twinsun.com>
75996
75997         Merges from coreutils, plus other fixes.
75998         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75999         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76000         for credits and details.  Thanks to Kaveh Ghazi for helping
76001         to keep these files in sync.
76002         (ARRAY_SIZE): Define it.
76003         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76004         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76005         (memcasecmp): Don't assume size_t fits in unsigned int.
76006         Remove casts and duplicate code.
76007         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76008         (memcpy): Remove definition.
76009         Merge in some clean-up and optimization changes from glibc.
76010         [BLOCKSIZE]: Move definition to top of file.
76011         Ensure that it is a multiple of 64.
76012         Rearrange loop exit tests so as to avoid performing an
76013         additional fread after encountering an error or EOF.
76014         * lib/md5.h (md5_uintptr): Define.
76015         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76016         return to the initial working directory.  Preserve errno
76017         for caller.
76018         * lib/idcache.c: Include "xalloc.h".
76019         (xmalloc, xrealloc): Remove decls.
76020         (getuser): Remove casts no longer required in C89.
76021         * lib/human.c: Include stdio.h, for sprintf.
76022         * lib/group-member.c: Include "xalloc.h".
76023         (xmalloc, xrealloc): Remove decls.
76024         (get_group_info): Remove casts no longer required in C89.
76025         * lib/getusershell.c (readname): Remove casts no longer required in
76026         C89.
76027         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76028         * lib/getline.c: Whitespace fix, from coreutils.
76029
76030 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76031
76032         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76033         Check for isascii.
76034
76035         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76036         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76037         Undo previous (whitespace-only) change.
76038
76039 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76040
76041         * lib/exclude.c: Include <ctype.h>
76042         (IN_CTYPE_DOMAIN): New macro.
76043         (is_space): New fn.
76044         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76045         and empty lines.
76046
76047         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76048         Undo previous (whitespace-only) change.
76049
76050 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76051
76052         * config/srclist-update: Change update back to the old behavior,
76053         leaving whitespace alone.  Use one 'sed' command rather than a
76054         pipeline.
76055         (fixlicense): Now a variable, not a function.
76056         (remove_trailing_blanks): Remove.
76057         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76058         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76059         Undo previous (whitespace-only) change.
76060
76061 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76062
76063         Merge from coreutils.
76064         * modules/euidaccess: Add lib_SOURCES, include for new
76065         file euidaccess.h
76066
76067 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76068
76069         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76070         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76071         Normalize leading white space and remove trailing white space.
76072
76073         Merge from coreutils
76074         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76075
76076         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76077         0.12.1.  These files are now being upgraded automatically by
76078         ../config/srclist-update.
76079
76080 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76081
76082         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76083         Normalize leading white space and remove trailing white space.
76084         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76085         notice, as per ../config/srclist-update.
76086
76087         Merge from coreutils.
76088         * lib/euidaccess.h: New file.
76089         * lib/euidaccess.c: Include it.
76090         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76091         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76092         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76093
76094 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76095
76096         * config/srclist-update: Add copyright notice.
76097         (remove_id_lines, remove_trailing_blanks): New constants.
76098         (fixfile): Use them to normalize spacing a bit in copied files.
76099         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76100         Normalize leading white space and remove trailing white space.
76101
76102         * config/texinfo.tex: Sync with texinfo.
76103
76104         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76105         strtoul.c from libc, to merge coreutils whitespace changes.
76106
76107         * config/srclist.txt: Get the following m4 files from gettext:
76108         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76109         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76110         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76111         wint_t.m4.
76112
76113 2003-08-12  Karl Berry  <karl@gnu.org>
76114
76115         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76116         been made.
76117
76118 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76119
76120         * modules/gnu-source, m4/gnu-source.m4:
76121         Remove; we're assuming Autoconf 2.54 or later now.
76122         Suggested by Bruno Haible.
76123         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76124
76125 2003-08-11  Bruno Haible  <bruno@clisp.org>
76126
76127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76128
76129 2003-08-11  Bruno Haible  <bruno@clisp.org>
76130
76131         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76132         (vasnprintf): Use it instead of wcslen.
76133
76134 2003-08-11  Bruno Haible  <bruno@clisp.org>
76135
76136         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76137         value to ensure that _Bool promotes to int. Use #define for _Bool when
76138         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76139
76140 2003-08-10  Karl Berry  <karl@gnu.org>
76141
76142         * lib/regex.h: update from libc (whitespace fix).
76143
76144 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76145
76146         Merge some files from coreutils.  These changes were
76147         originally made by Jim Meyering.
76148         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76149         many older Unixes require this.
76150         * lib/alloca.c (alloca): Remove cast to argument of free;
76151         no longer needed in C89.
76152         * lib/alloca_.h, regex.h: Fix white space to match
76153         what GNU indent does.
76154
76155 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76156
76157         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76158         apparently Emacs's Unicode mode got confused before my 2003-08-05
76159         checkin.
76160
76161 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76162
76163         * m4/extensions.m4: New file.
76164         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76165         Require gl_USE_SYSTEM_EXTENSIONS.
76166         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76167         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76168
76169 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76170
76171         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76172         * modules/extensions, modules/gnu-source: New files.
76173         * modules/timespec, modules/unlocked-io: Depend on extensions.
76174
76175 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76176
76177         * modules/restrict: New file.
76178         * MODULES.html.sh (func_all_modules): Add restrict.
76179         * modules/regex: Depend on restrict.
76180
76181 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76182
76183         * m4/restrict.m4: New file.
76184         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76185
76186 2003-08-07  Bruno Haible  <bruno@clisp.org>
76187
76188         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76189         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76190
76191 2003-08-07  Bruno Haible  <bruno@clisp.org>
76192
76193         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76194         makes the module 'getndelim2' compatible with the module 'getline'.
76195
76196 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76197
76198         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76199         byte with "\201" to avoid glitches when editing that source file
76200         with multi-gnome-terminal.
76201
76202 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76203
76204         * lib/bumpalloc.h: Remove.
76205
76206 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76207
76208         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76209         * modules/bumpalloc: Remove.
76210
76211 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76212
76213         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76214         GNU coding style.
76215
76216         Merge from coreutils.
76217         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76218         1. From glibc.
76219         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76220         from Karl Berry, implemented by Jim Meyering.
76221         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76222         from Dmitry V. Levin.
76223         Remove anachronistic cast of xrealloc.
76224         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76225         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76226         type. Otherwise, it wouldn't compile with at least /bin/cc on
76227         ymp-cray-unicos9.0.2.X.
76228         Combine two mostly-identical uses of alloca into one.
76229         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76230
76231 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76232
76233         [From Emacs.]
76234
76235         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76236         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76237         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76238         obsolete NLIST_NAME_UNION.
76239         [__GNU__]: Undef BSD and FSCALE.
76240         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76241
76242 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76243
76244         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76245         an enum type, so that it's guaranteed to promote to int.  See:
76246         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76247
76248 2003-08-03  Karl Berry  <karl@gnu.org>
76249
76250         * config/depcomp: update from automake.
76251
76252 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76253
76254         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76255         (strerror): Don't assume that a printable int fits in 14 bytes.
76256
76257 2003-07-31  Bruno Haible  <bruno@clisp.org>
76258
76259         * modules/getpass-gnu: New file.
76260         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76261
76262 2003-07-31  Bruno Haible  <bruno@clisp.org>
76263
76264         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76265
76266 2003-07-24  Karl Berry  <karl@gnu.org>
76267
76268         * config/missing: update from automake.
76269
76270 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76271             Bruno Haible  <bruno@clisp.org>
76272
76273         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76274         * lib/getline.c (getline, getdelim): Likewise.
76275         Remove _GNU_SOURCE define; now it's defined in config.h through
76276         m4/getline.m4.
76277
76278 2003-07-23  Karl Berry  <karl@gnu.org>
76279
76280         * config/config.sub: update from prep.
76281
76282 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76283
76284         * modules/xalloc (Depends-on): Add exitfail.
76285         * modules/xmemcoll: Likewise.
76286
76287 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76288
76289         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76290         over-parenthesization in macros.
76291
76292         Sync with coreutils.
76293
76294         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76295         required by C99.
76296
76297         Use `exit_failure' for xalloc and xmemcoll instead of their own
76298         private exit-failure variables.
76299         * lib/xalloc.h (xalloc_exit_failure): Remove.
76300         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76301         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76302         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76303         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76304         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76305
76306 2003-07-20  Jim Meyering  <jim@meyering.net>
76307
76308         * modules/closeout (Depends-on): Add exitfail.
76309         Suggestion from Bruno Haible.
76310
76311 2003-07-19  Karl Berry  <karl@gnu.org>
76312
76313         * config/config.sub: update from prep.
76314
76315 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76316
76317         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76318         Remove.
76319         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76320         to test that it can stand by itself.  Include "exitfail.h".
76321         Clients should set exit_failure instead.
76322         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76323
76324 2003-07-18  Bruno Haible  <bruno@clisp.org>
76325
76326         * modules/getndelim2: New file.
76327         * modules/getline: Share files with module getndelim2.
76328         * modules/getnline: Depend on getndelim2 instead of sharing files with
76329         it. Add getnline.c to lib_SOURCES.
76330         * MODULES.html.sh (func_all_modules): Add getndelim2.
76331
76332 2003-07-18  Bruno Haible  <bruno@clisp.org>
76333
76334         * m4/getndelim2.m4: New file.
76335         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76336         invoke gl_PREREQ_GETNDELIM2.
76337         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76338         gl_PREREQ_GETNDELIM2.
76339         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76340         gl_GETNDELIM2.
76341
76342 2003-07-18  Bruno Haible  <bruno@clisp.org>
76343
76344         * lib/getndelim2.h: New file.
76345         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76346         getndelim2.h.
76347         (getndelim2): Make non-static. Change return type to ssize_t.
76348         * lib/getline.h: Change argument names.
76349         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76350         * lib/getnline.c: Include getndelim2.h.
76351
76352 2003-07-18  Andreas Schwab  <schwab@suse.de>
76353
76354         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76355
76356 2003-07-17  Karl Berry  <karl@gnu.org>
76357
76358         * config/config.sub: update from prep.
76359
76360 2003-07-17  Bruno Haible  <bruno@clisp.org>
76361
76362         * modules/getnline: New file.
76363         * modules/getline: Add lib/getndelim2.c to source file list.
76364         * MODULES.html.sh (func_all_modules): Add getnline.
76365
76366 2003-07-17  Bruno Haible  <bruno@clisp.org>
76367
76368         * m4/getnline.m4: New file.
76369
76370 2003-07-17  Bruno Haible  <bruno@clisp.org>
76371
76372         * m4/Makefile.am.in: Remove file.
76373         * m4/Makefile.am: Remove file.
76374         * m4/Makefile.in: Remove file.
76375
76376 2003-07-17  Bruno Haible  <bruno@clisp.org>
76377
76378         * lib/getnline.h: New file.
76379         * lib/getnline.c: New file.
76380         * lib/getndelim2.c: New file, extracted from getline.c.
76381         (getndelim2): Renamed from getdelim2, with added nmax argument.
76382         * lib/getline.c: Include getndelim2.c.
76383         (getdelim2): Moved out to getndelim2.c.
76384         (getline, getdelim): Update.
76385
76386 2003-07-17  Bruno Haible  <bruno@clisp.org>
76387
76388         * lib/Makefile.am: Remove file.
76389         * lib/Makefile.in: Remove file.
76390
76391 2003-07-17  Bruno Haible  <bruno@clisp.org>
76392
76393         * configure.in: Remove file.
76394         * Makefile.in: Remove file.
76395
76396 2003-07-17  Bruno Haible  <bruno@clisp.org>
76397
76398         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76399
76400 2003-07-16  Karl Berry  <karl@gnu.org>
76401
76402         * config/srclist-update: was running fixlicense twice, which caused
76403                 texinfo.tex to be nullified for some reason.  Simplify,
76404                 $gplsrc is no longer needed as far as I can see?
76405
76406 2003-07-16  Jim Meyering  <jim@meyering.net>
76407
76408         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76409
76410 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76411
76412         * config/srclist.txt: Get the following files from gettext-runtime/intl
76413         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76414         ref-del.sin.  From Bruno Haible.
76415         * config/srclist-update (fixfile): Change grep pattern again, since the
76416         previous fix didn't work (there was another trailing $).  Use
76417         '[$]' to escape the $s.
76418
76419 2003-07-15  Karl Berry  <karl@gnu.org>
76420
76421         * lib/vasnprintf.c: update from gettext.
76422
76423 2003-07-15  Karl Berry  <karl@gnu.org>
76424
76425         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76426         gets expanded when surrounded by '$'.
76427
76428 2003-07-15  Jim Meyering  <jim@meyering.net>
76429
76430         * modules/save-cwd: Don't depend on error.  From Derek Price.
76431
76432 2003-07-15  Jim Meyering  <jim@meyering.net>
76433
76434         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76435
76436 2003-07-14  Simon Josefsson  <jas@extundo.com>
76437
76438         * modules/mempcpy: New file.
76439         * MODULES.html.sh (func_all_modules): Add mempcpy.
76440
76441 2003-07-14  Simon Josefsson  <jas@extundo.com>
76442
76443         * m4/mempcpy.m4: New file.
76444
76445 2003-07-14  Simon Josefsson  <jas@extundo.com>
76446
76447         * lib/mempcpy.h: New file.
76448         * lib/mempcpy.c: New file.
76449
76450 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76451
76452         * modules/getdate, modules/posixtm: Depend on mktime.
76453
76454 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76455
76456         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76457         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76458         unicodeio.c, unicodeio.h, unlocked-io.h:
76459         Switch from LGPL to GPL.
76460
76461 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76462
76463         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76464         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76465         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76466         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76467         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76468         updated automatically by ../config/srclist-update.  This changes
76469         their license from LPGL to GPL.
76470
76471 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76472
76473         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76474         assumed to refer to the root of the most recent stable gettext version.
76475         * config/srclistvars.sh: Add defaults for eggert.
76476         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76477         Match "This program" as well as "The program".  This is needed
76478         for gettext.
76479
76480 2003-07-14  Jim Meyering  <jim@meyering.net>
76481
76482         Don't emit diagnostics.  Let callers do that.
76483         * lib/save-cwd.c: Don't include "error.h".
76484         (save_cwd): Don't call error.  Ensure that errno is valid
76485         when returning nonzero.
76486
76487         * lib/save-cwd.h (restore_cwd): Update prototype.
76488         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76489         Simplify.  Don't call error upon failure.  Let callers do that.
76490         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76491         when auditing is enabled.  But don't bother updating the #if.
76492
76493 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76494
76495         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76496         it breaks C++ compilation.
76497         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76498
76499 2003-07-10  Simon Josefsson  <jas@extundo.com>
76500
76501         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76502
76503 2003-07-10  Jim Meyering  <jim@meyering.net>
76504
76505         * m4/clock_time.m4: Remove trailing blank.
76506         * m4/intmax_t.m4: Likewise.
76507
76508 2003-07-10  Jim Meyering  <jim@meyering.net>
76509
76510         * lib/vasnprintf.c: Remove trailing blanks.
76511         Make cpp indentation consistent.
76512
76513 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76514
76515         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76516         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76517         Switch from LGPL to GPL.
76518
76519 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76520
76521         * config/srclist.txt: Sort sublists.  Add
76522         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76523         that differ from gnulib for one reason or another; we'd like this list
76524         to be smaller but for now let's document what we have.
76525
76526 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76527
76528         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76529         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76530         and sweeter "eval x=$x".
76531         * config/srclist.txt: Get lib/argp* from glibc.
76532
76533 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76534
76535         * lib/mktime.c: Fix some boundary cases and remove need for floating
76536         point.
76537
76538         Issue a compile-time diagnostic if time_t is floating point, or if
76539         two's complement arithmetic is not in effect, or if arithmetic
76540         right shift does not propagate the sign.  These assumptions were
76541         all in the original code but they weren't checked.
76542
76543         (TIME_T_MIDPOINT, verify): New macros.
76544         (__isleap): Remove; it has integer overflow problems.
76545         (leapyear): New function, without those problems.
76546         (ydhms_tm_diff): Remove; splitting into two parts.
76547         (ydhms_diff): New function, containing the arithmetic part of
76548         the old ydhms_tm_diff function.  Issue a compile-time
76549         diagnostic if we are not using C99 integer division.
76550         Avoid casts when possible.
76551         (guess_time_tm): New function, containing the checking part of
76552         the old ydhms_tm_diff function.  Return the new value, rather than
76553         the difference between it and the old.  Accept a new argument T
76554         so that *T specifies the old value.  Check for overflow in the result.
76555
76556         (__mktime_internal): Use a time_t offset, not a long int offset.
76557         This undoes the 2003-06-04 change, which is no longer needed now
76558         that we have better overflow checking.
76559         (localtime_offset): Likewise.
76560
76561         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76562         and long are 64-bit but int is only 32-bit.
76563         (ydhms_diff): Use long int to store year1 and yday1.
76564         Issue a compile-time diagnostic if long int is not wide enough.
76565
76566         (__mktime_internal): Use long int to store adjusted year and yday.
76567         Use plain C rather than preprocessor commands, if that doesn't
76568         affect efficiency.
76569         Check for overflow (and try to repair) after each probe
76570         rather than checking only at the very end.  This avoids some bugs
76571         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76572         does not equal GMT offset at maximum time).
76573         Use integer to check for overflow rather than floating point; this
76574         is more portable to non-IEEE hosts, and is a tad faster.
76575         When we detect that we are oscillating between two values,
76576         don't check whether tm_isdst has the requested value, since
76577         we already know the answer.  When tm_isdst has the wrong value,
76578         use a different heuristic to find the right one, based on the
76579         extreme values actually observed in practice in tz2003a,
76580         rather than the (overly optimistic) "previous 3 calendar quarters".
76581
76582         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76583         "T const" to accommodate glibc style.
76584         (check_result): Use less-confusing report format.  "long" -> "long int.
76585         (main): Likewise.
76586         Don't loop if the iteration overflows time_t.
76587         Allow a negative step in the iteration.
76588
76589 2003-07-06  Karl Berry  <karl@gnu.org>
76590
76591         * config/depcomp: update from automake.
76592         * config/config.sub: update from prep.
76593
76594 2003-07-03  Karl Berry  <karl@gnu.org>
76595
76596         * config/config.guess: update from prep.
76597
76598 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76599
76600         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76601         xreadlink.c now includes it unconditionally.
76602
76603 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76604
76605         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76606         having it depend on HAVE_SYS_TYPES_H.
76607
76608 2003-07-01  Bruno Haible  <bruno@clisp.org>
76609
76610         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76611         <sys/types.h> should be sufficient.
76612         Reported by Paul Eggert.
76613
76614 2003-06-26  Karl Berry  <karl@gnu.org>
76615
76616         * config/depcomp: update from automake.
76617
76618 2003-06-26  Bruno Haible  <bruno@clisp.org>
76619
76620         * modules/human: Depend on module stdbool.
76621
76622 2003-06-25  Bruno Haible  <bruno@clisp.org>
76623
76624         * modules/readlink: New file.
76625         * modules/xreadlink: Depend on it.
76626         * MODULES.html.sh (func_all_modules): Add readlink.
76627
76628 2003-06-25  Bruno Haible  <bruno@clisp.org>
76629
76630         * m4/readlink.m4: New file.
76631
76632 2003-06-25  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/readlink.c: New file.
76635
76636 2003-06-22  Karl Berry  <karl@gnu.org>
76637
76638         * config/srclist.txt: update mkinstalldirs from automake.
76639         * config/mkinstalldirs: update.
76640
76641 2003-06-22  Bruno Haible  <bruno@clisp.org>
76642
76643         Portability to mingw32.
76644         * m4/ssize_t.m4: New file, from GNU gettext.
76645         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76646         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76647
76648 2003-06-22  Bruno Haible  <bruno@clisp.org>
76649
76650         * modules/safe-read: Add m4/ssize_t.m4.
76651         * modules/xreadlink: Add m4/ssize_t.m4.
76652
76653 2003-06-20  Bruno Haible  <bruno@clisp.org>
76654
76655         Assume C89, so PARAMS isn't needed.
76656         * lib/unicodeio.h (PARAMS): Remove.
76657         * lib/unicodeio.c: Don't use PARAMS.
76658
76659 2003-06-18  Karl Berry  <karl@gnu.org>
76660
76661         * config/config.{guess,sub}: update from prep.
76662
76663 2003-06-18  Jim Meyering  <jim@meyering.net>
76664
76665         Merge changes from coreutils.
76666         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76667         Remove explicit declarations of xmalloc and realloc.
76668         Include xalloc.h.
76669         (read_utmp): Remove anachronistic cast of xmalloc.
76670
76671 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76672
76673         Assume C89, so PARAMS isn't needed.
76674         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76675         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76676         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76677         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76678         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76679         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76680         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76681         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76682         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76683         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76684         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76685         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76686         no longer needed. Anyway, config.h should always be included before any
76687         other file.
76688
76689 2003-06-11  Simon Josefsson  <jas@extundo.com>
76690
76691         * modules/sysexits: New file.
76692         * MODULES.html.sh (func_all_modules): Add sysexits.
76693
76694 2003-06-11  Simon Josefsson  <jas@extundo.com>
76695
76696         * lib/sysexit_.h: New file.
76697
76698 2003-06-11  Derek Price  <derek@ximbiot.com>
76699
76700         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76701         necessary.
76702
76703 2003-06-11  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/sysexits.m4: New file.
76706
76707 2003-06-10  Simon Josefsson  <jas@extundo.com>
76708
76709         * lib/argp.h: New file, from glibc.
76710         * lib/argp-ba.c: New file, from glibc.
76711         * lib/argp-eexst.c: New file, from glibc.
76712         * lib/argp-fmtstream.c: New file, from glibc.
76713         * lib/argp-fmtstream.h: New file, from glibc.
76714         * lib/argp-fs-xinl.c: New file, from glibc.
76715         * lib/argp-help.c: New file, from glibc.
76716         * lib/argp-namefrob.h: New file, from glibc.
76717         * lib/argp-parse.c: New file, from glibc.
76718         * lib/argp-pv.c: New file, from glibc.
76719         * lib/argp-pvh.c: New file, from glibc.
76720         * lib/argp-xinl.c: New file, from glibc.
76721
76722 2003-06-10  Simon Josefsson  <jas@extundo.com>
76723
76724         * modules/strchrnul: New file.
76725
76726 2003-06-10  Simon Josefsson  <jas@extundo.com>
76727
76728         * modules/argp: New file.
76729
76730 2003-06-10  Simon Josefsson  <jas@extundo.com>
76731
76732         * m4/strchrnul.m4: New file.
76733
76734 2003-06-10  Simon Josefsson  <jas@extundo.com>
76735
76736         * lib/strchrnul.h: New file.
76737         * lib/strchrnul.c: New file.
76738
76739 2003-06-10  Bruno Haible  <bruno@clisp.org>
76740
76741         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76742
76743 2003-06-07  Karl Berry  <karl@gnu.org>
76744
76745         * config/config.{guess,sub}: update from prep.
76746
76747 2003-06-07  Jim Meyering  <jim@meyering.net>
76748
76749         * modules/strtod: Use $(...) notation, not @...@ for
76750         AC_REPLACE'd variables.
76751         * modules/localcharset: Likewise.
76752
76753 2003-06-07  Jim Meyering  <jim@meyering.net>
76754
76755         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76756         in place of my name in the copyright comment.
76757         Remove definition and uses of __P.
76758
76759         From coreutils.
76760         * lib/stat.c: Don't declare xmalloc explicitly.
76761         Instead, include "xalloc.h".
76762         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76763         xrealloc, and xcalloc return values.
76764         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76765         Improve comment.
76766         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76767
76768 2003-06-07  Bruno Haible  <bruno@clisp.org>
76769
76770         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76771         avoid AC_CONFIG_LINKS.
76772         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76773         fnmatch.h, to avoid AC_CONFIG_LINKS.
76774         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76775
76776 2003-06-07  Bruno Haible  <bruno@clisp.org>
76777
76778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76779         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76780         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76781         directory.
76782         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76783         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76784         directory.
76785
76786 2003-06-06  Jim Meyering  <jim@meyering.net>
76787
76788         Merge from coreutils.
76789         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76790         Consolidate declarations and initializations of *_base* locals.
76791
76792         Merge from coreutils.
76793         This avoids a core dump on systems without GNU putenv,
76794         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76795         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76796         (unsetenv): New static function, from GNU libc.
76797         (rpl_putenv): Use it.
76798
76799         * lib/modechange.c: Remove trailing blanks.
76800
76801         Merge from coreutils.
76802         * lib/fsusage.c: Remove declaration of statfs.
76803         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76804
76805         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76806
76807 2003-06-06  Jim Meyering  <jim@meyering.net>
76808
76809         * lib/stdbool_.h: Renamed from stdbool.h.in.
76810
76811 2003-06-06  Jim Meyering  <jim@meyering.net>
76812             Bruno Haible  <bruno@clisp.org>
76813
76814         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76815         Adjust Makefile.am snippet not to redirect directly to target.
76816         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76817
76818 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76819
76820         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76821         mismatch, look in future quarters as well as past.  This fixes a
76822         bug when processing fall-backwards gaps immediately after a long
76823         period of daylight-saving time.
76824
76825         * lib/mktime.c: Assume freestanding C89 or better.
76826         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76827         (__P): Remove; not used.
76828         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76829         (mktime, not_equal_tm, print_tm, check_result,
76830         main): Use prototypes.  Use const * where appropriate.
76831         (main): Fix typo in testing code that uncovered by above changes.
76832         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76833
76834 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76835
76836         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76837         locale.h, localeconv.  This merges changes from coreutils.
76838
76839         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76840         It can be removed after the next Autoconf is released.
76841         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76842         needed.
76843
76844 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76845
76846         * lib/mktime.c: Fix Debian bug 177940
76847         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76848         (localtime_offset): Now long int, not time_t, because we want it
76849         to be guaranteed to be signed.  All uses changed.
76850         (__mktime_internal): If overflow would occur when adding offset,
76851         don't add it.
76852
76853         Merge 'human' changes from coreutils.  Rewrite to support
76854         locale-specific notations like thousands separators.
76855         * lib/human.c: Simplify authorship notice.
76856         Include human.h immediately after config.h.
76857         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76858         <limits.h>: Do not include, since human.h does.
76859         (SIZE_MAX, UINTMAX_MAX): New macros.
76860         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76861         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76862         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76863         (power_letter): Renamed from suffixes.
76864         (generate_suffix_backwards): Remove.
76865         (adjust_value): Now takes int style (because of human.h changes)
76866         and long double value (for greater precision on some platforms).
76867         (group_number): New function.
76868         (human_readable): Use it.  Use integer options, not enum.
76869         Put the options before the sizes in the arg list.
76870         Support all the new options.
76871         The old human_readable function has been removed;
76872         use inttostr.h instead.
76873         (human_readable, default_block_size, humblock):
76874         Use uintmax_t, not int, for block sizes.
76875         (human_readable_inexact, block_size_types): Remove.
76876         (block_size_opts): New constant.
76877         (human_options): Renamed from human_block_size, with new signature
76878         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76879         * lib/human.h: Add copyright and authorship notice.
76880         Include <limits.h> and <stdbool.h> unconditionally.
76881         (PARAMS): Remove.  All uses removed.
76882         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76883         (enum human_inexact_style): Remove tag; now a nameless enum.
76884         (human_floor, human_ceiling, human_round_to_even): Now have
76885         values 2, 0, 1 rather than -1, 1, 0.
76886         (human_group_digits, human_suppress_point_zero, human_autoscale,
76887         human_base_1024, human_SI, human_B): New constants.
76888         (human_readable_inexact, human_block_size): Remove.
76889         (human_readable): Size args are now uintmax_t, not int.
76890         (human_options): New decl.
76891
76892         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76893         unnecessary now that we assume C89 or better.  This change
76894         imported from coreutils.
76895
76896         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76897         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76898         in the 2003-05-30 sync from glibc.
76899
76900         .h files should stand alone, but we shouldn't include <sys/types.h>
76901         if we can get away with just <stddef.h>.
76902
76903         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76904         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76905         rather than <sys/types.h>, as we merely need size_t.
76906         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76907         to get size_t.
76908         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76909         Include <stdio.h>, to get FILE.
76910         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76911         memcasecmp.h has included <stddef.h> and all we need is size_t.
76912         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76913         our interface, instead of including <sys/types.h>
76914
76915 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76916
76917         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76918         now, as glibc mktime is buggy on non-glibc systems.
76919
76920 2003-06-03  Karl Berry  <karl@gnu.org>
76921
76922         * config/config.sub: update from prep.
76923
76924 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76925
76926         [from coreutils]
76927         Fix some minor time-related bugs with POSIX time arguments.
76928         Some valid time stamps were being rejected (notably -1, and
76929         time stamps before 1900 on 64-bit hosts).  And some invalid
76930         time stamps were being accepted, e.g. September 31.
76931
76932         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76933         that we can return (time_t) -1 successfully.
76934         * lib/posixtm.c: Likewise.
76935         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76936         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76937         (t): Remove static var.
76938         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76939         of static var.  All uses changed.
76940         (year): Do not reject years before 1900; they can occur with
76941         64-bit time_t.
76942         (posix_time_parse): Do not check for out-of-range components;
76943         that is now the caller's responsibility, since our checks were
76944         only approximations.
76945         (posixtime): Use mktime to check for out-of-range components,
76946         since it knows them exactly.
76947         If mktime returns (time_t) -1, check whether an error actually occurred
76948         by invoking localtime on -1.
76949         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76950         posixtime failures better.
76951         Improve the test data (in comments only).
76952
76953 2003-06-02  Karl Berry  <karl@gnu.org>
76954
76955         * config/mkinstalldirs (version): new variable.
76956         (--version): new option.
76957         (usage): improve message.
76958
76959 2003-05-30  Karl Berry  <karl@gnu.org>
76960
76961         * lib/mktime.c: update from libc.
76962
76963 2003-05-30  Bruno Haible  <bruno@clisp.org>
76964
76965         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76966         * config/config.rpath: Upgrade to gettext-0.12.1.
76967
76968 2003-05-30  Bruno Haible  <bruno@clisp.org>
76969
76970         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76971         * m4/nls.m4: New file, from gettext-0.12.1.
76972         * m4/po.m4: New file, from gettext-0.12.1.
76973         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76974
76975 2003-05-30  Bruno Haible  <bruno@clisp.org>
76976
76977         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76978         * lib/localcharset.h: Likewise.
76979         * lib/localcharset.c: Likewise.
76980
76981 2003-05-29  Karl Berry  <karl@gnu.org>
76982
76983         * config/config.rpath: update from gettext.
76984
76985 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76986
76987         Assume the headers required for C89 freestanding compilers.
76988         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76989         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76990         * m4/human.m4 (gl_HUMAN): Likewise.
76991         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76992         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76993         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76994         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76995         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76996         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76997
76998 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76999
77000         Assume the headers required for C89 freestanding compilers.
77001         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77002         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77003         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77004         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77005         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77006         define, since <limits.h> is guaranteed to do that.
77007         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77008         * lib/exclude.c: Include <stdbool.h> unconditionally.
77009         * lib/tempname.c: Include <stddef.h> unconditionally.
77010         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77011         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77012         <stddef.h> does that.
77013         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77014         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77015         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77016         needed.
77017         * lib/xstrtol.c: Likewise.
77018         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77019         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77020
77021         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77022         warnings on some platforms.
77023
77024         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77025         arbitrarily.
77026
77027 2003-05-26  Jim Meyering  <jim@meyering.net>
77028
77029         Merge in a change from coreutils:
77030         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77031         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77032         that condition, rather than `-1' which is slightly misleading.
77033         Change the name of the cache variable to have the gl_ prefix.
77034         Prompted by a patch from Richard Dawe for DJGPP.
77035
77036 2003-05-24  Karl Berry  <karl@gnu.org>
77037
77038         * config/config.guess: update from prep.
77039
77040 2003-05-22  Karl Berry  <karl@gnu.org>
77041
77042         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77043
77044 2003-05-20  Karl Berry  <karl@gnu.org>
77045
77046         * config/config.guess: update from prep.
77047
77048 2003-05-18  Karl Berry  <karl@gnu.org>
77049
77050         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77051         might actually be set by the user.
77052
77053         * config/depcomp, install-sh, mdate-sh: update from automake.
77054
77055 2003-05-17  Bruno Haible  <bruno@clisp.org>
77056
77057         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77058         invalid expansion for AC_EGREP_CPP.
77059         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77060         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77061         Suggested by Akim Demaille <akim@epita.fr> in
77062         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77063
77064 2003-05-12  Jim Meyering  <jim@meyering.net>
77065
77066         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77067         the space-padded-by-default conversion specifiers, %e, %k, %l.
77068
77069 2003-05-12  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77072         the string is longer than 4 KB.
77073
77074 2003-05-11  Karl Berry  <karl@gnu.org>
77075
77076         * config/config.{guess,sub}: update from prep.
77077
77078 2003-05-09  Bruno Haible  <bruno@clisp.org>
77079
77080         * modules/error: Add m4/strerror_r.m4 to file list.
77081
77082 2003-05-03  Bruno Haible  <bruno@clisp.org>
77083
77084         Upgrade to Unicode-4.0.
77085         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77086         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77087         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77088         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77089         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77090         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77091         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77092         Change width of U+E0100..U+E01EF from 1 to 0.
77093
77094 2003-04-25  Jim Meyering  <jim@meyering.net>
77095
77096         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77097         of type size_t, not int.
77098
77099 2003-04-25  Bruno Haible  <bruno@clisp.org>
77100
77101         * lib/copy-file.c: Include <stddef.h>, for size_t.
77102
77103 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77104
77105         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77106         code which expansion is under static control.  Patch imported from
77107         Akim Demaille's patch to Bison; see
77108         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77109
77110 2003-04-14  Bruno Haible  <bruno@clisp.org>
77111
77112         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77113
77114 2003-04-11  Jim Meyering  <jim@meyering.net>
77115
77116         Merge changes from Coreutils.
77117
77118         2003-03-22  Jim Meyering  <jim@meyering.net>
77119
77120         * lib/strftime.c (widen): Cast alloca return value to proper type.
77121
77122         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77123
77124         From GNU libc.
77125         * lib/strftime.c (my_strftime): Handle very large width
77126         specifications for numeric values correctly.  Improve checks for
77127         overflow.
77128
77129         2003-01-19  Jim Meyering  <jim@meyering.net>
77130
77131         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77132         definitions.
77133         (nl_get_alt_digit) [! defined my_strftime]: Define.
77134         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77135         _nl_get_alt_digit and _nl_get_walt_digit.
77136
77137         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77138         libc. These changes have no effect outside of _LIBC.
77139
77140 2003-04-10  Bruno Haible  <bruno@clisp.org>
77141
77142         * modules/findprog: New file.
77143         * MODULES.html.sh (func_all_modules): Add it.
77144
77145 2003-04-10  Bruno Haible  <bruno@clisp.org>
77146
77147         * m4/findprog.m4: New file.
77148         * m4/eaccess.m4: New file.
77149
77150 2003-04-10  Bruno Haible  <bruno@clisp.org>
77151
77152         * lib/findprog.h: New file, from GNU gettext.
77153         * lib/findprog.c: New file, from GNU gettext.
77154
77155 2003-04-05  Jim Meyering  <jim@meyering.net>
77156
77157         Merge changes from Coreutils.
77158
77159         * lib/exclude.h (PARAMS): Remove definition and uses.
77160         * lib/exclude.c: Remove uses of `PARAMS'.
77161
77162         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77163         Add test-cases for DOS filenames. Declare program_name.
77164         (main): Set up program_name.  Patch by Rich Dawe.
77165
77166         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77167         error from mntctl.
77168         Use mntctl's return value to drive the entry-processing loop, since
77169         we can't rely on the value of the vmt_length member in the last
77170         entry.  On some systems doing so could result in exhausting
77171         virtual memory.  Based in part on a patch from Mike Jetzer.
77172
77173 2003-04-04  Bruno Haible  <bruno@clisp.org>
77174
77175         * modules/linebreak: New file.
77176         * MODULES.html.sh (func_all_modules): Add it.
77177
77178 2003-04-04  Bruno Haible  <bruno@clisp.org>
77179
77180         * m4/linebreak.m4: New file.
77181
77182 2003-04-04  Bruno Haible  <bruno@clisp.org>
77183
77184         * lib/linebreak.h: New file, from GNU gettext.
77185         * lib/linebreak.c: New file, from GNU gettext with slight
77186         modifications.
77187         * lib/lbrkprop.h: New file, from GNU gettext.
77188
77189 2003-04-03  Bruno Haible  <bruno@clisp.org>
77190
77191         * modules/utf8-ucs4: New file.
77192         * modules/utf16-ucs4: New file.
77193         * modules/ucs4-utf8: New file.
77194         * modules/ucs4-utf16: New file.
77195         * MODULES.html.sh (func_all_modules): Add them.
77196
77197 2003-04-03  Bruno Haible  <bruno@clisp.org>
77198
77199         * m4/utf-ucs4.m4: New file.
77200         * m4/ucs4-utf.m4: New file.
77201
77202 2003-04-03  Bruno Haible  <bruno@clisp.org>
77203
77204         * lib/utf8-ucs4.h: New file, from GNU gettext.
77205         * lib/utf16-ucs4.h: New file, from GNU gettext.
77206         * lib/ucs4-utf8.h: New file, from GNU gettext.
77207         * lib/ucs4-utf16.h: New file, from GNU gettext.
77208
77209 2003-04-02  Bruno Haible  <bruno@clisp.org>
77210
77211         * modules/binary-io: New file.
77212         * MODULES.html.sh (func_all_modules): Add it.
77213
77214 2003-04-02  Bruno Haible  <bruno@clisp.org>
77215
77216         * lib/binary-io.h: New file, from GNU gettext.
77217
77218 2003-04-01  Bruno Haible  <bruno@clisp.org>
77219
77220         * modules/pathname: New file.
77221         * MODULES.html.sh (func_all_modules): Add it.
77222
77223 2003-04-01  Bruno Haible  <bruno@clisp.org>
77224
77225         * lib/pathname.h: New file, from GNU gettext.
77226         * lib/concatpath.c: New file, from GNU gettext.
77227
77228 2003-03-30  Bruno Haible  <bruno@clisp.org>
77229
77230         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77231
77232 2003-03-30  Bruno Haible  <bruno@clisp.org>
77233
77234         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77235         function chown() doesn't exist.
77236
77237 2003-03-28  Bruno Haible  <bruno@clisp.org>
77238
77239         * modules/copy-file: New file.
77240         * MODULES.html.sh (func_all_modules): Add it.
77241
77242 2003-03-28  Bruno Haible  <bruno@clisp.org>
77243
77244         * m4/copy-file.m4: New file.
77245
77246 2003-03-28  Bruno Haible  <bruno@clisp.org>
77247
77248         * lib/copy-file.h: New file, from GNU gettext.
77249         * lib/copy-file.c: New file, from GNU gettext.
77250
77251 2003-03-18  Jim Meyering  <jim@meyering.net>
77252
77253         * lib/quote.c (quote_n): Fix typo in comment.
77254
77255 2003-03-18  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77258         checking.
77259         * m4/onceonly_2_57.m4: Likewise.
77260
77261 2003-03-17  Bruno Haible  <bruno@clisp.org>
77262
77263         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77264         (m4_quote): Remove macro.
77265         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77266
77267 2003-03-14  Jim Meyering  <jim@meyering.net>
77268
77269         Merge changes from Coreutils.
77270         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77271         to be const, in order to avoid warnings.
77272         (obstack_room): Likewise.
77273         (obstack_empty_p): Likewise.
77274
77275 2003-03-14  Bruno Haible  <bruno@clisp.org>
77276
77277         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77278         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77279
77280 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77281
77282         Merge changes from Bison.
77283         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77284         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77285         when compiling Bison 1.875's `bitset bset = obstack_alloc
77286         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77287         * lib/hash.c: Include <stdbool.h> unconditionally.
77288
77289 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77290
77291         * m4/onceonly.m4 (m4_quote): New macro.
77292         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77293         Quote AC_FOREACH variable-expansions properly.
77294
77295 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77296
77297         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77298
77299 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77300
77301         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77302         Reported by Bruce Becker; see:
77303         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77304
77305 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77306             Bruno Haible  <bruno@clisp.org>
77307
77308         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77309         Reported by John Hughes, see
77310         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77311
77312 2003-02-20  Bruno Haible  <bruno@clisp.org>
77313
77314         * MODULES.html.sh (func_all_modules): Add poll.
77315
77316 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77317
77318         * modules/poll: New file.
77319
77320 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77321
77322         * lib/poll_.h: New file.
77323         * lib/poll.c: New file.
77324
77325 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77326
77327         * m4/poll.m4: New file.
77328
77329 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77330
77331         * modules/mathl: New file.
77332
77333 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77334
77335         * lib/mathl.h: New file.
77336         * lib/acosl.c: New file.
77337         * lib/asinl.c: New file.
77338         * lib/atanl.c: New file.
77339         * lib/ceill.c: New file.
77340         * lib/cosl.c: New file.
77341         * lib/expl.c: New file.
77342         * lib/floorl.c: New file.
77343         * lib/frexpl.c: New file.
77344         * lib/ldexpl.c: New file.
77345         * lib/logl.c: New file.
77346         * lib/sincosl.c: New file.
77347         * lib/sinl.c: New file.
77348         * lib/sqrtl.c: New file.
77349         * lib/tanl.c: New file.
77350         * lib/trigl.c: New file.
77351         * lib/trigl.h: New file.
77352
77353 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77354
77355         * m4/mathl.m4: New file.
77356
77357 2003-02-18  Bruno Haible  <bruno@clisp.org>
77358
77359         * MODULES.html.sh (func_all_modules): Add mathl.
77360
77361 2003-02-17  Bruno Haible  <bruno@clisp.org>
77362
77363         * modules/mkdtemp: New module.
77364         * MODULES.html.sh (func_all_modules): Add it.
77365
77366 2003-02-17  Bruno Haible  <bruno@clisp.org>
77367
77368         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77369
77370 2003-02-17  Bruno Haible  <bruno@clisp.org>
77371
77372         * lib/mkdtemp.h: New file, from GNU gettext.
77373         * lib/mkdtemp.c: New file, from GNU gettext.
77374
77375 2003-02-02  Jim Meyering  <jim@meyering.net>
77376
77377         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77378         e.g. glibc-2.2.93.
77379
77380 2003-01-31  Bruno Haible  <bruno@clisp.org>
77381
77382         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77383         'rpl_rename'.
77384         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77385         'rpl_strnlen'.
77386         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77387         'rpl_strtod'.
77388         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77389         'rpl_utime'.
77390
77391 2003-01-31  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/rename.c: #undef rename before defining rpl_rename.
77394         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77395
77396 2003-01-30  Bruno Haible  <bruno@clisp.org>
77397
77398         * modules/vasnprintf, modules/vasprintf: New modules.
77399         * MODULES.html.sh (func_all_modules): Add them.
77400
77401 2003-01-30  Bruno Haible  <bruno@clisp.org>
77402
77403         * m4/signed.m4: New file, from GNU gettext.
77404         * m4/longdouble.m4: New file, from GNU gettext.
77405         * m4/wchar_t.m4: New file, from GNU gettext.
77406         * m4/wint_t.m4: New file, from GNU gettext.
77407         * m4/vasnprintf.m4: New file.
77408         * m4/vasprintf.m4: New file.
77409
77410 2003-01-30  Bruno Haible  <bruno@clisp.org>
77411
77412         * lib/printf-args.h: New file, from GNU gettext.
77413         * lib/printf-args.c: New file, from GNU gettext.
77414         * lib/printf-parse.h: New file, from GNU gettext.
77415         * lib/printf-parse.c: New file, from GNU gettext.
77416         * lib/vasnprintf.h: New file, from GNU gettext.
77417         * lib/vasnprintf.c: New file, from GNU gettext.
77418         * lib/asnprintf.c: New file, from GNU gettext.
77419         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77420         * lib/vasprintf.c: New file, from GNU gettext.
77421         * lib/asprintf.c: New file, from GNU gettext.
77422
77423 2003-01-29  Bruno Haible  <bruno@clisp.org>
77424
77425         * modules/stpncpy: New module.
77426         * MODULES.html.sh (func_all_modules): Add it.
77427
77428 2003-01-29  Bruno Haible  <bruno@clisp.org>
77429
77430         * m4/stpncpy.m4: New file.
77431
77432 2003-01-29  Bruno Haible  <bruno@clisp.org>
77433
77434         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77435         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77436
77437 2003-01-28  Bruno Haible  <bruno@clisp.org>
77438
77439         * modules/c-ctype: New module.
77440         * MODULES.html.sh (func_all_modules): Add it.
77441
77442 2003-01-28  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77445         Paul Eggert.
77446         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77447         Paul Eggert.
77448
77449 2003-01-27  Bruno Haible  <bruno@clisp.org>
77450
77451         * modules/xsetenv: New module.
77452         * MODULES.html.sh (func_all_modules): Add it.
77453
77454 2003-01-27  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/xsetenv.h: New file, from GNU gettext.
77457         * lib/xsetenv.c: New file, from GNU gettext.
77458
77459 2003-01-23  Jim Meyering  <jim@meyering.net>
77460
77461         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77462         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77463
77464 2003-01-23  Bruno Haible  <bruno@clisp.org>
77465
77466         * modules/minmax: New module.
77467         * MODULES.html.sh (func_all_modules): Add it.
77468
77469 2003-01-23  Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77472         Eggert.
77473
77474 2003-01-22  Bruno Haible  <bruno@clisp.org>
77475
77476         * modules/exit: New module.
77477         * MODULES.html.sh (func_all_modules): Add it.
77478
77479 2003-01-22  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/exit.h: New file, from GNU gettext.
77482
77483 2003-01-19  Bruno Haible  <bruno@clisp.org>
77484
77485         * gnulib-tool: Recognize option --extract-maintainer.
77486         (func_get_maintainer): New function.
77487         * modules/*: Add Maintainer entry.
77488
77489 2003-01-16  Jim Meyering  <jim@meyering.net>
77490
77491         * m4/regex.m4: The `regex' struct is both input and output.
77492         Initialize it before each use.  Patch by Tim Waugh.
77493
77494 2003-01-16  Bruno Haible  <bruno@clisp.org>
77495
77496         * MODULES.html.sh: Add a table of contents. Add the module name as
77497         leftmost column. Add hyperlinks.
77498
77499 2003-01-15  Bruno Haible  <bruno@clisp.org>
77500
77501         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77502
77503 2003-01-15  Bruno Haible  <bruno@clisp.org>
77504
77505         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77506         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77507         suffix.
77508
77509 2003-01-15  Bruno Haible  <bruno@clisp.org>
77510
77511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77512
77513 2003-01-15  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77516         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77517
77518 2003-01-14  Jim Meyering  <jim@meyering.net>
77519
77520         * lib/same.c (same_name): Tweak a comment.
77521
77522 2003-01-14  Bruno Haible  <bruno@clisp.org>
77523
77524         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77525         when a string comparison is sufficient.
77526
77527 2003-01-14  Bruno Haible  <bruno@clisp.org>
77528
77529         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77530         'unsigned int'.
77531
77532 2003-01-14  Bruno Haible  <bruno@clisp.org>
77533
77534         * lib/hash-pjw.c: Add comment about low quality of this function.
77535
77536 2003-01-13  Bruno Haible  <bruno@clisp.org>
77537
77538         * modules/stpcpy: Distribute lib/stpcpy.h.
77539         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77540
77541 2003-01-13  Bruno Haible  <bruno@clisp.org>
77542
77543         * modules/*: Add a description.
77544         * modules/strpbrk: Fix Makefile.am snippet.
77545         * modules/strtoimax: Fix dependencies.
77546         * modules/strtoumax: Likewise.
77547
77548 2003-01-13  Bruno Haible  <bruno@clisp.org>
77549
77550         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77551         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77552         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77553
77554 2003-01-13  Bruno Haible  <bruno@clisp.org>
77555
77556         * gnulib-tool (func_create_testdir): Store config/* files in the main
77557         directory.
77558         * config.rpath: Move to ...
77559         * config/config.rpath: ... here.
77560         * modules/gettext: Contains config/config.rpath, not config.rpath.
77561         * modules/iconv: Likewise.
77562
77563 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77564
77565         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77566         to avoid collisions with libcurses and libreadline.
77567
77568         * m4/getstr.m4: Remove.
77569         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77570
77571 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77572
77573         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77574         to avoid collisions with libcurses and libreadline.
77575
77576         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77577         * lib/getstr.h, getstr.c: Remove.
77578         * lib/getline.c: Include "getline.h", to check interface.
77579         Move body of old getstr.c here: this defines MIN_CHUNK and
77580         declares getdelim2, which is renamed from getstr.
77581         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77582
77583         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77584         All uses changed.
77585         * lib/linebuffer.h: Likewise.
77586         (readline): Remove backward-compatibility macro.
77587
77588 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77589
77590         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77591         to avoid collisions with libcurses and libreadline.
77592         * getstr: Remove.
77593         * MODULES.html.sh: Remove getstr.
77594         * modules/getline: Depend on unlocked-io, not getstr.
77595
77596 2003-01-12  Jim Meyering  <jim@meyering.net>
77597
77598         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77599
77600 2003-01-10  Bruno Haible  <bruno@clisp.org>
77601
77602         * modules/alloca: Change Makefile.am requirements. Simplify Include
77603         requirements. Add lib/alloca_.h to file list.
77604
77605 2003-01-10  Bruno Haible  <bruno@clisp.org>
77606
77607         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77608
77609 2003-01-10  Bruno Haible  <bruno@clisp.org>
77610
77611         * lib/alloca_.h: New file.
77612         * lib/getdate.y: Unconditionally include alloca.h.
77613         * lib/makepath.c: Likewise.
77614         * lib/setenv.c: Likewise.
77615         * lib/userspec.c: Likewise.
77616
77617 2003-01-09  Karl Berry  <karl@gnu.org>
77618
77619         * MODULES.html.sh: include `dirname $0` in PATH, to find
77620         gnulib-tool.
77621
77622 2003-01-09  Bruno Haible  <bruno@clisp.org>
77623
77624         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77625         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77626
77627 2003-01-09  Bruno Haible  <bruno@clisp.org>
77628
77629         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77630
77631 2003-01-09  Bruno Haible  <bruno@clisp.org>
77632
77633         * lib/stdbool.h.in: New file.
77634
77635 2003-01-09  Bruno Haible  <bruno@clisp.org>
77636
77637         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77638         * MODULES.html.sh: Likewise.
77639
77640 2003-01-08  Jim Meyering  <jim@meyering.net>
77641
77642         * lib/full-write.c: Undefine and define-away `const' after inclusion
77643         of errno.h, not before.  Suggestion from Bruno Haible.
77644
77645 2003-01-08  Bruno Haible  <bruno@clisp.org>
77646
77647         * modules/full-read: Depend on full-write.
77648
77649 2003-01-08  Bruno Haible  <bruno@clisp.org>
77650
77651         * lib/safe-read.c: Include specification header first, to ensure its
77652         selfcontainedness.
77653         * lib/full-write.c: Likewise.
77654
77655 2003-01-07  Jim Meyering  <jim@meyering.net>
77656
77657         * lib/full-write.c: Rework so that it may serve to define full_read,
77658         too.
77659         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77660
77661 2003-01-07  Bruno Haible  <bruno@clisp.org>
77662
77663         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77664         <inttypes.h>.
77665         * lib/xstrtol.h: Likewise.
77666         * lib/xstrtoimax.c: Likewise.
77667         * lib/xstrtoumax.c: Likewise.
77668         * lib/human.h: Likewise.
77669
77670         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77671         on systems that have <inttypes.h> but not <stdint.h>.
77672
77673 2003-01-07  Bruno Haible  <bruno@clisp.org>
77674
77675         * MODULES.html.sh: Add copyright notice.
77676         (missed_files): Omit CVS directory entries.
77677         (func_module): Make it work with sed-3.02.
77678         * MODULES.txt: Remove file.
77679
77680 2003-01-06  Jim Meyering  <jim@meyering.net>
77681
77682         * lib/version-etc.c: Update year in translatable copyright string.
77683
77684 2003-01-03  Karl Berry  <karl@gnu.org>
77685
77686         * config/config.{guess,sub}: update from prep.
77687
77688 2003-01-02  Karl Berry  <karl@gnu.org>
77689
77690         * doc/COPYING.DOC: belatedly updated to 1.2.
77691
77692 2003-01-01  Karl Berry  <karl@gnu.org>
77693
77694         * gnulib-tool (func_verify_module): report module name $module in
77695         error message, not $1.
77696         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77697         be created, only if it doesn't exist.
77698         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77699
77700 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77701
77702         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77703
77704 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77705
77706         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77707         memcmp if strcoll doesn't work.
77708
77709 2002-12-31  Bruno Haible  <bruno@clisp.org>
77710
77711         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77712         nonempty.
77713
77714 2002-12-31  Bruno Haible  <bruno@clisp.org>
77715
77716         * lib/memcoll.c (STRCOLL): New macro.
77717         (memcoll): Use it.
77718
77719 2002-12-31  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/localcharset.h: New file.
77722         * lib/localcharset.c: Include it.
77723         * lib/unicodeio.c: Likewise.
77724
77725 2002-12-31  Bruno Haible  <bruno@clisp.org>
77726
77727         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77728         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77729
77730 2002-12-31  Bruno Haible  <bruno@clisp.org>
77731
77732         * lib/getline.h: Include <stddef.h>, for size_t.
77733
77734         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77735         * lib/unicodeio.c: Don't include <stddef.h>.
77736
77737 2002-12-31  Bruno Haible  <bruno@clisp.org>
77738
77739         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77740         HAVE_TM_ZONE.
77741
77742 2002-12-24  Karl Berry  <karl@gnu.org>
77743
77744         * config/config.guess: update from prep.
77745
77746 2002-12-24  Bruno Haible  <bruno@clisp.org>
77747
77748         General infrasructure.
77749         * m4/README: Rewritten.
77750         * m4/onceonly.m4: New file.
77751         * m4/onceonly_2_57.m4: New file.
77752
77753         Module atexit.
77754         * m4/atexit.m4: New file.
77755
77756         Module strtod.
77757         * m4/strtod.m4: New file.
77758
77759         Module strtol.
77760         * m4/strtol.m4: New file.
77761
77762         Module strtoul.
77763         * m4/strtoul.m4: New file.
77764
77765         Module memchr.
77766         * m4/memchr.m4: New file.
77767
77768         Module memcmp.
77769         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77770         (jm_FUNC_MEMCMP): Invoke it.
77771
77772         Module memcpy.
77773         * m4/memcpy.m4: New file.
77774
77775         Module memmove.
77776         * m4/memmove.m4: New file.
77777
77778         Module memset.
77779         * m4/memset.m4: New file.
77780
77781         Module strcspn.
77782         * m4/strcspn.m4: New file.
77783
77784         Module strpbrk.
77785         * m4/strpbrk.m4: New file.
77786
77787         Module strstr.
77788         * m4/strstr.m4: New file.
77789
77790         Module strerror.
77791         * m4/strerror.m4: New file.
77792
77793         Module mktime.
77794         * m4/mktime.m4: Renamed from jm-mktime.m4.
77795         (gl_PREREQ_MKTIME): New macro.
77796         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77797
77798         Module malloc.
77799         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77800         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77801         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77802
77803         Module realloc.
77804         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77805         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77806         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77807
77808         Module strftime.
77809         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77810         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77811         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77812         gl_TM_GMTOFF.
77813         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77814
77815         Module xalloc.
77816         * m4/xalloc.m4: New file.
77817
77818         Module alloca.
77819         * m4/alloca.m4: New file.
77820
77821         Module putenv.
77822         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77823         (jm_FUNC_PUTENV): Invoke it.
77824
77825         Module setenv.
77826         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77827         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77828         when invoked twice.
77829         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77830         gt_FUNC_SETENV.
77831
77832         Module memrchr.
77833         * m4/memrchr.m4: New file.
77834
77835         Module stpcpy.
77836         * m4/stpcpy.m4: New file.
77837
77838         Module strcase.
77839         * m4/strcase.m4: New file.
77840
77841         Module strdup.
77842         * m4/strdup.m4: New file.
77843
77844         Module strnlen.
77845         * m4/strnlen.m4: New file.
77846
77847         Module strndup.
77848         * m4/strndup.m4: New file.
77849
77850         Module xstrtod.
77851         * m4/xstrtod.m4: New file.
77852
77853         Module xstrtol.
77854         * m4/xstrtol.m4: New file.
77855
77856         Module getdate.
77857         * m4/getdate.m4: New file.
77858
77859         Module unlocked-io.
77860         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77861         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77862         * m4/jm-glibc-io.m4n: Remove file.
77863
77864         Module long-options.
77865         * m4/long-options.m4: New file.
77866
77867         Module md5.
77868         * m4/md5.m4: New file.
77869
77870         Module sha.
77871         * m4/sha.m4: New file.
77872
77873         Module getstr.
77874         * m4/getstr.m4: New file.
77875
77876         Module getline.
77877         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77878         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77879         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77880         simply getline. Infoke gl_PREREQ_GETLINE.
77881
77882         Module obstack.
77883         * m4/obstack.m4: New file.
77884
77885         Module hash.
77886         * m4/hash.m4: New file.
77887
77888         Module readtokens.
77889         * m4/readtokens.m4: New file.
77890
77891         Module strverscmp.
77892         * m4/strverscmp.m4: New file.
77893
77894         Module stdbool.
77895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77896         OSF/1.
77897
77898         Module strtoll.
77899         * m4/strtoll.m4: New file.
77900
77901         Module strtoull.
77902         * m4/strtoull.m4: New file.
77903
77904         Module strtoimax.
77905         * m4/strtoimax.m4: New file.
77906
77907         Module strtoumax.
77908         * m4/strtoumax.m4: New file.
77909
77910         Module xstrtoimax.
77911         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77912         jm_AC_PREREQ_XSTRTOIMAX.
77913         Moved the strtol prerequisites to strtol.m4.
77914         Moved the strtoll prerequisites to strtoll.m4.
77915         Moved the strtoimax prerequisites to strtoimax.m4.
77916
77917         Module xstrtoumax.
77918         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77919         jm_AC_PREREQ_XSTRTOUMAX.
77920         Moved the strtoul prerequisites to strtoul.m4.
77921         Moved the strtoull prerequisites to strtoull.m4.
77922         Moved the strtoumax prerequisites to strtoumax.m4.
77923
77924         Module chown.
77925         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77926         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77927
77928         Module dup2.
77929         * m4/dup2.m4: New file.
77930
77931         Module ftruncate.
77932         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77933         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77934
77935         Module getgroups.
77936         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77937         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77938
77939         Module gettimeofday.
77940         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77941         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77942         gl_PREREQ_GETTIMEOFDAY.
77943
77944         Module mkdir.
77945         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77946         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77947
77948         Module mkstemp.
77949         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77950         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77951         jm_AC_TYPE_UINTMAX_T.
77952         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77953
77954         Module stat.
77955         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77956         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77957
77958         Module lstat.
77959         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77960         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77961
77962         Module timespec.
77963         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77964         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77965         * m4/st_mtim.m4: Indentation.
77966
77967         Module nanosleep.
77968         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77969         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77970         gl_PREREQ_NANOSLEEP.
77971
77972         Module regex.
77973         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77974         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77975         (gl_REGEX): New macro.
77976
77977         Module rename.
77978         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77979         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77980
77981         Module rmdir.
77982         * m4/rmdir.m4: New file.
77983
77984         Module utime.
77985         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77986         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77987         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77988
77989         Module dirname.
77990         * m4/dirname.m4: New file.
77991
77992         Module getopt.
77993         * m4/getopt.m4: New file.
77994
77995         Module unistd-safer.
77996         * m4/unistd-safer.m4: New file.
77997
77998         Module fnmatch.
77999         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78000         declaration.
78001         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78002         (gl_FUNC_FNMATCH_POSIX): New macro.
78003         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78004         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78005         simply fnmatch.
78006
78007         Module exclude.
78008         * m4/exclude.m4: New file.
78009
78010         Module human.
78011         * m4/human.m4: New file.
78012
78013         Module acl.
78014         * m4/acl.m4: Nop.
78015
78016         Module backupfile.
78017         * m4/backupfile.m4: New file.
78018         * m4/d-ino.m4: Indentation.
78019
78020         Module fsusage.
78021         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78022         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78023         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78024
78025         Module dirfd.
78026         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78027         requirements.
78028
78029         Module euidaccess.
78030         * m4/euidaccess.m4: New file.
78031
78032         Module file-type.
78033         * m4/file-type.m4: New file.
78034
78035         Module fileblocks.
78036         * m4/fileblocks.m4: New file.
78037
78038         Module filemode.
78039         * m4/filemode.m4: New file.
78040
78041         Module isdir.
78042         * m4/isdir.m4: New file.
78043
78044         Module lchown.
78045         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78046         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78047
78048         Module makepath.
78049         * m4/makepath.m4: New file.
78050
78051         Module modechange.
78052         * m4/modechange.m4: New file.
78053
78054         Module mountlist.
78055         * m4/mountlist.m4: New file.
78056         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78057         Indentation.
78058
78059         Module path-concat.
78060         * m4/path-concat.m4: New file.
78061
78062         Module pathmax.
78063         * m4/pathmax.m4: New file.
78064
78065         Module same.
78066         * m4/same.m4: New file.
78067
78068         Module save-cwd.
78069         * m4/save-cwd.m4: New file.
78070
78071         Module savedir.
78072         * m4/savedir.m4: New file.
78073
78074         Module xgetcwd.
78075         * m4/xgetcwd.m4: New file.
78076         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78077
78078         Module xreadlink.
78079         * m4/xreadlink.m4: New file.
78080
78081         Module safe-read.
78082         * m4/safe-read.m4: New file.
78083
78084         Module safe-write.
78085         * m4/safe-write.m4: New file.
78086
78087         Module closeout.
78088         * m4/closeout.m4: New file.
78089
78090         Module stdio-safer.
78091         * m4/stdio-safer.m4: New file.
78092
78093         Module getpass.
78094         * m4/getpass.m4: New file.
78095
78096         Module getugroups.
78097         * m4/getugroups.m4: New file.
78098
78099         Module group-member.
78100         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78101         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78102
78103         Module idcache.
78104         * m4/idcache.m4: New file.
78105
78106         Module userspec.
78107         * m4/userspec.m4: New file.
78108
78109         Module gettime.
78110         * m4/clock_time.m4: New file.
78111         * m4/gettime.m4: New file.
78112
78113         Module settime.
78114         * m4/settime.m4: New file.
78115
78116         Module posixtm.
78117         * m4/posixtm.m4: New file.
78118
78119         Module gethostname.
78120         * m4/gethostname.m4: New file.
78121
78122         Module canon-host.
78123         * m4/canon-host.m4: New file.
78124
78125         Module gettext.
78126         * m4/codeset.m4: New file, from gettext-0.11.5.
78127         * m4/gettext.m4: New file, from gettext-0.11.5.
78128         * m4/glibc21.m4: New file, from gettext-0.11.5.
78129         * m4/iconv.m4: New file, from gettext-0.11.5.
78130         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78131         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78132         * m4/inttypes.m4: New file, from gettext-0.11.5.
78133         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78134         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78135         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78136         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78137         * m4/lib-link.m4: New file, from gettext-0.11.5.
78138         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78139         * m4/progtest.m4: New file, from gettext-0.11.5.
78140         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78141         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78142         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78143
78144         Module localcharset.
78145         * m4/localcharset.m4: New file.
78146
78147         Module hard-locale.
78148         * m4/hard-locale.m4: New file.
78149
78150         Module mbswidth.
78151         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78152         onceonly macros.
78153         * m4/mbrtowc.m4: Add comment.
78154
78155         Module memcasecmp.
78156         * m4/memcasecmp.m4: New file.
78157
78158         Module memcoll.
78159         * m4/memcoll.m4: New file.
78160
78161         Module unicodeio.
78162         * m4/unicodeio.m4: New file.
78163
78164         Module rpmatch.
78165         * m4/rpmatch.m4: New file.
78166
78167         Module yesno.
78168         * m4/yesno.m4: New file.
78169
78170         Module exitfail.
78171         * m4/exitfail.m4: New file.
78172
78173         Module c-stack.
78174         * m4/c-stack.m4 (gl_C_STACK): New macro.
78175         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78176
78177         Module error.
78178         * m4/error.m4 (gl_ERROR): New macro.
78179         (jm_PREREQ_ERROR): Use onceonly macros.
78180
78181         Module fatal.
78182         * m4/fatal.m4: New file.
78183
78184         Module getloadavg.
78185         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78186         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78187
78188         Module getpagesize.
78189         * m4/getpagesize.m4: New file.
78190
78191         Module getusershell.
78192         * m4/getusershell.m4: New file.
78193
78194         Module physmem.
78195         * m4/physmem.m4: New file.
78196
78197         Module posixver.
78198         * m4/posixver.m4: New file.
78199
78200         Module quotearg.
78201         * m4/quotearg.m4: New file.
78202
78203         Module quote.
78204         * m4/quote.m4: New file.
78205
78206         Module readutmp.
78207         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78208
78209         Module sig2str.
78210         * m4/sig2str.m4: New file.
78211
78212         Other.
78213         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78214         ulonglong.m4.
78215         * m4/intmax_t.m4: New file.
78216         * m4/d-type.m4: Indentation.
78217         * m4/jm-macros.m4: Update.
78218         * m4/prereq.m4 (jm_PREREQ): Update.
78219         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78220         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78221         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78222         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78223         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78224         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78225         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78226         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78227         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78228         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78229         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78230         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78231         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78232         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78233         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78234         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78235         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78236         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78237         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78238
78239 2002-12-24  Bruno Haible  <bruno@clisp.org>
78240
78241         * MODULES.txt: Update according to m4/ changes.
78242
78243         Module gettext.
78244         * config.rpath: New file, from gettext-0.11.5.
78245
78246         * modules/*: New module descriptions.
78247         * gnulib-tool: New file.
78248         * MODULES.html.sh: New file.
78249
78250 2002-12-21  Karl Berry  <karl@gnu.org>
78251
78252         * doc/fdl.texi: update to version 1.2.
78253
78254 2002-12-19  Karl Berry  <karl@gnu.org>
78255
78256         * config/config.guess: update from prep.
78257
78258 2002-12-18  Bruno Haible  <bruno@clisp.org>
78259
78260         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78261         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78262
78263 2002-12-17  Bruno Haible  <bruno@clisp.org>
78264
78265         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78266         stdlib.h, string.h.
78267
78268 2002-12-17  Bruno Haible  <bruno@clisp.org>
78269
78270         * lib/canon-host.c (strdup): Remove unused declaration.
78271
78272         * lib/fsusage.c: Include full_read.h.
78273         (get_fs_usage): Use full_read instead of safe_read.
78274
78275         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78276
78277 2002-12-12  Karl Berry  <karl@gnu.org>
78278
78279         * config/config.guess: update from prep.
78280
78281 2002-12-11  Bruno Haible  <bruno@clisp.org>
78282
78283         * m4/setenv.m4: New file, from gettext-0.11.5.
78284
78285 2002-12-11  Bruno Haible  <bruno@clisp.org>
78286
78287         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78288         not unsetenv().
78289         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78290         modifications:
78291
78292         2002-12-11  Bruno Haible  <bruno@clisp.org>
78293
78294                 * setenv.c (alloca): Fall back to malloc.
78295                 (freea): New macro.
78296                 (setenv): Use freea() to free memory allocated with alloca().
78297
78298         2002-11-13  Bruno Haible  <bruno@clisp.org>
78299
78300                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78301                 function declarations.
78302                 * unsetenv.c (unsetenv): Likewise.
78303
78304         2002-03-04  Bruno Haible  <bruno@clisp.org>
78305
78306                 Portability to AIX 4.3.3.
78307                 * unsetenv.c: New file, extracted from setenv.c.
78308                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78309
78310         2001-12-20  Bruno Haible  <bruno@clisp.org>
78311
78312                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78313                 use malloc instead. For SunOS 4.
78314
78315         2001-12-11  Bruno Haible  <bruno@clisp.org>
78316
78317                 * setenv.c: Declare alloca.
78318                 (compar_fn_t): New typedef.
78319                 (KNOWN_VALUE, STORE_VALUE): Use it.
78320
78321         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78322         setenv.h.
78323
78324 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78325
78326         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78327         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78328         Choose values that are less likely to collide with system fnmatch
78329         options.
78330         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78331         defined (e.g., a pure POSIX system).
78332         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78333         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78334
78335 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78336
78337         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78338         a pain in practice to deal with generated m4 files.  This change
78339         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78340
78341         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78342         and jm-glibc-io.m4, as they are no longer a special case.
78343         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78344         kludge and the auto-generation stuff.  Check only whether the
78345         functions are declared, not whether they exist, since older hosts
78346         that don't declare the functions can't use the optimization anyway.
78347
78348 2002-12-06  Jim Meyering  <jim@meyering.net>
78349
78350         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78351
78352         Merge in changes from libc's misc/error.c, in preparation
78353         for the merge of gnulib's changes back into libc.
78354
78355         * lib/error.c (_): Define only if not already defined.
78356         Move definition to follow all #include directives.
78357         Include unlocked-io.h only if !_LIBC.
78358         [_LIBC]: Include <libio/libioP.h>.
78359         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78360         (fflush): Tweak definition to use INTUSE.
78361         (putc): Define.
78362
78363 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78364
78365         * lib/alloca.c [defined emacs]: Include "lisp.h".
78366         (xalloc_die) [defined emacs]: New macro.
78367         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78368         [! defined emacs]: Include <xalloc.h>.
78369         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78370         (pointer): Typedef to POINTER_TYPE *.
78371         (malloc): Remove decl; we now always use xmalloc.
78372         (alloca): Use old-style definition, since Emacs needs this.
78373         Check for arithmetic overflow when computing combined size.
78374
78375 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78376
78377         Do not generate unlocked-io.h automatically, since it's easier to
78378         maintain it by hand.
78379
78380         * lib/unlocked-io.h: New file, from GNU diffutils,
78381         but with proper copyright notice and attribution.
78382         * lib/gen-uio: Remove.
78383         * lib/Makefile.am: Add copyright notice.
78384         (libfetish_a_SOURCES): Add unlocked-io.h.
78385         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78386         (DISTCLEANFILES, io_functions): Remove macros.
78387         (EXTRA_DIST): Remove gen_uio.
78388         (unlocked-io.h): Remove rule.
78389
78390 2002-12-04  Jim Meyering  <jim@meyering.net>
78391
78392         Reflect the fact that stat.c and lstat.c are no longer generated.
78393         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78394         (DISTCLEANFILES): Likewise.
78395         (EXTRA_DIST): Likewise.
78396         (all_local): Don't depend on stat.c or lstat.c.
78397         (stat.c, lstat.c): Remove rules.
78398         (EXTRA_DIST): Remove xstat.in.
78399
78400         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78401         * lib/stat.c: New file.  Contents mostly from xstat.in.
78402         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78403         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78404
78405         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78406         too.
78407         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78408
78409 2002-12-03  Jim Meyering  <jim@meyering.net>
78410
78411         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78412         but not semantics, to minimize the differences between these two files.
78413         (safe_read): Change comment to mention SAFE_READ_ERROR.
78414
78415         * lib/safe-read.c (IS_EINTR): Define.
78416         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78417
78418 2002-12-02  Jim Meyering  <jim@meyering.net>
78419
78420         * lib/safe-read.c (EINTR): Define.
78421         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78422         (INT_MAX): Provide fallback.
78423         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78424
78425         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78426
78427 2002-12-02  Bruno Haible  <bruno@clisp.org>
78428
78429         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78430         Define, taken from safe-read.c.
78431         (INT_MAX): Provide fallback.
78432         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78433         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78434
78435         * lib/safe-read.c (EINTR): Remove definition.
78436         (safe_read): Don't use EINTR if it is absent.
78437
78438 2002-12-01  Jim Meyering  <jim@meyering.net>
78439
78440         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78441         zero.
78442         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78443
78444 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78445
78446         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78447         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78448         with `if (! (value < limit)) abort ();', for readability.
78449
78450 2002-11-26  Karl Berry  <karl@gnu.org>
78451
78452         * lib/strdup.c: copy from libc again, with jim's ok.
78453         * lib/.cppi-disable: re-add strdup.c
78454
78455 2002-11-25  Karl Berry  <karl@gnu.org>
78456
78457         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78458         instead of "strtol.c".
78459
78460 2002-11-25  Karl Berry  <karl@gnu.org>
78461
78462         * config/install-sh: update from automake for variable quoting, $0 in
78463         error msgs, etc.
78464
78465         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78466         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78467         entry.
78468
78469 2002-11-25  Jim Meyering  <jim@meyering.net>
78470
78471         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78472
78473 2002-11-24  Karl Berry  <karl@gnu.org>
78474
78475         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78476         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78477
78478 2002-11-24  Jim Meyering  <jim@meyering.net>
78479
78480         Update from coreutils:
78481
78482         * lib/mktime.c: Merge in changes from libc.
78483
78484         Avoid a link-time failure on some Linux systems.
78485         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78486         (otherwise).
78487         (__mon_yday): Declare with the STATIC attribute.
78488         (__mktime_internal): Likewise.
78489         Based on a report from Greg Schafer.
78490
78491 2002-11-23  Jim Meyering  <jim@meyering.net>
78492
78493         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78494         Use `unsigned', not `int', as type of index.
78495
78496         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78497
78498         * lib/fsusage.c: Remove unneeded parentheses around operands of
78499         `defined'.
78500
78501 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78502
78503         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78504         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78505         so that we can be included first.
78506         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78507         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78508         No need to include stddef.h or sys/types.h any more.
78509         Surround local include files with "", not "<>".
78510         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78511         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78512         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78513         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78514         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78515         (ISPRINT): Remove; no longer needed now that we assume C89.
78516
78517         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78518         Preserve errno.
78519
78520         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78521         quotearg_char): Use SIZE_MAX rather than
78522         (size_t) -1 when we are talking about "infinity".
78523
78524         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78525
78526 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78527
78528         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78529         hint that one should use `if (! x) abort ();' rather than `assert
78530         (x);', and anyway it's one less thing to worry about configuring.
78531         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78532         hash_rehash, hash_insert): Use abort rather than assert.
78533
78534 2002-11-22  Bruno Haible  <bruno@clisp.org>
78535
78536         * lib/safe-read.h: Assume C89. Add comments.
78537         (safe_read): Change return type to size_t.
78538         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78539         byte counts > SSIZE_MAX correctly.
78540         * lib/safe-write.h: New file.
78541         * lib/safe-write.c: New file.
78542         * lib/full-read.h: New file.
78543         * lib/full-read.c: New file.
78544         * lib/full-write.h: Assume C89. Add comments.
78545         * lib/full-write.c: Include safe-write.h.
78546         (full_write): Rewritten to use safe_write.
78547         Suggested by Jim Meyering and Paul Eggert.
78548
78549 2002-11-21  Jim Meyering  <jim@meyering.net>
78550
78551         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78552
78553         Merge in changes from the coreutils.
78554
78555         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78556         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78557         <stdint.h>.
78558         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78559         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78560         int.  Work more efficiently if X is the same width as uintmax_t.
78561         Do not compare X to -1, to avoid bogus compiler warning.
78562         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78563         Don't assume that f_frsize and f_bsize are the same type.
78564
78565         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78566         warning on FreeBSD.
78567
78568         * lib/makepath.c (make_path): Restore umask *before* creating the final
78569         component.
78570         (make_path): Minor reformatting.
78571
78572         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78573         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78574         HAVE_MALLOC/HAVE_REALLOC.
78575
78576         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78577         dummy ones.  At least on GNU/Linux systems, `auto' means something
78578         else.
78579         From Michael Stone.
78580
78581 2002-11-21  Bruno Haible  <bruno@clisp.org>
78582
78583         Remove case insensitive option matching.
78584         * lib/argmatch.h (argcasematch): Remove declaration.
78585         (ARGCASEMATCH): Remove macro.
78586         (__xargmatch_internal): Remove case_sensitive argument.
78587         (XARGMATCH): Update.
78588         (XARGCASEMATCH): Remove macro.
78589         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78590         case_sensitive argument.
78591         (argcasematch): Remove function.
78592         (__xargmatch_internal): Remove case_sensitive argument.
78593         (main): Use XARGMATCH instead of XARGCASEMATCH.
78594
78595         * lib/xmalloc.c: Change compile-time error message. Add comment about
78596         required autoconf version.
78597
78598 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78599
78600         Merge argmatch cleanups from Bison.  Assume C89.
78601
78602         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78603         Include stdlib.h, for EXIT_FAILURE.
78604         Always include <string.h>, since we assume C89.
78605         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78606         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78607         Include <stddef.h> instead, since it's all we need for size_t.
78608         (PARAMS): Remove.  All uses removed.
78609         (ARRAY_CARDINALITY): Do not bother to #undef.
78610         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78611         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78612         Remove unnecessary parentheses.
78613         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78614         Insert necessary parentheses.
78615         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78616         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78617
78618 2002-11-19  Bruno Haible  <bruno@clisp.org>
78619
78620         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78621         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78622
78623         * lib/mbswidth.h (PARAMS): Remove macro.
78624         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78625         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78626
78627         * lib/gcd.h (PARAMS): Remove macro.
78628         (gcd): Use ANSI C function declarations.
78629         * lib/gcd.c (gcd): Likewise.
78630
78631 2002-11-15  Bruno Haible  <bruno@clisp.org>
78632
78633         * lib/strcspn.c: Include <stddef.h>.
78634         (strcspn): Use ANSI C function declaration. Change return type to
78635         size_t. Use NULL.
78636         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78637         (strpbrk): Use NULL.
78638         * lib/strpbrk.h (PARAMS): Remove macro.
78639         (strpbrk): Use ANSI C function declaration.
78640         * lib/strstr.c: Don't include <sys/types.h>.
78641         * lib/strstr.h (PARAMS): Remove macro.
78642         (strstr): Use ANSI C function declarations.
78643
78644 2002-11-14  Karl Berry  <karl@gnu.org>
78645
78646         * config/mkinstalldirs: `do' on separate line, instead of
78647         `for var; do'.
78648
78649 2002-11-06  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78652         * lib/gcd.c (gcd): Likewise.
78653
78654 2002-11-05  Bruno Haible  <bruno@clisp.org>
78655
78656         * lib/gcd.h: New file, from gettext-0.11.5.
78657         * lib/gcd.c: New file, from gettext-0.11.5.
78658
78659 2002-11-05  Bruno Haible  <bruno@clisp.org>
78660
78661         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78662         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78663         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78664         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78665
78666         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78667         <libintl.h>.
78668         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78669         <libintl.h>.
78670
78671         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78672         * lib/human.c: Include gettext.h instead of <libintl.h>.
78673         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78674         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78675         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78676         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78677         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78678         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78679         (textdomain): Remove definition.
78680         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78681
78682         * lib/long-options.c: Remove include of <libintl.h> and definition of
78683         _.
78684         * lib/same.c: Remove include of <libintl.h> and definition of _.
78685
78686 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78687
78688         * lib/config.charset: A few additions for Solaris.
78689
78690 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78691
78692         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78693         * lib/localcharset.c (locale_charset): Declare as extern "C".
78694
78695 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78696
78697         * lib/config.charset: msdos in uk_UA uses CP1125.
78698
78699 2002-11-04  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78702         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78703         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78704         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78705         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78706
78707 2002-11-04  Bruno Haible  <bruno@clisp.org>
78708
78709         * lib/localcharset.c (locale_charset): Don't return an empty string.
78710
78711 2002-11-04  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78714         aliases.
78715
78716 2002-11-04  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/config.charset: Update for newest glibc. Add canonical names
78719         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78720
78721 2002-11-04  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/config.charset: Add support for NetBSD.
78724
78725 2002-11-04  Bruno Haible  <bruno@clisp.org>
78726
78727         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78728
78729 2002-11-01  Bruno Haible  <bruno@clisp.org>
78730
78731         * configure.in: Add AC_CONFIG_AUX_DIR call.
78732         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78733         test/Makefile.
78734         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78735
78736 2002-09-28  Karl Berry  <karl@gnu.org>
78737
78738         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78739         installed automake until the next release, since changes have been
78740         made.
78741
78742 2002-09-25  Karl Berry  <karl@gnu.org>
78743
78744         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78745         * lib/getopt*: copy from libc/posix.
78746         * lib/gettext.h: copy from gettext.
78747         * lib/.cppi-disable: add strdup.c, gettext.h.
78748
78749 2002-09-25  Karl Berry  <karl@gnu.org>
78750
78751         * config/srclist.txt: enable gettext.h check.
78752         * config/config.{guess,sub}: update from prep.
78753         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78754                 from automake 1.6.3.
78755         See srclist*.
78756
78757 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78758
78759         * regex.c (PATFETCH): Remove the translating fetch.
78760         (PATFETCH_RAW): Rename to PATFETCH.
78761         (set_image_of_range): New fun.
78762         (SET_RANGE_TABLE_WORK_AREA): Use it.
78763         (regex_compile): Don't translate the pattern chars so eagerly.
78764         Only do it when inserting an `exactn' bytecode or when handling
78765         a char-range.
78766         (mutually_exclusive_p): Avoid empty statement.
78767
78768 2002-07-06  Jim Meyering  <meyering@lucent.com>
78769
78770         * m4/README: Don't mention Makefile.am.in.
78771         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78772
78773 2002-07-01  Jim Meyering  <meyering@lucent.com>
78774
78775         * lib/c-stack.c: Include sys/time.h.
78776         From Volker Borchert.
78777
78778 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78779
78780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78781
78782 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78783
78784         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78785         New macro.  Use it uniformly instead of
78786         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78787         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78788         reported by Vin Shelton.
78789
78790 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78791
78792         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78793         Do not assume SA_SIGINFO behavior.
78794         Bug reported by Jim Meyering on NetBSD 1.5.2.
78795
78796 2002-06-22  Jim Meyering  <meyering@lucent.com>
78797
78798         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78800
78801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78802         now that configure.ac uses AC_GNU_SOURCE.
78803         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78804         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78805
78806         Update to latest tools.  Suggestions from Paul Eggert.
78807         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78808         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78809         * m4/fnmatch.m4: Likewise.
78810         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78811         to AC_HEADER_STDBOOL
78812
78813 2002-06-22  Jim Meyering  <meyering@lucent.com>
78814
78815         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78816         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78817
78818 2002-06-22  Jim Meyering  <meyering@lucent.com>
78819
78820         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78821
78822         * lib/exitfail.c, exitfail.h: Likewise.
78823         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78824
78825         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78826         of fnmatch.h.
78827         (EXTRA_DIST): Add fnmatch_loop.c.
78828         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78829
78830         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78831         * lib/fnmatch.c: Update from diffutils-2.8.2.
78832         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78833         * lib/fnmatch.h: Remove file.
78834
78835 2002-06-21  Jim Meyering  <meyering@lucent.com>
78836
78837         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78838         * m4/mbrtowc.m4: Likewise.
78839
78840         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78841         * m4/mbswidth.m4: Reflect name change:
78842         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78843         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78844
78845         * m4/lib-link.m4: Update from gettext-0.11.2.
78846         * m4/gettext.m4: Likewise.
78847
78848         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78849         From Alfred M. Szmidt.
78850
78851 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78852
78853         * lib/file-type.h: Report an error if neither S_ISREG nor
78854         S_IFREG is defined, instead of using a test specific to glibc
78855         2.2.  This should be safe, since POSIX requires S_ISREG and
78856         Unix Version 7 had S_IFREG.  We don't need to check for
78857         <sys/types.h> since we don't use any symbols that it defines.
78858
78859 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78860
78861         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78862         $@-t, so that each temporary file name is unique and valid in the first
78863         8 characters, for operation under DOS.
78864
78865 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78866
78867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78868
78869 2002-06-15  Jim Meyering  <meyering@lucent.com>
78870
78871         Work even with DJGPP 2.03, which lacks support for symlinks.
78872         From Richard Dawe.
78873         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78874         is defined.
78875         * lib/lchown.c (S_ISLNK): Likewise.
78876
78877 2002-06-15  Jim Meyering  <meyering@lucent.com>
78878
78879         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78880         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78881         have been included before this file.
78882
78883 2002-06-14  Jim Meyering  <meyering@lucent.com>
78884
78885         * lib/file-type.h: Use the version from diffutils-2.8.2.
78886         * lib/file-type.c: Likewise.
78887
78888 2002-06-07  Jim Meyering  <meyering@lucent.com>
78889
78890         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78891         They're needed at least for NetBSD 1.5.2.
78892         ($statxfs_includes): Include those same headers.
78893         ($statxfs_includes): Include sys/vfs.h if available.
78894         ($statxfs_includes): Likewise for sys/statvfs.h.
78895         Check for the following members in both structs statfs and statvfs:
78896         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78897
78898 2002-06-01  Jim Meyering  <meyering@lucent.com>
78899
78900         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78901         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78902
78903 2002-05-28  Jim Meyering  <meyering@lucent.com>
78904
78905         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78906         Reported by Volker Borchert.
78907
78908 2002-05-27  Jim Meyering  <meyering@lucent.com>
78909
78910         Fix a problem seen only on nonconforming systems whereby ls.c's
78911         use of localtime, and then of gettimeofday would cause trouble:
78912         the localtime call used to initialize rpl_gettimeofday's save
78913         mechanism would clobber ls's current local time information so
78914         that in any long listing the first file would always be listed
78915         with date 1970-01-01.  Analysis by Volker Borchert.
78916
78917         * lib/gettimeofday.c (localtime): Undefine.
78918         (rpl_localtime): New function.
78919
78920 2002-05-27  Jim Meyering  <meyering@lucent.com>
78921
78922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78923         localtime.
78924
78925         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78926         use the replacement function; it wouldn't resolve at link time.
78927         Reported by Volker Borchert.
78928
78929 2002-05-22  Jim Meyering  <meyering@lucent.com>
78930
78931         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78932         file-type.h.
78933         * lib/file-type.h: New file.
78934         * lib/file-type.c (file_type): New file/function.  Extracted from
78935         diffutils.
78936
78937 2002-04-30  Jim Meyering  <meyering@lucent.com>
78938
78939         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78940
78941 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78942
78943         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78944
78945 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78946
78947         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78948         Do not check for alloca.h (no longer used) or stdbool.h (was never
78949         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78950
78951 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78952
78953         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78954
78955 2002-04-29  Jim Meyering  <meyering@lucent.com>
78956
78957         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78958         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78959         Use AC_FUNC_STRNLEN here instead.
78960
78961         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78962         With autoconf-2.53a, it's part of AC_PROG_CC.
78963
78964 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78965
78966         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78968
78969 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78970
78971         * lib/sig2str.h, lib/sig2str.c: New files.
78972         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78973
78974 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78975
78976         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78977         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78978         of 127, since 64 is the largest conceivable number for ancient
78979         nonstandard hosts.
78980         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78981
78982 2002-04-28  Jim Meyering  <meyering@lucent.com>
78983
78984         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78985
78986 2002-04-24  Jim Meyering  <meyering@lucent.com>
78987
78988         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78989         (jm_PREREQ): Use it.
78990
78991         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78992         mach/mach.h fcntl.h.
78993         Check for this function: setlocale.
78994
78995 2002-04-24  Jim Meyering  <meyering@lucent.com>
78996
78997         * lib/gettext.h: New file, from Gettext.
78998         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78999         (libfetish_a_SOURCES): Add gettext.h.
79000
79001 2002-04-16  Jim Meyering  <meyering@lucent.com>
79002
79003         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79004         ut_pid, ut_id, ut_exit.
79005
79006 2002-04-16  Jim Meyering  <meyering@lucent.com>
79007
79008         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79009         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79010         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79011
79012 2002-04-12  Jim Meyering  <meyering@lucent.com>
79013
79014         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79015         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79016         existence of the getmntinfo function.  Needed for Darwin 5.3.
79017
79018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79019         This is necessary at least on Darwin 5.3.
79020
79021         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79022         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79023         strnlen.o in the library, and that makes some versions of ranlib
79024         object.
79025
79026 2002-04-12  Jim Meyering  <meyering@lucent.com>
79027
79028         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79029
79030 2002-04-09  Jim Meyering  <meyering@lucent.com>
79031
79032         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79033         to be more precise.  Rather than saying we're checking whether the
79034         function `works', say what we're testing.
79035         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79036         Reported by Bruno Haible.
79037
79038 2002-03-10  Jim Meyering  <meyering@lucent.com>
79039
79040         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79041         Suggestion from Santiago Vila.
79042
79043 2002-03-08  Jim Meyering  <meyering@lucent.com>
79044
79045         * lib/rename.c: Mention that this wrapper is needed also on
79046         mips-dec-ultrix4.4 systems.
79047
79048 2002-03-02  Jim Meyering  <meyering@lucent.com>
79049
79050         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79051         not HAVE_CLOCK_SETTIME.
79052
79053 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79054
79055         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79056         Check for clock_settime.
79057
79058 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79059
79060         * lib/nanosleep.h: Rename to....
79061         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79062
79063         * lib/gettime.c: New file.
79064         * lib/settime.c: New file.
79065         * lib/stime.c: Remove.
79066
79067         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79068         timespec.h.  Remove nanosleep.h.
79069
79070 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79071
79072         * m4/acl.m4: New file.
79073         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79074         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79075
79076 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79077
79078         * lib/acl.c, lib/acl.h: New files.
79079         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79080
79081 2002-02-24  Jim Meyering  <meyering@lucent.com>
79082
79083         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79084         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79085         cause trouble.  Reported by Nelson Beebe.
79086
79087 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79088
79089         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79090         compilers that don't know that xalloc_die never returns.
79091
79092 2002-02-20  Jim Meyering  <meyering@lucent.com>
79093
79094         * lib/getdate.c: Regenerate using bison-1.33.
79095
79096 2002-02-17  Jim Meyering  <meyering@lucent.com>
79097
79098         * config/config.guess (main): Don't use `head -1'; it's no longer
79099         portable. Use `sed 1q' instead.
79100
79101 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79102
79103         * m4/codeset.m4: Upgrade to gettext-0.11.
79104         * m4/gettext.m4: Upgrade to gettext-0.11.
79105         * m4/glibc21.m4: Upgrade to gettext-0.11.
79106         * m4/iconv.m4: Upgrade to gettext-0.11.
79107         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79108         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79109         * m4/lib-ld.m4: New file, from gettext-0.11.
79110         * m4/lib-link.m4: New file, from gettext-0.11.
79111         * m4/lib-prefix.m4: New file, from gettext-0.11.
79112         * m4/progtest.m4: Upgrade to gettext-0.11.
79113
79114 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79115
79116         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79117         (jm_PREREQ): Use it.
79118
79119 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79120
79121         * lib/posixver.c, lib/posixver.h: New files.
79122         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79123
79124 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79125             Bruno Haible  <bruno@clisp.org>
79126
79127         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79128         (fwrite_success_callback): New declaration.
79129         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79130         print_unicode_char. Call failure callback instead of error.
79131         (fwrite_success_callback): New function.
79132         (exit_failure_callback): New function.
79133         (fallback_failure_callback): New function.
79134         (print_unicode_char): Call unicode_to_mb.
79135
79136 2002-01-26  Jim Meyering  <meyering@lucent.com>
79137
79138         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79139         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79140
79141 2002-01-26  Jim Meyering  <meyering@lucent.com>
79142
79143         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79144
79145 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79146
79147         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79148
79149 2002-01-22  Jim Meyering  <meyering@lucent.com>
79150
79151         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79152         Otherwise, some versions of automake would omit the rule that makes
79153         Makefile from Makefile.in.
79154
79155 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79156
79157         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79158         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79159         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79160         (memcoll): Set errno to zero if there is no error.
79161
79162         * lib/quotearg.c (quotearg_buffer_restyled):
79163         Fix bug with quoting buffers containing NUL when backslashing escapes.
79164         This bug was exposed by the other changes in this patch.
79165         (quotearg_n_options): New arg ARGSIZE.
79166         All callers changed.
79167         (quoting_options_from_style): New function.
79168         (quotearg_n_style): Use it.
79169         (quotearg_n_style_mem): New function.
79170
79171         * lib/quotearg.h (quotearg_n_style_mem): New function.
79172
79173 2002-01-19  Jim Meyering  <meyering@lucent.com>
79174
79175         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79176         Remove useless quotes: DF_PROG="df".
79177         * m4/strnlen.m4: New file.
79178
79179 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79180
79181         * lib/backupfile.c (ISDIGIT): Comment fix.
79182         * lib/getdate.y (ISDIGIT): Likewise.
79183         * lib/posixtm.c (ISDIGIT, year): Likewise.
79184         * lib/strverscmp.c (ISDIGIT): Likewise.
79185         * lib/userspec.c (ISDIGIT): Likewise.
79186
79187 2002-01-16  Jim Meyering  <meyering@lucent.com>
79188
79189         * lib/getdate.y: Add three semicolons, each just before a closing
79190         brace. Bison (as of version 1.31) no longer papers over that mistake.
79191
79192 2002-01-05  Jim Meyering  <meyering@lucent.com>
79193
79194         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79195
79196 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79197
79198         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79199         not silently exit merely because the output buffer happens to
79200         have nothing pending.
79201
79202 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79203
79204         See the big note in ../ChangeLog.
79205         * lib/human.c (suffixes): Prefer K to k for 1024.
79206         (generate_suffix_backwards): New function.
79207         (human_readable_inexact): Use it.
79208         * lib/xstrtol.c (__xstrtol): If there is no number but there
79209         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79210         Accept 'K' as well as 'k'.
79211
79212 2001-12-15  Jim Meyering  <meyering@lucent.com>
79213
79214         * lib/regex.h (__restrict_arr): Update from libc.
79215
79216         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79217         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79218         (STREQ): Define.
79219
79220 2001-12-14  Jim Meyering  <meyering@lucent.com>
79221
79222         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79223         Suggestion from Bruno Haible.
79224
79225 2001-12-10  Jim Meyering  <meyering@lucent.com>
79226
79227         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79228         xrealloc, Instead, include "xalloc.h".
79229         (initbuffer): Don't cast xmalloc return value to char*.
79230         (readline): Reword comment.
79231         Don't cast xrealloc return value to char*
79232         Return NULL, not 0.
79233
79234 2001-12-09  Jim Meyering  <meyering@lucent.com>
79235
79236         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79237         about `signed and unsigned type in conditional expression'.
79238         * lib/posixtm.c (posix_time_parse): Likewise.
79239
79240         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79241
79242         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79243         to avoid a pedantic warning.
79244
79245         * lib/getstr.c: Don't include assert.h.
79246         (getstr): Remove warning-evoking assertions.
79247         Return -1 if offset parameter is out of bounds.
79248         Change the type of a local from int to size_t.
79249
79250         * lib/strftime.c (my_strftime_localtime_r): Include this function
79251         definition in the `#if ! HAVE_TM_GMTOFF' block.
79252
79253         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79254         Include xalloc.h instead.
79255
79256 2001-12-02  Jim Meyering  <meyering@lucent.com>
79257
79258         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79259         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79260         included.
79261
79262         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79263         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79264
79265 2001-11-30  Akim Demaille  <akim@epita.fr>
79266
79267         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79268         before being defined.
79269
79270 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79271
79272         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79273         First arg is int, not unsigned.
79274         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79275         (SIZE_MAX, UINT_MAX): New macros.
79276         (quotearg_n_options): Abort if N is negative.
79277         Avoid overflow check on hosts where size_t is 64 bits and int
79278         is 32 bits, as overflow is impossible there.
79279         Fix off-by-one typo that caused unnecessary reallocation.
79280
79281 2001-11-27  Jim Meyering  <meyering@lucent.com>
79282
79283         * lib/tempname.c: Merge with version from libc.
79284         * lib/regex.c: Likewise.
79285
79286         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79287         systems for which STDC_HEADERS is 0, it was not included, resulting in
79288         a warning about an integer-to-pointer conversion problem with getenv.
79289         Reported by Volker Borchert.
79290
79291 2001-11-26  Jim Meyering  <meyering@lucent.com>
79292
79293         * lib/gtod.h: Remove file.
79294         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79295         * lib/gettimeofday.c: Don't include gtod.h.
79296         (GTOD_init): Remove function.
79297         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79298         Suggestion from Volker Borchert.
79299
79300 2001-11-23  Jim Meyering  <meyering@lucent.com>
79301
79302         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79303         it.
79304         * lib/hash.c (struct hash_table): Define it here instead.
79305
79306 2001-11-22  Jim Meyering  <meyering@lucent.com>
79307
79308         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79309
79310 2001-11-20  Jim Meyering  <meyering@lucent.com>
79311
79312         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79313         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79314
79315 2001-11-19  Jim Meyering  <meyering@lucent.com>
79316
79317         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79318         directory.  Use "conftestXXXXXX" as the template.
79319         Suggestion from Paul Eggert.
79320
79321         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79322         immediately, so the test doesn't mistakenly hit the max-open-files
79323         limit.
79324
79325 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79326
79327         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79328         (TEMPORARIES): New macro.
79329         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79330         removes an artificial limitation (e.g. HP-UX 10.20, where
79331         TMP_MAX is 17576).
79332
79333 2001-11-18  Jim Meyering  <meyering@lucent.com>
79334
79335         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79336
79337 2001-11-18  Jim Meyering  <meyering@lucent.com>
79338
79339         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79340         on SunOS 4.
79341
79342         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79343         files will be created before anything else.
79344
79345 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79346
79347         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79348         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79349
79350 2001-11-17  Jim Meyering  <meyering@lucent.com>
79351
79352         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79353         Prompted by a report from Bob Proulx.
79354
79355         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79356         Instead, require UTILS_FUNC_MKSTEMP.
79357
79358 2001-11-17  Jim Meyering  <meyering@lucent.com>
79359
79360         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79361         Now, that's done as part of AC_FUNC_STRTOD.
79362
79363 2001-11-17  Jim Meyering  <meyering@lucent.com>
79364
79365         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79366         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79367         rather than group writable.  Patch by Juan F. Codagnone.
79368
79369         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79370         xrealloc, Instead, include "xalloc.h".
79371
79372         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79373         Remove explicit declarations of xmalloc, xrealloc,
79374         and xstrdup.  Instead, include "xalloc.h".
79375
79376         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79377         unlocked-io.h.
79378         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79379         Likewise.
79380         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79381
79382         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79383         Reported by Padraig Brady.
79384
79385         * lib/mkstemp.c: #undef mkstemp.
79386         Include config.h.
79387         (rpl_mkstemp): Rename from mkstemp.
79388         Protoize.
79389
79390 2001-11-16  Jim Meyering  <meyering@lucent.com>
79391
79392         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79393         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79394         determine the amount of total physical memory, use pstat_getstatic.
79395         HPUX-11 doesn't define _SC_PHYS_PAGES.
79396         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79397         If sysconf couldn't be used to determine the amount of available
79398         physical memory, use both pstat_getstatic and pstat_getdynamic.
79399         Based on a patch from Bob Proulx.
79400
79401 2001-11-10  Jim Meyering  <meyering@lucent.com>
79402
79403         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79404         (jm_PREREQ): Use it.
79405
79406 2001-11-09  Jim Meyering  <meyering@lucent.com>
79407
79408         * m4/jm-macros.m4: Require autoconf-2.52f.
79409         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79410         Use these AC_-prefixed names, not the AM_-prefixed ones.
79411
79412         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79413
79414 2001-11-05  Jim Meyering  <meyering@lucent.com>
79415
79416         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79417
79418 2001-11-04  Jim Meyering  <meyering@lucent.com>
79419
79420         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79421         $DEFS.
79422
79423 2001-11-03  Jim Meyering  <meyering@lucent.com>
79424
79425         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79426         of AC_DEFUN.
79427
79428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79429         know the name of the variable in the macro definition.
79430
79431 2001-11-03  Jim Meyering  <meyering@lucent.com>
79432
79433         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79434         in argmatch_to_argument call.
79435
79436         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79437         argument.
79438
79439         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79440         e.g., a fault due to an attempt to free a NULL pointer.
79441
79442 2001-11-01  Jim Meyering  <meyering@lucent.com>
79443
79444         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79445         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79446
79447 2001-11-01  Jim Meyering  <meyering@lucent.com>
79448
79449         * lib/dirfd.c, lib/dirfd.h: New files.
79450         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79451
79452         * lib/hash.c (hash_print) [TESTING]: Clean up.
79453
79454 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79455
79456         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79457         to avoid a warning if -Wall.
79458
79459 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79460
79461         * README: New file
79462         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79463         (per RMS's instructions, this is now the canonical source)
79464         * lgpl/, gpl/: New directories.
79465
79466 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79467
79468         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79469
79470 2001-10-21  Jim Meyering  <meyering@lucent.com>
79471
79472         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79473         this code would end up calling gettext even in packages built
79474         with --disable-nls.
79475         * lib/getopt.c (_): Likewise.
79476         * lib/regex.c (_): Likewise.
79477
79478 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79479
79480         * m4/error.m4 (jm_PREREQ_ERROR):
79481         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79482         AC_FUNC_STRERROR_R does that.
79483         Check for strerror declaration.
79484
79485         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79486         are supposed to have them these days.
79487         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79488         Merge changes from latest Autoconf CVS.
79489         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79490         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79491         POSIX decided to standardize on the int flavor of strerror_r.
79492
79493 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79494
79495         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79496         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79497         Use strerror_r that is only a macro, even if it is not a function.
79498         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79499         (private_strerror): Use prototypes, not old-style function definition.
79500         (print_errno_message): New function.
79501         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79502         char*-flavored one.
79503         (error_tail, error, error_at_line): Use it.
79504
79505 2001-10-11  Jim Meyering  <meyering@lucent.com>
79506
79507         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79508         and quote_n (1, ... to avoid clobbering a buffer.
79509
79510 2001-10-05  Jim Meyering  <meyering@lucent.com>
79511
79512         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79513         hash-pjw.h.
79514         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79515         * lib/hash-pjw.h: New file.
79516
79517 2001-09-30  Jim Meyering  <meyering@lucent.com>
79518
79519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79520         `struct fsstat' has the `f_fstypename' member.
79521         Use that to define FS_TYPE, which is now used to make
79522         the getfsstat link test tighter.
79523
79524 2001-09-30  Jim Meyering  <meyering@lucent.com>
79525
79526         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79527         Include <sys/ucred.h>, for Apple Darwin.
79528         Include sys/mount.h and sys/fs_types.h only if available.
79529         (FS_TYPE): Define.
79530         (read_filesystem_list): Use FS_TYPE.
79531
79532 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79533
79534         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79535         a boolean context.
79536
79537 2001-09-29  Jim Meyering  <meyering@lucent.com>
79538
79539         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79540         [one-argument getmntent function]): Include stdio.h before mntent.h.
79541         SunOS 4.1.x needs it for the declaration of `FILE'.
79542         Patch by Volker Borchert.
79543
79544         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79545         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79546         sys/fs_types.h, and make the link-test for getfsstat guard #include
79547         directives with appropriate #if HAVE_*_H tests so that we can
79548         detect getfsstat on Apple Darwin1.3.7 systems.
79549         Reported by Nelson Beebe.
79550         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
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         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79559         Check for strtoul and strtoumax,
79560         as those declarations are made even in the signed case.
79561         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79562         Likewise, for strtol and strtoimax.
79563
79564 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79565
79566         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79567         #defines strtoimax.  Also treat the other strto* functions
79568         like strtoimax.
79569
79570         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79571         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79572         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79573
79574 2001-09-26  Jim Meyering  <meyering@lucent.com>
79575
79576         Most macros in unlocked-io.h had the wrong number of arguments.
79577         * lib/gen-uio: New script.
79578         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79579         * lib/unlocked-io.hin: Remove file.
79580         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79581         rather than trying to embed it here.
79582         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79583         Reported by Padraig Brady.
79584
79585 2001-09-25  Volker Borchert  <bt@teknon.de>
79586
79587         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79588         `result'.
79589
79590 2001-09-24  Jim Meyering  <meyering@lucent.com>
79591
79592         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79593
79594 2001-09-23  Jim Meyering  <meyering@lucent.com>
79595
79596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79597         instead of the mere test for existence of mntent.h.  The latter
79598         would get a false-positive on AIX 3.4 systems.
79599         In the outer getmntent if-block, don't die if neither of the getmntent
79600         tests succeeds.  Instead, just fall through and continue with the
79601         remaining tests.
79602
79603 2001-09-23  Jim Meyering  <meyering@lucent.com>
79604
79605         * lib/mountlist.c: Remove useless parentheses in #if directives.
79606         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79607         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79608
79609 2001-09-22  Jim Meyering  <meyering@lucent.com>
79610
79611         * m4/gettext.m4: New file.  From gettext.
79612         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79613         * m4/progtest.m4: Likewise
79614         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79615         * m4/glibc21.m4: Likewise.
79616
79617         * m4/libintl.m4: Remove.  No longer used.
79618
79619 2001-09-22  Jim Meyering  <meyering@lucent.com>
79620
79621         * lib/localcharset.c: Update from latest gettext.
79622         * lib/config.charset: Likewise.
79623
79624 2001-09-20  Jim Meyering  <meyering@lucent.com>
79625
79626         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79627         strtoimax.
79628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79629         strtoumax.
79630
79631 2001-09-20  Jim Meyering  <meyering@lucent.com>
79632
79633         * lib/xstrtol.c (strtoimax): Guard declaration with
79634         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79635         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79636         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79637         (strtoumax): Likewise, for completeness (it wasn't necessary).
79638
79639 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79640
79641         * lib/strtoimax.c (HAVE_LONG_LONG):
79642         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79643         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79644         to work around bug in IBM C compiler.
79645
79646 2001-09-17  Jim Meyering  <meyering@lucent.com>
79647
79648         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79649         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79650         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79651         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79652         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79653         whenever the right hand side need not be expanded by the shell.
79654
79655 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79656
79657         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79658         library.  It's not correct, as some older glibcs are buggy.
79659         fnmatch wasn't fixed until glibc 2.2.
79660
79661         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79662         special shell magic here.
79663
79664 2001-09-16  Jim Meyering  <meyering@lucent.com>
79665
79666         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79667         * m4/jm-macros.m4: Require it.
79668
79669 2001-09-16  Jim Meyering  <meyering@lucent.com>
79670
79671         * lib/mkdir.c: New file.
79672
79673 2001-09-15  Jim Meyering  <meyering@lucent.com>
79674
79675         * m4/jm-macros.m4: Check for help2man.
79676
79677 2001-09-11  Jim Meyering  <meyering@lucent.com>
79678
79679         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79680         The body, by Paul Eggert, was moved here from configure.in.
79681         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79682
79683 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79684
79685         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79686         (jm_PREREQ): Use it.
79687
79688 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79689
79690         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79691         Use ssize_t, not int, to store result of readlink.
79692         Check for ssize_t overflow as well as size_t overflow,
79693         as POSIX says the result of readlink is implementation-defined
79694         when ssize_t overflows.
79695         Remove unnecessary cast to char*.
79696         Use free+malloc instead of realloc, as the storage doesn't need
79697         to be preserved and it's clearer and can be more efficient that way.
79698         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79699         * lib/xreadlink.h (xreadlink): Update prototype.
79700
79701 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79702
79703         * lib/xgetcwd.c: Revert some of the previous change; intead,
79704         fix the HAVE_GETCWD_NULL code to behave more like the
79705         !HAVE_GETCWD_NULL code used to.
79706
79707         Include "xalloc.h".
79708         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79709         invoke xalloc_die.
79710
79711 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79712
79713         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79714         sys/param.h, as pathmax.h includes them.
79715
79716 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79717
79718         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79719         (jm_PREREQ_XGETCWD): New macro.
79720
79721         * m4/getcwd.m4: New file.
79722
79723 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79724
79725         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79726         like the HAVE_GETCWD_NULL code.
79727         Include pathmax.h if not HAVE_GETCWD.
79728         Do not include xalloc.h.
79729         (INITIAL_BUFFER_SIZE): New symbol.
79730         Do not use xmalloc / xrealloc, since the caller is responsible for
79731         handling errors.  Preserve errno around `free' during failure.
79732         Do not overrun buffer when using getwd.
79733
79734 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79735
79736         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79737         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79738         getcwd (NULL, 0).
79739
79740 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79741
79742         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79743         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79744         spotted by Jim Meyering.
79745
79746 2001-09-03  Jim Meyering  <meyering@lucent.com>
79747
79748         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79749         failure.
79750
79751 2001-09-02  Jim Meyering  <meyering@lucent.com>
79752
79753         * lib/error.c: Update from GNU libc.
79754
79755 2001-09-01  Jim Meyering  <meyering@lucent.com>
79756
79757         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79758         Used by df.
79759
79760 2001-09-01  Jim Meyering  <meyering@lucent.com>
79761
79762         * lib/xreadlink.c: New file.
79763         * lib/xreadlink.h: New file.
79764         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79765         xreadlink.h.
79766
79767         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79768         doesn't conflict with sparc Solaris 7's definition in
79769         /usr/include/sys/int_types.h.
79770
79771         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79772         files.
79773         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79774         and strncasecmp as r-values.  Unixware didn't have declarations.
79775
79776 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79777
79778         * lib/xstrtol.h: Add copyright notice.
79779         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79780         LONGINT_INVALID_SUFFIX_CHAR.
79781
79782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79783
79784         * lib/xstrtol.c (strtoimax): New decl.
79785
79786 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79787
79788         * lib/xgetcwd.c: Don't include pathmax.h.
79789         Include stdlib.h and unistd.h if available.
79790         Include xalloc.h.
79791         (xmalloc, xstrdup, free): Remove decls.
79792         (xgetcwd): Don't assume sizes fit in unsigned.
79793         Check for overflow when computing sizes.
79794         Simplify reallocation code.
79795
79796 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79797
79798         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79799         a directory's st_size can have an arbitrary value, so the old
79800         usage could waste an arbitrary amount of memory.  All uses
79801         changed.
79802         * lib/savedir.h: Update prototype.
79803
79804 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79805
79806         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79807
79808         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79809         old strtoimax.c.
79810
79811         Also, make the following further changes to make this file's
79812         configuration more similar to that of strtol.c:
79813         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79814         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79815         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79816         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79817         changed to signed values.
79818
79819         And make the following changes as well:
79820         Fix copyright notice, as 1999 was missing.
79821         (verify): New macro.
79822         (strtoimax): Check sizes at compile-time, not run-time.
79823         Prefer strtol to strtoll if both work.
79824         (main): Remove; it was not that useful and was a pain to maintain.
79825
79826         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79827
79828 2001-08-31  Jim Meyering  <meyering@lucent.com>
79829
79830         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79831         Use an initial, malloc'd, buffer of length 128 rather than
79832         a statically allocated one of length 1024.
79833
79834 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79835
79836         Simplify code, partly by assuming autoconf 2.52 semantics.
79837
79838         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79839
79840         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79841         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79842         All uses removed.
79843         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79844         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79845         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79846         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79847         jm_AC_HEADER_INTTYPES_H.
79848         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79849
79850         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79851
79852         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79853         Quote first arg of AC_DEFUN.
79854         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79855         since they are needed to parse the include file even if we need
79856         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79857         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79858         but with opposite signedness.
79859
79860 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79861
79862         Merge 'exclude' changes from tar 1.13.22.
79863         This fixes one or two unlikely storage allocation overflow bugs,
79864         but doesn't change user-visible behavior otherwise.
79865
79866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79867
79868         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79869         (jm_PREREQ_EXCLUDE): New macro.
79870
79871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79872
79873         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79874         tm to be declared.
79875
79876 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79877
79878         * lib/hash.c: Remove '2001' from copyright notice.
79879
79880 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79881
79882         * lib/full-write.h: New file.
79883         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79884         * lib/full-write.c: Correct credits, as cccp.c no longer
79885         exists and anyway it was so heavily changed from the old cccp
79886         code as to be unrecognizable.  Include full-write.h.
79887         (full_write): Return size_t, with short writes meaning failure.
79888         All callers changed.  This fixes a bug with large buffers
79889         on 64-bit hosts.
79890         * lib/utime.c: Include full-write.h.
79891
79892 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79893
79894         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79895         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79896         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79897         Include if available.
79898         (<xalloc.h>): Include
79899         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79900         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79901         collide with FNM macros.
79902         (struct patopts): New struct.
79903         (struct exclude): Use it, as exclude patterns now come with options.
79904         (new_exclude): Support above changes.
79905         (new_exclude, add_exclude_file):
79906         Initial size must now be a power of two to simplify overflow checking.
79907         (free_exclude, fnmatch_no_wildcards): New function.
79908         (excluded_filename): No longer requires options arg, as the options
79909         are determined by add_exclude.  Now returns bool, not int.
79910         (excluded_filename, add_exclude):
79911         Add support for the fancy new exclusion options.
79912         (add_exclude, add_exclude_file): Now takes int options arg.
79913         Check for arithmetic overflow when computing sizes.
79914         (add_exclude_file): xrealloc might modify errno, so don't
79915         realloc until after errno might be used.
79916
79917         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79918         New macros.
79919         (free_exclude): New decl.
79920         (add_exclude, add_exclude_file): Now takes int options arg.
79921         (excluded_filename): No longer requires options arg, as the options
79922         are determined by add_exclude.  Now returns bool, not int.
79923
79924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79925
79926         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79927
79928 2001-08-27  Jim Meyering  <meyering@lucent.com>
79929
79930         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79931
79932         * lib/version-etc.c (N_): Remove definition.
79933         Revert most of last change.
79934         Instead, simply don't mark the `Copyright...' string for translation.
79935         Based on advice from Paul Eggert.
79936
79937         * lib/strtoxmax.c: Tweak comment.
79938
79939 2001-08-26  Jim Meyering  <meyering@lucent.com>
79940
79941         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79942
79943         * m4/xstrtoimax.m4: New file.
79944         * m4/xstrtoumax.m4: Add comments explaining why we
79945         AC_REPLACE_FUNCS(strtol).
79946
79947 2001-08-26  Jim Meyering  <meyering@lucent.com>
79948
79949         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79950         of copyright with `%s' so translators don't get an untranslated
79951         message in 2002.
79952         (COPYRIGHT_YEAR): Define.
79953         (version_etc): Use fprintf rather than fputs.
79954         Suggestion from Ulrich Drepper.
79955
79956         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79957
79958         * lib/strtoll.c: New file, from GNU libc.
79959         * lib/xstrtoimax.c: New file.
79960
79961         * lib/xstrtol.h: Add xstrtoimax.
79962         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79963         * lib/strtoimax.c: New file.  Likewise, but first define
79964         STRTOUXMAX_SIGNED.
79965
79966         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79967         ...
79968         * lib/strtoxmax.c: ... then renamed to this.
79969
79970 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79971
79972         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79973         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79974         (jm_AC_TYPE_INTMAX_T): New macro.
79975         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79976
79977         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79978
79979         * m4/longlong.m4: Renamed from ulonglong.m4.
79980         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79981         * m4/uintmax_t.m4: Removed.
79982
79983 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79984
79985         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79986         Port to Solaris 8, where 'sed' requires a space after the 'r'
79987         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79988         Redirect output to $tmp just once.
79989
79990 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79991
79992         * lib/addext.c (<errno.h>): Include.
79993         (errno): Declare if not defined.
79994         (addext): Work correctly when pathconf returns -1 and leaves
79995         errno alone because there is no limit.  Also, work even if
79996         pathconf returns a value greater than SIZE_MAX.
79997
79998 2001-08-12  Jim Meyering  <meyering@lucent.com>
79999
80000         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80001         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80002         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80003         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80004         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80005         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80006         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80007         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80008         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80009         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80010         utime.m4, utimes.m4, xstrtoumax.m4:
80011         Quote the first argument in each use of AC_DEFUN.
80012
80013 2001-08-12  Jim Meyering  <meyering@lucent.com>
80014
80015         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80016         Simply `return getcwd (NULL, 0);'.
80017         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80018         Use 1300 as initial value for length, not PATH_MAX.
80019
80020         * lib/pathmax.h: Clean up cpp syntax.
80021
80022 2001-08-12  Jim Meyering  <meyering@lucent.com>
80023
80024         * lib/gettimeofday.c: New file.
80025         * lib/gtod.h: New file.
80026         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80027
80028 2001-08-05  Jim Meyering  <meyering@lucent.com>
80029
80030         * m4/jm-macros.m4: Require autoconf-2.52.
80031
80032 2001-08-04  Jim Meyering  <meyering@lucent.com>
80033
80034         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80035         stmt, to get in sync with glibc.
80036
80037 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80038
80039         The following changes are from gettext 0.10.39 as maintained by
80040         Bruno Haible.
80041
80042         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80043         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80044         with inverted sense.  All uses changed.
80045
80046         * lib/mbswidth.c: Don't include <limits.h>.
80047         Include <stdlib.h> and <string.h> unconditionally.
80048         (iswcntrl, mbsinit, ISCNTRL): New macros.
80049         (mbsnwidth): Use K&R style function declarations.
80050         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80051         can optimize it when MB_CUR_MAX == 1.
80052         The width of control characters is zero, not 1.
80053
80054 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80055
80056         The following changes are from gettext 0.10.39 as maintained by
80057         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80058
80059         * m4/codeset.m4: Upgrade to serial AM1.
80060         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80061         all uses changed.  Quote first arg of AC_DEFUN.
80062         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80063
80064         * m4/iconv.m4: Upgrade to serial AM2.
80065         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80066         Add --with-libconv-prefix.
80067         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80068         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80069         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80070         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80071         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80072
80073         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80074         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80075         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80076         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80077         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80078         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80079         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80080         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80081         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80082
80083         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80084         string.h any more.
80085
80086         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80087         not the default value.
80088
80089         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80090         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80091         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80092         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80093         Also check for iswcntrl, used for wcwidth fallback.
80094         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80095         to Autoconf 2.13.
80096
80097 2001-08-03  Jim Meyering  <meyering@lucent.com>
80098
80099         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80100         as it was in the original.  Reported by Paul Eggert.
80101
80102 2001-07-16  Jim Meyering  <meyering@lucent.com>
80103
80104         * m4/gettimeofday.m4: New file.
80105         Prompted by a report from Bernhard Baehr.
80106
80107 2001-07-15  Jim Meyering  <meyering@lucent.com>
80108
80109         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80110         stuff. Now it's in ../Makefile.cfg.
80111
80112 2001-07-15  Jim Meyering  <meyering@lucent.com>
80113
80114         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80115         (BUILT_SOURCES): Add unlocked-io.h.
80116         (io_functions): Define.
80117         (unlocked-io.h): New rule.
80118         (DISTCLEANFILES): Add unlocked-io.h.
80119         (all-local): Depend on unlocked-io.h, to ensure it is created.
80120
80121         * lib/unlocked-io.hin: New file
80122
80123         * lib/regex.c: Update from glibc.
80124
80125 2001-07-05  Jim Meyering  <meyering@lucent.com>
80126
80127         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80128         recommendation.
80129         (libfetish_a_SOURCES): Put all .h files here instead.
80130         Remove a thus-exposed (better checks in automake) duplicate and
80131         two unnecessary .h files.
80132
80133 2001-07-04  Jim Meyering  <meyering@lucent.com>
80134
80135         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80136         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80137         distcheck failure.
80138
80139 2001-07-02  Jim Meyering  <meyering@lucent.com>
80140
80141         The following changes were prompted by suggestions from Bruno Haible.
80142
80143         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80144         is now generated.
80145         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80146         definition of EXTRA_DIST.
80147         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80148         ensure that the generated file is created/updated whenever the list
80149         of $(unlocked_functions) is changed.
80150         (jm-glibc-io.m4): New rule.
80151         (unlocked-io.h): New rule -- currently unused.
80152
80153 2001-06-24  Jim Meyering  <meyering@lucent.com>
80154
80155         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80156         unmatched right bracket, rather than kludging it with an extra,
80157         falsely-matching quote in a comment.  Patch by Akim Demaille.
80158
80159 2001-06-11  Jim Meyering  <meyering@lucent.com>
80160
80161         * lib/regex.c: Update from GNU libc.
80162
80163 2001-05-27  Jim Meyering  <meyering@lucent.com>
80164
80165         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80166         Check for ut_type in struct utmp.
80167
80168 2001-05-27  Jim Meyering  <meyering@lucent.com>
80169
80170         * lib/readutmp.h (UT_TYPE): Define.
80171
80172 2001-05-24  Jim Meyering  <meyering@lucent.com>
80173
80174         * lib/argmatch.c: Include "quote.h".
80175         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80176         quote function.  Reported by Göran Uddeborg.
80177
80178 2001-05-22  Jim Meyering  <meyering@lucent.com>
80179
80180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80181         now that we use the package-supplied version unconditionally.
80182         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80183
80184 2001-05-21  Jim Meyering  <meyering@lucent.com>
80185
80186         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80187         shell syntax errors.
80188
80189 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80190
80191         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80192
80193 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80194
80195         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80196         Don't bother to check library strftime, since
80197         we'll be using our own my_strftime function anyway.
80198         Define my_strftime instead of strftime.
80199
80200 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80201
80202         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80203         which is not yet declared.
80204
80205 2001-05-15  Jim Meyering  <meyering@lucent.com>
80206
80207         * m4/regex.m4: Use proper quoting so brackets appear in the test
80208         program.
80209         Reported by, and with help from, Bruno Haible.
80210
80211 2001-05-13  Jim Meyering  <meyering@lucent.com>
80212
80213         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80214         undefined.
80215
80216 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80217
80218         dirname code cleanup.  base_name now behaves more compatibly
80219         with POSIX basename when given file names that have trailing
80220         slashes, and similarly for dir_name.  Add new primitives
80221         base_len and dir_len.  Put the directory-name-related decls
80222         into dirname.h.
80223
80224         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80225         * lib/backupfile.c (base_name): Likewise.
80226         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80227         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80228         * lib/makepath.c (strip_trailing_slashes): Likewise.
80229         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80230         ISSLASH): Likewise.
80231         * lib/rename.c (strip_trailing_slashes): Likewise.
80232         * lib/same.c (base_name): Likewise.
80233         * lib/stripslash.c (ISSLASH): Likewise.
80234
80235         * lib/addext.c: Include <dirname.h> after size_t is defined.
80236         * lib/backupfile.c: Likewise.
80237
80238         * lib/addext.c (addext): Use base_len to trim redundant
80239         trailing slashes instead of doing it ourselves.
80240         But do not trim the last slash if it is not redundant.
80241
80242         * lib/backupfile.c (find_backup_file_name,
80243         max_backup_version): Use base_len instead of rolling it ourselves.
80244         Handle the case of "" and (on DOS) "C:" correctly.
80245
80246         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80247         needed. Include <string.h>, <dirname.h>.
80248         (base_name): Allow file names ending in slashes, other than names
80249         that are all slashes.  In this case, return the basename followed
80250         by the slashes.  This is more general, and can be used in places
80251         where the original base_name purposely had an assertion failure.
80252         (base_len): New function.
80253
80254         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80255         Do not include <assert.h>; no longer needed.
80256         Include xalloc.h.
80257         (memrchr): Remove decl.
80258         (dir_name_r): Remove.
80259         (dir_len): Renamed from dirlen.  All callers changed.
80260         Rewrite in terms of base_name, for simplicity and consistency.
80261         (dir_name): Never return NULL.  All callers changed.
80262         Do not include <stdlib.h> in test program; no longer needed.
80263         return 0; is fine for test program.
80264
80265         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80266         New macros.
80267         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80268
80269         * lib/path-concat.c (path_concat): Use base_len to compute
80270         base length, not strlen; this means we cannot rely on memcpy
80271         to null-terminate.
80272
80273         * lib/same.c (STREQ): Remove.
80274         (same_name): Handle the case where the basename ends in trailing '/'.
80275
80276         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80277         a slash was stripped.  Do not strip the last slash after a
80278         file system prefix.
80279
80280 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80281
80282         * lib/Makefile.am (libfetish_a_SOURCES):
80283         Add strftime.c, since we now compile it on all hosts.
80284
80285         * lib/strftime.c (my_strftime):
80286         Define to nstrftime if emacs, but only if my_strftime is not defined.
80287         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80288         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80289         Add one more extra argument: a nanoseconds value.
80290         All uses changed.
80291         (ns): New macro.
80292         (my_strftime function): Add %N format.
80293         (emacs_strftimeu): Renamed from emacs_strftime,
80294         with extra ut argument.
80295
80296 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80297
80298         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80299
80300 2001-04-21  Jim Meyering  <meyering@lucent.com>
80301
80302         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80303         doesn't interfere.
80304
80305 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80306
80307         * m4/ftruncate.m4: Check for chsize.
80308         Link with ftruncate.o unconditionally if ftruncate is missing.
80309         This was required when cross-compiling to i586-mingw32msvc.
80310
80311 2001-04-08  Jim Meyering  <meyering@lucent.com>
80312
80313         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80314         recomputed; that's necessary when the offset spans a DST transition.
80315         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80316
80317 2001-04-02  Jim Meyering  <meyering@lucent.com>
80318
80319         * lib/regex.h, regex.c: Update from GNU libc.
80320
80321 2001-03-24  Jim Meyering  <meyering@lucent.com>
80322
80323         * m4/jm-macros.m4: Require autoconf-2.49d.
80324
80325 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80326
80327         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80328
80329 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80330
80331         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80332
80333 2001-03-17  Jim Meyering  <meyering@lucent.com>
80334
80335         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80336         now that the version in autoconf is equivalent.
80337         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80338
80339         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80340         Suggestion from Akim Demaille.
80341
80342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80343         (jm_PREREQ_TEMPNAME): New function.
80344
80345 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80346
80347         * lib/tempname.c (uint64_t): Define to uintmax_t if
80348         not defined, and if UINT64_MAX is not defined.
80349         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80350         Reported by John David Anglin.
80351
80352 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80353
80354         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80355         resolve alias if codeset is empty.
80356         * lib/config.charset (BeOS): Use wildcard syntax.
80357
80358 2001-03-13  Jim Meyering  <meyering@lucent.com>
80359
80360         * lib/path-concat.c (path_concat)
80361         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80362         concatenating e.g., `C:' and `foo'.
80363         From Bruno Haible.
80364
80365 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80366
80367         * lib/localcharset.c (locale_charset): Don't use
80368         setlocale(LC_CTYPE,NULL). Don't return NULL.
80369         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80370
80371 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80372
80373         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80374         support for DOS/DJGPP.
80375
80376 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80377
80378         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80379         lacks mkstemp.  Compile our own tempname.c if we compile our own
80380         mkstemp.c, as mkstemp relies on tempname.
80381
80382 2001-03-01  Jim Meyering  <meyering@lucent.com>
80383
80384         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80385         AH_VERBATIM really does output its argument verbatim.
80386
80387 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80388
80389         * lib/Makefile.am (libfetish_a_SOURCES):
80390         Add dup-safer.c, fopen-safer.c.
80391         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80392
80393         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80394         * lib/unistd-safer.h: New files.
80395
80396 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80397
80398         The mkstemp replacement is taken from glibc 2.2.2, with some
80399         portability fixes for use outside glibc, as follows:
80400
80401         * lib/tempname.c (struct_stat64): New macro.
80402         (direxists, __gen_tempname): Use it.
80403         This avoids a portability problem with Solaris 8.
80404
80405         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80406         (<stddef.h>, <stdint.h>, <string.h>):
80407         Include only if STDC_HEADERS || _LIBC.
80408         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80409         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80410         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80411         (__set_errno): Define this macro if <errno.h> doesn't.
80412         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80413         Define these macros if <stdio.h> doesn't.
80414         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80415         Define these macros if <sys/stat.h>
80416         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80417         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80418         __xstat64): Define if not _LIBC.
80419         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80420         (__gen_tempname): Invoke gettimeofday only if
80421         HAVE_GETTIMEOFDAY || _LIBC;
80422         otherwise, fall back on plain "time".
80423         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80424
80425         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80426
80427         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80428
80429 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80430
80431         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80432
80433 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80434
80435         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80436         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80437         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80438         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80439
80440 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80441
80442         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80443         Remove workaround macros for hosts that have mbrtowc but not
80444         mbstate_t, as we now insist on proper declarations for both
80445         before using mbrtowc.
80446
80447 2001-02-17  Jim Meyering  <meyering@lucent.com>
80448
80449         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80450         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80451         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80452         UnixWare 7.1.1.
80453
80454         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80455         rather than AC_CACHE_VAL.
80456
80457 2001-02-17  Jim Meyering  <meyering@lucent.com>
80458
80459         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80460         around included file name.
80461
80462         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80463
80464         * lib/strftime.c: Update from GNU libc (the only changes were to
80465         comments).
80466
80467 2001-02-17  Jim Meyering  <meyering@lucent.com>
80468
80469         * lib/regex.c: Update from libc.
80470
80471 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80472
80473         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80474         clash.
80475
80476 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80477
80478         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80479         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80480         Reported by Mark Hounschell via Paul Eggert.
80481
80482 2001-02-07  Jim Meyering  <meyering@lucent.com>
80483
80484         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80485
80486 2001-02-05  Jim Meyering  <meyering@lucent.com>
80487
80488         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80489         it includes the patch required for `large file' support with at least
80490         HP-UX's 10.20 /bin/cc.
80491
80492 2001-02-03  Jim Meyering  <meyering@lucent.com>
80493
80494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80495         AS_IF, now that it works once again (mysteriously).
80496         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80497
80498 2001-01-30  Jim Meyering  <meyering@lucent.com>
80499
80500         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80501         * m4/chown.m4: Rename conftestchown to conftest.chown.
80502         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80503         s/conftestdir2/conftest.d2/.
80504         * m4/utimes.m4: s/conftestdata/conftest.data/
80505         Inspired by Pavel Roskin's change in autoconf.
80506
80507 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80508
80509         * lib/config.charset: Update for FreeBSD 4.2.
80510
80511 2001-01-27  Jim Meyering  <meyering@lucent.com>
80512
80513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80514         a use of AS_IF.
80515         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80516
80517 2001-01-26  Jim Meyering  <meyering@lucent.com>
80518
80519         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80520         quotearg.c includes it.
80521
80522 2001-01-26  Jim Meyering  <meyering@lucent.com>
80523
80524         * lib/quotearg.c: Include stddef.h.
80525         * lib/quote.c: Include stddef.h.
80526         Reported by Axel Kittenberger.
80527
80528         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80529         line in double quotes so that it evokes a better diagnostic.
80530         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80531         Reported by Axel Kittenberger.
80532
80533 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80534
80535         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80536         as if it was a `charset'.
80537
80538 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80539
80540         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80541         has const.
80542
80543 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80544
80545         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80546         to avoid a warning.  Add back 'const' to inptr.
80547
80548 2001-01-20  Jim Meyering  <meyering@lucent.com>
80549
80550         Be sure that headers are checked before used in code compiled
80551         for the type checks.
80552         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80553         In place of that, invoke jm_CHECK_ALL_TYPES.
80554         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80555         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80556         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80557         The check for ssize_t was mistakenly run before the test for unistd.h.
80558
80559         The configure-time check for stdbool.h was missing.
80560         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80561         (jm_PREREQ_HASH): New function.
80562
80563 2001-01-17  Jim Meyering  <meyering@lucent.com>
80564
80565         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80566         for autoconf-2.49c.
80567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80568
80569 2001-01-16  Jim Meyering  <meyering@lucent.com>
80570
80571         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80572         From Bruno Haible.
80573
80574 2001-01-14  Jim Meyering  <meyering@lucent.com>
80575
80576         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80577         foo and bar.  Create conftestdir/ in the script, not in the C code.
80578         Remove directories in the script, not in the C code.
80579         Remove conftestdir{,2} before trying to create the directory.
80580         Make the entire configure script fail if the mkdir fails.
80581
80582 2001-01-14  Jim Meyering  <meyering@lucent.com>
80583
80584         * lib/rename.c: New file.  From Volker Borchert.
80585         Include stdlib.h, string.h or strings.h, and xalloc.h.
80586         Use strip_trailing_slashes rather than open-coding it.
80587
80588 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80589
80590         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80591
80592 2001-01-03  Jim Meyering  <meyering@lucent.com>
80593
80594         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80595         of local `inptr' to avoid warning with some system declarations of
80596         iconv.
80597
80598 2001-01-02  Volker Borchert  <bt@teknon.de>
80599
80600         * m4/rename.m4: New file.
80601         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80602
80603 2001-01-01  Jim Meyering  <meyering@lucent.com>
80604
80605         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80606         even on systems with utmpx.h.  It's necessary for the declaration of
80607         utmp's ut_user member.  Reported by Andreas Jaeger.
80608
80609         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80610         available. They are required for the declarations of getgrgid and
80611         getpwuid resp.
80612         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80613         Reported by Andreas Jaeger.
80614
80615 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80616
80617         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80618         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80619         so `make install' also works in VPATH builds.
80620
80621 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80622
80623         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80624         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80625         can be used in subdirectories.
80626
80627 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80628
80629         * lib/modechange.c: Do not assume that mode_t uses the
80630         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80631         the other-execute bit of FOO even if S_IXOTH != 1.
80632
80633         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80634         WOTH, XOTH, ALLM): New macros.
80635         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80636          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80637         Use them.
80638         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80639         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80640         (mode_compile):
80641         No need to use uintmax_t; unsigned long is long enough.
80642         Don't bother to get suffix since we don't use it.
80643
80644 2000-12-26  Jim Meyering  <meyering@lucent.com>
80645
80646         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80647         better with autoheader.
80648
80649 2000-12-24  Jim Meyering  <meyering@lucent.com>
80650
80651         * lib/hash.c (is_prime): Return explicit boolean values.
80652         (hash_get_first): Return NULL to appease Irix5.6's 89.
80653         Reported by Nelson Beebe.
80654
80655 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80656
80657         * lib/localcharset.c (locale_charset): Add support for Win32.
80658
80659 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80660
80661         * lib/physmem.h, lib/physmem.c: New files.
80662
80663         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80664         (noinst_HEADERS): Add physmem.h.
80665
80666         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80667         't' for compatibility with Solaris 8 sort.
80668
80669 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80670
80671         * lib/config.charset: Add support for BeOS.
80672
80673 2000-12-17  Jim Meyering  <meyering@lucent.com>
80674
80675         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80676         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80677
80678 2000-12-16  Jim Meyering  <meyering@lucent.com>
80679
80680         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80681         N and M) would have treated it like `chown N:N FILE'.
80682
80683         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80684
80685 2000-12-16  Jim Meyering  <meyering@lucent.com>
80686
80687         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80688         SHELLS_FILE to a file name that's useful on djgpp systems.
80689         Include stdlib.h.
80690         (ADDITIONAL_DEFAULT_SHELLS): Define.
80691         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80692         Based mostly on a patch from Prashant TR.
80693
80694 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80695
80696         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80697         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80698         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80699
80700 2000-12-08  Andreas Schwab  <schwab@suse.de>
80701
80702         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80703         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80704
80705 2000-12-07  Jim Meyering  <meyering@lucent.com>
80706
80707         * lib/stripslash.c (ISSLASH): Define.
80708         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80709         `/'.
80710         From Prashant TR.
80711
80712         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80713         (dir_name_r): Declare this function as static.
80714         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80715         manifest itself on a name containing a mix of slashes and
80716         backslashes.
80717         Make this function work with names starting with a DOS-style
80718         drive letter and colon prefix.
80719         (dir_name): Append `.' if necessary.
80720         Based mostly on patches from Prashant TR and Eli Zaretskii.
80721
80722         * lib/dirname.h (dir_name_r): Remove prototype.
80723
80724 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80725
80726         * m4/off_t-format.m4: Remove this file.
80727         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80728
80729 2000-12-06  Jim Meyering  <meyering@lucent.com>
80730
80731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80732         replacement strtoull, we may well need the replacement strtoul, too.
80733         Check for declarations of strtoul and strtoull.
80734         Check for strtol.  Mainly as a cue to cause automake to include
80735         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80736         Check for limits.h -- strtol.c needs it.
80737
80738 2000-12-05  Jim Meyering  <meyering@lucent.com>
80739
80740         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80741
80742 2000-12-04  Jim Meyering  <meyering@lucent.com>
80743
80744         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80745         Also include memory.h, stdlib.h, unistd.h if appropriate.
80746         Reported by Andreas Jaeger (conflicting declaration of malloc).
80747
80748 2000-12-02  Jim Meyering  <meyering@lucent.com>
80749
80750         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80751         * m4/jm-macros.m4 (jm_MACROS): require it.
80752
80753 2000-12-02  Jim Meyering  <meyering@lucent.com>
80754
80755         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80756
80757 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80758
80759         * lib/memrchr.c: Include <config.h> before any system include file.
80760
80761 2000-11-30  Jim Meyering  <meyering@lucent.com>
80762
80763         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80764
80765 2000-11-30  Jim Meyering  <meyering@lucent.com>
80766
80767         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80768
80769 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80770
80771         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80772
80773 2000-11-26  Jim Meyering  <meyering@lucent.com>
80774
80775         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80776
80777 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80778
80779         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80780         size of (size_t) -1; it's not portable.
80781
80782 2000-11-17  Jim Meyering  <meyering@lucent.com>
80783
80784         * lib/strstr.c: Update from GNU libc.
80785
80786 2000-11-17  Akim Demaille  <akim@epita.fr>
80787
80788         * lib/obstack.h: Formatting changes.
80789         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80790         prevent type checking.
80791         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80792         cast the value to (void *): assigning a `foo *' to a `void *'
80793         variable is valid.
80794         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80795
80796 2000-11-16  Jim Meyering  <meyering@lucent.com>
80797
80798         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80799
80800 2000-11-11  Jim Meyering  <meyering@lucent.com>
80801
80802         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80803
80804 2000-11-10  Jim Meyering  <meyering@lucent.com>
80805
80806         * lib/obstack.h: Update from GNU libc.
80807         * lib/obstack.c: Likewise.
80808
80809 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80810
80811         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80812
80813 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80814
80815         * lib/getusershell.c (setusershell): Use rewind rather than
80816         fseek/fseeko, to avoid configuration hassles with fseeko.
80817         Don't bother opening SHELLS_FILE if shellstream is NULL;
80818         it's not necessary.
80819
80820 2000-11-05  Jim Meyering  <meyering@lucent.com>
80821
80822         * lib/makepath.h (make_dir): Declare.
80823         * lib/makepath.c (make_dir): Remove `static' attribute.
80824         Tweak a comment.
80825
80826 2000-11-04  Jim Meyering  <meyering@lucent.com>
80827
80828         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80829
80830 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80831
80832         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80833         last one in a bucket, advance to the next bucket.
80834
80835 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80836
80837         * lib/fnmatch.c: Do not comment out all the code if we are using
80838         the GNU C library, because in some cases we are replacing buggy
80839         code in the GNU C library itself.
80840
80841 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80842
80843         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80844         (regex_compile): Catch bogus \(\1\).
80845
80846 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80847
80848         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80849         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80850         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80851
80852 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80853
80854         * lib/error.h, getline.h, modechange.h:
80855         Remove "2000" from Copyright line, as the file hasn't been
80856         changed this year other than in the copyright notice.
80857
80858         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80859         was changed this year.
80860
80861 2000-10-29  Jim Meyering  <meyering@lucent.com>
80862
80863         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80864         renaming.
80865         * m4/ls-mntd-fs.m4: Likewise
80866
80867 2000-10-29  Jim Meyering  <meyering@lucent.com>
80868
80869         * lib/xstat.in: Fix grammar in comment.
80870
80871 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80872
80873         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80874         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80875         doesn't define __restrict_arr.
80876
80877 2000-10-28  Jim Meyering  <meyering@lucent.com>
80878
80879         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80880         (jm_PREREQ_MEMCHR): New function.
80881
80882 2000-10-28  Jim Meyering  <meyering@lucent.com>
80883
80884         * lib/memchr.c: Update from libc.
80885         Adjust for portability:
80886         [HAVE_STDLIB_H]: Include stdlib.h.
80887         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80888         Undef __memchr, too.
80889         [!weak_alias]: Define __memchr to memchr.
80890
80891         * lib/regex.c: Update from libc.
80892         * lib/regex.h: Likewise.
80893         * lib/getopt1.c: Likewise.
80894         * lib/memcmp.c: Likewise.
80895
80896         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80897         Avoid using fseek, when possible -- it's broken by design.
80898         Patch by Ulrich Drepper.
80899
80900 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80901
80902         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80903         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80904         Giving in to popular pressure to shut up the compiler with casts.
80905
80906 2000-10-26  Jim Meyering  <meyering@lucent.com>
80907
80908         * lib/strftime.c: Update from libc.
80909
80910 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80911
80912         * regex.c: More `unsigned char' -> `re_char' changes.
80913         Also change several `int' into `re_wchar_t'.
80914         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80915         (PUSH_FAILURE_POINTER): Don't cast any more.
80916         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80917         We want GCC to complain, since this piece of code makes
80918         re_match non-reentrant, which *should* be fixed.
80919         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80920         (EXTEND_BUFFER): Use RETALLOC.
80921         (SET_LIST_BIT): Don't cast.
80922         (re_wchar_t): New type.
80923         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80924         that those two functions will always properly return.
80925         (IMMEDIATE_QUIT_CHECK): Cast to void.
80926         (analyse_first): Use recursion rather than an explicit stack.
80927         (re_compile_fastmap): Can't fail anymore.
80928         (re_search_2): Don't check re_compile_fastmap for failure.
80929         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80930         Now also sets the new value (passed in a new argument).
80931         (re_match_2_internal): Use it.
80932         Also, use a new var `reg' of type size_t when looping through regs
80933         rather than reuse the inappropriate `mcnt'.
80934
80935 2000-10-25  Jim Meyering  <meyering@lucent.com>
80936
80937         * lib/obstack.c: Update from libc.
80938
80939 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80940
80941         * regex.c (regex_compile): Change the way of handling a range from
80942         a char less than 256 to a char not less than 256.
80943
80944 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80945
80946         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80947         NT-Emacs only.
80948         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80949         so that re_search functions only quit when callers expect them to.
80950
80951 2000-10-23  Jim Meyering  <meyering@lucent.com>
80952
80953         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80954         wrong.  That set_locale call must not have any side effects.
80955         From Paul Eggert.
80956
80957 2000-10-22  Jim Meyering  <meyering@lucent.com>
80958
80959         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80960         [CYCLIC]: Remove now-unused definition.
80961
80962         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80963         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80964         Suggestion from Ulrich Drepper.
80965
80966 2000-10-21  Jim Meyering  <meyering@lucent.com>
80967
80968         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80969         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80970         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80971
80972 2000-10-21  Jim Meyering  <meyering@lucent.com>
80973
80974         * lib/dirname.c (memrchr): Declare if necessary.
80975         (dir_name): Remove the restriction that there be no
80976         trailing slashes.  Now, this code skips past them, effectively
80977         ignoring them.
80978         [TEST_DIRNAME] (main): New unit tests.
80979
80980         * lib/memrchr.c: New file from GNU libc.
80981         Undef __memrchr, too.
80982         [!weak_alias]: Define __memrchr to memrchr.
80983         Guard weak_alias use with `#ifdef weak_alias'.
80984
80985 2000-10-21  Jim Meyering  <meyering@lucent.com>
80986
80987         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80988         (dir_name): Use dir_name_r.
80989         * lib/dirname.h (dir_name_r): Declare it.
80990
80991 2000-10-17  Jim Meyering  <meyering@lucent.com>
80992
80993         * lib/quote.h (PARAMS): Define and use.
80994         Reported by Akim Demaille.
80995
80996         * lib/getopt.c: Update from libc.
80997
80998 2000-10-16  Jim Meyering  <meyering@lucent.com>
80999
81000         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81001         setlocale.
81002         From Jan Fedak.
81003
81004 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81005
81006         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81007
81008 2000-09-25  Jim Meyering  <meyering@lucent.com>
81009
81010         * lib/md5.h (rol): Define (from GnuPG).
81011
81012         * lib/sha.c: Give credit (GnuPG) where due.
81013         (M): Use rol rather than open-coding it.
81014         Add a FIXME comment.
81015
81016 2000-09-21  Jim Meyering  <meyering@lucent.com>
81017
81018         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81019         Reported by Michael Stone.
81020
81021 2000-09-20  Jim Meyering  <meyering@lucent.com>
81022
81023         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81024         (noinst_HEADERS): Add sha.h.
81025         Based on code from Scott G. Miller and from GnuPG.
81026
81027 2000-09-18  Jim Meyering  <meyering@lucent.com>
81028
81029         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81030         LIBS. Otherwise, everyone ends up linking with -lelf for some
81031         configurations.
81032         Reported by Mike Stone.
81033
81034 2000-09-15  Jim Meyering  <meyering@lucent.com>
81035
81036         * lib/regex.c: Update from libc.
81037
81038 2000-09-10  Jim Meyering  <meyering@lucent.com>
81039
81040         * lib/getopt.c (_getopt_internal): Update from glibc.
81041
81042 2000-09-09  Jim Meyering  <meyering@lucent.com>
81043
81044         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81045         think it should be used as a general replacement for isascii.
81046         * lib/fnmatch.c: Likewise.
81047         * lib/mbswidth.c: Likewise
81048         * lib/regex.c: Likewise.
81049
81050         Don't use atoi.
81051         * lib/userspec.c: Include sys/param.h and limits.h.
81052         Include xstrtol.h.
81053         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81054         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81055         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81056         UID, GID.  Check range.
81057
81058 2000-09-06  Jim Meyering  <meyering@lucent.com>
81059
81060         * lib/getopt.c (_getopt_internal): Update from glibc.
81061
81062 2000-08-30  Jim Meyering  <meyering@lucent.com>
81063
81064         * lib/strftime.c: Merge in changes from GNU libc.
81065
81066 2000-08-26  Jim Meyering  <meyering@lucent.com>
81067
81068         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81069         * m4/fpending.m4: New file.
81070
81071 2000-08-26  Jim Meyering  <meyering@lucent.com>
81072
81073         * lib/closeout.c: Include "__fpending.h".
81074         (close_stdout_status): Return right away if there's nothing to flush.
81075
81076         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81077         * lib/__fpending.c: New file.
81078         * lib/__fpending.h: New file.
81079
81080 2000-08-20  Jim Meyering  <meyering@lucent.com>
81081
81082         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81083         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81084         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81085
81086 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81087
81088         Improve fileutils installation on systems where running
81089         programs (like install) can't be unlinked.
81090         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81091         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81092
81093 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81094
81095         Standardize on "memory exhausted" instead of "Memory exhausted"
81096         or "virtual memory exhausted".
81097         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81098         "virtual memory exhausted".
81099         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81100         our own message.
81101         * lib/userspec.c (parse_user_spec): Likewise.
81102         * lib/bumpalloc.h: comment fix
81103         * lib/same.c, userspec.c: Include xalloc.h.
81104
81105         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81106         not char *const and pointing to a constant array.
81107         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81108         (xrealloc): Comment fix.
81109
81110         * lib/userspec.c (parse_user_spec):
81111         Don't translate a message until just before returning,
81112         to avoid unnecessary translation.
81113
81114 2000-08-07  Jim Meyering  <meyering@lucent.com>
81115
81116         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81117         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81118         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81119         getgroups.c, gethostname.c, getopt.h, group-member.c,
81120         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81121         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81122         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81123         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81124         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81125         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81126         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81127         yesno.c: Back out Copyright date changes for each file with no change
81128         this year.  This eases coordination with other programs using the same
81129         source code modules.  From Paul Eggert.
81130
81131 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81132
81133         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81134         not char, for compatibility with glibc 2.1.3 strftime.c.
81135
81136 2000-08-03  Greg McGary  <greg@mcgary.org>
81137
81138         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81139         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81140         (EXTEND_BUFFER): Use them.
81141
81142 2000-08-01  Jim Meyering  <meyering@lucent.com>
81143
81144         * lib/dirname.c (ISSLASH): Define.
81145         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81146         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81147         both `\' and `/' may be use as path separators.
81148         Based on a patch from Prashant TR.
81149
81150 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81151
81152         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81153         slot vector a constant, since it might get modified.
81154
81155 2000-07-31  Jim Meyering  <meyering@lucent.com>
81156
81157         * lib/xmalloc.c: Use `virtual memory exhausted', not
81158         `Memory exhausted'.
81159         * lib/obstack.c (print_and_abort): Likewise.
81160
81161 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81162
81163         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81164         buffer, so that the caller can always quote one small
81165         component of a "memory exhausted" message in slot 0.
81166         From a suggestion by Jim Meyering.
81167
81168 2000-07-30  Jim Meyering  <meyering@lucent.com>
81169
81170         * lib/makepath.c (make_path): Quote the other instance, too.
81171
81172         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81173         (STATIC_BUF_SIZE): Define.
81174         (quotearg_n_options): Use only statically allocated storage when
81175         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81176         than STATIC_BUF_SIZE.
81177
81178 2000-07-29  Jim Meyering  <meyering@lucent.com>
81179
81180         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81181         * lib/dirname.c (dir_name): Likewise.
81182
81183         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81184         `/'.
81185
81186         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81187         (dir_name): Assert that there are no trailing slashes.
81188
81189 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81190
81191         * lib/mbswidth.h (mbswidth): Add a flags argument.
81192         (mbswidth): New declaration.
81193         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81194         * lib/mbswidth.c (mbswidth): Add a flags argument.
81195         (mbsnwidth): New function.
81196
81197 2000-07-24  Jim Meyering  <meyering@lucent.com>
81198
81199         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81200
81201 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81202
81203         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81204
81205 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81206
81207         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81208         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81209         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81210         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81211         invoke multibyte primitives.
81212
81213 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81214
81215         * lib/quotearg.c:
81216         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81217         so that mbstate_t is always defined.
81218
81219         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81220         be 1 in at least one GCC installation, and this configuration
81221         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81222         performance on hosts that have mbrtowc but have only unibyte
81223         locales, but I assume these hosts are rare.
81224
81225 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81226
81227         * lib/mbswidth.c (_XOPEN_SOURCE):
81228         Don't define; this causes problems on Solaris 7.
81229         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81230
81231 2000-07-23  Jim Meyering  <meyering@lucent.com>
81232
81233         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81234         too: getgrgid, getpwuid, getuid.
81235
81236 2000-07-23  Jim Meyering  <meyering@lucent.com>
81237
81238         * lib/basename.c (base_name): Add an assertion.
81239
81240 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81241
81242         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81243         shadow its mbsinit function.
81244
81245 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81246
81247         * lib/mbswidth.h: New file.
81248         * lib/mbswidth.c: New file.
81249         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81250         (noinst_HEADERS): Add mbswidth.h.
81251
81252 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81253
81254         * lib/config.charset: Add support for FreeBSD. Improve support for
81255         HP-UX and IRIX 6.
81256
81257 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81258
81259         * m4/mbswidth.m4: New file.
81260         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81261
81262 2000-07-15  Jim Meyering  <meyering@lucent.com>
81263
81264         * lib/makepath.c: Include quote.h.
81265         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81266         corresponding argument in a `quote (...)' call.
81267         Give better diagnostics.
81268
81269         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81270         (noinst_HEADERS): Add quote.h.
81271
81272         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81273         from tar's src/misc.c.
81274         * lib/quote.h: New file.  Prototypes for same.
81275
81276 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81277
81278         From a suggestion by Bruno Haible.
81279         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81280         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81281         to decide whether to define the BeOS workaround macro;
81282         this adjusts to the change to AC_MBSTATE_T.
81283
81284 2000-07-14  Jim Meyering  <meyering@lucent.com>
81285
81286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81287         jm_AC_TYPE_UINTMAX_T.
81288
81289 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81290
81291         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81292
81293         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81294         quotearg_buffer_restyled): Add support for
81295         clocale_quoting_style.  Undo previous change to
81296         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81297         and "{RIGHT QUOTATION MARK}" msgids.
81298
81299 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81300
81301         From a suggestion by Bruno Haible.
81302         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81303         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81304         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81305         and mbstate_t, to a single-part test that simply defines mbstate_t.
81306         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81307         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81308
81309 2000-07-10  Jim Meyering  <meyering@lucent.com>
81310
81311         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81312
81313         * m4/gnu-source.m4: Output to confdefs.h directly.
81314         Suggestion from Akim Demaille.
81315
81316 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81317
81318         The old behavior of quoting `like this' doesn't look good with
81319         newer, ISO-style fonts.  See:
81320         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81321
81322         Instead, quote "like this" by default.  Let the translator
81323         tailor the locale-specific quoting behavior by providing
81324         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81325
81326         * lib/quotearg.c (N_): New macro.
81327         (gettext_default): New function.
81328         (quotearg_buffer_restyled): Use
81329         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81330         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81331
81332 2000-07-09  Jim Meyering  <meyering@lucent.com>
81333
81334         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81335         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81336
81337         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81338         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81339
81340 2000-07-09  Jim Meyering  <meyering@lucent.com>
81341
81342         * lib/Most files: Update copyright dates to include 2000.
81343
81344 2000-07-08  Jim Meyering  <meyering@lucent.com>
81345
81346         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81347         if not defined.
81348         (xgethostname): Remove now-unnecessary #ifdef.
81349         Move declaration of `err' into loop where it's used.
81350
81351 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81352         and Bruno Haible  <haible@clisp.cons.org>
81353
81354         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81355         only if the test for an object-type mbstate_t fails.  This
81356         prevents us from mistakenly reporting that mbstate_t is a
81357         system object type after we "#define mbstate_t int" to work
81358         around its lack.
81359
81360 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81361         and Bruno Haible  <haible@clisp.cons.org>
81362
81363         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81364
81365 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81366
81367         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81368         to strerror_r.
81369         Include <ctype.h> for use of isalpha.
81370
81371 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81372
81373         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81374         by allocating a larger buffer. Test the gethostname return value for
81375         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81376         returns an error and ENAMETOOLONG isn't defined.
81377
81378 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81379
81380         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81381         dimension.
81382
81383 2000-07-04  Jim Meyering  <meyering@lucent.com>
81384
81385         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81386         of the deprecated AC_CHECKING.
81387
81388 2000-07-04  Jim Meyering  <meyering@lucent.com>
81389
81390         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81391         Reported by Bruno Haible.
81392
81393 2000-07-04  Jim Meyering  <meyering@lucent.com>
81394
81395         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81396         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81397         lacks mbrtowc.
81398
81399 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81400
81401         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81402         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81403
81404 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81405         and Bruno Haible  <haible@clisp.cons.org>
81406
81407         * lib/quotearg.c (mbrtowc):
81408         Assign to *pwc, and return 1 only if result is nonzero.
81409         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81410
81411 2000-07-03  Jim Meyering  <meyering@lucent.com>
81412
81413         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81414
81415 2000-07-03  Jim Meyering  <meyering@lucent.com>
81416
81417         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81418         This is necessary to get a definition of e.g., UTMP_FILE on
81419         HP-UX 10.20.
81420         From Bob Proulx.
81421
81422 2000-07-02  Jim Meyering  <meyering@lucent.com>
81423
81424         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81425
81426         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81427         AC_LIBOBJ(function_name).
81428         * m4/chown.m4: Likewise.
81429         * m4/fnmatch.m4: Likewise.
81430         * m4/ftruncate.m4: Likewise.
81431         * m4/getgroups.m4: Likewise.
81432         * m4/getline.m4: Likewise.
81433         * m4/group-member.m4: Likewise.
81434         * m4/jm-macros.m4: Likewise.
81435         * m4/lstat.m4: Likewise.
81436         * m4/malloc.m4: Likewise.
81437         * m4/memcmp.m4: Likewise.
81438         * m4/nanosleep.m4: Likewise.
81439         * m4/putenv.m4: Likewise.
81440         * m4/realloc.m4: Likewise.
81441         * m4/regex.m4: Likewise.
81442         * m4/stat.m4: Likewise.
81443         * m4/strftime.m4: Likewise.
81444
81445 2000-07-02  Jim Meyering  <meyering@lucent.com>
81446
81447         * lib/quotearg.c (mbstate_t): Don't define here.
81448
81449 2000-07-02  Jim Meyering  <meyering@lucent.com>
81450
81451         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81452
81453 2000-07-01  Jim Meyering  <meyering@lucent.com>
81454
81455         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81456
81457 2000-07-01  Jim Meyering  <meyering@lucent.com>
81458
81459         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81460         problem.
81461
81462 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81463
81464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81465         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81466
81467 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81468
81469         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81470         per change in ../m4/ls-mntd-fs.m4.
81471         (read_filesystem_list): Ignore symbolic links.
81472
81473 2000-06-29  Jim Meyering  <meyering@lucent.com>
81474
81475         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81476         for declaration of strcmp.
81477
81478         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81479
81480         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81481         Avoid warning by casting result to `char *' to remove `const'.
81482
81483 2000-06-28  Jim Meyering  <meyering@lucent.com>
81484
81485         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81486         included by quotearg.c, for which we perform this test.  From
81487         Bruno Haible.
81488
81489 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81490
81491         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81492         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81493         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81494
81495 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81496
81497         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81498
81499 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81500
81501         savedir now sets errno on failure and invokes xmalloc to get memory.
81502         Fix a couple of other minor bugs while we're at it.
81503
81504         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81505         (NAMLEN): Remove macro.
81506         (malloc, realloc): Remove decls.
81507         (stpcpy): Likewise.
81508         ("xalloc.h"): Include.
81509         (NAME_SIZE_DEFAULT): New macro.
81510         (savedir): Use xmalloc / xrealloc to allocate memory.
81511         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81512         Skip "" directory entries.
81513         Use strlen to calculate directory entry length, since the old method
81514         is rarely used these days and isn't worth supporting.
81515         Don't use a pointer after freeing it.
81516         Check for integer overflow when calculating allocation size.
81517         Use memcpy to copy entries, instead of stpcpy.
81518         Set errno properly when returning NULL.
81519         Check for readdir error.
81520
81521 2000-06-26  Jim Meyering  <meyering@lucent.com>
81522
81523         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81524
81525 2000-06-25  Jim Meyering  <meyering@lucent.com>
81526
81527         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81528         Linux header bug when _XOPEN_SOURCE is defined to 500.
81529
81530 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81531
81532         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81533         deficiency.
81534
81535 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81536
81537         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81538         Include xalloc.h.
81539         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81540
81541 2000-06-24  Jim Meyering  <meyering@lucent.com>
81542
81543         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81544         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81545         for which strerror does return char*, but which lacks a conveniently
81546         accessible declaration of the function.  If the compile-test says
81547         strerror_r doesn't work, then resort to a `run'-test that works on
81548         BeOS and segfaults on DEC Unix.
81549
81550 2000-06-24  Jim Meyering  <meyering@lucent.com>
81551
81552         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81553
81554 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81555
81556         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81557         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81558
81559 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81560
81561         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81562         (mbrtowc, mbstate_t): Define substitutes if
81563         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81564         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81565         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81566
81567 2000-06-23  Jim Meyering  <meyering@lucent.com>
81568
81569         * m4/afs.m4: Add missing AC_MSG_RESULT.
81570         Reported by Bruno Haible.
81571
81572         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81573         Suggestion from Bruno Haible.
81574
81575 2000-06-23  Jim Meyering  <meyering@lucent.com>
81576
81577         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81578
81579 2000-06-21  Jim Meyering  <meyering@lucent.com>
81580
81581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81582
81583 2000-06-21  Jim Meyering  <meyering@lucent.com>
81584
81585         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81586         (noinst_HEADERS): Add getstr.h.
81587
81588         * lib/getline.c (getstr): Move into a separate file.
81589         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81590         the following changes: new parameter, delim2; both delim[12]
81591         parameters have type `int', not `char'.  The latter would lose
81592         with 8-bit delimiters.
81593         * lib/getstr.h: New file.
81594
81595 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81596
81597         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81598         than 1024, return a memory chunk of least possible size, instead
81599         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81600         Use free/xmalloc instead of xrealloc to avoid copying for very long
81601         paths.
81602
81603 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81604
81605         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81606         the empty string.
81607
81608 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81609
81610         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81611         address, not strdup.  Include <stdlib.h> and don't declare free().
81612
81613 2000-06-19  Jim Meyering  <meyering@lucent.com>
81614
81615         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81616
81617 2000-06-18  Jim Meyering  <meyering@lucent.com>
81618
81619         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81620
81621         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81622         `checking whether...' message to be consistent with that of the
81623         lstat test.
81624
81625 2000-06-18  Jim Meyering  <meyering@lucent.com>
81626
81627         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81628         Besides, these days every porting target provides a mkdir function.
81629
81630         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81631         needed. (this snippet comes from src/system.h).
81632
81633 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81634
81635         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81636
81637 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81638
81639         * lib/human.c (adjust_value): New function.
81640         (human_readable_inexact): Apply rounding style even when
81641         printing approximate values.
81642
81643 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81644
81645         * lib/human.c (human_readable_inexact): Allow an input block
81646         size that is not a multiple of the output block size, and vice versa.
81647         Reported by Piergiorgio Sartor.
81648
81649 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81650
81651         * lib/getdate.y (get_date): Apply relative times after time
81652         zone indicator, not before.  Reported by Todd A. Jacobs.
81653
81654 2000-06-13  Jim Meyering  <meyering@lucent.com>
81655
81656         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81657
81658         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81659
81660 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81661
81662         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81663
81664 2000-06-12  Jim Meyering  <meyering@lucent.com>
81665
81666         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81667         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81668         optional argument.
81669         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81670         the optional argument, `lib'.
81671
81672 2000-06-08  Jim Meyering  <meyering@lucent.com>
81673
81674         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81675
81676 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81677
81678         Rewrite largefile configuration so that we don't need to run
81679         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81680         AC_CANONICAL_HOST in configure.in -- jmm]
81681
81682         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81683         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81684         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81685         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81686         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81687         All uses changed.
81688         Instead of inspecting the output of getconf, try to compile the
81689         test program without and with the macro definition.
81690         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81691         for getconf.  Instead, check for the needed flags by compiling
81692         test programs.
81693
81694 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81695
81696         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81697
81698 2000-06-04  Jim Meyering  <meyering@lucent.com>
81699
81700         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81701         SunOS 4.1.4 for which gid_t is an unsigned type.
81702
81703 2000-06-03  Jim Meyering  <meyering@lucent.com>
81704
81705         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81706         now that autoconf requires that.
81707
81708         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81709         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81710         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81711
81712 2000-06-03  Jim Meyering  <meyering@lucent.com>
81713
81714         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81715
81716 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81717
81718         * m4/glibc21.m4: New file.
81719         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81720
81721 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81722
81723         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81724         newer, don't install charset.alias.
81725         * lib/config.charset: Change the Linux/glibc rules so they become empty
81726         on glibc-2.1 or newer.
81727
81728 2000-06-02  Jim Meyering  <meyering@lucent.com>
81729
81730         * lib/mountlist.c: Back out last change.  Instead, do this...
81731         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81732         me_dummy member using the same `ignore'-testing code.
81733         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81734         fs_type strings.
81735         From Mark D. Roth.
81736
81737 2000-05-29  Jim Meyering  <meyering@lucent.com>
81738
81739         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81740         mounts with the `ignore' attribute.  Based on a patch from
81741         Mark D. Roth.
81742
81743 2000-05-28  Jim Meyering  <meyering@lucent.com>
81744
81745         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81746         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81747         * m4/stat.m4: Likewise.
81748         * m4/lstat.m4: Likewise.
81749         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81750
81751         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81752         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81753
81754 2000-05-26  Jim Meyering  <meyering@lucent.com>
81755
81756         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81757
81758 2000-05-24  Jim Meyering  <meyering@lucent.com>
81759
81760         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81761         autoconf requires that.
81762         * m4/lib-check.m4: Likewise.
81763         * m4/jm-macros.m4: Likewise.
81764         * m4/strftime.m4: Likewise.
81765
81766         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81767         AC_CHECK_DECLS, now that autoconf requires that.
81768
81769 2000-05-22  Jim Meyering  <meyering@lucent.com>
81770
81771         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81772         * m4/lstat.m4: Likewise.
81773
81774 2000-05-22  Jim Meyering  <meyering@lucent.com>
81775
81776         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81777
81778 2000-05-20  Jim Meyering  <meyering@lucent.com>
81779
81780         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81781         (jm_PREREQ): Use it.
81782
81783 2000-05-18  Jim Meyering  <meyering@lucent.com>
81784
81785         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81786         back, too, since it may have been modified by allocate_entry.
81787         (hash_delete): Rewrite to use neither the assignment operator
81788         nor the comma operator in an if-expression.
81789
81790 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81791
81792         * lib/closeout.c:
81793         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81794         Remove; no longer needed.
81795         "quotearg.h": Add include.
81796         (file_name): Do not bother to explicitly initialize to NULL; it's less
81797         efficient on some hosts.
81798         (close_stdout_status): Remove test as to whether stdout was already
81799         closed; it breaks for the case "echo x | sort >&-".
81800         Quote file name colons.
81801         Do not assume that _("write error") lacks format strings.
81802
81803 2000-05-15  Jim Meyering  <meyering@lucent.com>
81804
81805         * lib/version-etc.c (version_etc_copyright): Update the copyright
81806         string used in all --version output.
81807
81808 2000-05-14  Jim Meyering  <meyering@lucent.com>
81809
81810         * lib/closeout.c (close_stdout_set_file_name): New function.
81811         (close_stdout_status): Use new file-scoped global.
81812         Return right away if fstat says the stdout file descriptor is invalid.
81813         * lib/closeout.h (close_stdout_set_file_name): Declare.
81814
81815 2000-05-10  Jim Meyering  <meyering@lucent.com>
81816
81817         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81818         (close_stdout_set_status): New function.
81819         * lib/closeout.h (close_stdout_set_status): Declare.
81820
81821 2000-05-09  Jim Meyering  <meyering@lucent.com>
81822
81823         * m4/gettext.m4: Rename this...
81824         * m4/libintl.m4: ...to this.
81825
81826 2000-05-08  Jim Meyering  <meyering@lucent.com>
81827
81828         * lib/long-options.c: Don't include closeout.h.
81829         (parse_long_options): Don't call close_stdout for --version.
81830
81831 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81832
81833         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81834         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81835         2.1.3 bug.  This avoids a clash when files like regex.c define
81836         _GNU_SOURCE.
81837
81838 2000-05-06  Jim Meyering  <meyering@lucent.com>
81839
81840         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81841         (AC_REPLACE_FUNCS): Add strnlen.
81842
81843         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81844         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81845
81846         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81847         AC_SEARCH_LIBS call for nanosleep.
81848         (LIB_NANOSLEEP): Set and AC_SUBST.
81849
81850 2000-05-06  Jim Meyering  <meyering@lucent.com>
81851
81852         * lib/strnlen.c: Undefine __strnlen and strnlen.
81853         [!weak_alias]: Define __strnlen to strnlen.
81854
81855         * lib/atexit.c: New file, from libiberty.
81856
81857 2000-05-06  Jim Meyering  <meyering@lucent.com>
81858
81859         * lib/closeout.c (close_stdout_status): Also check for errors on the
81860         stderr stream.
81861
81862 2000-05-05  Jim Meyering  <meyering@lucent.com>
81863
81864         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81865         AC_SEARCH_LIBS call for clock_gettime.
81866         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81867
81868         * m4/search-libs.m4: Update from autoconf.
81869
81870         su doesn't work on Solaris 2.6.
81871         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81872         <shadow.h>.  Reported by Dragos Harabor.
81873
81874 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81875
81876         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81877         memcpy instead of xmalloc, xrealloc, path_concat.
81878         (locale_charset): Treat empty environment variables as absent.
81879         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81880
81881 2000-05-04  Jim Meyering  <meyering@lucent.com>
81882
81883         * lib/getopt.c: Update from glibc.
81884         * lib/obstack.c: Likewise.
81885         * lib/obstack.h: Likewise.
81886         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81887         file
81888
81889         * lib/regex.h: Likewise.
81890         * lib/strndup.c: Likewise.
81891         * lib/strnlen.c: New file, from glibc.
81892
81893 2000-05-03  Jim Meyering  <meyering@lucent.com>
81894
81895         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81896
81897 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81898
81899         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81900         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81901         compile-time test, rather than inspecting host and OS, to
81902         decide whether to define _LARGEFILE_SOURCE.
81903
81904 2000-05-01  Jim Meyering  <meyering@lucent.com>
81905
81906         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81907
81908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81909         Based on a patch from Bruno Haible.
81910
81911 2000-05-01  Jim Meyering  <meyering@lucent.com>
81912
81913         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81914
81915 2000-04-29  Jim Meyering  <meyering@lucent.com>
81916
81917         * lib/path-concat.c: Declare strdup only if it's not defined.
81918         * lib/canon-host.c: Likewise.
81919
81920 2000-04-28  Jim Meyering  <meyering@lucent.com>
81921
81922         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81923         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81924         is included first, then limits.h is included by locale.h by libintl.h.
81925         From John David Anglin.
81926
81927 2000-04-25  Jim Meyering  <meyering@lucent.com>
81928
81929         * lib/makepath.c (S_IRWXUGO): Define.
81930         (make_path): Always perform explicit chmod if MODE specifies any
81931         of the `special' permission bits.  Prompted by a bug report against
81932         install from Mate Wierdl and Joost van Baal.
81933
81934 2000-04-18  Jim Meyering  <meyering@lucent.com>
81935
81936         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81937         (jm_PREREQ): Use it.
81938
81939 2000-04-18  Jim Meyering  <meyering@lucent.com>
81940
81941         * lib/README: New file.
81942
81943         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81944         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81945
81946 2000-04-17  Jim Meyering  <meyering@lucent.com>
81947
81948         Get it right :-)
81949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81950         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81951         Suggestion from Akim Demaille.
81952
81953 2000-04-17  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81956         the definition of it to rpl_strftime also defined-away the system's
81957         declaration.
81958
81959 2000-04-15  Jim Meyering  <meyering@lucent.com>
81960
81961         Use `C' to denote so-called `contiguous' files, the same way
81962         that tar does.
81963         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81964         (ftypelet): Use S_ISCTG.
81965         From Michael Deutschmann.
81966
81967 2000-04-14  Jim Meyering  <meyering@lucent.com>
81968
81969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81970         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81971         clobbered.
81972
81973 2000-04-14  Jim Meyering  <meyering@lucent.com>
81974
81975         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81976
81977 2000-04-13  Jim Meyering  <meyering@lucent.com>
81978
81979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81980         AH_VERBATIM to insert required #ifndef into config.h.in.
81981         Suggestion from Akim Demaille.
81982
81983 2000-04-12  Jim Meyering  <meyering@lucent.com>
81984
81985         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81986         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81987         Christian Krackowizer.
81988
81989         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81990         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81991         (AC_SYS_LARGEFILE): Require.
81992         (AM_C_PROTOTYPES): Require.
81993
81994 2000-04-08  Jim Meyering  <meyering@lucent.com>
81995
81996         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81997         names don't conflict.  Reported by Eli Zaretskii.
81998
81999 2000-04-07  Jim Meyering  <meyering@lucent.com>
82000
82001         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82002         sys/types.h, to work around system header problems on AIX 3.2.5.
82003         From Bruno Haible.
82004
82005 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82006
82007         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82008         bug.  Deal with the different error behavior of Irix iconv.
82009
82010 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82011
82012         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82013         IRIX if the installer said otherwise.
82014
82015 2000-04-05  Jim Meyering  <meyering@lucent.com>
82016
82017         Portability tweaks required for ultrix4.3.
82018         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82019         (jm_CHECK_DECLS): Add getutent to the list of functions.
82020         (_jm_DECL_HEADERS): Add utmpx.h.
82021         From John David Anglin.
82022
82023         * m4/strftime.m4: Back out the 2000-04-02 change.
82024         Instead of that change, simply undefine putenv in the test program.
82025
82026 2000-04-05  Jim Meyering  <meyering@lucent.com>
82027
82028         Portability tweaks required for ultrix4.3.
82029         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82030         getutent.
82031         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82032         * lib/canon-host.c: Declare strdup.
82033         * lib/path-concat.c: Likewise.
82034         From John David Anglin.
82035
82036 2000-04-04  Jim Meyering  <meyering@lucent.com>
82037
82038         Be more DOS 8.3-friendly.
82039         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82040         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82041         * lib/Makefile.am: Reflect renaming.
82042         Reported by Eli Zaretskii.
82043
82044         Use a temporary file name that won't clash with `charset.alias'
82045         in the DOS 8.3 name space.
82046         * lib/Makefile.am (charset_tmp): Define.
82047         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82048         (uninstall-local): Likewise.
82049         Reported by Eli Zaretskii.
82050
82051 2000-04-03  Jim Meyering  <meyering@lucent.com>
82052
82053         * m4/gettext.m4: Fix typo in comment.
82054
82055         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82056         textutils/configure.in).  Suggestion from Paul Eggert.
82057         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82058
82059 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82060
82061         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82062         variable in the shell rather than using putenv, which isn't
82063         portable.  This avoids the configure-time inter-test dependency
82064         on the potentially-renamed putenv function.
82065
82066 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82067
82068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82069         before checking struct stat.st_blksize, so that
82070         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82071
82072 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82073
82074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82075         since strftime.c uses HAVE_STRFTIME to decide whether to use
82076         the underlying strftime.
82077
82078 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82079
82080         * lib/time/strftime.c (my_strftime): Make sure we call the system
82081         strftime, not ourselves, when invoking the underlying strftime.
82082
82083 2000-03-24  Jim Meyering  <meyering@lucent.com>
82084
82085         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82086         (charset_alias): Define.
82087         (install-exec-local): Factor out common code.
82088         (uninstall-local): Split lines longer than 80.
82089         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82090         (SUFFIXES): Define.
82091         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82092         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82093
82094 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82095
82096         * lib/config.charset: Output a line containing "Packages using this
82097         file".
82098         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82099         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82100         ref-del.sed): New rules.
82101
82102 2000-03-17  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82105         Otherwise, include <strings.h>
82106
82107 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82108
82109         * lib/unicodeio.c (utf8_wctomb): New function.
82110         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82111         format instead of in UCS-4 with platform dependent endianness.
82112
82113 2000-03-10  Jim Meyering  <meyering@lucent.com>
82114
82115         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82116         From Marco Franzen.
82117
82118 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82119
82120         * lib/savedir.c (savedir): Work even if directory size is
82121         negative; this can happen with some screwy NFS configurations.
82122
82123 2000-03-06  Jim Meyering  <meyering@lucent.com>
82124
82125         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82126         if it's NULL (because we ran out of memory).  From Bruno Haible.
82127
82128 2000-03-05  Jim Meyering  <meyering@lucent.com>
82129
82130         * lib/localcharset.c ("path-concat.h"): Include.
82131         (get_charset_aliases): Use path_concat instead of ANSI string
82132         concatenation.
82133
82134         * lib/unicodeio.h (PARAMS): Define.
82135         Use it to guard prototype.
82136
82137 2000-03-04  Jim Meyering  <meyering@lucent.com>
82138
82139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82140         for lib/localcharset.c.
82141
82142 2000-03-04  Jim Meyering  <meyering@lucent.com>
82143
82144         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82145         installing into it.
82146         (uninstall-local): Uncomment this rule so `make distcheck' works
82147         once again.
82148
82149         * lib/unicodeio.c (<errno.h>): Include it.
82150         (errno): Declare if not defined.
82151
82152         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82153
82154         * lib/config.charset: New version, incorporating remarks from a linux
82155         i18n mailing list.  From Bruno Haible.
82156
82157 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82158
82159         * m4/codeset.m4: New file.
82160         * m4/iconv.m4: New file.
82161         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82162
82163 2000-03-03  Jim Meyering  <meyering@lucent.com>
82164
82165         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82166
82167 2000-03-02  Jim Meyering  <meyering@lucent.com>
82168
82169         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82170         the messages come out on separate lines.
82171
82172         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82173         rather than jm_CHECK_DECLARATIONS.
82174         * m4/decl.m4: Remove now-unused file.
82175
82176         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82177         geteuid.
82178
82179 2000-03-02  Jim Meyering  <meyering@lucent.com>
82180
82181         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82182
82183 2000-03-01  Jim Meyering  <meyering@lucent.com>
82184
82185         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82186         * lib/unicodeio.c: Likewise.
82187
82188 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82189
82190         * lib/config.charset: New file.
82191         * lib/localcharset.c: New file.
82192         * lib/unicodeio.h, lib/unicodeio.c: New files.
82193         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82194         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82195         (noinst_HEADERS): Add unicodeio.h.
82196         (all-local, install-exec-local, charset.alias): New targets.
82197
82198 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82199
82200         * lib/quotearg.c (ALERT_CHAR): New macro.
82201         (quotearg_buffer_restyled): Use it.
82202
82203 2000-02-27  Jim Meyering  <meyering@lucent.com>
82204
82205         * m4/check-decl.m4: Add getenv to the list.
82206
82207 2000-02-27  Jim Meyering  <meyering@lucent.com>
82208
82209         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82210         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82211
82212         * lib/backupfile.c: Guard inclusion of stdlib.h with
82213         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82214         Declare malloc if needed.
82215
82216         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82217         `#ifndef HAVE_DECL..'
82218         now that autoconf always defines the HAVE_DECL_ symbols.
82219         * lib/human.c: Likewise.
82220         * lib/same.c: Likewise.
82221         * lib/strtoumax.c: Likewise.
82222
82223         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82224         declaration check was not run.
82225         * lib/hash.c: Likewise.
82226         * lib/human.c: Likewise.
82227         * lib/same.c: Likewise.
82228         * lib/strtoumax.c: Likewise.
82229
82230         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82231         `.', then first look up the entire `.'-containing string as a login
82232         name.
82233
82234 2000-02-23  Jim Meyering  <meyering@lucent.com>
82235
82236         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82237         in place of my hack.
82238
82239 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82240
82241         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82242         (textint): New typedef.
82243         (parser_control): Member year changed from int to textint.
82244         All uses changed.
82245         (YYSTYPE): Removed; replaced by %union with int and textint members.
82246         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82247         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82248         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82249         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82250         (date, number, to_year): Use width of number in digits, not its value,
82251         to determine whether it's a 2-digit year, or a 2-digit time.
82252         (yylex): Store number of digits of numeric tokens.
82253         Reported by John Kendall.
82254
82255         (parser_control): Changed from struct parser_control to typedef (for
82256         consistency).  All uses changed.
82257
82258         (tID): Removed; not used.
82259         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82260
82261 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82262
82263         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82264         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82265
82266 2000-02-12  Jim Meyering  <meyering@lucent.com>
82267
82268         * lib/userspec.c (ISDIGIT): Define it.
82269         (isdigit): Remove definition.
82270         (is_number): Use ISDIGIT, not isdigit.
82271         <libintl.h>: Include.
82272         (_ and N_): Define.
82273         (parse_user_spec): Mark translatable strings.
82274
82275 2000-02-10  Jim Meyering  <meyering@lucent.com>
82276
82277         With these changes, nanosleep.[ch] are finally enough like the other
82278         lib/* replacement files to compile on a few more losing systems.
82279
82280         * lib/nanosleep.h: Don't include config.h.
82281         Remove prototype from declaration of nanosleep.
82282         (PARAMS): Remove now-unneeded definition.
82283         * lib/nanosleep.c: #undef nanosleep.
82284         (rpl_nanosleep): Rename from nanosleep.
82285
82286 2000-02-10  Jim Meyering  <meyering@lucent.com>
82287
82288         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82289         gnu_nanosleep to rpl_nanosleep.
82290
82291 2000-02-09  Jim Meyering  <meyering@lucent.com>
82292
82293         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82294         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82295
82296 2000-02-08  Akim Demaille  <akim@epita.fr>
82297
82298         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82299         `[' and `]' and remove uses of `changequote'.
82300         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82301         (AC_SYS_LARGEFILE): Likewise.
82302         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82303         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82304         of changequote.
82305         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82306         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82307         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82308         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82309
82310 2000-02-05  Jim Meyering  <meyering@lucent.com>
82311
82312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82313         Remove explicit use of AC_HEADER_TIME.  It is required by
82314         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82315         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82316         in autoconf whereby the expansion of the latter ended up preceding
82317         the expansion of its prerequisite, AC_HEADER_TIME.
82318         Reported by Volker Borchert.
82319
82320 2000-02-03  Jim Meyering  <meyering@lucent.com>
82321
82322         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82323
82324 2000-02-03  Jim Meyering  <meyering@lucent.com>
82325
82326         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82327         rather than with `#if HAVE_UTMPNAME'.
82328
82329 2000-02-02  Jim Meyering  <meyering@lucent.com>
82330
82331         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82332         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82333         Reported by Eli Zaretskii.
82334
82335 2000-02-01  Jim Meyering  <meyering@lucent.com>
82336
82337         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82338
82339 2000-01-31  Jim Meyering  <meyering@lucent.com>
82340
82341         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82342         functions.  Add the time.h and sys/time.h headers along with the
82343         AC_REQUIRE'ment of AC_HEADER_TIME.
82344
82345 2000-01-31  Jim Meyering  <meyering@lucent.com>
82346
82347         * lib/nanosleep.h (nanosleep): Guard declaration with
82348         `#if ! HAVE_DECL_NANOSLEEP'.
82349         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82350         the declaration in that vendor's sys/timers.h.
82351         Reported by Christian Krackowizer.
82352
82353         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82354         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82355         (ISPRINT): Likewise.
82356         Reported by Tom Tromey.
82357
82358 2000-01-30  Jim Meyering  <meyering@lucent.com>
82359
82360         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82361
82362         * m4/prereq.m4 (utmp_includes): Define.
82363         Check for ut_user and ut_name members in both struct utmpx
82364         and struct utmp.
82365
82366 2000-01-30  Jim Meyering  <meyering@lucent.com>
82367
82368         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82369         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82370         header files where only utmpx.ut_user is declared.
82371
82372         * lib/readutmp.h (UT_USER): Define.
82373
82374 2000-01-29  Jim Meyering  <meyering@lucent.com>
82375
82376         * m4/lib-check.m4: New file containing library-related checks from
82377         fileutils and sh-utils (textutils had none).
82378
82379 2000-01-28  Jim Meyering  <meyering@lucent.com>
82380
82381         * m4/perl.m4: Change format of warning message to look more like that
82382         from the missing script.  Suggestion from François Pinard.
82383
82384 2000-01-25  Jim Meyering  <meyering@lucent.com>
82385
82386         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82387         well as time.h in the compile check.
82388         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82389         Fix typo in cross-compiling case: s/yes/no/.
82390
82391 2000-01-23  Jim Meyering  <meyering@lucent.com>
82392
82393         * m4/jm-macros.m4: Move df-related tests here from
82394         fileutils/configure.in
82395
82396         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82397         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82398
82399         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82400         s/space/ac_fsusage_space/.
82401         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82402
82403         * m4/ftruncate.m4: New file (derived from part of
82404         fileutils/configure.in).
82405         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82406         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82407
82408         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82409         AC_SUBST these here, rather than just in sh-util/configure.in, so
82410         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82411         all the same.
82412         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82413         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82414         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82415         (AC_SUBST(POW_LIBM)): Likewise.
82416         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82417
82418 2000-01-23  Jim Meyering  <meyering@lucent.com>
82419
82420         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82421         obstack.c.
82422
82423 2000-01-22  Jim Meyering  <meyering@lucent.com>
82424
82425         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82426
82427         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82428
82429         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82430         configure.in
82431         (AC_CHECK_HEADERS): Likewise for sh-utils.
82432         (AC_CHECK_HEADERS): Likewise for textutils.
82433         Merge the three lists of headers.
82434
82435         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82436         from fileutils' configure.in.
82437
82438         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82439         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82440         check-decl.m4.
82441
82442         * m4/check-decl.m4: Use #if rather than #ifdef.
82443         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82444         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82445         (_jm_DECL_HEADERS): Define new function.
82446         (jm_CHECK_DECLARATIONS): Require it.
82447
82448 2000-01-22  Jim Meyering  <meyering@lucent.com>
82449
82450         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82451         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82452         Required for some AIX systems.  Reported by Christian Krackowizer.
82453         [TESTING] (main): New function.
82454
82455         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82456         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82457         letters.
82458
82459         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82460         iswprint.
82461
82462         * lib/strverscmp.c (ISDIGIT): Define.
82463         (strverscmp): Use ISDIGIT, not isdigit.
82464
82465 2000-01-19  Jim Meyering  <meyering@lucent.com>
82466
82467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82468         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82469         defines `struct timespec' in <sys/time.h>
82470
82471         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82472         Thanks to Akim for explaining.
82473
82474 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82475
82476         * lib/nanosleep.c (nanosleep):
82477         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82478         POSIX.1 doesn't require SA_INTERRUPT and some systems
82479         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82480         it's been part of POSIX.1 since day 1 (in 1988).
82481
82482 2000-01-17  Jim Meyering  <meyering@lucent.com>
82483
82484         * lib/interlock: Remove unused file.  Reported by François Pinard.
82485
82486 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82487
82488         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82489         alert, backslash, formfeed, and vertical tab unnecessarily in
82490         shell quoting style.
82491
82492 2000-01-16  Jim Meyering  <meyering@lucent.com>
82493
82494         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82495         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82496         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82497         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82498
82499 2000-01-16  Jim Meyering  <meyering@lucent.com>
82500
82501         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82502         because the latter didn't work.
82503
82504 2000-01-15  Jim Meyering  <meyering@lucent.com>
82505
82506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82507         (AC_REPLACE_FUNCS): Add memcpy and memset.
82508         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82509         Add strpbrk.
82510         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82511
82512 2000-01-12  Jim Meyering  <meyering@lucent.com>
82513
82514         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82515         (jm_PREREQ): Use it.
82516         (jm_PREREQ_READUTMP): New macro.
82517         (jm_PREREQ): Use it.
82518
82519 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82520
82521         Quote multibyte characters correctly.
82522         * m4/c-bs-a.m4: New file.
82523         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82524         (jm_PREREQ): Use it.
82525
82526 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82527
82528         * m4/uintmax_t.m4: Port to autoconf 2.13.
82529
82530 2000-01-08  Jim Meyering  <meyering@ascend.com>
82531
82532         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82533         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82534
82535 2000-01-04  Jim Meyering  <meyering@ascend.com>
82536
82537         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82538         jm_STRUCT_DIRENT_D_TYPE.
82539         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82540         jm_STRUCT_DIRENT_D_INO.
82541         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82542         jm_STRUCT_UTIMBUF.
82543         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82544         renamings.
82545         * m4/utime.m4: Likewise.
82546
82547         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82548         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82549
82550 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82551
82552         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82553         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82554
82555 2000-01-02  Jim Meyering  <meyering@ascend.com>
82556
82557         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82558         remember if this is necessary.
82559
82560 1999-12-26  Jim Meyering  <meyering@ascend.com>
82561
82562         * m4/jm-macros.m4: Use it here.
82563         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82564
82565 1999-12-23  Jim Meyering  <meyering@ascend.com>
82566
82567         * m4/jm-macros.m4: Check for clock_gettime (moved from
82568         fileutils/configure.in)
82569         Check for gettimeofday.
82570
82571 1999-12-20  Jim Meyering  <meyering@ascend.com>
82572
82573         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82574         autoconf-2.14a-1999-12-20.
82575
82576 1999-12-19  Jim Meyering  <meyering@ascend.com>
82577
82578         * m4/lstat-slash.m4: New file.
82579         * m4/jm-macros.m4: Use the new macro:
82580         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82581
82582 1999-12-07  Jim Meyering  <meyering@ascend.com>
82583
82584         * m4/perl.m4: Require that File::Compare be available, too.
82585         Too many systems seem to lack it.
82586
82587         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82588         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82589
82590 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82591
82592         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82593         problem with the QNX 4.25 shell, which doesn't propagate exit
82594         status of failed commands inside shell assignments.
82595
82596 1999-11-17  Jim Meyering  <meyering@ascend.com>
82597
82598         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82599
82600 1999-11-07  Jim Meyering  <meyering@ascend.com>
82601
82602         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82603
82604 1999-11-06  Jim Meyering  <meyering@ascend.com>
82605
82606         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82607         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82608
82609 1999-11-05  Jim Meyering  <meyering@ascend.com>
82610
82611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82612         configure.in of textutils, fileutils, and sh-utils into this one
82613         (shared between those packages) file.
82614         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82615         AC_STRUCT_ST_BLKSIZE.
82616
82617 1999-11-03  Jim Meyering  <meyering@ascend.com>
82618
82619         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82620         of AC_CHECK_TYPE checks includes unistd.h.
82621         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82622         Suggestion from Akim Demaille.
82623
82624 1999-10-30  Jim Meyering  <meyering@ascend.com>
82625
82626         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82627         m4-quoted string.
82628         * m4/ls-mntd-fs.m4: Likewise.
82629         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82630         * m4/jm-winsz1.m4: Likewise.
82631
82632         * m4/const.m4: Remove file, since the fix made it into the experimental
82633         version of autoconf.
82634         * m4/mktime.m4: Likewise.
82635
82636         * m4/check-type.m4: Remove file, now that the latest version of
82637         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82638
82639         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82640         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82641         AC_CHECK_TYPE.
82642
82643 1999-10-04  Jim Meyering  <meyering@ascend.com>
82644
82645         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82646
82647 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82648
82649         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82650         2.95.1 bug with HP-UX 10.20.
82651
82652 1999-09-17  Jim Meyering  <meyering@ascend.com>
82653
82654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82655         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82656         due to missing strdup (against sh-utils-2.0).
82657
82658 1999-08-29  Jim Meyering  <meyering@ascend.com>
82659
82660         * m4/jm-macros.m4: Require jm_BISON.
82661         * m4/bison.m4: New file.
82662
82663 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82664
82665         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82666         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82667
82668 1999-08-05  Jim Meyering  <meyering@ascend.com>
82669
82670         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82671         to avoid conflicts with `conftest' on 8+3 filesystems.
82672         Suggestion from Eli Zaretskii.
82673
82674 1999-08-04  Jim Meyering  <meyering@ascend.com>
82675
82676         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82677         fileutils and sh-utils (textutils's getline test was inadequate).
82678         (AM_FUNC_GETLINE): Run this test.
82679         (AC_CHECK_FUNCS): Check for getdelim.
82680         Reported by Bob Proulx.
82681
82682 1999-08-02  Jim Meyering  <meyering@ascend.com>
82683
82684         * m4/jm-macros.m4: Add a comment.
82685
82686 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82687
82688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82689         <inttypes.h> defines strtoumax as a macro (and not as a
82690         function).
82691
82692 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82693
82694         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82695         that we can shift, multiply and divide unsigned long long
82696         values; Ultrix cc can't do it.
82697
82698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82699
82700         * m4/mktime.m4: New file, which is a preview of what should appear
82701         in the next public autoconf release.
82702
82703 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82704
82705         * m4/lfs.m4: Remove this file.
82706         * m4/largefile.m4: New file.  It contains the old contents of
82707         lfs.m4, except that all names with prefix AC_LFS have been
82708         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82709         compatible with future autoconf versions.  Also, some minor m4
82710         quoting problems have been fixed.
82711
82712 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82713
82714         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82715         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82716         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82717         and simplify the shell code.
82718
82719 1999-08-01  Jim Meyering  <meyering@ascend.com>
82720
82721         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82722         m4.
82723
82724 1999-07-20  Jim Meyering  <meyering@ascend.com>
82725
82726         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82727
82728 1999-07-15  Jim Meyering  <meyering@ascend.com>
82729
82730         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82731
82732 1999-05-22  Jim Meyering  <meyering@ascend.com>
82733
82734         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82735
82736 1999-05-20  Jim Meyering  <meyering@ascend.com>
82737
82738         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82739         Add a colon after each `then' in case $4 is empty.
82740
82741 1999-05-16  Jim Meyering  <meyering@ascend.com>
82742
82743         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82744
82745 1999-05-10  Jim Meyering  <meyering@ascend.com>
82746
82747         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82748
82749         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82750         AC_FUNC_MKTIME.
82751
82752 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82753
82754         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82755
82756 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82757
82758         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82759         not CPPFLAGS, so that linking works correctly in IRIX.
82760
82761 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82762
82763         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82764
82765 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82766
82767         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82768         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82770         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82771         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82772
82773         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82774
82775 1999-04-20  Jim Meyering  <meyering@ascend.com>
82776
82777         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82778         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82779         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82780
82781 1999-04-18  Jim Meyering  <meyering@ascend.com>
82782
82783         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82784         * m4/jm-macros.m4: Use it.
82785
82786 1999-04-06  Jim Meyering  <meyering@ascend.com>
82787
82788         * m4/strftime.m4: Remove test for %f.
82789
82790 1999-03-29  Jim Meyering  <meyering@ascend.com>
82791
82792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82793         superset of the AC_TYPE_* checks in the textutils, fileutils,
82794         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82795         AC_TYPE_PID_T.
82796
82797 1999-03-28  Jim Meyering  <meyering@ascend.com>
82798
82799         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82800         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82801         replaced e.g., in the *.sh files of the sh-utils.
82802
82803 1999-03-20  Jim Meyering  <meyering@ascend.com>
82804
82805         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82806         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82807         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82808
82809 1999-03-19  Jim Meyering  <meyering@ascend.com>
82810
82811         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82812
82813 1999-03-12  Jim Meyering  <meyering@ascend.com>
82814
82815         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82816
82817 1999-03-07  Jim Meyering  <meyering@ascend.com>
82818
82819         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82820         declared.
82821
82822 1999-02-17  Jim Meyering  <meyering@ascend.com>
82823
82824         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82825         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82826
82827 1999-02-07  Jim Meyering  <meyering@ascend.com>
82828
82829         * m4/group-member.m4: New file -- extracted from sh-utils'
82830         configure.in.
82831
82832         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82833         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82834
82835 1999-02-06  Jim Meyering  <meyering@ascend.com>
82836
82837         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82838         * m4/fnmatch.m4: Likewise.
82839         * m4/getgroups.m4: Likewise.
82840         * m4/lstat.m4: Likewise.
82841         * m4/malloc.m4: Likewise.
82842         * m4/putenv.m4: Likewise.
82843         * m4/realloc.m4: Likewise.
82844         * m4/regex.m4: Likewise.
82845         * m4/stat.m4: Likewise.
82846         * m4/strftime.m4: Likewise.
82847         Suggestion from Alain Magloire.
82848
82849         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82850         * m4/fnmatch.m4: Likewise.
82851         * m4/getgroups.m4: Likewise.
82852         * m4/getline.m4: Likewise.
82853         * m4/lstat.m4: Likewise.
82854         * m4/malloc.m4: Likewise.
82855         * m4/memcmp.m4: Likewise.
82856         * m4/putenv.m4: Likewise.
82857         * m4/realloc.m4: Likewise.
82858         * m4/regex.m4: Likewise.
82859         * m4/stat.m4: Likewise.
82860         * m4/strftime.m4: Likewise.
82861         Suggestion from Alain Magloire.
82862
82863         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82864         an argument.
82865
82866         * m4/regex.m4: Add a run-time Test for proper operation of
82867         re_compile_pattern.
82868
82869 1999-01-31  Jim Meyering  <meyering@ascend.com>
82870
82871         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82872
82873 1999-01-30  Jim Meyering  <meyering@ascend.com>
82874
82875         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82876
82877         * m4/jm-mktime.m4: Make this a wrapper around the official
82878         AM_FUNC_MKTIME rather than my private copy, now that the official one
82879         is up to date.
82880         * m4/mktime.m4: Remove file.
82881
82882         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82883         * m4/uptime.m4: Likewise.
82884         * m4/uintmax_t.m4: Likewise.
82885
82886 1999-01-28  Jim Meyering  <meyering@ascend.com>
82887
82888         * m4/jm-macros.m4: Use jm_AFS.
82889         * m4/afs.m4: New file (from fileutils' configure.in).
82890
82891         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82892         * m4/chown.m4: Likewise.
82893         * m4/d-ino.m4: Likewise.
82894         * m4/d-type.m4: Likewise.
82895         * m4/fnmatch.m4: Likewise.
82896         * m4/getgroups.m4: Likewise.
82897         * m4/gettext.m4: Likewise.
82898         * m4/jm-mktime.m4: Likewise.
82899         * m4/jm-winsz2.m4: Likewise.
82900         * m4/lcmessage.m4: Likewise.
82901         * m4/ls-mntd-fs.m4: Likewise.
82902         * m4/malloc.m4: Likewise.
82903         * m4/memcmp.m4: Likewise.
82904         * m4/putenv.m4: Likewise.
82905         * m4/realloc.m4: Likewise.
82906         * m4/st_mtim.m4: Likewise.
82907         * m4/strftime.m4: Likewise.
82908
82909 1999-01-16  Jim Meyering  <meyering@ascend.com>
82910
82911         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82912         (ARGMATCH_DIE_DECL): Define.
82913
82914 1999-01-12  Jim Meyering  <meyering@ascend.com>
82915
82916         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82917         Reported by Lars Hecking.
82918
82919 1999-01-10  Jim Meyering  <meyering@ascend.com>
82920
82921         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82922         gross kludge.
82923         * m4/inttypes_h.m4: Likewise.
82924         * m4/lstat.m4: Likewise.
82925         * m4/malloc.m4: Likewise.
82926         * m4/readdir.m4: Likewise.
82927         * m4/realloc.m4: Likewise.
82928         * m4/st_dm_mode.m4: Likewise.
82929         * m4/stat.m4: Likewise.
82930         * m4/utimbuf.m4: Likewise.
82931         * m4/utimes.m4: Likewise.
82932
82933         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82934         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82935         comments in config.h.in are meaningful.
82936
82937         * m4/jm-macros.m4: Require autoconf-2.13 here.
82938
82939         * m4/regex.m4: By default, don't use the included regex.c on systems
82940         with glibc 2.  Suggestion from Uli Drepper.
82941
82942 1999-01-02  Jim Meyering  <meyering@ascend.com>
82943
82944         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82945
82946 1998-12-18  Jim Meyering  <meyering@ascend.com>
82947
82948         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82949         Based on a suggestion from Lars Hecking.
82950
82951 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82952
82953         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82954
82955 1998-11-16  Jim Meyering  <meyering@ascend.com>
82956
82957         * m4/lfs.m4: Double-quote the `uname...` expression.
82958
82959 1998-11-14  Jim Meyering  <meyering@ascend.com>
82960
82961         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82962         * m4/stat.m4: Likewise.
82963
82964 1998-11-03  Jim Meyering  <meyering@ascend.com>
82965
82966         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82967         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82968
82969 1998-10-18  Jim Meyering  <meyering@ascend.com>
82970
82971         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82972
82973 1998-10-17  Jim Meyering  <meyering@ascend.com>
82974
82975         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82976         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82977         calls for those previously hard-coded headers.  Instead, take a new
82978         parameter.
82979         (jm_CHECK_DECLARATIONS): Reflect interface change.
82980         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82981         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82982
82983         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82984
82985 1998-10-14  Jim Meyering  <meyering@ascend.com>
82986
82987         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82988         instead of "TZ=America/Vancouver".  From Paul Eggert.
82989
82990 1998-10-11  Jim Meyering  <meyering@ascend.com>
82991
82992         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82993         This adds a test for a recently added compatibility fix for mktime.c.
82994         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82995
82996 1998-09-27  Jim Meyering  <meyering@ascend.com>
82997
82998         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82999
83000         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83001         ../configure.in, including a change from Gordon Matzigkeit to allow
83002         cross-compiling for the Hurd.
83003
83004         * m4/glibc.m4: New file/macro to test for the GNU C Library
83005         versions 1 and 2.  From Gordon Matzigkeit.
83006         Indent.
83007
83008 1998-09-21  Jim Meyering  <meyering@ascend.com>
83009
83010         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83011
83012 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83013
83014         Port nanosecond-resolution times to UnixWare 2.1.2 and
83015         pedantic Solaris 2.6.
83016
83017         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83018         AC_STRUCT_ST_MTIM.
83019         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83020         Generate name of ns member, instead of just 1 or undef.
83021         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83022
83023 1998-08-15  Jim Meyering  <meyering@ascend.com>
83024
83025         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83026         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83027         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83028         instead of jm_TYPE_SSIZE_T.
83029
83030 1998-08-12  Jim Meyering  <meyering@ascend.com>
83031
83032         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83033
83034 1998-08-02  Jim Meyering  <meyering@ascend.com>
83035
83036         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83037         in acconfig.h manually.
83038
83039 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83040
83041         * m4/st_mtim.m4: New file.
83042
83043 1998-07-28  Jim Meyering  <meyering@ascend.com>
83044
83045         * m4/utimes.m4: Undef stat.
83046
83047 1998-07-25  Jim Meyering  <meyering@ascend.com>
83048
83049         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83050         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83051
83052 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83053
83054         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83055         uid and gid actually remain unchanged.
83056
83057 1998-07-07  Jim Meyering  <meyering@ascend.com>
83058
83059         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83060
83061 1998-07-04  Jim Meyering  <meyering@ascend.com>
83062
83063         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83064         to prove that this macro can be used in packages without regex.c.
83065
83066 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83067
83068         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83069         is to be used.
83070
83071 1998-07-03  Jim Meyering  <meyering@ascend.com>
83072
83073         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83074
83075         * m4/gettext.m4: New file -- from gettext-0.10.35.
83076         * m4/lcmessage.m4: Likewise.
83077         * m4/progtest.m4: Likewise.
83078
83079         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83080         * m4/jm-macros.m4: Require the new macro.
83081
83082 1998-06-29  Jim Meyering  <meyering@ascend.com>
83083
83084         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83085         for the definition of NGROUPS (used in a system header included
83086         by sys/mount.h).
83087
83088 1998-06-28  Jim Meyering  <meyering@ascend.com>
83089
83090         * m4/ls-mntd-fs.m4: New file.
83091         * m4/fstypename.m4: New file.
83092
83093         * m4/jm-macros.m4: Require the new macro.
83094         * m4/jm-glibc-io.m4: New file.
83095
83096 1998-05-19  Jim Meyering  <meyering@ascend.com>
83097
83098         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83099         * m4/lchown.m4: New file.
83100
83101         * m4/Makefile.am.in: New file.
83102         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83103
83104 1998-05-14  Jim Meyering  <meyering@ascend.com>
83105
83106         * m4/Makefile.am (EXTRA_DIST): Add them.
83107         * m4/jm-macros.m4: New file.
83108         * m4/utimbuf.m4: New file.
83109
83110 1998-05-12  Jim Meyering  <meyering@ascend.com>
83111
83112         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83113
83114 1998-05-11  Jim Meyering  <meyering@ascend.com>
83115
83116         * m4/isc-posix.m4: New file.
83117
83118 1998-05-10  Jim Meyering  <meyering@ascend.com>
83119
83120         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83121
83122 1998-05-09  Jim Meyering  <meyering@ascend.com>
83123
83124         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83125         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83126         with automake.
83127
83128         * m4/ssize_t.m4: New file.
83129         * m4/mktime.m4: Remove file -- the new automake has this now.
83130
83131 1998-04-26  Jim Meyering  <meyering@ascend.com>
83132
83133         * m4/assert.m4: New file.
83134         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83135
83136 1998-04-05  Jim Meyering  <meyering@ascend.com>
83137
83138         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83139         (jm_PREREQ): Use it here.
83140
83141 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83142
83143         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83144         in acconfig.h.
83145
83146 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83147
83148         * m4/prereq.m4: New file.
83149         * m4/error.m4: New file.
83150         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83151
83152 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83153
83154         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83155         cache-check for the same variable -- that defeated the purpose of
83156         the test; the test program was never run.  This was a problem only
83157         on systems with losing getline functions -- HP-UX 10.20 is one.
83158         Reported by Bjorn Helgaas.
83159
83160 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83161
83162         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83163
83164 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83165
83166         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83167
83168         * m4/const.m4: New file.  Use an initializer in this declaration
83169         typedef int charset[2]; const charset x;
83170         Reported by Bob Glickstein.
83171
83172 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83173
83174         * m4/chown.m4: Fix reversed types on -1 args to chown.
83175         From Kaveh Ghazi.
83176
83177 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83178
83179         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83180         Add lseek and memchr.
83181
83182         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83183         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83184         have a 20-character limit on names.
83185
83186 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83187
83188         * m4/inttypes_h.m4: New file.
83189         * m4/uintmax_t.m4: New file.
83190         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83191
83192
83193         -----
83194
83195         Local Variables:
83196         coding: utf-8
83197         End:
83198
83199         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83200
83201         Copying and distribution of this file, with or without
83202         modification, are permitted provided the copyright notice
83203         and this notice are preserved.