1c94380f76cfd77de6ddc872159a5af10f9ef3e4
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         xstrtol: Move AC_LIBOBJ invocations to module description.
4         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         xstrtold: Move AC_LIBOBJ invocations to module description.
10         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         xstrtod: Move AC_LIBOBJ invocations to module description.
16         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         xnanosleep: Move AC_LIBOBJ invocations to module description.
22         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
23         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         xgetcwd: Move AC_LIBOBJ invocations to module description.
28         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
29         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         xalloc: Move AC_LIBOBJ invocations to module description.
34         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
36
37 2011-05-23  Bruno Haible  <bruno@clisp.org>
38
39         write-any-file: Move AC_LIBOBJ invocations to module description.
40         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
41         invocation.
42         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
43
44 2011-05-23  Bruno Haible  <bruno@clisp.org>
45
46         utimens: Move AC_LIBOBJ invocations to module description.
47         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48         * modules/utimens (Makefile.am): Augment lib_SOURCES.
49
50 2011-05-23  Bruno Haible  <bruno@clisp.org>
51
52         utimecmp: Move AC_LIBOBJ invocations to module description.
53         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
54         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
55
56 2011-05-23  Bruno Haible  <bruno@clisp.org>
57
58         userspec: Move AC_LIBOBJ invocations to module description.
59         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
60         * modules/userspec (Makefile.am): Augment lib_SOURCES.
61
62 2011-05-23  Bruno Haible  <bruno@clisp.org>
63
64         unlinkdir: Move AC_LIBOBJ invocations to module description.
65         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
66         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
67
68 2011-05-23  Bruno Haible  <bruno@clisp.org>
69
70         unistd-safer: Move AC_LIBOBJ invocations to module description.
71         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
72         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
73
74 2011-05-23  Bruno Haible  <bruno@clisp.org>
75
76         tempname: Move AC_LIBOBJ invocations to module description.
77         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
78         * modules/tempname (Makefile.am): Augment lib_SOURCES.
79
80 2011-05-23  Bruno Haible  <bruno@clisp.org>
81
82         strftime: Move AC_LIBOBJ invocations to module description.
83         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
84         * modules/strftime (Makefile.am): Augment lib_SOURCES.
85
86 2011-05-23  Bruno Haible  <bruno@clisp.org>
87
88         stdlib-safer: Move AC_LIBOBJ invocations to module description.
89         * m4/stdlib-safer.m4: Remove file.
90         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
91         (configure.ac): Remove gl_STDLIB_SAFER call.
92         (Makefile.am): Augment lib_SOURCES.
93
94 2011-05-23  Bruno Haible  <bruno@clisp.org>
95
96         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
97         * m4/stdio-safer.m4: Remove file.
98         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
99         (configure.ac): Remove gl_TMPFILE_SAFER call.
100         (Makefile.am): Augment lib_SOURCES.
101
102 2011-05-23  Bruno Haible  <bruno@clisp.org>
103
104         popen-safer: Move AC_LIBOBJ invocations to module description.
105         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
106         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
107         (configure.ac): Remove gl_POPEN_SAFER call.
108         (Makefile.am): Augment lib_SOURCES.
109
110 2011-05-23  Bruno Haible  <bruno@clisp.org>
111
112         freopen-safer: Move AC_LIBOBJ invocations to module description.
113         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
114         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
115         (configure.ac): Remove gl_FREOPEN_SAFER call.
116         (Makefile.am): Augment lib_SOURCES.
117
118 2011-05-23  Bruno Haible  <bruno@clisp.org>
119
120         fopen-safer: Move AC_LIBOBJ invocations to module description.
121         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
122         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
123         (configure.ac): Remove gl_FOPEN_SAFER call.
124         (Makefile.am): Augment lib_SOURCES.
125
126 2011-05-23  Bruno Haible  <bruno@clisp.org>
127
128         crypto/sha512: Move AC_LIBOBJ invocations to module description.
129         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
130         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
131
132 2011-05-23  Bruno Haible  <bruno@clisp.org>
133
134         crypto/sha256: Move AC_LIBOBJ invocations to module description.
135         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
136         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
137
138 2011-05-23  Bruno Haible  <bruno@clisp.org>
139
140         crypto/sha1: Move AC_LIBOBJ invocations to module description.
141         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
142         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
143
144 2011-05-23  Bruno Haible  <bruno@clisp.org>
145
146         settime: Move AC_LIBOBJ invocations to module description.
147         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
148         * modules/settime (Makefile.am): Augment lib_SOURCES.
149
150 2011-05-23  Bruno Haible  <bruno@clisp.org>
151
152         savedir: Move AC_LIBOBJ invocations to module description.
153         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
154         * modules/savedir (Makefile.am): Augment lib_SOURCES.
155
156 2011-05-23  Bruno Haible  <bruno@clisp.org>
157
158         save-cwd: Move AC_LIBOBJ invocations to module description.
159         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
160         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
161
162 2011-05-23  Bruno Haible  <bruno@clisp.org>
163
164         same: Move AC_LIBOBJ invocations to module description.
165         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
166         * modules/same (Makefile.am): Augment lib_SOURCES.
167
168 2011-05-23  Bruno Haible  <bruno@clisp.org>
169
170         safe-write: Move AC_LIBOBJ invocations to module description.
171         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
172         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
173         instead of gl_SAFE_WRITE.
174         (Makefile.am): Augment lib_SOURCES.
175
176 2011-05-23  Bruno Haible  <bruno@clisp.org>
177
178         safe-read: Move AC_LIBOBJ invocations to module description.
179         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
180         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
181         of gl_SAFE_READ.
182         (Makefile.am): Augment lib_SOURCES.
183
184 2011-05-23  Bruno Haible  <bruno@clisp.org>
185
186         safe-alloc: Move AC_LIBOBJ invocations to module description.
187         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
188         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
189
190 2011-05-23  Bruno Haible  <bruno@clisp.org>
191
192         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
193         * m4/rijndael.m4: Remove file.
194         * modules/crypto/rijndael (Files): Remove it.
195         (configure.ac): Remove gl_RIJNDAEL call.
196         (Makefile.am): Augment lib_SOURCES.
197
198 2011-05-23  Bruno Haible  <bruno@clisp.org>
199
200         readtokens: Move AC_LIBOBJ invocations to module description.
201         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
202         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
203
204 2011-05-23  Bruno Haible  <bruno@clisp.org>
205
206         read-file: Move AC_LIBOBJ invocations to module description.
207         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
208         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
209         of gl_FUNC_READ_FILE.
210         (Makefile.am): Augment lib_SOURCES.
211
212 2011-05-23  Bruno Haible  <bruno@clisp.org>
213
214         quotearg: Move AC_LIBOBJ invocations to module description.
215         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
216         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
217
218 2011-05-23  Bruno Haible  <bruno@clisp.org>
219
220         quote: Move AC_LIBOBJ invocations to module description.
221         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
222         * modules/quote (Makefile.am): Augment lib_SOURCES.
223
224 2011-05-23  Bruno Haible  <bruno@clisp.org>
225
226         posixver: Move AC_LIBOBJ invocations to module description.
227         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
228         * modules/posixver (Makefile.am): Augment lib_SOURCES.
229
230 2011-05-23  Bruno Haible  <bruno@clisp.org>
231
232         posixtm: Move AC_LIBOBJ invocations to module description.
233         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
234         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
235
236 2011-05-23  Bruno Haible  <bruno@clisp.org>
237
238         physmem: Move AC_LIBOBJ invocations to module description.
239         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
240         * modules/physmem (Makefile.am): Augment lib_SOURCES.
241
242 2011-05-23  Bruno Haible  <bruno@clisp.org>
243
244         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
245         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
246         invocation.
247         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
248
249 2011-05-23  Bruno Haible  <bruno@clisp.org>
250
251         mpsort: Move AC_LIBOBJ invocations to module description.
252         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
253         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
254
255 2011-05-23  Bruno Haible  <bruno@clisp.org>
256
257         modechange: Move AC_LIBOBJ invocations to module description.
258         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
259         * modules/modechange (Makefile.am): Augment lib_SOURCES.
260
261 2011-05-23  Bruno Haible  <bruno@clisp.org>
262
263         mkdir-p: Move AC_LIBOBJ invocations to module description.
264         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
265         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
266
267 2011-05-23  Bruno Haible  <bruno@clisp.org>
268
269         mkancesdirs: Move AC_LIBOBJ invocations to module description.
270         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
271         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
272
273 2011-05-23  Bruno Haible  <bruno@clisp.org>
274
275         mgetgroups: Move AC_LIBOBJ invocations to module description.
276         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
277         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
278
279 2011-05-23  Bruno Haible  <bruno@clisp.org>
280
281         memxor: Move AC_LIBOBJ invocations to module description.
282         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
283         * modules/memxor (Makefile.am): Augment lib_SOURCES.
284
285 2011-05-23  Bruno Haible  <bruno@clisp.org>
286
287         memcoll: Move AC_LIBOBJ invocations to module description.
288         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
289         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
290
291 2011-05-23  Bruno Haible  <bruno@clisp.org>
292
293         memcasecmp: Move AC_LIBOBJ invocations to module description.
294         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
295         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
296
297 2011-05-23  Bruno Haible  <bruno@clisp.org>
298
299         crypto/md5: Move AC_LIBOBJ invocations to module description.
300         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
301         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
302
303 2011-05-23  Bruno Haible  <bruno@clisp.org>
304
305         crypto/md4: Move AC_LIBOBJ invocations to module description.
306         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
307         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
308
309 2011-05-23  Bruno Haible  <bruno@clisp.org>
310
311         crypto/md2: Move AC_LIBOBJ invocations to module description.
312         * m4/md2.m4: Remove file.
313         * modules/crypto/md2 (Files): Remove it.
314         (configure.ac): Remove gl_MD2 call.
315         (Makefile.am): Augment lib_SOURCES.
316
317 2011-05-23  Bruno Haible  <bruno@clisp.org>
318
319         long-options: Move AC_LIBOBJ invocations to module description.
320         * m4/long-options.m4: Remove file.
321         * modules/long-options (Files): Remove it.
322         (configure.ac): Remove gl_LONG_OPTIONS call.
323         (Makefile.am): Augment lib_SOURCES.
324
325 2011-05-23  Bruno Haible  <bruno@clisp.org>
326
327         i-ring: Move AC_LIBOBJ invocations to module description.
328         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
329         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
330
331 2011-05-23  Bruno Haible  <bruno@clisp.org>
332
333         idcache: Move AC_LIBOBJ invocations to module description.
334         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
335         * modules/idcache (Makefile.am): Augment lib_SOURCES.
336
337 2011-05-23  Bruno Haible  <bruno@clisp.org>
338
339         human: Move AC_LIBOBJ invocations to module description.
340         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
341         * modules/human (Makefile.am): Augment lib_SOURCES.
342
343 2011-05-23  Bruno Haible  <bruno@clisp.org>
344
345         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
346         * m4/hmac-sha1.m4: Remove file.
347         * modules/crypto/hmac-sha1 (Files): Remove it.
348         (configure.ac): Remove gl_HMAC_SHA1 call.
349         (Makefile.am): Augment lib_SOURCES.
350
351 2011-05-23  Bruno Haible  <bruno@clisp.org>
352
353         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
354         * m4/hmac-md5.m4: Remove file.
355         * modules/crypto/hmac-md5 (Files): Remove it.
356         (configure.ac): Remove gl_HMAC_MD5 call.
357         (Makefile.am): Augment lib_SOURCES.
358
359 2011-05-23  Bruno Haible  <bruno@clisp.org>
360
361         hash: Move AC_LIBOBJ invocations to module description.
362         * m4/hash.m4: Remove file.
363         * modules/hash (Files): Remove it.
364         (configure.ac): Remove gl_HASH call.
365         (Makefile.am): Augment lib_SOURCES.
366
367 2011-05-23  Bruno Haible  <bruno@clisp.org>
368
369         hard-locale: Move AC_LIBOBJ invocations to module description.
370         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
371         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
372
373 2011-05-23  Bruno Haible  <bruno@clisp.org>
374
375         getugroups: Move AC_LIBOBJ invocations to module description.
376         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
377         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
378
379 2011-05-23  Bruno Haible  <bruno@clisp.org>
380
381         gettime: Move AC_LIBOBJ invocations to module description.
382         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
383         * modules/gettime (Makefile.am): Augment lib_SOURCES.
384
385 2011-05-23  Bruno Haible  <bruno@clisp.org>
386
387         getndelim2: Move AC_LIBOBJ invocations to module description.
388         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
389         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
390
391 2011-05-23  Bruno Haible  <bruno@clisp.org>
392
393         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
394         * m4/gc-pbkdf2-sha1.m4: Remove file.
395         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
396         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
397         (Makefile.am): Augment lib_SOURCES.
398
399 2011-05-23  Bruno Haible  <bruno@clisp.org>
400
401         fts: Move AC_LIBOBJ invocations to module description.
402         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
403         * modules/fts (configure.ac): ... to here.
404
405 2011-05-23  Bruno Haible  <bruno@clisp.org>
406
407         file-type: Move AC_LIBOBJ invocations to module description.
408         * m4/file-type.m4: Remove file.
409         * modules/file-type (Files): Remove it.
410         (configure.ac): Remove gl_FILE_TYPE call.
411         (Makefile.am): Augment lib_SOURCES.
412
413 2011-05-23  Bruno Haible  <bruno@clisp.org>
414
415         filenamecat*: Respect rules for use of AC_LIBOBJ.
416         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
417         Remove AC_LIBOBJ invocation.
418         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
419         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
420
421 2011-05-23  Bruno Haible  <bruno@clisp.org>
422
423         filemode: Move AC_LIBOBJ invocations to module description.
424         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
425         * modules/filemode (Makefile.am): Augment lib_SOURCES.
426
427 2011-05-23  Bruno Haible  <bruno@clisp.org>
428
429         openat-safer: Move AC_LIBOBJ invocations to module description.
430         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
431         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
432
433 2011-05-23  Bruno Haible  <bruno@clisp.org>
434
435         fcntl-safer: Move AC_LIBOBJ invocations to module description.
436         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
437         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
438
439 2011-05-23  Bruno Haible  <bruno@clisp.org>
440
441         exclude: Move AC_LIBOBJ invocations to module description.
442         * m4/exclude.m4: Remove file.
443         * modules/exclude (Files): Remove it.
444         (configure.ac): Remove gl_EXCLUDE call.
445         (Makefile.am): Augment lib_SOURCES.
446
447 2011-05-23  Bruno Haible  <bruno@clisp.org>
448
449         dirname*: Respect rules for use of AC_LIBOBJ.
450         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
451         invocations.
452         * modules/dirname (Makefile.am): Augment lib_SOURCES.
453         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
454
455 2011-05-23  Bruno Haible  <bruno@clisp.org>
456
457         dirent-safer: Move AC_LIBOBJ invocations to module description.
458         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
459         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
460
461 2011-05-23  Bruno Haible  <bruno@clisp.org>
462
463         crypto/des: Move AC_LIBOBJ invocations to module description.
464         * m4/des.m4: Remove file.
465         * modules/crypto/des (Files): Remove it.
466         (configure.ac): Remove gl_DES call.
467         (Makefile.am): Augment lib_SOURCES.
468
469 2011-05-23  Bruno Haible  <bruno@clisp.org>
470
471         cycle-check: Move AC_LIBOBJ invocations to module description.
472         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
473         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
474
475 2011-05-23  Bruno Haible  <bruno@clisp.org>
476
477         c-strtold: Move AC_LIBOBJ invocations to module description.
478         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
479         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
480
481 2011-05-23  Bruno Haible  <bruno@clisp.org>
482
483         c-strtod: Move AC_LIBOBJ invocations to module description.
484         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
485         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
486
487 2011-05-23  Bruno Haible  <bruno@clisp.org>
488
489         crc: Move AC_LIBOBJ invocations to module description.
490         * m4/crc.m4: Remove file.
491         * modules/crc (Files): Remove it.
492         (configure.ac): Remove gl_CRC call.
493         (Makefile.am): Augment lib_SOURCES.
494
495 2011-05-23  Bruno Haible  <bruno@clisp.org>
496
497         close-stream: Move AC_LIBOBJ invocations to module description.
498         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
499         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
500
501 2011-05-23  Bruno Haible  <bruno@clisp.org>
502
503         closeout: Move AC_LIBOBJ invocations to module description.
504         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
505         * modules/closeout (Makefile.am): Augment lib_SOURCES.
506
507 2011-05-23  Bruno Haible  <bruno@clisp.org>
508
509         closein: Move AC_LIBOBJ invocations to module description.
510         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
511         * modules/closein (Makefile.am): Augment lib_SOURCES.
512
513 2011-05-23  Bruno Haible  <bruno@clisp.org>
514
515         cloexec: Move AC_LIBOBJ invocations to module description.
516         * m4/cloexec.m4: Remove file.
517         * modules/cloexec (Files): Remove it.
518         (configure.ac): Remove gl_CLOEXEC call.
519         (Makefile.am): Augment lib_SOURCES.
520
521 2011-05-23  Bruno Haible  <bruno@clisp.org>
522
523         check-version: Move AC_LIBOBJ invocations to module description.
524         * m4/check-version.m4: Remove file.
525         * modules/check-version (Files): Remove it.
526         (configure.ac): Remove gl_CHECK_VERSION call.
527         (Makefile.am): Augment lib_SOURCES.
528
529 2011-05-23  Bruno Haible  <bruno@clisp.org>
530
531         chdir-safer: Move AC_LIBOBJ invocations to module description.
532         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
533         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
534
535 2011-05-23  Bruno Haible  <bruno@clisp.org>
536
537         canonicalize: Move AC_LIBOBJ invocations to module description.
538         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
539         AC_LIBOBJ invocation.
540         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
541
542 2011-05-23  Bruno Haible  <bruno@clisp.org>
543
544         canon-host: Move AC_LIBOBJ invocations to module description.
545         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
546         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
547         instead of gl_CANON_HOST.
548         (Makefile.am): Augment lib_SOURCES.
549
550 2011-05-23  Bruno Haible  <bruno@clisp.org>
551
552         backupfile: Move AC_LIBOBJ invocations to module description.
553         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
554         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
555
556 2011-05-23  Bruno Haible  <bruno@clisp.org>
557
558         argmatch: Move AC_LIBOBJ invocations to module description.
559         * m4/argmatch.m4: Remove file.
560         * modules/argmatch (Files): Remove it.
561         (configure.ac): Remove gl_ARGMATCH call.
562         (Makefile.am): Augment lib_SOURCES.
563
564 2011-05-23  Bruno Haible  <bruno@clisp.org>
565
566         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
567         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
568         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
569
570 2011-05-23  Bruno Haible  <bruno@clisp.org>
571
572         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
573         * m4/arcfour.m4: Remove file.
574         * modules/crypto/arcfour (Files): Remove it.
575         (configure.ac): Remove gl_ARCFOUR call.
576         (Makefile.am): Augment lib_SOURCES.
577
578 2011-05-22  Bruno Haible  <bruno@clisp.org>
579
580         write: Move AC_LIBOBJ invocations to module description.
581         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
582         * modules/write (configure.ac): ... to here.
583
584 2011-05-22  Bruno Haible  <bruno@clisp.org>
585
586         wmemset: Move AC_LIBOBJ invocations to module description.
587         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
588         here...
589         * modules/wmemset (configure.ac): ... to here.
590
591 2011-05-22  Bruno Haible  <bruno@clisp.org>
592
593         wmemmove: Move AC_LIBOBJ invocations to module description.
594         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
595         here...
596         * modules/wmemmove (configure.ac): ... to here.
597
598 2011-05-22  Bruno Haible  <bruno@clisp.org>
599
600         wmemcpy: Move AC_LIBOBJ invocations to module description.
601         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
602         here...
603         * modules/wmemcpy (configure.ac): ... to here.
604
605 2011-05-22  Bruno Haible  <bruno@clisp.org>
606
607         wmemcmp: Move AC_LIBOBJ invocations to module description.
608         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
609         here...
610         * modules/wmemcmp (configure.ac): ... to here.
611
612 2011-05-22  Bruno Haible  <bruno@clisp.org>
613
614         wmemchr: Move AC_LIBOBJ invocations to module description.
615         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
616         here...
617         * modules/wmemchr (configure.ac): ... to here.
618
619 2011-05-22  Bruno Haible  <bruno@clisp.org>
620
621         wcswidth: Move AC_LIBOBJ invocations to module description.
622         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
623         here...
624         * modules/wcswidth (configure.ac): ... to here.
625
626 2011-05-22  Bruno Haible  <bruno@clisp.org>
627
628         wcwidth: Respect rules for use of AC_LIBOBJ.
629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
630         invocation from here...
631         * modules/wcwidth (configure.ac): ... to here.
632         (Depends-on): Update conditions.
633
634 2011-05-22  Bruno Haible  <bruno@clisp.org>
635
636         wctype: Move AC_LIBOBJ invocations to module description.
637         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
638         invocation from here...
639         * modules/wctype (configure.ac): ... to here.
640         (Depends-on): Update conditions.
641
642 2011-05-22  Bruno Haible  <bruno@clisp.org>
643
644         wctrans: Move AC_LIBOBJ invocations to module description.
645         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
646         invocation from here...
647         * modules/wctrans (configure.ac): ... to here.
648
649 2011-05-22  Bruno Haible  <bruno@clisp.org>
650
651         wctomb: Move AC_LIBOBJ invocations to module description.
652         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
653         invocations from here...
654         * modules/wctomb (configure.ac): ... to here.
655
656 2011-05-22  Bruno Haible  <bruno@clisp.org>
657
658         wctob: Move AC_LIBOBJ invocations to module description.
659         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
660         gl_PREREQ_WCTOB invocations from here...
661         * modules/wctob (configure.ac): ... to here.
662         (Depends-on): Update conditions.
663
664 2011-05-22  Bruno Haible  <bruno@clisp.org>
665
666         wcsxfrm: Move AC_LIBOBJ invocations to module description.
667         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
668         here...
669         * modules/wcsxfrm (configure.ac): ... to here.
670
671 2011-05-22  Bruno Haible  <bruno@clisp.org>
672
673         wcstok: Move AC_LIBOBJ invocations to module description.
674         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
675         * modules/wcstok (configure.ac): ... to here.
676
677 2011-05-22  Bruno Haible  <bruno@clisp.org>
678
679         wcsstr: Move AC_LIBOBJ invocations to module description.
680         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
681         * modules/wcsstr (configure.ac): ... to here.
682
683 2011-05-22  Bruno Haible  <bruno@clisp.org>
684
685         wcsspn: Move AC_LIBOBJ invocations to module description.
686         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
687         * modules/wcsspn (configure.ac): ... to here.
688
689 2011-05-22  Bruno Haible  <bruno@clisp.org>
690
691         wcsrtombs: Move AC_LIBOBJ invocations to module description.
692         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
693         gl_PREREQ_WCSRTOMBS invocations from here...
694         * modules/wcsrtombs (configure.ac): ... to here.
695
696 2011-05-22  Bruno Haible  <bruno@clisp.org>
697
698         wcsrchr: Move AC_LIBOBJ invocations to module description.
699         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
700         here...
701         * modules/wcsrchr (configure.ac): ... to here.
702
703 2011-05-22  Bruno Haible  <bruno@clisp.org>
704
705         wcspbrk: Move AC_LIBOBJ invocations to module description.
706         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
707         here...
708         * modules/wcspbrk (configure.ac): ... to here.
709
710 2011-05-22  Bruno Haible  <bruno@clisp.org>
711
712         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
713         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
714         gl_PREREQ_WCSNRTOMBS invocations from here...
715         * modules/wcsnrtombs (configure.ac): ... to here.
716
717 2011-05-22  Bruno Haible  <bruno@clisp.org>
718
719         wcsnlen: Move AC_LIBOBJ invocations to module description.
720         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
721         here...
722         * modules/wcsnlen (configure.ac): ... to here.
723
724 2011-05-22  Bruno Haible  <bruno@clisp.org>
725
726         wcsncpy: Move AC_LIBOBJ invocations to module description.
727         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
728         here...
729         * modules/wcsncpy (configure.ac): ... to here.
730
731 2011-05-22  Bruno Haible  <bruno@clisp.org>
732
733         wcsncmp: Move AC_LIBOBJ invocations to module description.
734         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
735         here...
736         * modules/wcsncmp (configure.ac): ... to here.
737
738 2011-05-22  Bruno Haible  <bruno@clisp.org>
739
740         wcsncat: Move AC_LIBOBJ invocations to module description.
741         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
742         here...
743         * modules/wcsncat (configure.ac): ... to here.
744
745 2011-05-22  Bruno Haible  <bruno@clisp.org>
746
747         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
748         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
749         from here...
750         * modules/wcsncasecmp (configure.ac): ... to here.
751
752 2011-05-22  Bruno Haible  <bruno@clisp.org>
753
754         wcslen: Move AC_LIBOBJ invocations to module description.
755         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
756         * modules/wcslen (configure.ac): ... to here.
757
758 2011-05-22  Bruno Haible  <bruno@clisp.org>
759
760         wcsdup: Move AC_LIBOBJ invocations to module description.
761         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
762         * modules/wcsdup (configure.ac): ... to here.
763
764 2011-05-22  Bruno Haible  <bruno@clisp.org>
765
766         wcscspn: Move AC_LIBOBJ invocations to module description.
767         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
768         here...
769         * modules/wcscspn (configure.ac): ... to here.
770
771 2011-05-22  Bruno Haible  <bruno@clisp.org>
772
773         wcscpy: Move AC_LIBOBJ invocations to module description.
774         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
775         * modules/wcscpy (configure.ac): ... to here.
776
777 2011-05-22  Bruno Haible  <bruno@clisp.org>
778
779         wcscoll: Move AC_LIBOBJ invocations to module description.
780         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
781         here...
782         * modules/wcscoll (configure.ac): ... to here.
783
784 2011-05-22  Bruno Haible  <bruno@clisp.org>
785
786         wcscmp: Move AC_LIBOBJ invocations to module description.
787         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
788         * modules/wcscmp (configure.ac): ... to here.
789
790 2011-05-22  Bruno Haible  <bruno@clisp.org>
791
792         wcschr: Move AC_LIBOBJ invocations to module description.
793         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
794         * modules/wcschr (configure.ac): ... to here.
795
796 2011-05-22  Bruno Haible  <bruno@clisp.org>
797
798         wcscat: Move AC_LIBOBJ invocations to module description.
799         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
800         * modules/wcscat (configure.ac): ... to here.
801
802 2011-05-22  Bruno Haible  <bruno@clisp.org>
803
804         wcscasecmp: Move AC_LIBOBJ invocations to module description.
805         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
806         here...
807         * modules/wcscasecmp (configure.ac): ... to here.
808
809 2011-05-22  Bruno Haible  <bruno@clisp.org>
810
811         wcrtomb: Move AC_LIBOBJ invocations to module description.
812         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
813         invocations from here...
814         * modules/wcrtomb (configure.ac): ... to here.
815
816 2011-05-22  Bruno Haible  <bruno@clisp.org>
817
818         wcpncpy: Move AC_LIBOBJ invocations to module description.
819         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
820         here...
821         * modules/wcpncpy (configure.ac): ... to here.
822
823 2011-05-22  Bruno Haible  <bruno@clisp.org>
824
825         wcpcpy: Move AC_LIBOBJ invocations to module description.
826         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
827         * modules/wcpcpy (configure.ac): ... to here.
828
829 2011-05-22  Bruno Haible  <bruno@clisp.org>
830
831         waitpid: Move AC_LIBOBJ invocations to module description.
832         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
833         invocation from here...
834         * modules/waitpid (configure.ac): ... to here.
835
836 2011-05-22  Bruno Haible  <bruno@clisp.org>
837
838         utimensat: Move AC_LIBOBJ invocations to module description.
839         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
840         here...
841         * modules/utimensat (configure.ac): ... to here.
842
843 2011-05-22  Bruno Haible  <bruno@clisp.org>
844
845         usleep: Move AC_LIBOBJ invocations to module description.
846         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
847         here...
848         * modules/usleep (configure.ac): ... to here.
849
850 2011-05-22  Bruno Haible  <bruno@clisp.org>
851
852         unlockpt: Move AC_LIBOBJ invocations to module description.
853         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
854         gl_PREREQ_UNLOCKPT invocations from here...
855         * modules/unlockpt (configure.ac): ... to here.
856
857 2011-05-22  Bruno Haible  <bruno@clisp.org>
858
859         unlink: Respect rules for use of AC_LIBOBJ.
860         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
861         * modules/unlink (configure.ac): ... to here.
862
863 2011-05-22  Bruno Haible  <bruno@clisp.org>
864
865         uname: Move AC_LIBOBJ invocations to module description.
866         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
867         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
868         here...
869         * modules/uname (configure.ac): ... to here.
870
871 2011-05-22  Bruno Haible  <bruno@clisp.org>
872
873         ttyname_r: Move AC_LIBOBJ invocations to module description.
874         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
875         gl_PREREQ_TTYNAME_R invocations from here...
876         * modules/ttyname_r (configure.ac): ... to here.
877
878 2011-05-22  Bruno Haible  <bruno@clisp.org>
879
880         tsearch: Move AC_LIBOBJ invocations to module description.
881         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
882         invocations from here...
883         * modules/tsearch (configure.ac): ... to here.
884
885 2011-05-22  Bruno Haible  <bruno@clisp.org>
886
887         towctrans: Move AC_LIBOBJ invocations to module description.
888         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
889         AC_LIBOBJ invocation from here...
890         * modules/towctrans (configure.ac): ... to here.
891
892 2011-05-22  Bruno Haible  <bruno@clisp.org>
893
894         tmpfile: Move AC_LIBOBJ invocations to module description.
895         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
896         invocations from here...
897         * modules/tmpfile (configure.ac): ... to here.
898
899 2011-05-22  Bruno Haible  <bruno@clisp.org>
900
901         times: Move AC_LIBOBJ invocations to module description.
902         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
903         * modules/times (configure.ac): ... to here.
904
905 2011-05-22  Bruno Haible  <bruno@clisp.org>
906
907         time_r: Move AC_LIBOBJ invocations to module description.
908         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
909         invocations from here...
910         * modules/time_r (configure.ac): ... to here.
911
912 2011-05-22  Bruno Haible  <bruno@clisp.org>
913
914         timegm: Move AC_LIBOBJ invocations to module description.
915         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
916         invocations from here...
917         * modules/timegm (configure.ac): ... to here.
918
919 2011-05-22  Bruno Haible  <bruno@clisp.org>
920
921         tcgetsid: Move AC_LIBOBJ invocations to module description.
922         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
923         and gl_PREREQ_TCGETSID invocations from here...
924         * modules/tcgetsid (configure.ac): ... to here.
925         (Depends-on): Update conditions.
926
927 2011-05-22  Bruno Haible  <bruno@clisp.org>
928
929         symlinkat: Move AC_LIBOBJ invocations to module description.
930         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
931         here...
932         * modules/symlinkat (configure.ac): ... to here.
933
934 2011-05-22  Bruno Haible  <bruno@clisp.org>
935
936         symlink: Move AC_LIBOBJ invocations to module description.
937         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
938         here...
939         * modules/symlink (configure.ac): ... to here.
940
941 2011-05-22  Bruno Haible  <bruno@clisp.org>
942
943         strverscmp: Move AC_LIBOBJ invocations to module description.
944         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
946         from here...
947         * modules/strverscmp (configure.ac): ... to here.
948
949 2011-05-22  Bruno Haible  <bruno@clisp.org>
950
951         strtok_r: Move AC_LIBOBJ invocations to module description.
952         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
953         and gl_PREREQ_STRTOK_R invocations from here...
954         * modules/strtok_r (configure.ac): ... to here.
955         (Depends-on): Update conditions.
956
957 2011-05-22  Bruno Haible  <bruno@clisp.org>
958
959         strtoumax: Move AC_LIBOBJ invocations to module description.
960         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
962         from here...
963         * modules/strtoumax (configure.ac): ... to here.
964
965 2011-05-22  Bruno Haible  <bruno@clisp.org>
966
967         strtoimax: Move AC_LIBOBJ invocations to module description.
968         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
970         from here...
971         * modules/strtoimax (configure.ac): ... to here.
972
973 2011-05-22  Bruno Haible  <bruno@clisp.org>
974
975         strtoull: Move AC_LIBOBJ invocations to module description.
976         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
978         from here...
979         * modules/strtoull (configure.ac): ... to here.
980
981 2011-05-22  Bruno Haible  <bruno@clisp.org>
982
983         strtoll: Move AC_LIBOBJ invocations to module description.
984         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
985         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
986         here...
987         * modules/strtoll (configure.ac): ... to here.
988
989 2011-05-22  Bruno Haible  <bruno@clisp.org>
990
991         strtoul: Move AC_LIBOBJ invocations to module description.
992         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
993         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
994         * modules/strtoul (configure.ac): ... to here.
995
996 2011-05-22  Bruno Haible  <bruno@clisp.org>
997
998         strtol: Move AC_LIBOBJ invocations to module description.
999         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1000         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1001         * modules/strtol (configure.ac): ... to here.
1002
1003 2011-05-22  Bruno Haible  <bruno@clisp.org>
1004
1005         strtod: Move AC_LIBOBJ invocations to module description.
1006         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1007         invocations from here...
1008         * modules/strtod (configure.ac): ... to here.
1009
1010 2011-05-22  Bruno Haible  <bruno@clisp.org>
1011
1012         strstr*: Move AC_LIBOBJ invocations to module description.
1013         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1014         invocations from here...
1015         * modules/strstr-simple (configure.ac): ... to here.
1016         * modules/strstr (configure.ac): ... and here.
1017
1018 2011-05-22  Bruno Haible  <bruno@clisp.org>
1019
1020         strsignal: Move AC_LIBOBJ invocations to module description.
1021         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1022         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1023         * modules/strsignal (configure.ac): ... to here.
1024         (Depends-on): Update conditions.
1025
1026 2011-05-22  Bruno Haible  <bruno@clisp.org>
1027
1028         strsep: Move AC_LIBOBJ invocations to module description.
1029         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1030         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1031         here...
1032         * modules/strsep (configure.ac): ... to here.
1033
1034 2011-05-22  Bruno Haible  <bruno@clisp.org>
1035
1036         strptime: Move AC_LIBOBJ invocations to module description.
1037         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1038         gl_PREREQ_STRPTIME invocations from here...
1039         * modules/strptime (configure.ac): ... to here.
1040
1041 2011-05-22  Bruno Haible  <bruno@clisp.org>
1042
1043         strpbrk: Move AC_LIBOBJ invocations to module description.
1044         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1046         here...
1047         * modules/strpbrk (configure.ac): ... to here.
1048
1049 2011-05-22  Bruno Haible  <bruno@clisp.org>
1050
1051         strnlen: Move AC_LIBOBJ invocations to module description.
1052         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1053         invocations from here...
1054         * modules/strnlen (configure.ac): ... to here.
1055
1056 2011-05-22  Bruno Haible  <bruno@clisp.org>
1057
1058         strndup: Move AC_LIBOBJ invocations to module description.
1059         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1060         invocations from here...
1061         * modules/strndup (configure.ac): ... to here.
1062         (Depends-on): Update conditions.
1063
1064 2011-05-22  Bruno Haible  <bruno@clisp.org>
1065
1066         strncat: Move AC_LIBOBJ invocations to module description.
1067         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1068         invocations from here...
1069         * modules/strncat (configure.ac): ... to here.
1070
1071 2011-05-22  Bruno Haible  <bruno@clisp.org>
1072
1073         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1074         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1075         invocations from here...
1076         * modules/strdup (configure.ac): ... to here.
1077         * modules/strdup-posix (configure.ac): ... and here.
1078
1079 2011-05-22  Bruno Haible  <bruno@clisp.org>
1080
1081         strcspn: Move AC_LIBOBJ invocations to module description.
1082         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1083         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1084         here...
1085         * modules/strcspn (configure.ac): ... to here.
1086
1087 2011-05-22  Bruno Haible  <bruno@clisp.org>
1088
1089         strchrnul: Move AC_LIBOBJ invocations to module description.
1090         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1091         gl_PREREQ_STRCHRNUL invocations from here...
1092         * modules/strchrnul (configure.ac): ... to here.
1093
1094 2011-05-22  Bruno Haible  <bruno@clisp.org>
1095
1096         strcasestr*: Move AC_LIBOBJ invocations to module description.
1097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1098         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1099         * modules/strcasestr-simple (configure.ac): ... to here.
1100         * modules/strcasestr (configure.ac): ... and here.
1101
1102 2011-05-22  Bruno Haible  <bruno@clisp.org>
1103
1104         strcase: Move AC_LIBOBJ invocations to module description.
1105         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1106         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1107         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1108         gl_PREREQ_STRNCASECMP invocations from here...
1109         * modules/strcase (configure.ac): ... to here.
1110
1111 2011-05-22  Bruno Haible  <bruno@clisp.org>
1112
1113         stpncpy: Move AC_LIBOBJ invocations to module description.
1114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1115         here...
1116         * modules/stpncpy (configure.ac): ... to here.
1117
1118 2011-05-22  Bruno Haible  <bruno@clisp.org>
1119
1120         stpcpy: Move AC_LIBOBJ invocations to module description.
1121         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1123         here...
1124         * modules/stpcpy (configure.ac): ... to here.
1125
1126 2011-05-21  Bruno Haible  <bruno@clisp.org>
1127
1128         stat: Move AC_LIBOBJ invocations to module description.
1129         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1130         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1131         here...
1132         * modules/stat (configure.ac): ... to here.
1133
1134 2011-05-21  Bruno Haible  <bruno@clisp.org>
1135
1136         sleep: Move AC_LIBOBJ invocations to module description.
1137         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1138         * modules/sleep (configure.ac): ... to here.
1139
1140 2011-05-21  Bruno Haible  <bruno@clisp.org>
1141
1142         signbit: Move AC_LIBOBJ invocations to module description.
1143         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1144         * modules/signbit (configure.ac): ... to here.
1145
1146 2011-05-21  Bruno Haible  <bruno@clisp.org>
1147
1148         sigprocmask: Move AC_LIBOBJ invocations to module description.
1149         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1150         gl_PREREQ_SIGPROMASK invocations from here...
1151         * modules/sigprocmask (configure.ac): ... to here.
1152
1153 2011-05-21  Bruno Haible  <bruno@clisp.org>
1154
1155         sigaction: Move AC_LIBOBJ invocations to module description.
1156         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1157         gl_PREREQ_SIGACTION invocations from here...
1158         * modules/sigaction (configure.ac): ... to here.
1159
1160 2011-05-21  Bruno Haible  <bruno@clisp.org>
1161
1162         sig2str: Move AC_LIBOBJ invocations to module description.
1163         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1164         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1165         here...
1166         * modules/sig2str (configure.ac): ... to here.
1167
1168 2011-05-21  Bruno Haible  <bruno@clisp.org>
1169
1170         setlocale: Move AC_LIBOBJ invocations to module description.
1171         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1172         gl_PREREQ_SETLOCALE invocations from here...
1173         * modules/setlocale (configure.ac): ... to here.
1174
1175 2011-05-21  Bruno Haible  <bruno@clisp.org>
1176
1177         unsetenv: Move AC_LIBOBJ invocations to module description.
1178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1179         and gl_PREREQ_UNSETENV invocations from here...
1180         * modules/unsetenv (configure.ac): ... to here.
1181         (Depends-on): Update.
1182
1183 2011-05-21  Bruno Haible  <bruno@clisp.org>
1184
1185         setenv: Move AC_LIBOBJ invocations to module description.
1186         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1187         here...
1188         * modules/setenv (configure.ac): ... to here.
1189
1190 2011-05-21  Bruno Haible  <bruno@clisp.org>
1191
1192         selinux-h: Move AC_LIBOBJ invocations to module description.
1193         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1194         AC_LIBOBJ invocation from here...
1195         * modules/selinux-h (configure.ac): ... to here.
1196
1197 2011-05-21  Bruno Haible  <bruno@clisp.org>
1198
1199         select: Respect rules for use of AC_LIBOBJ.
1200         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1201         here...
1202         * modules/select (configure.ac): ... to here.
1203
1204 2011-05-21  Bruno Haible  <bruno@clisp.org>
1205
1206         scandir: Move AC_LIBOBJ invocations to module description.
1207         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1208         invocations from here...
1209         * modules/scandir (configure.ac): ... to here.
1210
1211 2011-05-21  Bruno Haible  <bruno@clisp.org>
1212
1213         rpmatch: Move AC_LIBOBJ invocations to module description.
1214         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1216         here...
1217         * modules/rpmatch (configure.ac): ... to here.
1218
1219 2011-05-21  Bruno Haible  <bruno@clisp.org>
1220
1221         rmdir: Respect rules for use of AC_LIBOBJ.
1222         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1223         * modules/rmdir (configure.ac): ... to here.
1224
1225 2011-05-21  Bruno Haible  <bruno@clisp.org>
1226
1227         renameat: Move AC_LIBOBJ invocations to module description.
1228         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1229         here...
1230         * modules/renameat (configure.ac): ... to here.
1231
1232 2011-05-21  Bruno Haible  <bruno@clisp.org>
1233
1234         rename: Respect rules for use of AC_LIBOBJ.
1235         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1236         here...
1237         * modules/rename (configure.ac): ... to here.
1238
1239 2011-05-21  Bruno Haible  <bruno@clisp.org>
1240
1241         remove: Move AC_LIBOBJ invocations to module description.
1242         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1243         here...
1244         * modules/remove (configure.ac): ... to here.
1245
1246 2011-05-21  Bruno Haible  <bruno@clisp.org>
1247
1248         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1249         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1250         macro.
1251         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1252         * modules/relocatable-lib (configure.ac): ... to here.
1253         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1254         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1255
1256 2011-05-21  Bruno Haible  <bruno@clisp.org>
1257
1258         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1259         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1260         here...
1261         * modules/relocatable-prog (configure.ac): ... to here.
1262
1263 2011-05-21  Bruno Haible  <bruno@clisp.org>
1264
1265         regex: Move AC_LIBOBJ invocations to module description.
1266         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1267         invocations from here...
1268         * modules/regex (configure.ac): ... to here.
1269
1270 2011-05-21  Bruno Haible  <bruno@clisp.org>
1271
1272         realloc-*: Move AC_LIBOBJ invocations to module description.
1273         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1274         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1275         AC_LIBOBJ invocations from here...
1276         * modules/realloc-gnu (configure.ac): ... to here.
1277         * modules/realloc-posix (configure.ac): ... and here.
1278
1279 2011-05-21  Bruno Haible  <bruno@clisp.org>
1280
1281         readutmp: Move AC_LIBOBJ invocations to module description.
1282         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1283         * modules/readutmp (configure.ac): ... to here.
1284
1285 2011-05-21  Bruno Haible  <bruno@clisp.org>
1286
1287         readlinkat: Move AC_LIBOBJ invocations to module description.
1288         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1289         here...
1290         * modules/readlinkat (configure.ac): ... to here.
1291
1292 2011-05-21  Bruno Haible  <bruno@clisp.org>
1293
1294         readlink: Move AC_LIBOBJ invocations to module description.
1295         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1296         gl_PREREQ_READLINK invocations from here...
1297         * modules/readlink (configure.ac): ... to here.
1298
1299 2011-05-21  Bruno Haible  <bruno@clisp.org>
1300
1301         readline: Move AC_LIBOBJ invocations to module description.
1302         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1303         gl_PREREQ_READLINE invocations from here...
1304         * modules/readline (configure.ac): ... to here.
1305
1306 2011-05-21  Bruno Haible  <bruno@clisp.org>
1307
1308         read: Move AC_LIBOBJ invocations to module description.
1309         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1310         * modules/read (configure.ac): ... to here.
1311
1312 2011-05-21  Bruno Haible  <bruno@clisp.org>
1313
1314         rawmemchr: Move AC_LIBOBJ invocations to module description.
1315         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1316         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1317         from here...
1318         * modules/rawmemchr (configure.ac): ... to here.
1319
1320 2011-05-21  Bruno Haible  <bruno@clisp.org>
1321
1322         random_r: Move AC_LIBOBJ invocations to module description.
1323         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1324         gl_PREREQ_RANDOM_R invocations from here...
1325         * modules/random_r (configure.ac): ... to here.
1326
1327 2011-05-21  Bruno Haible  <bruno@clisp.org>
1328
1329         pwrite: Move AC_LIBOBJ invocations to module description.
1330         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1331         * modules/pwrite (configure.ac): ... to here.
1332
1333 2011-05-21  Bruno Haible  <bruno@clisp.org>
1334
1335         putenv: Move AC_LIBOBJ invocations to module description.
1336         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1337         * modules/putenv (configure.ac): ... to here.
1338
1339 2011-05-21  Bruno Haible  <bruno@clisp.org>
1340
1341         login_tty: Move AC_LIBOBJ invocations to module description.
1342         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1343         * modules/login_tty (configure.ac): ... to here.
1344
1345 2011-05-21  Bruno Haible  <bruno@clisp.org>
1346
1347         openpty: Move AC_LIBOBJ invocations to module description.
1348         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1349         * modules/openpty (configure.ac): ... to here.
1350
1351 2011-05-21  Bruno Haible  <bruno@clisp.org>
1352
1353         forkpty: Move AC_LIBOBJ invocations to module description.
1354         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1355         * modules/forkpty (configure.ac): ... to here.
1356
1357 2011-05-21  Bruno Haible  <bruno@clisp.org>
1358
1359         ptsname: Move AC_LIBOBJ invocations to module description.
1360         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1361         invocations from here...
1362         * modules/ptsname (configure.ac): ... to here.
1363
1364 2011-05-21  Bruno Haible  <bruno@clisp.org>
1365
1366         pread: Move AC_LIBOBJ invocations to module description.
1367         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1368         * modules/pread (configure.ac): ... to here.
1369
1370 2011-05-21  Bruno Haible  <bruno@clisp.org>
1371
1372         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1373         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1374         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1375         * modules/posix_spawn (configure.ac): ... to here.
1376         * modules/posix_spawnp (configure.ac): ... and here.
1377
1378 2011-05-21  Bruno Haible  <bruno@clisp.org>
1379
1380         popen: Move AC_LIBOBJ invocations to module description.
1381         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1382         invocations from here...
1383         * modules/popen (configure.ac): ... to here.
1384
1385 2011-05-21  Bruno Haible  <bruno@clisp.org>
1386
1387         poll: Move AC_LIBOBJ invocations to module description.
1388         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1389         invocations from here...
1390         * modules/poll (configure.ac): ... to here.
1391
1392 2011-05-21  Bruno Haible  <bruno@clisp.org>
1393
1394         pipe-posix: Move AC_LIBOBJ invocations to module description.
1395         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1396         * modules/pipe-posix (configure.ac): ... to here.
1397
1398 2011-05-21  Bruno Haible  <bruno@clisp.org>
1399
1400         openat: Respect rules for use of AC_LIBOBJ.
1401         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1402         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1403         * modules/openat (configure.ac): ... to here.
1404
1405 2011-05-21  Bruno Haible  <bruno@clisp.org>
1406
1407         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1408         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1409         invocation from here...
1410         * modules/obstack-printf (configure.ac): ... to here.
1411         * modules/obstack-printf-posix (configure.ac): ... and here.
1412
1413 2011-05-21  Bruno Haible  <bruno@clisp.org>
1414
1415         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1416         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1417         from here...
1418         * modules/nl_langinfo (configure.ac): ... to here.
1419
1420 2011-05-21  Bruno Haible  <bruno@clisp.org>
1421
1422         nanosleep: Move AC_LIBOBJ invocations to module description.
1423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1424         gl_PREREQ_NANOSLEEP invocations from here...
1425         * modules/nanosleep (configure.ac): ... to here.
1426
1427 2011-05-21  Bruno Haible  <bruno@clisp.org>
1428
1429         mountlist: Move AC_LIBOBJ invocations to module description.
1430         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1431         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1432         * modules/mountlist (configure.ac): ... to here.
1433
1434 2011-05-21  Bruno Haible  <bruno@clisp.org>
1435
1436         mktime: Respect rules for use of AC_LIBOBJ.
1437         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1438         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1439         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1440         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1441         * modules/mktime (configure.ac): ... to here.
1442         * modules/mktime-internal (configure.ac): ... and here.
1443         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1444
1445 2011-05-21  Bruno Haible  <bruno@clisp.org>
1446
1447         mkstemps: Move AC_LIBOBJ invocations to module description.
1448         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1449         here...
1450         * modules/mkstemps (configure.ac): ... to here.
1451
1452 2011-05-21  Bruno Haible  <bruno@clisp.org>
1453
1454         mkstemp: Move AC_LIBOBJ invocations to module description.
1455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1456         gl_PREREQ_MKSTEMP invocations from here...
1457         * modules/mkstemp (configure.ac): ... to here.
1458
1459 2011-05-21  Bruno Haible  <bruno@clisp.org>
1460
1461         mkostemps: Move AC_LIBOBJ invocations to module description.
1462         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1463         here...
1464         * modules/mkostemps (configure.ac): ... to here.
1465
1466 2011-05-21  Bruno Haible  <bruno@clisp.org>
1467
1468         mkostemp: Move AC_LIBOBJ invocations to module description.
1469         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1470         gl_PREREQ_MKOSTEMP invocations from here...
1471         * modules/mkostemp (configure.ac): ... to here.
1472
1473 2011-05-21  Bruno Haible  <bruno@clisp.org>
1474
1475         mknod: Move AC_LIBOBJ invocations to module description.
1476         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1477         * modules/mknod (configure.ac): ... to here.
1478
1479 2011-05-21  Bruno Haible  <bruno@clisp.org>
1480
1481         mkfifoat: Move AC_LIBOBJ invocations to module description.
1482         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1483         here...
1484         * modules/mkfifoat (configure.ac): ... to here.
1485
1486 2011-05-21  Bruno Haible  <bruno@clisp.org>
1487
1488         mkfifo: Respect rules for use of AC_LIBOBJ.
1489         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1490         here...
1491         * modules/mkfifo (configure.ac): ... to here.
1492
1493 2011-05-21  Bruno Haible  <bruno@clisp.org>
1494
1495         mkdtemp: Move AC_LIBOBJ invocations to module description.
1496         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1497         invocations from here...
1498         * modules/mkdtemp (configure.ac): ... to here.
1499
1500 2011-05-21  Bruno Haible  <bruno@clisp.org>
1501
1502         mkdir: Move AC_LIBOBJ invocations to module description.
1503         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1504         * modules/mkdir (configure.ac): ... to here.
1505
1506 2011-05-21  Bruno Haible  <bruno@clisp.org>
1507
1508         memset: Move AC_LIBOBJ invocations to module description.
1509         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1511         here...
1512         * modules/memset (configure.ac): ... to here.
1513
1514 2011-05-21  Bruno Haible  <bruno@clisp.org>
1515
1516         memrchr: Move AC_LIBOBJ invocations to module description.
1517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1519         here...
1520         * modules/memrchr (configure.ac): ... to here.
1521
1522 2011-05-21  Bruno Haible  <bruno@clisp.org>
1523
1524         mempcpy: Move AC_LIBOBJ invocations to module description.
1525         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1527         here...
1528         * modules/mempcpy (configure.ac): ... to here.
1529
1530 2011-05-21  Bruno Haible  <bruno@clisp.org>
1531
1532         memmove: Move AC_LIBOBJ invocations to module description.
1533         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1534         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1535         here...
1536         * modules/memmove (configure.ac): ... to here.
1537
1538 2011-05-21  Bruno Haible  <bruno@clisp.org>
1539
1540         memmem*: Move AC_LIBOBJ invocations to module description.
1541         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1542         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1543         here...
1544         (gl_FUNC_MEMMEM): ... and here...
1545         * modules/memmem-simple (configure.ac): ... to here.
1546         * modules/memmem (configure.ac): ... and here.
1547
1548 2011-05-21  Bruno Haible  <bruno@clisp.org>
1549
1550         memcpy: Move AC_LIBOBJ invocations to module description.
1551         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1553         here...
1554         * modules/memcpy (configure.ac): ... to here.
1555
1556 2011-05-21  Bruno Haible  <bruno@clisp.org>
1557
1558         memcmp: Simplify autoconf macro.
1559         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1560         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1561         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1562
1563 2011-05-21  Bruno Haible  <bruno@clisp.org>
1564
1565         memcmp: Move AC_LIBOBJ invocations to module description.
1566         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1567         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1568         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1569         * modules/memcmp (configure.ac): ... to here.
1570         (Depends-on): Update conditions.
1571
1572 2011-05-21  Bruno Haible  <bruno@clisp.org>
1573
1574         memchr: Respect rules for use of AC_LIBOBJ.
1575         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1576         invocations from here...
1577         * modules/memchr (configure.ac): ... to here.
1578
1579 2011-05-21  Bruno Haible  <bruno@clisp.org>
1580
1581         mbtowc: Move AC_LIBOBJ invocations to module description.
1582         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1583         invocations from here...
1584         * modules/mbtowc (configure.ac): ... to here.
1585
1586 2011-05-21  Bruno Haible  <bruno@clisp.org>
1587
1588         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1589         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1590         gl_PREREQ_MBSRTOWCS invocations from here...
1591         * modules/mbsrtowcs (configure.ac): ... to here.
1592
1593 2011-05-21  Bruno Haible  <bruno@clisp.org>
1594
1595         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1596         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1597         gl_PREREQ_MBSNRTOWCS invocations from here...
1598         * modules/mbsnrtowcs (configure.ac): ... to here.
1599
1600 2011-05-21  Bruno Haible  <bruno@clisp.org>
1601
1602         mbsinit: Move AC_LIBOBJ invocations to module description.
1603         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1604         invocations from here...
1605         * modules/mbsinit (configure.ac): ... to here.
1606
1607 2011-05-21  Bruno Haible  <bruno@clisp.org>
1608
1609         mbrlen: Move AC_LIBOBJ invocations to module description.
1610         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1611         invocations from here...
1612         * modules/mbrlen (configure.ac): ... to here.
1613
1614 2011-05-21  Bruno Haible  <bruno@clisp.org>
1615
1616         mbrtowc: Respect rules for use of AC_LIBOBJ.
1617         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1618         invocations from here...
1619         * modules/mbrtowc (configure.ac): ... to here.
1620
1621 2011-05-21  Bruno Haible  <bruno@clisp.org>
1622
1623         malloc-*: Move AC_LIBOBJ invocations to module description.
1624         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1625         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1626         AC_LIBOBJ invocations from here...
1627         * modules/malloc-gnu (configure.ac): ... to here.
1628         * modules/malloc-posix (configure.ac): ... and here.
1629
1630 2011-05-21  Bruno Haible  <bruno@clisp.org>
1631
1632         lstat, openat: Respect rules for use of AC_LIBOBJ.
1633         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1634         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1635         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1636         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1637         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1638         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1639         here.
1640         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1641
1642 2011-05-21  Bruno Haible  <bruno@clisp.org>
1643
1644         lseek: Move AC_LIBOBJ invocations to module description.
1645         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1646         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1647         * modules/lseek (configure.ac): ... to here.
1648
1649 2011-05-21  Bruno Haible  <bruno@clisp.org>
1650
1651         linkat: Move AC_LIBOBJ invocations to module description.
1652         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1653         here...
1654         * modules/linkat (configure.ac): ... to here.
1655
1656 2011-05-21  Bruno Haible  <bruno@clisp.org>
1657
1658         link: Respect rules for use of AC_LIBOBJ.
1659         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1660         * modules/link (configure.ac): ... to here.
1661
1662 2011-05-21  Bruno Haible  <bruno@clisp.org>
1663
1664         lchown: Move AC_LIBOBJ invocations to module description.
1665         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1666         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1667         * modules/lchown (configure.ac): ... to here.
1668
1669 2011-05-21  Bruno Haible  <bruno@clisp.org>
1670
1671         iswctype: Move AC_LIBOBJ invocations to module description.
1672         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1673         here...
1674         * modules/iswctype (configure.ac): ... to here.
1675
1676 2011-05-21  Bruno Haible  <bruno@clisp.org>
1677
1678         iswblank: Move AC_LIBOBJ invocations to module description.
1679         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1680         here...
1681         * modules/iswblank (configure.ac): ... to here.
1682
1683 2011-05-21  Bruno Haible  <bruno@clisp.org>
1684
1685         atanl: Move AC_LIBOBJ invocations to module description.
1686         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1687         * modules/atanl (configure.ac): ... to here.
1688
1689 2011-05-21  Bruno Haible  <bruno@clisp.org>
1690
1691         acosl: Move AC_LIBOBJ invocations to module description.
1692         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1693         * modules/acosl (configure.ac): ... to here.
1694
1695 2011-05-21  Bruno Haible  <bruno@clisp.org>
1696
1697         asinl: Respect rules for use of AC_LIBOBJ.
1698         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1699         * modules/asinl (configure.ac): ... to here.
1700
1701 2011-05-21  Bruno Haible  <bruno@clisp.org>
1702
1703         tanl: Move AC_LIBOBJ invocations to module description.
1704         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1705         * modules/tanl (configure.ac): ... to here.
1706
1707 2011-05-21  Bruno Haible  <bruno@clisp.org>
1708
1709         cosl: Move AC_LIBOBJ invocations to module description.
1710         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1711         * modules/cosl (configure.ac): ... to here.
1712
1713 2011-05-21  Bruno Haible  <bruno@clisp.org>
1714
1715         sinl: Move AC_LIBOBJ invocations to module description.
1716         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1717         * modules/sinl (configure.ac): ... to here.
1718
1719 2011-05-21  Bruno Haible  <bruno@clisp.org>
1720
1721         logl: Move AC_LIBOBJ invocations to module description.
1722         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1723         * modules/logl (configure.ac): ... to here.
1724
1725 2011-05-21  Bruno Haible  <bruno@clisp.org>
1726
1727         expl: Move AC_LIBOBJ invocations to module description.
1728         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1729         * modules/expl (configure.ac): ... to here.
1730
1731 2011-05-21  Bruno Haible  <bruno@clisp.org>
1732
1733         roundl: Move AC_LIBOBJ invocations to module description.
1734         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1735         * modules/roundl (configure.ac): ... to here.
1736
1737 2011-05-21  Bruno Haible  <bruno@clisp.org>
1738
1739         round: Move AC_LIBOBJ invocations to module description.
1740         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1741         * modules/round (configure.ac): ... to here.
1742
1743 2011-05-21  Bruno Haible  <bruno@clisp.org>
1744
1745         roundf: Move AC_LIBOBJ invocations to module description.
1746         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1747         * modules/roundf (configure.ac): ... to here.
1748
1749 2011-05-21  Bruno Haible  <bruno@clisp.org>
1750
1751         truncl: Move AC_LIBOBJ invocations to module description.
1752         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1753         * modules/truncl (configure.ac): ... to here.
1754
1755 2011-05-21  Bruno Haible  <bruno@clisp.org>
1756
1757         trunc: Move AC_LIBOBJ invocations to module description.
1758         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1759         * modules/trunc (configure.ac): ... to here.
1760
1761 2011-05-21  Bruno Haible  <bruno@clisp.org>
1762
1763         truncf: Move AC_LIBOBJ invocations to module description.
1764         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1765         * modules/truncf (configure.ac): ... to here.
1766
1767 2011-05-21  Bruno Haible  <bruno@clisp.org>
1768
1769         ceill: Move AC_LIBOBJ invocations to module description.
1770         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1771         * modules/ceill (configure.ac): ... to here.
1772
1773 2011-05-21  Bruno Haible  <bruno@clisp.org>
1774
1775         ceil: Move AC_LIBOBJ invocations to module description.
1776         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1777         * modules/ceil (configure.ac): ... to here.
1778
1779 2011-05-21  Bruno Haible  <bruno@clisp.org>
1780
1781         ceilf: Move AC_LIBOBJ invocations to module description.
1782         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1783         * modules/ceilf (configure.ac): ... to here.
1784
1785 2011-05-21  Bruno Haible  <bruno@clisp.org>
1786
1787         floorl: Respect rules for use of AC_LIBOBJ.
1788         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1789         * modules/floorl (configure.ac): ... to here.
1790
1791 2011-05-21  Bruno Haible  <bruno@clisp.org>
1792
1793         floor: Respect rules for use of AC_LIBOBJ.
1794         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1795         * modules/floor (configure.ac): ... to here.
1796
1797 2011-05-21  Bruno Haible  <bruno@clisp.org>
1798
1799         floorf: Move AC_LIBOBJ invocations to module description.
1800         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1801         * modules/floorf (configure.ac): ... to here.
1802
1803 2011-05-20  Bruno Haible  <bruno@clisp.org>
1804
1805         sqrtl: Respect rules for use of AC_LIBOBJ.
1806         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1807         * modules/sqrtl (configure.ac): ... to here.
1808
1809 2011-05-20  Bruno Haible  <bruno@clisp.org>
1810
1811         ldexpl: Respect rules for use of AC_LIBOBJ.
1812         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1813         * modules/ldexpl (configure.ac): ... to here.
1814
1815 2011-05-20  Bruno Haible  <bruno@clisp.org>
1816
1817         frexpl*: Respect rules for use of AC_LIBOBJ.
1818         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1819         invocation from here...
1820         * modules/frexpl (configure.ac): ... to here.
1821         * modules/frexpl-nolibm (configure.ac): ... and here.
1822
1823 2011-05-20  Bruno Haible  <bruno@clisp.org>
1824
1825         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1826         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1827         invocation from here...
1828         * modules/frexp (configure.ac): ... to here.
1829         * modules/frexp-nolibm (configure.ac): ... and here.
1830
1831 2011-05-20  Bruno Haible  <bruno@clisp.org>
1832
1833         isnan: Respect rules for use of AC_LIBOBJ.
1834         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1835         invocations here.
1836         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1837         REPLACE_ISNAN.
1838         * modules/isnand (configure.ac): Likewise.
1839         * modules/isnanl (configure.ac): Likewise.
1840
1841 2011-05-20  Bruno Haible  <bruno@clisp.org>
1842
1843         isnanl*: Respect rules for use of AC_LIBOBJ.
1844         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1845         invocation from here...
1846         * modules/isnanl (configure.ac): ... to here.
1847         * modules/isnanl-nolibm (configure.ac): ... and here.
1848
1849 2011-05-20  Bruno Haible  <bruno@clisp.org>
1850
1851         isnand*: Move AC_LIBOBJ invocations to module description.
1852         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1853         invocation from here...
1854         * modules/isnand (configure.ac): ... to here.
1855         * modules/isnand-nolibm (configure.ac): ... and here.
1856
1857 2011-05-20  Bruno Haible  <bruno@clisp.org>
1858
1859         isnanf*: Move AC_LIBOBJ invocations to module description.
1860         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1861         invocation from here...
1862         * modules/isnanf (configure.ac): ... to here.
1863         * modules/isnanf-nolibm (configure.ac): ... and here.
1864
1865 2011-05-20  Bruno Haible  <bruno@clisp.org>
1866
1867         isnan*: Separate the AC_LIBOBJ invocations.
1868         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1869         AC_LIBOBJ invocation.
1870         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1871         here.
1872         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1873         AC_LIBOBJ invocation.
1874         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1875         here.
1876         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1877         AC_LIBOBJ invocation.
1878         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1879         here.
1880         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1881
1882 2011-05-08  Bruno Haible  <bruno@clisp.org>
1883
1884         isinf: Move AC_LIBOBJ invocations to module description.
1885         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1886         * modules/isinf (configure.ac): ... to here.
1887
1888 2011-05-08  Bruno Haible  <bruno@clisp.org>
1889
1890         isfinite: Move AC_LIBOBJ invocations to module description.
1891         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1892         * modules/isfinite (configure.ac): ... to here.
1893
1894 2011-05-08  Bruno Haible  <bruno@clisp.org>
1895
1896         isblank: Move AC_LIBOBJ invocations to module description.
1897         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1898         here...
1899         * modules/isblank (configure.ac): ... to here.
1900
1901 2011-05-08  Bruno Haible  <bruno@clisp.org>
1902
1903         isapipe: Move AC_LIBOBJ invocations to module description.
1904         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1905         gl_PREREQ_ISAPIPE invocations from here...
1906         * modules/isapipe (configure.ac): ... to here.
1907         (Depends-on): Update condition.
1908
1909 2011-05-08  Bruno Haible  <bruno@clisp.org>
1910
1911         ioctl: Move AC_LIBOBJ invocations to module description.
1912         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1913         invocations from here...
1914         * modules/ioctl (configure.ac): ... to here.
1915         (Depends-on): Update condition.
1916
1917 2011-05-08  Bruno Haible  <bruno@clisp.org>
1918
1919         imaxdiv: Move AC_LIBOBJ invocations to module description.
1920         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1921         invocations from here...
1922         * modules/imaxdiv (configure.ac): ... to here.
1923
1924 2011-05-08  Bruno Haible  <bruno@clisp.org>
1925
1926         imaxabs: Move AC_LIBOBJ invocations to module description.
1927         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1928         invocations from here...
1929         * modules/imaxabs (configure.ac): ... to here.
1930
1931 2011-05-08  Bruno Haible  <bruno@clisp.org>
1932
1933         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1935         AC_LIBOBJ invocations from here...
1936         * modules/getaddrinfo (configure.ac): ... to here.
1937         (Depends-on): Add conditions.
1938
1939 2011-05-08  Bruno Haible  <bruno@clisp.org>
1940
1941         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1942         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1943         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1944         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1945         (gl_PREREQ_INET_PTON): ... from here.
1946         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1947         gl_PREREQ_INET_PTON here.
1948         (Depends-on): Update condition.
1949
1950 2011-05-08  Bruno Haible  <bruno@clisp.org>
1951
1952         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1953         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1954         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1955         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1956         (gl_PREREQ_INET_NTOP): ... from here.
1957         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1958         gl_PREREQ_INET_NTOP here.
1959         (Depends-on): Update condition.
1960
1961 2011-05-08  Bruno Haible  <bruno@clisp.org>
1962
1963         iconv_open: Move AC_LIBOBJ invocations to module description.
1964         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1965         AC_LIBOBJ invocations from here...
1966         * modules/iconv_open (configure.ac): ... to here.
1967
1968 2011-05-08  Bruno Haible  <bruno@clisp.org>
1969
1970         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1971         If module 'iconv_open' is among the main modules and module
1972         'iconv_open-utf' is among the tests dependencies, then
1973         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1974         return the special iconv_t values. Therefore iconv() and iconv_close()
1975         must support these special iconv_t values, already in lib, not only in
1976         tests.
1977         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1978         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1979         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1980         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1981         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1982         (Depends-on): Add the dependencies of iconv_open-utf.
1983         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1984         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1985         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1986
1987 2011-05-08  Bruno Haible  <bruno@clisp.org>
1988
1989         group-member: Move AC_LIBOBJ invocations to module description.
1990         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1991         gl_PREREQ_GROUP_MEMBER invocations from here...
1992         * modules/group-member (configure.ac): ... to here.
1993
1994 2011-05-08  Bruno Haible  <bruno@clisp.org>
1995
1996         grantpt: Move AC_LIBOBJ invocations to module description.
1997         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1998         invocations from here...
1999         * modules/grantpt (configure.ac): ... to here.
2000
2001 2011-05-08  Bruno Haible  <bruno@clisp.org>
2002
2003         glob: Move AC_LIBOBJ invocations to module description.
2004         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2005         from here...
2006         * modules/glob (configure.ac): ... to here.
2007
2008 2011-05-08  Bruno Haible  <bruno@clisp.org>
2009
2010         getusershell: Move AC_LIBOBJ invocations to module description.
2011         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2012         Move AC_LIBOBJ invocation from here...
2013         * modules/getusershell (configure.ac): ... to here.
2014         (Depends-on): Update condition.
2015
2016 2011-05-08  Bruno Haible  <bruno@clisp.org>
2017
2018         gettimeofday: Move AC_LIBOBJ invocations to module description.
2019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2020         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2021         gl_PREREQ_GETTIMEOFDAY invocations from here...
2022         * modules/gettimeofday (configure.ac): ... to here.
2023
2024 2011-05-08  Bruno Haible  <bruno@clisp.org>
2025
2026         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2027         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2028         just gl_FUNC_TZSET.
2029         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2030         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2032         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2033
2034 2011-05-08  Bruno Haible  <bruno@clisp.org>
2035
2036         getsubopt: Move AC_LIBOBJ invocations to module description.
2037         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2038         gl_PREREQ_GETSUBOPT invocations from here...
2039         * modules/getsubopt (configure.ac): ... to here.
2040
2041 2011-05-08  Bruno Haible  <bruno@clisp.org>
2042
2043         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2044         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2045         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2046         * modules/getpass-gnu (configure.ac): ... to here.
2047
2048 2011-05-08  Bruno Haible  <bruno@clisp.org>
2049
2050         getpass: Move AC_LIBOBJ invocations to module description.
2051         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2052         gl_PREREQ_GETPASS invocations from here...
2053         * modules/getpass (configure.ac): ... to here.
2054
2055 2011-05-08  Bruno Haible  <bruno@clisp.org>
2056
2057         getpagesize: Move AC_LIBOBJ invocations to module description.
2058         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2059         from here...
2060         * modules/getpagesize (configure.ac): ... to here.
2061
2062 2011-05-08  Bruno Haible  <bruno@clisp.org>
2063
2064         getopt: Move AC_LIBOBJ invocations to module description.
2065         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2066         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2067         invocations from here...
2068         * modules/getopt-gnu (configure.ac): ... to here.
2069         * modules/getopt-posix (configure.ac): ... and here.
2070         (Depends-on): Update condition.
2071
2072 2011-05-08  Bruno Haible  <bruno@clisp.org>
2073
2074         getopt, argp: Respect rules for use of AC_LIBOBJ.
2075         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2076         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2077         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2078         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2079
2080 2011-05-08  Bruno Haible  <bruno@clisp.org>
2081
2082         getlogin_r: Move AC_LIBOBJ invocations to module description.
2083         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2084         gl_PREREQ_GETLOGIN_R invocations from here...
2085         * modules/getlogin_r (configure.ac): ... to here.
2086
2087 2011-05-08  Bruno Haible  <bruno@clisp.org>
2088
2089         getlogin: Move AC_LIBOBJ invocations to module description.
2090         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2091         here...
2092         * modules/getlogin (configure.ac): ... to here.
2093
2094 2011-05-08  Bruno Haible  <bruno@clisp.org>
2095
2096         getloadavg: Move AC_LIBOBJ invocations to module description.
2097         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2098         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2099         * modules/getloadavg (configure.ac): ... to here.
2100
2101 2011-05-08  Bruno Haible  <bruno@clisp.org>
2102
2103         gethrxtime: Move AC_LIBOBJ invocations to module description.
2104         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2105         LIB_GETHRXTIME from here...
2106         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2107         invocations from here...
2108         * modules/gethrxtime (configure.ac): ... to here.
2109
2110 2011-05-08  Bruno Haible  <bruno@clisp.org>
2111
2112         gethostname: Move AC_LIBOBJ invocations to module description.
2113         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2114         gl_PREREQ_GETHOSTNAME invocations from here...
2115         * modules/gethostname (configure.ac): ... to here.
2116
2117 2011-05-08  Bruno Haible  <bruno@clisp.org>
2118
2119         getgroups: Move AC_LIBOBJ invocations to module description.
2120         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2121         here...
2122         * modules/getgroups (configure.ac): ... to here.
2123
2124 2011-05-08  Bruno Haible  <bruno@clisp.org>
2125
2126         getdtablesize: Move AC_LIBOBJ invocations to module description.
2127         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2128         invocation from here...
2129         * modules/getdtablesize (configure.ac): ... to here.
2130
2131 2011-05-08  Bruno Haible  <bruno@clisp.org>
2132
2133         getdomainname: Move AC_LIBOBJ invocations to module description.
2134         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2135         gl_PREREQ_GETDOMAINNAME invocations from here...
2136         * modules/getdomainname (configure.ac): ... to here.
2137
2138 2011-05-08  Bruno Haible  <bruno@clisp.org>
2139
2140         getline: Move AC_LIBOBJ invocations to module description.
2141         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2142         invocations from here...
2143         * modules/getline (configure.ac): ... to here.
2144
2145 2011-05-08  Bruno Haible  <bruno@clisp.org>
2146
2147         getline: Simplify.
2148         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2149         It's already handled through the module dependency.
2150
2151 2011-05-08  Bruno Haible  <bruno@clisp.org>
2152
2153         getdelim: Move AC_LIBOBJ invocations to module description.
2154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2155         and gl_PREREQ_GETDELIM invocations from here...
2156         * modules/getdelim (configure.ac): ... to here.
2157         (Depends-on): Fix condition.
2158
2159 2011-05-08  Bruno Haible  <bruno@clisp.org>
2160
2161         getcwd: Move AC_LIBOBJ invocations to module description.
2162         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2163         invocations from here...
2164         * modules/getcwd (configure.ac): ... to here.
2165
2166 2011-05-08  Bruno Haible  <bruno@clisp.org>
2167
2168         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2169         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2170         here...
2171         * modules/getcwd-lgpl (configure.ac): ... to here.
2172
2173 2011-05-07  Bruno Haible  <bruno@clisp.org>
2174
2175         crypto/gc: Move AC_LIBOBJ invocations to module description.
2176         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2177         * modules/crypto/gc (configure.ac): ... to here.
2178
2179 2011-05-07  Bruno Haible  <bruno@clisp.org>
2180
2181         fwriting: Move AC_LIBOBJ invocations to module description.
2182         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2183         here...
2184         * modules/fwriting (configure.ac): ... to here.
2185
2186 2011-05-07  Bruno Haible  <bruno@clisp.org>
2187
2188         fwritable: Move AC_LIBOBJ invocations to module description.
2189         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2190         here...
2191         * modules/fwritable (configure.ac): ... to here.
2192
2193 2011-05-07  Bruno Haible  <bruno@clisp.org>
2194
2195         futimens: Move AC_LIBOBJ invocations to module description.
2196         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2197         here...
2198         * modules/futimens (configure.ac): ... to here.
2199
2200 2011-05-07  Bruno Haible  <bruno@clisp.org>
2201
2202         ftruncate: Move AC_LIBOBJ invocations to module description.
2203         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2204         gl_PREREQ_FTRUNCATE invocations from here...
2205         * modules/ftruncate (configure.ac): ... to here.
2206
2207 2011-05-07  Bruno Haible  <bruno@clisp.org>
2208
2209         fsync: Move AC_LIBOBJ invocations to module description.
2210         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2211         invocations from here...
2212         * modules/fsync (configure.ac): ... to here.
2213
2214 2011-05-07  Bruno Haible  <bruno@clisp.org>
2215
2216         fsusage: Move AC_LIBOBJ invocations to module description.
2217         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2218         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2219         * modules/fsusage (configure.ac): ... to here.
2220
2221 2011-05-07  Bruno Haible  <bruno@clisp.org>
2222
2223         freopen: Move AC_LIBOBJ invocations to module description.
2224         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2225         invocations from here...
2226         * modules/freopen (configure.ac): ... to here.
2227
2228 2011-05-07  Bruno Haible  <bruno@clisp.org>
2229
2230         free: Move AC_LIBOBJ invocations to module description.
2231         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2232         invocations from here...
2233         * modules/free (configure.ac): ... to here.
2234
2235 2011-05-07  Bruno Haible  <bruno@clisp.org>
2236
2237         freadable: Move AC_LIBOBJ invocations to module description.
2238         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2239         here...
2240         * modules/freadable (configure.ac): ... to here.
2241
2242 2011-05-07  Bruno Haible  <bruno@clisp.org>
2243
2244         fpurge: Move AC_LIBOBJ invocations to module description.
2245         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2246         invocations from here...
2247         * modules/fpurge (configure.ac): ... to here.
2248
2249 2011-05-07  Bruno Haible  <bruno@clisp.org>
2250
2251         fpending: Move AC_LIBOBJ invocations to module description.
2252         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2253         gl_FUNC_FPENDING.
2254         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2255         invocations from here...
2256         * modules/fpending (configure.ac): ... to here.
2257
2258 2011-05-07  Bruno Haible  <bruno@clisp.org>
2259
2260         fopen: Move AC_LIBOBJ invocations to module description.
2261         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2262         invocations from here...
2263         * modules/fopen (configure.ac): ... to here.
2264
2265 2011-05-07  Bruno Haible  <bruno@clisp.org>
2266
2267         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2268         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2269         gl_FUNC_FNMATCH_POSIX.
2270         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2271         invocations from here...
2272         * modules/fnmatch (configure.ac): ... to here.
2273         * modules/fnmatch-gnu (configure.ac): ... and here.
2274
2275 2011-05-07  Bruno Haible  <bruno@clisp.org>
2276
2277         flock: Move AC_LIBOBJ invocations to module description.
2278         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2279         invocations from here...
2280         * modules/flock (configure.ac): ... to here.
2281
2282 2011-05-07  Bruno Haible  <bruno@clisp.org>
2283
2284         fileblocks: Move AC_LIBOBJ invocations to module description.
2285         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2286         gl_PREREQ_FILEBLOCKS invocations from here...
2287         * modules/fileblocks (configure.ac): ... to here.
2288
2289 2011-05-06  Bruno Haible  <bruno@clisp.org>
2290
2291         fflush: Move AC_LIBOBJ invocations to module description.
2292         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2293         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2294         invocations from here...
2295         * modules/fflush (configure.ac): ... to here.
2296
2297 2011-05-06  Bruno Haible  <bruno@clisp.org>
2298
2299         fdopendir: Move AC_LIBOBJ invocations to module description.
2300         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2301         here...
2302         * modules/fdopendir (configure.ac): ... to here.
2303         (Depends-on): Improve conditions.
2304
2305 2011-05-06  Bruno Haible  <bruno@clisp.org>
2306
2307         _Exit: Move AC_LIBOBJ invocations to module description.
2308         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2309         invocations from here...
2310         * modules/_Exit (configure.ac): ... to here.
2311
2312 2011-05-21  Bruno Haible  <bruno@clisp.org>
2313
2314         euidaccess: Respect rules for use of AC_LIBOBJ.
2315         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2316         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2317         from here...
2318         * modules/euidaccess (configure.ac): ... to here.
2319
2320 2011-05-06  Bruno Haible  <bruno@clisp.org>
2321
2322         error: Move AC_LIBOBJ invocations to module description.
2323         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2324         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2325         invocations from here...
2326         * modules/error (configure.ac): ... to here.
2327
2328 2011-05-06  Bruno Haible  <bruno@clisp.org>
2329
2330         duplocale: Move AC_LIBOBJ invocations to module description.
2331         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2332         gl_PREREQ_DUPLOCALE invocations from here...
2333         * modules/duplocale (configure.ac): ... to here.
2334
2335 2011-05-05  Bruno Haible  <bruno@clisp.org>
2336
2337         dirfd: Move AC_LIBOBJ invocations to module description.
2338         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2339         gl_FUNC_DIRFD.
2340         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2341         here...
2342         * modules/dirfd (configure.ac): ... to here.
2343         (Depends-on): Fix condition.
2344
2345 2011-05-05  Bruno Haible  <bruno@clisp.org>
2346
2347         chown: Respect rules for use of AC_LIBOBJ.
2348         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2349         * modules/chown (configure.ac): ... to here.
2350
2351 2011-05-05  Bruno Haible  <bruno@clisp.org>
2352
2353         chdir-long: Move AC_LIBOBJ invocations to module description.
2354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2355         gl_PREREQ_CHDIR_LONG invocations from here...
2356         * modules/chdir-long (configure.ac): ... to here.
2357
2358 2011-05-05  Bruno Haible  <bruno@clisp.org>
2359
2360         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2361         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2362         from here...
2363         * modules/canonicalize-lgpl (configure.ac): ... to here.
2364
2365 2011-05-05  Bruno Haible  <bruno@clisp.org>
2366
2367         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2368         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2369         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2370         REPLACE_CALLOC.
2371         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2372         * modules/calloc-gnu (configure.ac): Likewise.
2373
2374 2011-05-05  Bruno Haible  <bruno@clisp.org>
2375
2376         btowc: Move AC_LIBOBJ invocations to module description.
2377         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2378         invocations from here...
2379         * modules/btowc (configure.ac): ... to here.
2380
2381 2011-05-21  Bruno Haible  <bruno@clisp.org>
2382
2383         atexit: Move AC_LIBOBJ invocations to module description.
2384         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2386         here...
2387         * modules/atexit (configure.ac): ... to here.
2388
2389 2011-05-05  Bruno Haible  <bruno@clisp.org>
2390
2391         atoll: Move AC_LIBOBJ invocations to module description.
2392         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2393         invocations from here...
2394         * modules/atoll (configure.ac): ... to here.
2395
2396 2011-05-05  Bruno Haible  <bruno@clisp.org>
2397
2398         argz: Move AC_LIBOBJ invocations to module description.
2399         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2400         * modules/argz (configure.ac): ... to here.
2401
2402 2011-05-05  Bruno Haible  <bruno@clisp.org>
2403
2404         alphasort: Move AC_LIBOBJ invocations to module description.
2405         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2406         gl_PREREQ_ALPHASORT invocations from here...
2407         * modules/alphasort (configure.ac): ... to here.
2408
2409 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2410
2411         verify: new macro verify_expr; verify_true deprecated
2412         * NEWS: Mention this.
2413         * doc/verify.texi (Compile-time Assertions): Document this.
2414         * lib/verify.h (verify_true): Deprecate.
2415         (verify_expr): New macro.
2416         * tests/test-verify.c (function): Test verify_expr.
2417
2418 2011-06-14  Jim Meyering  <meyering@redhat.com>
2419
2420         init.sh: give more portable redirection-related advice in a comment
2421         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2422         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2423         for lots of discussion.  Stefano Lattarini suggested the solution
2424         of putting "9>&2" after the command.  Reported by Bruno Haible.
2425
2426 2011-06-13  Bruno Haible  <bruno@clisp.org>
2427
2428         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2430         'none'.
2431
2432 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2433
2434         ftoastr: use strtof only if HAVE_STRTOF
2435         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2437         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2438         * modules/ftoastr (configure.ac): Check for strtof.
2439
2440 2011-06-13  Bruno Haible  <bruno@clisp.org>
2441
2442         gnulib-tool: Addendum to 2011-06-08 commit.
2443         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2444         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2445
2446 2011-06-13  Bruno Haible  <bruno@clisp.org>
2447
2448         fseeko: Provide a non-inline replacement of fseek().
2449         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2450         * modules/fseeko (Depends-on): Add fseek.
2451         * modules/fseek (License): Change to LGPLv2+.
2452
2453 2011-06-13  Bruno Haible  <bruno@clisp.org>
2454
2455         ftello: Provide a non-inline replacement of ftell().
2456         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2457         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2458         not have ftello() (such as on mingw).
2459         * modules/ftello (Depends-on): Add ftell.
2460         * modules/ftell (License): Change to LGPLv2+.
2461
2462 2011-05-07  Bruno Haible  <bruno@clisp.org>
2463
2464         ftell: Move AC_LIBOBJ invocations to module description.
2465         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2466         * modules/ftell (configure.ac): ... to here.
2467
2468 2011-05-07  Bruno Haible  <bruno@clisp.org>
2469
2470         ftello: Respect rules for use of AC_LIBOBJ.
2471         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2472         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2473         here...
2474         * modules/ftello (configure.ac): ... to here.
2475
2476 2011-05-07  Bruno Haible  <bruno@clisp.org>
2477
2478         fseeko: Simplify.
2479         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2480         (gl_FUNC_FSEEKO): Inline it here.
2481
2482 2011-05-07  Bruno Haible  <bruno@clisp.org>
2483
2484         fseek: Move AC_LIBOBJ invocations to module description.
2485         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2486         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2487         * modules/fseek (configure.ac): ... to here.
2488
2489 2011-05-07  Bruno Haible  <bruno@clisp.org>
2490
2491         fseek: Respect rules for use of AC_LIBOBJ.
2492         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2493         here...
2494         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2495
2496 2011-05-07  Bruno Haible  <bruno@clisp.org>
2497
2498         fseeko: Respect rules for use of AC_LIBOBJ.
2499         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2500         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2501         here...
2502         * modules/fseeko (configure.ac): ... to here.
2503
2504 2011-06-13  Bruno Haible  <bruno@clisp.org>
2505
2506         gnulib-tool: Allow comments in the 'Depends-on' section.
2507         * doc/gnulib.texi (Module description): Mention comment syntax in the
2508         Depends-on section.
2509         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2510
2511 2011-06-13  Bruno Haible  <bruno@clisp.org>
2512
2513         file-set.h: guard __attibute__ use, now that it's not always defined
2514         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2515         versions that support it.  This fixes a coreutils build failure with
2516         the vendor cc on HP-UX 11.31.
2517
2518 2011-06-12  Bruno Haible  <bruno@clisp.org>
2519
2520         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2521         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2522         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2523         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2524         (acl, aclsort): New declarations.
2525         (aclv_nontrivial): New declaration.
2526         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2527         (file_has_acl): Read also the second kind of HP-UX ACLs.
2528         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2529         kind of HP-UX ACLs if the first kind fails.
2530         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2531         second kind of HP-UX ACLs.
2532         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2533         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2534         agree.
2535         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2536         hpuxjfs.
2537         Handle hpuxjfs.
2538         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2539         hpuxjfs.
2540         Handle hpuxjfs.
2541         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2542         (func_test_same_acls): Use both lsacl and getacl.
2543         Handle hpuxjfs.
2544         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2545         (func_test_same_acls): Use both lsacl and getacl.
2546         Handle hpuxjfs.
2547
2548 2011-06-12  Bruno Haible  <bruno@clisp.org>
2549
2550         acl: Complete the 2010-08-10 fix.
2551         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2552         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2553         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2554         explicitly.
2555         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2556         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2557
2558 2011-06-12  Bruno Haible  <bruno@clisp.org>
2559
2560         spawn-pipe tests: Comments.
2561         * tests/test-spawn-pipe-child.c (main): Update comment.
2562         Reported by James Youngman <jay@gnu.org>.
2563
2564 2011-06-11  James Youngman  <jay@gnu.org>
2565
2566         New module 'stat-size'.
2567         * modules/stat-size: New module.  Provides macros for accessing
2568         file size information in instances of struct stat.  Depends on the
2569         fileblocks module because it calls st_blocks.
2570         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2571         * doc/gnulib.texi: Include stat-size.texi.
2572         * doc/stat-size.texi: Documentation for this module.
2573         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2574         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2575         AC_STRUCT_ST_BLOCKS.
2576
2577 2011-06-09  Bruno Haible  <bruno@clisp.org>
2578
2579         thread: Support pthreads-win32.
2580         * lib/glthread/thread.h (gl_thread_self): Define differently on
2581         pthreads-win32.
2582         (gl_null_thread): New declaration.
2583         (gl_thread_self_pointer): New macro.
2584         * lib/glthread/thread.c (gl_null_thread): New constant.
2585         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2586         gl_thread_self.
2587         * tests/test-tls.c: Likewise.
2588         Suggested by Paul Eggert. Reported by Eric Blake.
2589
2590 2011-06-09  Bruno Haible  <bruno@clisp.org>
2591
2592         thread: Fix confusion between NULL and 0.
2593         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2594         Reported by Paul Eggert.
2595
2596 2011-06-09  Bruno Haible  <bruno@clisp.org>
2597
2598         spawn-pipe tests: Avoid test failure on HP-UX 11.
2599         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2600         is closed.
2601
2602 2011-06-09  Bruno Haible  <bruno@clisp.org>
2603
2604         acl tests: Fix compilation error on HP-UX 11.
2605         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2606
2607 2011-06-09  Bruno Haible  <bruno@clisp.org>
2608
2609         rmdir: Avoid test failure on HP-UX 10.20.
2610         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2611         EEXIST.
2612
2613 2011-06-08  Eric Blake  <eblake@redhat.com>
2614
2615         perror: fix test on mingw
2616         * modules/perror-tests (Depends-on): Add dup2.
2617
2618         strerror_r-posix: fix on MacOS
2619         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2620         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2621         logic bug.
2622         * lib/strerror_r.c (strerror_r): Fix the bug.
2623         * lib/strerror.c (strerror): Likewise.
2624         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2625         problem.
2626         * doc/posix-functions/strerror.texi (strerror): Likewise.
2627         * doc/posix-functions/perror.texi (perror): Likewise.
2628         * tests/test-strerror.c (main): Enhance test.
2629         * tests/test-strerror_r.c (main): Likewise.
2630
2631 2011-06-08  Bruno Haible  <bruno@clisp.org>
2632
2633         gnulib-tool: Better isolation between different gnulib-tool invocations.
2634         * gnulib-tool: New option --witness-c-macro.
2635         (witness_c_macro): New variable.
2636         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2637         AM_CPPFLAGS define it as a C macro.
2638         (func_emit_tests_Makefile_am): Likewise.
2639         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2640         read it from there.
2641         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2642         m4_define, not AC_DEFUN.
2643         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2644         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2645         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2646         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2647         s|...|...|, to substitute the values of the GNULIB_* module indicator
2648         variables.
2649         * modules/dirent (Makefile.am): Likewise.
2650         * modules/fcntl-h (Makefile.am): Likewise.
2651         * modules/iconv-h (Makefile.am): Likewise.
2652         * modules/langinfo (Makefile.am): Likewise.
2653         * modules/locale (Makefile.am): Likewise.
2654         * modules/math (Makefile.am): Likewise.
2655         * modules/netdb (Makefile.am): Likewise.
2656         * modules/poll-h (Makefile.am): Likewise.
2657         * modules/pty (Makefile.am): Likewise.
2658         * modules/search (Makefile.am): Likewise.
2659         * modules/signal (Makefile.am): Likewise.
2660         * modules/spawn (Makefile.am): Likewise.
2661         * modules/stdio (Makefile.am): Likewise.
2662         * modules/stdlib (Makefile.am): Likewise.
2663         * modules/string (Makefile.am): Likewise.
2664         * modules/sys_ioctl (Makefile.am): Likewise.
2665         * modules/sys_select (Makefile.am): Likewise.
2666         * modules/sys_socket (Makefile.am): Likewise.
2667         * modules/sys_stat (Makefile.am): Likewise.
2668         * modules/sys_times (Makefile.am): Likewise.
2669         * modules/sys_utsname (Makefile.am): Likewise.
2670         * modules/sys_wait (Makefile.am): Likewise.
2671         * modules/termios (Makefile.am): Likewise.
2672         * modules/time (Makefile.am): Likewise.
2673         * modules/unistd (Makefile.am): Likewise.
2674         * modules/wchar (Makefile.am): Likewise.
2675
2676 2011-06-08  Eric Blake  <eblake@redhat.com>
2677
2678         strerror: simplify replacement
2679         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2680         * modules/strerror (configure.ac): No prereqs needed here...
2681         * modules/strerror-override (configure.ac): ...but this needs it.
2682         (Files): Add file for needed prereq macro.
2683
2684 2011-06-08  Bruno Haible  <bruno@clisp.org>
2685
2686         strerror_r-posix: Tweaks.
2687         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2688         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2689         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2690         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2691         (gl_FUNC_STRERROR_R): ... to here.
2692         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2693
2694 2011-06-07  Eric Blake  <eblake@redhat.com>
2695
2696         perror: document fixed bugs
2697         * doc/posix-functions/perror.texi (perror): Document recent
2698         patches.
2699
2700 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2701
2702         stat-time: get_stat_birthtime failure is better-defined
2703         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2704         return a timestamp whose tv_sec and tv_nsec values are both -1.
2705         Previously, the spec said only that the tv_nsec value was negative.
2706         This upward-compatible change simplifies GNU tar a bit.
2707
2708 2011-06-07  Eric Blake  <eblake@redhat.com>
2709
2710         strerror_r-posix: work around cygwin 1.7.9
2711         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2712         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2713         bug without replacing strerror_r.
2714         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2715         strerror_r is buggy, but without requiring strerror_r compilation.
2716         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2717
2718         test-perror: relax test to ignore cygwin bug
2719         * tests/test-perror2.c (main): Relax test on requiring detection
2720         of stream errors, and use unbuffered stream.
2721         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2722         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2723         * doc/posix-functions/fputc.texi (fputc): Likewise.
2724         * doc/posix-functions/fputs.texi (fputs): Likewise.
2725         * doc/posix-functions/fputws.texi (fputws): Likewise.
2726         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2727         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2728         * doc/posix-functions/getopt.texi (getopt): Likewise.
2729         * doc/posix-functions/perror.texi (perror): Likewise.
2730         * doc/posix-functions/printf.texi (printf): Likewise.
2731         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2732         * doc/posix-functions/psignal.texi (psignal): Likewise.
2733         * doc/posix-functions/putc.texi (putc): Likewise.
2734         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2735         Likewise.
2736         * doc/posix-functions/putchar.texi (putchar): Likewise.
2737         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2738         Likewise.
2739         * doc/posix-functions/puts.texi (puts): Likewise.
2740         * doc/posix-functions/putwc.texi (putwc): Likewise.
2741         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2742         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2743         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2744         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2745         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2746         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2747         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2748         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2749
2750 2011-05-22  Bruno Haible  <bruno@clisp.org>
2751
2752         strerror: Move AC_LIBOBJ invocations to module description.
2753         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2754         gl_PREREQ_STRERROR invocations from here...
2755         * modules/strerror (configure.ac): ... to here.
2756
2757 2011-05-21  Bruno Haible  <bruno@clisp.org>
2758
2759         perror: Use common idiom.
2760         * modules/perror (configure.ac): Reorder statements.
2761
2762 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2763
2764         tests: fix usage message in 'mktempd_'
2765         * tests/init.sh (mktempd_): In the usage message, use literal
2766         'mktempd_', not '$ME' (which is even undefined), as the name of
2767         the subroutine.
2768
2769 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2770
2771         tests init: new function 'fatal_', for hard errors
2772         Before this patch, the only way offered by tests/init.sh to
2773         properly signal a hard error was the `framework_failure_'
2774         function.  But the error message issued by that function,
2775         as its name would suggest, refers to a set-up failure in the
2776         testsuite, while hard errors can obviously also be due to
2777         other reasons.  The best way to fix this inconsistency is to
2778         introduce a new function with a more general error message.
2779         * tests/init.sh (fatal_): New function.
2780
2781 2011-06-06  Eric Blake  <eblake@redhat.com>
2782
2783         canonicalize-lgpl: use common idiom
2784         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2785         over newer POSIX -Rf.
2786         Reported by Bruno Haible.
2787
2788         canonicalize-lgpl: work around AIX realpath bug
2789         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2790         * doc/posix-functions/realpath.texi (realpath): Document it.
2791         Reported by Bruno Haible.
2792
2793         strerror: work around FreeBSD bug
2794         * lib/strerror.c (strerror): Special case 0.
2795         Reported by Bruno Haible.
2796
2797         strerror-override: avoid bloating errno module
2798         * modules/errno (Files, configure.ac): Move replacement strings...
2799         * modules/strerror-override: ...to new module.
2800         * modules/strerror (Depends-on): Add strerror-override.
2801         * modules/strerror_r-posix (Depends-on): Likewise.
2802         * MODULES.html.sh: Document new module.
2803         Reported by Bruno Haible.
2804
2805 2011-06-06  Bruno Haible  <bruno@clisp.org>
2806
2807         spawn-pipe tests: Rename program.
2808         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2809         * tests/test-spawn-pipe-child.c: Update comment.
2810         * tests/test-spawn-pipe.sh: Update.
2811         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2812
2813         spawn-pipe tests: Link the child program only against libc.
2814         * tests/test-spawn-pipe-child.c: New file, extracted from
2815         tests/test-spawn-pipe.c.
2816         (main): Expect only one argument.
2817         (is_open): New function, copied from tests/test-pipe.c.
2818         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2819         (child_main): Remove function.
2820         (test_pipe): Pass only one argument to the child program.
2821         (main): Remove child process code. Expect the child program's name as
2822         first argument.
2823         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2824         argument.
2825         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2826         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2827         test-spawn-pipe-child against no libraries.
2828
2829 2011-06-06  Bruno Haible  <bruno@clisp.org>
2830
2831         careadlinkat: Avoid mismatch between ssize_t and int.
2832         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2833         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2834
2835 2011-06-06  Jim Meyering  <meyering@redhat.com>
2836
2837         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2838         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2839         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2840
2841 2011-06-05  Bruno Haible  <bruno@clisp.org>
2842
2843         ansi-c++-opt: Interoperability with libtool.
2844         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2845         set the variable to "no", not to ":".
2846         * NEWS: Mention the change.
2847
2848 2011-06-05  Bruno Haible  <bruno@clisp.org>
2849
2850         acl: Fix test failure on AIX 7.
2851         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2852         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2853
2854 2011-06-05  Bruno Haible  <bruno@clisp.org>
2855
2856         pipe-filter-ii: Fix test failure on AIX and IRIX.
2857         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2858         with EAGAIN, retry with a smaller buffer size.
2859
2860 2011-06-05  Bruno Haible  <bruno@clisp.org>
2861
2862         localename: Fix link dependencies.
2863         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2864         * modules/localename-tests (Makefile.am): Link test-localename with
2865         $(LIBTHREAD).
2866
2867 2011-06-05  Bruno Haible  <bruno@clisp.org>
2868
2869         error: Avoid gcc warning.
2870         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2871
2872 2011-06-05  Bruno Haible  <bruno@clisp.org>
2873
2874         unsetenv: Avoid gcc warning.
2875         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2876
2877 2011-06-05  Bruno Haible  <bruno@clisp.org>
2878
2879         setenv: Avoid gcc warning.
2880         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2881
2882 2011-06-05  Bruno Haible  <bruno@clisp.org>
2883
2884         sys_select: Ensure memset is declared also on AIX 7.
2885         * lib/sys_select.in.h: Include <string.h> also on AIX.
2886         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2887         self-contained also on AIX 7.1.
2888
2889 2011-06-04  Jim Meyering  <meyering@redhat.com>
2890
2891         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2892         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2893         function name, "error".
2894         (_gl_translatable_diag_func_re): New configurable variable.
2895
2896 2011-06-04  Bruno Haible  <bruno@clisp.org>
2897
2898         getopt: Avoid gcc warning.
2899         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2900
2901 2011-06-04  Bruno Haible  <bruno@clisp.org>
2902
2903         strerror_r: Fix comments.
2904         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2905         commit.
2906
2907 2011-06-04  Bruno Haible  <bruno@clisp.org>
2908
2909         perror: Fix compilation error.
2910         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2911         Undefine fprintf, not sprintf.
2912         * modules/perror (Depends-on): Remove intprops, verify.
2913
2914 2011-06-04  Bruno Haible  <bruno@clisp.org>
2915
2916         setlocale: Enable replacement on Cygwin 1.5.
2917         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2918         Cygwin 1.5.x.
2919         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2920         LC_CTYPE category also exists on Cygwin 1.5.x.
2921
2922 2011-06-04  Bruno Haible  <bruno@clisp.org>
2923
2924         strerror-override: Don't disable symbol renamings.
2925         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2926         * lib/strerror-override.c: Include config.h.
2927         (strerror_override): Don't undefine.
2928
2929 2011-06-03  Bruno Haible  <bruno@clisp.org>
2930
2931         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2932         * lib/localename.h: Update copyright header.
2933         * lib/localename.c: Likewise.
2934         * lib/relocatable.h: Likewise.
2935         * lib/relocatable.c: Likewise.
2936
2937 2011-06-02  Bruno Haible  <bruno@clisp.org>
2938
2939         doc: Fix a module name.
2940         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2941
2942 2011-06-02  Bruno Haible  <bruno@clisp.org>
2943
2944         pipe2: Remove dependency on 'nonblocking' module.
2945         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2946         O_NONBLOCK is defined by gnulib.
2947         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2948         is zero.
2949         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2950         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2951         defined by gnulib.
2952         (get_nonblocking_flag): New function.
2953         (main): Test O_NONBLOCK flag only if it is nonzero.
2954         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2955
2956 2011-06-03  Jim Meyering  <meyering@redhat.com>
2957
2958         maint: three new prohibit-header-without-use rules
2959         Prohibit use of cloexec.h, posixver.h, same.h without use.
2960         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2961         (sc_prohibit_posixver_without_use): Likewise.
2962         (sc_prohibit_same_without_use): Likewise.
2963
2964 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2965
2966         allocator: 'die' routine is now given requested size
2967         * lib/allocator.h (struct allocator.die): New size arg.
2968         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2969         If the actual problem is an ssize_t limitation, not a size_t or
2970         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2971
2972 2011-06-01  Eric Blake  <eblake@redhat.com>
2973
2974         strerror: drop strerror_r dependency
2975         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2976         * lib/strerror-override.c (strerror_override): ...to new file.
2977         * lib/strerror-override.h: Add prototype.
2978         * lib/strerror-impl.h: Delete.
2979         * lib/strerror.c (strerror): New implementation.
2980         * modules/errno (Files): Add new files.
2981         (configure.ac): Compile new file as appropriate.
2982         * modules/strerror (Files): Drop unused file.
2983         (Depends-on): Drop strerror_r-posix.
2984         * MODULES.html.sh: Document strerror_r-posix.
2985         Requested by Sam Steingold.
2986
2987         perror: call strerror_r directly
2988         * modules/perror (Files): Drop strerror-impl.h.
2989         * lib/perror.c (perror): Use our own stack buffer, rather than
2990         calling a wrapper that uses static storage.
2991         * doc/posix-functions/perror.texi (perror): Document a limitation
2992         of our replacement.
2993
2994         strerror_r: fix includes for FreeBSD
2995         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2996         since we use abort on some platforms.
2997         Reported by Matthias Bolte.
2998
2999 2011-05-31  Bruno Haible  <bruno@clisp.org>
3000
3001         Fix link errors in tests: openat-die uses gettext-h.
3002         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3003         against $(LIBINTL).
3004         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3005         against $(LIBINTL).
3006         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3007         $(LIBINTL).
3008         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3009         against $(LIBINTL).
3010         * modules/linkat-tests (Makefile.am): Link test-linkat against
3011         $(LIBINTL).
3012         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3013         $(LIBINTL).
3014         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3015         against $(LIBINTL).
3016         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3017         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3018         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3019         $(LIBINTL).
3020         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3021         $(LIBINTL).
3022         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3023         $(LIBINTL).
3024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3025
3026 2011-05-31  Bruno Haible  <bruno@clisp.org>
3027
3028         Fix link errors in tests: wait-process uses gettext-h.
3029         * modules/nonblocking-pipe-tests (Makefile.am): Set
3030         test_nonblocking_pipe_main_LDADD.
3031         * modules/nonblocking-socket-tests (Makefile.am): Link
3032         test-nonblocking-socket-main against $(LIBINTL).
3033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3034
3035 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3036
3037         assert-h: work around 'verify' incompatibility
3038         * lib/verify.h: Use @...@ directives, not ifdef.
3039         * modules/assert-h (assert.h): Implement the directives.
3040         (assert.h): Substitute the symbol-prefix more consistently.
3041
3042 2011-05-29  Jim Meyering  <meyering@redhat.com>
3043
3044         trim: remove three superfluous assignments
3045         * lib/trim.c (trim2): Remove three superfluous assignments
3046         and correct brace positioning.
3047
3048 2011-05-29  Bruno Haible  <bruno@clisp.org>
3049
3050         wctype-h: Avoid namespace pollution on Solaris 2.6.
3051         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3052         identifiers.
3053         * doc/posix-headers/wctype.texi: Mention the problem.
3054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3055
3056 2011-05-28  Jim Meyering  <meyering@redhat.com>
3057
3058         parse-datetime.y: accommodate -Wstrict-overflow
3059         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3060         placate -Wstrict-overflow.
3061
3062         trim: avoid a warning from -O2 -Wstrict-overflow
3063         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3064
3065 2011-05-29  Bruno Haible  <bruno@clisp.org>
3066
3067         gnulib-tool: Fix bug in yesterday's commit.
3068         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3069         twice.
3070
3071 2011-05-29  Bruno Haible  <bruno@clisp.org>
3072
3073         Allow multiple gnulib generated include files to be combined.
3074         * gnulib-tool (func_compute_include_guard_prefix): New function.
3075         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3076         ${gl_include_guard_prefix} references.
3077         (func_import, func_create_testdir): Invoke
3078         func_compute_include_guard_prefix.
3079         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3080         * lib/ctype.in.h: Likewise.
3081         * lib/dirent.in.h: Likewise.
3082         * lib/errno.in.h: Likewise.
3083         * lib/fcntl.in.h: Likewise.
3084         * lib/float.in.h: Likewise.
3085         * lib/getopt.in.h: Likewise.
3086         * lib/iconv.in.h: Likewise.
3087         * lib/langinfo.in.h: Likewise.
3088         * lib/locale.in.h: Likewise.
3089         * lib/math.in.h: Likewise.
3090         * lib/netdb.in.h: Likewise.
3091         * lib/netinet_in.in.h: Likewise.
3092         * lib/poll.in.h: Likewise.
3093         * lib/pthread.in.h: Likewise.
3094         * lib/pty.in.h: Likewise.
3095         * lib/sched.in.h: Likewise.
3096         * lib/se-selinux.in.h: Likewise.
3097         * lib/search.in.h: Likewise.
3098         * lib/signal.in.h: Likewise.
3099         * lib/spawn.in.h: Likewise.
3100         * lib/stdarg.in.h: Likewise.
3101         * lib/stddef.in.h: Likewise.
3102         * lib/stdint.in.h: Likewise.
3103         * lib/stdio.in.h: Likewise.
3104         * lib/stdlib.in.h: Likewise.
3105         * lib/string.in.h: Likewise.
3106         * lib/strings.in.h: Likewise.
3107         * lib/sys_file.in.h: Likewise.
3108         * lib/sys_ioctl.in.h: Likewise.
3109         * lib/sys_select.in.h: Likewise.
3110         * lib/sys_socket.in.h: Likewise.
3111         * lib/sys_stat.in.h: Likewise.
3112         * lib/sys_time.in.h: Likewise.
3113         * lib/sys_times.in.h: Likewise.
3114         * lib/sys_uio.in.h: Likewise.
3115         * lib/sys_utsname.in.h: Likewise.
3116         * lib/sys_wait.in.h: Likewise.
3117         * lib/sysexits.in.h: Likewise.
3118         * lib/termios.in.h: Likewise.
3119         * lib/time.in.h: Likewise.
3120         * lib/unistd.in.h: Likewise.
3121         * lib/wchar.in.h: Likewise.
3122         * lib/wctype.in.h: Likewise.
3123         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3124         * modules/ctype (Makefile.am): Likewise.
3125         * modules/dirent (Makefile.am): Likewise.
3126         * modules/errno (Makefile.am): Likewise.
3127         * modules/fcntl-h (Makefile.am): Likewise.
3128         * modules/float (Makefile.am): Likewise.
3129         * modules/getopt-posix (Makefile.am): Likewise.
3130         * modules/iconv-h (Makefile.am): Likewise.
3131         * modules/langinfo (Makefile.am): Likewise.
3132         * modules/locale (Makefile.am): Likewise.
3133         * modules/math (Makefile.am): Likewise.
3134         * modules/netdb (Makefile.am): Likewise.
3135         * modules/netinet_in (Makefile.am): Likewise.
3136         * modules/poll-h (Makefile.am): Likewise.
3137         * modules/pthread (Makefile.am): Likewise.
3138         * modules/pty (Makefile.am): Likewise.
3139         * modules/sched (Makefile.am): Likewise.
3140         * modules/search (Makefile.am): Likewise.
3141         * modules/selinux-h (Makefile.am): Likewise.
3142         * modules/signal (Makefile.am): Likewise.
3143         * modules/spawn (Makefile.am): Likewise.
3144         * modules/stdarg (Makefile.am): Likewise.
3145         * modules/stddef (Makefile.am): Likewise.
3146         * modules/stdint (Makefile.am): Likewise.
3147         * modules/stdio (Makefile.am): Likewise.
3148         * modules/stdlib (Makefile.am): Likewise.
3149         * modules/string (Makefile.am): Likewise.
3150         * modules/strings (Makefile.am): Likewise.
3151         * modules/sys_file (Makefile.am): Likewise.
3152         * modules/sys_ioctl (Makefile.am): Likewise.
3153         * modules/sys_select (Makefile.am): Likewise.
3154         * modules/sys_socket (Makefile.am): Likewise.
3155         * modules/sys_stat (Makefile.am): Likewise.
3156         * modules/sys_time (Makefile.am): Likewise.
3157         * modules/sys_times (Makefile.am): Likewise.
3158         * modules/sys_uio (Makefile.am): Likewise.
3159         * modules/sys_utsname (Makefile.am): Likewise.
3160         * modules/sys_wait (Makefile.am): Likewise.
3161         * modules/sysexits (Makefile.am): Likewise.
3162         * modules/termios (Makefile.am): Likewise.
3163         * modules/time (Makefile.am): Likewise.
3164         * modules/unistd (Makefile.am): Likewise.
3165         * modules/wchar (Makefile.am): Likewise.
3166         * modules/wctype-h (Makefile.am): Likewise.
3167         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3168
3169 2011-05-29  Bruno Haible  <bruno@clisp.org>
3170
3171         assert-h: Allow multiple gnulib generated replacements to coexist.
3172         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3173
3174 2011-05-29  Bruno Haible  <bruno@clisp.org>
3175
3176         argp: Allow coexistence with strerror_r-posix module.
3177         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3178         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3179         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3180         not the glibc signature.
3181
3182 2011-05-28  Bruno Haible  <bruno@clisp.org>
3183
3184         gnulib-tool: Alternative structure of testdirs, similar to --import.
3185         * gnulib-tool: New option --single-configure.
3186         (func_usage): Document it.
3187         (single_configure): New variable.
3188         (func_modules_transitive_closure_separately,
3189         func_modules_transitive_closure_separately,
3190         func_determine_use_libtests, func_modules_add_dummy_separately,
3191         func_modules_to_filelist_separately): New functions, extracted from
3192         func_import.
3193         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3194         (func_import): Use the new functions.
3195         (func_create_testdir): Set final_modules. Handle $single_configure =
3196         true case.
3197
3198 2011-05-28  Bruno Haible  <bruno@clisp.org>
3199
3200         getloadavg: Remove an unreliable safety check.
3201         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3202         getloadavg.c is in place.
3203         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3204         Reported by Sam Steingold <sds@gnu.org>.
3205
3206 2011-05-28  Bruno Haible  <bruno@clisp.org>
3207
3208         doc: Cleanup yet another file produced by texinfo.tex.
3209         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3210
3211 2011-05-28  Bruno Haible  <bruno@clisp.org>
3212
3213         Finish the conditional dependencies mechanism.
3214         * gnulib-tool: New option --no-conditional-dependencies.
3215         (func_usage): Document it. Don't mark --conditional-dependencies as
3216         experimental.
3217         (cond_dependencies): The possible values can now be true, false, empty.
3218         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3219         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3220         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3221
3222 2011-05-28  Bruno Haible  <bruno@clisp.org>
3223
3224         doc: Use a recent texinfo.tex.
3225         * doc/Makefile (tex_opts): New variable.
3226         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3227
3228 2011-05-28  Jim Meyering  <meyering@redhat.com>
3229
3230         intprops.h: adjust comment to match code change
3231         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3232         only once, it *may* have side effects.  Also fix an unrelated typo.
3233         (_GL_INT_SIGNED): Likewise.
3234
3235 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3236
3237         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3238
3239 2011-05-26  Bruno Haible  <bruno@clisp.org>
3240
3241         mbsrchr: Avoid collision with system function on Interix.
3242         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3243         Reported by Markus Duft <mduft@gentoo.org>.
3244
3245 2011-05-15  James Youngman  <jay@gnu.org>
3246
3247         getopt: for ambiguous options, enumerate the possibilities.
3248         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3249         the ambiguous options when an ambiguous prefix is given. This was
3250         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3251         glibc change was
3252         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3253
3254 2011-05-25  Eric Blake  <eblake@redhat.com>
3255
3256         getcwd: work around mingw bug
3257         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3258         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3259         Reported by Matthias Bolte.
3260
3261 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         test-intprops: disable -Wtype-limits diagnostics
3264         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3265         diagnostics.  Otherwise, the integer overflow macros generate many
3266         diagnostics.  Reported by Jim Meyering in
3267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3268
3269         intprops: shorten, to pacify gcc -Woverlength-strings
3270         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3271         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3272         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3273         likely to run afoul of C compiler limits for string constant lengths.
3274         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3275
3276 2011-05-24  Eric Blake  <eblake@redhat.com>
3277
3278         docs: document recently fixed glibc printf bug
3279         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3280         * doc/posix-functions/printf.texi (printf): Likewise.
3281         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3282         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3283
3284         closein-tests: convert to init.sh
3285         * modules/closein-tests (Files): Add init.sh
3286         * tests/test-closein.sh Use it.
3287
3288         yesno-tests: convert to init.sh
3289         * modules/yesno-tests (Files): Add init.sh.
3290         * tests/test-yesno.sh: Use it.
3291
3292         atexit-tests: ensure reliable exit status
3293         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3294         Reported by Bruno Haible.
3295
3296 2011-05-24  Bruno Haible  <bruno@clisp.org>
3297
3298         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3300         gl_PREREQ_STRERROR_R invocations from here...
3301         * modules/strerror_r-posix (configure.ac): ... to here.
3302
3303 2011-05-24  Eric Blake  <eblake@redhat.com>
3304
3305         strerror_r: fix missing header
3306         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3307
3308         strerror_r: fix AIX test failures
3309         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3310         ERANGE failure.
3311
3312         strerror_r: fix Solaris test failures
3313         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3314         failures.
3315         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3316
3317         strerror_r: enforce POSIX recommendations
3318         * lib/strerror_r.c (safe_copy): New helper method.
3319         (strerror_r): Guarantee a non-empty string.
3320         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3321         recent POSIX rulings and to match our strerror guarantees.
3322         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3323
3324 2011-05-24  Jim Meyering  <meyering@redhat.com>
3325
3326         test-perror2.c: avoid warning about unused variable
3327         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3328
3329 2011-05-24  Eric Blake  <eblake@redhat.com>
3330
3331         perror: avoid spurious test failure on HP-UX
3332         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3333
3334         tests: fix logic bug in init.sh
3335         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3336         shell.
3337
3338 2011-05-24  Jim Meyering  <meyering@redhat.com>
3339
3340         utimensat: do not reference an out-of-scope buffer
3341         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3342         declared in an inner scope, yet "times" would be dereferenced outside
3343         the scope in which "ts" was valid.
3344         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3345         of ts[2] "out/up", so that the use of aliased "times" (via
3346         "times = ts;") does not end up referencing an out-of-scope "ts"
3347
3348         opendir-safer.c: don't clobber errno; don't close negative FD
3349         * lib/opendir-safer.c (opendir_safer):
3350         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3351         file descriptor, and more importantly, don't clobber the
3352         offending errno value with EINVAL.  Before, upon failure
3353         of dup_safer, we would pass the negative file descriptor to
3354         fdopendir, which would clobber errno.
3355
3356 2011-05-23  Bruno Haible  <bruno@clisp.org>
3357
3358         idcache: Fix module description.
3359         * modules/idcache (Include): Set to "idcache.h".
3360
3361 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3362
3363         gnulib-tool: fix portability problem with MacOS sed
3364         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3365         before the "}".  Problem reported by Leo in
3366         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3367         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3368         sed_extract_condition1, sed_extract_condition2.
3369
3370 2011-05-23  Bruno Haible  <bruno@clisp.org>
3371
3372         hash: Simplify autoconf macro.
3373         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3374
3375 2011-05-23  Bruno Haible  <bruno@clisp.org>
3376
3377         getugroups: Fix module description.
3378         * modules/getugroups (Include): Set to "getugroups.h".
3379
3380 2011-05-23  Bruno Haible  <bruno@clisp.org>
3381
3382         linkat: Simplify autoconf macro.
3383         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3384
3385 2011-05-23  Bruno Haible  <bruno@clisp.org>
3386             Eric Blake  <eblake@redhat.com>
3387
3388         linkat, renameat: Update dependencies.
3389         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3390         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3391         symlinkat.
3392
3393 2011-05-23  Jim Meyering  <meyering@redhat.com>
3394
3395         maint.mk: more tight_scope improvements
3396         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3397         (_gl_TS_headers): Define only in if-0'd block.
3398         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3399         sometimes we must *not* use it.  Adjust uses accordingly.
3400         (sc_tight_scope): Use much simpler grep-based test to determine
3401         whether we skip this rule.
3402
3403         maint.mk: generalize/improve the tight-scope rule
3404         * top/maint.mk: Emit a warning when the test is skipped.
3405         (_gl_TS_dir): Add $(srcdir)/ prefix.
3406         (_gl_TS_function_match): Simplify, rather than trying
3407         to enumerate common types.  Otherwise, it would fail to match an
3408         "extern unsigned char const *" declaration in idutils.
3409         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3410         a way to support use of that type of macro.
3411         (_gl_TS_var_match): Simplify regexp.
3412         (_gl_TS_obj_files): New configurable variable.
3413         (_gl_TS_headers): Likewise.
3414
3415 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3416
3417         verify: fix bug when gnulib <assert.h> is also included
3418         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3419         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3420         Perhaps there's a better way, but this fixes the immediate problem.
3421         Problem reported by Bruno Haible in
3422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3423
3424 2011-05-22  Bruno Haible  <bruno@clisp.org>
3425
3426         xgetcwd: Simplify autoconf macro.
3427         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3428
3429 2011-05-22  Bruno Haible  <bruno@clisp.org>
3430
3431         New module 'mktime-internal'.
3432         * modules/mktime-internal: New file.
3433         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3434         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3435         mktime_internal as a C macro if libc has __mktime_internal.
3436         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3437         conditions.
3438         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3439
3440 2011-05-22  Bruno Haible  <bruno@clisp.org>
3441
3442         timegm: Correct mktime replacement statements.
3443         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3444         defining mktime as a C macro. This completes a 2009-07-28 commit.
3445
3446 2011-05-22  Bruno Haible  <bruno@clisp.org>
3447
3448         timegm: Simplify autoconf macro.
3449         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3450
3451 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3452
3453         clock-time: change to LGPLv2+.
3454         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3455         BSD-like but we have no mark for that; this is good enough for now.
3456
3457 2011-05-21  Bruno Haible  <bruno@clisp.org>
3458
3459         strerror_r: Fix comments.
3460         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3461
3462 2011-05-21  Bruno Haible  <bruno@clisp.org>
3463
3464         relocatable-prog-wrapper: Fix possible link error.
3465         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3466         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3467         (gl_FUNC_SETENV): ... to here.
3468         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3469         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3470
3471 2011-05-21  Bruno Haible  <bruno@clisp.org>
3472
3473         relocatable-prog-wrapper: Assume strerror() exists.
3474         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3475         m4/strerror.m4.
3476         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3477         * lib/relocwrapper.c: Remove mention of strerror module.
3478         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3479         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3480         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3481         C macro.
3482
3483 2011-05-21  Bruno Haible  <bruno@clisp.org>
3484
3485         select: Simplify replacement idiom.
3486         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3487         Win32 platforms.
3488         * lib/sys_select.in.h (select): Simplify accordingly.
3489         * modules/select (Depends-on): Likewise.
3490
3491 2011-05-21  Bruno Haible  <bruno@clisp.org>
3492
3493         mkdir-p: Simplify autoconf macro.
3494         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3495         gl_FUNC_LCHOWN.
3496
3497 2011-05-21  Eric Blake  <eblake@redhat.com>
3498
3499         strerror_r: avoid clobbering strerror on cygwin
3500         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3501         fall back instead to sys_errlist.
3502         * modules/strerror (configure.ac): Add witness.
3503         * tests/test-strerror_r.c (main): Enhance test.
3504         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3505         * tests/test-perror2.c (main): Free memory before exit.
3506
3507 2011-05-21  Bruno Haible  <bruno@clisp.org>
3508
3509         mkdtemp: Use gnulib naming conventions.
3510         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3511         * modules/mkdtemp (configure.ac): Update.
3512
3513 2011-05-20  Eric Blake  <eblake@redhat.com>
3514
3515         strerror_r: avoid corrupting errno on Solaris
3516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3517         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3518
3519         strerror_r: avoid compiler warning
3520         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3521
3522         strerror_r: simplify AIX code
3523         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3524
3525         test-perror: avoid spurious failure on FreeBSD
3526         * modules/perror-tests (Depends-on): Add strerror, now that
3527         strerror_r no longer pulls it in.
3528
3529 2011-05-20  Bruno Haible  <bruno@clisp.org>
3530
3531         strerror_r-posix: Remove unused dependencies.
3532         * modules/strerror_r-posix (Depends-on): Remove strerror.
3533         Reported by Eric Blake.
3534
3535 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3536
3537         intprops: remove assumption about A|B representation
3538         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3539         is a valid integer if both A and B are.  Although this is true for
3540         all known practical hosts, the C standard doesn't guarantee it,
3541         and the code need not assume it.  Also, this change may work around
3542         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3544
3545 2011-05-20  Eric Blake  <eblake@redhat.com>
3546
3547         perror: work around FreeBSD bug
3548         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3549         is broken.  Move AC_LIBOBJ...
3550         * modules/perror (configure.ac): Here.
3551         * doc/posix-functions/perror.texi (perror): Document this.
3552         * tests/test-perror2.c (main): Enhance test.
3553
3554         test-perror: check for strerror interactions
3555         * tests/macros.h (STREQ): Add macro.
3556         * modules/perror-tests (Files): Add second test.
3557         * tests/test-perror2.c (main): New file.
3558         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3559
3560         test-perror: rewrite to use init script
3561         * modules/perror-tests (Files): Add init.sh.
3562         * tests/test-perror.sh: Use temporary directory.
3563
3564 2011-05-20  Jim Meyering  <meyering@redhat.com>
3565
3566         maint: replace misused "a" with "an"
3567         * doc/intprops.texi: "a integer"
3568         * doc/regex.texi: "a explanation"
3569         * lib/alignof.h: "a object"
3570         * lib/argmatch.h: "a explanation"
3571         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3572         * lib/stdint.in.h: "a integer"
3573         * lib/userspec.c: "a owner"
3574         * doc/gnulib.texi: Fix "a idea", and reword.
3575
3576 2011-05-19  Jim Meyering  <meyering@redhat.com>
3577
3578         maint: correct misuse of "a" and "an"
3579         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3580         * lib/argp-help.c: "an docum...": s/an/a/
3581         * lib/argp-parse.c: "An vector": s/An/A/
3582         * lib/execute.c: "an native": s/an/a/
3583         * lib/spawn-pipe.c: Likewise.
3584         * lib/gc.h: "an Gc_rc": s/an/a/
3585         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3586         * lib/fts.c: "an stat.st_dev": s/an/a/
3587
3588 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3589
3590         intprops-tests: work around HP-UX 11.23 cc bug with constants
3591         * tests/test-intprops.c (VERIFY): New macro.
3592         (main): Use it, instead of verify, to work around the compiler bug; see
3593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3594
3595         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3596         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3597         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3598         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3599         (_GL_REMAINDER_OVERFLOW): Use it.
3600
3601         intprops-tests: revert unsigned part of previous change
3602         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3603         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3604         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3606
3607 2011-05-19  Bruno Haible  <bruno@clisp.org>
3608
3609         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3610         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3611         strerror_r() returned without filling the buffer.
3612         Reported by Eric Blake.
3613
3614 2011-05-19  Eric Blake  <eblake@redhat.com>
3615
3616         strerror_r: guarantee unchanged errno
3617         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3618         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3619         failure.
3620         * tests/test-strerror_r.c (main): Enhance test.
3621
3622 2011-05-19  Bruno Haible  <bruno@clisp.org>
3623
3624         strerror_r: Reorder #if blocks.
3625         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3626         for consistency with the previous commit.
3627
3628 2011-05-19  Bruno Haible  <bruno@clisp.org>
3629
3630         perror: Avoid clobbering the strerror buffer when possible.
3631         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3632         * lib/strerror.c: Include it.
3633         * modules/strerror (Files): Add lib/strerror-impl.h.
3634         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3635         (my_strerror): New function, defined through lib/strerror-impl.h.
3636         (perror): Use it instead of strerror.
3637         * modules/perror (Files): Add lib/strerror-impl.h.
3638         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3639
3640 2011-05-19  Eric Blake  <eblake@redhat.com>
3641
3642         strerror_r: fix on newer cygwin
3643         * lib/strerror_r.c (strerror_r): Cygwin now has
3644         __xpg_strerror_r, use it.
3645
3646 2011-05-19  Bruno Haible  <bruno@clisp.org>
3647
3648         strerror_r: Avoid clobbering the strerror buffer when possible.
3649         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3650         (sys_nerr, sys_errlist): New declarations.
3651         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3652         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3653         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3654
3655 2011-05-19  Bruno Haible  <bruno@clisp.org>
3656
3657         strerror_r: Fix test failure on mingw.
3658         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3659         EXTEND_STRERROR_R.
3660         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3661         macros from errno.in.h instead.
3662
3663 2011-05-19  Eric Blake  <eblake@redhat.com>
3664
3665         strerror: relax test for Solaris
3666         * tests/test-strerror.c (main): Permit Solaris behavior.
3667         * tests/test-strerror_r.c (main): Likewise.
3668
3669         strerror: enforce POSIX ruling on strerror(0)
3670         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3671         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3672         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3673         * doc/posix-functions/strerror.texi (strerror): Document it.
3674         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3675         * tests/test-strerror.c (main): Strengthen test.
3676         * tests/test-strerror_r.c (main): Likewise.
3677
3678 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3679
3680         intprop-tests: port to older and more-pedantic compilers
3681         * modules/intprops-tests (Files): Add tests/macros.h.
3682         * tests/test-intprops.c: Include macros.h.
3683         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3684         it's no longer documented to expand to an integer constant expression.
3685         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3686         argument is floating point, as it's no longer documented to expand
3687         to an integer constant expression in that case.
3688         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3689         compiler bugs reported by Bruno Haible.  See
3690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3691         (U0, U1): New constants, to work around the same bugs.  Also,
3692         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3693
3694         intprops: work around C compiler bugs
3695         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3696         bug in Sun C 5.11 2010/08/13 and other compilers; see
3697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3698
3699         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3700         * doc/intprops.texi (Integer Type Determination): Fix
3701         documentation for TYPE_IS_INTEGER: it returns an constant
3702         expression, not an integer constant expression.  Fix doc for
3703         TYPE_SIGNED: it returns an integer constant expression only if its
3704         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3705         hardly worth documented that way....)
3706
3707 2011-05-18  Bruno Haible  <bruno@clisp.org>
3708
3709         strerror_r: Avoid clobbering the strerror buffer when possible.
3710         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3711         Handle gnulib defined errno values here. When strerror() returns NULL
3712         or an empty string, return EINVAL.
3713         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3714         gnulib defined errno values here.
3715         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3716
3717 2011-05-18  Eric Blake  <eblake@redhat.com>
3718
3719         fnmatch: avoid compiler warning
3720         * lib/fnmatch_loop.c (FCT): Use correct type.
3721         Reported by Matthias Bolte.
3722
3723 2011-05-13  Jim Meyering  <meyering@redhat.com>
3724
3725         maint.mk: three new prohibit_<HDR>_without_use rules
3726         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3727         (sc_prohibit_stdio-safer_without_use): Likewise.
3728         (sc_prohibit_xfreopen_without_use): Likewise.
3729
3730 2011-05-17  Jim Meyering  <meyering@redhat.com>
3731
3732         announce-gen: fail if the NEWS delta is empty
3733         If there's nothing noteworthy in NEWS, then either you forgot
3734         or you shouldn't be releasing.
3735         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3736
3737 2011-05-17  Pádraig Brady <P@draigBrady.com>
3738
3739         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3740         reserved symbols starting with double underscore from the check.
3741
3742 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3743
3744         intprops: add doc
3745         * doc/intprops.texi: New file, documenting intprops.
3746         * doc/gnulib.texi (Particular Modules): Include it.
3747
3748         verify: add doc to gnulib manual and fix example
3749         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3750         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3751         (Compile-time Assertions): Fix example so it can't overflow.
3752
3753 2011-05-17  Jim Meyering  <meyering@redhat.com>
3754
3755         warnings.m4: don't usurp save_CPPFLAGS variable name
3756         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3757
3758         doc: fix typo
3759         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3760
3761 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3762             Bruno Haible  <bruno@clisp.org>
3763
3764         doc: Tweak recent change.
3765         * README (Portability guidelines): Tweak new text.
3766         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3767         Interix 6.1.
3768
3769 2011-05-16  Eric Blake  <eblake@redhat.com>
3770
3771         inttypes: avoid autoconf warning
3772         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3773         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3774
3775 2011-05-16  Sam Steingold <sds@gnu.org>
3776         and Eric Blake  <eblake@redhat.com>
3777
3778         vc-list-files: accept multiple directory operands
3779         * build-aux/vc-list-files: Iterate over all remaining operands.
3780
3781 2011-05-16  Bruno Haible  <bruno@clisp.org>
3782
3783         Fix confusion regarding deprecated modules.
3784         * modules/calloc (Status, Notice): Mark module as deprecated, not
3785         obsolete.
3786         * modules/fnmatch-posix (Status, Notice): Likewise.
3787         * modules/getdate (Status, Notice): Likewise.
3788         * modules/getopt (Status, Notice): Likewise.
3789         * modules/malloc (Status, Notice): Likewise.
3790         * modules/pipe (Status, Notice): Likewise.
3791         * modules/realloc (Status, Notice): Likewise.
3792         * modules/rename-dest-slash (Status, Notice): Likewise.
3793         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3794         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3795         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3796         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3797         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3798
3799 2011-05-16  Bruno Haible  <bruno@clisp.org>
3800
3801         doc: List the target platforms.
3802         * doc/gnulib-intro.texi (Target Platforms): New section.
3803         * doc/gnulib.texi (Introduction): Update menu.
3804         * README (Portability guidelines): Refer to the new section. Update
3805         statement about oldest supported environment. Remove rationale why
3806         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3807         unportable C89 function.
3808         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3809         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3810
3811 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3812
3813         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3814
3815 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3816
3817         intprops-tests: new module
3818         * modules/intprops-tests, tests/test-intprops.c: New files.
3819
3820         intprops: add safe, portable integer overflow checking
3821         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3822         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3823         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3824         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3825         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3826         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3827         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3828         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3829         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3830         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3831         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3832
3833 2011-05-12  James Youngman  <jay@gnu.org>
3834
3835         Add a test for glibc's Bugzilla bug #12378.
3836         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3837         doesn't allow the literal matching of a lone "[" (which is
3838         required by POSIX).
3839         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3840
3841 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3842
3843         Sync glibc change fixing Bugzilla bug #12378.
3844         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3845         beginning and fall back to matching as normal character if the
3846         string ends before the matching ']' is found.  This is what POSIX
3847         requires.
3848
3849 2011-05-13  Eric Blake  <eblake@redhat.com>
3850
3851         getcwd-lgpl: relax test for FreeBSD
3852         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3853         issue.
3854         * tests/test-getcwd-lgpl.c (main): Relax test.
3855         Reported by Matthias Bolte.
3856
3857 2011-05-11  Eric Blake  <eblake@redhat.com>
3858
3859         test-fflush: silence compiler warning
3860         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3861
3862 2011-05-11  Bruno Haible  <bruno@clisp.org>
3863
3864         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3865         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3866         * modules/canonicalize (Depends-on): Add 'nocrash'.
3867         * modules/canonicalize-lgpl (Depends-on): Likewise.
3868         * doc/posix-functions/realpath.texi: Update platforms list.
3869         Reported by Ryan Schmidt <ryandesign@macports.org>.
3870
3871 2011-05-11  Bruno Haible  <bruno@clisp.org>
3872
3873         group-member: Declare function in <unistd.h>.
3874         * lib/unistd.in.h (group_member): New declaration.
3875         * lib/group-member.h: Remove file.
3876         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3877         * tests/test-unistd-c++.cc: Check signature of group_member.
3878         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3879         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3880         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3881         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3882         HAVE_GROUP_MEMBER.
3883         * modules/group-member (Files): Remove lib/group-member.h.
3884         (Depends-on): Add unistd. Specify conditions.
3885         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3886         (Include): Change to <unistd.h>.
3887         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3888         HAVE_GROUP_MEMBER.
3889         * NEWS: Mention the change.
3890         * lib/euidaccess.c: Don't include group-member.h.
3891
3892 2011-05-11  Bruno Haible  <bruno@clisp.org>
3893
3894         group-member: Document module.
3895         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3896         module.
3897
3898 2011-05-11  Bruno Haible  <bruno@clisp.org>
3899
3900         fclose: Fix mistake earlier today.
3901         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3902
3903 2011-05-11  Eric Blake  <eblake@redhat.com>
3904
3905         fclose: preserve fflush errors
3906         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3907         Reported by Jim Meyering.
3908
3909         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3910         * build-aux/bootstrap (check_versions): When no specific version
3911         is required, merely check that the app produces an exit status
3912         that indicates its existence.
3913
3914         maint.mk: drop redundant check
3915         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3916         the same but better.
3917
3918 2011-05-11  Bruno Haible  <bruno@clisp.org>
3919
3920         fclose: Fix possible link error.
3921         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3922         unregister_shadow_fd. Improve comments.
3923         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3924         Eric Blake.
3925
3926 2011-05-11  Jim Meyering  <meyering@redhat.com>
3927
3928         maint.mk: improve "can not" detection and generalize rule name
3929         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3930         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3931         Use the same technique as in sc_prohibit_doubled_word, so that
3932         we recognize "can not" also when the words are separated by a newline.
3933         Suggested by Eric Blake.
3934         (perl_filename_lineno_text_): Define.  Factored out of...
3935         (prohibit_doubled_word_): ...here.  Use the new definition.
3936         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3937         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3938         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3939
3940 2011-05-10  Eric Blake  <eblake@redhat.com>
3941
3942         fclose: avoid double close race when possible
3943         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3944         all but WINDOWS_SOCKETS.
3945
3946 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3947
3948         openat: correct new comment
3949         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3950
3951 2011-05-10  Jim Meyering  <meyering@redhat.com>
3952
3953         openat: add comments
3954         * lib/openat-proc.c (openat_proc_name): Add comments,
3955         mostly from Eric Blake.
3956
3957 2011-05-09  Eric Blake  <eblake@redhat.com>
3958
3959         openat: reduce syscalls in first probe of /proc
3960         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3961         be a directory.  Simplify the probe for .. bugs.
3962         * modules/openat (Depends-on): Drop same-inode.
3963         Reported by Bastien ROUCARIES.
3964
3965 2011-05-09  Jim Meyering  <meyering@redhat.com>
3966
3967         maint.mk: change semantics/name of tight_scope variables
3968         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3969         Rename variables to align with semantics that make them more useful.
3970
3971         maint.mk: tweak new rule's name not to impinge
3972         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3973         (sc_tight_scope): Use new rule name rather than $@-0.
3974
3975         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3976         * top/maint.mk (sc_tight_scope): New rule.
3977         (sc_tight_scope-0): New rule, ifdef'd out.
3978         (_gl_TS_dir): Default.
3979         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3980         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3981
3982 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3983
3984         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3985         Haible <bruno@clisp.org>.
3986
3987 2011-05-08  Bruno Haible  <bruno@clisp.org>
3988
3989         Comments.
3990         * m4/isnanf.m4: Add comment.
3991         * m4/isnanl.m4: Likewise.
3992
3993 2011-05-08  Bruno Haible  <bruno@clisp.org>
3994
3995         glob: Remove obsolete macro.
3996         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3997
3998 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3999
4000         intprops: Sun C 5.11 supports __typeof__
4001         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4002         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4003         which is new.
4004         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4005
4006         intprops: switch to usual gnulib indenting and naming
4007         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4008         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4009
4010         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4011
4012 2011-05-08  Jim Meyering  <meyering@redhat.com>
4013
4014         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4015         * top/maint.mk (release-prep): Use make's --no-print-directory
4016         option when generating the announcement.  This eliminates the
4017         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4018         generated announcement template.
4019
4020 2011-05-08  Bruno Haible  <bruno@clisp.org>
4021
4022         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4023         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4024         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4025
4026 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4027
4028         ignore-value, verify: Omit include files from lib_SOURCES.
4029         * modules/ignore-value, modules/verify (Makefile.am):
4030         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4031         that leads Automake to duplicate use of am__objects_... variables
4032         in Makefile.in.  See
4033         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4034
4035 2011-05-07  Bruno Haible  <bruno@clisp.org>
4036
4037         fclose: Simplify autoconf macro.
4038         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4039         defined.
4040
4041 2011-05-07  Bruno Haible  <bruno@clisp.org>
4042
4043         canonicalize-lgpl: Fix autoconf macro ordering bug.
4044         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4045         gl_STDLIB_H_DEFAULTS.
4046
4047 2011-05-06  Eric Blake  <eblake@redhat.com>
4048
4049         maintainer-makefile: make sc_po_check easier to tune
4050         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4051         to probe for strings, such as an alternate location for gnulib.
4052
4053         fclose: guarantee behavior on seekable stdin
4054         * modules/fclose (Depends-on): Add fflush.
4055         * doc/posix-functions/fclose.texi (fclose): Document this.
4056         * tests/test-fclose.c (main): Make test for this unconditional.
4057
4058 2011-05-06  Bruno Haible  <bruno@clisp.org>
4059
4060         fflush, fpurge: Relicense under LGPLv2+.
4061         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4062         * modules/fpurge (License): Likewise.
4063         With permission from Eric Blake and Jim Meyering.
4064         Suggested by Eric Blake.
4065
4066 2011-05-06  Karl Berry  <karl@gnu.org>
4067
4068         * MODULES.html.sh (func_all_modules): remove exit.
4069
4070 2011-05-06  Jim Meyering  <meyering@redhat.com>
4071
4072         maint.mk: use info-gnu@ as the default only for a stable release
4073         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4074         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4075         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4076         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4077
4078 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4079
4080         assert-h: new module, which supports C1X-style static_assert
4081         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4082         * lib/verify.h: Revamp so that this can be copied into assert.h,
4083         while retaining the ability to use it standalone as before.
4084         Rename private identifiers so as not to encroach on the
4085         standard C namespace, since this is now used by assert.h.
4086         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4087         the old verify_true.
4088         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4089         the old verify_true.  Use _GL_VERIFY_TYPE.
4090         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4091         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4092         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4093         defined when this file is copied into the replacement assert.h.
4094         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4095         and _Static_assert is not built in.
4096         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4097         defined, and use the new macros mentioned above.
4098         * doc/posix-headers/assert.texi: Document this.
4099
4100 2011-05-05  Bruno Haible  <bruno@clisp.org>
4101
4102         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4103         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4104         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4105         gl_REPLACE_FCLOSE here.
4106         * modules/fflush (Depends-on): Remove fclose.
4107         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4108         combination with module 'fclose'.
4109
4110 2011-05-05  Bruno Haible  <bruno@clisp.org>
4111
4112         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4113         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4114         gl_FUNC_FFLUSH.
4115         (gl_FUNC_FFLUSH): Use it.
4116         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4117         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4118         gl_REPLACE_FSEEKO here.
4119
4120 2011-05-05  Bruno Haible  <bruno@clisp.org>
4121
4122         tzset: Relicense under LGPL.
4123         * modules/tzset (License): Change to LGPL.
4124         No agreement needed; it's a no-op.
4125
4126         strtoimax, strtoumax: Relicense under LGPL.
4127         * modules/strtoimax (License): Change to LGPL.
4128         * modules/strtoumax (License): Likewise.
4129         With permission from Jim Meyering, Paul Eggert:
4130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4132
4133         getgroups: Relicense under LGPL.
4134         * modules/getgroups (License): Change to LGPL.
4135         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4139
4140         nanosleep: Relicense under LGPL.
4141         * modules/nanosleep (License): Change to LGPL.
4142         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4143         Haible:
4144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4148
4149         futimens: Relicense under LGPL.
4150         * modules/futimens (License): Change to LGPL.
4151         With permission from Eric Blake:
4152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4153
4154         fflush: Relicense under LGPL.
4155         * modules/fflush (License): Change to LGPL.
4156         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4160
4161         tmpfile: Relicense under LGPL.
4162         * modules/tmpfile (License): Change to LGPL.
4163         With permission from Ben Pfaff:
4164         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4165
4166         isfinite: Relicense under LGPL.
4167         * modules/isfinite (License): Change to LGPL.
4168         With permission from Ben Pfaff, Bruno Haible:
4169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4171
4172         acosl..tanl: Relicense under LGPL.
4173         * modules/acosl (License): Change to LGPL.
4174         * modules/asinl (License): Likewise.
4175         * modules/atanl (License): Likewise.
4176         * modules/cosl (License): Likewise.
4177         * modules/expl (License): Likewise.
4178         * modules/logl (License): Likewise.
4179         * modules/sinl (License): Likewise.
4180         * modules/sqrtl (License): Likewise.
4181         * modules/tanl (License): Likewise.
4182         Source code originally from glibc and Paolo Bonzini. Agreements:
4183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4185
4186 2011-05-05  Bruno Haible  <bruno@clisp.org>
4187
4188         signal: Define sighandler_t.
4189         * lib/signal.in.h (sighandler_t): New type.
4190         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4191         whether sighandler_t is defined.
4192         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4193         * modules/signal (Depends-on): Add extensions.
4194         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4195         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4196         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4197
4198 2011-05-05  Eric Blake  <eblake@redhat.com>
4199
4200         maint: remove useless REPLACE_*_H macros
4201         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4202         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4203         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4204         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4205         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4206         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4207         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4208         * m4/btowc.m4: Update callers.
4209         * m4/dirfd.m4: Likewise.
4210         * m4/duplocale.m4: Likewise.
4211         * m4/fchdir.m4: Likewise.
4212         * m4/fdopendir.m4: Likewise.
4213         * m4/inet_ntop.m4: Likewise.
4214         * m4/inet_pton.m4: Likewise.
4215         * m4/ioctl.m4: Likewise.
4216         * m4/mbrlen.m4: Likewise.
4217         * m4/mbrtowc.m4: Likewise.
4218         * m4/mbsinit.m4: Likewise.
4219         * m4/mbsnrtowcs.m4: Likewise.
4220         * m4/mbsrtowcs.m4: Likewise.
4221         * m4/poll.m4: Likewise.
4222         * m4/setlocale.m4: Likewise.
4223         * m4/wcrtomb.m4: Likewise.
4224         * m4/wcsnrtombs.m4: Likewise.
4225         * m4/wcsrtombs.m4: Likewise.
4226         * m4/wctob.m4: Likewise.
4227         * m4/wcwidth.m4: Likewise.
4228         * modules/posix_spawn: Likewise.
4229         * modules/posix_spawn_file_actions_addclose: Likewise.
4230         * modules/posix_spawn_file_actions_adddup2: Likewise.
4231         * modules/posix_spawn_file_actions_addopen: Likewise.
4232         * modules/posix_spawn_file_actions_destroy: Likewise.
4233         * modules/posix_spawn_file_actions_init: Likewise.
4234         * modules/posix_spawnattr_destroy: Likewise.
4235         * modules/posix_spawnattr_getflags: Likewise.
4236         * modules/posix_spawnattr_getpgroup: Likewise.
4237         * modules/posix_spawnattr_getschedparam: Likewise.
4238         * modules/posix_spawnattr_getschedpolicy: Likewise.
4239         * modules/posix_spawnattr_getsigdefault: Likewise.
4240         * modules/posix_spawnattr_getsigmask: Likewise.
4241         * modules/posix_spawnattr_init: Likewise.
4242         * modules/posix_spawnattr_setflags: Likewise.
4243         * modules/posix_spawnattr_setpgroup: Likewise.
4244         * modules/posix_spawnattr_setschedparam: Likewise.
4245         * modules/posix_spawnattr_setschedpolicy: Likewise.
4246         * modules/posix_spawnattr_setsigdefault: Likewise.
4247         * modules/posix_spawnattr_setsigmask: Likewise.
4248         * modules/posix_spawnp: Likewise.
4249
4250 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4251
4252         Add option to do-release-commit-and-tag to specify branch.
4253         * build-aux/do-release-commit-and-tag: Add --branch.
4254
4255 2011-05-03  Bruno Haible  <bruno@clisp.org>
4256
4257         Avoid unnecessary compilation units, through conditional dependencies.
4258         * modules/accept (Depends-on): Add conditions to the dependencies.
4259         * modules/acosl (Depends-on): Likewise.
4260         * modules/argz (Depends-on): Likewise.
4261         * modules/asinl (Depends-on): Likewise.
4262         * modules/atanl (Depends-on): Likewise.
4263         * modules/atoll (Depends-on): Likewise.
4264         * modules/bind (Depends-on): Likewise.
4265         * modules/btowc (Depends-on): Likewise.
4266         * modules/canonicalize-lgpl (Depends-on): Likewise.
4267         * modules/ceil (Depends-on): Likewise.
4268         * modules/ceilf (Depends-on): Likewise.
4269         * modules/ceill (Depends-on): Likewise.
4270         * modules/chdir-long (Depends-on): Likewise.
4271         * modules/chown (Depends-on): Likewise.
4272         * modules/close (Depends-on): Likewise.
4273         * modules/connect (Depends-on): Likewise.
4274         * modules/cosl (Depends-on): Likewise.
4275         * modules/dirfd (Depends-on): Likewise.
4276         * modules/dprintf (Depends-on): Likewise.
4277         * modules/dprintf-posix (Depends-on): Likewise.
4278         * modules/error (Depends-on): Likewise.
4279         * modules/euidaccess (Depends-on): Likewise.
4280         * modules/expl (Depends-on): Likewise.
4281         * modules/faccessat (Depends-on): Likewise.
4282         * modules/fchdir (Depends-on): Likewise.
4283         * modules/fclose (Depends-on): Likewise.
4284         * modules/fcntl (Depends-on): Likewise.
4285         * modules/fdopendir (Depends-on): Likewise.
4286         * modules/fflush (Depends-on): Likewise.
4287         * modules/floor (Depends-on): Likewise.
4288         * modules/floorf (Depends-on): Likewise.
4289         * modules/floorl (Depends-on): Likewise.
4290         * modules/fnmatch (Depends-on): Likewise.
4291         * modules/fopen (Depends-on): Likewise.
4292         * modules/fprintf-posix (Depends-on): Likewise.
4293         * modules/frexp (Depends-on): Likewise.
4294         * modules/frexp-nolibm (Depends-on): Likewise.
4295         * modules/frexpl (Depends-on): Likewise.
4296         * modules/frexpl-nolibm (Depends-on): Likewise.
4297         * modules/fseek (Depends-on): Likewise.
4298         * modules/fsusage (Depends-on): Likewise.
4299         * modules/ftell (Depends-on): Likewise.
4300         * modules/ftello (Depends-on): Likewise.
4301         * modules/futimens (Depends-on): Likewise.
4302         * modules/getcwd (Depends-on): Likewise.
4303         * modules/getcwd-lgpl (Depends-on): Likewise.
4304         * modules/getdelim (Depends-on): Likewise.
4305         * modules/getdomainname (Depends-on): Likewise.
4306         * modules/getgroups (Depends-on): Likewise.
4307         * modules/gethostname (Depends-on): Likewise.
4308         * modules/getline (Depends-on): Likewise.
4309         * modules/getlogin_r (Depends-on): Likewise.
4310         * modules/getopt-posix (Depends-on): Likewise.
4311         * modules/getpeername (Depends-on): Likewise.
4312         * modules/getsockname (Depends-on): Likewise.
4313         * modules/getsockopt (Depends-on): Likewise.
4314         * modules/getsubopt (Depends-on): Likewise.
4315         * modules/getusershell (Depends-on): Likewise.
4316         * modules/glob (Depends-on): Likewise.
4317         * modules/grantpt (Depends-on): Likewise.
4318         * modules/iconv_open (Depends-on): Likewise.
4319         * modules/iconv_open-utf (Depends-on): Likewise.
4320         * modules/inet_ntop (Depends-on): Likewise.
4321         * modules/inet_pton (Depends-on): Likewise.
4322         * modules/ioctl (Depends-on): Likewise.
4323         * modules/isapipe (Depends-on): Likewise.
4324         * modules/isfinite (Depends-on): Likewise.
4325         * modules/isinf (Depends-on): Likewise.
4326         * modules/lchown (Depends-on): Likewise.
4327         * modules/ldexpl (Depends-on): Likewise.
4328         * modules/link (Depends-on): Likewise.
4329         * modules/linkat (Depends-on): Likewise.
4330         * modules/listen (Depends-on): Likewise.
4331         * modules/logl (Depends-on): Likewise.
4332         * modules/lstat (Depends-on): Likewise.
4333         * modules/mbrlen (Depends-on): Likewise.
4334         * modules/mbrtowc (Depends-on): Likewise.
4335         * modules/mbsinit (Depends-on): Likewise.
4336         * modules/mbsnrtowcs (Depends-on): Likewise.
4337         * modules/mbsrtowcs (Depends-on): Likewise.
4338         * modules/mbtowc (Depends-on): Likewise.
4339         * modules/memcmp (Depends-on): Likewise.
4340         * modules/mkdir (Depends-on): Likewise.
4341         * modules/mkdtemp (Depends-on): Likewise.
4342         * modules/mkfifo (Depends-on): Likewise.
4343         * modules/mkfifoat (Depends-on): Likewise.
4344         * modules/mknod (Depends-on): Likewise.
4345         * modules/mkostemp (Depends-on): Likewise.
4346         * modules/mkostemps (Depends-on): Likewise.
4347         * modules/mkstemp (Depends-on): Likewise.
4348         * modules/mkstemps (Depends-on): Likewise.
4349         * modules/mktime (Depends-on): Likewise.
4350         * modules/nanosleep (Depends-on): Likewise.
4351         * modules/open (Depends-on): Likewise.
4352         * modules/openat (Depends-on): Likewise.
4353         * modules/perror (Depends-on): Likewise.
4354         * modules/poll (Depends-on): Likewise.
4355         * modules/popen (Depends-on): Likewise.
4356         * modules/posix_spawn (Depends-on): Likewise.
4357         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4358         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4359         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4360         * modules/posix_spawnp (Depends-on): Likewise.
4361         * modules/pread (Depends-on): Likewise.
4362         * modules/printf-posix (Depends-on): Likewise.
4363         * modules/ptsname (Depends-on): Likewise.
4364         * modules/putenv (Depends-on): Likewise.
4365         * modules/pwrite (Depends-on): Likewise.
4366         * modules/readline (Depends-on): Likewise.
4367         * modules/readlink (Depends-on): Likewise.
4368         * modules/readlinkat (Depends-on): Likewise.
4369         * modules/recv (Depends-on): Likewise.
4370         * modules/recvfrom (Depends-on): Likewise.
4371         * modules/regex (Depends-on): Likewise.
4372         * modules/remove (Depends-on): Likewise.
4373         * modules/rename (Depends-on): Likewise.
4374         * modules/renameat (Depends-on): Likewise.
4375         * modules/rmdir (Depends-on): Likewise.
4376         * modules/round (Depends-on): Likewise.
4377         * modules/roundf (Depends-on): Likewise.
4378         * modules/roundl (Depends-on): Likewise.
4379         * modules/rpmatch (Depends-on): Likewise.
4380         * modules/select (Depends-on): Likewise.
4381         * modules/send (Depends-on): Likewise.
4382         * modules/sendto (Depends-on): Likewise.
4383         * modules/setenv (Depends-on): Likewise.
4384         * modules/setlocale (Depends-on): Likewise.
4385         * modules/setsockopt (Depends-on): Likewise.
4386         * modules/shutdown (Depends-on): Likewise.
4387         * modules/sigaction (Depends-on): Likewise.
4388         * modules/signbit (Depends-on): Likewise.
4389         * modules/sigprocmask (Depends-on): Likewise.
4390         * modules/sinl (Depends-on): Likewise.
4391         * modules/sleep (Depends-on): Likewise.
4392         * modules/snprintf (Depends-on): Likewise.
4393         * modules/snprintf-posix (Depends-on): Likewise.
4394         * modules/socket (Depends-on): Likewise.
4395         * modules/sprintf-posix (Depends-on): Likewise.
4396         * modules/sqrtl (Depends-on): Likewise.
4397         * modules/stat (Depends-on): Likewise.
4398         * modules/strchrnul (Depends-on): Likewise.
4399         * modules/strdup-posix (Depends-on): Likewise.
4400         * modules/strerror (Depends-on): Likewise.
4401         * modules/strerror_r-posix (Depends-on): Likewise.
4402         * modules/strndup (Depends-on): Likewise.
4403         * modules/strnlen (Depends-on): Likewise.
4404         * modules/strptime (Depends-on): Likewise.
4405         * modules/strsep (Depends-on): Likewise.
4406         * modules/strsignal (Depends-on): Likewise.
4407         * modules/strstr-simple (Depends-on): Likewise.
4408         * modules/strtod (Depends-on): Likewise.
4409         * modules/strtoimax (Depends-on): Likewise.
4410         * modules/strtok_r (Depends-on): Likewise.
4411         * modules/strtoumax (Depends-on): Likewise.
4412         * modules/symlink (Depends-on): Likewise.
4413         * modules/symlinkat (Depends-on): Likewise.
4414         * modules/tanl (Depends-on): Likewise.
4415         * modules/tcgetsid (Depends-on): Likewise.
4416         * modules/tmpfile (Depends-on): Likewise.
4417         * modules/trunc (Depends-on): Likewise.
4418         * modules/truncf (Depends-on): Likewise.
4419         * modules/truncl (Depends-on): Likewise.
4420         * modules/uname (Depends-on): Likewise.
4421         * modules/unlink (Depends-on): Likewise.
4422         * modules/unlockpt (Depends-on): Likewise.
4423         * modules/unsetenv (Depends-on): Likewise.
4424         * modules/usleep (Depends-on): Likewise.
4425         * modules/utimensat (Depends-on): Likewise.
4426         * modules/vasprintf (Depends-on): Likewise.
4427         * modules/vdprintf (Depends-on): Likewise.
4428         * modules/vdprintf-posix (Depends-on): Likewise.
4429         * modules/vfprintf-posix (Depends-on): Likewise.
4430         * modules/vprintf-posix (Depends-on): Likewise.
4431         * modules/vsnprintf (Depends-on): Likewise.
4432         * modules/vsnprintf-posix (Depends-on): Likewise.
4433         * modules/vsprintf-posix (Depends-on): Likewise.
4434         * modules/wcrtomb (Depends-on): Likewise.
4435         * modules/wcscasecmp (Depends-on): Likewise.
4436         * modules/wcscspn (Depends-on): Likewise.
4437         * modules/wcsdup (Depends-on): Likewise.
4438         * modules/wcsncasecmp (Depends-on): Likewise.
4439         * modules/wcsnrtombs (Depends-on): Likewise.
4440         * modules/wcspbrk (Depends-on): Likewise.
4441         * modules/wcsrtombs (Depends-on): Likewise.
4442         * modules/wcsspn (Depends-on): Likewise.
4443         * modules/wcsstr (Depends-on): Likewise.
4444         * modules/wcstok (Depends-on): Likewise.
4445         * modules/wcswidth (Depends-on): Likewise.
4446         * modules/wctob (Depends-on): Likewise.
4447         * modules/wctomb (Depends-on): Likewise.
4448         * modules/wctype (Depends-on): Likewise.
4449         * modules/wcwidth (Depends-on): Likewise.
4450         * modules/write (Depends-on): Likewise.
4451
4452 2011-05-03  Bruno Haible  <bruno@clisp.org>
4453
4454         Support for conditional dependencies.
4455         * doc/gnulib.texi (Module description): Document the syntax of
4456         conditional dependencies.
4457         * gnulib-tool: New option --conditional-dependencies.
4458         (func_usage): Document it.
4459         (cond_dependencies): New variable.
4460         (func_get_automake_snippet_conditional,
4461         func_get_automake_snippet_unconditional): New functions, extracted from
4462         func_get_automake_snippet.
4463         (func_get_automake_snippet): Use them.
4464         (sed_first_32_chars): New variable.
4465         (func_module_shellfunc_name): New function.
4466         (func_module_shellvar_name): New function.
4467         (func_module_conditional_name): New function.
4468         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4469         func_cond_module_condition): New functions.
4470         (func_modules_transitive_closure): Add support for conditional
4471         dependencies.
4472         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4473         conditional automake snippet in an automake conditional.
4474         (func_emit_autoconf_snippets): Emit shell functions that contain the
4475         code for conditional modules.
4476         (func_import, func_create_testdir): Update specification.
4477
4478 2011-05-03  Eric Blake  <eblake@redhat.com>
4479
4480         test-getaddrinfo: report error information
4481         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4482
4483 2011-05-03  Jim Meyering  <meyering@redhat.com>
4484
4485         bootstrap: avoid build failure when $GZIP is set
4486         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4487         program name.  If defined at all, it is supposed to list gzip options.
4488         Reported by Alan Curry in http://debbugs.gnu.org/8609
4489
4490 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4491
4492         readme-release: new module with release instructions
4493         * modules/readme-release: New module.
4494         * top/README-release: New file, from coreutils, grep, diffutils.
4495         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4496
4497 2011-05-02  Eric Blake  <eblake@redhat.com>
4498
4499         fflush: also replace fclose when fixing fflush
4500         * modules/fflush (Depends-on): Add fclose.
4501         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4502         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4503         memstreams with no backing fd.
4504         * doc/posix-functions/fclose.texi (fclose): Document the use of
4505         fflush module to fix the bug.
4506         * tests/test-fclose.c (main): Relax test when fclose is used in
4507         isolation.
4508
4509         fclose: add some tests
4510         * modules/fclose-tests: New test module.
4511         * tests/test-fclose.c: New file.
4512         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4513
4514         fclose: reduced dependencies
4515         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4516         simpler lseek.
4517         * lib/fclose.c (rpl_fclose): Likewise.
4518         Reported by Simon Josefsson.
4519
4520         exit: drop remaining clients
4521         * modules/argmatch (Depends-on): Replace exit with stdlib.
4522         * modules/copy-file (Depends-on): Likewise.
4523         * modules/execute (Depends-on): Likewise.
4524         * modules/exitfail (Depends-on): Likewise.
4525         * modules/obstack (Depends-on): Likewise.
4526         * modules/pagealign_alloc (Depends-on): Likewise.
4527         * modules/pipe-filter-gi (Depends-on): Likewise.
4528         * modules/pipe-filter-ii (Depends-on): Likewise.
4529         * modules/savewd (Depends-on): Likewise.
4530         * modules/spawn-pipe (Depends-on): Likewise.
4531         * modules/wait-process (Depends-on): Likewise.
4532         * modules/xsetenv (Depends-on): Likewise.
4533         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4534         * modules/git-merge-changelog (Depends-on): Likewise.
4535         * modules/long-options (Depends-on): Likewise.
4536         * modules/pt_chown (Depends-on): Likewise.
4537         * modules/sysexits (Depends-on): Likewise.
4538
4539         freading: relax license from LGPLv3+ to LGPLv2+
4540         * modules/freading (License): Relax LGPL version.
4541
4542 2011-05-02  Bruno Haible  <bruno@clisp.org>
4543
4544         fchdir: Remove unused dependencies.
4545         * modules/fchdir (Depends-on): Remove include_next.
4546
4547 2011-05-02  Bruno Haible  <bruno@clisp.org>
4548
4549         gnulib-tool: Refactor.
4550         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4551         from func_emit_autoconf_snippets.
4552         (func_emit_autoconf_snippets): Use it.
4553
4554 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4555
4556         * NEWS: Document removal of 'exit'.
4557         * modules/exit: Remove file.
4558
4559 2011-05-01  Bruno Haible  <bruno@clisp.org>
4560
4561         Update DEPENDENCIES.
4562         * DEPENDENCIES (gettext): Recommend the newest release.
4563         Reported by Simon Josefsson.
4564
4565 2011-05-01  Bruno Haible  <bruno@clisp.org>
4566
4567         gnulib-tool: Reduce code duplication.
4568         * gnulib-tool (func_emit_autoconf_snippets): New function.
4569         (func_import, func_create_testdir): Use it.
4570
4571 2011-04-30  Eric Blake  <eblake@redhat.com>
4572
4573         fclose: don't fail on non-seekable input stream
4574         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4575         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4576         since fflush is allowed to fail in that case.
4577
4578 2011-04-30  Bruno Haible  <bruno@clisp.org>
4579
4580         dup3: cleanup
4581         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4582
4583 2011-04-30  Bruno Haible  <bruno@clisp.org>
4584
4585         netdb: Make it work in C++ mode.
4586         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4587         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4588         module.
4589         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4590         gl_MODULE_INDICATOR_FOR_TESTS.
4591         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4592         * modules/netdb-c++-tests: New file.
4593         * tests/test-netdb-c++.cc: New file.
4594
4595 2011-04-30  Bruno Haible  <bruno@clisp.org>
4596
4597         New modules 'vfscanf', 'vscanf'.
4598         * modules/vfscanf: New file.
4599         * modules/vscanf: New file.
4600         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4601         here.
4602         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4603         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4604
4605 2011-04-30  Bruno Haible  <bruno@clisp.org>
4606
4607         passfd: Add comments.
4608         * lib/passfd.c: Add comments about platforms.
4609
4610 2011-04-30  Bruno Haible  <bruno@clisp.org>
4611
4612         sys_uio: Make <sys/uio.h> self-contained.
4613         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4614         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4615
4616 2011-04-30  Bruno Haible  <bruno@clisp.org>
4617
4618         sys_socket: Ensure 'struct iovec' definition.
4619         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4620         <sys/socket.h>.
4621         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4622
4623 2011-04-30  Bruno Haible  <bruno@clisp.org>
4624
4625         sys_uio: Protect definition of 'struct iovec'.
4626         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4627         it as a C struct.
4628
4629 2011-04-30  Bruno Haible  <bruno@clisp.org>
4630
4631         manywarnings: fix indentation
4632         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4633
4634 2011-04-30  Pádraig Brady <P@draigBrady.com>
4635
4636         manywarnings: add -Wno-missing-field-initializers if needed.
4637         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4638         option if it's needed to allow initialization with { 0, }
4639
4640 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4641
4642         announce-gen: cosmetic improvement
4643         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4644
4645 2011-04-29  Jim Meyering  <meyering@redhat.com>
4646
4647         vc-list-files: indent with spaces, not TABs
4648         * build-aux/vc-list-files: Convert leading TABs to spaces,
4649         to match the style of most other files in gnulib.
4650
4651         announce-gen: indent with spaces, not TABs
4652         * build-aux/announce-gen: Convert all TABs to spaces, to match
4653         the style of most other files in gnulib.
4654
4655 2011-04-29  Eric Blake  <eblake@redhat.com>
4656
4657         quotearg: avoid uninitialized variable use
4658         * lib/quotearg.c (quoting_options_from_style): Initialize
4659         remaining fields, and ensure that custom styles are only used via
4660         quoting_options rather than quoting_style.
4661
4662 2011-04-29  Jim Meyering  <meyering@redhat.com>
4663
4664         maint.mk: remove unused VC-tag variable
4665         * top/maint.mk (VC-tag): Remove unused variable.
4666
4667 2011-04-29  Bruno Haible  <bruno@clisp.org>
4668
4669         netdb: fix gai_strerror replacements
4670         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4671         * modules/netdb: Substitute it.
4672
4673 2011-04-29  Jim Meyering  <meyering@redhat.com>
4674
4675         test-getcwd.c: avoid new set-but-not-used warning
4676         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4677         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4678         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4679         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4680
4681         test-hash.c: avoid a new shadowing warning
4682         * tests/test-hash.c (main): Don't shadow "dup".
4683
4684 2011-04-28  Eric Blake  <eblake@redhat.com>
4685
4686         getaddrinfo: fix gai_strerror signature
4687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4688         and work around mingw with UNICODE defined.
4689         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4690         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4691         * modules/netdb (Makefile.am): Substitute it.
4692         * lib/netdb.in.h (gai_strerror): Declare replacement.
4693         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4694         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4695         the fix.
4696
4697         getsockopt: avoid compiler warning
4698         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4699         Reported by Matthias Bolte.
4700
4701         tests: drop unused link dependency
4702         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4703         * modules/dirent-safer-tests (Makefile.am): Likewise.
4704         * modules/fdopendir-tests (Makefile.am): Likewise.
4705         * modules/mkfifoat-tests (Makefile.am): Likewise.
4706         * modules/openat-safer-tests (Makefile.am): Likewise.
4707         * modules/openat-tests (Makefile.am): Likewise.
4708         * modules/readlinkat-tests (Makefile.am): Likewise.
4709         * modules/symlinkat-tests (Makefile.am): Likewise.
4710         * modules/linkat-tests (Makefile.am): Likewise.
4711         (Depends-on): Switch to filenamecat-lgpl.
4712         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4713         LIBINTL.
4714         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4715         * tests/test-linkat.c (main): Don't require xalloc.
4716
4717         hash, mgetgroups: drop xalloc dependency
4718         * lib/hash.c (includes): Adjust includes.
4719         * lib/mgetgroups.c (includes): Likewise.
4720         (xgetgroups): Move...
4721         * lib/xgetgroups.c: ...to new file.
4722         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4723         * modules/xgetgroups: New file, split from...
4724         * modules/mgetgroups: ...here.
4725         (Depends-on): Add xalloc-oversized.
4726         * modules/hash (Depends-on): Likewise.
4727         * modules/hash-tests (Depends-on): Drop xalloc.
4728         (test_hash_LDADD): Drop unused library.
4729         * tests/test-hash.c (main): Break xalloc dependency.
4730         (includes): Drop unused include.
4731
4732         xalloc-oversized: new module
4733         * modules/xalloc-oversized: New module.
4734         * modules/xalloc (Depends-on): Add it.
4735         * lib/xalloc.h (xalloc_oversized): Move...
4736         * lib/xalloc-oversized.h: ...into new file.
4737
4738         utimecmp: drop dependency on xmalloc
4739         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4740         due to memory pressure.
4741         * modules/utimecmp (Depends-on): Drop xalloc.
4742
4743 2011-04-27  Eric Blake  <eblake@redhat.com>
4744
4745         getcwd: fix mingw bugs
4746         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4747         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4748         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4749
4750 2011-04-27  Bruno Haible  <bruno@clisp.org>
4751
4752         mkstemps: Ensure declaration on MacOS X 10.5.
4753         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4754         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4755         MacOS X.
4756
4757 2011-04-27  Bruno Haible  <bruno@clisp.org>
4758
4759         mkstemp: More documentation.
4760         * doc/posix-functions/mkstemp.texi: Document header file problem on
4761         MacOS X.
4762
4763 2011-04-27  Bruno Haible  <bruno@clisp.org>
4764
4765         mkstemp: Tweak configure message when cross-compiling.
4766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4767         result as a guess.
4768
4769 2011-04-27  Bruno Haible  <bruno@clisp.org>
4770
4771         clean-temp: Clarify what it does.
4772         * lib/clean-temp.h: Add more comments.
4773         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4774         module.
4775         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4776         * doc/glibc-functions/mkstemps.texi: Likewise.
4777         * doc/glibc-functions/mkostemps.texi: Likewise.
4778
4779 2011-04-27  Eric Blake  <eblake@redhat.com>
4780
4781         fchdir: avoid extra chdir and fix test
4782         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4783         getcwd-lgpl.
4784         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4785         have to be canonical.
4786         (canonicalize_file_name): Drop unused macro.
4787         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4788
4789         filenamecat-lgpl: fix licence
4790         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4791         when it was first created.
4792
4793         linkat, renameat: add missing dependency
4794         * modules/linkat (Depends-on): Require getcwd-lgpl.
4795         * modules/renameat (Depends-on): Likewise.
4796
4797         tests: reduce dependencies
4798         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4799         * tests/test-renameat.c (main): Likewise.
4800         * modules/linkat-tests (Depends-on): Relax dependency.
4801         * modules/renameat-tests (Depends-on): Likewise.
4802         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4803         dependency explicit.
4804
4805         save-cwd: reduce default dependency
4806         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4807         * lib/save-cwd.c: Update comments.
4808         * NEWS: Document the semantic change.
4809
4810         getcwd: enhance tests
4811         * tests/test-getcwd-lgpl.c: New file, taken from...
4812         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4813         repeat long path stress tests from m4 probe.
4814         * modules/getcwd-lgpl-tests: New module.
4815         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4816         * m4/getcwd-abort-bug.m4: Update comment.
4817         * m4/getcwd-path-max.m4: Likewise.
4818
4819         getcwd-lgpl: new module
4820         * modules/getcwd-lgpl: New module.
4821         * lib/getcwd-lgpl.c: New file.
4822         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4823         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4824         * modules/getcwd (configure.ac): Set C witness.
4825         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4826
4827         getcwd: tweak comments
4828         * m4/getcwd-abort-bug.m4: Fix comments.
4829         * m4/getcwd-path-max.m4: Likewise.
4830         * m4/getcwd.m4: Likewise.
4831
4832 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4833         and Eric Blake  <eblake@redhat.com>
4834
4835         mkstemp: replace if system version uses wrong permissions
4836         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4837         read/write mode bits set in file created by mkstemp.
4838         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4839
4840 2011-04-27  Eric Blake  <eblake@redhat.com>
4841
4842         passfd: avoid compiler warning
4843         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4844         Reported by Laine Stump.
4845
4846 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4847
4848         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4849         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4850
4851 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4852         and Eric Blake  <eblake@redhat.com>
4853
4854         mkstemp: mention clean-temp module
4855         * lib/mkstemp.c: Add comment.
4856         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4857
4858 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4859
4860         inttypes: also provide default values for 32-bit tests
4861         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4862         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4863
4864 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         strtoumax: remove dependency on strtoimax
4867         This is like the strtoull change of yesterday.
4868         * modules/strtoumax (Files): Add lib/strtoimax.c.
4869         (Depends-on): Remove strtoimax and add verify.
4870
4871         inttypes-incomplete: new module
4872         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4873         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4874         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4875         of gl_INTTYPES_H.
4876         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4877         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4878         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4879         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4880         * modules/strtoumax, modules/xstrtol (Depends-on):
4881         Depend on inttypes-incomplete, not inttypes.
4882         * modules/inttypes-incomplete: New module, containing the contents
4883         of the old modules/inttypes module, except that the Files: section
4884         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4885         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4886         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4887         (Depends-on): Depend only on inttypes-incomplete.
4888         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4889
4890         inttypes: omit now-redundant strtoimax and strtoumax work
4891         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4892         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4893
4894         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4895         This supports apps that need pointers to strtoimax and strtoumax,
4896         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4897         nonexistent functions.  See
4898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4899         et seq.
4900         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4901         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4902         a macro.
4903         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4904
4905 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4906
4907         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4908
4909 2011-04-25  Bruno Haible  <bruno@clisp.org>
4910
4911         strtol, strtoul: Mark modules as obsolete.
4912         * modules/strtol (Status, Notice): New sections.
4913         * modules/strtoul (Status, Notice): New sections.
4914
4915 2011-04-25  Bruno Haible  <bruno@clisp.org>
4916
4917         strtod: Remove check for strtod, unless supporting old platforms.
4918         * modules/strtod-obsolete: New file.
4919         * m4/strtod-obsolete.m4: New file.
4920         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4921         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4922         * modules/strtod (Depends-on): Add strtod-obsolete.
4923         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4924
4925 2011-04-25  Bruno Haible  <bruno@clisp.org>
4926
4927         strcase: Make module obsolete.
4928         * modules/strcase (Status, Notice): New sections.
4929
4930 2011-04-25  Bruno Haible  <bruno@clisp.org>
4931
4932         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4933         * modules/dup2-obsolete: New file.
4934         * m4/dup2-obsolete.m4: New file.
4935         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4936         gl_FUNC_DUP2_OBSOLETE is not also defined.
4937         * modules/dup2 (Depends-on): Add dup2-obsolete.
4938         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4939
4940 2011-04-25  Bruno Haible  <bruno@clisp.org>
4941
4942         strnlen: Avoid memchr related link error on old obsolete platforms.
4943         * modules/memchr-obsolete: New file.
4944         * m4/memchr-obsolete.m4: New file.
4945         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4946         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4947         * modules/memchr (Depends-on): Add memchr-obsolete.
4948         * modules/strnlen (Depends-on): Likewise.
4949         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4950
4951 2011-04-25  Jim Meyering  <meyering@redhat.com>
4952
4953         maint.mk: makefile_at_at_check extend and clean up
4954         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4955         in addition to */Makefile.am.
4956         Exempt legitimate uses of @VAR@ notation, e.g.,
4957         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4958         Remove obsolete coreutils-specific comment.
4959         Prompted by discussion here:
4960         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4961
4962 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4963
4964         strtoul: remove dependency on strtol
4965         This is so that 'configure' need not check for strtol merely because
4966         the application needs strtoul.
4967         * modules/strtoul (Files): Add lib/strtol.c.
4968         (Depends-on): Remove strtol.
4969
4970         strtoull: remove dependency on strtoul
4971         This is like the strtoll change.
4972         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4973         (Depends-on): Remove strtoul.
4974
4975         strtoll: remove dependency on strtol
4976         This is so that 'configure' need not check for strtol merely because
4977         the application needs strtoll.
4978         * modules/strtoll (Files): Add lib/strtol.c.
4979         (Depends-on): Remove strtol.
4980
4981 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4982
4983         inttypes: Move some configure check to module 'imaxdiv'.
4984         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4985         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4986         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4987
4988 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4989
4990         inttypes: Move some configure check to module 'imaxabs'.
4991         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4992         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4993         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4994
4995 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         inttypes: Remove configure tests that are not needed since 2009-12-31.
4998         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4999         gl_cv_header_working_inttypes_h.
5000
5001 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5002
5003         * modules/strnlen (Depends-on): Remove memchr.
5004         The strnlen implementation doesn't need the memchr module's fixes; see
5005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5006
5007         strtol: remove dependency on wchar
5008         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5009         * modules/strtol (Depends-on): Remove wchar.
5010
5011 2011-04-21  Eric Blake  <eblake@redhat.com>
5012
5013         passfd: fix test regression on Linux
5014         * modules/passfd-tests (configure.ac): Correct socketpair check.
5015
5016         passfd: speed up configure and drop unused code
5017         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5018         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5019         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5020         Instead of probing at configure for unix_scm_rights_bsd44_way,
5021         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5022         check to a struct member probe.
5023         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5024         (sendfd, recvfd): Update preprocessor checks.
5025         * modules/passfd (Files): Reflect rename, and drop unused file.
5026         (Depends-on): Drop unused dependency.
5027
5028         passfd: allow compilation on mingw
5029         * modules/sys_socket (Depends-on): Add sys_uio.
5030         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5031         iovec and a minimal struct msghdr.
5032         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5033         * tests/test-sys_socket.c (main): Enhance test.
5034         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5035         guaranteed to provide what we need.
5036         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5037         * modules/passfd-tests (Depends-on): Add sys_wait.
5038         * tests/test-passfd.c (main): Skip test on mingw, for now.
5039         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5040         partial 'struct msghdr' implementation.
5041
5042         sys_uio: new module
5043         * modules/sys_uio: New module.
5044         * modules/sys_uio-tests: Likewise.
5045         * lib/sys_uio.in.h: New file.
5046         * m4/sys_uio_h.m4: Likewise.
5047         * tests/test-sys_uio.c: Likewise.
5048         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5049         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5050
5051 2011-04-20  Jim Meyering  <meyering@redhat.com>
5052
5053         useless-if-before-free: avoid false-positive
5054         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5055         disjunct so that it too requires a terminating ";".  Without that,
5056         this script would identify as useless one statement from gcc that
5057         was not:
5058           if (aligned_ptr)
5059             free (((void **) aligned_ptr) [-1]);
5060
5061 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5062
5063         doc: update users.txt.
5064         * users.txt: Add barcode.
5065
5066 2011-04-19  Bruno Haible  <bruno@clisp.org>
5067
5068         ioctl: Remove link dependency on native Windows.
5069         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5070         (gl_close_fn, gl_ioctl_fn): New types.
5071         (struct fd_hook): Renamed from struct close_hook. Change type of
5072         private_close_fn field. Add private_ioctl_fn field.
5073         (close_hook_fn): Add parameter for primary close method.
5074         (execute_close_hooks, execute_all_close_hooks): Likewise.
5075         (ioctl_hook_fn): New type.
5076         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5077         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5078         argument.
5079         (unregister_fd_hook): Renamed from unregister_close_hook.
5080         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5081         Don't include <unistd.h>.
5082         (close): Remove undef.
5083         (anchor): Update.
5084         (execute_close_hooks): Add argument for primary close method.
5085         (execute_all_close_hooks): Likewise.
5086         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5087         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5088         argument. Allow each argument to be NULL.
5089         (unregister_fd_hook): Renamed from unregister_close_hook.
5090         * lib/close.c (rpl_close): Pass 'close' function pointer to
5091         execute_all_close_hooks.
5092         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5093         (primary_ioctl): New function.
5094         (ioctl): Don't call ioctlsocket here. Instead, call
5095         execute_all_ioctl_hooks.
5096         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5097         close method.
5098         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5099         (fd_sockets_hook): Renamed from close_sockets_hook.
5100         (gl_sockets_startup, gl_sockets_cleanup): Update.
5101         * modules/fd-hook: Renamed from modules/close-hook. Update.
5102         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5103         * modules/sockets (Depends-on): Likewise.
5104         * modules/ioctl (Depends-on): Add fd-hook.
5105         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5106         GNULIB_SOCKET.
5107
5108 2011-04-19  Bruno Haible  <bruno@clisp.org>
5109
5110         Move the support of O_NONBLOCK in open() to the 'open' module.
5111         * modules/nonblocking (Depends-on): Remove 'open'.
5112         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5113         gl_cv_have_open_O_NONBLOCK.
5114         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5115         O_NONBLOCK support.
5116         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5117
5118 2011-04-17  Bruno Haible  <bruno@clisp.org>
5119
5120         pipe2: Simplify code.
5121         * lib/pipe2.c (pipe2): Reduce code duplication.
5122
5123 2011-04-17  Bruno Haible  <bruno@clisp.org>
5124
5125         nonblocking: Add comment.
5126         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5127
5128 2011-04-17  Bruno Haible  <bruno@clisp.org>
5129
5130         nonblocking: Add tests for sockets.
5131         * tests/test-nonblocking-socket.sh: New file.
5132         * tests/test-nonblocking-socket-main.c: New file.
5133         * tests/test-nonblocking-socket-child.c: New file.
5134         * tests/test-nonblocking-socket.h: New file.
5135         * tests/socket-server.h: New file.
5136         * tests/socket-client.h: New file.
5137         * modules/nonblocking-socket-tests: New file.
5138         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5139
5140 2011-04-17  Bruno Haible  <bruno@clisp.org>
5141
5142         nonblocking: Add tests for pipes.
5143         * tests/test-nonblocking-pipe.sh: New file.
5144         * tests/test-nonblocking-pipe-main.c: New file.
5145         * tests/test-nonblocking-pipe-child.c: New file.
5146         * tests/test-nonblocking-pipe.h: New file.
5147         * tests/test-nonblocking-writer.h: New file.
5148         * tests/test-nonblocking-reader.h: New file.
5149         * tests/test-nonblocking-misc.h: New file.
5150         * modules/nonblocking-pipe-tests: New file.
5151         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5152
5153 2011-04-16  Bruno Haible  <bruno@clisp.org>
5154
5155         gettext: Clarify the needed programmer actions.
5156         * modules/gettext (Notice): New field.
5157         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5158
5159 2011-04-16  Bruno Haible  <bruno@clisp.org>
5160
5161         strchrnul: Tweak last commit.
5162         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5163         bug.
5164         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5165         as in _GL_FUNCDECL_SYS.
5166         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5167         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5168
5169 2011-04-15  Eric Blake  <eblake@redhat.com>
5170
5171         strchrnul: work around cygwin bug
5172         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5173         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5175         * modules/string (Makefile.am): Substitute it.
5176         * lib/string.in.h (strchrnul): Use it.
5177
5178 2011-04-15  Bruno Haible  <bruno@clisp.org>
5179
5180         Don't require lib/stdio-write.c when only module 'stdio' is used.
5181         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5182         invocation.
5183         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5184
5185 2011-04-14  Bruno Haible  <bruno@clisp.org>
5186
5187         Support non-blocking pipe I/O in read() on native Windows.
5188         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5189         (read): New declaration.
5190         * lib/read.c: New file.
5191         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5192         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5193         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5194         vscanf): New declarations.
5195         * lib/stdio-read.c: New file.
5196         * m4/read.m4: New file.
5197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5198         REPLACE_READ.
5199         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5200         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5201         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5202         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5203         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5204         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5205         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5206         * modules/read: New file.
5207         * modules/nonblocking (Files): Add lib/stdio-read.c.
5208         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5209         * modules/stdio (Makefile.am): Substitute 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/pread (Depends-on): Add read.
5213         * modules/safe-read (Depends-on): Likewise.
5214         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5215         gets, scanf, vfscanf, vscanf): Verify signatures.
5216         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5217         problem with non-blocking pipes.
5218         * doc/posix-functions/fgetc.texi: Likewise.
5219         * doc/posix-functions/fgets.texi: Likewise.
5220         * doc/posix-functions/fread.texi: Likewise.
5221         * doc/posix-functions/fscanf.texi: Likewise.
5222         * doc/posix-functions/getc.texi: Likewise.
5223         * doc/posix-functions/getchar.texi: Likewise.
5224         * doc/posix-functions/gets.texi: Likewise.
5225         * doc/posix-functions/scanf.texi: Likewise.
5226         * doc/posix-functions/vfscanf.texi: Likewise.
5227         * doc/posix-functions/vscanf.texi: Likewise.
5228
5229 2011-04-14  Bruno Haible  <bruno@clisp.org>
5230
5231         Support non-blocking pipe I/O in write() on native Windows.
5232         * lib/write.c (rpl_write): Split a write request that failed merely
5233         because the byte count was larger than the pipe buffer's size.
5234         * doc/posix-functions/write.texi: Mention the problem with large byte
5235         counts.
5236
5237 2011-04-14  Bruno Haible  <bruno@clisp.org>
5238
5239         wchar: Ensure that wchar_t gets defined on uClibc.
5240         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5241         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5242
5243 2011-04-13  Bruno Haible  <bruno@clisp.org>
5244
5245         safe-write, full-read: Avoid unnecessary compilation units.
5246         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5247         (Depends-on): Remove safe-read. Add ssize_t.
5248         * modules/full-read (Files): Add lib/full-write.c.
5249         (Depends-on): Add full-write.
5250
5251 2011-04-13  Bruno Haible  <bruno@clisp.org>
5252
5253         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5254         * modules/pwrite (Depends-on): Add 'write'.
5255
5256 2011-04-13  Bruno Haible  <bruno@clisp.org>
5257
5258         Support non-blocking pipe I/O in write() on native Windows.
5259         * lib/unistd.in.h (write): Enable replacement also if
5260         GNULIB_UNISTD_H_NONBLOCKING is 1.
5261         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5262         (rpl_write): When failing to write on a non-blocking pipe, change
5263         errno from ENOSPC to EAGAIN.
5264         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5265         putchar, puts, vfprintf, vprintf): Enable replacement also if
5266         GNULIB_STDIO_H_NONBLOCKING is 1.
5267         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5268         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5269         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5270         CALL_WITH_SIGPIPE_EMULATION.
5271         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5272         * m4/nonblocking.m4: New file.
5273         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5274         for non-blocking I/O support.
5275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5276         GNULIB_UNISTD_H_NONBLOCKING.
5277         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5278         required for non-blocking I/O support.
5279         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5280         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5281         lib/stdio-write.c, m4/asm-underscore.m4.
5282         (Depends-on): Add stdio, unistd.
5283         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5284         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5285         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5286         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5287         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5288         problem with non-blocking pipes.
5289         * doc/posix-functions/fputc.texi: Likewise.
5290         * doc/posix-functions/fputs.texi: Likewise.
5291         * doc/posix-functions/fwrite.texi: Likewise.
5292         * doc/posix-functions/printf.texi: Likewise.
5293         * doc/posix-functions/putc.texi: Likewise.
5294         * doc/posix-functions/putchar.texi: Likewise.
5295         * doc/posix-functions/puts.texi: Likewise.
5296         * doc/posix-functions/vfprintf.texi: Likewise.
5297         * doc/posix-functions/vprintf.texi: Likewise.
5298         * doc/posix-functions/write.texi: Likewise.
5299
5300 2011-04-10  Jim Meyering  <meyering@redhat.com>
5301
5302         maint.mk: prohibit doubled words
5303         Detect them also when they're separated by a newline.
5304         There are 3 ways to customize it:
5305           - disable the test on a per file basis, as usual with rules using
5306             $(VC_LIST_EXCEPT)
5307           - replace the default doubled-word-selecting regexp (affects all files)
5308           - ignore a particular file-vs-doubled-word match
5309         I nearly used that last one to ignore the "is is" match in
5310         coreutils' NEWS file, since the text was "ls -is is ..."
5311         To do that, I would have added this line to cfg.mk:
5312           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5313         but it would have ignored any "is is" match in NEWS.
5314         Low probability, but still...
5315         Instead, I changed the text, slightly:
5316           -  ls -is is now consistent with ls -lis in ignoring values returned
5317           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5318         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5319         (prohibit_doubled_word_): Define.
5320         (sc_prohibit_doubled_word): New rule.
5321         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5322
5323 2011-04-10  Jim Meyering  <meyering@redhat.com>
5324
5325         maint: fix doubled-word typo in comment
5326         * m4/gethostname.m4: s/is is/it is/
5327         * m4/getdomainname.m4: Likewise.
5328
5329 2011-04-10  Jim Meyering  <meyering@redhat.com>
5330
5331         maint: remove doubled word: s/it it/it/
5332         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5333
5334 2011-04-10  Jim Meyering  <meyering@redhat.com>
5335
5336         maint.mk: remove useless semicolon and backslash
5337         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5338         semicolon and backslash.
5339
5340 2011-04-10  Bruno Haible  <bruno@clisp.org>
5341
5342         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5343         * modules/stdint-tests (Depends-on): Add wchar.
5344
5345 2011-04-10  Jim Meyering  <meyering@redhat.com>
5346
5347         maint: remove doubled words in comments, e.g., s/a a/a/
5348         * lib/strptime.c (day_of_the_week): s/the the/the/
5349         * tests/test-chown.h (test_chown): s/a a/a/
5350
5351         test-chown.h: correct a cast
5352         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5353         when the destination is a stat.st_gid.
5354
5355 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5356
5357         getaddrinfo: Fix test for sa_len member.
5358         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5359         include <sys/types.h> before <sys/socket.h>.
5360
5361 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5362
5363         maint: change "can not" to "cannot"
5364         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5365         boundaries.
5366
5367 2011-04-09  Jim Meyering  <meyering@redhat.com>
5368
5369         maint: change "a a" to "a"
5370         * tests/test-lchown.h (test_lchown): s/a a/a/
5371
5372         maint.mk: prohibit \<the the\>
5373         * top/maint.mk (sc_prohibit_the_the): New rule.
5374
5375         maint: fix "the the" in comment
5376         * lib/count-one-bits.h: s/the the/the/
5377
5378         maint: change "can not" to "cannot"
5379         But do not change the occurrences in maintain.texi or in
5380         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5381         * doc/gnulib-tool.texi: s/can not/cannot/
5382         * doc/posix-functions/accept.texi (accept): Likewise.
5383         * doc/posix-functions/socket.texi (socket): Likewise.
5384         * lib/mbrtowc.c: Likewise.
5385
5386         maint.mk: prohibit use of "can not"
5387         * top/maint.mk (sc_prohibit_can_not): New rule.
5388         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5389
5390 2011-04-09  Bruno Haible  <bruno@clisp.org>
5391
5392         careadlinkat: Guard against misuse of careadlinkatcwd.
5393         * lib/careadlinkat.c: Include <stdlib.h>.
5394         (careadlinkatcwd): Check that the fd argument is as expected.
5395
5396 2011-04-09  Bruno Haible  <bruno@clisp.org>
5397
5398         careadlinkat: Use common coding style.
5399         * lib/careadlinkat.c: Move gnulib includes after system includes.
5400
5401 2011-04-09  Bruno Haible  <bruno@clisp.org>
5402
5403         careadlinkat: Clarify specification.
5404         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5405         (careadlinkatcwd): Add comment.
5406         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5407
5408 2011-04-09  Bruno Haible  <bruno@clisp.org>
5409
5410         areadlinkat: Avoid link error on many platforms.
5411         * modules/areadlinkat (Depends-on): Add areadlink.
5412
5413 2011-04-09  Bruno Haible  <bruno@clisp.org>
5414
5415         allocator, careadlinkat: Fix double-inclusion guard.
5416         * lib/allocator.h: Fix double-inclusion guard.
5417         * lib/careadlinkat.h: Likewise.
5418
5419 2011-04-09  Bruno Haible  <bruno@clisp.org>
5420
5421         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5422         * lib/relocwrapper.c: Update dependencies hierarchy.
5423         * build-aux/install-reloc: Update list of files to be compiled.
5424         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5425         lib/allocator.[hc].
5426
5427 2011-04-08  Eric Blake  <eblake@redhat.com>
5428
5429         strftime: silence gnulib-tool warning
5430         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5431
5432 2011-04-08  Bruno Haible  <bruno@clisp.org>
5433
5434         verify: Fix syntax error with GCC 4.6 in C++ mode.
5435         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5436         (HAVE_STATIC_ASSERT): New macro.
5437         (verify_true, verify): Use 'static_assert' if it is supported and
5438         '_Static_assert' is not supported.
5439
5440 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5441
5442         allocator: New module.
5443         * modules/allocator, lib/allocator.c: New files.
5444         * lib/allocator.h (stdlib_allocator): New decl.
5445         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5446         Remove.  Do not include <stdlib.h>.
5447         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5448         * modules/careadlinkat (Files): Remove lib/allocator.h.
5449         (Depends-on): Add allocator.
5450
5451         stdlib: let modules use system malloc, realloc
5452         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5453         if !_GL_USE_STDLIB_ALLOC.
5454         (malloc, realloc): Limit this change to a smaller scope.
5455
5456         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5457         (malloc, realloc): Don't #undef; no longer needed.
5458         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5459         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5460         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5461         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5462         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5463         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5464         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5465         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5466
5467         careadlinkat: rename members to avoid problem
5468         * lib/allocator.h (struct allocator): Rename members from
5469         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5470         and realloc are #define'd.  Reported by Eric Blake in
5471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5472         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5473
5474 2011-04-08  Eric Blake  <eblake@redhat.com>
5475
5476         nonblocking: reduce dependency
5477         * tests/test-nonblocking.c: Only test sockets when in use.
5478         * modules/nonblocking-tests (Depends-on): Drop socket.
5479         (Makefile.am): Link even if sockets are not present.
5480         * modules/pipe2-tests (Makefile.am): Likewise.
5481         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5482
5483         pipe2: fix O_NONBLOCK support on mingw
5484         * modules/pipe2 (Depends-on): Add nonblocking.
5485         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5486         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5487         * tests/test-nonblocking.c (main): Likewise.
5488         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5489
5490         fcntl-h: fix O_ACCMODE on cygwin
5491         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5492         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5493
5494         pipe-filter: drop O_NONBLOCK workarounds
5495         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5496         * modules/pipe-filter-ii (Depends-on): Likewise.
5497         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5498
5499         nonblocking: provide O_NONBLOCK for mingw
5500         * modules/nonblocking (Depends-on): Add open.
5501         (configure.ac): Set new witness macro.
5502         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5503         * modules/fcntl-h (Makefile.am): Substitute it.
5504         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5505         nonblocking module is in use.
5506         * lib/nonblocking.c: Adjust portability test.
5507         * lib/open.c (open): Don't let native open see gnulib flag.
5508         * tests/test-fcntl-h.c (main): Enhance test.
5509         * tests/test-open.h (test_open): Likewise.
5510         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5511
5512         careadlinkat: fix compilation error on mingw
5513         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5514         within struct allocator.
5515
5516 2011-04-06  Eric Blake  <eblake@redhat.com>
5517
5518         binary-io: relicense under LGPLv2+
5519         * modules/binary-io (License): Relax to LGPLv2+.
5520         Requested for libvirt, and required by pipe2.
5521
5522 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5523
5524         verify: use _Static_assert if available
5525         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5526         (verify_true, verify): Use it if available.  This generates better
5527         diagnostics with GCC 4.6.0 and later.
5528
5529 2011-04-05  Bruno Haible  <bruno@clisp.org>
5530
5531         Remove leftover generated .h files after config.status changed.
5532
5533         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5534         GL_GENERATE_ALLOCA_H.
5535         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5536         GL_GENERATE_ALLOCA_H evaluates to false.
5537
5538         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5539         GL_GENERATE_ARGZ_H.
5540         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5541         evaluates to false.
5542
5543         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5544         GL_GENERATE_BYTESWAP_H.
5545         * modules/byteswap (Makefile.am): Remove byteswap.h if
5546         GL_GENERATE_BYTESWAP_H evaluates to false.
5547
5548         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5549         GL_GENERATE_ERRNO_H.
5550         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5551         evaluates to false.
5552
5553         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5554         GL_GENERATE_FLOAT_H.
5555         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5556         evaluates to false.
5557
5558         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5559         GL_GENERATE_FNMATCH_H.
5560         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5561         GL_GENERATE_FNMATCH_H evaluates to false.
5562
5563         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5564         GL_GENERATE_GLOB_H.
5565         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5566         evaluates to false.
5567
5568         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5569         automake conditional GL_GENERATE_ICONV_H.
5570         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5571         evaluates to false.
5572
5573         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5574         GL_GENERATE_NETINET_IN_H.
5575         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5576         GL_GENERATE_NETINET_IN_H evaluates to false.
5577
5578         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5579         conditional GL_GENERATE_PTHREAD_H.
5580         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5581         * modules/pthread (Makefile.am): Remove pthread.h if
5582         GL_GENERATE_PTHREAD_H evaluates to false.
5583
5584         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5585         GL_GENERATE_SCHED_H.
5586         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5587         evaluates to false.
5588
5589         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5590         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5591         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5592         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5593
5594         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5595         GL_GENERATE_STDARG_H.
5596         * modules/stdarg (Makefile.am): Remove stdarg.h if
5597         GL_GENERATE_STDARG_H evaluates to false.
5598
5599         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5600         GL_GENERATE_STDBOOL_H.
5601         * modules/stdbool (Makefile.am): Remove stdbool.h if
5602         GL_GENERATE_STDBOOL_H evaluates to false.
5603
5604         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5605         conditional GL_GENERATE_STDDEF_H.
5606         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5607         * modules/stddef (Makefile.am): Remove stddef.h if
5608         GL_GENERATE_STDDEF_H evaluates to false.
5609
5610         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5611         GL_GENERATE_STDINT_H.
5612         * modules/stdint (Makefile.am): Remove stdint.h if
5613         GL_GENERATE_STDINT_H evaluates to false.
5614
5615         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5616         GL_GENERATE_SYSEXITS_H.
5617         * modules/sysexits (Makefile.am): Remove sysexits.h if
5618         GL_GENERATE_SYSEXITS_H evaluates to false.
5619
5620         Reported by Karl Berry and Ralf Wildenhues.
5621
5622 2011-04-05  Bruno Haible  <bruno@clisp.org>
5623
5624         Ensure to rebuild generated .h files when config.status has changed.
5625         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5626         config.status.
5627         * modules/ctype (Makefile.am): Likewise.
5628         * modules/dirent (Makefile.am): Likewise.
5629         * modules/errno (Makefile.am): Likewise.
5630         * modules/fcntl-h (Makefile.am): Likewise.
5631         * modules/float (Makefile.am): Likewise.
5632         * modules/getopt-posix (Makefile.am): Likewise.
5633         * modules/glob (Makefile.am): Likewise.
5634         * modules/iconv-h (Makefile.am): Likewise.
5635         * modules/inttypes (Makefile.am): Likewise.
5636         * modules/langinfo (Makefile.am): Likewise.
5637         * modules/locale (Makefile.am): Likewise.
5638         * modules/math (Makefile.am): Likewise.
5639         * modules/netdb (Makefile.am): Likewise.
5640         * modules/netinet_in (Makefile.am): Likewise.
5641         * modules/poll-h (Makefile.am): Likewise.
5642         * modules/pthread (Makefile.am): Likewise.
5643         * modules/pty (Makefile.am): Likewise.
5644         * modules/sched (Makefile.am): Likewise.
5645         * modules/search (Makefile.am): Likewise.
5646         * modules/selinux-h (Makefile.am): Likewise.
5647         * modules/signal (Makefile.am): Likewise.
5648         * modules/spawn (Makefile.am): Likewise.
5649         * modules/stdarg (Makefile.am): Likewise.
5650         * modules/stdbool (Makefile.am): Likewise.
5651         * modules/stddef (Makefile.am): Likewise.
5652         * modules/stdint (Makefile.am): Likewise.
5653         * modules/stdio (Makefile.am): Likewise.
5654         * modules/stdlib (Makefile.am): Likewise.
5655         * modules/string (Makefile.am): Likewise.
5656         * modules/strings (Makefile.am): Likewise.
5657         * modules/sys_file (Makefile.am): Likewise.
5658         * modules/sys_ioctl (Makefile.am): Likewise.
5659         * modules/sys_select (Makefile.am): Likewise.
5660         * modules/sys_socket (Makefile.am): Likewise.
5661         * modules/sys_stat (Makefile.am): Likewise.
5662         * modules/sys_time (Makefile.am): Likewise.
5663         * modules/sys_times (Makefile.am): Likewise.
5664         * modules/sys_utsname (Makefile.am): Likewise.
5665         * modules/sys_wait (Makefile.am): Likewise.
5666         * modules/sysexits (Makefile.am): Likewise.
5667         * modules/termios (Makefile.am): Likewise.
5668         * modules/time (Makefile.am): Likewise.
5669         * modules/unistd (Makefile.am): Likewise.
5670         * modules/wchar (Makefile.am): Likewise.
5671         * modules/wctype-h (Makefile.am): Likewise.
5672         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5673
5674 2011-04-05  Bruno Haible  <bruno@clisp.org>
5675
5676         pipe2: Relicense under LGPLv2+.
5677         * modules/pipe2 (License): Change to LGPLv2+.
5678         Requested by Eric Blake, for libvirt.
5679
5680 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5681
5682         bootstrap: compute gnulib_extra_files after updating build_aux
5683         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5684         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5685
5686 2011-04-05  Eric Blake  <eblake@redhat.com>
5687
5688         bootstrap: preserve git whitelist item sorting
5689         * build-aux/bootstrap (sort_patterns): New function.
5690         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5691
5692 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5693
5694         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5695         sc_space_tab check.
5696
5697 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5698
5699         areadlink, areadlinkat: rewrite in terms of careadlinkat
5700         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5701         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5702         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5703         (malloc, realloc): Remove #undefs.
5704         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5705         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5706         readlink, ssize_t, stdint, unistd.
5707         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5708         areadlink, stdint.
5709
5710         careadlinkat: new module
5711         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5712         * modules/careadlinkat: New files, written by me with
5713         a review and feedback from Ben Pfaff in
5714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5715
5716 2011-04-01  Bruno Haible  <bruno@clisp.org>
5717
5718         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5719         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5720         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5721         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5722         Reported by Bruce Korb <bruce.korb@gmail.com>.
5723
5724 2011-04-01  Bruno Haible  <bruno@clisp.org>
5725
5726         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5727         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5728         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5729         * modules/wcpcpy (Depends-on): Add extensions.
5730         * modules/wcpncpy (Depends-on): Likewise.
5731         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5732         systems.
5733         * doc/posix-functions/wcpncpy.texi: Likewise.
5734         * doc/posix-functions/wcwidth.texi: Likewise.
5735
5736 2011-03-31  Eric Blake  <eblake@redhat.com>
5737
5738         nonblocking: fix mingw test failures
5739         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5740         non-blocking flag on regular file.
5741         (get_nonblocking_flag): Set errno on invalid fd.
5742         * tests/test-nonblocking.c (main): Avoid test failure on
5743         directories if fchdir is not active.
5744         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5745
5746 2011-03-31  Bruno Haible  <bruno@clisp.org>
5747
5748         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5749         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5750         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5751         Reported by Simon Josefsson <simon@josefsson.org>.
5752
5753 2011-03-31  Bruno Haible  <bruno@clisp.org>
5754         and Eric Blake  <eblake@redhat.com>
5755
5756         nonblocking: new module
5757         * modules/nonblocking: New module.
5758         * modules/nonblocking-tests: Likewise.
5759         * lib/nonblocking.h: New file.
5760         * lib/nonblocking.c: Likewise.
5761         * tests/test-nonblocking.c: New test.
5762         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5763
5764 2011-03-30  Bruno Haible  <bruno@clisp.org>
5765
5766         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5767         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5768         instead of 'printf' format for GCC >= 4.4.
5769         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5770         (fprintf, printf, vfprintf, vprintf): Declare with
5771         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5772         the system's vfprintf() function.
5773         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5774
5775 2011-03-30  Eric Blake  <eblake@redhat.com>
5776
5777         passfd: fix scoping bug
5778         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5779         before sendmsg/recvmsg.
5780
5781         passfd: standardize coding conventions
5782         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5783         can be learned at compile time.
5784         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5785         ifdefs.
5786         (sendfd, recvfd): Follow gnulib code conventions.
5787
5788         passfd: fix incorrect sendmsg arguments
5789         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5790         incorrect msg_controllen value.
5791         * modules/passfd-tests (Depends-on): Check for alarm.
5792         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5793         Reported by Bastien ROUCARIES.
5794
5795 2011-03-30  Bruno Haible  <bruno@clisp.org>
5796
5797         c-strcasestr: Relicense under LGPLv2+.
5798         * modules/c-strcasestr (License): Change to LGPLv2+.
5799         Requested by Eric Blake, for libvirt.
5800
5801 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5802
5803         * users.txt: Add libidn2.  Fix libtasn1 link.
5804
5805 2011-03-30  Jim Meyering  <meyering@redhat.com>
5806
5807         tests: readlink* ("",... fails with EINVAL on newer kernels
5808         readlink and readlinkat have typically failed with ENOENT for
5809         the invalid, empty file name,  "".  However, with the advent
5810         of linux-2.6.39, they fail with EINVAL.
5811         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5812         when operating on the empty file name.
5813         * tests/test-readlink.h (test_readlink): Likewise.
5814
5815 2011-03-29  Bruno Haible  <bruno@clisp.org>
5816
5817         Relicense some modules under LGPLv2+, for libidn2.
5818         * modules/array-mergesort (License): Change to LGPLv2+.
5819         * modules/c-strcaseeq (License): Likewise.
5820         * modules/striconveh (License): Likewise.
5821         * modules/striconveha (License): Likewise.
5822         * modules/uniconv/base (License): Likewise.
5823         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5824         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5825         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5826         * modules/unictype/base (License): Likewise.
5827         * modules/unictype/bidiclass-of (License): Likewise.
5828         * modules/unictype/category-M (License): Likewise.
5829         * modules/unictype/category-none (License): Likewise.
5830         * modules/unictype/category-of (License): Likewise.
5831         * modules/unictype/category-test (License): Likewise.
5832         * modules/unictype/category-test-withtable (License): Likewise.
5833         * modules/unictype/combining-class (License): Likewise.
5834         * modules/unictype/joiningtype-of (License): Likewise.
5835         * modules/unictype/scripts (License): Likewise.
5836         * modules/uninorm/base (License): Likewise.
5837         * modules/uninorm/canonical-decomposition (License): Likewise.
5838         * modules/uninorm/composition (License): Likewise.
5839         * modules/uninorm/decompose-internal (License): Likewise.
5840         * modules/uninorm/decomposition-table (License): Likewise.
5841         * modules/uninorm/nfc (License): Likewise.
5842         * modules/uninorm/nfd (License): Likewise.
5843         * modules/uninorm/u32-normalize (License): Likewise.
5844         * modules/unistr/base (License): Likewise.
5845         * modules/unistr/u32-cpy (License): Likewise.
5846         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5847         * modules/unistr/u32-to-u8 (License): Likewise.
5848         * modules/unistr/u32-uctomb (License): Likewise.
5849         * modules/unistr/u8-check (License): Likewise.
5850         * modules/unistr/u8-mblen (License): Likewise.
5851         * modules/unistr/u8-mbtouc (License): Likewise.
5852         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5853         * modules/unistr/u8-mbtoucr (License): Likewise.
5854         * modules/unistr/u8-prev (License): Likewise.
5855         * modules/unistr/u8-strlen (License): Likewise.
5856         * modules/unistr/u8-to-u32 (License): Likewise.
5857         * modules/unistr/u8-uctomb (License): Likewise.
5858         * modules/unitypes (License): Likewise.
5859         Requested by Simon Josefsson.
5860
5861 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5862
5863         lib-symbol-visibility: Add a notice.
5864         * modules/lib-symbol-visibility (Notice): New field.
5865
5866 2011-03-29  Bruno Haible  <bruno@clisp.org>
5867
5868         getaddrinfo: Doc fix.
5869         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5870         section "fixed in Gnulib".
5871
5872 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5873
5874         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5875         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5876
5877 2011-03-26  Bruno Haible  <bruno@clisp.org>
5878
5879         unictype/property-byname: Reduce the number of load-time relocations.
5880         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5881         (UC_PROPERTY_INDEX_*): New enumeration values.
5882         (uc_property_byname): Convert an index from the lookup table to an
5883         uc_property_t.
5884         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5885         values.
5886
5887 2011-03-26  Bruno Haible  <bruno@clisp.org>
5888
5889         unictype/property-byname: Allow omitted word separators and aliases.
5890         * lib/unictype/pr_byname.gperf: Add property names without word
5891         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5892         for 'space'.
5893
5894 2011-03-26  Bruno Haible  <bruno@clisp.org>
5895
5896         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5897         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5898         also hyphens to space.
5899         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5900         without spaces.
5901         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5902
5903 2011-03-26  Bruno Haible  <bruno@clisp.org>
5904
5905         unictype/joiningtype-byname: Recognize long names as well.
5906         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5907         a long name.
5908         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5909         unictype/joiningtype_byname.h.
5910         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5911         * lib/unictype/joiningtype_byname.gperf: New file.
5912         * modules/unictype/joiningtype-byname (Files): Add
5913         lib/unictype/joiningtype_byname.gperf.
5914         (Depends-on): Add gperf.
5915         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5916         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5917         long names.
5918
5919         Tests for module 'unictype/joiningtype-longname'.
5920         * modules/unictype/joiningtype-longname-tests: New file.
5921         * tests/unictype/test-joiningtype_longname.c: New file.
5922
5923         New module 'unictype/joiningtype-longname'.
5924         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5925         * lib/unictype/joiningtype_longname.c: New file.
5926         * modules/unictype/joiningtype-longname: New file.
5927         * modules/unictype/joiningtype-all (Depends-on): Add
5928         unictype/joiningtype-longname.
5929
5930 2011-03-26  Bruno Haible  <bruno@clisp.org>
5931
5932         unictype/bidiclass-byname: Recognize long names as well.
5933         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5934         name.
5935         * lib/unictype/bidi_byname.c: Include <string.h>,
5936         unictype/bidi_byname.h.
5937         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5938         * lib/unictype/bidi_byname.gperf: New file.
5939         * modules/unictype/bidiclass-byname (Files): Add
5940         lib/unictype/bidi_byname.gperf.
5941         (Depends-on): Add gperf.
5942         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5943         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5944         long names.
5945
5946         Tests for module 'unictype/bidiclass-longname'.
5947         * modules/unictype/bidiclass-longname-tests: New file.
5948         * tests/unictype/test-bidi_longname.c: New file.
5949
5950         New module 'unictype/bidiclass-longname'.
5951         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5952         * lib/unictype/bidi_longname.c: New file.
5953         * modules/unictype/bidiclass-longname: New file.
5954         * modules/unictype/bidiclass-all (Depends-on): Add
5955         unictype/bidiclass-longname.
5956
5957 2011-03-26  Bruno Haible  <bruno@clisp.org>
5958
5959         unictype/bidi*: Rename modules.
5960         * modules/unictype/bidiclass-all: Renamed from
5961         modules/unictype/bidicategory-all.
5962         * modules/unictype/bidiclass-name: Renamed from
5963         modules/unictype/bidiclass-name.
5964         (Description): Update.
5965         * modules/unictype/bidiclass-name-tests: Renamed from
5966         modules/unictype/bidicategory-name-tests.
5967         * modules/unictype/bidiclass-byname: Renamed from
5968         modules/unictype/bidicategory-byname.
5969         (Description): Update.
5970         * modules/unictype/bidiclass-byname-tests: Renamed from
5971         modules/unictype/bidicategory-byname-tests.
5972         * modules/unictype/bidiclass-of: Renamed from
5973         modules/unictype/bidicategory-of.
5974         (Description): Update.
5975         * modules/unictype/bidiclass-of-tests: Renamed from
5976         modules/unictype/bidicategory-of-tests.
5977         * modules/unictype/bidiclass-test: Renamed from
5978         modules/unictype/bidicategory-test.
5979         (Description): Update.
5980         * modules/unictype/bidiclass-test-tests: Renamed from
5981         modules/unictype/bidicategory-test-tests.
5982         * modules/unictype/bidicategory-all: New file, a simple redirection.
5983         * modules/unictype/bidicategory-name: Likewise.
5984         * modules/unictype/bidicategory-byname: Likewise.
5985         * modules/unictype/bidicategory-of: Likewise.
5986         * modules/unictype/bidicategory-test: Likewise.
5987         * modules/unictype/property-bidi-* (Dependencies): Update.
5988         * lib/unictype/bidi_*.c: Update comment.
5989
5990 2011-03-26  Bruno Haible  <bruno@clisp.org>
5991
5992         unictype/bidi*: Rename functions, part 2.
5993         * modules/unictype/bidicategory-name (configure.ac): Update required
5994         libunistring version.
5995         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5996
5997 2011-03-25  Bruno Haible  <bruno@clisp.org>
5998
5999         New module 'unictype/combining-class-all'.
6000         * modules/unictype/combining-class-all: New file.
6001
6002         Tests for module 'unictype/combining-class-byname'.
6003         * modules/unictype/combining-class-byname-tests: New file.
6004         * tests/unictype/test-combiningclass_byname.c: New file.
6005
6006         New module 'unictype/combining-class-byname'.
6007         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6008         * lib/unictype/combiningclass_byname.c: New file.
6009         * lib/unictype/combiningclass_byname.gperf: New file.
6010         * modules/unictype/combining-class-byname: New file.
6011
6012         Tests for module 'unictype/combining-class-longname'.
6013         * modules/unictype/combining-class-longname-tests: New file.
6014         * tests/unictype/test-combiningclass_longname.c: New file.
6015
6016         New module 'unictype/combining-class-longname'.
6017         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6018         * lib/unictype/combiningclass_longname.c: New file.
6019         * modules/unictype/combining-class-longname: New file.
6020
6021         Tests for module 'unictype/combining-class-name'.
6022         * modules/unictype/combining-class-name-tests: New file.
6023         * tests/unictype/test-combiningclass_name.c: New file.
6024
6025         New module 'unictype/combining-class-name'.
6026         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6027         * lib/unictype/combiningclass_name.c: New file.
6028         * modules/unictype/combining-class-name: New file.
6029
6030 2011-03-25  Bruno Haible  <bruno@clisp.org>
6031
6032         unictype/combining-class: Rename source files.
6033         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6034         of unictype/combining.h.
6035         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6036         Update.
6037         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6038         * modules/unictype/combining-class (Description): Fix.
6039         (Files, Makefile.am): Update.
6040         * tests/unictype/test-combiningclass.c: Renamed from
6041         tests/unictype/test-combining.c.
6042         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6043
6044 2011-03-25  Bruno Haible  <bruno@clisp.org>
6045
6046         unictype: Update list of canonical combining classes.
6047         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6048
6049 2011-03-25  Bruno Haible  <bruno@clisp.org>
6050
6051         unictype/category-byname: Recognize long names as well.
6052         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6053         a long name.
6054         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6055         unictype/categ_byname.h.
6056         (UC_CATEGORY_INDEX_*): New enumeration values.
6057         (uc_general_category_byname): Use uc_general_category_lookup and
6058         convert from index to value.
6059         * lib/unictype/categ_byname.gperf: New file.
6060         * modules/unictype/category-byname (Files): Add
6061         lib/unictype/categ_byname.gperf.
6062         (Depends-on): Add gperf.
6063         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6064         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6065         long names.
6066
6067         Tests for module 'unictype/category-longname'.
6068         * modules/unictype/category-longname-tests: New file.
6069         * tests/unictype/test-categ_longname.c: New file.
6070
6071         New module 'unictype/category-longname'.
6072         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6073         * lib/unictype/categ_longname.c: New file.
6074         * modules/unictype/category-longname: New file.
6075         * modules/unictype/category-all (Depends-on): Add it.
6076
6077 2011-03-25  Bruno Haible  <bruno@clisp.org>
6078
6079         Tests for module 'unictype/category-LC'.
6080         * modules/unictype/category-LC-tests: New file.
6081         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6082
6083         New module 'unictype/category-LC'.
6084         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6085         (UC_CATEGORY_LC): New declaration.
6086         (UC_CASED_LETTER): New macro.
6087         * lib/gen-uni-tables.c (is_category_LC): New function.
6088         (output_categories): Also handle category LC.
6089         (UC_CATEGORY_MASK_LC): New enumeration value.
6090         (general_category_byname): Also handle category LC.
6091         * lib/unictype/categ_LC.c: New file.
6092         * lib/unictype/categ_LC.h: New file, automatically generated.
6093         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6094         category LC.
6095         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6096         * modules/unictype/category-LC: New file.
6097         * modules/unictype/category-byname (Depends-on): Add
6098         unictype/category-LC.
6099         * modules/unictype/category-all (Depends-on): Likewise.
6100
6101 2011-03-25  Eric Blake  <eblake@redhat.com>
6102
6103         xmalloc: revert yesterday's regression
6104         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6105         realloc's underlying behavior (allowing allocation of zero-size
6106         objects, especially if malloc-gnu is also in use).
6107
6108 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6109
6110         maint.mk: add missing version to VC-tag
6111         * top/maint.mk: git tag was missing actual tag name; add it.
6112
6113         valgrind: do leak checking, and exit with code 1 on error (not 0)
6114         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6115         to VALGRIND.
6116
6117 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6118
6119         posix-modules: say what it does.
6120         * posix-modules: Add a line to the --help output saying what it does.
6121
6122 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6123
6124         xmalloc: Do not leak if underlying realloc is C99 compatible.
6125         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6126         This avoids a leak on C99-based systems.  See
6127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6128
6129 2011-03-24  Eric Blake  <eblake@redhat.com>
6130
6131         realloc: document portability problem
6132         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6133         passing 0 size to realloc.
6134
6135 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6136
6137         doc: update users.txt
6138         * users.txt: Add cvsps, tmpwatch
6139
6140 2011-03-23  Matt Rice  <ratmice@gmail.com>
6141
6142         doc: update users.txt
6143         * users.txt: Add gdb.
6144
6145 2011-03-23  Jim Meyering  <meyering@redhat.com>
6146
6147         doc: update users.txt
6148         Looking through matches up to the following URL (there are still
6149         several more pages), I found several projects that use gnulib:
6150         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6151         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6152         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6153
6154 2011-03-22  Bruno Haible  <bruno@clisp.org>
6155
6156         unictype/bidi*: Rename functions.
6157         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6158         uc_bidi_class, uc_is_bidi_class): New declarations.
6159         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6160         uc_bidi_category_byname.
6161         (uc_bidi_category_byname): New function.
6162         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6163         u_bidi_category_name.
6164         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6165         (uc_bidi_category_name): New function.
6166         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6167         uc_bidi_category.
6168         (uc_bidi_category): New function.
6169         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6170         uc_is_bidi_category. Invoke uc_bidi_class.
6171         (uc_is_bidi_category): New function.
6172         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6173         instead of uc_bidi_category_byname.
6174         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6175         instead of uc_bidi_category_name.
6176         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6177         uc_bidi_category.
6178         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6179         instead of uc_is_bidi_category.
6180
6181 2011-03-21  Bruno Haible  <bruno@clisp.org>
6182
6183         New module 'unictype/joininggroup-all'.
6184         * modules/unictype/joininggroup-all: New file.
6185
6186         Tests for module 'unictype/joininggroup-of'.
6187         * modules/unictype/joininggroup-of-tests: New file.
6188         * tests/unictype/test-joininggroup_of.c: New file.
6189         * tests/unictype/test-joininggroup_of.h: New file, automatically
6190         generated by gen-uni-tables.
6191
6192         New module 'unictype/joininggroup-of'.
6193         * modules/unictype/joininggroup-of: New file.
6194         * lib/unictype/joininggroup_of.c: New file.
6195         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6196         gen-uni-tables.
6197
6198         Tests for module 'unictype/joininggroup-byname'.
6199         * modules/unictype/joininggroup-byname-tests: New file.
6200         * tests/unictype/test-joininggroup_byname.c: New file.
6201
6202         New module 'unictype/joininggroup-byname'.
6203         * modules/unictype/joininggroup-byname: New file.
6204         * lib/unictype/joininggroup_byname.c: New file.
6205         * lib/unictype/joininggroup_byname.gperf: New file.
6206
6207         Tests for module 'unictype/joininggroup-name'.
6208         * modules/unictype/joininggroup-name-tests: New file.
6209         * tests/unictype/test-joininggroup_name.c: New file.
6210
6211         New module 'unictype/joininggroup-name'.
6212         * modules/unictype/joininggroup-name: New file.
6213         * lib/unictype/joininggroup_name.c: New file.
6214         * lib/unictype/joininggroup_name.h: New file.
6215
6216         New module 'unictype/joiningtype-all'.
6217         * modules/unictype/joiningtype-all: New file.
6218
6219         Tests for module 'unictype/joiningtype-of'.
6220         * modules/unictype/joiningtype-of-tests: New file.
6221         * tests/unictype/test-joiningtype_of.c: New file.
6222         * tests/unictype/test-joiningtype_of.h: New file, automatically
6223         generated by gen-uni-tables.
6224
6225         New module 'unictype/joiningtype-of'.
6226         * modules/unictype/joiningtype-of: New file.
6227         * lib/unictype/joiningtype_of.c: New file.
6228         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6229         gen-uni-tables.
6230
6231         Tests for module 'unictype/joiningtype-byname'.
6232         * modules/unictype/joiningtype-byname-tests: New file.
6233         * tests/unictype/test-joiningtype_byname.c: New file.
6234
6235         New module 'unictype/joiningtype-byname'.
6236         * modules/unictype/joiningtype-byname: New file.
6237         * lib/unictype/joiningtype_byname.c: New file.
6238
6239         Tests for module 'unictype/joiningtype-name'.
6240         * modules/unictype/joiningtype-name-tests: New file.
6241         * tests/unictype/test-joiningtype_name.c: New file.
6242
6243         New module 'unictype/joiningtype-name'.
6244         * modules/unictype/joiningtype-name: New file.
6245         * lib/unictype/joiningtype_name.c: New file.
6246
6247         unictype: Add support for Arabic shaping properties.
6248         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6249         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6250         declarations.
6251         (UC_JOINING_GROUP_*): New enumeration values.
6252         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6253         declarations.
6254         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6255         (unicode_joining_type): New variable.
6256         (UC_JOINING_GROUP_*): New enumeration values.
6257         (unicode_joining_group): New variable.
6258         (fill_arabicshaping, joining_type_as_c_identifier,
6259         output_joining_type_test, output_joining_type,
6260         joining_group_as_c_identifier, output_joining_group_test,
6261         output_joining_group): New functions.
6262         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6263         fill_arabicshaping and output_joining_type_test, output_joining_type,
6264         output_joining_group_test, output_joining_group.
6265         Reported by Simon Josefsson.
6266
6267 2011-03-21  Jim Meyering  <meyering@redhat.com>
6268
6269         strftime: fix a bug in yesterday's change
6270         * lib/strftime.c (add): Accommodate width's initial value of -1.
6271         Otherwise, nstrftime would copy uninitialized data into
6272         the result buffer.
6273
6274 2011-03-21  Jim Meyering  <meyering@redhat.com>
6275
6276         tests: add strftime-tests module
6277         * tests/test-strftime.c: New file.
6278         * modules/strftime-tests: New module.
6279
6280 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6281
6282         strftime: don't assume a byte count fits in 'int'
6283         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6284         found this problem by static analysis, using gcc -Wstrict-overflow
6285         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6286         on an integer overflow having undefined behavior, but it turns out
6287         that the argument is a size, which might not fit in 'int' anyway,
6288
6289 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6290
6291         stdio: don't require ignore_value around fwrite
6292
6293         This patch works around libc bug 11959
6294         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6295         Without this patch, applications must often write
6296         ignore_value (fwrite (...)) even though the ignore_value is
6297         not helpful here.  It's common to write many objects, using
6298         fwrite/printf/etc., and then use ferror to detect output error.
6299
6300         I considered making this patch optional, but decided against it,
6301         because libc is obviously being inconsistent here: there is no
6302         reason libc should insist that user code must inspect fwrite
6303         return's value without also insisting that it inspect printf's,
6304         putchar's, etc.  If user code wants to have a strict style where
6305         all these functions' values are checked (so that ferror need not
6306         be checked), we could add support for that style in a new gnulib
6307         module, but in the meantime it's better to be consistent and to
6308         support common usage.
6309
6310         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6311         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6312         that we are compiling in checking mode, and if not C++, and
6313         if not already wrapping fwrite for some other reason.
6314         (fwrite): #define to rpl_fwrite if the latter is defined.
6315
6316 2011-03-20  Bruno Haible  <bruno@clisp.org>
6317
6318         verror: Fix compilation error introduced on 2011-02-13.
6319         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6320         instead of __attribute__.
6321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6322
6323 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6324             Bruno Haible  <bruno@clisp.org>
6325
6326         socklen: do not depend on sys_socket
6327         While trying to modify Emacs to use gnulib's socklen module,
6328         I discovered a circular dependency: socklen depends on sys_socket
6329         and vice versa.  Emacs can use socklen, but it does not need
6330         sys_socket because it has its own substitute for sys/socket.h.
6331         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6332         gl_TYPE_SOCKLEN_T.
6333         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6334         gl_PREREQ_SYS_H_SOCKET.
6335         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6336         gl_PREREQ_SYS_H_SOCKET.
6337         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6338         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6339         * modules/socklen (Depends-on): Do not depend on sys_socket.
6340         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6341
6342 2011-03-20  Jim Meyering  <meyering@redhat.com>
6343
6344         maint.mk: sort file names *after* new transformation
6345         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6346         prefix would have led to an unwarranted failure in GNU parted.
6347         Sort after that transformation.
6348
6349 2011-03-19  Jim Meyering  <meyering@redhat.com>
6350
6351         maint.mk: fix po-file syntax-check rule
6352         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6353         Patch by Bruno Haible.
6354
6355 2011-03-19  Bruno Haible  <bruno@clisp.org>
6356
6357         socklen: Update comment.
6358         * m4/socklen.m4: Update comment about platforms.
6359
6360 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6361             Bruno Haible  <bruno@clisp.org>
6362
6363         inet_ntop, inet_pton: Simplify.
6364         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6365         documented to provide socklen_t and we already depend on sys_socket.
6366         * modules/inet_pton (Depends-on): Likewise.
6367         * lib/arpa_inet.in.h: Adjust comment.
6368
6369 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6370             Bruno Haible  <bruno@clisp.org>
6371
6372         netdb: Simplify.
6373         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6374         documented to provide socklen_t and we already depend on sys_socket.
6375         * lib/netdb.in.h: Adjust comment.
6376
6377 2011-03-19  Bruno Haible  <bruno@clisp.org>
6378
6379         sys_socket, netdb: Document problem with socklen_t.
6380         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6381         platforms.
6382         * doc/posix-headers/netdb.texi: Likewise.
6383
6384 2011-03-18  Eric Blake  <eblake@redhat.com>
6385
6386         maint.mk: let po check work in VPATH build
6387         * top/maint.mk (po_file): Allow cfg.mk override.
6388         (sc_po_check): Allow VPATH use.
6389         Reported by Jiri Denemark.
6390
6391 2011-03-16  Jim Meyering  <meyering@redhat.com>
6392
6393         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6394         Before, you would have had to create one .x-sc_ file per rule in order
6395         to exempt offending files.  Now, you may instead use a Make variable --
6396         usually defined in cfg.mk -- whose name identifies the affected rule.
6397         * top/maint.mk (_sc_excl): Define.
6398         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6399         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6400
6401 2011-03-13  Bruno Haible  <bruno@clisp.org>
6402
6403         ignore-value tests: Avoid warnings.
6404         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6405         empty for gcc < 3.4.
6406
6407 2011-03-13  Bruno Haible  <bruno@clisp.org>
6408
6409         passfd: Fix link error on Solaris.
6410         * modules/passfd (Description): Correct.
6411         (Depends-on): Add socketlib.
6412         (Link): New section.
6413         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6414
6415 2011-03-13  Bruno Haible  <bruno@clisp.org>
6416
6417         passfd: Fix link error on AIX 5.2.
6418         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6419
6420 2011-03-13  Bruno Haible  <bruno@clisp.org>
6421
6422         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6423         * lib/sys_socket.in.h: Include <stddef.h>.
6424         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6425         CMSG_FIRSTHDR. Remove unused variable.
6426
6427 2011-03-13  Bruno Haible  <bruno@clisp.org>
6428
6429         passfd: Fix compilation error on OpenBSD.
6430         * lib/passfd.c: Include <sys/uio.h>.
6431
6432 2011-03-13  Bruno Haible  <bruno@clisp.org>
6433
6434         passfd test: Fix warnings.
6435         * tests/test-passfd.c: Include <sys/wait.h>.
6436         (main): Fix typo.
6437
6438 2011-03-13  Bruno Haible  <bruno@clisp.org>
6439
6440         passfd module, part 4, tweaks.
6441         * tests/test-passfd.c: Reorder includes.
6442         (main): Fix perror and printf calls.
6443
6444 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6445
6446         passfd module, part 4.
6447         * modules/passfd-tests: New file.
6448         * tests/test-passfd.c: New file.
6449
6450 2011-03-13  Jim Meyering  <meyering@redhat.com>
6451
6452         Makefile: rely on GNU make; derive syntax-check rule names
6453         Rather than requiring that each sc_ rule be listed as a dependent
6454         of "check", use features of GNU make to derive the list.
6455         * Makefile (syntax-check-rules): Define.
6456         (check): Depend on the new variable, not the hard-coded list.
6457
6458 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6459             Bruno Haible  <bruno@clisp.org>
6460
6461         passfd module, part 3.
6462         * lib/passfd.h (recvfd): Add a flags argument.
6463         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6464         (recvfd): Add a flags argument.
6465         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6466         exists.
6467         * modules/passfd (Depends-on): Add cloexec.
6468         Suggested by Eric Blake.
6469
6470 2011-03-13  Bruno Haible  <bruno@clisp.org>
6471
6472         passfd module, part 2, tweaks.
6473         * modules/passfd (Files): Reorder.
6474         (Depends-on): Remove errno.
6475         (Include): Remove <sys/socket.h>, <sys/un.h>.
6476         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6477         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6478         specification header. Include <sys/socket.h> always. Don't include
6479         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6480         (sendfd): Clarify that it sets errno when it fails.
6481         (recvfd): Fix specification.
6482
6483 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6484
6485         passfd module, part 2.
6486         * modules/passfd: New file.
6487         * lib/passfd.h: New file.
6488         * lib/passfd.c: New file.
6489
6490 2011-03-12  Bruno Haible  <bruno@clisp.org>
6491
6492         wcswidth, mbswidth: Avoid integer overflow.
6493         * lib/wcswidth.c: Include <limits.h>.
6494         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6495         * lib/mbswidth.c: Include <limits.h>.
6496         (mbsnwidth): Avoid 'int' overflow.
6497         Reported by Jim Meyering.
6498
6499 2011-03-12  Bruno Haible  <bruno@clisp.org>
6500
6501         futimens, utimensat: Avoid endless recursion on Solaris 10.
6502         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6503         Solaris.
6504         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6505         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6506
6507 2011-03-11  Jim Meyering  <meyering@redhat.com>
6508
6509         maint.mk: relax a regexp to accommodate other formatting styles
6510         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6511         between "ngettext" and the following "(".
6512
6513 2011-03-11  Pádraig Brady <P@draigBrady.com>
6514
6515         maint.mk: suppress a false positive warning
6516         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6517         diagnostics are marked with ngettext.
6518
6519 2011-03-10  Eric Blake  <eblake@redhat.com>
6520
6521         wchar: add explicit dependencies, for Tru64
6522         * modules/mbmemcasecoll (Depends-on): Add wchar.
6523         * modules/mbtowc (Depends-on): Likewise.
6524         * modules/vasnprintf (Depends-on): Likewise.
6525         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6526         * modules/wctomb (Depends-on): Likewise.
6527         Reported by Peter O'Gorman.
6528
6529 2011-03-08  Bruno Haible  <bruno@clisp.org>
6530
6531         passfd module, part 1, tweaks.
6532         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6533         Improve indentation. Improve AC_MSG_CHECKING messages.
6534         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6535         gl_SOCKET_FAMILIES.
6536
6537 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6538
6539         passfd module, part 1.
6540         * m4/afunix.m4: New file.
6541         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6542         sockets.
6543
6544 2011-03-08  Bruno Haible  <bruno@clisp.org>
6545
6546         regex-quote: New API.
6547         * lib/regex-quote.h: Include <stdbool.h>.
6548         (struct regex_quote_spec): New type.
6549         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6550         New declarations.
6551         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6552         'const struct regex_quote_spec *' argument.
6553         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6554         (pcre_special): New constant.
6555         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6556         New functions.
6557         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6558         'const struct regex_quote_spec *' argument.
6559         * modules/regex-quote (Depends-on): Add stdbool.
6560         * tests/test-regex-quote.c (check): Update for new API. Add test for
6561         anchored results.
6562         * NEWS: Mention the API change.
6563         Reported by Reuben Thomas and Eric Blake.
6564
6565 2011-03-06  Bruno Haible  <bruno@clisp.org>
6566
6567         regex-quote: Fix creation of POSIX extended regular expressions.
6568         * lib/regex-quote.c (ere_special): Add grouping and alternation
6569         operators.
6570
6571 2011-03-05  Bruno Haible  <bruno@clisp.org>
6572
6573         doc: Improve doc regarding autopoint vs. gnulib.
6574         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6575         disable autopoint while running autoreconf.
6576         Suggested by Ralf Wildenhues.
6577
6578 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6579
6580         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6581         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6582
6583 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6584
6585         parse-duration: remove xalloc.h dependency
6586         * lib/parse-duration.c (parse_period): handle NULL return from
6587         strdup instead of calling xstrdup().
6588         * modules/parse-duration: remove "xalloc" dependency
6589
6590 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6591
6592         bootstrap: honor m4_base when running aclocal
6593         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6594
6595 2011-03-02  Jim Meyering  <meyering@redhat.com>
6596
6597         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6598         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6599         on request from Matt Booth.
6600
6601 2011-03-01  Eric Blake  <eblake@redhat.com>
6602
6603         test-link: work on Hurd
6604         * tests/test-link.h (test_link): Hurd rejects linking directories
6605         with EISDIR instead of the POSIX-mandated EPERM.
6606
6607 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6608
6609         stdio: simplify by moving files to printf-posix, sigpipe
6610         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6611         since this symbol is needed only if printf is replaced.
6612         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6613         Require gl_ASM_SYMBOL_PREFIX.
6614         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6615         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6616         (Depends-on): Add 'raise'.
6617         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6618         * modules/stdio (Files): Remove lib/stdio-write.c,
6619         m4/asm-underscore.m4.
6620         (Depends-on): Remove 'raise'.
6621
6622         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6623         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6624         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6625         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6626
6627 2011-02-28  Bruno Haible  <bruno@clisp.org>
6628
6629         localcharset: Assume ANSI C behaviour of free().
6630         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6631         calling free().
6632         Suggested by Simon Josefsson <simon@josefsson.org>.
6633
6634 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6635             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6636             Bruno Haible  <bruno@clisp.org>  (tiny change)
6637
6638         On Cygwin, use /proc file system instead of win32 API.
6639         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6640         Win32 file names.
6641         (DllMain): Simplify by removing Cygwin specific code.
6642         (find_shared_library_fullname): Use Linux specific implementation also
6643         for Cygwin.
6644         (get_shared_library_fullname): Update accordingly.
6645         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6646         Win32 file names.
6647         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6648         Cygwin specific code.
6649
6650 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6651             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6652
6653         Fix OpenMP flag detection for various Fortran compilers.
6654         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6655         OpenMP-conditional compilation construct, to force compile
6656         failure with missing OpenMP flag.
6657         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6658
6659 2011-02-25  Eric Blake  <eblake@redhat.com>
6660
6661         strstr: expand test coverage
6662         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6663         compilation.
6664         * tests/test-memmem.c (main): Duplicate tests.
6665         * tests/test-strcasestr.c (main): Likewise.
6666         * tests/test-c-strcasestr.c (main): Likewise.
6667
6668 2011-02-25  Jim Meyering  <meyering@redhat.com>
6669
6670         maint.mk: detect missing-NL-at-EOF, too
6671         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6672         it also detects when a file lacks a newline at EOF.
6673         (require_exactly_one_NL_at_EOF_): Renamed from
6674         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6675         since people may well have .x-sc_... file names tied to the
6676         existing name.  Suggested by Eric Blake.
6677
6678 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6679
6680         dirname: move m4/dos.m4 functionality into lib/dosname.h
6681
6682         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6683         extracts symbols from it, puts them into config.h; but it's much
6684         easier to use the symbols directly.  filename.h already does this,
6685         but it disagrees with dos.m4 in some respects.  This patch
6686         introduces a different include file dosname.h that packages up
6687         dos.m4, and then later we can work on merging filename.h and
6688         dosname.h.  Applications that need only the easy-to-configure
6689         symbols should consider including dosname.h rather than dirname.h.
6690         * NEWS: Mention incompatible changes.
6691         * m4/dos.m4: Remove.
6692         * lib/dosname.h, modules/dosname: New files.
6693         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6694         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6695         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6696         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6697         Include dosname.h, not dirname.h.
6698         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6699         Include dosname.h, for definitions of symbols like ISSLASH
6700         that used to be in config.h.
6701         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6702         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6703         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6704         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6705         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6706         * modules/rmdir (Files): Likewise.
6707         * modules/stat (Files): Likewise.
6708         * modules/unlink (Files): Likewise.
6709         * modules/dirname-lgpl (Depends-on): Add dosname.
6710         * modules/lstat (Depends-on): Likewise.
6711         * modules/openat (Depends-on): Likewise.
6712         * modules/rmdir (Depends-on): Likewise.
6713         * modules/savewd (Depends-on): Likewise.
6714         * modules/stat (Depends-on): Likewise.
6715         * modules/unlink (Depends-on): Likewise.
6716         * modules/openat (Depends-on): Remove dirname-lgpl.
6717         * modules/savewd (Depends-on): Likewise.
6718         * tests/test-dirname.c: Do not use removed symbols like
6719         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6720         the remaining symbols, e.g., ISSLASH ('\\').
6721
6722 2011-02-25  Eric Blake  <eblake@redhat.com>
6723
6724         strstr: revert patches that introduced bug and pessimization
6725         * lib/str-two-way.h: Add another reference.
6726         (two_way_short_needle, two_way_long_needle): Revert changes from
6727         2011-02-24; they pessimize search speed.
6728         (critical_factorization): Partially revert changes from
6729         2010-06-22; they violate the requirement that the left half of the
6730         needle be smaller than the period of the needle.
6731
6732 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6733
6734         filenamecat: remove unnecessary dependency on dirname-lgpl
6735         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6736         is no direct dependency, just an indirect one via filenamecat-lgpl.
6737
6738         remove: remove unnecessary use of m4/dos.m4
6739         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6740         * modules/remove (FILES): Remove m4/dos.m4.
6741
6742         * lib/openat-proc.c: Don't include dirname.h; not needed.
6743
6744         backupfile: remove unnecessary use of m4/dos.m4
6745         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6746         of its symbols are used by the backupfile code.  backupfile.c does
6747         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6748         for the rare case of programs that want all their backup file
6749         names to live within 8+3 limits, and dos.m4 doesn't address that.
6750         * modules/backupfile (Files): Remove m4/dos.m4.
6751
6752 2011-02-24  Jim Meyering  <meyering@redhat.com>
6753
6754         strstr: fix a bug whereby strstr would mistakenly return NULL
6755         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6756         in period calculation.
6757         (two_way_long_needle): Likewise.
6758         The original problem was reported by Mike Stump in
6759         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6760         Ralf Wildenhues provided the short needle and haystack.
6761         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6762         Add a more involved test to trigger the bug in two_way_long_needle.
6763
6764 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6765
6766         gnulib-tool: remove use of bold display in help screen
6767         * gnulib-tool (func_usage): Do not use bold display anymore in the
6768         help screen.  That was just meant to be a temporary emphasis for a
6769         backward-incompatible change.
6770
6771 2011-02-23  Bruno Haible  <bruno@clisp.org>
6772
6773         Fix misindentation of preprocessor directives.
6774         * lib/argp-namefrob.h: Reindent preprocessor directives.
6775         * lib/getopt_int.h (struct _getopt_data): Likewise.
6776         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6777         * lib/vasnprintf.c (decode_long_double): Likewise.
6778         * tests/test-argmatch.c: Insert blank lines, for clarity.
6779         * tests/test-exclude.c: Likewise.
6780
6781 2011-02-22  Bruno Haible  <bruno@clisp.org>
6782
6783         ioctl: Fix for MacOS X in 64-bit mode.
6784         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6785         value.
6786         Suggested by Eric Blake.
6787         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6788
6789 2011-02-22  Jim Meyering  <meyering@redhat.com>
6790
6791         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6792         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6793         in lib/.
6794
6795 2011-02-22  Eric Blake  <eblake@redhat.com>
6796
6797         maint: avoid any CDPATH issue
6798         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6799
6800         maint: adjust cpp indentation for my modules, as well
6801         * Makefile (sc_cpp_indent_check): Add my name.
6802         * lib/fbufmode.c: Filter through cppi.
6803         * lib/fpurge.c: Likewise.
6804         * lib/freadable.c: Likewise.
6805         * lib/freading.c: Likewise.
6806         * lib/fwritable.c: Likewise.
6807         * lib/fwriting.c: Likewise.
6808         * lib/sigaction.c: Likewise.
6809
6810 2011-02-22  Jim Meyering  <meyering@redhat.com>
6811
6812         maint: adjust cpp indentation to reflect nesting depth
6813         I.e., in a block of code that begins with an unnested "#if",
6814         put one space between the "#" in column 1 and following token.
6815         For example,
6816         -#include <sys/vfs.h>
6817         +# include <sys/vfs.h>
6818         Do this only in .c files that are part of a module I maintain.
6819         * lib/linkat.c: Filter through cppi.
6820         * lib/nanosleep.c: Likewise.
6821         * lib/openat.c: Likewise.
6822         * lib/openat-die.c: Likewise.
6823         * lib/dup3.c: Likewise.
6824         * lib/fchownat.c: Likewise.
6825         * lib/flock.c: Likewise.
6826         * lib/fsync.c: Likewise.
6827         * lib/fts.c: Likewise.
6828         * lib/getpass.c: Likewise.
6829         * lib/gettimeofday.c: Likewise.
6830         * lib/userspec.c: Likewise.
6831         * Makefile (sc_cpp_indent_check): New rule, to check this.
6832
6833 2011-02-22  Bruno Haible  <bruno@clisp.org>
6834
6835         New module 'wctomb'.
6836         * lib/stdlib.in.h (wctomb): New declaration.
6837         * lib/wctomb.c: New file.
6838         * lib/wctomb-impl.h: New file.
6839         * m4/wctomb.m4: New file.
6840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6841         REPLACE_WCTOMB.
6842         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6843         REPLACE_WCTOMB.
6844         * modules/wctomb: New file.
6845         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6846         * doc/posix-functions/wctomb.texi: Mention the new module.
6847         * modules/wctob (Depends-on): Add wctomb.
6848
6849 2011-02-22  Bruno Haible  <bruno@clisp.org>
6850
6851         New module 'mbtowc'.
6852         * lib/stdlib.in.h (mbtowc): New declaration.
6853         * lib/mbtowc.c: New file.
6854         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6855         * m4/mbtowc.m4: New file.
6856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6857         REPLACE_MBTOWC.
6858         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6859         REPLACE_MBTOWC.
6860         * modules/mbtowc: New file.
6861         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6862         * doc/posix-functions/mbtowc.texi: Mention the new module.
6863         * modules/btowc (Depends-on): Add mbtowc.
6864
6865 2011-02-22  Bruno Haible  <bruno@clisp.org>
6866
6867         wcrtomb: Add more tests for native Windows platforms.
6868         * tests/test-wcrtomb-w32-1.sh: New file.
6869         * tests/test-wcrtomb-w32-2.sh: New file.
6870         * tests/test-wcrtomb-w32-3.sh: New file.
6871         * tests/test-wcrtomb-w32-4.sh: New file.
6872         * tests/test-wcrtomb-w32-5.sh: New file.
6873         * tests/test-wcrtomb-w32.c: New file.
6874         * modules/wcrtomb-tests (Files): Add them.
6875         (Makefile.am): Arrange to run these tests.
6876         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6877         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6878
6879 2011-02-20  Bruno Haible  <bruno@clisp.org>
6880
6881         wcrtomb: Enhance test.
6882         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6883
6884 2011-02-20  Bruno Haible  <bruno@clisp.org>
6885
6886         mbrtowc: Tiny optimization.
6887         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6888
6889 2011-02-20  Jim Meyering  <meyering@redhat.com>
6890
6891         test-exclude.c: remove unmatched #endif
6892         * tests/test-exclude.c: Remove stray #endif, left over from
6893         the change of a week ago.
6894
6895 2011-02-19  Jim Meyering  <meyering@redhat.com>
6896
6897         git-version-gen: skip "-dirty" check when appropriate
6898         * build-aux/git-version-gen: Don't run any git commands when the
6899         version string comes from .tarball-version.  Prior to this, we
6900         would run git update-index --refresh even from a just-unpacked
6901         tarball directory, and that could affect a .git/ directory in a
6902         parent of the build directory.  Reported by Mike Frysinger.
6903
6904 2011-02-19  Bruno Haible  <bruno@clisp.org>
6905
6906         unictype/property-byname: Reduce the size of the 'data' segment.
6907         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6908
6909 2011-02-19  Bruno Haible  <bruno@clisp.org>
6910
6911         unictype/scripts: Reduce the size of the 'data' segment.
6912         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6913         '%pic'.
6914         * lib/unictype/scripts_byname.gperf: Regenerated.
6915
6916 2011-02-19  Bruno Haible  <bruno@clisp.org>
6917
6918         stdint: Update documentation.
6919         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6920
6921 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6922
6923         stdint: omit redundant check for wchar.h
6924         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6925         always tests whether wchar.h exists, so remove the now-redundant test.
6926
6927 2011-02-18  Bruno Haible  <bruno@clisp.org>
6928
6929         stdint: Cut dependency to module 'wchar'.
6930         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6931         include the necessary prerequisites.
6932         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6933         * modules/stdint (Depends-on): Remove wchar.
6934         (Makefile.am): Substitute HAVE_WCHAR_H.
6935         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6936
6937 2011-02-18  Eric Blake  <eblake@redhat.com>
6938
6939         longlong: skip, rather than fail, on cross-compilation
6940         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6941         when cross-compiling; regression from 2011-02-16.
6942
6943 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6944
6945         * NEWS: Mention 2011-02-08 change to stdlib.
6946
6947 2011-02-17  Bruno Haible  <bruno@clisp.org>
6948
6949         getloadavg: Add comments about platforms.
6950         * m4/getloadavg.m4: Add comment.
6951         * lib/getloadavg.c: Likewise.
6952
6953 2011-02-17  Bruno Haible  <bruno@clisp.org>
6954
6955         getloadavg: Fix link error on Solaris 2.6.
6956         * modules/getloadavg (Link): New section.
6957         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6958         linking test-getloadavg.
6959         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6960         getloadavg.
6961
6962 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6963
6964         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6965         It was 'int', but this doesn't match the IRIX 6.5 manual.
6966         Suggested by Bruno Haible in
6967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6968
6969 2011-02-17  Bruno Haible  <bruno@clisp.org>
6970
6971         havelib: Fix comments.
6972         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6973         change.
6974
6975 2011-02-17  Bruno Haible  <bruno@clisp.org>
6976
6977         havelib: Update config.rpath.
6978         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6979
6980 2011-02-17  Bruno Haible  <bruno@clisp.org>
6981
6982         getloadavg test: Add some plausibility checks.
6983         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6984         is improbable.
6985
6986 2011-02-16  Eric Blake  <eblake@redhat.com>
6987
6988         maintainer-makefile: make syntax-check a no-op from tarballs
6989         * top/maint.mk (no-vc-detected): New rule.
6990         (local-checks-available): Use it to avoid hanging if someone tries
6991         'make syntax-check' from a tarball.  Also append to any non-syntax
6992         checks already defined in cfg.mk.
6993
6994 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6995
6996         longlong: tune, particularly for common case of c99
6997
6998         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6999         or running anything if c99, or if unsigned long long int does not
7000         work.  In either case, we know the answer without further tests.
7001         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7002         it at most once, and use its results for both long long int and
7003         unsigned long long int.  This is more likely to be efficient in
7004         the common case where the program wants to check for both long
7005         long int and unsigned long long int.
7006         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7007         since the answer is already known.
7008
7009 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7010
7011         getloadavg: set errno
7012         * lib/getloadavg.c: Set errno when returning -1.  If no other
7013         error number looks appropriate, set it to ENOSYS if the getloadavg
7014         looks like it can't possibly ever work, ENOTSUP otherwise.
7015         Suggested by Bruno Haible in
7016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7017
7018         getloadavg: trim unused parts and speed up 'configure'
7019         * NEWS: Document this.
7020         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7021         always compiled if getloadavg is absent.
7022         Move test code to ...
7023         * tests/test-getloadavg.c: New file, containing previous
7024         contents of test from lib/getloadavg.c.  It also contains
7025         suggestions by Bruno Haible in
7026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7027         * modules/getloadavg-tests: New file.
7028         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7029         Do tests in the same order as they're needed for getloadavg.c.
7030         Omit setgid-related tests that generate symbols KMEM_GROUP,
7031         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7032         Do only the tests that are needed to see whether the system has
7033         getloadavg, moving the other tests into ...
7034         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7035         NLIST_NAME_UNION; nobody should be using it.  Do not define
7036         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7037         relevant, as the user of this module shouldn't care how getloadavg
7038         is implemented.
7039
7040         getloadavg: omit unused var
7041         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7042
7043 2011-02-15  Jim Meyering  <meyering@redhat.com>
7044
7045         doc: update users.txt
7046         * users.txt: Update iwhd's URL.
7047
7048 2011-02-13  Bruno Haible  <bruno@clisp.org>
7049
7050         Consistent macro naming for macros that use GCC __attribute__.
7051         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7052         _ATTRIBUTE_NONNULL_.
7053         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7054         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7055         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7056         ATTRIBUTE_DEPRECATED.
7057         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7058         ATTRIBUTE_NORETURN.
7059         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7060         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7061         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7062         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7063         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7064         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7065         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7066         ATTRIBUTE_SENTINEL.
7067         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7068         ATTRIBUTE_RETURN_CHECK.
7069         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7070         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7071         ATTRIBUTE_NORETURN.
7072         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7073         Reported by Paul Eggert.
7074
7075 2011-02-13  Bruno Haible  <bruno@clisp.org>
7076
7077         Don't interfere with a program's definition of __attribute__.
7078         * lib/argp.h (__attribute__): Remove definition.
7079         (_GL_ATTRIBUTE_FORMAT): New macro.
7080         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7081         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7082         (_GL_ATTRIBUTE_FORMAT): New macro.
7083         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7084         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7085         GCC 3 or newer.
7086         * lib/error.h (__attribute__): Remove definition.
7087         (_GL_ATTRIBUTE_FORMAT): New macro.
7088         (error, error_at_line): Use it.
7089         * lib/hash.h (__attribute__): Remove definition.
7090         (ATTRIBUTE_WUR): Update definition. Define always.
7091         * lib/openat.h (__attribute__): Remove definition.
7092         (ATTRIBUTE_NORETURN): Update definition. Define always.
7093         * lib/sigpipe-die.h (__attribute__): Remove definition.
7094         (ATTRIBUTE_NORETURN): Update definition. Define always.
7095         * lib/vasnprintf.h (__attribute__): Remove definition.
7096         (_GL_ATTRIBUTE_FORMAT): New macro.
7097         (asnprintf, vasnprintf): Use it.
7098         * lib/xalloc.h (__attribute__): Remove definition.
7099         (ATTRIBUTE_NORETURN): Update definition. Define always.
7100         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7101         * lib/xmemdup0.h (__attribute__): Remove definition.
7102         (ATTRIBUTE_NORETURN): Update definition. Define always.
7103         * lib/xprintf.h (__attribute__): Remove definition.
7104         (_GL_ATTRIBUTE_FORMAT): New macro.
7105         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7106         * lib/xstrtol.h (__attribute__): Remove definition.
7107         (ATTRIBUTE_NORETURN): Update definition. Define always.
7108         * lib/xvasprintf.h (__attribute__): Remove definition.
7109         (_GL_ATTRIBUTE_FORMAT): New macro.
7110         (xasprintf, xvasprintf): Use it.
7111         * tests/test-argmatch.c (__attribute__): Remove definition.
7112         (ATTRIBUTE_NORETURN): Update definition. Define always.
7113         * tests/test-exclude.c (__attribute__): Remove definition.
7114         (ATTRIBUTE_NORETURN): Update definition. Define always.
7115         Reported by Paul Eggert.
7116
7117 2011-02-13  Bruno Haible  <bruno@clisp.org>
7118
7119         mbrtowc: Add more tests for native Windows platforms.
7120         * tests/test-mbrtowc-w32-1.sh: New file.
7121         * tests/test-mbrtowc-w32-2.sh: New file.
7122         * tests/test-mbrtowc-w32-3.sh: New file.
7123         * tests/test-mbrtowc-w32-4.sh: New file.
7124         * tests/test-mbrtowc-w32-5.sh: New file.
7125         * tests/test-mbrtowc-w32.c: New file.
7126         * modules/mbrtowc-tests (Files): Add them.
7127         (Makefile.am): Arrange to run these tests.
7128         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7129         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7130
7131 2011-02-13  Bruno Haible  <bruno@clisp.org>
7132
7133         mbrtowc: Work around native Windows bug.
7134         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7135         guess when no suitable locale for testing was found.
7136         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7137
7138 2011-02-13  Bruno Haible  <bruno@clisp.org>
7139
7140         mbsinit: Work around mingw bug.
7141         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7142         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7143         Windows.
7144         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7145
7146 2011-02-13  Bruno Haible  <bruno@clisp.org>
7147
7148         mbsinit: Don't crash for a NULL argument.
7149         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7150         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7151
7152 2011-02-13  Bruno Haible  <bruno@clisp.org>
7153
7154         Don't interfere with a program's definition of __attribute__.
7155         * lib/stdio.in.h (__attribute__): Remove definition.
7156         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7157         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7158         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7159         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7160         * lib/string.in.h (__attribute__): Remove definition.
7161         Reported by Paul Eggert.
7162
7163 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7164
7165         stdlib: don't get in the way of non-GCC __attribute__
7166         See thread starting at
7167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7168         Revert previous stdlib change, installing the following instead:
7169         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7170         to get in the way of a non-GCC compiler that supports __attribute__.
7171         (_GL_ATTRIBUTE_RETURN): New macro.
7172         (_Exit): Use it instead of __attribute__.
7173
7174 2011-02-12  Bruno Haible  <bruno@clisp.org>
7175
7176         quotearg test: Avoid test failure on mingw.
7177         * tests/test-quotearg.sh: Convert the locale identifier from native
7178         Windows syntax to Unix syntax.
7179
7180 2011-02-12  Bruno Haible  <bruno@clisp.org>
7181
7182         setlocale: Prefer gnulib's override over libintl's override.
7183         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7184         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7185         GNULIB_defined_setlocale is set.
7186
7187 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7188
7189         stdlib: support non-GCC __attribute__
7190
7191         Fix a serious and tricky problem encountered when attempting to
7192         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7193         5.5, but it crashed due to memory corruption on Solaris 10 with
7194         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7195         bits that are otherwise zero.  This tagging is optional inside
7196         Emacs but is preferred and is used when __attribute__ ((__aligned
7197         (8))) works, as it does with both recent-enough GCC and with Sun C
7198         5.11.  However, Sun C 5.11 is not GCC and does not #define
7199         __GNUC__ and __GNUC_MINOR__.
7200
7201         When I added the getloadavg module to Emacs, it brought in
7202         stdlib.in.h, which contained this fragment:
7203
7204            #ifndef __attribute__
7205            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7206            #  define __attribute__(Spec)   /* empty */
7207            # endif
7208            #endif
7209
7210         When files that include <stdlib.h> were compiled with Sun C 5.11,
7211         the above code disabled __attribute__ ((__aligned (8))), which
7212         caused variables to not be properly aligned, which eventually led
7213         to the pointer corruption mentioned above.  (This was a bit hard
7214         to diagnose, unfortunately.)
7215
7216         Several "#define __attribute__(X) /* empty */" code snippets need
7217         to be eradicated from Gnulib to work with non-GCC compilers that
7218         support __attribute__.  The Autoconf way to do this is to test for
7219         each kind of attribute that we want support for, and selectively
7220         enable that in source code.
7221
7222         Fix this problem just for stdlib.h, by adding a test for the
7223         __noreturn__ attribute, and change stdlib.in.h to use that test
7224         when needed.  This technique can be easily generalized to the
7225         other *.in.h files and attributes, and a similar technique can be
7226         used for *.h and *.c files.  This patch is enough to solve the
7227         problem for Emacs + getloadavg, and I thought I'd publish it for
7228         feedback before undertaking further, similar fixes in other
7229         modules.
7230
7231         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7232         because it's not needed for stdlib.h.  It merely substitutes the
7233         value directly into stdlib.h.  We may well need to #define it, or
7234         similar symbols, for other modules, but it's nice to also have an
7235         option to not #define it for applications like Emacs that do not
7236         need it.
7237
7238         * lib/stdlib.in.h (__attribute__): Do not #define.
7239         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7240         be defined only if the _Exit module is also used.
7241         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7243         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7244         platforms.
7245         * modules/_Exit (Files): Add m4/attribute.m4.
7246         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7247         * m4/attribute.m4: New file.
7248
7249 2011-02-12  Bruno Haible  <bruno@clisp.org>
7250
7251         wcsrtombs: Work around bug on native Windows.
7252         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7253         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7254         instead of len.
7255         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7256
7257 2011-02-12  Bruno Haible  <bruno@clisp.org>
7258
7259         mbsrtowcs: Work around bug on native Windows.
7260         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7261         against mingw bug.
7262         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7263
7264 2011-02-12  Bruno Haible  <bruno@clisp.org>
7265
7266         Avoid setlocale bugs in tests.
7267         * modules/btowc (Dependencies): Add setlocale.
7268         * modules/c-strcase (Dependencies): Likewise.
7269         * modules/mbmemcasecmp (Dependencies): Likewise.
7270         * modules/mbmemcasecoll (Dependencies): Likewise.
7271         * modules/mbrtowc (Dependencies): Likewise.
7272         * modules/mbscasecmp (Dependencies): Likewise.
7273         * modules/mbscasestr (Dependencies): Likewise.
7274         * modules/mbschr (Dependencies): Likewise.
7275         * modules/mbscspn (Dependencies): Likewise.
7276         * modules/mbsinit (Dependencies): Likewise.
7277         * modules/mbsncasecmp (Dependencies): Likewise.
7278         * modules/mbsnrtowcs (Dependencies): Likewise.
7279         * modules/mbspbrk (Dependencies): Likewise.
7280         * modules/mbspcasecmp (Dependencies): Likewise.
7281         * modules/mbsrchr (Dependencies): Likewise.
7282         * modules/mbsrtowcs (Dependencies): Likewise.
7283         * modules/mbsspn (Dependencies): Likewise.
7284         * modules/mbsstr (Dependencies): Likewise.
7285         * modules/nl_langinfo (Dependencies): Likewise.
7286         * modules/quotearg (Dependencies): Likewise.
7287         * modules/unicase/locale-language (Dependencies): Likewise.
7288         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7289         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7290         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7291         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7292         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7293         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7294         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7295         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7296         * modules/vasnprintf-posix (Dependencies): Likewise.
7297         * modules/wcrtomb (Dependencies): Likewise.
7298         * modules/wcsnrtombs (Dependencies): Likewise.
7299         * modules/wcsrtombs (Dependencies): Likewise.
7300
7301 2011-02-12  Bruno Haible  <bruno@clisp.org>
7302
7303         setlocale: Workaround native Windows bug.
7304         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7305         succeeds but sets LC_CTYPE to "C", report a failure.
7306         * tests/test-setlocale2.sh: New file.
7307         * tests/test-setlocale2.c: New file.
7308         * modules/setlocale-tests (Files): Add the new files.
7309         (Makefile.am): Enable test-setlocale2.sh test.
7310         * doc/posix-functions/setlocale.texi: Mention workaround.
7311
7312 2011-02-11  Bruno Haible  <bruno@clisp.org>
7313
7314         Tests for module 'setlocale'.
7315         * modules/setlocale-tests: New file.
7316         * tests/test-setlocale1.sh: New file.
7317         * tests/test-setlocale1.c: New file.
7318
7319         New module 'setlocale'.
7320         * lib/locale.in.h (setlocale): New declaration.
7321         * lib/setlocale.c: New file, based on
7322         gettext/gettext-runtime/intl/setlocale.c.
7323         * m4/setlocale.m4: New file.
7324         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7325         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7326         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7327         REPLACE_SETLOCALE.
7328         * modules/setlocale: New file.
7329         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7330         * doc/posix-functions/setlocale.texi: Mention the new module.
7331
7332 2011-02-11  Bruno Haible  <bruno@clisp.org>
7333
7334         Prepare for locale dependent tests on mingw.
7335         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7336         because it has the wrong locale encoding.
7337         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7338         French_France.1252 instead of "fr".
7339         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7340         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7341         because it has the wrong locale encoding.
7342         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7343         native Windows, try Turkish_Turkey.65001.
7344         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7345         Chinese_China.54936.
7346
7347         Prepare for locale dependent tests on mingw.
7348         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7349         differently.
7350         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7351         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7352         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7353         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7354
7355 2011-02-11  Eric Blake  <eblake@redhat.com>
7356
7357         strptime: avoid compiler warnings
7358         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7359         compiler warnings about dead code.
7360         Reported by Daniel P. Berrange.
7361
7362 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7363
7364         doc: update users.txt
7365         * users.txt: Add rcs.
7366
7367 2011-02-10  John W. Eaton  <jwe@gnu.org>
7368
7369         doc: update users.txt
7370         * users.txt: Add octave.
7371
7372 2011-02-10  Jim Meyering  <meyering@redhat.com>
7373
7374         doc: update users.txt
7375         * users.txt: Add iwhd.
7376
7377 2011-02-09  Bruno Haible  <bruno@clisp.org>
7378
7379         gnulib-tool: Make copyright notice adjustment more robust.
7380         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7381         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7382         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7383         License".
7384         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7385
7386 2011-02-06  Bruno Haible  <bruno@clisp.org>
7387
7388         New module 'towctrans'.
7389         * modules/towctrans: New file.
7390         * lib/wctype.in.h (towctrans): New declaration.
7391         * lib/towctrans.c: New file.
7392         * lib/towctrans-impl.h: New file.
7393         * m4/towctrans.m4: New file.
7394         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7395         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7396         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7397         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7398         * doc/posix-functions/towctrans.texi: Mention the new module.
7399
7400 2011-02-06  Bruno Haible  <bruno@clisp.org>
7401
7402         New module 'wctrans'.
7403         * modules/wctrans: New file.
7404         * lib/wctype.in.h (wctrans): New declaration.
7405         * lib/wctrans.c: New file.
7406         * lib/wctrans-impl.h: New file.
7407         * m4/wctrans.m4: New file.
7408         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7409         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7410         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7411         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7412         * doc/posix-functions/wctrans.texi: Mention the new module.
7413
7414 2011-02-06  Bruno Haible  <bruno@clisp.org>
7415
7416         New module 'iswctype'.
7417         * modules/iswctype: New file.
7418         * lib/wctype.in.h (iswctype): New declaration.
7419         * lib/iswctype.c: New file.
7420         * lib/iswctype-impl.h: New file.
7421         * m4/iswctype.m4: New file.
7422         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7423         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7424         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7425         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7426         * doc/posix-functions/iswctype.texi: Mention the new module and the
7427         HP-UX 11.00 problem.
7428
7429 2011-02-06  Bruno Haible  <bruno@clisp.org>
7430
7431         New module 'wctype'.
7432         * modules/wctype: Change to represent the wctype() substitute.
7433         * lib/wctype.in.h (wctype): New declaration.
7434         * lib/wctype.c: New file.
7435         * lib/wctype-impl.h: New file.
7436         * m4/wctype.m4: New file.
7437         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7438         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7439         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7440         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7441         * doc/posix-functions/wctype.texi: Mention the new module and the
7442         HP-UX 11.00 problem.
7443
7444 2011-02-06  Bruno Haible  <bruno@clisp.org>
7445
7446         wctype-h: Ensure wctype_t and wctrans_t are defined.
7447         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7448         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7449         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7450         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7451         HAVE_WCTRANS_T.
7452         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7453
7454 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7455
7456         flock: fix license typo
7457
7458         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7459         omitted.
7460
7461 2011-02-08  Bruno Haible  <bruno@clisp.org>
7462
7463         Split large sed scripts, for HP-UX sed.
7464         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7465         to avoid HP-UX limit of 99 commands, in the near future.
7466         * modules/stdlib (Makefile.am): Likewise.
7467         * modules/unistd (Makefile.am): Likewise.
7468         * modules/wchar (Makefile.am): Likewise.
7469         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7470         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7471         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7472
7473 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7474             Bruno Haible  <bruno@clisp.org>
7475
7476         stdlib: improve random_r modularization
7477         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7478         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7479         you also need the random_r module to get this material right.
7480         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7481         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7482         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7483
7484 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7485
7486         stdlib: don't depend on stdint
7487         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7488         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7489         be independent of whether stdint.h is needed.
7490         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7491         here, instead of ...
7492         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7493         struct random_data should be using the random_r module, not just
7494         the stdlib module (which wouldn't make sense: what package needs
7495         just struct random_data without also needing random_r?).
7496         * modules/stdlib (Depends-on): Remove stdint.
7497
7498         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7499         See the thread rooted at
7500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7501         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7502         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7503         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7504         __VMS)); previously it was always included (via fcntl--.h).
7505         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7506         hand; this is good enough for load averages.  Also, do not use
7507         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7508         flags directly if available and don't bother otherwise.  (Packages
7509         that need the extra reliability should use the modules that define
7510         these flags on older platforms that lack them.)
7511         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7512         fcntl-safer.
7513
7514 2011-02-08  Jim Meyering  <meyering@redhat.com>
7515
7516         di-set.h, ino-map.h: add multiple-inclusion guard
7517         Technically, the guard is required only for ino-map.h, due to its
7518         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7519         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7520         * lib/ino-map.h: Likewise.
7521
7522 2011-02-06  Bruno Haible  <bruno@clisp.org>
7523
7524         iswblank: Ensure declaration on glibc systems.
7525         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7526         * modules/iswblank (Dependencies): Add 'extensions'.
7527         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7528
7529 2011-02-06  Bruno Haible  <bruno@clisp.org>
7530
7531         New module 'iswblank'.
7532         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7533         * modules/iswblank: New file.
7534         * modules/wctype-h (Files): Remove lib/iswblank.c.
7535         (Makefile.am): Substitute GNULIB_ISWBLANK.
7536         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7537         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7538         (gl_WCTYPE_H_DEFAULTS): New macro.
7539         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7540         * modules/iswblank-tests: New file.
7541         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7542         * tests/test-wctype-h.c (main): Remove iswblank tests.
7543         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7544         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7545         of 'wctype-h'.
7546         * NEWS: Mention the change.
7547         * modules/mbchar (Depends-on): Add iswblank.
7548
7549 2011-02-08  Bruno Haible  <bruno@clisp.org>
7550
7551         di-set tests: Refactor.
7552         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7553         unnecessary includes.
7554         (ASSERT): Remove macro.
7555         (main): Make C90 compliant by avoiding variable declaration after
7556         statement.
7557         * modules/di-set-tests (Files): Add tests/macros.h.
7558
7559 2011-02-08  Bruno Haible  <bruno@clisp.org>
7560
7561         ino-map tests: Refactor.
7562         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7563         unnecessary includes.
7564         (ASSERT): Remove macro.
7565         (main): Make C90 compliant by avoiding variable declaration after
7566         statement.
7567         * modules/ino-map-tests (Files): Add tests/macros.h.
7568
7569 2011-02-08  Jim Meyering  <meyering@redhat.com>
7570
7571         di-set: add "const" to a cast
7572         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7573         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7574
7575 2011-02-06  Bruno Haible  <bruno@clisp.org>
7576
7577         Rename module 'wctype' to 'wctype-h'.
7578         * modules/wctype-h: Renamed from modules/wctype.
7579         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7580         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7581         (Files, Depends-on, Makefile.am): Update.
7582         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7583         (Files, Makefile.am): Update.
7584         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7585         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7586         * doc/posix-headers/wctype.texi: Update.
7587         * doc/posix-functions/iswalnum.texi: Update.
7588         * doc/posix-functions/iswalpha.texi: Update.
7589         * doc/posix-functions/iswblank.texi: Update.
7590         * doc/posix-functions/iswcntrl.texi: Update.
7591         * doc/posix-functions/iswdigit.texi: Update.
7592         * doc/posix-functions/iswgraph.texi: Update.
7593         * doc/posix-functions/iswlower.texi: Update.
7594         * doc/posix-functions/iswprint.texi: Update.
7595         * doc/posix-functions/iswpunct.texi: Update.
7596         * doc/posix-functions/iswspace.texi: Update.
7597         * doc/posix-functions/iswupper.texi: Update.
7598         * doc/posix-functions/iswxdigit.texi: Update.
7599         * doc/posix-functions/towlower.texi: Update.
7600         * doc/posix-functions/towupper.texi: Update.
7601         * NEWS: Mention the change.
7602         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7603         * modules/mbchar (Dependencies): Likewise.
7604         * modules/mbswidth (Dependencies): Likewise.
7605         * modules/quotearg (Dependencies): Likewise.
7606         * modules/regex (Dependencies): Likewise.
7607         * modules/wcscasecmp (Dependencies): Likewise.
7608         * modules/wcsncasecmp (Dependencies): Likewise.
7609         * modules/wcwidth (Dependencies): Likewise.
7610
7611 2011-02-06  Bruno Haible  <bruno@clisp.org>
7612
7613         New module 'wcswidth'.
7614         * modules/wcswidth: New file.
7615         * lib/wchar.in.h (wcswidth): New declaration.
7616         * lib/wcswidth.c: New file.
7617         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7618         * m4/wcswidth.m4: New file.
7619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7621         REPLACE_WCSWIDTH.
7622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7623         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7624         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7625         * doc/posix-functions/wcswidth.texi: Mention the new module.
7626
7627 2011-02-06  Bruno Haible  <bruno@clisp.org>
7628
7629         New module 'wcstok'.
7630         * modules/wcstok: New file.
7631         * lib/wchar.in.h (wcstok): New declaration.
7632         * lib/wcstok.c: New file.
7633         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7634         * m4/wcstok.m4: New file.
7635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7638         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7639         * doc/posix-functions/wcstok.texi: Mention the new module.
7640
7641 2011-02-06  Bruno Haible  <bruno@clisp.org>
7642
7643         New module 'wcsstr'.
7644         * modules/wcsstr: New file.
7645         * lib/wchar.in.h (wcsstr): New declaration.
7646         * lib/wcsstr.c: New file.
7647         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7648         * m4/wcsstr.m4: New file.
7649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7652         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7653         * doc/posix-functions/wcsstr.texi: Mention the new module.
7654
7655 2011-02-06  Bruno Haible  <bruno@clisp.org>
7656
7657         New module 'wcspbrk'.
7658         * modules/wcspbrk: New file.
7659         * lib/wchar.in.h (wcspbrk): New declaration.
7660         * lib/wcspbrk.c: New file.
7661         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7662         * m4/wcspbrk.m4: New file.
7663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7666         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7667         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7668
7669 2011-02-06  Bruno Haible  <bruno@clisp.org>
7670
7671         New module 'wcsspn'.
7672         * modules/wcsspn: New file.
7673         * lib/wchar.in.h (wcsspn): New declaration.
7674         * lib/wcsspn.c: New file.
7675         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7676         * m4/wcsspn.m4: New file.
7677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7680         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7681         * doc/posix-functions/wcsspn.texi: Mention the new module.
7682
7683 2011-02-06  Bruno Haible  <bruno@clisp.org>
7684
7685         New module 'wcscspn'.
7686         * modules/wcscspn: New file.
7687         * lib/wchar.in.h (wcscspn): New declaration.
7688         * lib/wcscspn.c: New file.
7689         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7690         * m4/wcscspn.m4: New file.
7691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7694         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7695         * doc/posix-functions/wcscspn.texi: Mention the new module.
7696
7697 2011-02-06  Bruno Haible  <bruno@clisp.org>
7698
7699         New module 'wcsrchr'.
7700         * modules/wcsrchr: New file.
7701         * lib/wchar.in.h (wcsrchr): New declaration.
7702         * lib/wcsrchr.c: New file.
7703         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7704         * m4/wcsrchr.m4: New file.
7705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7708         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7709         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7710
7711 2011-02-06  Bruno Haible  <bruno@clisp.org>
7712
7713         New module 'wcschr'.
7714         * modules/wcschr: New file.
7715         * lib/wchar.in.h (wcschr): New declaration.
7716         * lib/wcschr.c: New file.
7717         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7718         * m4/wcschr.m4: New file.
7719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7722         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7723         * doc/posix-functions/wcschr.texi: Mention the new module.
7724
7725 2011-02-06  Bruno Haible  <bruno@clisp.org>
7726
7727         New module 'wcsdup'.
7728         * modules/wcsdup: New file.
7729         * lib/wchar.in.h (wcsdup): New declaration.
7730         * lib/wcsdup.c: New file.
7731         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7732         * m4/wcsdup.m4: New file.
7733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7736         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7737         * doc/posix-functions/wcsdup.texi: Mention the new module.
7738
7739 2011-02-06  Bruno Haible  <bruno@clisp.org>
7740
7741         New module 'wcsxfrm'.
7742         * modules/wcsxfrm: New file.
7743         * lib/wchar.in.h (wcsxfrm): New declaration.
7744         * lib/wcsxfrm.c: New file.
7745         * lib/wcsxfrm-impl.h: New file.
7746         * m4/wcsxfrm.m4: New file.
7747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7750         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7751         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7752
7753 2011-02-06  Bruno Haible  <bruno@clisp.org>
7754
7755         New module 'wcscoll'.
7756         * modules/wcscoll: New file.
7757         * lib/wchar.in.h (wcscoll): New declaration.
7758         * lib/wcscoll.c: New file.
7759         * lib/wcscoll-impl.h: New file.
7760         * m4/wcscoll.m4: New file.
7761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7764         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7765         * doc/posix-functions/wcscoll.texi: Mention the new module.
7766
7767 2011-02-06  Bruno Haible  <bruno@clisp.org>
7768
7769         New module 'wcsncasecmp'.
7770         * modules/wcsncasecmp: New file.
7771         * lib/wchar.in.h (wcsncasecmp): New declaration.
7772         * lib/wcsncasecmp.c: New file.
7773         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7774         * m4/wcsncasecmp.m4: New file.
7775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7778         HAVE_WCSNCASECMP.
7779         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7780         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7781
7782 2011-02-06  Bruno Haible  <bruno@clisp.org>
7783
7784         New module 'wcscasecmp'.
7785         * modules/wcscasecmp: New file.
7786         * lib/wchar.in.h (wcscasecmp): New declaration.
7787         * lib/wcscasecmp.c: New file.
7788         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7789         * m4/wcscasecmp.m4: New file.
7790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7793         HAVE_WCSCASECMP.
7794         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7795         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7796
7797 2011-02-05  Bruno Haible  <bruno@clisp.org>
7798
7799         New module 'wcsncmp'.
7800         * modules/wcsncmp: New file.
7801         * lib/wchar.in.h (wcsncmp): New declaration.
7802         * lib/wcsncmp.c: New file.
7803         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7804         * m4/wcsncmp.m4: New file.
7805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7808         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7809         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7810
7811 2011-02-05  Bruno Haible  <bruno@clisp.org>
7812
7813         New module 'wcscmp'.
7814         * modules/wcscmp: New file.
7815         * lib/wchar.in.h (wcscmp): New declaration.
7816         * lib/wcscmp.c: New file.
7817         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7818         * m4/wcscmp.m4: New file.
7819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7822         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7823         * doc/posix-functions/wcscmp.texi: Mention the new module.
7824
7825 2011-02-05  Bruno Haible  <bruno@clisp.org>
7826
7827         New module 'wcsncat'.
7828         * modules/wcsncat: New file.
7829         * lib/wchar.in.h (wcsncat): New declaration.
7830         * lib/wcsncat.c: New file.
7831         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7832         * m4/wcsncat.m4: New file.
7833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7836         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7837         * doc/posix-functions/wcsncat.texi: Mention the new module.
7838
7839 2011-02-05  Bruno Haible  <bruno@clisp.org>
7840
7841         New module 'wcscat'.
7842         * modules/wcscat: New file.
7843         * lib/wchar.in.h (wcscat): New declaration.
7844         * lib/wcscat.c: New file.
7845         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7846         * m4/wcscat.m4: New file.
7847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7850         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7851         * doc/posix-functions/wcscat.texi: Mention the new module.
7852
7853 2011-02-05  Bruno Haible  <bruno@clisp.org>
7854
7855         New module 'wcpncpy'.
7856         * modules/wcpncpy: New file.
7857         * lib/wchar.in.h (wcpncpy): New declaration.
7858         * lib/wcpncpy.c: New file.
7859         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7860         * m4/wcpncpy.m4: New file.
7861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7863         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7864         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7865         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7866
7867 2011-02-05  Bruno Haible  <bruno@clisp.org>
7868
7869         New module 'wcsncpy'.
7870         * modules/wcsncpy: New file.
7871         * lib/wchar.in.h (wcsncpy): New declaration.
7872         * lib/wcsncpy.c: New file.
7873         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7874         * m4/wcsncpy.m4: New file.
7875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7878         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7879         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7880
7881 2011-02-05  Bruno Haible  <bruno@clisp.org>
7882
7883         New module 'wcpcpy'.
7884         * modules/wcpcpy: New file.
7885         * lib/wchar.in.h (wcpcpy): New declaration.
7886         * lib/wcpcpy.c: New file.
7887         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7888         * m4/wcpcpy.m4: New file.
7889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7891         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7892         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7893         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7894
7895 2011-02-05  Bruno Haible  <bruno@clisp.org>
7896
7897         New module 'wcscpy'.
7898         * modules/wcscpy: New file.
7899         * lib/wchar.in.h (wcscpy): New declaration.
7900         * lib/wcscpy.c: New file.
7901         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7902         * m4/wcscpy.m4: New file.
7903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7906         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7907         * doc/posix-functions/wcscpy.texi: Mention the new module.
7908
7909 2011-02-05  Bruno Haible  <bruno@clisp.org>
7910
7911         New module 'wcsnlen'.
7912         * modules/wcsnlen: New file.
7913         * lib/wchar.in.h (wcsnlen): New declaration.
7914         * lib/wcsnlen.c: New file.
7915         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7916         * m4/wcsnlen.m4: New file.
7917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7920         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7921         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7922
7923 2011-02-05  Bruno Haible  <bruno@clisp.org>
7924
7925         New module 'wcslen'.
7926         * modules/wcslen: New file.
7927         * lib/wchar.in.h (wcslen): New declaration.
7928         * lib/wcslen.c: New file.
7929         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7930         * m4/wcslen.m4: New file.
7931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7934         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7935         * doc/posix-functions/wcslen.texi: Mention the new module.
7936
7937 2011-02-05  Bruno Haible  <bruno@clisp.org>
7938
7939         New module 'wmemset'.
7940         * modules/wmemset: New file.
7941         * lib/wchar.in.h (wmemset): New declaration.
7942         * lib/wmemset.c: New file.
7943         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7944         * m4/wmemset.m4: New file.
7945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7947         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7948         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7949         * doc/posix-functions/wmemset.texi: Mention the new module.
7950
7951 2011-02-05  Bruno Haible  <bruno@clisp.org>
7952
7953         New module 'wmemmove'.
7954         * modules/wmemmove: New file.
7955         * lib/wchar.in.h (wmemmove): New declaration.
7956         * lib/wmemmove.c: New file.
7957         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7958         * m4/wmemmove.m4: New file.
7959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7961         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7962         HAVE_WMEMMOVE.
7963         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7964         * doc/posix-functions/wmemmove.texi: Mention the new module.
7965
7966 2011-02-05  Bruno Haible  <bruno@clisp.org>
7967
7968         New module 'wmemcpy'.
7969         * modules/wmemcpy: New file.
7970         * lib/wchar.in.h (wmemcpy): New declaration.
7971         * lib/wmemcpy.c: New file.
7972         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7973         * m4/wmemcpy.m4: New file.
7974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7976         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7977         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7978         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7979
7980 2011-02-05  Bruno Haible  <bruno@clisp.org>
7981
7982         New module 'wmemcmp'.
7983         * modules/wmemcmp: New file.
7984         * lib/wchar.in.h (wmemcmp): New declaration.
7985         * lib/wmemcmp.c: New file.
7986         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7987         * m4/wmemcmp.m4: New file.
7988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7990         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7991         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7992         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7993
7994 2011-02-07  Jim Meyering  <meyering@redhat.com>
7995
7996         di-set, ino-map: new modules, from coreutils
7997         * lib/di-set.c: New file.
7998         * lib/di-set.h: Likewise.
7999         * lib/ino-map.c: Likewise.
8000         * lib/ino-map.h: Likewise.
8001         * modules/di-set: Likewise.
8002         * modules/di-set-tests: Likewise.
8003         * modules/ino-map: Likewise.
8004         * modules/ino-map-tests: Likewise.
8005         * tests/test-di-set.c: Likewise.
8006         * tests/test-ino-map.c: Likewise.
8007
8008 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8009
8010         getloadavg: merge minor changes from Emacs
8011
8012         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8013         (getloadavg): Use memset, not bzero.
8014
8015         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8016         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8017         clash (bug#86).
8018
8019 2010-11-14  Bruno Haible  <bruno@clisp.org>
8020
8021         Allow multiple gnulib generated replacements to coexist.
8022         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8023         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8024         * lib/langinfo.in.h (nl_item): Likewise.
8025         * lib/math.in.h (_NaN, NAN): Likewise.
8026         * lib/netdb.in.h (struct addrinfo): Likewise.
8027         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8028         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8029         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8030         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8031         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8032         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8033         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8034         pthread_mutexattr_init, pthread_mutexattr_settype,
8035         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8036         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8037         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8038         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8039         * lib/sched.in.h (struct sched_param): Likewise.
8040         * lib/se-selinux.in.h (security_class_t, security_context_t,
8041         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8042         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8043         lsetfilecon, fsetfilecon, security_check_context,
8044         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8045         Likewise.
8046         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8047         Likewise.
8048         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8049         _gl_function_taking_int_returning_void_t, union sigval,
8050         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8051         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8052         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8053         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8054         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8055         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8056         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8057         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8058         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8059         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8060         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8061         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8062         socklen_t, rpl_fd_isset): Likewise.
8063         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8064         * lib/sys_time.in.h (struct timeval): Likewise.
8065         * lib/sys_times.in.h (struct tms): Likewise.
8066         * lib/sys_utsname.in.h (struct utsname):
8067         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8068         * lib/unistd.in.h (getpagesize): Likewise.
8069         * lib/wchar.in.h (mbstate_t): Likewise.
8070         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8071         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8072         towlower, towupper): Likewise.
8073         Reported by Sam Steingold <sds@gnu.org>.
8074
8075 2011-02-05  Eric Blake  <eblake@redhat.com>
8076
8077         unsetenv: work around Haiku issues
8078         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8079         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8080
8081 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8082
8083         libposix: avoid calling error() within libposix
8084         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8085         is defined.
8086
8087 2011-02-05  Eric Blake  <eblake@redhat.com>
8088
8089         strerror_r-posix: port to cygwin
8090         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8091         implementation.
8092         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8093         * tests/test-strerror_r.c (main): Fix test.
8094         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8095         issue.
8096
8097 2011-02-05  Bruno Haible  <bruno@clisp.org>
8098
8099         New module 'wmemchr'.
8100         * modules/wmemchr: New file.
8101         * lib/wchar.in.h (wmemchr): New declaration.
8102         * lib/wmemchr.c: New file.
8103         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8104         * m4/wmemchr.m4: New file.
8105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8107         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8108         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8109         * doc/posix-functions/wmemchr.texi: Mention the new module.
8110
8111 2011-02-04  Eric Blake  <eblake@redhat.com>
8112
8113         fdopendir: detect FreeBSD bug
8114         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8115         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8116
8117 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8118
8119         stdbool: do not define HAVE_STDBOOL_H
8120         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8121         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8122         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8123         imported from the latest Autoconf git.  It was motivated by Emacs,
8124         which uses gnulib but does not need HAVE_STDBOOL_H.
8125
8126 2011-02-04  Bruno Haible  <bruno@clisp.org>
8127
8128         wcsnrtombs: Prepare for new module wwcsnrtombs.
8129         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8130         * lib/wcsnrtombs.c: Include it.
8131         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8132
8133         wcsrtombs: Prepare for new module wwcsrtombs.
8134         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8135         * lib/wcsrtombs.c: Include it.
8136         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8137
8138         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8139         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8140         * lib/mbsnrtowcs.c: Include it.
8141         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8142
8143         mbsrtowcs: Prepare for new module mbsrtowwcs.
8144         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8145         * lib/mbsrtowcs.c: Include it.
8146         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8147
8148 2011-02-04  Bruno Haible  <bruno@clisp.org>
8149
8150         vasnprintf: Reduce use of malloc for small format strings.
8151         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8152         (arguments): Add room for the first 7 arguments.
8153         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8154         (char_directives, u8_directives, u16_directives, u32_directives): Add
8155         room for the first 7 directives.
8156         * lib/printf-parse.c: Include <string.h>.
8157         (PRINTF_PARSE): Change memory handling code so that it uses the first
8158         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8159         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8160         Reported by Pádraig Brady <P@draigbrady.com>.
8161
8162 2011-01-31  Eric Blake  <eblake@redhat.com>
8163
8164         dup2: work around Haiku bug
8165         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8166         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8167         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8168         * tests/test-dup2.c (main): Enhance test.
8169
8170 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8171
8172         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8173         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8174         declared by eglibc 2.11.2.
8175         * lib/stdio.in.h: Likewise.
8176
8177 2011-01-31  Eric Blake  <eblake@redhat.com>
8178
8179         ignore-value: add missing test dependency
8180         * tests/test-ignore-value.c: Revert previous change; stdio.h
8181         provides off_t.
8182         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8183
8184 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         mktime: clarify long_int width checking
8187         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8188         the top level, to make it clearer that the assumption about
8189         long_int width is being checked.  See
8190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8191
8192 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8193
8194         ignore-value: Fix self-test.
8195         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8196
8197 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8198
8199         TYPE_MAXIMUM: avoid theoretically undefined behavior
8200         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8201         negative number, which the C Standard says has undefined behavior.
8202         In practice this is not a problem, but might as well do it by the book.
8203         Reported by Rich Felker and Eric Blake; see
8204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8205         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8206         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8208         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8209         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8210         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8211
8212         mktime: #undef mktime before #defining it
8213         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8214
8215         mktime: systematically normalize tm_isdst comparisons
8216         * lib/mktime.c (isdst_differ): New function.
8217         (__mktime_internal): Use it systematically for all isdst comparisons.
8218         This completes the fix for libc BZ #6723, and removes the need for
8219         normalizing tm_isdst.  See
8220         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8221         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8222
8223         mktime: fix some integer overflow issues and sidestep the rest
8224
8225         This was prompted by a bug report by Benjamin Lindner for MinGW
8226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8227         His bug is due to signed integer overflow (0 - INT_MIN), and I
8228         I scanned through mktime.c looking for other integer overflow
8229         problems, fixing all the bugs I found.
8230
8231         Although the C Standard says the resulting code is still not safe
8232         in the presence of integer overflow, in practice it should be good
8233         enough for all real-world two's-complement implementations, except
8234         for debugging environments that deliberately trap on integer
8235         overflow (e.g., gcc -ftrapv).
8236
8237         * lib/mktime.c (WRAPV): New macro.
8238         (SHR): Also check that long_int and time_t shift right in the
8239         usual way, before using the fast-but-unportable method.
8240         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8241         used.  The code already assumed two's complement, so there's
8242         no need to test for alternatives.  All uses removed.
8243         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8244         the C standard.  Problem reported by Rich Felker in
8245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8246         (twos_complement_arithmetic): Also check long_int and time_t.
8247         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8248         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8249         (__mktime_internal): Avoid integer overflow with unary subtraction
8250         in two instances where -1 - X is an adequate replacement for -X,
8251         since the calculations are approximate.
8252
8253 2011-01-29  Eric Blake  <eblake@redhat.com>
8254
8255         mktime: avoid infinite loop
8256         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8257         type; behavior is still undefined but portable to all known targets.
8258         Reported by Rich Felker.
8259
8260 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8261
8262         rename, unlink, same-inode: Relicense.
8263         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8264         * modules/unlink (License): Likewise.
8265         * modules/same-inode (License): Likewise.
8266
8267 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8268
8269         mktime: avoid problems on NetBSD 5 / i386
8270         * lib/mktime.c (long_int): New type.  This works around a problem
8271         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8272         but time_t is 64 bits, and where I expect the existing code is
8273         wrong in some cases.
8274         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8275         (ydhms_diff): Bring back the compile-time check for wide-enough
8276         year and yday.
8277
8278         mktime: fix misspelling in comment
8279         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8280         This merges all recent glibc changes of importance.
8281
8282 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8283
8284         move-if-change: cope with concurrent mv of identical file.
8285         * build-aux/move-if-change (CMPPROG): Accept environment
8286         variable as an override for `cmp'.
8287         (usage): Document CMPPROG.
8288         Adjust comparison to drop stdout.  Cope with failure of mv if
8289         the target file exists and is identical to the source, for
8290         parallel builds.
8291         Report from H.J. Lu against binutils in PR binutils/12283.
8292
8293 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8294
8295         * users.txt: Mention sharutils.
8296
8297 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8298
8299         * users.txt: Mention OATH Toolkit.
8300
8301 2011-01-27  Bruno Haible  <bruno@clisp.org>
8302
8303         Prepare for supporting FreeBSD 10.
8304         * build-aux/config.libpath: Remove handling of freebsd1*.
8305
8306 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8307
8308         Prepare for supporting FreeBSD 10.
8309         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8310         match FreeBSD 10.0.
8311
8312 2011-01-27  Bruno Haible  <bruno@clisp.org>
8313
8314         vma-iter, get-rusage-as: Add OpenBSD support.
8315         * modules/vma-iter (configure.ac): Test for mquery.
8316         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8317         * lib/vma-iter.c: Include <sys/mman.h>.
8318         (vma_iterate): Add an implementation based on mquery().
8319         * lib/resource-ext.h (get_rusage_as): Update comments.
8320         * lib/get-rusage-as.c: Likewise.
8321         * lib/get-rusage-data.c: Likewise.
8322
8323 2011-01-26  Karl Berry  <karl@gnu.org>
8324
8325         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8326         variables to make it easier to override the makeinfo program used.
8327
8328 2011-01-26  Eric Blake  <eblake@redhat.com>
8329
8330         fcntl: work around Haiku F_DUPFD bugs
8331         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8332         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8333         cloexec bit on duplication.
8334         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8335
8336 2011-01-26  Bruno Haible  <bruno@clisp.org>
8337
8338         Enable memory leak tests on AIX.
8339         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8340         * tests/test-fprintf-posix3.c (main): Likewise.
8341
8342 2011-01-26  Bruno Haible  <bruno@clisp.org>
8343
8344         Tests for module 'get-rusage-data'.
8345         * modules/get-rusage-data-tests: New file.
8346         * tests/test-get-rusage-data.c: New file.
8347
8348         New module 'get-rusage-data'.
8349         * lib/resource-ext.h (get_rusage_data): New declaration.
8350         * lib/get-rusage-data.c: New file.
8351         * modules/get-rusage-data: New file.
8352
8353 2011-01-25  Bruno Haible  <bruno@clisp.org>
8354
8355         get-rusage-as: Allow for easier testing.
8356         * lib/resource-ext.h (get_rusage_as): Add comment.
8357         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8358         (main): New function for interactive testing.
8359
8360 2011-01-25  Bruno Haible  <bruno@clisp.org>
8361
8362         vma-iter: Treat Haiku like BeOS.
8363         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8364         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8365
8366 2011-01-25  Eric Blake  <eblake@redhat.com>
8367
8368         c-stack: fix regression on cygwin when libsigsegv is present
8369         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8370
8371 2011-01-24  Bruno Haible  <bruno@clisp.org>
8372
8373         vma-iter: Avoid empty intervals.
8374         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8375         on an empty interval.
8376
8377 2011-01-24  Jim Meyering  <meyering@redhat.com>
8378
8379         u64: remove unnecessary #include
8380         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8381
8382 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8383
8384         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8385         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8386
8387 2011-01-23  Bruno Haible  <bruno@clisp.org>
8388
8389         New module 'vma-iter'.
8390         * lib/vma-iter.h: New file.
8391         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8392         * modules/vma-iter: New file.
8393         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8394         for get_rusage_as_via_iterator.
8395         (vma_iterate_callback): New function.
8396         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8397         * modules/get-rusage-as (Depends-on): Add vma-iter.
8398
8399 2011-01-23  Bruno Haible  <bruno@clisp.org>
8400
8401         uninorm: Tweak includes.
8402         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8403         Reported by Jim Meyering.
8404
8405 2011-01-23  Bruno Haible  <bruno@clisp.org>
8406
8407         get-rusage-as: Improve on NetBSD.
8408         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8409         /proc, like on FreeBSD.
8410
8411 2011-01-23  Jim Meyering  <meyering@redhat.com>
8412
8413         xreadlink.h: remove unnecessary #include
8414         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8415
8416         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8417         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8418
8419 2011-01-23  Bruno Haible  <bruno@clisp.org>
8420
8421         get-rusage-as: Fix bug.
8422         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8423         original limit when aborting the first loop.
8424
8425 2011-01-23  Bruno Haible  <bruno@clisp.org>
8426
8427         wctype: Ensure valid C syntax.
8428         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8429         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8430
8431 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8432
8433         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8435         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8436         as they are needed only for configure's test case.
8437         This removes two unnecessary symbols from config.h.
8438
8439         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8440         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8442         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8443         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8444         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8445         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8446         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8447         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8448         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8449         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8450         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8452         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8453         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8454         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8455         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8456         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8457
8458 2011-01-21  Eric Blake  <eblake@redhat.com>
8459
8460         maintainer-makefile: work with older git for submodule check
8461         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8462         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8463         Reported by Matthias Bolte.
8464
8465         bootstrap: minor portability fixes
8466         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8467         (usage): Omit leading capital and trailing . on help phrases, per
8468         GNU Coding Standards.
8469         (check_versions, top level): Prefix messages with script name.
8470
8471 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8472
8473         bootstrap: support --no-git option
8474         * build-aux/bootstrap: Add --no-git option, to be used when
8475         --gnulib-srcdir points to the exact desired checkout.
8476
8477 2011-01-21  Eric Blake  <eblake@redhat.com>
8478
8479         strerror_r-posix: work with glibc 2.13
8480         * lib/strerror_r.c (strerror_r): Fix return type.
8481
8482 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8483             Bruno Haible  <bruno@clisp.org>
8484
8485         uN_strstr: New unit tests.
8486         * modules/unistr/u8-strstr-tests: New file.
8487         * modules/unistr/u16-strstr-tests: New file.
8488         * modules/unistr/u32-strstr-tests: New file.
8489         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8490         * tests/unistr/test-u8-strstr.c: New file.
8491         * tests/unistr/test-u16-strstr.c: New file.
8492         * tests/unistr/test-u32-strstr.c: New file.
8493
8494 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8495             Bruno Haible  <bruno@clisp.org>
8496
8497         Make uN_strstr functions O(n) worst-case.
8498         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8499         16-bit and 32-bit unit cases, use the unibyte algorithm from
8500         lib/mbsstr.c.
8501         * lib/unistr/u8-strstr.c: Include <string.h>.
8502         (UNIT_IS_UINT8_T): New macro.
8503         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8504         (U_STRLEN, U_STRNLEN): New macros.
8505         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8506         (U_STRLEN, U_STRNLEN): New macros.
8507         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8508         (configure.ac): Update required libunistring version.
8509         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8510         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8511         malloca.
8512         (configure.ac): Update required libunistring version.
8513         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8514         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8515         malloca.
8516         (configure.ac): Update required libunistring version.
8517
8518 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8519             Bruno Haible  <bruno@clisp.org>
8520
8521         Prepare for faster uN_strstr functions.
8522         * lib/str-kmp.h: Support definable UNITs.
8523         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8524         needle_len argument.
8525         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8526         * lib/mbscasestr.c (mbscasestr): Likewise.
8527
8528 2011-01-21  Pádraig Brady <P@draigBrady.com>
8529
8530         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8531         * tests/test-malloca.c (main): Unset the environment variable
8532         to greatly speed up the test.
8533         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8534         * modules/malloca-tests: Depend on unsetenv.
8535
8536 2011-01-21  Pádraig Brady <P@draigBrady.com>
8537
8538         ignore-value: remove stdint dependency
8539         * lib/ignore-value.h: Remove <stdint.h>
8540         * modules/ignore-value: Remove stdint dependency.
8541
8542 2011-01-21  Jim Meyering  <meyering@redhat.com>
8543
8544         maint.mk: adjust variable name to be consistent with other gl_ vars
8545         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8546         to be lower case.
8547
8548 2011-01-20  Jim Meyering  <meyering@redhat.com>
8549
8550         maint.mk: make "check" depend on public-submodule-commit by default
8551         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8552
8553 2011-01-20  Bruno Haible  <bruno@clisp.org>
8554
8555         mbfile, mbiter: Complete change from 2008-12-21.
8556         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8557         * m4/mbiter.m4 (gl_MBITER): Likewise.
8558
8559 2011-01-20  Jim Meyering  <meyering@redhat.com>
8560
8561         init.sh: insert space between each function name and "()"
8562         * tests/init.sh: Make it a little easier to see that a function's
8563         name is "warn_", and not "warn" when looking at the first part of
8564         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8565
8566 2011-01-20  Jim Meyering  <meyering@redhat.com>
8567
8568         mountlist: clean up code formatting
8569         * lib/mountlist.c (read_file_system_list): Split a long line,
8570         correct bracing style, use NULL in place of "(struct statfs *)0",
8571         don't parenthesize return value, add spaces around "=" and after
8572         ";-in-for-stmt".
8573
8574 2011-01-14  Markus Duft <mduft@gentoo.org>
8575
8576         mountlist: add support for Interix
8577         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8578         Apply statvfs to all entries of /dev/fs.
8579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8580         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8581
8582 2011-01-20  Jim Meyering  <meyering@redhat.com>
8583
8584         maint.mk: improve the public-submodule-commit rule
8585         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8586         to suppress printing of its commands... unless V=1.
8587         Add git submodule's --quiet option to suppress printing of e.g.,
8588         "Entering gnulib" output.
8589         "cd" into $(srcdir) before running git submodule.
8590
8591 2011-01-20  Bruno Haible  <bruno@clisp.org>
8592
8593         include_next: Fix bug introduced on 2011-01-18.
8594         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8595         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8596         ac_cv_header_... variable if the second argument is not 'check'.
8597         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8598         gl_NEXT_HEADERS_INTERNAL.
8599
8600 2011-01-20  Bruno Haible  <bruno@clisp.org>
8601
8602         Allow the user to avoid the GNULIB_TEST_* macros.
8603         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8604         Suggested by Paul Eggert.
8605
8606 2011-01-14  Jim Meyering  <meyering@redhat.com>
8607
8608         bootstrap: avoid failure when there is no .gitmodules file
8609         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8610         has been assigned to, even when its value is the empty string.
8611         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8612         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8613         Reported by John W. Eaton <jwe@gnu.org>.
8614
8615 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         assume <ctype.h>, ..., <time.h> exist
8618         For years gnulib has been assuming the existence of the headers
8619         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8620         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8621         them, since they don't appear to be needed.
8622         * README (Portability guidelines): Document this.
8623         * lib/flock.c: Assume <fcntl.h> exists.
8624         * lib/regex_internal.h: Assume <locale.h> exists.
8625         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8626         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8627         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8628         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8629         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8630         * m4/regex.m4 (gl_REGEX): Likewise.
8631         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8632         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8633         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8634         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8635         * tests/test-argp.c: Likewise.
8636         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8637
8638         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8639         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8640         AA_APPLE_UNIVERSAL_BUILD.  See
8641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8642         * NEWS: Document this.
8643
8644 2011-01-19  Eric Blake  <eblake@redhat.com>
8645
8646         c-stack: assume stack overflow if SA_SIGINFO unsupported
8647         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8648         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8649         sigaction will work.
8650         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8651         behavior match Linux.
8652         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8653
8654         stdbool-tests: accomodate Haiku
8655         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8656
8657         binary-io: fix O_TEXT on Haiku
8658         * modules/binary-io (Depends-on): Add fcntl-h.
8659         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8660         than blindly undefining O_TEXT.
8661         Reported by Scott McCreary.
8662
8663 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8664
8665         include_next: do not check for standard headers like stddef.h
8666
8667         I found this problem when modifying Emacs to use gnulib.
8668         I noticed that it added HAVE_STDDEF_H to config.h, even though
8669         gnulib always assumes <stddef.h> exists as per README and this
8670         symbol is unnecessary.
8671         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8672         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8673         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8674         faster for headers like stddef.h that are known to exist.
8675         (gl_CHECK_NEXT_HEADERS): Use it.
8676         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8677         rather than gl_CHECK_NEXT_HEADERS.
8678         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8679         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8680
8681 2011-01-18  Eric Blake  <eblake@redhat.com>
8682
8683         ansi-c++-opt: skip C++ dependency style if C++ is unused
8684         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8685         tests when we know C++ compilation is not desired.
8686         Reported by Scott McCreary.
8687
8688 2011-01-18  Bruno Haible  <bruno@clisp.org>
8689
8690         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8691         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8692         (main): Perform test also when getrlimit and setrlimit don't exist or
8693         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8694         limiting the address space size using setrlimit, compare the address
8695         space size before and after the the test.
8696         * tests/test-dprintf-posix2.c: Likewise.
8697         * tests/test-fprintf-posix3.sh: Update skip messages.
8698         * tests/test-dprintf-posix2.sh: Likewise.
8699         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8700         * modules/dprintf-posix-tests (Depends-on): Likewise.
8701         Reported by Bruce Korb <bkorb@gnu.org> and
8702         Gary V. Vaughan <gary@gnu.org>.
8703
8704 2011-01-18  Bruno Haible  <bruno@clisp.org>
8705
8706         get-rusage-as: Improvement for Cygwin.
8707         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8708         areas that are merely reserved.
8709
8710 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8711
8712         strftime: remove dependencies on multibyte modules
8713
8714         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8715         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8716         only if __osf__ is defined, and I suspect OSF doesn't need these
8717         other modules.  If my guess is wrong, we'll need to come up with a
8718         variant of strftime that doesn't need the multibyte modules.
8719
8720         I discovered this problem when attempting modify Emacs to use the
8721         strftime module.  With the previous gnulib, this caused Emacs to
8722         need 31 new files, ranging from lib/config.charset to
8723         m4/wint_t.m4.  This was overkill and I expect would be offputting
8724         to the Emacs maintainers.  After this change, only 6 new files are
8725         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8726         stdbool.m4, and tm_gmtoff.m4.
8727
8728         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8729         Suggested by Bruno Haible in
8730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8731         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8732         and do not check for wchar.h.
8733         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8734         (Depends-on): Remove mbrlen, mbsinit, wchar.
8735
8736 2011-01-18  Bruno Haible  <bruno@clisp.org>
8737
8738         Tests for module 'get-rusage-as'.
8739         * modules/get-rusage-as-tests: New file.
8740         * tests/test-get-rusage-as.c: New file.
8741
8742         New module 'get-rusage-as'.
8743         * modules/get-rusage-as: New file.
8744         * lib/resource-ext.h: New file.
8745         * lib/get-rusage-as.c: New file.
8746
8747 2011-01-17  Eric Blake  <eblake@redhat.com>
8748
8749         sigaction: relax license from LGPLv3+ to LGPLv2+
8750         * modules/sigaction (License): Relax to LGPLv2+.
8751
8752 2011-01-14  Bruno Haible  <bruno@clisp.org>
8753
8754         filemode: Make function declarations usable in C++ mode.
8755         * lib/filemode.h: Enclose function declarations in extern "C" block.
8756         Reported by John W. Eaton <jwe@gnu.org>.
8757
8758 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8759
8760         save-cwd: no longer include "xgetcwd.h"
8761         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8762         This avoids a compilation failure in projects that use save-cwd
8763         without also using the xgetcwd module.
8764
8765 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8766
8767         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8768         This is so that a program like Emacs, which needs only dtoastr,
8769         does not have to bother with distributing and compiling ftoastr
8770         and ldtoastr.
8771         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8772         * modules/dtoastr, modules/ldtoastr: New files.
8773         * modules/ftoastr: Now works just for 'float'.
8774         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8775         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8776         dtoastr.c, ldtoastr.c.
8777
8778 2011-01-11  Jim Meyering  <meyering@redhat.com>
8779
8780         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8781         There is no need to work around the lack of the fchdir function,
8782         since gnulib can now provide a replacement when required.
8783         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8784         * modules/save-cwd (Depends-on): Add fchdir.
8785
8786 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8787
8788         openat, save-cwd: avoid xmalloc
8789
8790         This removes a direct (but undocumented) dependency of openat on
8791         xalloc, along with an indirect dependency via save-cwd.  It also
8792         removes a dependency of save-cwd on xgetcwd, and thereby
8793         indirectly on xalloc.  This change causes the openat substitute
8794         to fall back on save_cwd when memory is tight, and for save_cwd to
8795         fail instead of dying when memory is tight, but that's good enough.
8796         Problem and initial idea for fix reported by Bastien Roucaries in
8797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8798
8799         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8800         xalloc.h (for xmalloc).
8801         (openat_proc_name): Use malloc, not xmalloc.
8802         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8803         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8804
8805         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8806         This avoids heap allocation for file names whose lengths are in
8807         the range 512..1023, with the upper bound increasing to at most
8808         4031 depending on the platform's PATH_MAX.  (We do not want
8809         pathmax.h here as it might supply a non-constant PATH_MAX.)
8810         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8811         Perhaps they should be moved to malloca.h?
8812         (OPENAT_BUFFER_SIZE): Use them.
8813
8814 2011-01-10  Bruno Haible  <bruno@clisp.org>
8815
8816         doc: Update users.txt.
8817         * users.txt: Add recutils.
8818
8819 2011-01-09  Karl Berry  <karl@gnu.org>
8820
8821         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8822
8823         * doc/configmake.texi: New file.
8824         * doc/gnulib.texi: Include it.
8825         * modules/configmake: Move documentation from here.
8826
8827 2011-01-09  Bruno Haible  <bruno@clisp.org>
8828
8829         Update to Unicode 6.0.0.
8830         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8831         (get_lbp): Update for Unicode 6.0.0.
8832         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8833         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8834         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8835         U+11001, U+11038..U+11046. Remove U+06DE.
8836         (uc_width): Fix bounds of planes.
8837         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8838         lib/uniwidth/width.c.
8839         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8840         trailing whitespace removed.
8841         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8842         without comments, but with the original copyright notice.
8843         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8844         * lib/unicase/ignorable.h: Likewise.
8845         * lib/unicase/tocasefold.h: Likewise.
8846         * lib/unicase/tolower.h: Likewise.
8847         * lib/unicase/totitle.h: Likewise.
8848         * lib/unicase/toupper.h: Likewise.
8849         * lib/unictype/bidi_of.h: Likewise.
8850         * lib/unictype/blocks.h: Likewise.
8851         * lib/unictype/categ_C.h: Likewise.
8852         * lib/unictype/categ_Cn.h: Likewise.
8853         * lib/unictype/categ_L.h: Likewise.
8854         * lib/unictype/categ_Ll.h: Likewise.
8855         * lib/unictype/categ_Lm.h: Likewise.
8856         * lib/unictype/categ_Lo.h: Likewise.
8857         * lib/unictype/categ_Lu.h: Likewise.
8858         * lib/unictype/categ_M.h: Likewise.
8859         * lib/unictype/categ_Mc.h: Likewise.
8860         * lib/unictype/categ_Me.h: Likewise.
8861         * lib/unictype/categ_Mn.h: Likewise.
8862         * lib/unictype/categ_N.h: Likewise.
8863         * lib/unictype/categ_Nd.h: Likewise.
8864         * lib/unictype/categ_No.h: Likewise.
8865         * lib/unictype/categ_P.h: Likewise.
8866         * lib/unictype/categ_Po.h: Likewise.
8867         * lib/unictype/categ_S.h: Likewise.
8868         * lib/unictype/categ_Sc.h: Likewise.
8869         * lib/unictype/categ_Sk.h: Likewise.
8870         * lib/unictype/categ_Sm.h: Likewise.
8871         * lib/unictype/categ_So.h: Likewise.
8872         * lib/unictype/categ_of.h: Likewise.
8873         * lib/unictype/combining.h: Likewise.
8874         * lib/unictype/ctype_alnum.h: Likewise.
8875         * lib/unictype/ctype_alpha.h: Likewise.
8876         * lib/unictype/ctype_graph.h: Likewise.
8877         * lib/unictype/ctype_lower.h: Likewise.
8878         * lib/unictype/ctype_print.h: Likewise.
8879         * lib/unictype/ctype_punct.h: Likewise.
8880         * lib/unictype/ctype_upper.h: Likewise.
8881         * lib/unictype/decdigit.h: Likewise.
8882         * lib/unictype/digit.h: Likewise.
8883         * lib/unictype/numeric.h: Likewise.
8884         * lib/unictype/pr_alphabetic.h: Likewise.
8885         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8886         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8887         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8888         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8889         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8890         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8891         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8892         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8893         * lib/unictype/pr_case_ignorable.h: Likewise.
8894         * lib/unictype/pr_cased.h: Likewise.
8895         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8896         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8897         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8898         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8899         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8900         * lib/unictype/pr_combining.h: Likewise.
8901         * lib/unictype/pr_composite.h: Likewise.
8902         * lib/unictype/pr_currency_symbol.h: Likewise.
8903         * lib/unictype/pr_decimal_digit.h: Likewise.
8904         * lib/unictype/pr_deprecated.h: Likewise.
8905         * lib/unictype/pr_format_control.h: Likewise.
8906         * lib/unictype/pr_grapheme_base.h: Likewise.
8907         * lib/unictype/pr_grapheme_extend.h: Likewise.
8908         * lib/unictype/pr_grapheme_link.h: Likewise.
8909         * lib/unictype/pr_id_continue.h: Likewise.
8910         * lib/unictype/pr_id_start.h: Likewise.
8911         * lib/unictype/pr_ideographic.h: Likewise.
8912         * lib/unictype/pr_lowercase.h: Likewise.
8913         * lib/unictype/pr_math.h: Likewise.
8914         * lib/unictype/pr_numeric.h: Likewise.
8915         * lib/unictype/pr_other_alphabetic.h: Likewise.
8916         * lib/unictype/pr_other_id_continue.h: Likewise.
8917         * lib/unictype/pr_other_math.h: Likewise.
8918         * lib/unictype/pr_punctuation.h: Likewise.
8919         * lib/unictype/pr_sentence_terminal.h: Likewise.
8920         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8921         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8922         * lib/unictype/pr_unified_ideograph.h: Likewise.
8923         * lib/unictype/pr_uppercase.h: Likewise.
8924         * lib/unictype/pr_xid_continue.h: Likewise.
8925         * lib/unictype/pr_xid_start.h: Likewise.
8926         * lib/unictype/scripts.h: Likewise.
8927         * lib/unictype/scripts_byname.gperf: Likewise.
8928         * lib/unictype/sy_java_ident.h: Likewise.
8929         * lib/unigbrk/gbrkprop.h: Likewise.
8930         * lib/unilbrk/lbrkprop1.h: Likewise.
8931         * lib/unilbrk/lbrkprop2.h: Likewise.
8932         * lib/uninorm/decomposition-table2.h: Likewise.
8933         * lib/uniwbrk/wbrkprop.h: Likewise.
8934         * tests/unicase/test-cased.c: Likewise.
8935         * tests/unicase/test-ignorable.c: Likewise.
8936         * tests/unicase/test-uc_tolower.c: Likewise.
8937         * tests/unicase/test-uc_totitle.c: Likewise.
8938         * tests/unicase/test-uc_toupper.c: Likewise.
8939         * tests/unictype/test-categ_C.c: Likewise.
8940         * tests/unictype/test-categ_Cn.c: Likewise.
8941         * tests/unictype/test-categ_L.c: Likewise.
8942         * tests/unictype/test-categ_Ll.c: Likewise.
8943         * tests/unictype/test-categ_Lm.c: Likewise.
8944         * tests/unictype/test-categ_Lo.c: Likewise.
8945         * tests/unictype/test-categ_Lu.c: Likewise.
8946         * tests/unictype/test-categ_M.c: Likewise.
8947         * tests/unictype/test-categ_Mc.c: Likewise.
8948         * tests/unictype/test-categ_Me.c: Likewise.
8949         * tests/unictype/test-categ_Mn.c: Likewise.
8950         * tests/unictype/test-categ_N.c: Likewise.
8951         * tests/unictype/test-categ_Nd.c: Likewise.
8952         * tests/unictype/test-categ_No.c: Likewise.
8953         * tests/unictype/test-categ_P.c: Likewise.
8954         * tests/unictype/test-categ_Po.c: Likewise.
8955         * tests/unictype/test-categ_S.c: Likewise.
8956         * tests/unictype/test-categ_Sc.c: Likewise.
8957         * tests/unictype/test-categ_Sk.c: Likewise.
8958         * tests/unictype/test-categ_Sm.c: Likewise.
8959         * tests/unictype/test-categ_So.c: Likewise.
8960         * tests/unictype/test-ctype_alnum.c: Likewise.
8961         * tests/unictype/test-ctype_alpha.c: Likewise.
8962         * tests/unictype/test-ctype_graph.c: Likewise.
8963         * tests/unictype/test-ctype_lower.c: Likewise.
8964         * tests/unictype/test-ctype_print.c: Likewise.
8965         * tests/unictype/test-ctype_punct.c: Likewise.
8966         * tests/unictype/test-ctype_upper.c: Likewise.
8967         * tests/unictype/test-decdigit.h: Likewise.
8968         * tests/unictype/test-digit.h: Likewise.
8969         * tests/unictype/test-numeric.h: Likewise.
8970         * tests/unictype/test-pr_alphabetic.c: Likewise.
8971         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8972         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8973         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8974         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8975         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8976         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8977         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8978         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8979         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8980         * tests/unictype/test-pr_cased.c: Likewise.
8981         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8982         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8983         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8984         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8985         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8986         * tests/unictype/test-pr_combining.c: Likewise.
8987         * tests/unictype/test-pr_composite.c: Likewise.
8988         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8989         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8990         * tests/unictype/test-pr_deprecated.c: Likewise.
8991         * tests/unictype/test-pr_format_control.c: Likewise.
8992         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8993         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8994         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8995         * tests/unictype/test-pr_id_continue.c: Likewise.
8996         * tests/unictype/test-pr_id_start.c: Likewise.
8997         * tests/unictype/test-pr_ideographic.c: Likewise.
8998         * tests/unictype/test-pr_lowercase.c: Likewise.
8999         * tests/unictype/test-pr_math.c: Likewise.
9000         * tests/unictype/test-pr_numeric.c: Likewise.
9001         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9002         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9003         * tests/unictype/test-pr_other_math.c: Likewise.
9004         * tests/unictype/test-pr_punctuation.c: Likewise.
9005         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9006         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9007         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9008         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9009         * tests/unictype/test-pr_uppercase.c: Likewise.
9010         * tests/unictype/test-pr_xid_continue.c: Likewise.
9011         * tests/unictype/test-pr_xid_start.c: Likewise.
9012         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9013         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9014         changes.
9015         * lib/unictype/categ_Cc.h: Likewise.
9016         * lib/unictype/categ_Cf.h: Likewise.
9017         * lib/unictype/categ_Co.h: Likewise.
9018         * lib/unictype/categ_Cs.h: Likewise.
9019         * lib/unictype/categ_Lt.h: Likewise.
9020         * lib/unictype/categ_Nl.h: Likewise.
9021         * lib/unictype/categ_Pc.h: Likewise.
9022         * lib/unictype/categ_Pd.h: Likewise.
9023         * lib/unictype/categ_Pe.h: Likewise.
9024         * lib/unictype/categ_Pf.h: Likewise.
9025         * lib/unictype/categ_Pi.h: Likewise.
9026         * lib/unictype/categ_Ps.h: Likewise.
9027         * lib/unictype/categ_Z.h: Likewise.
9028         * lib/unictype/categ_Zl.h: Likewise.
9029         * lib/unictype/categ_Zp.h: Likewise.
9030         * lib/unictype/categ_Zs.h: Likewise.
9031         * lib/unictype/ctype_blank.h: Likewise.
9032         * lib/unictype/ctype_cntrl.h: Likewise.
9033         * lib/unictype/ctype_digit.h: Likewise.
9034         * lib/unictype/ctype_space.h: Likewise.
9035         * lib/unictype/ctype_xdigit.h: Likewise.
9036         * lib/unictype/mirror.h: Likewise.
9037         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9038         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9039         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9040         * lib/unictype/pr_bidi_control.h: Likewise.
9041         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9042         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9043         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9044         * lib/unictype/pr_bidi_pdf.h: Likewise.
9045         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9046         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9047         * lib/unictype/pr_dash.h: Likewise.
9048         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9049         * lib/unictype/pr_diacritic.h: Likewise.
9050         * lib/unictype/pr_extender.h: Likewise.
9051         * lib/unictype/pr_hex_digit.h: Likewise.
9052         * lib/unictype/pr_hyphen.h: Likewise.
9053         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9054         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9055         * lib/unictype/pr_ignorable_control.h: Likewise.
9056         * lib/unictype/pr_iso_control.h: Likewise.
9057         * lib/unictype/pr_join_control.h: Likewise.
9058         * lib/unictype/pr_left_of_pair.h: Likewise.
9059         * lib/unictype/pr_line_separator.h: Likewise.
9060         * lib/unictype/pr_logical_order_exception.h: Likewise.
9061         * lib/unictype/pr_non_break.h: Likewise.
9062         * lib/unictype/pr_not_a_character.h: Likewise.
9063         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9064         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9065         * lib/unictype/pr_other_id_start.h: Likewise.
9066         * lib/unictype/pr_other_lowercase.h: Likewise.
9067         * lib/unictype/pr_other_uppercase.h: Likewise.
9068         * lib/unictype/pr_paired_punctuation.h: Likewise.
9069         * lib/unictype/pr_paragraph_separator.h: Likewise.
9070         * lib/unictype/pr_pattern_syntax.h: Likewise.
9071         * lib/unictype/pr_pattern_white_space.h: Likewise.
9072         * lib/unictype/pr_private_use.h: Likewise.
9073         * lib/unictype/pr_quotation_mark.h: Likewise.
9074         * lib/unictype/pr_radical.h: Likewise.
9075         * lib/unictype/pr_soft_dotted.h: Likewise.
9076         * lib/unictype/pr_space.h: Likewise.
9077         * lib/unictype/pr_titlecase.h: Likewise.
9078         * lib/unictype/pr_variation_selector.h: Likewise.
9079         * lib/unictype/pr_white_space.h: Likewise.
9080         * lib/unictype/pr_zero_width.h: Likewise.
9081         * lib/unictype/sy_c_ident.h: Likewise.
9082         * lib/unictype/sy_c_whitespace.h: Likewise.
9083         * lib/unictype/sy_java_whitespace.h: Likewise.
9084         * lib/uninorm/composition-table.gperf: Likewise.
9085         * lib/uninorm/decomposition-table1.h: Likewise.
9086         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9087         LB8.
9088         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9089         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9090         * modules/unictype/*: Bump version number of expected libunistring
9091         version.
9092
9093 2011-01-09  Bruno Haible  <bruno@clisp.org>
9094
9095         Update to Unicode 5.2.0.
9096         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9097         trailing whitespace removed.
9098
9099 2011-01-09  Bruno Haible  <bruno@clisp.org>
9100
9101         New Unicode character properties, from Unicode 5.2.0.
9102         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9103         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9104         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9105         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9106         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9107         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9108         uc_is_property_cased, uc_is_property_case_ignorable,
9109         uc_is_property_changes_when_lowercased,
9110         uc_is_property_changes_when_uppercased,
9111         uc_is_property_changes_when_titlecased,
9112         uc_is_property_changes_when_casefolded,
9113         uc_is_property_changes_when_casemapped): New declarations.
9114         * lib/unictype/pr_byname.gperf: Add the new properties.
9115         * modules/unictype/property-byname (Depends-on): Depend on the new
9116         properties modules.
9117         * modules/unictype/property-all (Depends-on): Likewise.
9118         * MODULES.html.sh (Unicode string functions): Add
9119         unictype/property-case-ignorable, unictype/property-cased,
9120         unictype/property-changes-when-casefolded,
9121         unictype/property-changes-when-casemapped,
9122         unictype/property-changes-when-lowercased,
9123         unictype/property-changes-when-titlecased,
9124         unictype/property-changes-when-uppercased.
9125
9126         New module 'unictype/property-changes-when-casemapped'.
9127         * modules/unictype/property-changes-when-casemapped: New file.
9128         * lib/unictype/pr_changes_when_casemapped.c: New file.
9129         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9130         generated by gen-uni-tables.
9131         * modules/unictype/property-changes-when-casemapped-tests: New file.
9132         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9133         automatically generated by gen-uni-tables.
9134
9135         New module 'unictype/property-changes-when-casefolded'.
9136         * modules/unictype/property-changes-when-casefolded: New file.
9137         * lib/unictype/pr_changes_when_casefolded.c: New file.
9138         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9139         generated by gen-uni-tables.
9140         * modules/unictype/property-changes-when-casefolded-tests: New file.
9141         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9142         automatically generated by gen-uni-tables.
9143
9144         New module 'unictype/property-changes-when-titlecased'.
9145         * modules/unictype/property-changes-when-titlecased: New file.
9146         * lib/unictype/pr_changes_when_titlecased.c: New file.
9147         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9148         generated by gen-uni-tables.
9149         * modules/unictype/property-changes-when-titlecased-tests: New file.
9150         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9151         automatically generated by gen-uni-tables.
9152
9153         New module 'unictype/property-changes-when-uppercased'.
9154         * modules/unictype/property-changes-when-uppercased: New file.
9155         * lib/unictype/pr_changes_when_uppercased.c: New file.
9156         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9157         generated by gen-uni-tables.
9158         * modules/unictype/property-changes-when-uppercased-tests: New file.
9159         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9160         automatically generated by gen-uni-tables.
9161
9162         New module 'unictype/property-changes-when-lowercased'.
9163         * modules/unictype/property-changes-when-lowercased: New file.
9164         * lib/unictype/pr_changes_when_lowercased.c: New file.
9165         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9166         generated by gen-uni-tables.
9167         * modules/unictype/property-changes-when-lowercased-tests: New file.
9168         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9169         automatically generated by gen-uni-tables.
9170
9171         New module 'unictype/property-case-ignorable'.
9172         * modules/unictype/property-case-ignorable: New file.
9173         * lib/unictype/pr_case_ignorable.c: New file.
9174         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9175         by gen-uni-tables.
9176         * modules/unictype/property-case-ignorable-tests: New file.
9177         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9178         generated by gen-uni-tables.
9179
9180         New module 'unictype/property-cased'.
9181         * modules/unictype/property-cased: New file.
9182         * lib/unictype/pr_cased.c: New file.
9183         * lib/unictype/pr_cased.h: New file, automatically generated by
9184         gen-uni-tables.
9185         * modules/unictype/property-cased-tests: New file.
9186         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9187         gen-uni-tables.
9188
9189 2011-01-09  Bruno Haible  <bruno@clisp.org>
9190
9191         Update to Unicode 5.2.0.
9192         * lib/gen-uni-tables.c (output_predicate, output_category,
9193         output_combclass, output_bidi_category, output_decimal_digit_test,
9194         output_decimal_digit, output_digit_test, output_digit,
9195         output_numeric_test, output_numeric, output_mirror, output_scripts,
9196         output_scripts_byname, output_blocks, output_ident_category): Fix
9197         comment header.
9198         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9199         get_wbp.
9200         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9201         items.
9202         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9203         Changes_When_Lowercased, Changes_When_Uppercased,
9204         Changes_When_Titlecased, Changes_When_Casefolded,
9205         Changes_When_Casemapped.
9206         (is_property_alphabetic, is_property_default_ignorable_code_point):
9207         Update for Unicode 5.2.0.
9208         (is_property_cased, is_property_case_ignorable,
9209         is_property_changes_when_lowercased,
9210         is_property_changes_when_uppercased,
9211         is_property_changes_when_titlecased,
9212         is_property_changes_when_casefolded,
9213         is_property_changes_when_casemapped): New functions.
9214         (output_properties): Output also the properties cased, case_ignorable,
9215         changes_when_lowercased, changes_when_uppercased,
9216         changes_when_titlecased, changes_when_casefolded,
9217         changes_when_casemapped.
9218         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9219         Unicode TR#11 revision 17 -> 19.
9220         (LBP_CP): New enumeration value.
9221         (LBP_*): Adjust values accordingly.
9222         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9223         TR#14 revision 22 -> 24.
9224         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9225         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9226         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9227         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9228         is_WBP_MIDLETTER.
9229         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9230         the code1 and code2 of each composition rule.
9231         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9232         * lib/unicase/ignorable.h: Likewise.
9233         * lib/unicase/tocasefold.h: Likewise.
9234         * lib/unicase/tolower.h: Likewise.
9235         * lib/unicase/totitle.h: Likewise.
9236         * lib/unicase/toupper.h: Likewise.
9237         * lib/unictype/bidi_of.h: Likewise.
9238         * lib/unictype/blocks.h: Likewise.
9239         * lib/unictype/categ_C.h: Likewise.
9240         * lib/unictype/categ_Cf.h: Likewise.
9241         * lib/unictype/categ_Cn.h: Likewise.
9242         * lib/unictype/categ_L.h: Likewise.
9243         * lib/unictype/categ_Ll.h: Likewise.
9244         * lib/unictype/categ_Lm.h: Likewise.
9245         * lib/unictype/categ_Lo.h: Likewise.
9246         * lib/unictype/categ_Lu.h: Likewise.
9247         * lib/unictype/categ_M.h: Likewise.
9248         * lib/unictype/categ_Mc.h: Likewise.
9249         * lib/unictype/categ_Mn.h: Likewise.
9250         * lib/unictype/categ_N.h: Likewise.
9251         * lib/unictype/categ_Nd.h: Likewise.
9252         * lib/unictype/categ_Nl.h: Likewise.
9253         * lib/unictype/categ_No.h: Likewise.
9254         * lib/unictype/categ_P.h: Likewise.
9255         * lib/unictype/categ_Pd.h: Likewise.
9256         * lib/unictype/categ_Po.h: Likewise.
9257         * lib/unictype/categ_S.h: Likewise.
9258         * lib/unictype/categ_Sc.h: Likewise.
9259         * lib/unictype/categ_So.h: Likewise.
9260         * lib/unictype/categ_of.h: Likewise.
9261         * lib/unictype/combining.h: Likewise.
9262         * lib/unictype/ctype_alnum.h: Likewise.
9263         * lib/unictype/ctype_alpha.h: Likewise.
9264         * lib/unictype/ctype_graph.h: Likewise.
9265         * lib/unictype/ctype_lower.h: Likewise.
9266         * lib/unictype/ctype_print.h: Likewise.
9267         * lib/unictype/ctype_punct.h: Likewise.
9268         * lib/unictype/ctype_upper.h: Likewise.
9269         * lib/unictype/decdigit.h: Likewise.
9270         * lib/unictype/digit.h: Likewise.
9271         * lib/unictype/numeric.h: Likewise.
9272         * lib/unictype/pr_alphabetic.h: Likewise.
9273         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9274         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9275         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9276         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9277         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9278         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9279         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9280         * lib/unictype/pr_combining.h: Likewise.
9281         * lib/unictype/pr_composite.h: Likewise.
9282         * lib/unictype/pr_currency_symbol.h: Likewise.
9283         * lib/unictype/pr_dash.h: Likewise.
9284         * lib/unictype/pr_decimal_digit.h: Likewise.
9285         * lib/unictype/pr_deprecated.h: Likewise.
9286         * lib/unictype/pr_diacritic.h: Likewise.
9287         * lib/unictype/pr_extender.h: Likewise.
9288         * lib/unictype/pr_grapheme_base.h: Likewise.
9289         * lib/unictype/pr_grapheme_extend.h: Likewise.
9290         * lib/unictype/pr_grapheme_link.h: Likewise.
9291         * lib/unictype/pr_id_continue.h: Likewise.
9292         * lib/unictype/pr_id_start.h: Likewise.
9293         * lib/unictype/pr_ideographic.h: Likewise.
9294         * lib/unictype/pr_ignorable_control.h: Likewise.
9295         * lib/unictype/pr_logical_order_exception.h: Likewise.
9296         * lib/unictype/pr_lowercase.h: Likewise.
9297         * lib/unictype/pr_numeric.h: Likewise.
9298         * lib/unictype/pr_other_alphabetic.h: Likewise.
9299         * lib/unictype/pr_punctuation.h: Likewise.
9300         * lib/unictype/pr_sentence_terminal.h: Likewise.
9301         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9302         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9303         * lib/unictype/pr_unified_ideograph.h: Likewise.
9304         * lib/unictype/pr_uppercase.h: Likewise.
9305         * lib/unictype/pr_xid_continue.h: Likewise.
9306         * lib/unictype/pr_xid_start.h: Likewise.
9307         * lib/unictype/pr_zero_width.h: Likewise.
9308         * lib/unictype/scripts.h: Likewise.
9309         * lib/unictype/scripts_byname.gperf: Likewise.
9310         * lib/unictype/sy_java_ident.h: Likewise.
9311         * lib/unigbrk/gbrkprop.h: Likewise.
9312         * lib/unilbrk/lbrkprop1.h: Likewise.
9313         * lib/unilbrk/lbrkprop2.h: Likewise.
9314         * lib/unilbrk/lbrktables.h: Likewise.
9315         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9316         LBP_CP. Implement rule LB30.
9317         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9318         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9319         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9320         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9321         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9322         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9323         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9324         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9325         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9326         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9327         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9328         bits instead of 16 bits in the code1 and code2 of each composition
9329         rule.
9330         (uc_composition): Update for Unicode 5.2.0.
9331         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9332         * lib/uninorm/decomposition-table2.h: Likewise.
9333         * lib/uniwbrk/wbrkprop.h: Likewise.
9334         * tests/unicase/test-cased.c: Likewise.
9335         * tests/unicase/test-ignorable.c: Likewise.
9336         * tests/unicase/test-uc_tolower.c: Likewise.
9337         * tests/unicase/test-uc_totitle.c: Likewise.
9338         * tests/unicase/test-uc_toupper.c: Likewise.
9339         * tests/unictype/test-categ_C.c: Likewise.
9340         * tests/unictype/test-categ_Cf.c: Likewise.
9341         * tests/unictype/test-categ_Cn.c: Likewise.
9342         * tests/unictype/test-categ_L.c: Likewise.
9343         * tests/unictype/test-categ_Ll.c: Likewise.
9344         * tests/unictype/test-categ_Lm.c: Likewise.
9345         * tests/unictype/test-categ_Lo.c: Likewise.
9346         * tests/unictype/test-categ_Lu.c: Likewise.
9347         * tests/unictype/test-categ_M.c: Likewise.
9348         * tests/unictype/test-categ_Mc.c: Likewise.
9349         * tests/unictype/test-categ_Mn.c: Likewise.
9350         * tests/unictype/test-categ_N.c: Likewise.
9351         * tests/unictype/test-categ_Nd.c: Likewise.
9352         * tests/unictype/test-categ_Nl.c: Likewise.
9353         * tests/unictype/test-categ_No.c: Likewise.
9354         * tests/unictype/test-categ_P.c: Likewise.
9355         * tests/unictype/test-categ_Pd.c: Likewise.
9356         * tests/unictype/test-categ_Po.c: Likewise.
9357         * tests/unictype/test-categ_S.c: Likewise.
9358         * tests/unictype/test-categ_Sc.c: Likewise.
9359         * tests/unictype/test-categ_So.c: Likewise.
9360         * tests/unictype/test-ctype_alnum.c: Likewise.
9361         * tests/unictype/test-ctype_alpha.c: Likewise.
9362         * tests/unictype/test-ctype_graph.c: Likewise.
9363         * tests/unictype/test-ctype_lower.c: Likewise.
9364         * tests/unictype/test-ctype_print.c: Likewise.
9365         * tests/unictype/test-ctype_punct.c: Likewise.
9366         * tests/unictype/test-ctype_upper.c: Likewise.
9367         * tests/unictype/test-decdigit.h: Likewise.
9368         * tests/unictype/test-digit.h: Likewise.
9369         * tests/unictype/test-numeric.h: Likewise.
9370         * tests/unictype/test-pr_alphabetic.c: Likewise.
9371         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9372         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9373         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9374         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9375         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9376         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9377         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9378         * tests/unictype/test-pr_combining.c: Likewise.
9379         * tests/unictype/test-pr_composite.c: Likewise.
9380         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9381         * tests/unictype/test-pr_dash.c: Likewise.
9382         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9383         * tests/unictype/test-pr_deprecated.c: Likewise.
9384         * tests/unictype/test-pr_diacritic.c: Likewise.
9385         * tests/unictype/test-pr_extender.c: Likewise.
9386         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9387         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9388         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9389         * tests/unictype/test-pr_id_continue.c: Likewise.
9390         * tests/unictype/test-pr_id_start.c: Likewise.
9391         * tests/unictype/test-pr_ideographic.c: Likewise.
9392         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9393         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9394         * tests/unictype/test-pr_lowercase.c: Likewise.
9395         * tests/unictype/test-pr_numeric.c: Likewise.
9396         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9397         * tests/unictype/test-pr_punctuation.c: Likewise.
9398         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9399         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9400         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9401         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9402         * tests/unictype/test-pr_uppercase.c: Likewise.
9403         * tests/unictype/test-pr_xid_continue.c: Likewise.
9404         * tests/unictype/test-pr_xid_start.c: Likewise.
9405         * tests/unictype/test-pr_zero_width.c: Likewise.
9406         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9407         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9408         changed behaviour: line breaking is now disallowed between a letter
9409         or '=' and '('.
9410         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9411         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9412         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9413         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9414         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9415         lib/uniwidth/width.c.
9416         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9417         without comments, but with the original copyright notice.
9418         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9419         changes.
9420         * lib/unictype/categ_Cc.h: Likewise.
9421         * lib/unictype/categ_Co.h: Likewise.
9422         * lib/unictype/categ_Cs.h: Likewise.
9423         * lib/unictype/categ_Lt.h: Likewise.
9424         * lib/unictype/categ_Me.h: Likewise.
9425         * lib/unictype/categ_Pc.h: Likewise.
9426         * lib/unictype/categ_Pe.h: Likewise.
9427         * lib/unictype/categ_Pf.h: Likewise.
9428         * lib/unictype/categ_Pi.h: Likewise.
9429         * lib/unictype/categ_Ps.h: Likewise.
9430         * lib/unictype/categ_Sk.h: Likewise.
9431         * lib/unictype/categ_Sm.h: Likewise.
9432         * lib/unictype/categ_Z.h: Likewise.
9433         * lib/unictype/categ_Zl.h: Likewise.
9434         * lib/unictype/categ_Zp.h: Likewise.
9435         * lib/unictype/categ_Zs.h: Likewise.
9436         * lib/unictype/ctype_blank.h: Likewise.
9437         * lib/unictype/ctype_cntrl.h: Likewise.
9438         * lib/unictype/ctype_digit.h: Likewise.
9439         * lib/unictype/ctype_space.h: Likewise.
9440         * lib/unictype/ctype_xdigit.h: Likewise.
9441         * lib/unictype/mirror.h: Likewise.
9442         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9443         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9444         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9445         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9446         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9447         * lib/unictype/pr_bidi_control.h: Likewise.
9448         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9449         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9450         * lib/unictype/pr_bidi_pdf.h: Likewise.
9451         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9452         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9453         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9454         * lib/unictype/pr_format_control.h: Likewise.
9455         * lib/unictype/pr_hex_digit.h: Likewise.
9456         * lib/unictype/pr_hyphen.h: Likewise.
9457         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9458         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9459         * lib/unictype/pr_iso_control.h: Likewise.
9460         * lib/unictype/pr_join_control.h: Likewise.
9461         * lib/unictype/pr_left_of_pair.h: Likewise.
9462         * lib/unictype/pr_line_separator.h: Likewise.
9463         * lib/unictype/pr_math.h: Likewise.
9464         * lib/unictype/pr_non_break.h: Likewise.
9465         * lib/unictype/pr_not_a_character.h: Likewise.
9466         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9467         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9468         * lib/unictype/pr_other_id_continue.h: Likewise.
9469         * lib/unictype/pr_other_id_start.h: Likewise.
9470         * lib/unictype/pr_other_lowercase.h: Likewise.
9471         * lib/unictype/pr_other_math.h: Likewise.
9472         * lib/unictype/pr_other_uppercase.h: Likewise.
9473         * lib/unictype/pr_paired_punctuation.h: Likewise.
9474         * lib/unictype/pr_paragraph_separator.h: Likewise.
9475         * lib/unictype/pr_pattern_syntax.h: Likewise.
9476         * lib/unictype/pr_pattern_white_space.h: Likewise.
9477         * lib/unictype/pr_private_use.h: Likewise.
9478         * lib/unictype/pr_quotation_mark.h: Likewise.
9479         * lib/unictype/pr_radical.h: Likewise.
9480         * lib/unictype/pr_soft_dotted.h: Likewise.
9481         * lib/unictype/pr_space.h: Likewise.
9482         * lib/unictype/pr_titlecase.h: Likewise.
9483         * lib/unictype/pr_variation_selector.h: Likewise.
9484         * lib/unictype/pr_white_space.h: Likewise.
9485         * lib/unictype/sy_c_ident.h: Likewise.
9486         * lib/unictype/sy_c_whitespace.h: Likewise.
9487         * lib/unictype/sy_java_whitespace.h: Likewise.
9488         * modules/uni*/*: Bump version number of expected libunistring version.
9489         Reported by Simon Josefsson.
9490
9491 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9492
9493         useless-if-before-free: fix typo in --help and make the internal,
9494         automatic version date update process work once again.
9495         --help output contained a NUL character instead of the
9496         backslash-zero that was intended.  Also, the "must lie within
9497         the first 8 lines" line is on line 9, and hence not getting
9498         automatically updated.
9499         * build-aux/useless-if-before-free: Fix the former by adding a
9500         backslash, and the latter by condensing the three lines of what-it-does
9501         to a single line, leaving one line of slack for the future.
9502
9503 2011-01-09  Bruno Haible  <bruno@clisp.org>
9504
9505         uniwidth/width: Fix width of U+1D173..U+1D17A.
9506         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9507         symbolic_width, output_width_property_test): New functions.
9508         (main): Invoke output_nonspacing_property, output_width_property_test.
9509         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9510         U+1D173..U+1D17A.
9511         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9512         1.
9513         * modules/uniwidth/*: Bump version number of expected libunistring
9514         version.
9515         * modules/unilbrk/*: Likewise.
9516
9517 2011-01-08  Bruno Haible  <bruno@clisp.org>
9518
9519         uninorm tests: Preserve copyright of Unicode data file.
9520         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9521         Mention modifications.
9522
9523 2011-01-08  Bruno Haible  <bruno@clisp.org>
9524
9525         gen-uni-tables: Prepare for Unicode 5.2.0.
9526         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9527         (debug_output_lbp, output_lbp): Update.
9528
9529 2011-01-08  Bruno Haible  <bruno@clisp.org>
9530
9531         unilbrk: Clarify gen-uni-tables.c code.
9532         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9533         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9534         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9535
9536 2011-01-07  Bruno Haible  <bruno@clisp.org>
9537
9538         strtod: Restore errno when successfully parsing Infinity or NaN.
9539         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9540         restore the original errno.
9541
9542 2011-01-07  Bruno Haible  <bruno@clisp.org>
9543
9544         remove test: Avoid failure on HP-UX 11.
9545         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9546
9547 2011-01-07  Bruno Haible  <bruno@clisp.org>
9548
9549         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9550         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9551         error code.
9552
9553 2011-01-07  Pádraig Brady <P@draigBrady.com>
9554
9555         ignore-value: fixup comments, and add Eric Blake
9556         as an author since he rewrote the macros.
9557         * lib/ignore-value.h (ignore_value):  State that
9558         we now support aggregates.  Also specify exactly
9559         when the GCC warn_unused_result feature was added.
9560
9561 2011-01-06  Eric Blake  <eblake@redhat.com>
9562
9563         ignore-value: support aggregate types
9564         * lib/ignore-value.h (ignore_value): Provide separate gcc
9565         definition.
9566         * modules/ignore-value-tests: New test module.
9567         * tests/test-ignore-value.c: New test.
9568
9569         maint.mk: improve sc_prohibit_strcmp regex
9570         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9571         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9572         definition of STRNEQ.
9573
9574         signal: work around Haiku issue with SIGBUS
9575         * lib/siglist.h: Add comment.
9576         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9577         strsignal's favoring of SIGSEGV.
9578         * tests/test-signal.c (main): Avoid test failure.
9579         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9580         Reported by Scott McCreary.
9581
9582         maint.mk: add pre-release check to ensure submodule commits are public
9583         * top/maint.mk (public-submodule-commit): New rule.
9584         (submodule-checks): New variable.
9585         (alpha beta stable): Depend on the variable.
9586
9587 2011-01-05  Pádraig Brady <P@draigBrady.com>
9588         and Jim Meyering  <meyering@redhat.com>
9589
9590         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9591         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9592         (ATTRIBUTE_DEPRECATED): Define.
9593         (_ignore_case): New function.
9594         (ignore_value): New macro, to replace the old function.
9595         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9596         * modules/ignore-value (Depends-on): Add stdint.
9597
9598 2011-01-04  Eric Blake  <eblake@redhat.com>
9599
9600         doc: regenerate INSTALL
9601         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9602         @firstparagraphindent support, now that autoconf dropped it.
9603         (INSTALL_PRELUDE): Reinstate old macro.
9604         * doc/install.texi: Resync from autoconf.
9605         * doc/INSTALL: Reflect recent autoconf update.
9606         * doc/INSTALL.ISO: Likewise.
9607         * doc/INSTALL.UTF-8: Likewise.
9608         Reported by Karl Berry.
9609
9610 2011-01-04  Bruce Korb  <address@hidden>
9611
9612         git-version-gen: avoid a sub-shell
9613         * build-aux/git-version-gen: Redirect stderr in `...` via
9614         "exec 2>...", rather than via an added sub-shell.
9615
9616 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9617
9618         git-version-gen: use (...) rather than sh -c '...'
9619         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9620         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9621
9622 2011-01-03  Jim Meyering  <meyering@redhat.com>
9623
9624         git-version-gen: convert leading TABs to spaces
9625         * build-aux/git-version-gen: Expand leading TABs.
9626
9627         git-version-gen: handle failed "git rev-list"
9628         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9629         from git and proceeding as if it had succeeded but printed no SHA1
9630         checksums, suppress the diagnostic and handle the failure.
9631         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9632
9633         git-version-gen: include command name in one more diagnostic
9634         * build-aux/git-version-gen: When the required .tarball-version file
9635         was missing or unreadable, you might see the diagnostic from "cat",
9636         but no trace of the name of the invoking script.  Now, you still see
9637         the diagnostic from cat, but also get one from "git-version-gen: ".
9638         Inspired by a patch from Bruce Korb.
9639
9640         update-copyright: adjust test to match changed code
9641         * tests/test-update-copyright.sh: Change test's expected output
9642         to match new actual output.
9643
9644 2011-01-02  Bruno Haible  <bruno@clisp.org>
9645
9646         getlogin_r: Avoid test failure on HP-UX 11.
9647         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9648         ERANGE when the second argument is zero.
9649         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9650         portability problem.
9651
9652 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9653
9654         * build-aux/update-copyright: doc Simon's changes
9655
9656 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9657
9658         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9659         environment variable.
9660
9661 2011-01-02  Bruno Haible  <bruno@clisp.org>
9662
9663         unigbrk: Avoid gcc warnings.
9664         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9665         unused variable.
9666         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9667         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9668         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9669         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9670         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9671         Change type of first argument to 'const char *'.
9672         (main): Remove unused variable.
9673         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9674         type of first argument to 'const char *'.
9675         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9676         Likewise.
9677         (main): Change type of variable 's'.
9678         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9679         to 'int'.
9680
9681 2011-01-02  Bruno Haible  <bruno@clisp.org>
9682
9683         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9684         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9685         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9686         bug.
9687         * lib/pwrite.c: Undo 2010-12-31 patch.
9688         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9689
9690 2011-01-02  Bruno Haible  <bruno@clisp.org>
9691
9692         pread: Fix test whether it works.
9693         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9694
9695 2011-01-02  Bruno Haible  <bruno@clisp.org>
9696
9697         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9698         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9699         ends in "6". Don't require a specific month name. Try also the locale
9700         names found on HP-UX 11 and Solaris 7.
9701
9702 2011-01-02  Bruno Haible  <bruno@clisp.org>
9703
9704         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9705         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9706         C linkage.
9707         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9708
9709 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9710
9711         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9712         for consistency, since the "cluster" term is not used elsewhere.
9713         * lib/unigbrk.in.h: Update name.
9714         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9715         * lib/unigbrk/u16-grapheme-next.c: Update name.
9716         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9717         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9718         * lib/unigbrk/u32-grapheme-next.c: Update name.
9719         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9720         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9721         * lib/unigbrk/u8-grapheme-next.c: Update name.
9722         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9723         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9724         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9725         Suggested by Bruno Haible.
9726
9727 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9728
9729         Remove module 'u8-grapheme-len' as too redundant with
9730         'u8-grapheme-next'.
9731         * modules/unigbrk/u8-grapheme-len: Delete file.
9732         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9733         * lib/unigbrk.in.h: Remove prototype for deleted function.
9734         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9735         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9736
9737         Remove module 'u16-grapheme-len' as too redundant with
9738         'u16-grapheme-next'.
9739         * modules/unigbrk/u16-grapheme-len: Delete file.
9740         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9741         * lib/unigbrk.in.h: Remove prototype for deleted function.
9742         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9743         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9744
9745         Remove module 'u32-grapheme-len' as too redundant with
9746         'u32-grapheme-next'.
9747         * modules/unigbrk/u32-grapheme-len: Delete file.
9748         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9749         * lib/unigbrk.in.h: Remove prototype for deleted function.
9750         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9751         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9752
9753         Suggested by Bruno Haible.
9754
9755 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9756
9757         * unigbrk.in.h: Fix typo: "ben" => "been".
9758         Reported by Bruno Haible.
9759
9760 2011-01-01  Jim Meyering  <meyering@redhat.com>
9761
9762         maint: update almost all copyright ranges to include 2011
9763         Run the new "make update-copyright" rule.
9764
9765 2011-01-01  Jim Meyering  <meyering@redhat.com>
9766
9767         maint: update-copyright: exempt doc/INSTALL*
9768         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9769         since they are generated.  Suggested by Bruno Haible.
9770
9771 2011-01-01  Jim Meyering  <meyering@redhat.com>
9772
9773         maint: refine the update-copyright rule
9774         * Makefile (update-copyright): Also exclude any file that includes
9775         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9776         code that merely generates the comment.
9777
9778 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9779
9780         New module 'u8-grapheme-len'.
9781         * modules/unigbrk/u8-grapheme-len: New file.
9782         * modules/unigbrk/u8-grapheme-len-tests: New file.
9783         * lib/unigbrk.in.h: Add prototype for new function.
9784         * lib/unigbrk/u8-grapheme-len.c: New file.
9785         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9786
9787         New module 'u16-grapheme-len'.
9788         * modules/unigbrk/u16-grapheme-len: New file.
9789         * modules/unigbrk/u16-grapheme-len-tests: New file.
9790         * lib/unigbrk.in.h: Add prototype for new function.
9791         * lib/unigbrk/u16-grapheme-len.c: New file.
9792         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9793
9794         New module 'u32-grapheme-len'.
9795         * modules/unigbrk/u32-grapheme-len: New file.
9796         * modules/unigbrk/u32-grapheme-len-tests: New file.
9797         * lib/unigbrk.in.h: Add prototype for new function.
9798         * lib/unigbrk/u32-grapheme-len.c: New file.
9799         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9800
9801         New module 'u8-grapheme-next'.
9802         * modules/unigbrk/u8-grapheme-next: New file.
9803         * modules/unigbrk/u8-grapheme-next-tests: New file.
9804         * lib/unigbrk.in.h: Add prototype for new function.
9805         * lib/unigbrk/u8-grapheme-next.c: New file.
9806         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9807
9808         New module 'u16-grapheme-next'.
9809         * modules/unigbrk/u16-grapheme-next: New file.
9810         * modules/unigbrk/u16-grapheme-next-tests: New file.
9811         * lib/unigbrk.in.h: Add prototype for new function.
9812         * lib/unigbrk/u16-grapheme-next.c: New file.
9813         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9814
9815         New module 'u32-grapheme-next'.
9816         * modules/unigbrk/u32-grapheme-next: New file.
9817         * modules/unigbrk/u32-grapheme-next-tests: New file.
9818         * lib/unigbrk.in.h: Add prototype for new function.
9819         * lib/unigbrk/u32-grapheme-next.c: New file.
9820         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9821
9822         New module 'u8-grapheme-prev'.
9823         * modules/unigbrk/u8-grapheme-prev: New file.
9824         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9825         * lib/unigbrk.in.h: Add prototype for new function.
9826         * lib/unigbrk/u8-grapheme-prev.c: New file.
9827         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9828
9829         New module 'u16-grapheme-prev'.
9830         * modules/unigbrk/u16-grapheme-prev: New file.
9831         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9832         * lib/unigbrk.in.h: Add prototype for new function.
9833         * lib/unigbrk/u16-grapheme-prev.c: New file.
9834         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9835
9836         New module 'u32-grapheme-prev'.
9837         * modules/unigbrk/u32-grapheme-prev: New file.
9838         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9839         * lib/unigbrk.in.h: Add prototype for new function.
9840         * lib/unigbrk/u32-grapheme-prev.c: New file.
9841         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9842
9843         New module 'u8-grapheme-breaks'.
9844         * modules/unigbrk/u8-grapheme-breaks: New file.
9845         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9846         * lib/unigbrk.in.h: Add prototype for new function.
9847         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9848         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9849
9850         New module 'u16-grapheme-breaks'.
9851         * modules/unigbrk/u16-grapheme-breaks: New file.
9852         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9853         * lib/unigbrk.in.h: Add prototype for new function.
9854         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9855         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9856
9857         New module 'u32-grapheme-breaks'.
9858         * modules/unigbrk/u32-grapheme-breaks: New file.
9859         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9860         * lib/unigbrk.in.h: Add prototype for new function.
9861         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9862         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9863
9864         New module 'ulc-grapheme-breaks'.
9865         * modules/unigbrk/ulc-grapheme-breaks: New file.
9866         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9867         * m4/locale-ar.m4: New file.
9868         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9869         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9870         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9871
9872 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9873
9874         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9875         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9876         modified how this file was generated before I initially submitted
9877         the module, but failed to regenerate it.  This meant that several
9878         of the level2 entries were wrong.
9879         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9880         Remove the division-by-2 that is folded into the table now that
9881         gbrkprop.h has been regenerated properly.  Now -1 entries are
9882         handled correctly.
9883
9884         New module 'unigbrk/uc-gbrk-prop-tests'.
9885         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9886         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9887         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9888         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9889
9890 2011-01-01  Bruno Haible  <bruno@clisp.org>
9891
9892         Avoid use of hexadecimal escapes.
9893         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9894         instead of hexadecimal escapes.
9895
9896 2011-01-01  Jim Meyering  <meyering@redhat.com>
9897
9898         maint: new rule to update copyright year ranges
9899         * Makefile (update-copyright): New rule.
9900
9901         maint: indent with TABs in Makefile
9902         * Makefile: Expand leading sequences of spaces to TABs
9903
9904         version-etc: update the copyright year it reports
9905         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9906
9907 2010-12-31  Bruno Haible  <bruno@clisp.org>
9908
9909         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9910         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9911         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9912         zero.
9913
9914 2010-12-31  Bruno Haible  <bruno@clisp.org>
9915
9916         pwrite: Work around HP-UX 11.11 bug.
9917         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9918         works and set REPLACE_PWRITE if not.
9919         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9920         function.
9921         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9922
9923 2010-12-31  Bruno Haible  <bruno@clisp.org>
9924
9925         pread: Work around HP-UX 11 bugs.
9926         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9927         and set REPLACE_PREAD if not.
9928         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9929
9930 2010-12-31  Eric Blake  <eblake@redhat.com>
9931
9932         nl_langinfo: fix YESEXPR on Irix 6.5
9933         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9934         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9935         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9936         it.
9937
9938 2010-12-31  Bruno Haible  <bruno@clisp.org>
9939
9940         iconv: Document HP-UX 11 bug.
9941         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9942
9943 2010-12-31  Bruno Haible  <bruno@clisp.org>
9944
9945         ldexpl: Fix link error on HP-UX 11.
9946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9947         LDEXPL_LIBM, using $ISNANL_LIBM.
9948
9949 2010-12-31  Eric Blake  <eblake@redhat.com>
9950
9951         ftello: avoid compilation failure with SunStudio c89
9952         * lib/ftello.c (ftello): Use lseek, not llseek.
9953
9954         tests: avoid failing coreutils tests on cygwin
9955         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9956         (create_exe_shims_): Return 0 when skipping.
9957
9958 2010-12-31  Bruno Haible  <bruno@clisp.org>
9959
9960         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9961         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9962
9963 2010-12-31  Bruno Haible  <bruno@clisp.org>
9964
9965         waitpid: Fix link error in C++ mode.
9966         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9967
9968 2010-12-31  Bruno Haible  <bruno@clisp.org>
9969
9970         isnan: Use GCC built-ins when possible.
9971         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9972         __builtin_isnan.
9973         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9974         (isnan): Define using GCC built-ins for GCC >= 4.0.
9975
9976 2010-12-31  Bruno Haible  <bruno@clisp.org>
9977
9978         isnand: Fix mistake.
9979         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9980         __builtin_isnand.
9981
9982 2010-12-31  Bruno Haible  <bruno@clisp.org>
9983
9984         open: Avoid C++ error on HP-UX 11.
9985         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9986
9987 2010-12-31  Bruno Haible  <bruno@clisp.org>
9988
9989         time_r: Add missing declarations on HP-UX 11.
9990         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9991         instead of HAVE_LOCALTIME_R.
9992         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9993         HAVE_LOCALTIME_R always.
9994         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9995         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9996         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9997         HAVE_LOCALTIME_R.
9998         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9999         * doc/posix-functions/localtime_r.texi: Likewise.
10000
10001 2010-12-29  Eric Blake  <eblake@redhat.com>
10002
10003         mountlist: tweak previous commit
10004         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10005         Reported by Paul Eggert.
10006
10007         mountlist: fix local drive detection on cygwin
10008         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10009         that works for cygwin.
10010
10011 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10012
10013         ftoastr, snprintf: ftoastr + snprintf module
10014         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10015         since the snprintf module now should be good enough here.
10016         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10017         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10018         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10019         GNULIB_SNPRINTF only for the test directory, and the latter
10020         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10021         seems to suffice by itself.
10022
10023 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10024
10025         alloca: one step towards thread-safety
10026         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10027         need for a static variable.  All callers changed.  This does not
10028         make the alloca replacement thread-safe, but it's one step.
10029
10030         tests: minor indenting change
10031         * tests/init.sh: Sync from coreutils housekeeping patch
10032         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10033         to keep lines within 80 columns.
10034
10035 2010-12-28  Jim Meyering  <meyering@redhat.com>
10036
10037         regex: don't infloop on persistent failing calloc
10038         * lib/regexec.c (build_trtable): Return failure indication upon
10039         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10040         In glibc, this was fixed for version 2.13:
10041         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10042
10043 2010-12-28  Bruno Haible  <bruno@clisp.org>
10044             Paul Eggert <eggert@cs.ucla.edu>
10045
10046         linkat: Make implementation robust against system behaviour variations.
10047         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10048         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10049         way, and to -2 if it needs a generic runtime test.
10050         * lib/linkat.c (solaris_optimized_link_immediate,
10051         solaris_optimized_link_follow): New functions.
10052         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10053         (check_same_link): Use it.
10054
10055 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10056
10057         New module 'unigbrk/base'.
10058         * modules/unigbrk/base: New file.
10059         * lib/unigbrk.in.h: New file.
10060
10061         New module 'unigbrk/uc-gbrk-prop'.
10062         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10063         * modules/unigbrk/uc-gbrk-prop: New file.
10064         * lib/unigbrk/gbrkprop.h: New file.
10065         * lib/unigbrk/uc-gbrk-prop.c: New file.
10066
10067         New module 'unigbrk/uc-is-grapheme-break'.
10068         * modules/unigbrk/uc-is-grapheme-break: New file.
10069         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10070         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10071         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10072         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10073         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10074
10075         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10076
10077 2010-12-27  Bruno Haible  <bruno@clisp.org>
10078
10079         linkat test: Avoid failure on Solaris 11 2010-11.
10080         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10081
10082 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10083
10084         utimens: work around glibc rounding bug on more platforms
10085         * lib/utimens.c (fdutimens): Work around rounding bug even if
10086         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10087         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10088
10089 2010-12-27  Bruno Haible  <bruno@clisp.org>
10090
10091         select tests: Improve comments.
10092         * tests/test-select.c (do_select): Add comments.
10093
10094 2010-12-27  Bruno Haible  <bruno@clisp.org>
10095
10096         select tests: Safer way of handling timeout.
10097         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10098         at every invocation.
10099
10100 2010-12-27  Bruno Haible  <bruno@clisp.org>
10101
10102         select tests: Use 'bool' where appropriate.
10103         * tests/test-select.c (connect_to_socket): Change argument type to
10104         'bool'.
10105
10106 2010-12-27  Bruno Haible  <bruno@clisp.org>
10107
10108         select tests: Use existing modules.
10109         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10110         (configure.ac): Don't test for unistd.h.
10111         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10112         declared in <unistd.h>.
10113
10114 2010-12-27  Bruno Haible  <bruno@clisp.org>
10115
10116         mbrtowc: Work around a Solaris 7 bug.
10117         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10118         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10119         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10120         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10121         MBRTOWC_NULL_ARG1_BUG.
10122         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10123         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10124         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10125         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10126
10127 2010-12-27  Jim Meyering  <meyering@redhat.com>
10128
10129         read-file.c: tweak syntax
10130         * lib/read-file.c (fread_file): Remove space after "*" in function
10131         definitions.
10132
10133 2010-12-27  Bruno Haible  <bruno@clisp.org>
10134
10135         times test: Avoid gcc warnings on OSF/1.
10136         * tests/test-times.c (main): Cast printf arguments from clock_t to
10137         'long int'.
10138
10139 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10140
10141         utimens: work around glibc rounding bug on older Linux kernels
10142         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10143         on Linux with a glibc whose utimes might not work, then work
10144         around a longstanding glibc bug involving rounding rather than
10145         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10147
10148 2010-12-26  Bruno Haible  <bruno@clisp.org>
10149
10150         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10151         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10152         _GL_CXXALIAS_SYS.
10153         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10154
10155 2010-12-26  Bruno Haible  <bruno@clisp.org>
10156
10157         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10158         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10159         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10160         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10161         looking for the declaration.
10162         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10163         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10164         problem.
10165         * doc/posix-functions/inet_pton.texi: Likewise.
10166
10167 2010-12-26  Bruno Haible  <bruno@clisp.org>
10168
10169         arpa_inet: Use the common idioms with C++ support.
10170         * lib/arpa_inet.in.h: Include c++defs.h.
10171         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10172         support.
10173         * modules/arpa_inet (Depends-on): Add c++defs.
10174         (Makefile.am): Substitute the contents of c++defs.h.
10175         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10176         * modules/arpa_inet-c++-tests: New file.
10177         * tests/test-arpa_inet-c++.cc: New file.
10178
10179 2010-12-25  Bruno Haible  <bruno@clisp.org>
10180
10181         Fix more C++ link errors on Solaris 8.
10182         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10183         $(LIB_EACCESS).
10184         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10185         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10186         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10187         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10188         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10189
10190 2010-12-25  Bruno Haible  <bruno@clisp.org>
10191
10192         printf-posix: Fix link error when a non-GCC compiler is used.
10193         * lib/stdio.in.h (printf): When not using GCC, override printf
10194         correctly.
10195         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10196
10197 2010-12-25  Bruno Haible  <bruno@clisp.org>
10198
10199         strerror_r-posix: Update doc.
10200         * doc/posix-functions/strerror_r.texi: Update doc about the return
10201         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10202
10203 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10204
10205         utimens: simplify the logic of the previous change
10206         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10207         This should not affect whether the test succeeds or fails.
10208
10209         utimens: configure better on hosts with NFS clock skew
10210         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10211         uses the clock of the local host.  It might use the clock of the
10212         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10214
10215 2010-12-25  Bruno Haible  <bruno@clisp.org>
10216
10217         ptsname test: Avoid failure on Solaris.
10218         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10219         open a pseudo-terminal; don't use BSD-style ptys.
10220         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10221
10222 2010-12-25  Bruno Haible  <bruno@clisp.org>
10223
10224         ptsname: Avoid ERANGE failure on some systems.
10225         * lib/ptsname.c (buffer): Increase size.
10226
10227 2010-12-25  Bruno Haible  <bruno@clisp.org>
10228
10229         rename, renameat: Avoid test failures at NFS mounted locations.
10230         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10231         so that subsequent mkdir calls succeed.
10232
10233 2010-12-25  Bruno Haible  <bruno@clisp.org>
10234
10235         iswblank: Fix C++ link error on Solaris 8.
10236         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10237         _GL_FUNCDECL_SYS.
10238
10239 2010-12-25  Bruno Haible  <bruno@clisp.org>
10240
10241         unistd: Fix C++ link error on Solaris 8.
10242         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10243
10244 2010-12-25  Bruno Haible  <bruno@clisp.org>
10245
10246         readlink doc: Mention an old glibc bug.
10247         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10248
10249 2010-12-25  Bruno Haible  <bruno@clisp.org>
10250
10251         fcntl-h: Fix for use of C++ on glibc systems.
10252         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10253         also on glibc systems in C++ mode.
10254         Reported by Gary V. Vaughan <gary@gnu.org>.
10255
10256 2010-12-25  Bruno Haible  <bruno@clisp.org>
10257
10258         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10259         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10260
10261 2010-12-25  Bruno Haible  <bruno@clisp.org>
10262
10263         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10264         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10265         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10266         test whether truncl works according to ISO C 99 with IEC 60559.
10267         * m4/truncl-ieee.m4: New file.
10268         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10269         m4/signbit.m4.
10270         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10271
10272 2010-12-25  Bruno Haible  <bruno@clisp.org>
10273
10274         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10275         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10276         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10277         test whether ceill works according to ISO C 99 with IEC 60559.
10278         * m4/ceill-ieee.m4: New file.
10279         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10280         m4/signbit.m4.
10281         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10282
10283 2010-12-25  Bruno Haible  <bruno@clisp.org>
10284
10285         Ensure all prerequisites of <wchar.h> are included.
10286         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10287         before <wchar.h>.
10288         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10289         gl_MBRLEN_NUL_RETVAL): Likewise.
10290         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10291         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10292         AC_FUNC_MBRTOWC): Likewise.
10293         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10294         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10296         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10297         Likewise.
10298         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10299         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10300         (gl_WCHAR_H): Improve comments.
10301         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10302
10303 2010-12-25  Bruno Haible  <bruno@clisp.org>
10304
10305         strtok_r: Fix C syntax error in autoconf macro.
10306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10307         characters in test program.
10308
10309 2010-12-24  Bruno Haible  <bruno@clisp.org>
10310
10311         ceil, trunc, round: Fix gcc warnings.
10312         * lib/ceil.c (MIN): Undefine before redefining.
10313         * lib/trunc.c (MIN): Likewise.
10314         * lib/round.c (MIN): Likewise.
10315         Include <math.h> first.
10316
10317 2010-12-24  Bruno Haible  <bruno@clisp.org>
10318
10319         select tests: Avoid failures on OSF/1 5.1.
10320         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10321         failure of closing the last socket; it may fail with ECONNRESET.
10322
10323 2010-12-24  Eric Blake  <eblake@redhat.com>
10324
10325         stdint: avoid HP-UX 10.20 preprocessor bug
10326         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10327         than #if.
10328         * tests/test-floor2.c (main): Likewise.
10329         Reported by Peter O'Gorman.
10330
10331         pipe: make obsoletion transition easier
10332         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10333         * modules/pipe (Files): Include revived file.
10334         (Include): Drop reference, to mirror getdate's behavior.
10335
10336 2010-12-24  Bruno Haible  <bruno@clisp.org>
10337
10338         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10339         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10340         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10341         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10342
10343 2010-12-24  Bruno Haible  <bruno@clisp.org>
10344
10345         gethostname: Ensure declaration on NonStop Kernel.
10346         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10347         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10348
10349 2010-12-24  Bruno Haible  <bruno@clisp.org>
10350
10351         sys_select: Ensure all necessary types on NonStop Kernel.
10352         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10353         include <sys/time.h>.
10354         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10355         NonStop Kernel.
10356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10357
10358 2010-12-24  Bruno Haible  <bruno@clisp.org>
10359
10360         sys_select: Remove unneeded include.
10361         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10362         have <sys/select.h>.
10363
10364 2010-12-24  Bruno Haible  <bruno@clisp.org>
10365
10366         gethostname: Provide a fallback for HOST_NAME_MAX.
10367         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10368         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10369         instead.
10370         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10371
10372 2010-12-24  Bruno Haible  <bruno@clisp.org>
10373
10374         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10375         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10376         (SA_RESTART): Likewise.
10377         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10378
10379 2010-12-24  Bruno Haible  <bruno@clisp.org>
10380
10381         signal: Define NSIG.
10382         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10383         * tests/test-signal.c (nsig): New variable.
10384         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10385
10386 2010-12-24  Bruno Haible  <bruno@clisp.org>
10387
10388         rename, renameat: Avoid test failures on OSF/1 5.1.
10389         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10390         alternative error codes.
10391         * tests/test-renameat.c (main): Likewise.
10392
10393 2010-12-24  Bruno Haible  <bruno@clisp.org>
10394
10395         *printf: Detect large precisions bug on Solaris 10/SPARC.
10396         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10397         by Paul Eggert.
10398         * tests/test-snprintf-posix.h (test_function): Add this test code here
10399         too.
10400         * tests/test-sprintf-posix.h (test_function): Likewise.
10401         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10402         * tests/test-vasprintf-posix.c (test_function): Likewise.
10403         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10404         around by gnulib.
10405         * doc/posix-functions/printf.texi: Likewise.
10406         * doc/posix-functions/snprintf.texi: Likewise.
10407         * doc/posix-functions/sprintf.texi: Likewise.
10408         * doc/posix-functions/vfprintf.texi: Likewise.
10409         * doc/posix-functions/vprintf.texi: Likewise.
10410         * doc/posix-functions/vsnprintf.texi: Likewise.
10411         * doc/posix-functions/vsprintf.texi: Likewise.
10412         * doc/posix-functions/dprintf.texi: Undo last commit.
10413         * doc/posix-functions/vdprintf.texi: Likewise.
10414
10415 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10416
10417         tests: port test-fdutimensat.c to Solaris 8
10418         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10419         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10420         On Solaris 8, it fails with errno == ENOSYS, because there is no
10421         futimens (so it can't use the fd), and there is no lutimens (so it
10422         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10423
10424         vsnprintf: make more consistent with snprintf; doc fixes
10425
10426         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10427         the byte count return problem was promoted from the snprintf-posix
10428         to the snprintf module.
10429         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10430         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10431         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10432         * tests/test-snprintf.c (main): Check the byte count returned.
10433         * tests/test-vsnprintf.c (main): Likewise.
10434
10435 2010-12-23  Eric Blake  <eblake@redhat.com>
10436
10437         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10438         * modules/sigpipe (License): Relax license.
10439
10440 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10441
10442         doc: document Solaris printf bug with large float precisions
10443         * doc/posix-functions/dprintf.texi (dprintf):
10444         * doc/posix-functions/fprintf.texi (fprintf):
10445         * doc/posix-functions/printf.texi (printf):
10446         * doc/posix-functions/snprintf.texi (snprintf):
10447         * doc/posix-functions/sprintf.texi (sprintf):
10448         * doc/posix-functions/vdprintf.texi (vdprintf):
10449         * doc/posix-functions/vfprintf.texi (vfprintf):
10450         * doc/posix-functions/vprintf.texi (vprintf):
10451         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10452         * doc/posix-functions/vsprintf.texi (vsprintf):
10453         Mention that these functions mishandle large floating point
10454         precisions on Solaris 10.  The same bug is also present in Solaris
10455         8, and I assume earlier.  This causes "cd gnulib-tests; make
10456         check" to fail on Solaris 8 (and I assume, later) when building
10457         the latest coreutils, in test-vasprintf-posix's call to
10458         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10459         the wide flavors (e.g., wprintf) so this patch just updates the
10460         documentation for the narrow ones.
10461
10462         test-posixtm.c: add two tests
10463         * tests/test-posixtm.c: Add two tests, to highlight the
10464         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10465         around this bug; this is merely to document it.
10466
10467 2010-12-22  Bruno Haible  <bruno@clisp.org>
10468
10469         getlogin_r: Work around portability problem on OSF/1.
10470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10471         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10472         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10473         test for a truncated result.
10474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10475         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10476         * modules/getlogin_r (Depends-on): Add memchr.
10477         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10478
10479 2010-12-22  Bruno Haible  <bruno@clisp.org>
10480
10481         ptsname: Avoid test failure on OSF/1 5.1.
10482         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10483         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10484         (same_slave): New function.
10485         (main): Use it to compare ptsname's result with the expected file name.
10486
10487 2010-12-22  Bruno Haible  <bruno@clisp.org>
10488
10489         Port extended stdio modules to HP NonStop Kernel.
10490         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10491         macros.
10492         * lib/fbufmode.c: Update comments.
10493         * lib/fflush.c: Likewise.
10494         * lib/fpurge.c: Likewise.
10495         * lib/freadable.c: Likewise.
10496         * lib/freadahead.c: Likewise.
10497         * lib/freading.c: Likewise.
10498         * lib/freadptr.c: Likewise.
10499         * lib/freadseek.c: Likewise.
10500         * lib/fseeko.c: Likewise.
10501         * lib/fseterr.c: Likewise.
10502         * lib/fwritable.c: Likewise.
10503         * lib/fwriting.c: Likewise.
10504         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10505
10506 2010-12-22  Bruno Haible  <bruno@clisp.org>
10507
10508         ttyname_r: Work around bug on OSF/1 5.1.
10509         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10510         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10511         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10512         present.
10513         * lib/ttyname_r.c (ttyname_r): Update comments.
10514
10515 2010-12-22  Bruno Haible  <bruno@clisp.org>
10516
10517         round: Implement result sign according to IEEE 754.
10518         * lib/round.c (MIN, MINUS_ZERO): New macros.
10519         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10520         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10521         * tests/test-round-ieee.c (main): Likewise.
10522         * tests/test-roundl-ieee.c (main): Likewise.
10523
10524         trunc: Implement result sign according to IEEE 754.
10525         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10526         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10527         * tests/test-trunc2.c: Include minus-zero.h.
10528         (MINUS_ZERO): New macro.
10529         (trunc_reference): Keep in sync with lib/trunc.c.
10530         * tests/test-truncf2.c: Include minus-zero.h.
10531         (MINUS_ZERO): New macro.
10532         (truncf_reference): Keep in sync with lib/trunc.c.
10533         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10534         * tests/test-trunc-ieee.c (main): Likewise.
10535         * tests/test-truncl-ieee.c (main): Likewise.
10536
10537         ceil: Implement result sign according to IEEE 754.
10538         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10539         (FUNC): Return -0.0 for -1 < x < 0.
10540         * tests/test-ceil2.c: Include minus-zero.h.
10541         (MINUS_ZERO): New macro.
10542         (ceil_reference): Keep in sync with lib/ceil.c.
10543         * tests/test-ceilf2.c: Include minus-zero.h.
10544         (MINUS_ZERO): New macro.
10545         (ceilf_reference): Keep in sync with lib/ceil.c.
10546         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10547         * tests/test-ceil-ieee.c (main): Likewise.
10548         * tests/test-ceill-ieee.c (main): Likewise.
10549
10550         floor: Implement result sign according to IEEE 754.
10551         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10552         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10553         * tests/test-floorf2.c (floorf_reference): Likewise.
10554         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10555         * tests/test-floor-ieee.c (main): Likewise.
10556         * tests/test-floorl-ieee.c (main): Likewise.
10557
10558 2010-12-22  Bruno Haible  <bruno@clisp.org>
10559
10560         getaddrinfo: Update doc.
10561         * doc/posix-functions/gai_strerror.texi: Return type is also different
10562         on AIX and HP-UX.
10563
10564 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10565
10566         getaddrinfo, inet_ntop: Update doc for Solaris.
10567         * doc/posix-functions/gai_strerror.texi: Return type is also an
10568         issue on Solaris 9 and earlier.
10569         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10570         on Solaris 10 and earlier.
10571
10572 2010-12-21  Bruno Haible  <bruno@clisp.org>
10573
10574         New module 'roundl-ieee'.
10575         * modules/roundl-ieee: New file.
10576         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10577         test whether roundl works according to ISO C 99 with IEC 60559.
10578         * m4/roundl-ieee.m4: New file.
10579         * modules/roundl-ieee-tests: New file.
10580         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10581         * tests/test-roundl.c (main): Remove signbit tests.
10582         * modules/roundl-tests (Depends-on): Remove signbit.
10583         * doc/posix-functions/roundl.texi: Mention the new module.
10584
10585 2010-12-21  Bruno Haible  <bruno@clisp.org>
10586
10587         New module 'truncl-ieee'.
10588         * modules/truncl-ieee: New file.
10589         * modules/truncl-ieee-tests: New file.
10590         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10591         * tests/test-truncl.c (main): Remove signbit tests.
10592         * modules/truncl-tests (Depends-on): Remove signbit.
10593         * doc/posix-functions/truncl.texi: Mention the new module.
10594
10595 2010-12-21  Bruno Haible  <bruno@clisp.org>
10596
10597         New module 'ceill-ieee'.
10598         * modules/ceill-ieee: New file.
10599         * modules/ceill-ieee-tests: New file.
10600         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10601         * tests/test-ceill.c (main): Remove signbit tests.
10602         * modules/ceill-tests (Depends-on): Remove signbit.
10603         * doc/posix-functions/ceill.texi: Mention the new module.
10604
10605 2010-12-21  Bruno Haible  <bruno@clisp.org>
10606
10607         New module 'floorl-ieee'.
10608         * modules/floorl-ieee: New file.
10609         * modules/floorl-ieee-tests: New file.
10610         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10611         * tests/test-floorl.c (main): Remove signbit tests.
10612         * modules/floorl-tests (Depends-on): Remove signbit.
10613         * doc/posix-functions/floorl.texi: Mention the new module.
10614
10615 2010-12-21  Bruno Haible  <bruno@clisp.org>
10616
10617         New module 'round-ieee'.
10618         * modules/round-ieee: New file.
10619         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10620         whether round works according to ISO C 99 with IEC 60559.
10621         * m4/round-ieee.m4: New file.
10622         * modules/round-ieee-tests: New file.
10623         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10624         * tests/test-round1.c (main): Remove signbit tests.
10625         * modules/round-tests (Depends-on): Remove 'signbit'.
10626         * doc/posix-functions/round.texi: Mention the new module.
10627
10628 2010-12-21  Bruno Haible  <bruno@clisp.org>
10629
10630         New module 'trunc-ieee'.
10631         * modules/trunc-ieee: New file.
10632         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10633         whether trunc works according to ISO C 99 with IEC 60559.
10634         * m4/trunc-ieee.m4: New file.
10635         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10637         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10638         * modules/trunc-ieee-tests: New file.
10639         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10640         * tests/test-trunc1.c (main): Remove signbit tests.
10641         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10642         * doc/posix-functions/trunc.texi: Mention the new module.
10643
10644 2010-12-21  Bruno Haible  <bruno@clisp.org>
10645
10646         New module 'ceil-ieee'.
10647         * modules/ceil-ieee: New file.
10648         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10649         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10650         ISO C 99 with IEC 60559.
10651         * m4/ceil-ieee.m4: New file.
10652         * modules/ceil (Files): Add lib/ceil.c.
10653         (Depends-on): Add 'float'.
10654         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10655         * lib/math.in.h (ceil): New declaration.
10656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10657         REPLACE_CEIL.
10658         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10659         * modules/ceil-ieee-tests: New file.
10660         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10661         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10662         * doc/posix-functions/ceil.texi: Mention the new module.
10663
10664 2010-12-21  Bruno Haible  <bruno@clisp.org>
10665
10666         New module 'floor-ieee'.
10667         * modules/floor-ieee: New file.
10668         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10669         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10670         ISO C 99 with IEC 60559.
10671         * m4/floor-ieee.m4: New file.
10672         * modules/floor (Files): Add lib/floor.c.
10673         (Depends-on): Add 'float'.
10674         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10675         * lib/math.in.h (floor): New declaration.
10676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10677         REPLACE_FLOOR.
10678         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10679         * modules/floor-ieee-tests: New file.
10680         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10681         * tests/test-math-c++.cc: Check the signature of 'floor'.
10682         * doc/posix-functions/floor.texi: Mention the new module.
10683
10684 2010-12-21  Bruno Haible  <bruno@clisp.org>
10685
10686         New module 'roundf-ieee'.
10687         * modules/roundf-ieee: New file.
10688         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10689         test whether roundf works according to ISO C 99 with IEC 60559.
10690         * m4/roundf-ieee.m4: New file.
10691         * modules/roundf-ieee-tests: New file.
10692         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10693         * tests/test-roundf1.c (main): Remove signbit tests.
10694         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10695         * doc/posix-functions/roundf.texi: Mention the new module.
10696
10697 2010-12-21  Bruno Haible  <bruno@clisp.org>
10698
10699         New module 'truncf-ieee'.
10700         * modules/truncf-ieee: New file.
10701         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10702         test whether truncf works according to ISO C 99 with IEC 60559.
10703         * m4/truncf-ieee.m4: New file.
10704         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10706         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10707         * modules/truncf-ieee-tests: New file.
10708         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10709         * tests/test-truncf1.c (main): Remove signbit tests.
10710         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10711         * doc/posix-functions/truncf.texi: Mention the new module.
10712
10713 2010-12-21  Bruno Haible  <bruno@clisp.org>
10714
10715         New module 'ceilf-ieee'.
10716         * modules/ceilf-ieee: New file.
10717         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10718         test whether ceilf works according to ISO C 99 with IEC 60559.
10719         * m4/ceilf-ieee.m4: New file.
10720         * modules/ceilf-ieee-tests: New file.
10721         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10722         * tests/test-ceilf1.c (main): Remove signbit tests.
10723         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10724         * doc/posix-functions/ceilf.texi: Mention the new module.
10725
10726 2010-12-21  Bruno Haible  <bruno@clisp.org>
10727
10728         New module 'floorf-ieee'.
10729         * modules/floorf-ieee: New file.
10730         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10731         test whether floorf works according to ISO C 99 with IEC 60559.
10732         * m4/floorf-ieee.m4: New file.
10733         * modules/floorf-ieee-tests: New file.
10734         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10735         * tests/test-floorf1.c (main): Remove signbit tests.
10736         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10737         * doc/posix-functions/floorf.texi: Mention the new module.
10738
10739 2010-12-21  Bruno Haible  <bruno@clisp.org>
10740
10741         Support for minus zero in autoconf macros.
10742         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10743         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10744         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10745         * tests/minus-zero.h: Update comments.
10746
10747 2010-12-21  Bruno Haible  <bruno@clisp.org>
10748
10749         Tests for module 'ceil'.
10750         * modules/ceil-tests: New file.
10751         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10752         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10753
10754 2010-12-21  Bruno Haible  <bruno@clisp.org>
10755
10756         Tests for module 'floor'.
10757         * modules/floor-tests: New file.
10758         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10759         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10760
10761 2010-12-21  Bruno Haible  <bruno@clisp.org>
10762
10763         math: Fix indentation.
10764         * lib/math.in.h (floorf): Fix indentation.
10765
10766 2010-12-21  Bruno Haible  <bruno@clisp.org>
10767
10768         Fix cross-compilation guesses on Solaris.
10769         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10770         not match "solaris2.10".
10771         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10772         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10773         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10774
10775 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10776
10777         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10778         This fixes a problem observed with the latest coreutils snapshot
10779         that caused a test to fail on Solaris 8.  src/csplit.c's call
10780         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10781         earlier, instead of returning the number of bytes that would have
10782         been generated; this causes csplit to incorrectly report memory
10783         exhaustion.
10784         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10785         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10786         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10787         comments to match.
10788         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10789         Fix typo in matching older versions of Solaris: "solaris2.10"
10790         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10791         only for guessing while cross-compiling.
10792         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10793
10794 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10795
10796         ftoastr: fix comment again
10797         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10799         Also, simplify example a bit by using flags = 0.
10800
10801 2010-12-20  Bruno Haible  <bruno@clisp.org>
10802
10803         round*, trunc*: Update documentation regarding glibc.
10804         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10805         * doc/posix-functions/round.texi: Likewise.
10806         * doc/posix-functions/roundl.texi: Likewise.
10807         * doc/posix-functions/truncf.texi: Likewise.
10808         * doc/posix-functions/trunc.texi: Likewise.
10809         * doc/posix-functions/truncl.texi: Likewise.
10810
10811 2010-12-20  Bruno Haible  <bruno@clisp.org>
10812
10813         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10814         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10815         * doc/posix-functions/round.texi: Likewise.
10816         * doc/posix-functions/roundl.texi: Likewise.
10817
10818 2010-12-20  Bruno Haible  <bruno@clisp.org>
10819
10820         ttyname_r: Add missing declaration on HP-UX 11.
10821         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10822         HAVE_TTYNAME_R.
10823         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10824         declared. Set HAVE_TTYNAME_R always.
10825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10826         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10827         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10828         HAVE_TTYNAME_R.
10829         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10830
10831 2010-12-20  Bruno Haible  <bruno@clisp.org>
10832
10833         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10834         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10835         * doc/posix-functions/getlogin_r.texi: Likewise.
10836         * tests/test-getlogin.c: Include <errno.h>.
10837         (main): Avoid test failure on HP-UX 11.11.
10838         * tests/test-getlogin_r.c (main): Likewise.
10839
10840 2010-12-20  Bruno Haible  <bruno@clisp.org>
10841
10842         getlogin_r: Add missing declaration on HP-UX 11.
10843         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10844         declared also when it exists as a function.
10845         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10846
10847 2010-12-20  Bruno Haible  <bruno@clisp.org>
10848
10849         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10850         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10851         through wcrtomb.
10852
10853 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10854
10855         ftoastr: fix comment
10856         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10857         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10858
10859 2010-12-19  Bruno Haible  <bruno@clisp.org>
10860
10861         isnan: Ensure it is a macro.
10862         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10863         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10864         Solaris.
10865
10866 2010-12-19  Bruno Haible  <bruno@clisp.org>
10867
10868         ldexpl test: Fix link error on OSF/1 5.1.
10869         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10870
10871 2010-12-19  Bruno Haible  <bruno@clisp.org>
10872
10873         wctype: Make it work in C++ mode on OSF/1 5.1.
10874         * lib/wctype.in.h (iswblank): Declare but not define here.
10875         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10876         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10877         * modules/wctype (Files): Add lib/iswblank.c.
10878
10879 2010-12-19  Bruno Haible  <bruno@clisp.org>
10880
10881         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10882         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10883         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10884
10885 2010-12-19  Bruno Haible  <bruno@clisp.org>
10886
10887         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10889         _POSIX_PII_SOCKET.
10890         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10891         * doc/posix-functions/recvfrom.texi: Likewise.
10892         * doc/posix-functions/send.texi: Likewise.
10893         * doc/posix-functions/sendto.texi: Likewise.
10894
10895 2010-12-19  Bruno Haible  <bruno@clisp.org>
10896
10897         tcgetsid: Add missing declaration on OSF/1 5.1.
10898         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10899         HAVE_TCGETSID.
10900         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10901         Don't set HAVE_TCGETSID.
10902         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10903         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10904         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10905         HAVE_TCGETSID.
10906         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10907
10908 2010-12-19  Bruno Haible  <bruno@clisp.org>
10909
10910         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10911         * lib/stdio.in.h: During the include_next statement, let recursive
10912         includes of this file include only the system header file.
10913
10914 2010-12-19  Bruno Haible  <bruno@clisp.org>
10915
10916         iconv_open: Fix regression from 2010-12-04.
10917         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10918         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10919
10920 2010-12-19  Bruno Haible  <bruno@clisp.org>
10921
10922         stdbool test: Avoid a gcc warning.
10923         * tests/test-stdbool.c (main): Fail if e1 is false.
10924         Reported by Jim Meyering.
10925
10926 2010-12-19  Jim Meyering  <meyering@redhat.com>
10927
10928         setenv: restore to working order
10929         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10930         mistakenly removed.
10931         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10932         HAVE_SETENV.
10933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10934         HAVE_SETENV.
10935
10936 2010-12-19  Bruno Haible  <bruno@clisp.org>
10937
10938         Document some different function declarations on OSF/1 5.1.
10939         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10940         * doc/posix-functions/inet_ntop.texi: Likewise.
10941         * doc/posix-functions/gethostname.texi: Likewise.
10942         * lib/unistd.in.h (gethostname): Update comment.
10943
10944 2010-12-19  Bruno Haible  <bruno@clisp.org>
10945
10946         doc: Mention vasprintf-posix module.
10947         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10948         the 'vasprintf-posix' module.
10949         * doc/glibc-functions/vasprintf.texi: Likewise.
10950
10951 2010-12-19  Bruno Haible  <bruno@clisp.org>
10952
10953         unsetenv: Add missing declaration on OSF/1 5.1.
10954         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10955         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10956         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10958         not HAVE_UNSETENV.
10959         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10960         HAVE_UNSETENV.
10961         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10962
10963 2010-12-19  Bruno Haible  <bruno@clisp.org>
10964
10965         setenv: Add missing declaration on OSF/1 5.1.
10966         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10968         declared. Don't set HAVE_SETENV.
10969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10970         not HAVE_SETENV.
10971         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10972         HAVE_SETENV.
10973         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10974
10975 2010-12-19  Bruno Haible  <bruno@clisp.org>
10976
10977         nl_langinfo tests: Avoid gcc warning.
10978         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10979
10980 2010-12-19  Bruno Haible  <bruno@clisp.org>
10981
10982         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10983         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10984         _GL_CXXALIAS_SYS.
10985
10986 2010-12-19  Bruno Haible  <bruno@clisp.org>
10987
10988         stdbool: Relax test.
10989         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10990         address to 'bool' work in static initializer, for compilers other than
10991         GCC.
10992
10993 2010-12-19  Bruno Haible  <bruno@clisp.org>
10994
10995         ftello: Add missing declaration on OSF/1 5.1.
10996         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10997         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10999         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11000         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11001
11002 2010-12-19  Bruno Haible  <bruno@clisp.org>
11003
11004         fseeko: Add missing declaration on OSF/1 5.1.
11005         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11006         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11008         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11009         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11010
11011 2010-12-19  Bruno Haible  <bruno@clisp.org>
11012
11013         fchdir: Add missing declaration on OSF/1 5.1.
11014         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11017         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11018         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11019
11020 2010-12-19  Bruno Haible  <bruno@clisp.org>
11021
11022         relocatable-prog-wrapper: Separate from relocatable-prog.
11023         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11024         uninstall-relocwrapper rule here.
11025         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11026         Reported by Ian Beckwith <ianb@erislabs.net>.
11027
11028 2010-12-19  Bruno Haible  <bruno@clisp.org>
11029
11030         unistr/u8-mbsnlen: Add missing dependency.
11031         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11032         Reported by Ian Beckwith <ianb@erislabs.net>.
11033
11034 2010-12-19  Bruno Haible  <bruno@clisp.org>
11035
11036         iconv: Make it possible again to use this module without 'iconv-h'.
11037         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11038         if it is not defined.
11039         Reported by Ian Beckwith <ianb@erislabs.net>.
11040
11041 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11042
11043         acl: port to Solaris 8 when copying from tmpfs to ufs
11044         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11045         error number.  Problem observed on Solaris 8 with latest
11046         coreutils, with "mv A B", where A is on a tmpfs file system and B
11047         is on a ufs file system.  This caused coreutils' mv/part-symlink
11048         test to fail.
11049
11050         tests: set fail=0 at start
11051         * tests/init.sh (setup_): Move fail=0 initialization here ...
11052         (mktempd_): ... from here, so that tests can rely on fail being
11053         set to 0 initially.  This fixes a problem in coreutils; see:
11054         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11055
11056 2010-12-18  Bruno Haible  <bruno@clisp.org>
11057
11058         memmem-simple: Stylistic changes.
11059         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11060         Fix preprocessor directive indentation.
11061
11062 2010-12-15  Pádraig Brady <P@draigBrady.com>
11063
11064         memmem, memmem-simple: reorganize and expand empty needle check
11065         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11066         functional checks to memmem-simple so that one has a fully functional
11067         memmem by using just this module.
11068         Restrict the performance only check to the memmem module.
11069         Also expand the empty needle check to ensure the correct
11070         pointer is returned, not just a non NULL pointer.
11071         * doc/glibc-functions/memmem.texi: Rearrange the portability
11072         documentation to correlate with the rearranged checks.
11073         Clarify exactly how the memmem and memmem-simple modules
11074         relate to each other.
11075
11076 2010-12-15  Pádraig Brady <P@draigBrady.com>
11077             Bruno Haible  <bruno@clisp.org>
11078
11079         Improve cross-compilation guesses for uClibc.
11080         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11081         that uClibc does not have the glibc bug.
11082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11083         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11084
11085 2010-12-14  Eric Blake  <eblake@redhat.com>
11086
11087         configmake: provide fallbacks for oldest supported autotools
11088         * m4/configmake.m4: New file.
11089         * modules/configmake (Files): Ship it.
11090         (configure.ac): Use it to guarantee fallbacks.
11091
11092 2010-12-13  Pádraig Brady <P@draigBrady.com>
11093
11094         read-file: Improve handling of large files
11095         * lib/read-file.c (fread_file): Minimize realloc()s
11096         for regular files, and better manage sizes around SIZE_MAX.
11097
11098 2010-12-13  Eric Blake  <eblake@redhat.com>
11099
11100         cloexec, fcntl: relax license
11101         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11102         consent from all contributors.
11103         * modules/fcntl (License): Likewise.
11104
11105 2010-12-10  Bruno Haible  <bruno@clisp.org>
11106
11107         Tests for module 'pipe-posix'.
11108         * modules/pipe-posix-tests: New file.
11109         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11110
11111 2010-12-10  Bruno Haible  <bruno@clisp.org>
11112
11113         pipe-posix: Make it work in C++ mode.
11114         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11115         (pipe): Use common idiom, not a macro definition.
11116         * lib/pipe.c: New file.
11117         * m4/pipe.m4: New file.
11118         * modules/pipe-posix (Description): Enhance.
11119         (Files): Add lib/pipe.c, m4/pipe.m4.
11120         (configure.ac): Invoke gl_FUNC_PIPE.
11121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11122         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11123         * tests/test-unistd-c++.cc: Check the signature of pipe.
11124
11125 2010-12-10  Bruno Haible  <bruno@clisp.org>
11126
11127         Rename module 'pipe' to 'spawn-pipe'.
11128         * modules/spawn-pipe: New file, renamed from modules/pipe.
11129         (Files, configure.ac, Makefile.am): Update.
11130         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11131         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11132         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11133         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11134         "spawn-pipe.h" instead of "pipe.h".
11135         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11136         to gl_SPAWN_PIPE.
11137         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11138         (Files, Makefile.am): Update.
11139         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11140         Update.
11141         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11142         Include "spawn-pipe.h" instead of "pipe.h".
11143         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11144         * lib/javacomp.c: Likewise.
11145         * lib/javaversion.c: Likewise.
11146         * lib/pipe-filter-gi.c: Likewise.
11147         * lib/pipe-filter-ii.c: Likewise.
11148         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11149         * modules/javacomp (Depends-on): Likewise.
11150         * modules/javaversion (Depends-on): Likewise.
11151         * modules/pipe-filter-gi (Depends-on): Likewise.
11152         * modules/pipe-filter-ii (Depends-on): Likewise.
11153         * MODULES.html.sh (Executing programs): Update.
11154         * NEWS: Mention the change.
11155
11156 2010-12-10  Eric Blake  <eblake@redhat.com>
11157
11158         pipe-posix: new module
11159         * modules/pipe-posix: New file.
11160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11161         (gl_UNISTD_H): Check for declaration.
11162         * modules/unistd (Makefile.am): Substitute it.
11163         * lib/unistd.in.h (pipe): Provide it for mingw.
11164         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11165         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11166
11167 2010-12-07  Bruno Haible  <bruno@clisp.org>
11168
11169         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11170         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11171         u8_strcmp_gnu.
11172         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11173
11174 2010-12-06  Bruno Haible  <bruno@clisp.org>
11175
11176         Update internal documentation.
11177         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11178
11179 2010-12-04  Bruno Haible  <bruno@clisp.org>
11180
11181         Put more information about failed tests into the test return codes.
11182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11183         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11184         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11185         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11186         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11188         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11189         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11190         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11192         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11193         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11194         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11195         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11196         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11197         returns a bit mask.
11198         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11199         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11200         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11201         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11202         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11204         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11205         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11206         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11207         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11208         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11209         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11210         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11211         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11212         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11213         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11214         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11215         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11216         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11217         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11218         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11219         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11221         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11222         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11223         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11224         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11225         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11226         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11227         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11228         gl_PRINTF_PRECISION): Likewise.
11229         * m4/regex.m4 (gl_REGEX): Likewise.
11230         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11232         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11233         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11236         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11237         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11239         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11240         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11241         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11243         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11244         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11245         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11246         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11247         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11249         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11250         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11251         enumerated value.
11252         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11253
11254 2010-12-04  Bruno Haible  <bruno@clisp.org>
11255
11256         Update for Solaris 11 2010-11.
11257         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11258         Express, released in November 2010.
11259
11260 2010-12-04  Bruno Haible  <bruno@clisp.org>
11261
11262         nproc: Relax license.
11263         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11264         and Paul Eggert.
11265         Requested by Ludovic Courtès <ludo@gnu.org>.
11266
11267 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11268
11269         utimecmp: fine-grained src to nearby coarse-grained dest
11270
11271         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11272         and the source is on a file system with higher-resolution time
11273         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11274         not work, and the time stamps are close together, the algorithm to
11275         determine the exact resolution from the read-back mtime was buggy:
11276         it had a "!=" where it should have had an "==".  This bug has been
11277         in the code ever since it was introduced to gnulib.
11278         Problem reported by Dan Jacobson in
11279         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11280
11281 2010-11-30  Bruno Haible  <bruno@clisp.org>
11282
11283         strerror_r-posix: Fix autoconf test.
11284         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11285
11286 2010-11-28  Bruno Haible  <bruno@clisp.org>
11287             Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         Tests for module 'getdomainname'.
11290         * modules/getdomainname-tests: New file.
11291         * tests/test-getdomainname.c: New file, based on
11292         tests/test-gethostname.c.
11293
11294 2010-11-28  Bruno Haible  <bruno@clisp.org>
11295             Paul Eggert  <eggert@cs.ucla.edu>
11296
11297         getdomainname: Use the system function when possible.
11298         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11299         (getdomainname): Replace if needed. Provide the declaration if it is
11300         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11301         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11302         (getdomainname): When the system has getdomainname, call the system
11303         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11304         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11305         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11306         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11307         the function if its second argument is of type 'int' or if it is found
11308         in libnsl.
11309         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11310         <sys/systeminfo.h> and sysinfo().
11311         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11313         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11314         HAVE_GETDOMAINNAME.
11315         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11316         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11317         * doc/glibc-functions/getdomainname.texi: Document the problems with
11318         the getdomainname declaration.
11319
11320 2010-11-28  Bruno Haible  <bruno@clisp.org>
11321
11322         sys_socket: Ensure ss_family field on AIX.
11323         * lib/sys_socket.in.h (ss_family): New macro definition.
11324         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11325         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11326         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11327         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11328         * modules/sys_socket (Makefile.am): Substitute
11329         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11330         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11331
11332 2010-11-27  Bruno Haible  <bruno@clisp.org>
11333
11334         readline: Improve configure output.
11335         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11336         "checking for readline..." result understandable.
11337
11338 2010-11-27  Bruno Haible  <bruno@clisp.org>
11339
11340         *printf-posix: Detect a bug on Solaris 10/x86.
11341         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11342         for floating-point output.
11343         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11344         directive.
11345         * tests/test-snprintf-posix.h (test_function): Likewise.
11346         * tests/test-sprintf-posix.h (test_function): Likewise.
11347         * tests/test-vasprintf-posix.c (test_function): Likewise.
11348         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11349         * doc/posix-functions/printf.texi: Likewise.
11350         * doc/posix-functions/snprintf.texi: Likewise.
11351         * doc/posix-functions/sprintf.texi: Likewise.
11352         * doc/posix-functions/vfprintf.texi: Likewise.
11353         * doc/posix-functions/vprintf.texi: Likewise.
11354         * doc/posix-functions/vsnprintf.texi: Likewise.
11355         * doc/posix-functions/vsprintf.texi: Likewise.
11356         * doc/glibc-functions/obstack_printf.texi: Likewise.
11357         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11358
11359 2010-11-27  Bruno Haible  <bruno@clisp.org>
11360
11361         Fix link error when module libunistring-optional is in use.
11362         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11363         * modules/striconveha-tests (Makefile.am): Likewise.
11364
11365 2010-11-27  Bruno Haible  <bruno@clisp.org>
11366
11367         regex: Mention link dependencies.
11368         * modules/regex (Link): New section.
11369         * modules/rpmatch (Link): Likewise.
11370         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11371
11372 2010-11-27  Bruno Haible  <bruno@clisp.org>
11373
11374         ftoastr: Fix compilation error on Solaris.
11375         * lib/ftoastr.c: Include <config.h>.
11376
11377 2010-11-27  Bruno Haible  <bruno@clisp.org>
11378
11379         getloadavg: Update documentation.
11380         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11381
11382 2010-11-27  Bruno Haible  <bruno@clisp.org>
11383
11384         sys_socket: Fix test whether the functions are declared.
11385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11386         not <sys/select.h>.
11387
11388 2010-11-27  Bruno Haible  <bruno@clisp.org>
11389
11390         getpass: Make sure to get system declaration on some platforms.
11391         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11392         gl_USE_SYSTEM_EXTENSIONS.
11393         * modules/getpass (Depends-on): Add extensions.
11394
11395 2010-11-26  Bruno Haible  <bruno@clisp.org>
11396
11397         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11398         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11399         'iconv' module is present.
11400         (ICONV_CONST): New macro.
11401         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11402         ICONV_CONST.
11403         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11404         set ICONV_CONST.
11405         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11406         here.
11407         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11408         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11409         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11410         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11411         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11412         present.
11413
11414 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11415
11416         ftoastr: comment fix
11417         * lib/ftoastr.c: "little" -> "little or no" in comment
11418
11419 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11420
11421         stdint: port to GCC 4.3 + OSX + Octave
11422         On this platform, stdint.h is buggy and defines int64_t to long
11423         long int.  The replacement defined it to long int, causing
11424         problems with C++ style name mangling.  Instead, trust the system
11425         definition if INT64_MAX is defined, and likewise for the unsigned
11426         variant.   Problem reported by Jarno Rajahalme in
11427         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11428         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11429         and don't mess with int64_t and INT64_MAX in this case.
11430         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11431
11432 2010-11-24  Bruno Haible  <bruno@clisp.org>
11433
11434         doc: Corrections regarding MacOS X 10.4 and 10.5.
11435         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11436         MacOS X.
11437         Reported by Simon Josefsson.
11438
11439 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11440
11441         Uninstall ".bin" files installed by relocwrapper.
11442         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11443         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11444         unless it is already there.
11445
11446 2010-11-21  Bruno Haible  <bruno@clisp.org>
11447
11448         Update for NetBSD 5.0.
11449         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11450         NetBSD; the test fails on NetBSD 5.0.
11451         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11452         about NetBSD.
11453
11454 2010-11-21  Bruno Haible  <bruno@clisp.org>
11455
11456         Update for HP-UX 11.23 and HP-UX 11.31.
11457         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11458         HP-UX.
11459
11460 2010-11-21  Bruno Haible  <bruno@clisp.org>
11461
11462         Update for MacOS X 10.5.
11463         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11464         MacOS X; the test fails on MacOS X 10.5.8.
11465         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11466         about MacOS X.
11467
11468 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11469
11470         bootstrap: add bootstrap_sync option.
11471         See discussion at
11472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11473         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11474         * build-aux/bootstrap: Accept --bootstrap-sync to update
11475         bootstrap if it is not identical to the local gnulib's
11476         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11477         enable this by default.  Accept --no-bootstrap-sync to disable
11478         it.
11479
11480 2010-11-20  Bruno Haible  <bruno@clisp.org>
11481
11482         Ensure that <features.h> is included before __GLIBC__ is tested.
11483         * lib/printf-parse.h: Include <features.h>.
11484         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11485         Reported by Mike Frysinger <vapier@gentoo.org>.
11486
11487         Ensure that <features.h> is included before __GLIBC__ is tested.
11488         * lib/wchar.in.h: Include <features.h>.
11489         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11490         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11491         Reported by Mike Frysinger <vapier@gentoo.org>.
11492
11493         Ensure that <features.h> is included before __GLIBC__ is tested.
11494         * lib/arpa_inet.in.h: Include <features.h>.
11495         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11496         * modules/arpa_inet (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         * build-aux/link-warning.h: Include <features.h>.
11501         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11502         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11503         Reported by Mike Frysinger <vapier@gentoo.org>.
11504
11505         Ensure that <features.h> is included before __GLIBC__ is tested.
11506         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11507         Reported by Mike Frysinger <vapier@gentoo.org>.
11508
11509 2010-11-20  Bruno Haible  <bruno@clisp.org>
11510
11511         memmem: Fix autoconf test.
11512         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11513
11514 2010-11-20  Bruno Haible  <bruno@clisp.org>
11515
11516         Port to uClibc.
11517         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11518         * lib/fcntl.in.h: Likewise.
11519         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11520         * lib/mbrtowc.c (mbrtowc): Likewise.
11521         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11522         * lib/strerror_r.c: Likewise.
11523         * lib/unistr/u8-strnlen.c: Likewise.
11524         * lib/vasnprintf.c (decimal_point_char): Likewise.
11525         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11526         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11527         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11528         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11529         * tests/test-sigaction.c (handler, main): Likewise.
11530         * lib/freading.h: Treat uClibc like a non-glibc platform.
11531         * lib/freading.c: Likewise.
11532         * lib/gettext.h: Likewise.
11533         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11534         Likewise.
11535         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11536         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11537         * lib/propername.c (proper_name_utf8): Likewise.
11538         * lib/spawn.in.h: Likewise.
11539         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11540         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11541         mem_cd_iconveh_internal): Likewise.
11542         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11543         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11544         strstr, strcasestr): Likewise.
11545         * lib/unicodeio.c (unicode_to_mb): Likewise.
11546         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11547         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11548         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11549         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11550         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11551         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11552         * lib/unistr/u8-stpncpy.c: Likewise.
11553         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11554         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11556         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11557         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11559         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11562         Likewise.
11563         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11564         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11565         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11568         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11569         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11570         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11571         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11572         * tests/test-striconveha.c (main): Likewise.
11573         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11574         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11575         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11576         * doc/posix-functions/getline.texi: Likewise.
11577         Reported by Mike Frysinger <vapier@gentoo.org>.
11578
11579 2010-11-20  Bruno Haible  <bruno@clisp.org>
11580
11581         nproc: Fix condition.
11582         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11583         HAVE_PTHREAD_AFFINITY_NP.
11584
11585 2010-11-20  Bruno Haible  <bruno@clisp.org>
11586
11587         Fix a comment.
11588         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11589
11590 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11591
11592         ftoastr: don't assume snprintf
11593         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11594         Implement a subset of snprintf here, by using sprintf safely.
11595         * modules/ftoastr (Depends-on): Remove snprintf.
11596
11597 2010-11-19  Jim Meyering  <meyering@redhat.com>
11598
11599         test-rename.h: fix compilation failure
11600         * tests/test-rename.h (test_rename): Add omitted "}".
11601
11602 2010-11-17  Jim Meyering  <meyering@redhat.com>
11603
11604         maint.mk: add a URL discussing the no-@acronym policy
11605         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11606
11607 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11608
11609         ftoastr: depend on snprintf, improve comments
11610         * lib/ftoastr.c: Also mention Loitsch's draft.
11611         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11612         needed in the current implementation, but it might simplify
11613         speeding up the code later.
11614         * modules/ftoastr: Depend on snprintf; this improves portability.
11615         Suggested by Bruno Haible in the same email.
11616
11617         ftoastr: port to hosts lacking strtof and strtold
11618         Problem reported by Bruno Haible in
11619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11620         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11621         environment and strtold (and presumably strtof) are not available.
11622         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11623         (configure.ac): Require gl_C99_STRTOLD.
11624
11625 2010-11-18  Bruno Haible  <bruno@clisp.org>
11626
11627         c-strtold: Avoid link error on AIX 7.
11628         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11629         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11630         (gl_C_STRTOLD): Test whether strtold_l exists.
11631         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11632
11633 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         intprops: new macro INT_BITS_STRLEN_BOUND
11636         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11637         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11638         not exposed.  Also, it uses a slightly tighter bound than before;
11639         though this makes no practical difference, we might as well be as
11640         tight as we easily can.
11641
11642         ftoastr: new module, for lossless conversion of floats to short strings
11643         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11644         * modules/ftoastr: New files.
11645
11646 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11647
11648         bootstrap: port to Solaris sed
11649         * build-aux/bootstrap (get_version): Port to Solaris sed.
11650         See Ralf Wildenhues's note in
11651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11652
11653 2010-11-14  Jim Meyering  <meyering@redhat.com>
11654
11655         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11656         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11657         and move definition closer to sole use.
11658
11659 2010-11-13  Jim Meyering  <meyering@redhat.com>
11660
11661         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11662         Now we require at least autoconf-2.59, which means the work-around
11663         is no longer needed.
11664         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11666         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11667         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11668         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11669
11670 2010-11-13  Bruno Haible  <bruno@clisp.org>
11671
11672         rename, renameat: Avoid test failures at NFS mounted locations.
11673         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11674         functions.
11675         (test_rename): Use assert_nonexistent.
11676         * tests/test-rename.c: Include <dirent.h>.
11677         * tests/test-renameat.c: Likewise.
11678         Reported by Gary V. Vaughan <gary@gnu.org>.
11679
11680         rename, renameat: Document Linux bug with NFS
11681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11682         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11683         * doc/posix-functions/renameat.texi: Likewise.
11684         Suggested by Eric Blake.
11685
11686 2010-11-13  Bruno Haible  <bruno@clisp.org>
11687
11688         rename test: Add comments.
11689         * tests/test-rename.h (test_rename): Add structure and comments.
11690
11691 2010-11-13  Eric Blake  <eblake@redhat.com>
11692
11693         maintainer-makefile: cover a few more files
11694         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11695         scripts generated within C files, for libvirt.
11696
11697 2010-11-13  Bruno Haible  <bruno@clisp.org>
11698
11699         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11700         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11701         character, return the number of bytes that belong together, not always
11702         1.
11703         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11704         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11705         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11706         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11707         number of bytes of an invalid character.
11708         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11709         (main): Invoke it.
11710         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11711         results.
11712         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11713         malformed byte sequences.
11714         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11715         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11716         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11717         Reported by Ben Pfaff and Paolo Bonzini.
11718
11719 2010-11-13  Bruno Haible  <bruno@clisp.org>
11720
11721         openat: Work around glibc bug with fchownat() and empty file names.
11722         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11723         (gl_FUNC_FCHOWNAT): Invoke it.
11724         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11725         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11726         Reported by Gary V. Vaughan <gary@gnu.org>.
11727
11728 2010-11-13  Bruno Haible  <bruno@clisp.org>
11729
11730         openat: Ensure autoconf macro ordering.
11731         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11732         gl_USE_SYSTEM_EXTENSIONS.
11733         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11734
11735 2010-11-13  Bruno Haible  <bruno@clisp.org>
11736
11737         Update comments.
11738         * lib/unistr/u8-check.c: Update file name in comments.
11739         * lib/unistr/u8-mblen.c: Likewise.
11740         * lib/unistr/u8-prev.c: Likewise.
11741         * lib/unistr/u8-strmblen.c: Likewise.
11742         * lib/unistr/u8-strmbtouc.c: Likewise.
11743
11744 2010-11-13  Jim Meyering  <meyering@redhat.com>
11745
11746         tests: avoid test failure on Solaris 10 due to lack of PATH export
11747         * tests/test-update-copyright.sh: Don't forget to export PATH.
11748
11749         init.sh: ensure that IFS is defined, just in case...
11750         * tests/init.sh (setup_): Ensure that IFS is defined,
11751         so that saving and restoring it works as expected.  This
11752         appears to be useful at least for an old version of dash
11753         from a long time ago (RH 6).  See here for details:
11754         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11755
11756         maint.mk: tighten "test a == b" check
11757         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11758         test to files that contain something like #!/bin/sh.
11759         Without this, coreutils would get two false positives in
11760         the comments of C source files.
11761
11762 2010-11-12  Eric Blake  <eblake@redhat.com>
11763
11764         bootstrap: fix typo in previous attempt
11765         * build-aux/bootstrap (buildreq): Correct the grouping.
11766         Reported by Paul Eggert.
11767
11768         maintainer-makefile: prohibit test x == x
11769         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11770         Based on a report by Matthias Bolte.
11771
11772         bootstrap: allow FreeBSD gzip
11773         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11774         which has no '.' and goes to stderr.
11775         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11776         Reported by Matthias Bolte.
11777
11778         maintainer-makefile: check for i18n setup
11779         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11780         will likely work.
11781
11782 2010-11-12  Bruno Haible  <bruno@clisp.org>
11783
11784         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11785         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11786         * lib/nanosleep.c (nanosleep): Likewise.
11787
11788 2010-11-11  Bruno Haible  <bruno@clisp.org>
11789
11790         fcntl-h: Fix for use of C++ on glibc systems.
11791         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11792         also on glibc systems in C++ mode.
11793         Reported by Gary V. Vaughan <gary@gnu.org>.
11794
11795 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11796
11797         mknod: avoid false failure with dash
11798         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11799
11800 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11801
11802         unlink: Fix "is it should" typo in diagnostic.
11803         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11805
11806 2010-11-11  Bruno Haible  <bruno@clisp.org>
11807
11808         Tests for module 'strerror_r-posix'.
11809         * modules/strerror_r-posix-tests: New file.
11810         * tests/test-strerror_r.c: New file.
11811         * tests/test-string-c++.cc: Check the signature of strerror_r.
11812
11813         New module 'strerror_r-posix'.
11814         * lib/string.in.h (strerror_r): New declaration.
11815         * lib/strerror_r.c: New file.
11816         * m4/strerror_r.m4: New file.
11817         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11818         of strerror_r.
11819         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11820         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11821         * modules/strerror_r-posix: New file.
11822         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11823         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11824         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11825         portability problems.
11826
11827 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11828
11829         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11830         line is also considered for output. Quoted function name in shell
11831         command, so temporary files for functions like MyClass::operator()
11832         are removed correctly without errors.
11833
11834 2010-11-09  Bruno Haible  <bruno@clisp.org>
11835
11836         * doc/posix-functions/strerror.texi: List more failing platforms.
11837
11838         * doc/posix-functions/strerror.texi: Add a comment.
11839
11840 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11841
11842         fdopendir: fix bug on MacOS X when low on file descriptors
11843
11844         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11845         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11846         All callers changed.
11847         (fdopendir): Invoke save_cwd at the top level, not after using
11848         multiple dup() calls to use up file descriptors.  Then retry
11849         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11850         less than the maximum number of open file descriptors, because
11851         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11852         on Mac OS X 10.6.4 for tar 1.24
11853         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11854         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11855         and for tar 1.25
11856         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11857
11858 2010-11-07  Bruno Haible  <bruno@clisp.org>
11859
11860         vasnprintf: Support I flag on glibc systems.
11861         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11862         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11863         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11864         snprintf function.
11865         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11866         glibc systems.
11867         * tests/test-vasnprintf-posix3.c: New file.
11868         * modules/vasnprintf-posix-tests (Files): Add it.
11869         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11870
11871 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11872
11873         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11874         * MODULES.html.sh: For compiler warnings, use name
11875         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11876
11877 2010-11-05  Eric Blake  <eblake@redhat.com>
11878
11879         ceil, floor: avoid spurious failure with icc
11880         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11881         [denormals-as-zero] when optimizing without -mieee-fp option.
11882         * tests/test-floorf2.c (floorf_reference): Likewise.
11883         * tests/test-ceilf1.c (dummy): New function.
11884         (main): Use it to outsmart icc's optimization.
11885         * tests/test-floorf1.c (dummy, main): Likewise.
11886
11887         tests: require working signbit
11888         * modules/ceilf-tests (Depends-on): Add signbit.
11889         * modules/ceill-tests (Depends-on): Likewise.
11890         * modules/floorf-tests (Depends-on): Likewise.
11891         * modules/floorl-tests (Depends-on): Likewise.
11892         * modules/round-tests (Depends-on): Likewise.
11893         * modules/roundf-tests (Depends-on): Likewise.
11894         * modules/roundl-tests (Depends-on): Likewise.
11895         * modules/trunc-tests (Depends-on): Likewise.
11896         * modules/truncf-tests (Depends-on): Likewise.
11897         * modules/truncl-tests (Depends-on): Likewise.
11898
11899         strtod: work around icc bug
11900         * lib/strtod.c (minus_zero): Define to working value.
11901         (strtod): Use it to avoid icc bug.
11902
11903         copysign: enhance tests
11904         * modules/copysign-tests (Files): Add minus-zero.h.
11905         * tests/test-copysign.c (main): Also test zeros.
11906
11907 2010-11-04  Eric Blake  <eblake@redhat.com>
11908
11909         ceil, floor, round, trunc: enhance tests of -0
11910         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11911         * tests/test-ceill.c (main): Likewise.
11912         * tests/test-floorf1.c (main): Likewise.
11913         * tests/test-floorl.c (main): Likewise.
11914         * tests/test-round1.c (main): Likewise.
11915         * tests/test-roundf1.c (main): Likewise.
11916         * tests/test-roundl.c (main): Likewise.
11917         * tests/test-trunc1.c (main): Likewise.
11918         * tests/test-truncf1.c (main): Likewise.
11919         * tests/test-truncl.c (main): Likewise.
11920
11921 2010-11-04  Eric Blake  <eblake@redhat.com>
11922
11923         frexp, tests: work around ICC bug with -zero
11924         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11925         works with more compilers.
11926         * tests/minus-zero.h: New file.
11927         * modules/ceilf-tests (Files): Include it.
11928         * modules/ceill-tests (Files): Likewise.
11929         * modules/floorf-tests (Files): Likewise.
11930         * modules/floorl-tests (Files): Likewise.
11931         * modules/frexp-nolibm-tests (Files): Likewise.
11932         * modules/frexp-tests (Files): Likewise.
11933         * modules/frexpl-nolibm-tests (Files): Likewise.
11934         * modules/frexpl-tests (Files): Likewise.
11935         * modules/isnan-tests (Files): Likewise.
11936         * modules/isnand-nolibm-tests (Files): Likewise.
11937         * modules/isnand-tests (Files): Likewise.
11938         * modules/isnanf-nolibm-tests (Files): Likewise.
11939         * modules/isnanf-tests (Files): Likewise.
11940         * modules/isnanl-nolibm-tests (Files): Likewise.
11941         * modules/isnanl-tests (Files): Likewise.
11942         * modules/round-tests (Files): Likewise.
11943         * modules/roundf-tests (Files): Likewise.
11944         * modules/roundl-tests (Files): Likewise.
11945         * modules/ldexpl-tests (Files): Likewise.
11946         * modules/signbit-tests (Files): Likewise.
11947         * modules/snprintf-posix-tests (Files): Likewise.
11948         * modules/sprintf-posix-tests (Files): Likewise.
11949         * modules/strtod-tests (Files): Likewise.
11950         * modules/trunc-tests (Files): Likewise.
11951         * modules/truncf-tests (Files): Likewise.
11952         * modules/truncl-tests (Files): Likewise.
11953         * modules/vsnprintf-posix-tests (Files): Likewise.
11954         * modules/vsprintf-posix-tests (Files): Likewise.
11955         * modules/vasnprintf-posix-tests (Files): Likewise.
11956         * modules/vasprintf-posix-tests (Files): Likewise.
11957         * tests/test-ceilf1.c (main): Use it.
11958         * tests/test-ceill.c (main): Likewise.
11959         * tests/test-floorf1.c (main): Likewise.
11960         * tests/test-floorl.c (main): Likewise.
11961         * tests/test-frexp.c (main): Likewise.
11962         * tests/test-frexpl.c (main): Likewise.
11963         * tests/test-isnan.c (main): Likewise.
11964         * tests/test-isnand.h (main): Likewise.
11965         * tests/test-isnanf.h (main): Likewise.
11966         * tests/test-isnanl.h (main): Likewise.
11967         * tests/test-ldexpl.c (main): Likewise.
11968         * tests/test-round.c (main): Likewise.
11969         * tests/test-roundf.c (main): Likewise.
11970         * tests/test-roundl.c (main): Likewise.
11971         * tests/test-signbit.c (test_signbitf, test_signbitd)
11972         (test_signbitl): Likewise.
11973         * tests/test-snprintf-posix.h (test_function): Likewise.
11974         * tests/test-sprintf-posix.h (test_function): Likewise.
11975         * tests/test-strtod.c (main): Likewise.
11976         * tests/test-trunc1.c (main): Likewise.
11977         * tests/test-truncf1.c (main): Likewise.
11978         * tests/test-truncl.c (main): Likewise.
11979
11980         isnanl: work around icc bug
11981         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11982
11983 2010-11-03  Eric Blake  <eblake@redhat.com>
11984
11985         tests: fix compiler warnings
11986         * tests/test-getopt.h (test_getopt): Fix condition.
11987         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11988         * tests/test-pipe2.c (main): Likewise.
11989         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11990
11991         utimens: fix broken m4 test
11992         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11993
11994 2010-10-28  Bruno Haible  <bruno@clisp.org>
11995
11996         posix_spawn*, getdtablesize: Relax license.
11997         * modules/posix_spawn (License): Change to LGPLv2+.
11998         * modules/posix_spawnp (License): Likewise.
11999         * modules/posix_spawn-internal (License): Likewise.
12000         * modules/posix_spawnattr_init (License): Likewise.
12001         * modules/posix_spawnattr_getflags (License): Likewise.
12002         * modules/posix_spawnattr_setflags (License): Likewise.
12003         * modules/posix_spawnattr_getpgroup (License): Likewise.
12004         * modules/posix_spawnattr_setpgroup (License): Likewise.
12005         * modules/posix_spawnattr_getschedparam (License): Likewise.
12006         * modules/posix_spawnattr_setschedparam (License): Likewise.
12007         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12008         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12009         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12010         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12011         * modules/posix_spawnattr_getsigmask (License): Likewise.
12012         * modules/posix_spawnattr_setsigmask (License): Likewise.
12013         * modules/posix_spawnattr_destroy (License): Likewise.
12014         * modules/posix_spawn_file_actions_init (License): Likewise.
12015         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12016         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12017         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12018         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12019         * modules/getdtablesize (License): Likewise.
12020         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12021
12022 2010-10-26  Bruno Haible  <bruno@clisp.org>
12023
12024         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12025         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12026         Cygwin and mingw.
12027         Suggested by Eric Blake.
12028
12029 2010-10-26  Bruno Haible  <bruno@clisp.org>
12030
12031         stdio: Work around compilation error due to renameat() on Solaris 10.
12032         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12033         * lib/renameat.c: Don't include <unistd.h> here.
12034         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12035         Reported by Paul Eggert and Eric Blake.
12036
12037 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12038
12039         renameat: port to Solaris 10, which declares renameat in unistd.h
12040
12041         * lib/renameat.c: Include unistd.h before stdio.h, because
12042         Solaris 10 declares renameat in unistd.h.  Problem encountered
12043         when building GNU tar 1.24 on Solaris 10.
12044
12045 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12046
12047         fdopendir: fix C89 compilation
12048         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12049         compilers.
12050
12051 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         inttostr: simplify by removing unnecessary redundancy
12054         * lib/anytostr.c: Don't include verify.h.
12055         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12056         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12057         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12058         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12059         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12060         Likewise.
12061         * modules/inttostr (Depends-on): Remove 'verify'.
12062
12063 2010-10-23  Bruno Haible  <bruno@clisp.org>
12064
12065         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12066         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12067         Reported by Eric Blake.
12068
12069 2010-10-23  Bruno Haible  <bruno@clisp.org>
12070
12071         Tests: Fix LOCALE_JA on MirBSD 10.
12072         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12073         to an UTF-8 locale.
12074         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12075         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12076         Reported by Eric Blake.
12077
12078 2010-10-21  Bruno Haible  <bruno@clisp.org>
12079
12080         nl_langinfo test: Avoid test failure on NetBSD 5.
12081         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12082         Reported by Eric Blake.
12083
12084 2010-10-21  Eric Blake  <eblake@redhat.com>
12085
12086         c-stack: work around libsigsegv 2.8 bug
12087         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12088         overflow on at least PowerPC64.
12089
12090 2010-10-17  Bruno Haible  <bruno@clisp.org>
12091
12092         userspec: Drop redundant file.
12093         * modules/userspec (Files): Remove lib/inttostr.h.
12094
12095 2010-10-17  Bruno Haible  <bruno@clisp.org>
12096
12097         nl_langinfo tests: Silence some warnings.
12098         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12099         Reported by Jim Meyering.
12100
12101 2010-10-17  Bruno Haible  <bruno@clisp.org>
12102
12103         Make use of GCC's attribute __alloc_size__.
12104         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12105         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12106         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12107         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12108         __alloc_size__.
12109         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12110         Suggested by Jim Meyering.
12111
12112 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12113
12114         bootstrap: anchor .gitignore entries.
12115         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12116         with...
12117         (insert_vc_ignore): ... this new function, which prepends `/' to
12118         all .gitignore entries before passing them to
12119         insert_sorted_if_absent.
12120
12121 2010-10-16  Bruno Haible  <bruno@clisp.org>
12122
12123         nextafter: Fix configure check.
12124         * modules/nextafter (configure.ac): Correct expected prototype.
12125
12126 2010-10-16  Bruno Haible  <bruno@clisp.org>
12127
12128         termios: Update documentation.
12129         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12130
12131 2010-10-16  Bruno Haible  <bruno@clisp.org>
12132
12133         tests: Make them compile with TinyCC.
12134         * tests/test-strstr.c (main): Remove parentheses around array
12135         initializer.
12136
12137 2010-10-15  Eric Blake  <eblake@redhat.com>
12138
12139         ignore-value: make header idempotent
12140         * lib/ignore-value.h: Add double-inclusion guards.
12141         Reported by Stefan Berger.
12142
12143 2010-10-15  Jim Meyering  <meyering@redhat.com>
12144
12145         GNUmakefile: handle "stable" target, not "major"
12146         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12147         lists in maint.mk and announce-gen.  Without this, "make stable"
12148         would fail to ensure that $(VERSION) is up to date.
12149
12150 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12151
12152         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12153         & co.
12154
12155 2010-10-14  Bruno Haible  <bruno@clisp.org>
12156
12157         vasnprintf: Don't set errno to 0.
12158         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12159         block that sets it to 0.
12160         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12161
12162 2010-10-14  Bruno Haible  <bruno@clisp.org>
12163
12164         socketlib: Fix.
12165         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12166         gl_PREREQ_SYS_H_WINSOCK2.
12167         Reported by Ian Beckwith <ianb@erislabs.net>.
12168
12169 2010-10-13  Jim Meyering  <meyering@redhat.com>
12170
12171         test-select-stdin.c: avoid warn_unused_result warnings
12172         * tests/test-select-stdin.c: Include "macros.h".
12173         ASSERT that read and fflush succeed.
12174
12175 2010-10-13  Jim Meyering  <meyering@redhat.com>
12176
12177         git-version-gen: do require git-VC'd files in cwd
12178         * build-aux/git-version-gen: Reject a git version string
12179         if there are no commits associated with the current directory.
12180         This avoids an unlikely false-positive (unrelated dir whose parent
12181         repository also contains a tag matching v*), as pointed out
12182         by Giuseppe Scrivano in
12183         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12184
12185 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12186
12187         argv-iter: omit nonconforming declaration
12188         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12189         enum arg_iter_err declaration, which doesn't conform to C99.
12190         Solaris 10 cc warns about this.
12191
12192 2010-10-13  Eric Blake  <eblake@redhat.com>
12193
12194         termios: fix compilation on mingw
12195         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12196         (gl_TERMIOS_H): Adjust it on mingw.
12197         * modules/termios (Makefile.am): Substitute new key.
12198         * lib/termios.in.h (includes): Make include_next conditional.
12199         * doc/posix-headers/termios.texi (termios.h): Update
12200         documentation.
12201         Reported by Daniel P. Berrange.
12202
12203 2010-10-13  Jim Meyering  <meyering@redhat.com>
12204
12205         git-version-gen: don't require that .git/ be in the current dir
12206         * build-aux/git-version-gen: Adjust this script so that it works
12207         when run from any working directory beneath the top-level .git/-
12208         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12210
12211         test-select: avoid warn_unused_result warnings
12212         * tests/test-select.c: Include "macros.h".
12213         ASSERT that each call to read, write, and pipe succeeds.
12214         While not technically required, also check each "close".
12215         * modules/select-tests (Files): Add tests/macros.h.
12216
12217         test-symlinkat: remove declaration of unused local
12218         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12219
12220         test-inttostr: avoid shadowing warnings
12221         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12222         and use malloc rather than the stack for the same reason as
12223         mentioned in the comment justifying the other allocation.
12224
12225 2010-10-11  Bruno Haible  <bruno@clisp.org>
12226
12227         stdlib: Allow multiple gnulib generated replacements to coexist.
12228         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12229         Reported by Sam Steingold <sds@gnu.org>.
12230
12231 2010-10-11  Jim Meyering  <meyering@redhat.com>
12232
12233         fix a documentation typo
12234         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12235
12236 2010-10-11  Eric Blake  <eblake@redhat.com>
12237
12238         futimens: work around Solaris 11 bug
12239         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12240         * tests/test-futimens.h (test_futimens): Enhance, rather than
12241         weaken test.
12242         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12243
12244 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12245
12246         Indentation.
12247         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12248         higher-level operators more to the left.
12249
12250 2010-10-11  Jim Meyering  <meyering@redhat.com>
12251
12252         test-futimens: avoid unwarranted test failure on Solaris 5.11
12253         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12254         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12255         because it tries to dereference the NULL name argument.
12256
12257 2010-10-11  Bruno Haible  <bruno@clisp.org>
12258
12259         Indentation.
12260         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12261         indentation.
12262
12263 2010-10-11  Jim Meyering  <meyering@redhat.com>
12264
12265         spawn.in.h: make indentation consistent with parentheses
12266         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12267         Make indentation consistent with parentheses.
12268
12269 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12270
12271         Fix mismatched parens in previous commit
12272         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12273         parens.
12274
12275 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12276
12277         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12278
12279         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12280         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12281         * lib/malloca.c: Include "verify.h".
12282         (verify1): Remove, replacing with a verify call.
12283         * lib/relocwrapper.c (verify1): Likewise.
12284         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12285         Likewise.
12286         * modules/malloca (Depends-on): Add 'verify'.
12287         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12288         * modules/vasnprintf (Depends-on): Add 'verify'.
12289         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12290         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12291         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12292         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12293         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12294         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12295         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12296
12297         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12298
12299         Formerly the style was sometimes 2*X - 1, because the C standard
12300         was wrongly thought to disallow ?: in integral constant expressions.
12301         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12302         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12303         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12304         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12305         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12306         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12307         verify that time_t cannot be floating.
12308
12309 2010-10-08  Eric Blake  <eblake@redhat.com>
12310
12311         time: enforce recent POSIX ruling that time_t is integral
12312         * lib/time.in.h (__time_t_must_be_integral): Detect any
12313         problematic systems, allowing the rest of gnulib to assume POSIX.
12314
12315 2010-10-08  Jim Meyering  <meyering@redhat.com>
12316
12317         fdopendir: fix a bug on systems lacking openat and /proc support
12318         OpenBSD 4.7 is one such system.  The most noticeable effect was
12319         failure of any application making nontrivial use of fts: rm, du,
12320         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12321           ./rm: traversal failed: `a': Bad file descriptor
12322         Debugging that, you see that even though FD 6 was closed just
12323         prior to the opendir call in fd_clone_opendir, its resulting
12324         dir->dd_fd was 8, rather than the expected value of 6:
12325
12326         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12327         93                close (fd);
12328         (gdb) n
12329         94                dir = fd_clone_opendir (dupfd);
12330         (gdb) n
12331         95                saved_errno = errno;
12332         (gdb) p dir->dd_fd
12333         $11 = 8
12334
12335         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12336         The problem is that on OpenBSD, fd_clone_opendir has to resort
12337         to using the old-style save/restore CWD mechanism, due to its
12338         lack of openat/proc support, and *that* would steal the FD (6)
12339         that opendir was supposed to use.
12340
12341         The fix is to squirrel away the desired FD so that save_cwd uses a
12342         different one, and then free the dest FD right before calling opendir.
12343         That guarantees opendir will use the required file descriptor.
12344
12345         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12346
12347 2010-10-08  Bruno Haible  <bruno@clisp.org>
12348
12349         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12350         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12351
12352 2010-10-08  Bruno Haible  <bruno@clisp.org>
12353
12354         nanosleep: Make replacement POSIX compliant.
12355         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12356         is out of range.
12357         Reported by Jim Meyering.
12358
12359 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12360
12361         bootstrap: add hook for altering gnulib.mk, for Bison
12362         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12363         the Bison bootstrapping process can rewrite file names and variables
12364         in this file before later parts of 'bootstrap' use the file.
12365         Bison wants to include lib/gnulib.mk from the top-level makefile,
12366         so it needs the file names in this file to be relative to the top
12367         level, not relative to lib; plus it needs variable names to be
12368         rewritten.
12369         (slurp): Use the new function.
12370
12371         bootstrap: reformat for readability
12372         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12373
12374 2010-10-08  Eric Blake  <eblake@redhat.com>
12375
12376         docs: update cygwin progress
12377         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12378         1.7.7.
12379         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12380         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12381         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12382         * doc/posix-functions/carg.texi (carg): Likewise.
12383         * doc/posix-functions/cargf.texi (cargf): Likewise.
12384         * doc/posix-functions/casin.texi (casin): Likewise.
12385         * doc/posix-functions/casinf.texi (casinf): Likewise.
12386         * doc/posix-functions/casinh.texi (casinh): Likewise.
12387         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12388         * doc/posix-functions/catan.texi (catan): Likewise.
12389         * doc/posix-functions/catanf.texi (catanf): Likewise.
12390         * doc/posix-functions/catanh.texi (catanh): Likewise.
12391         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12392         * doc/posix-functions/ccos.texi (ccos): Likewise.
12393         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12394         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12395         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12396         * doc/posix-functions/cexp.texi (cexp): Likewise.
12397         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12398         * doc/posix-functions/cimag.texi (cimag): Likewise.
12399         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12400         * doc/posix-functions/clog.texi (clog): Likewise.
12401         * doc/posix-functions/clogf.texi (clogf): Likewise.
12402         * doc/posix-functions/conj.texi (conj): Likewise.
12403         * doc/posix-functions/conjf.texi (conjf): Likewise.
12404         * doc/posix-functions/cpow.texi (cpow): Likewise.
12405         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12406         * doc/posix-functions/cproj.texi (cproj): Likewise.
12407         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12408         * doc/posix-functions/creal.texi (creal): Likewise.
12409         * doc/posix-functions/crealf.texi (crealf): Likewise.
12410         * doc/posix-functions/csin.texi (csin): Likewise.
12411         * doc/posix-functions/csinf.texi (csinf): Likewise.
12412         * doc/posix-functions/csinh.texi (csinh): Likewise.
12413         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12414         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12415         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12416         * doc/posix-functions/ctan.texi (ctan): Likewise.
12417         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12418         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12419         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12420         * doc/posix-headers/complex.texi (complex.h): Likewise.
12421
12422 2010-10-07  Jim Meyering  <meyering@redhat.com>
12423
12424         parse-datetime: avoid compilation failure on OpenBSD 4.7
12425         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12426         This works around a compilation failure on OpenBSD 4.7:
12427         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12428
12429 2010-10-07  Eric Blake  <eblake@redhat.com>
12430
12431         docs: update cygwin progress
12432         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12433         1.7.6.
12434         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12435         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12436         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12437         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12438         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12439         Likewise.
12440         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12441         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12442         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12443         Likewise.
12444         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12445         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12446         Likewise.
12447         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12448         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12449         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12450         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12451         Likewise.
12452         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12453         Likewise.
12454         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12455
12456         docs: update parse-datetime history
12457         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12458         documentation of this function's history and alternatives.
12459
12460         cygwin: use more robust version check
12461         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12462         exclude an eventual cygwin 1.9.1.
12463         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12465         (gl_FUNC_STRCASESTR): Likewise.
12466         Reported by Bruno Haible.
12467
12468 2010-10-06  Bruno Haible  <bruno@clisp.org>
12469
12470         string, sys_select: Avoid #including large headers unless necessary.
12471         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12472         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12473         OSF/1, BeOS, Haiku.
12474         Reported by Jim Meyering.
12475
12476 2010-10-05  Eric Blake  <eblake@redhat.com>
12477
12478         memmem, strstr, strcasestr: fix bug with long periodic needle
12479         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12480         periodic needle having false positive.
12481         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12482         and cygwin 1.7.7.
12483         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12485         (gl_FUNC_STRCASESTR): Likewise.
12486         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12487         * tests/test-memmem.c (main): Expose the bug.
12488         * tests/test-strcasestr.c (main): Likewise.
12489         * tests/test-strstr.c (main): Likewise.
12490         * tests/test-c-strcasestr.c (main): Likewise.
12491         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12492         * doc/posix-functions/strstr.texi (strstr): Likewise.
12493         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12494         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12495
12496 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12497
12498         parse-datetime: do some more renaming
12499         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12500         parse_datetime, not get_date.  Mention the renaming.
12501         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12502         in comments.
12503         * m4/bison.m4: Likewise.
12504
12505 2010-10-05  Eric Blake  <eblake@redhat.com>
12506
12507         parse-datetime: better name than get_date
12508         * NEWS: Reword the deprecation notice.
12509         * modules/get_date: Rename to modules/parse-datetime.
12510         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12511         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12512         * lib/get_date.y: Rename to lib/parse-datetime.y.
12513         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12514         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12515         * doc/getdate.texi: Provide fallback wrapper.
12516         * lib/getdate.h: Move guts, and wrap...
12517         * lib/parse-datetime.h: ...new file.
12518         * lib/parse-datetime.y (get_date): Rename...
12519         (parse_datetime): ...to this.
12520         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12521         (gl_PARSE_DATETIME): ...to this.
12522         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12523         documentation.
12524         * modules/getdate (Files): Provide fallback docs and header.
12525         (Notice, Depends-on): Update references.
12526         * tests/test-parse-datetime.c: Likewise.
12527         * DEPENDENCIES: Likewise.
12528         * MODULES.html.sh (Date and time <time.h>): Likewise.
12529         * doc/parse-datetime.texi (Date input formats)
12530         (Authors of parse_datetime): Likewise.
12531         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12532         (Include): Likewise.
12533         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12534         * gnulib-tool: Likewise.
12535         * m4/bison.m4 (gl_BISON): Likewise.
12536         Suggested by Bruno Haible.
12537
12538 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12539
12540         more ports to Solaris tr, which needs [] around ranges
12541         * gnulib-tool: Solaris tr needs [] around ranges.
12542         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12543         * tests/test-pipe-filter-gi1.c (main): Likewise.
12544         * tests/test-pipe-filter-ii1.c (main): Likewise.
12545
12546 2010-10-05  Eric Blake  <eblake@redhat.com>
12547
12548         bootstrap: fix Solaris regression
12549         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12550         around ranges.
12551         Reported by Pádraig Brady.
12552
12553         bootstrap: work with pkg-config
12554         * build-aux/bootstrap (check_versions): Also transliterate - in
12555         prerequisite name.
12556         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12557         prerequisites that were already found, to avoid confusion.
12558         Reported by Justin Clift.
12559
12560         faccessat: remove unused wrappers
12561         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12562         presence of these wrappers dragged in -lgen on Solaris.
12563         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12564
12565 2010-10-05  Jim Meyering  <meyering@redhat.com>
12566
12567         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12568         * Makefile (sc_pragma_columns): New syntax-check rule.
12569
12570 2010-10-04  Bruno Haible  <bruno@clisp.org>
12571
12572         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12573         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12574         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12575         Reported by Bruce Korb and Eric Blake.
12576
12577 2010-10-04  Bruno Haible  <bruno@clisp.org>
12578
12579         threadlib: Make option --with-libpth-prefix work.
12580         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12581         use $LIBPTH, not just -lpth.
12582
12583 2010-10-04  Bruno Haible  <bruno@clisp.org>
12584
12585         Avoid line length limitation from HP NonStop system header files.
12586         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12587         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12588         * lib/ctype.in.h: Likewise.
12589         * lib/dirent.in.h: Likewise.
12590         * lib/errno.in.h: Likewise.
12591         * lib/fcntl.in.h: Likewise.
12592         * lib/float.in.h: Likewise.
12593         * lib/getopt.in.h: Likewise.
12594         * lib/iconv.in.h: Likewise.
12595         * lib/inttypes.in.h: Likewise.
12596         * lib/langinfo.in.h: Likewise.
12597         * lib/locale.in.h: Likewise.
12598         * lib/math.in.h: Likewise.
12599         * lib/netdb.in.h: Likewise.
12600         * lib/netinet_in.in.h: Likewise.
12601         * lib/poll.in.h: Likewise.
12602         * lib/pthread.in.h: Likewise.
12603         * lib/pty.in.h: Likewise.
12604         * lib/sched.in.h: Likewise.
12605         * lib/se-selinux.in.h: Likewise.
12606         * lib/search.in.h: Likewise.
12607         * lib/signal.in.h: Likewise.
12608         * lib/spawn.in.h: Likewise.
12609         * lib/stdarg.in.h: Likewise.
12610         * lib/stddef.in.h: Likewise.
12611         * lib/stdint.in.h: Likewise.
12612         * lib/stdio.in.h: Likewise.
12613         * lib/stdlib.in.h: Likewise.
12614         * lib/string.in.h: Likewise.
12615         * lib/strings.in.h: Likewise.
12616         * lib/sys_file.in.h: Likewise.
12617         * lib/sys_ioctl.in.h: Likewise.
12618         * lib/sys_select.in.h: Likewise.
12619         * lib/sys_socket.in.h: Likewise.
12620         * lib/sys_stat.in.h: Likewise.
12621         * lib/sys_time.in.h: Likewise.
12622         * lib/sys_times.in.h: Likewise.
12623         * lib/sys_utsname.in.h: Likewise.
12624         * lib/sys_wait.in.h: Likewise.
12625         * lib/sysexits.in.h: Likewise.
12626         * lib/termios.in.h: Likewise.
12627         * lib/time.in.h: Likewise.
12628         * lib/unistd.in.h: Likewise.
12629         * lib/wchar.in.h: Likewise.
12630         * lib/wctype.in.h: Likewise.
12631         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12632         * modules/ctype (Makefile.am): Likewise.
12633         * modules/dirent (Makefile.am): Likewise.
12634         * modules/errno (Makefile.am): Likewise.
12635         * modules/fcntl-h (Makefile.am): Likewise.
12636         * modules/float (Makefile.am): Likewise.
12637         * modules/getopt-posix (Makefile.am): Likewise.
12638         * modules/iconv-h (Makefile.am): Likewise.
12639         * modules/inttypes (Makefile.am): Likewise.
12640         * modules/langinfo (Makefile.am): Likewise.
12641         * modules/locale (Makefile.am): Likewise.
12642         * modules/math (Makefile.am): Likewise.
12643         * modules/netdb (Makefile.am): Likewise.
12644         * modules/netinet_in (Makefile.am): Likewise.
12645         * modules/poll-h (Makefile.am): Likewise.
12646         * modules/pthread (Makefile.am): Likewise.
12647         * modules/pty (Makefile.am): Likewise.
12648         * modules/sched (Makefile.am): Likewise.
12649         * modules/search (Makefile.am): Likewise.
12650         * modules/selinux-h (Makefile.am): Likewise.
12651         * modules/signal (Makefile.am): Likewise.
12652         * modules/spawn (Makefile.am): Likewise.
12653         * modules/stdarg (Makefile.am): Likewise.
12654         * modules/stddef (Makefile.am): Likewise.
12655         * modules/stdint (Makefile.am): Likewise.
12656         * modules/stdio (Makefile.am): Likewise.
12657         * modules/stdlib (Makefile.am): Likewise.
12658         * modules/string (Makefile.am): Likewise.
12659         * modules/strings (Makefile.am): Likewise.
12660         * modules/sys_file (Makefile.am): Likewise.
12661         * modules/sys_ioctl (Makefile.am): Likewise.
12662         * modules/sys_select (Makefile.am): Likewise.
12663         * modules/sys_socket (Makefile.am): Likewise.
12664         * modules/sys_stat (Makefile.am): Likewise.
12665         * modules/sys_time (Makefile.am): Likewise.
12666         * modules/sys_times (Makefile.am): Likewise.
12667         * modules/sys_utsname (Makefile.am): Likewise.
12668         * modules/sys_wait (Makefile.am): Likewise.
12669         * modules/sysexits (Makefile.am): Likewise.
12670         * modules/termios (Makefile.am): Likewise.
12671         * modules/time (Makefile.am): Likewise.
12672         * modules/unistd (Makefile.am): Likewise.
12673         * modules/wchar (Makefile.am): Likewise.
12674         * modules/wctype (Makefile.am): Likewise.
12675
12676 2010-10-04  Bruno Haible  <bruno@clisp.org>
12677
12678         read-file tests: Avoid a test failure on NonStop Kernel.
12679         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12680         a regular file.
12681         Reported by Joachim Schmitz <schmitz@hp.com>.
12682
12683 2010-10-03  Bruno Haible  <bruno@clisp.org>
12684
12685         gnulib-tool: Fixes for --create-testdir with --libtool.
12686         * gnulib-tool (func_get_automake_snippet): Don't augment
12687         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12688         an executable.
12689         (func_create_testdir): Handle module 'alloca' like func_import.
12690         Reported by Bruce Korb <bruce.korb@gmail.com>.
12691
12692 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12693
12694         Avoid some lines longer than 80 characters.
12695         * lib/stdint.in.h: Break long comment lines.
12696         * lib/math.in.h: Likewise.
12697         (_GL_NUM_UINT_WORDS): New macro, for readability.
12698         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12699         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12700         * lib/stdlib.in.h: Likewise.
12701         * lib/spawn.in.h: Likewise.
12702         * lib/sys_socket.in.h: Update an URL.
12703         * lib/sys_stat.in.h: Break long line.
12704
12705 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12706
12707         Improve pmccabe2html.
12708         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12709         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12710         when the sources change. Remove the line in the HTML about "Used
12711         ranges" (which implied that there might be other unused ranges),
12712         rename "Resume" to "Summary" (easier to understand for more users).
12713         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12714         styles, and some unnecessary blank lines.
12715
12716 2010-10-03  Bruno Haible  <bruno@clisp.org>
12717             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12718
12719         acl: Add support for ACLs on NonStop Kernel.
12720         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12721         Check whether the function aclsort() exists.
12722         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12723         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12724         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12725         (acl_nontrivial [HAVE_ACLSORT]: New function.
12726         (file_has_acl): Implement for NonStop Kernel.
12727         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12728         (qset_acl): Implement for NonStop Kernel.
12729         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12730         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12731         (main): Implement for NonStop Kernel.
12732         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12733         Kernel. Handle this flavor.
12734         * tests/test-set-mode-acl.sh: Likewise.
12735         * tests/test-copy-acl.sh: Likewise.
12736         * tests/test-copy-file.sh: Likewise.
12737
12738 2010-10-03  Bruno Haible  <bruno@clisp.org>
12739
12740         Info about ACLs on NonStop Kernel.
12741         * doc/acl-resources.txt: Add info about NonStop Kernel.
12742         References by Joachim Schmitz <schmitz@hp.com>.
12743
12744 2010-10-02  Bruno Haible  <bruno@clisp.org>
12745
12746         Define missing EDQUOT on NonStop Kernel.
12747         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12748         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12749         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12750         missing.
12751         * doc/posix-headers/errno.texi: Mention the NSK bug.
12752         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12753         Reported by Joachim Schmitz <schmitz@hp.com>.
12754
12755 2010-10-02  Bruno Haible  <bruno@clisp.org>
12756
12757         Update doc for POSIX:2008.
12758         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12759         Update URL of POSIX specification.
12760
12761 2010-10-02  Bruno Haible  <bruno@clisp.org>
12762
12763         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12764         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12765         from gnulib, not from Automake.
12766
12767 2010-10-02  Bruno Haible  <bruno@clisp.org>
12768
12769         New module 'system-posix'.
12770         * modules/system-posix: New file.
12771         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12772         module is present.
12773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12774         GNULIB_SYSTEM_POSIX.
12775         * modules/stdlib (Depends-on): Remove sys_wait.
12776         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12777         * doc/posix-functions/system.texi: Mention the new module.
12778         * doc/posix-headers/stdlib.texi: Likewise.
12779         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12780         define test_sys_wait_macros to a no-op.
12781         Reported by Sam Steingold <sds@gnu.org>.
12782
12783 2010-09-30  Bruno Haible  <bruno@clisp.org>
12784
12785         More renaming from 'getdate' to 'get_date'.
12786         * doc/get_date.texi: Renamed from doc/getdate.texi.
12787         * modules/get_date (Files): Update.
12788         * MODULES.html.sh (Date and time <time.h>): Update.
12789         * DEPENDENCIES: Update.
12790         * gnulib-tool: Update comment.
12791         * m4/bison.m4 (gl_BISON): Likewise.
12792         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12793
12794 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12795
12796         bootstrap: support ACLOCAL_FLAGS during aclocal
12797         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12798         can add additional -I dir for third-party .m4 files.
12799
12800 2010-09-30  Eric Blake  <eblake@redhat.com>
12801
12802         bootstrap: use glibtoolize on MacOS
12803         * build-aux/bootstrap (check_versions): Convert libtool into
12804         libtoolize.
12805         (tool search): Move libtool check earlier, and look for
12806         glibtoolize for MacOS.
12807         (gnulib_tool_options): Auto-add --libtool when appropriate.
12808         Reported by Justin Clift.
12809
12810         poll: fix typo that broke test on MacOS
12811         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12812         Reported by Justin Clift.
12813
12814         getdate: rename to get_date
12815         Note: getdate.h is not renamed, to minimize client impact.
12816         * modules/getdate: Mark obsolete.  Move old contents...
12817         * modules/get_date: ...to new module name.
12818         * modules/getdate-tests: Move...
12819         * modules/get_date-tests: ...here.
12820         * m4/getdate.m4: Move...
12821         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12822         * lib/getdate.y: Move...
12823         * lib/get_date.y: ...here.
12824         * tests/test-getdate.c: Move...
12825         * tests/test-get_date.c: ...here.
12826         * doc/posix-functions/getdate.texi (getdate): Update name.
12827         * NEWS: Mention the change.
12828
12829 2010-09-29  Bruno Haible  <bruno@clisp.org>
12830
12831         Separate the module 'waitpid' from the module 'sys_wait'.
12832         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12833         present.
12834         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12835         gl_MODULE_INDICATOR_FOR_TESTS.
12836         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12837         * modules/sys_wait (Depends-on): Remove waitpid.
12838         (Makefile.am): Substitute GNULIB_WAITPID.
12839         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12840         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12841         signature only if the 'waitpid' module is present.
12842         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12843         * NEWS: Mention the change.
12844         * modules/grantpt (Depends-on): Add waitpid.
12845         * modules/wait-process (Depends-on): Likewise.
12846
12847 2010-09-29  Bruno Haible  <bruno@clisp.org>
12848
12849         More tests for module 'sys_wait'.
12850         * modules/sys_wait-c++-tests: New file.
12851         * tests/test-sys_wait-c++.cc: New file.
12852         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12853         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12854
12855 2010-09-29  Bruno Haible  <bruno@clisp.org>
12856
12857         New module 'waitpid'.
12858         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12859         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12860         Don't include <process.h>.
12861         (waitpid): Declare only, using modern idiom.
12862         * m4/waitpid.m4: New file.
12863         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12864         * modules/waitpid: New file.
12865         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12866         (Makefile.am): Update.
12867         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12868
12869 2010-09-28  Bruno Haible  <bruno@clisp.org>
12870
12871         poll: Assume ANSI C.
12872         * lib/poll.c (poll): Use an ANSI C declaration.
12873
12874 2010-09-28  Bruno Haible  <bruno@clisp.org>
12875
12876         poll-h: Create poll.h on all platforms.
12877         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12878         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12879         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12880         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12881         (gl_REPLACE_POLL_H): Don't set POLL_H.
12882         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12883         * modules/poll-h (Depends-on): Add include_next.
12884         (Makefile.am): Create poll.h unconditionally. Substitute also
12885         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12886
12887 2010-09-28  Bruno Haible  <bruno@clisp.org>
12888
12889         Tests for module 'poll-h'.
12890         * modules/poll-h-c++-tests: New file.
12891         * tests/test-poll-h-c++.cc: New file.
12892
12893         Tests for module 'poll-h'.
12894         * modules/poll-h-tests: New file.
12895         * tests/test-poll-h.c: New file.
12896
12897 2010-09-28  Bruno Haible  <bruno@clisp.org>
12898
12899         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12900         * modules/poll-h (Depends-on): Add 'extensions'.
12901
12902 2010-09-28  Bruno Haible  <bruno@clisp.org>
12903
12904         New module 'poll-h'.
12905         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12906         (poll): Use modern idiom.
12907         * modules/poll-h: New file.
12908         * modules/poll (Files): Remove lib/poll.in.h.
12909         (Depends-on): Add poll-h.
12910         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12911         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12912         * m4/poll_h.m4: New file.
12913         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12914         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12915         and invoke gl_REPLACE_POLL_H.
12916         * lib/poll.c: Use common idiom.
12917         * tests/test-poll.c: Likewise.
12918         * doc/posix-headers/poll.texi: Mention the poll-h module.
12919         Suggested by Eric Blake.
12920
12921 2010-09-26  Bruno Haible  <bruno@clisp.org>
12922
12923         sys_wait: Implement WSTOPSIG.
12924         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12925         Reported by Simon Josefsson.
12926
12927 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12928
12929         stdlib, sys_wait: Avoid compilation error on mingw.
12930         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12931
12932 2010-09-26  Bruno Haible  <bruno@clisp.org>
12933
12934         stdlib tests: Avoid code duplication.
12935         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12936         * modules/sys_wait-tests (Files): Likewise.
12937         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12938         * tests/test-stdlib.c: Include test-sys_wait.h.
12939         (main): Invoke test_sys_wait_macros.
12940         * tests/test-sys_wait.c: Include test-sys_wait.h.
12941         (main): Invoke test_sys_wait_macros.
12942
12943 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12944
12945         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12946         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12947         sure Windows sockets are working before calling getaddrinfo.
12948         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12949         * doc/gnulib.texi (Windows sockets): Fix typo.
12950
12951 2010-09-25  Bruno Haible  <bruno@clisp.org>
12952
12953         Tests for module 'regex-quote'.
12954         * modules/regex-quote-tests: New file.
12955         * tests/test-regex-quote.c: New file.
12956
12957         New module 'regex-quote'.
12958         * lib/regex-quote.h: New file.
12959         * lib/regex-quote.c: New file.
12960         * modules/regex-quote: New file.
12961         Suggested by Reuben Thomas <rrt@sc3d.org>.
12962
12963 2010-09-24  Bruno Haible  <bruno@clisp.org>
12964
12965         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12966         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12967
12968 2010-09-23  Bruno Haible  <bruno@clisp.org>
12969
12970         setenv: Relax license.
12971         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12972         Blake.
12973         Requested by Eric Blake.
12974
12975 2010-09-22  Bruno Haible  <bruno@clisp.org>
12976
12977         termios: Relax license.
12978         * modules/termios (License): Change to LGPLv2+.
12979         Requested by Eric Blake.
12980
12981 2010-09-22  Bruno Haible  <bruno@clisp.org>
12982
12983         threadlib: Allow the package to change the default to 'no'.
12984         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12985         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12986         Reported by Paul Eggert.
12987
12988 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12989             Bruno Haible  <bruno@clisp.org>
12990
12991         Fix endless loop in mbmemcasecoll.
12992         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12993         byte.
12994         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12995
12996 2010-09-22  Bruno Haible  <bruno@clisp.org>
12997
12998         Tests for module 'memcoll'.
12999         * modules/memcoll-tests: New file.
13000         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13001
13002         memcoll, xmemcoll: Clarify size vs. length.
13003         * modules/memcoll.c (memcoll0): Clarify specification.
13004         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13005         passed to collate_error.
13006
13007 2010-09-22  Bruno Haible  <bruno@clisp.org>
13008
13009         Tests for module 'memcasecmp'.
13010         * modules/memcasecmp-tests: New file.
13011         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13012
13013 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13014
13015         * lib/pthread.in.h: Add split double-inclusion guard, and include
13016         system <pthread.h> if there is one.  Use @@-style as in other
13017         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13018         pthread.h doesn't.
13019         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13020         (pthread_mutexattr_settype, pthread_mutex_trylock):
13021         New static inline functions, if there's no system <pthread.h>.
13022         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13023         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13024         Approximate with mutexes if the system lacks spinlocks, as in
13025         MacOS.
13026         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13027         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13028         @@-style.  Check for spinlocks separately.
13029         (gl_PTHREAD_DEFAULTS): New macro.
13030         * modules/pthread: Redo to use a more typical style for in.h files.
13031
13032 2010-09-21  Eric Blake  <eblake@redhat.com>
13033
13034         net_if: enhance tests
13035         * tests/test-net_if.c (main): Move signature checks earlier.
13036         Print failures to stderr.
13037         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13038         Document the bug that we do not yet fix.
13039
13040 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13041
13042         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13043         about gnulib, not GSS.
13044
13045 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13046
13047         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13048         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13049         for Emacs.
13050         * build-aux/pmccabe2html: Make Makefile.am example code more
13051         cut-and-paste friendly.
13052
13053 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13054
13055         * tests/test-net_if.c: New file.
13056         * modules/net_if-tests: New file.
13057
13058 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13059
13060         pthread: add pthread_spin_destroy
13061         * lib/pthread.in.h (pthread_spin_destroy): New function.
13062
13063 2010-09-19  Bruno Haible  <bruno@clisp.org>
13064
13065         gnulib-tool: Fix --help output.
13066         * gnulib-tool (func_usage): Fix help message.
13067         Reported by Reuben Thomas <rrt@sc3d.org>.
13068
13069 2010-09-18  Jim Meyering  <meyering@redhat.com>
13070
13071         maint.mk: avoid unexpanded \n in two diagnostics
13072         * top/maint.mk (sc_prohibit_always_true_header_tests):
13073         Don't use a literal \n in a halt=... assignment.  It would not be
13074         expanded, and the two \n bytes would appear in the diagnostic output
13075         rather than the desired newline.  Use halt=$$(printf ... instead.
13076         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13077
13078 2010-09-18  Bruno Haible  <bruno@clisp.org>
13079
13080         netinet_in: Doc tweak.
13081         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13082         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13083
13084 2010-09-18  Jim Meyering  <meyering@redhat.com>
13085
13086         init.sh: correct an outdated comment
13087         * tests/init.sh (create_exe_shims_):  s/function/alias/
13088
13089         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13090         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13091         a file named "*.exe" is removed between the glob expansion and the
13092         processing of that oddly named file.
13093
13094 2010-09-17  Eric Blake  <eblake@redhat.com>
13095
13096         mirbsd: add some more support
13097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13098         in BSD family.
13099         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13100         devices as OpenBSD.
13101         * m4/host-os.m4 (mirbsd): Add MirBSD.
13102
13103         tests: fix unportable assumption on sys/wait.h
13104         * tests/test-sys_wait.c (main): Relax test.
13105         * tests/test-stdlib.c (main): Likewise.
13106
13107         init.sh: accomodate directory with no .exes
13108         * tests/init.sh: Accomodate directory containing only scripts.
13109
13110         tests: avoid compiler warning
13111         * tests/test-stdlib.c (main): Use the variable.
13112
13113         fdutimens, fdutimensat: update signature, again
13114         * lib/utimens.h (gl_futimens): Delete, and move signature...
13115         (fdutimens): ...here.
13116         (fdutimensat): Rearrange signature.
13117         (lutimensat): Rename variable for clarity.
13118         * lib/fdutimensat.c (fdutimensat): Update signature.
13119         * lib/utimens.c (fdutimens): Likewise.
13120         (gl_futimens): Delete.
13121         (utimens, lutimens): Update callers.
13122         * lib/futimens.c (futimens): Likewise.
13123         * tests/test-fdutimensat.c: Likewise.
13124         * tests/test-utimens.c: Likewise.
13125         * tests/test-futimens.h: Update comment.
13126         * NEWS: Mention this.
13127         Suggested by Paul Eggert.
13128
13129 2010-09-17  Bruno Haible  <bruno@clisp.org>
13130
13131         Take over the maintenance of some older macros from Autoconf.
13132         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13133         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13134         GNU Autoconf.
13135         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13136         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13137
13138 2010-09-17  Eric Blake  <eblake@redhat.com>
13139
13140         fdutimensat: drop atflag validation
13141         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13142         with valid fd, to close a race scenario where futimens is
13143         unsupported and FILE was replaced by a symlink.
13144         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13145         accordingly.
13146         Suggested by Paul Eggert.
13147
13148 2010-09-16  Bruno Haible  <bruno@clisp.org>
13149
13150         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13151         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13152
13153 2010-09-16  Bruno Haible  <bruno@clisp.org>
13154
13155         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13156         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13157         login_tty exists.
13158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13159
13160 2010-09-16  Bruno Haible  <bruno@clisp.org>
13161
13162         login_tty: Make the replacement code work on BSD systems.
13163         * lib/login_tty.c: Include <sys/ioctl.h>.
13164         (login_tty): Use ioctl TIOCSCTTY when available.
13165         * modules/login_tty (Depends-on): Add sys_ioctl.
13166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13167
13168 2010-09-16  Bruno Haible  <bruno@clisp.org>
13169
13170         login_tty: Stricter unit test.
13171         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13172         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13173         and tcgetsid() after login_tty.
13174         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13175
13176 2010-09-16  Bruno Haible  <bruno@clisp.org>
13177
13178         New module 'tcgetsid'.
13179         * lib/tcgetsid.c: New file.
13180         * m4/tcgetsid.m4: New file.
13181         * modules/tcgetsid: New file.
13182         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13183         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13184         GNULIB_TCGETSID, HAVE_TCGETSID.
13185         * lib/termios.in.h: Include <sys/types.h>.
13186         (tcgetsid): New declaration.
13187         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13188         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13189         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13190         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13191
13192 2010-09-16  Bruno Haible  <bruno@clisp.org>
13193
13194         Tests for module 'termios'.
13195         * modules/termios-c++-tests: New file.
13196         * modules/termios-tests: New file.
13197         * tests/test-termios-c++.cc: New file.
13198         * tests/test-termios.c: New file.
13199
13200         New module 'termios'.
13201         * modules/termios: New file.
13202         * lib/termios.in.h: New file.
13203         * m4/termios_h.m4: New file.
13204         * doc/posix-headers/termios.texi: Mention the new module.
13205
13206 2010-09-16  Eric Blake  <eblake@redhat.com>
13207
13208         fdutimensat: add an atflag parameter
13209         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13210         * lib/utimens.h (fdutimensat): Update prototype.
13211         * tests/test-fdutimensat.c: Adjust test to match.
13212         * NEWS: Document the change.
13213         Suggested by Paul Eggert.
13214
13215 2010-09-16  Bruno Haible  <bruno@clisp.org>
13216
13217         Fix typos in comments.
13218         * lib/striconveh.h: Fix typo in comment.
13219         * lib/login_tty.c (login_tty): Likewise.
13220
13221 2010-09-15  Bruno Haible  <bruno@clisp.org>
13222
13223         stdlib: clarify MirBSD WEXITSTATUS bug
13224         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13225         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13226
13227 2010-09-15  Eric Blake  <eblake@redhat.com>
13228
13229         stdlib: work around MirBSD WEXITSTATUS bug
13230         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13231         * modules/stdlib (Depends-on): Add sys_wait.
13232         * tests/test-sys_wait.c (main): Enhance test.
13233         * tests/test-stdlib.c (main): Likewise.
13234         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13235
13236         docs: mention MacOS issue with WEXITSTATUS(constant)
13237         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13238         issue.
13239         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13240
13241         strnlen: add tests
13242         * modules/strnlen-tests: New file.
13243         * tests/test-strnlen.c: Likewise.
13244
13245 2010-09-14  Bruno Haible  <bruno@clisp.org>
13246
13247         unistr/base: Avoid link errors when module 'libunistring' is also used.
13248         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13249         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13250         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13251         Declare also when HAVE_LIBUNISTRING is set.
13252         Reported by Pádraig Brady <P@draigbrady.com>.
13253
13254 2010-09-14  Eric Blake  <eblake@redhat.com>
13255
13256         test-rawmemchr: make more robust
13257         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13258         (Depends-on, configure.ac): Add needed prerequisites to use it.
13259         * modules/memchr-tests (Files, Depends-on, configure.ac):
13260         Likewise, to avoid implicit reliance on memchr module prereqs.
13261         * tests/test-memchr.c (main): Ensure proper masking.
13262         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13263         reads.
13264
13265         memchr: detect glibc Alpha bug
13266         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13267         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13268         Alpha.
13269         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13270         * tests/test-memchr.c (main): Enhance test.
13271         Reported by Nelson H. F. Beebe.
13272
13273 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13274
13275         fts, getcwd, glob: audit for dirfd returning -1
13276         * lib/fts.c (opendir): Remove #define; no longer used.
13277         (opendirat): New arg PDIR_FD.  All callers changed.
13278         (fts_build, _opendir2): Use new opendirat to avoid the need for
13279         dirfd, or for checking whether dirfd returns a negative value.
13280         Don't use opendir; always use openat followed by fdopendir.
13281         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13282         it.
13283         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13284         returns -1 here.
13285         * modules/fts (Depends-on): Remove dirfd.
13286         * modules/getcwd (Depends-on): Likewise.
13287
13288 2010-09-13  Eric Blake  <eblake@redhat.com>
13289
13290         float: fix broken MirBSD header
13291         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13292         * doc/posix-headers/float.texi (float.h): Document it.
13293
13294 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13295
13296         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13297         * lib/fts.c (opendirat): New arg extra_flags.
13298         (__opendir2): Use it to avoid following symlinks when opening
13299         a directory, if symlinks are not supposed to be followed.  See
13300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13301
13302         fdopendir: preserve argument fd before returning
13303         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13304         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13305         (fdopendir): Use them, arranging for FD to be open to the same
13306         directory that it was when it started.  (It might be temporarily
13307         closed while fdopendir is running, so this not thread- or
13308         signal-safe.)  Be careful to do the right thing even when file
13309         descriptors are scarce and dup fails with errno == EMFILE.  See
13310         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13311
13312 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13313
13314         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13315         * NEWS: Document change.
13316         * m4/regex.m4: Disable test for regoff_t size.
13317
13318 2010-09-13  Jim Meyering  <meyering@redhat.com>
13319
13320         fts: don't operate on an invalid file descriptor after failed dup
13321         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13322         negative file descriptor.
13323
13324 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13325
13326         savedir: add streamsavedir, deprecate fdsavedir
13327         * NEWS: Mention deprecation of fdsavedir.
13328         * lib/savedir.c (streamsavedir): New extern function, whose name
13329         ends in "savedir" to be consistent with the others.  This differs
13330         from savedirstream in that it doesn't close its argument.  The
13331         next version of GNU tar will use this instead of fdsavedir, to
13332         avoid some race conditions and conserve file descriptors.
13333         (savedirstream): Reimplement as a wrapper around streamsavedir.
13334         (fdsavedir): Add a comment deprecating this function.  As far as
13335         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13336         * lib/savedir.h (streamsavedir): New decl.
13337         (fdsavedir): Add a comment deprecating this.
13338
13339 2010-09-10  Bruno Haible  <bruno@clisp.org>
13340
13341         langinfo: Fix last commit.
13342         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13343         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13345
13346 2010-09-10  Bruno Haible  <bruno@clisp.org>
13347
13348         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13349         * lib/progreloc.c (O_EXEC): Define fallback.
13350
13351 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13354         * NEWS: Document recent changes to fcntl-h.
13355         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13356         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13357         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13358         Similarly for O_SEARCH; this last was already true, but not documented.
13359         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13360         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13361         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13362         Likewise.
13363         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13364         is zero, not whether it is defined.
13365         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13366         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13367         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13368
13369 2010-09-10  Bruno Haible  <bruno@clisp.org>
13370
13371         langinfo, nl_langinfo: Fix for IRIX 5.3.
13372         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13373         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13374         HAVE_LANGINFO_YESEXPR.
13375         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13376         HAVE_LANGINFO_YESEXPR.
13377         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13378         HAVE_LANGINFO_T_FMT_AMPM is 0.
13379         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13380         HAVE_LANGINFO_YESEXPR is 0.
13381         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13382         NOEXPR.
13383         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13384         * doc/posix-functions/nl_langinfo.texi: Likewise.
13385         Reported by Eric Blake.
13386
13387 2010-09-10  Bruno Haible  <bruno@clisp.org>
13388
13389         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13390         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13391         on FreeBSD 8.0 and OpenBSD 4.6.
13392         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13393         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13394         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13395         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13396         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13397         ac_includes_default.
13398         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13399
13400 2010-09-09  Eric Blake  <eblake@redhat.com>
13401
13402         strsignal: work around NetBSD bug
13403         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13404         * lib/string.in.h (includes): Likewise.
13405         * doc/posix-functions/strsignal.texi (strsignal): Document the
13406         bug.
13407         Reported by Nelson H. F. Beebe.
13408
13409         gnulib-tool: work with NetBSD /bin/sh
13410         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13411         (func_get_description, func_get_comment, func_get_status)
13412         (func_get_notice, func_get_applicability, func_get_filelist)
13413         (func_get_dependencies, func_get_autoconf_early_snippet)
13414         (func_get_autoconf_snippet, func_get_automake_snippet)
13415         (func_get_include_directive, func_get_link_directive)
13416         (func_get_license, func_get_maintainer, func_import): Avoid
13417         shell syntax errors from parsing syntax extensions.
13418
13419 2010-09-09  Bruno Haible  <bruno@clisp.org>
13420
13421         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13422         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13423         a reliable way to determine whether the 'alias' command works.
13424
13425 2010-09-08  Jim Meyering  <meyering@redhat.com>
13426
13427         init.sh: penalize a set-x-impaired shell; don't disqualify it
13428         * tests/init.sh: Too many shells corrupt application stderr when
13429         you set -x, so we can't afford to disqualify them, since at least
13430         on Irix-6.5, that would disqualify all bourne shells.
13431         Instead, use a two-pass approach.
13432         On the first pass, try to find a shell that meets the stricter
13433         condition that set -x does not corrupt stderr.
13434         If no shell meets the stricter condition, retest each candidate
13435         shell, but without that extra condition.  Finally, when
13436         VERBOSE=yes is requested and set -x might cause trouble, simply
13437         issue a warning and refrain from enabling debug output.
13438
13439 2010-09-08  Eric Blake  <eblake@redhat.com>
13440
13441         unsetenv: fix OpenBSD bug
13442         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13443         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13444         documentation.
13445         Reported by Jim Meyering.
13446
13447         strtod: work around IRIX 6.5 bug
13448         * lib/strtod.c (strtod): Reparse number on shorter string if
13449         exponent parse was invalid.
13450         * tests/test-strtod.c (main): Add check for "0x1p 2".
13451         Reported by Tom G. Christensen.
13452
13453         getopt: optimize previous patch
13454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13455         empty variable.  Speed up awk script.
13456         Reported by Paolo Bonzini.
13457
13458 2010-09-08  Jim Meyering  <meyering@redhat.com>
13459
13460         test.sh: disqualify shells for which set -x corrupts stderr
13461         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13462         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13463         appear in stderr output.  For example, this command:
13464             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13465         prints "P=1" on those two systems:
13466
13467 2010-09-08  Bruno Haible  <bruno@clisp.org>
13468
13469         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13470         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13471         commands, because some shells ignore redirections when there is an
13472         error in the command lookup.
13473         Reported by Eric Blake.
13474
13475 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13476
13477         * lib/regex.h: Fix a mention of `regex_compile' (should be
13478         `re_compile_pattern').
13479         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13480         (re_set_registers): Correct name of parameter in comment.
13481
13482         * doc/regex.texi: Add documentation for missing syntax flags.
13483         Remove commented-out documentation of defunct syntax option
13484         RE_NO_EMPTY_ALTS.
13485         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13486         Add documentation of re_set_registers.
13487         Document trick to re-use a pattern buffer by setting fastmap manually.
13488         Update documentation of struct re_pattern_buffer per public members.
13489         Uncomment documentation of equivalence class operators and
13490         collating symbol operators, since they are now implemented,
13491         Explain leftmost-longest matching in relation to alternatives.
13492         Tidy documentation of substring matching.
13493         Remove POSIX documentation, which is done better in
13494         glibc, and refer the reader there. Keep BSD API documentation, as
13495         that is not readily available elsewhere.
13496
13497 2010-09-07  Eric Blake  <eblake@redhat.com>
13498
13499         getopt: handle POSIXLY_CORRECT set but not exported
13500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13501         export state of POSIXLY_CORRECT, due to bash set -o posix.
13502         Reported by Dustin J. Mitchell.
13503
13504 2010-09-05  Bruno Haible  <bruno@clisp.org>
13505
13506         gnulib-tool: Highlight the changed options.
13507         * gnulib-tool (func_usage): Display the --import, --add-import,
13508         --remove-import explanations in bold font.
13509
13510 2010-09-06  Karl Berry  <karl@gnu.org>
13511
13512         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13513
13514 2010-09-05  Bruno Haible  <bruno@clisp.org>
13515
13516         uniwidth/width: Update comment.
13517         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13518         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13519
13520 2010-09-05  Bruno Haible  <bruno@clisp.org>
13521
13522         isinf, isnan: Relax license.
13523         * modules/isinf (License): Change from GPL to LGPL, with consent from
13524         Ben Pfaff.
13525         * modules/isnan (License): Likewise.
13526         Requested by Ludovic Courtès.
13527
13528 2010-09-04  Bruno Haible  <bruno@clisp.org>
13529
13530         gnulib-tool: Help migration from --import to --add-import or --update.
13531         * gnulib-tool: Emit a verbose error message when --import is used
13532         without any module name.
13533
13534 2010-09-04  Bruno Haible  <bruno@clisp.org>
13535
13536         Update doc about gnulib-tool.
13537         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13538         'gnulib-tool --update' in more detail.
13539         Reported by Eric Blake.
13540
13541 2010-09-04  Bruno Haible  <bruno@clisp.org>
13542
13543         gnulib-tool: Change --import. New options --add/remove-import.
13544         * gnulib-tool: New options --add-import, --remove-import.
13545         (func_usage): Document them.
13546         (have_associative): Define always.
13547         (func_import): In import mode, don't merge the specified settings with
13548         the cached settings. Implement remove-import mode.
13549         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13550         Explain when to use them versus --import.
13551         (Simple update): Use --add-import instead of --import.
13552         * NEWS: Mention the change.
13553
13554 2010-09-04  Bruno Haible  <bruno@clisp.org>
13555
13556         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13557         separate gnulib.mk.
13558
13559 2010-09-04  Bruno Haible  <bruno@clisp.org>
13560
13561         gnulib-tool: Don't talk about CVS any more.
13562         * gnulib-tool (func_usage, func_import): Write "version control"
13563         instead of CVS.
13564
13565 2010-09-04  Jim Meyering  <meyering@redhat.com>
13566
13567         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13568         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13569         false positives (whose names may be ill-chosen) when searching
13570         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13571         would cause a false-positive.
13572
13573         avoid coreutils "make distcheck" failure
13574         Coreutils tests with an absolute build directory name that contains
13575         a space.  Not quoting this directory name caused a failure.
13576         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13577         * tests/test-vc-list-files-cvs.sh: Likewise.
13578
13579 2010-09-04  Bruno Haible  <bruno@clisp.org>
13580
13581         gnulib-tool: Avoid error when run in a package without Makefile.am.
13582         * gnulib-tool: When collecting the m4dirs in a package that does not
13583         have a Makefile.am, eliminate those directories that contain no
13584         gnulib-cache.m4. Fix expression that counts these directories.
13585
13586 2010-09-04  Bruno Haible  <bruno@clisp.org>
13587
13588         update-copyright test: Improve output when perl is missing or too old.
13589         * tests/test-update-copyright.sh: Move test of Perl version down after
13590         the test whether Perl exists. Provide an explanation relating Perl's
13591         error message to Automake's SKIP: message.
13592
13593 2010-09-04  Bruno Haible  <bruno@clisp.org>
13594
13595         Don't augment PATH in TESTS_ENVIRONMENT.
13596         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13597         set abs_aux_dir instead of augmenting PATH.
13598         * modules/vc-list-files-tests (Makefile.am): Likewise.
13599         * tests/test-update-copyright.sh: Augment PATH here.
13600         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13601         path_prepend_.
13602         * tests/test-vc-list-files-git.sh: Likewise.
13603
13604 2010-09-04  Jim Meyering  <meyering@redhat.com>
13605
13606         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13607         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13608
13609 2010-09-04  Bruno Haible  <bruno@clisp.org>
13610
13611         strdup: Fix compilation error in C++ mode.
13612         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13613         the macro.
13614
13615 2010-09-04  Bruno Haible  <bruno@clisp.org>
13616
13617         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13618         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13619         macro into a function.
13620         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13621
13622 2010-09-04  Bruno Haible  <bruno@clisp.org>
13623
13624         Set PATH_SEPARATOR the same way autoconf does.
13625         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13626         the value of PATH_SEPARATOR the same way autoconf-generated configure
13627         scripts do.
13628         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13629         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13630
13631 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13632
13633         Set PATH_SEPARATOR the same way autoconf does.
13634         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13635         the same way autoconf-generated configure scripts do.
13636         * posix-modules: Likewise.
13637
13638 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13639
13640         hash: fix safe_hasher const typo
13641         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13642         const; otherwise, there is a type error later.
13643
13644 2010-09-02  Jim Meyering  <meyering@redhat.com>
13645
13646         test-update-copyright.sh: require perl 5.8.0
13647         * tests/test-update-copyright.sh: Require 5.8.0,
13648         which Tom G. Christensen has confirmed is adequate,
13649         while 5.6.1 is not.
13650
13651 2010-09-02  Eric Blake  <eblake@redhat.com>
13652
13653         tests: init.sh improvements for re-exec'ing with zsh
13654         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13655         -vx through shell re-exec.
13656         Reported by Tom G. Christensen.
13657
13658         wctype: fix typo in previous commit
13659         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13660         Reported by Ludovic Courtès.
13661
13662 2010-09-02  Jim Meyering  <meyering@redhat.com>
13663
13664         test-update-copyright.sh: skip test if Perl is too old
13665         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13666         Reported by Tom G. Christensen.
13667
13668 2010-09-02  Bruno Haible  <bruno@clisp.org>
13669
13670         wctype: Avoid compilation error on IRIX 6.5.30.
13671         * lib/wctype.in.h (iswblank): Declare with a replacement if
13672         REPLACE_ISWBLANK is set.
13673         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13674         declared. Set REPLACE_ISWBLANK.
13675         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13676         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13677         * doc/posix-headers/wctype.texi: Likewise.
13678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13679
13680 2010-09-01  Bruno Haible  <bruno@clisp.org>
13681
13682         New module 'socketlib'.
13683         * modules/socketlib: New file.
13684         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13685         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13686         * modules/sockets (Depends-on): Add socketlib.
13687         Suggested by Sam Steingold <sds@gnu.org>.
13688
13689 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13690
13691         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13692
13693         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13694         when one needs search access to a directory but not read access.
13695         On systems where it is available, it works in some cases where
13696         O_RDONLY does not, namely on directories that are searchable but
13697         not readable, and which need only to be searchable.  If O_SEARCH
13698         is not available, fall back to the traditional method of using
13699         O_RDONLY.
13700
13701         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13702         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13703         when opening a directory that needs only to be searchable.
13704         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13705         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13706         * lib/openat-proc.c (openat_proc_name): Likewise.
13707         * lib/openat.c (openat_needs_fchdir): Likewise.
13708         * lib/save-cwd.c (save_cwd): Likewise.
13709         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13710
13711 2010-08-28  Bruno Haible  <bruno@clisp.org>
13712
13713         New module 'host-cpu-c-abi'.
13714         * modules/host-cpu-c-abi: New file.
13715         * m4/host-cpu-c-abi.m4: New file, based on part of
13716         clisp/src/m4/general.m4.
13717         Requested by Sam Steingold <sds@gnu.org>.
13718
13719 2010-08-31  Eric Blake  <eblake@redhat.com>
13720         and Jim Meyering  <meyering@redhat.com>
13721
13722         hash: factor, and guard against misbehaving hasher function
13723         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13724         of table->hasher's return value.  Also protect against a hash value
13725         so large that adding it to table->bucket results in a NULL pointer.
13726         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13727         Use it in place of open-coded check-and-abort.
13728
13729 2010-08-30  Bruno Haible  <bruno@clisp.org>
13730
13731         hash: silence spurious clang warning
13732         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13733         Reported by Eric Blake.
13734
13735 2010-08-30  Eric Blake  <eblake@redhat.com>
13736
13737         strstr, memmem, strcasestr: avoid leaked shell message
13738         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13739         FreeBSD.
13740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13741         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13742
13743         tests: silence clang warning
13744         * tests/test-malloca.c (do_allocation): Avoid dead store.
13745
13746 2010-08-29  Bruno Haible  <bruno@clisp.org>
13747
13748         gettext: Fix recent mistake.
13749         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13750
13751 2010-08-29  Bruno Haible  <bruno@clisp.org>
13752
13753         selinux-h: Offer a --without-selinux option.
13754         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13755         --without-selinux was specified, skip all tests and define
13756         HAVE_SELINUX_SELINUX_H to 0.
13757         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13758         set LIB_SELINUX to empty.
13759         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13760         gl_LIBSELINUX. If --without-selinux was specified, replace
13761         selinux/context.h.
13762         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13763
13764 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13765             Bruno Haible  <bruno@clisp.org>
13766
13767         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13768         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13769         of HAVE_REALLOC.
13770         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13771         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13772         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13773         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13774
13775 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13776             Bruno Haible  <bruno@clisp.org>
13777
13778         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13779         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13780         HAVE_CALLOC.
13781         * lib/xmalloc.c: Update accordingly.
13782         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13783         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13784         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13785
13786 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13787             Bruno Haible  <bruno@clisp.org>
13788
13789         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13790         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13791         HAVE_MALLOC.
13792         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13793         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13794         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13795
13796 2010-08-29  Bruno Haible  <bruno@clisp.org>
13797
13798         Update modules list.
13799         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13800         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13801         (String handling <string.h>): Add astrxfrm.
13802         (File system functions): Add readlinkat.
13803
13804 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13805
13806         Tests for module 'realloc-gnu'.
13807         * modules/realloc-gnu-tests: New file.
13808         * tests/test-realloc-gnu.c: New file.
13809
13810         Tests for module 'calloc-gnu'.
13811         * modules/calloc-gnu-tests: New file.
13812         * tests/test-calloc-gnu.c: New file.
13813
13814         Tests for module 'malloc-gnu'.
13815         * modules/malloc-gnu-tests: New file.
13816         * tests/test-malloc-gnu.c: New file.
13817
13818 2010-08-28  Bruno Haible  <bruno@clisp.org>
13819
13820         Rename module 'realloc' -> 'realloc-gnu'.
13821         * modules/realloc-gnu: New file, copied from modules/realloc.
13822         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13823         obsolete.
13824         * modules/mgetgroups (Depends-on): Update.
13825         * doc/posix-functions/realloc.texi: Update.
13826         * NEWS: Mention the change.
13827
13828         Rename module 'calloc' -> 'calloc-gnu'.
13829         * modules/calloc-gnu: New file, copied from modules/calloc.
13830         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13831         obsolete.
13832         * doc/posix-functions/calloc.texi: Update.
13833         * NEWS: Mention the change.
13834
13835         Rename module 'malloc' -> 'malloc-gnu'.
13836         * modules/malloc-gnu: New file, copied from modules/malloc.
13837         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13838         obsolete.
13839         * modules/argp (Depends-on): Update.
13840         * modules/regex (Depends-on): Update.
13841         * doc/posix-functions/malloc.texi: Update.
13842         * NEWS: Mention the change.
13843
13844 2010-08-28  Eric Blake  <eblake@redhat.com>
13845
13846         pread, pwrite: add missing dependency
13847         * modules/pread (Depends-on): Add extensions.
13848         * modules/pwrite (Depends-on): Likewise.
13849
13850 2010-08-28  Bruno Haible  <bruno@clisp.org>
13851
13852         unistr/u*-strchr: Fix tests dependencies.
13853         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13854         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13855         Reported by Ian Beckwith <ianb@erislabs.net>.
13856
13857 2010-08-28  Bruno Haible  <bruno@clisp.org>
13858
13859         read-file: Don't occupy too much unused memory.
13860         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13861
13862 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13863             Eric Blake  <eblake@redhat.com>
13864             Bruno Haible  <bruno@clisp.org>
13865
13866         read-file: Avoid memory reallocations with regular files.
13867         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13868         (fread_file): With regular files, use the remaining length as the
13869         initial buffer size.  Check against overflow.
13870         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13871         sys_stat.
13872
13873 2010-08-28  Bruno Haible  <bruno@clisp.org>
13874
13875         ftello: Relax license.
13876         * modules/ftello (License): Relax to LGPLv2+.
13877         Reported by Eric Blake.
13878
13879 2010-08-28  Bruno Haible  <bruno@clisp.org>
13880
13881         Avoid relocwrapper link errors due to gnulib replacement functions.
13882         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13883         function.
13884         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13885
13886 2010-08-28  Bruno Haible  <bruno@clisp.org>
13887
13888         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13889         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13890         defined.
13891         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13892         Suggested by Eric Blake.
13893
13894 2010-08-28  Bruno Haible  <bruno@clisp.org>
13895
13896         sys_socket, netdb: Ensure socklen_t gets defined.
13897         * modules/sys_socket (Depends-on): Add socklen.
13898         * modules/netdb (Depends-on): Likewise.
13899         * modules/getaddrinfo (Depends-on): Remove socklen.
13900         * modules/getsockopt (Depends-on): Likewise.
13901         * modules/setsockopt (Depends-on): Likewise.
13902         * tests/test-sys_socket.c: Check that socklen_t is defined.
13903         * tests/test-netdb.c: Likewise.
13904         * m4/socklen.m4: Update comments.
13905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13906
13907 2010-08-27  Eric Blake  <eblake@redhat.com>
13908
13909         login_tty: add missing dependency
13910         * modules/login_tty (Depends-on): Add pty.
13911
13912 2010-08-26  Eric Blake  <eblake@redhat.com>
13913
13914         lib-symbol-versions: fix m4 quoting
13915         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13916         format for AC_LINK_IFELSE.
13917
13918         glob: fix compile test
13919         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13920
13921         btowc: fix missing file
13922         * modules/btowc (Files): Also ship locale-fr.m4.
13923
13924         lseek: fix link test
13925         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13926         AC_LINK_IFELSE.
13927
13928         include_next: silence autoconf 2.68 warning
13929         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13930         AC_COMPILE_IFELSE as special.
13931         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13932         autoconf < 2.68.
13933
13934         acl: fix compilation test
13935         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13936         AC_COMPILE_IFELSE.
13937
13938 2010-08-26  Bruno Haible  <bruno@clisp.org>
13939
13940         Modernize AC_TRY_RUN invocations.
13941         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13942         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13943         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13944         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13945         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13946         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13947         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13949         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13950         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13951         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13952         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13953         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13954         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13956         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13957         gl_MBRLEN_NUL_RETVAL): Likewise.
13958         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13959         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13960         Likewise.
13961         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13962         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13963         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13964         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13965         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13966         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13967         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13968         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13969         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13970         Likewise.
13971         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13972         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13974         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13975         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13976         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13977         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13978         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13979         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13981
13982 2010-08-26  Bruno Haible  <bruno@clisp.org>
13983
13984         Modernize AC_TRY_LINK invocations.
13985         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13986         AC_TRY_LINK.
13987         * m4/argp.m4 (gl_ARGP): Likewise.
13988         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13989         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13990         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13991         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13992         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13993         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13994         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13995         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13996         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13997         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13998         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13999         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14000         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14001         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14002         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14003         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14004         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14005         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14006         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14007         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14008         Likewise.
14009         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14010         Likewise.
14011         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14012         Likewise.
14013         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14014         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14015         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14016         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14017         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14018         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14019         * m4/servent.m4 (gl_SERVENT): Likewise.
14020         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14021         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14022         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14023         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14024         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14025         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14026         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14027         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14028         * modules/tsearch-tests (configure.ac): Likewise.
14029
14030 2010-08-26  Bruno Haible  <bruno@clisp.org>
14031
14032         Modernize AC_TRY_COMPILE invocations.
14033         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14034         AC_TRY_COMPILE.
14035         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14036         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14037         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14038         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14039         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14040         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14041         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14042         * m4/lock.m4 (gl_LOCK): Likewise.
14043         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14044         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14045         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14046         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14047         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14048         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14049         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14050         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14051         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14052         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14053         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14054         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14055         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14056         extraneous semicolon.
14057
14058 2010-08-26  Jim Meyering  <meyering@redhat.com>
14059
14060         stat-time: relax license LGPL
14061         * modules/stat-time (License): Change from GPL to LGPL,
14062         with consent from all contributors, for use in libguile.
14063         Requested by Ludovic Courtès.
14064
14065 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14066
14067         poll: return immediately on POLLHUP.
14068         * lib/poll.c (poll): Always set timeout before wait_timeout is
14069         computed.
14070
14071 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14072
14073         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14074         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14075         rmdir ("dir/.//"), unlinkat.
14076
14077 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         stdbool: avoid spurious failure with modern xlc
14080         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14081
14082 2010-08-24  Bruno Haible  <bruno@clisp.org>
14083
14084         getloadavg: simplify code
14085         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14086         gl_have_func. Update comments.
14087
14088 2010-08-24  Eric Blake  <eblake@redhat.com>
14089
14090         getloadavg: don't define SVR4 on cygwin
14091         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14092         only define SVR4 when -lkvm is required.
14093         Reported by Yaakov Selkowitz.
14094
14095 2010-08-24  Bruno Haible  <bruno@clisp.org>
14096
14097         priv-set: fix comment
14098         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14099
14100 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14101
14102         priv-set: fix comments
14103         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14104         to match code, as suggested by David Bartley in:
14105         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14106
14107 2010-08-23  Eric Blake  <eblake@redhat.com>
14108
14109         stdbool: avoid rejecting clang
14110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14111         * tests/test-stdbool.c: Enable more tests if using the system
14112         <stdbool.h> instead of the gnulib replacement.
14113         (main): Move xlc bug test to a runtime test for all compilers.
14114         Reported by Anders Kaseorg.
14115
14116         argz: fix shell quoting issue
14117         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14118         Reported by Charles Wilson.
14119
14120 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14121             Erik Faye-Lund <kusmabite@gmail.com>
14122
14123         poll, select: handle ERROR_BROKEN_PIPE.
14124         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14125         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14126         * lib/select.c (win32_compute_revents): Do not mark a pipe
14127         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14128
14129 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14130
14131         fts: allow compilation with C++
14132         * lib/fts_.h: Specify extern "C" linkage with C++.
14133
14134 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14135
14136         Fix gnulib-tool sed script de-commentation for AIX sed.
14137         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14138         sed.
14139
14140 2010-08-17  Eric Blake  <eblake@redhat.com>
14141
14142         test-stddef: test for (some) offsetof bugs
14143         * tests/test-stddef.c: Enhance test to ensure correct type of
14144         offsetof.
14145         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14146         that we are not fixing at this time.
14147
14148 2010-08-15  Bruno Haible  <bruno@clisp.org>
14149
14150         stpncpy: Allow stpncpy to be defined as a macro.
14151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14152         if it's already correctly declared.
14153         * lib/string.in.h (stpncpy): Undefine before redefining.
14154         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14155
14156 2010-08-14  Bruno Haible  <bruno@clisp.org>
14157
14158         Rename module 'memxfrm' to 'amemxfrm'.
14159         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14160         (amemxfrm): Renamed from memxfrm.
14161         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14162         (amemxfrm): Renamed from memxfrm.
14163         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14164         * NEWS: Mention the change.
14165         * MODULES.html.sh (String handling <string.h>): Update.
14166         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14167         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14168         * lib/unicase/u16-casexfrm.c: Likewise.
14169         * lib/unicase/u32-casexfrm.c: Likewise.
14170         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14171         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14172         * lib/uninorm/u16-normxfrm.c: Likewise.
14173         * lib/uninorm/u32-normxfrm.c: Likewise.
14174         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14175         memxfrm.
14176         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14177         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14178         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14179         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14180         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14181         Suggested by Paul Eggert.
14182
14183 2010-08-14  Bruno Haible  <bruno@clisp.org>
14184
14185         Tests for module 'astrxfrm'.
14186         * modules/astrxfrm-tests: New file.
14187         * tests/test-astrxfrm.c: New file.
14188
14189         New module 'astrxfrm'.
14190         * lib/astrxfrm.h: New file.
14191         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14192         * modules/astrxfrm: New file.
14193
14194 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14195
14196         regex: Tweak doc.
14197         * doc/regex.texi (Overview): Don't mention regex.c.
14198         (GNU Regular Expression Compiling): Likewise.
14199         (Match-end-of-line Operator): Mention 'not_eol'.
14200
14201 2010-08-14  Brian Gough  <bjg@gnu.org>
14202             Bruno Haible  <bruno@clisp.org>
14203
14204         git-merge-changelog: add doc relating to use with bzr and hg.
14205         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14206
14207 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14208
14209         pthread: fix pthread.h creation for srcdir != builddir
14210         * modules/pthread (Makefile.am): Fix the rule to work also in a
14211         non-srcdir build.
14212
14213 2010-08-13  Karl Berry  <karl@gnu.org>
14214
14215         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14216         * doc/posix-*/*: force line break before @url of POSIX
14217         specifications.
14218         Suggested by Werner Lemberg.
14219
14220 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14221
14222         strtod: fix const diagnostic
14223         * lib/strtod.c (strtod): Don't assign const char * to char *,
14224         as this elicits a warning from GCC when warnings are enabled.
14225
14226 2010-08-10  Pádraig Brady <P@draigbrady.com>
14227         and Eric Blake  <eblake@redhat.com>
14228
14229         copy-acl: ignore ENOTSUP on HP-UX
14230         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14231         so that it is available for HP-UX.
14232         * lib/copy-acl.c (qcopy_acl): Use it.
14233         Reported by Patrick M. Callahan.
14234
14235 2010-08-10  Eric Blake  <eblake@redhat.com>
14236
14237         open, chown: relax license
14238         * modules/open (License): Change to LGPLv2+, with consent by all
14239         authors, for use in augeas.
14240         * modules/chown (License): Likewise.
14241         * modules/lchown (Likewise): Likewise.
14242         Requested by Adam Stokes.
14243
14244 2010-08-09  Karl Berry  <karl@gnu.org>
14245
14246         * build-aux/ar-lib: new file, import from Automake.
14247         * config/srclist.txt: autocheck for updates.
14248
14249 2010-08-09  Eric Blake  <eblake@redhat.com>
14250
14251         readlinkat: adjust client modules
14252         * modules/areadlinkat (Depends-on): Use readlinkat, not
14253         symlinkat.
14254         * modules/areadlinkat-with-size (Depends-on): Likewise.
14255
14256         mknod: be more vocal about danger of running tests as root
14257         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14258         root, since that is just asking for problems.
14259         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14260
14261         readlinkat: split into its own module
14262         * modules/symlinkat: Split readlinkat...
14263         * modules/readlinkat: ...into separate module.
14264         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14265         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14266         * lib/symlinkat.c (readlinkat): Move...
14267         * lib/readlinkat.c: ...into new file.
14268         * modules/symlinkat-tests: Split readlinkat test...
14269         * modules/readlinkat-tests: ...into separate module.
14270         * tests/test-symlinkat.c: Split...
14271         * tests/test-readlinkat.c: ...into new file.
14272         * NEWS: Document the split.
14273         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14274         * lib/unistd.in.h (readlinkat): Likewise.
14275         Suggested by Bruno Haible.
14276
14277 2010-08-08  Bruno Haible  <bruno@clisp.org>
14278
14279         memxfrm: Speed up.
14280         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14281         that usually only one call to strxfrm is necessary for each string
14282         part.
14283         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14284
14285 2010-08-07  Karl Berry  <karl@gnu.org>
14286
14287         * doc/posix-headers/limits.texi,
14288         * doc/posix-functions/malloc.texi,
14289         * doc/posix-functions/strsignal.texi: missing @item.
14290         * doc/ld-version-script.texi: spurious leading i.
14291         * doc/regex.texi (Interval Operators): no commas inside @var.
14292
14293 2010-08-01  Bruno Haible  <bruno@clisp.org>
14294
14295         Integrate the regex documentation.
14296         * doc/gnulib.texi: Define 'cn' index.
14297         (Regular expressions): New a chapter that includes regex.texi and
14298         regexprops-generic.texi.
14299         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14300         syntax.
14301
14302         Whitespace cleanup.
14303         * doc/regex.texi: Remove trailing spaces.
14304
14305         Add regex documentation.
14306         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14307         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14308         Written by Kathy A. Hargreaves and Karl Berry.
14309
14310 2010-08-01  Bruno Haible  <bruno@clisp.org>
14311
14312         link: Update documentation.
14313         * doc/posix-functions/link.texi: Update regarding Solaris.
14314
14315 2010-07-31  Bruno Haible  <bruno@clisp.org>
14316
14317         Update modules list.
14318         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14319         (String handling <string.h>): Add memcmp2, memxfrm.
14320         (Container data structures): Add xlist, xsublist, xoset.
14321         (Core language properties): Add alignof, unused-parameter.
14322         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14323         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14324         (Unibyte characters <ctype.h>): New section.
14325         (String handling <string.h>): New section.
14326         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14327         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14328         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14329         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14330         tan, tanh, tanl, y0, y1, yn.
14331         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14332         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14333         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14334         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14335         unlockpt, vdprintf, vdprintf-posix.
14336         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14337         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14338         xconcat-filename.
14339         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14340         getdtablesize, pipe2, pipe2-safer.
14341         (Security): New section.
14342         (Networking functions): Add accept4.
14343         (Signal handling): Add sigpipe.
14344         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14345         mbmemcasecoll.
14346         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14347         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14348         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14349         pipe-filter-ii.
14350         (Misc): Add argp-version-etc, login_tty, parse-duration.
14351
14352 2010-07-31  Bruno Haible  <bruno@clisp.org>
14353
14354         Improve doc in MODULES.html.
14355         * modules/linkat (Description): Add the word "function".
14356         * modules/mkfifo (Description): Likewise.
14357         * modules/mknod (Description): Likewise.
14358         * modules/remove (Description): Likewise.
14359         * modules/renameat (Description): Likewise.
14360         * modules/stat (Description): Likewise.
14361         * modules/symlink (Description): Likewise.
14362         * modules/unlink (Description): Likewise.
14363
14364 2010-07-31  Bruno Haible  <bruno@clisp.org>
14365
14366         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14367         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14368         option --enable/disable-c++ instead of --enable/disable-cxx.
14369         * NEWS: Mention the change.
14370
14371 2010-07-31  Bruno Haible  <bruno@clisp.org>
14372
14373         readlink, areadlink: Relax test a bit.
14374         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14375         alternative to ENOTDIR.
14376         * tests/test-areadlink.h (test_areadlink): Likewise.
14377         Reported by Rainer Tammer.
14378
14379 2010-07-31  Bruno Haible  <bruno@clisp.org>
14380
14381         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14382         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14383         character, perform the search using U_STRCHR.
14384         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14385         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14386         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14387         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14388         Suggested by Paolo Bonzini.
14389
14390 2010-07-31  Bruno Haible  <bruno@clisp.org>
14391
14392         unistr/u*-strstr: Fix dependencies.
14393         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14394         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14395         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14396
14397 2010-07-31  Bruno Haible  <bruno@clisp.org>
14398
14399         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14400         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14401         the beginning of the loop.
14402         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14403         cases in 'switch' statement.
14404
14405         unistr/u8-strchr: Fix several bugs.
14406         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14407         the string. When not found, return NULL, not a pointer near the end.
14408
14409         More tests for unistr/u8-strchr.
14410         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14411         that the function does not read past the first occurrence of the byte
14412         being searched.
14413         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14414         * tests/unistr/test-u16-strchr.c (main): New function.
14415         * tests/unistr/test-u32-strchr.c (main): New function.
14416
14417 2010-07-31  Bruno Haible  <bruno@clisp.org>
14418
14419         posix-modules: Ignore backup files of documentation files.
14420         * posix-modules: grep only through files named *.texi.
14421
14422 2010-07-31  Bruno Haible  <bruno@clisp.org>
14423
14424         symlinkat: Fix documentation.
14425         * doc/posix-functions/readlinkat.texi: Fix module name.
14426
14427 2010-07-31  Bruno Haible  <bruno@clisp.org>
14428
14429         fchownat: Replace also when chown has the trailing slash bug.
14430         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14431         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14432         introduced on 2010-04-10.
14433         Reported by Rainer Tammer.
14434
14435 2010-07-31  Bruno Haible  <bruno@clisp.org>
14436
14437         linkat: Work around AIX 7.1 bug.
14438         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14439         whether linkat handles trailing slash correctly. If not, replace linkat
14440         and define LINKAT_TRAILING_SLASH_BUG.
14441         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14442         check whether (fd1,file1) points to a directory if file1 or file2 ends
14443         in a slash. Code taken from lib/link.c.
14444         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14445         Reported by Rainer Tammer.
14446
14447 2010-07-31  Bruno Haible  <bruno@clisp.org>
14448
14449         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14450         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14451         This disables an xlc optimization that was causing wrong test results.
14452         Reported by Rainer Tammer.
14453
14454 2010-07-31  Bruno Haible  <bruno@clisp.org>
14455
14456         iconv: Work around AIX 6.1..7.1 bug.
14457         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14458         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14459         cross-compiling, guess no on all versions of AIX.
14460         Reported by Rainer Tammer.
14461
14462 2010-07-31  Bruno Haible  <bruno@clisp.org>
14463
14464         readlink: Relax test a bit.
14465         * tests/test-readlink.h (test_readlink): Allow different errno value
14466         when readlink is called with a file name that ends in / and refers to
14467         a file.
14468         Suggested by Eric Blake.
14469         Reported by Rainer Tammer.
14470
14471 2010-07-31  Bruno Haible  <bruno@clisp.org>
14472
14473         copysign: Does not require -lm on glibc systems.
14474         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14475         gl_COMMON_DOUBLE_MATHFUNC.
14476         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14477
14478 2010-07-31  Bruno Haible  <bruno@clisp.org>
14479
14480         duplocale: Work around AIX 7.1 bug.
14481         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14482         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14483         * lib/duplocale.c (rpl_duplocale): Update comment.
14484         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14485         Reported by Rainer Tammer.
14486
14487 2010-07-30  Bruno Haible  <bruno@clisp.org>
14488
14489         dirfd: Avoid link error on AIX 7.1.
14490         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14491         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14492         exist, set REPLACE_DIRFD.
14493         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14494         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14495         * doc/posix-functions/dirfd.texi: Update.
14496         Reported by Rainer Tammer.
14497
14498 2010-07-30  Eric Blake  <eblake@redhat.com>
14499
14500         strtod: next round of AIX fixes
14501         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14502         exponent.
14503         * tests/test-strtod.c (main): Enhance tests.
14504         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14505         Reported by Rainer Tammer.
14506
14507         futimens: fix configure check
14508         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14509         Reported by Bruno Haible.
14510
14511 2010-07-30  Bruno Haible  <bruno@clisp.org>
14512
14513         getline: Update regarding AIX.
14514         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14515         Reported by Rainer Tammer.
14516
14517 2010-07-30  Bruno Haible  <bruno@clisp.org>
14518
14519         wcwidth: Drop replacement on AIX 7.
14520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14521         AIX 7.
14522         Reported by Rainer Tammer.
14523
14524 2010-07-30  Bruno Haible  <bruno@clisp.org>
14525
14526         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14527         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14528         a 'char *'.
14529         Reported by Rainer Tammer.
14530
14531 2010-07-30  Bruno Haible  <bruno@clisp.org>
14532
14533         unlink: Update regarding AIX.
14534         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14535         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14536         Reported by Rainer Tammer.
14537
14538 2010-07-30  Bruno Haible  <bruno@clisp.org>
14539
14540         symlink: Update regarding AIX.
14541         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14542         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14543         Reported by Rainer Tammer.
14544
14545 2010-07-30  Bruno Haible  <bruno@clisp.org>
14546
14547         strndup: Update regarding AIX.
14548         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14549         AIX 7.
14550         Reported by Rainer Tammer.
14551
14552 2010-07-30  Bruno Haible  <bruno@clisp.org>
14553
14554         stat: Update regarding AIX.
14555         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14556         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14557         Reported by Rainer Tammer.
14558
14559 2010-07-30  Bruno Haible  <bruno@clisp.org>
14560
14561         truncl: Fix autoconf test.
14562         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14563         whether truncl works.
14564         Reported by Rainer Tammer.
14565
14566 2010-07-30  Bruno Haible  <bruno@clisp.org>
14567
14568         round: Update regarding AIX.
14569         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14570         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14571         Reported by Rainer Tammer.
14572
14573 2010-07-30  Bruno Haible  <bruno@clisp.org>
14574
14575         rename: Update regarding AIX.
14576         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14577         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14578         Reported by Rainer Tammer.
14579
14580 2010-07-30  Bruno Haible  <bruno@clisp.org>
14581
14582         printf.m4: Update regarding AIX.
14583         * m4/printf.m4: Update comments regarding AIX.
14584         Reported by Rainer Tammer.
14585
14586 2010-07-30  Bruno Haible  <bruno@clisp.org>
14587
14588         iconv: Update regarding AIX.
14589         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14590         AIX 7.
14591         Reported by Rainer Tammer.
14592
14593 2010-07-30  Bruno Haible  <bruno@clisp.org>
14594
14595         getopt: Update regarding AIX.
14596         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14597         no on AIX.
14598         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14599         Reported by Rainer Tammer.
14600
14601 2010-07-30  Bruno Haible  <bruno@clisp.org>
14602
14603         ldexpl; Update regarding AIX.
14604         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14605         on AIX 7.
14606         Reported by Rainer Tammer.
14607
14608 2010-07-30  Bruno Haible  <bruno@clisp.org>
14609
14610         frexpl: Update regarding AIX.
14611         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14612         on AIX 7.
14613         Reported by Rainer Tammer.
14614
14615 2010-07-30  Bruno Haible  <bruno@clisp.org>
14616
14617         open, fopen: Update regarding AIX.
14618         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14619         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14620         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14621         * doc/posix-functions/fopen.texi: Likewise.
14622         Reported by Rainer Tammer.
14623
14624 2010-07-30  Bruno Haible  <bruno@clisp.org>
14625
14626         chown: Update doc regarding AIX.
14627         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14628         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14629         Reported by Rainer Tammer.
14630
14631 2010-07-30  Eric Blake  <eblake@redhat.com>
14632
14633         strtod: fix bug in replacement function on AIX
14634         * lib/strtod.c (strtod): Special case broken "0x" parse in
14635         underlying strtod.
14636         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14637         * doc/posix-functions/strtod.texi (strtod): Likewise.
14638         Reported by Rainer Tammer.
14639
14640 2010-07-30  Bruno Haible  <bruno@clisp.org>
14641
14642         mbrlen: Fix cross-compilation guess for AIX.
14643         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14644         guess. Leftover from 2008-12-22.
14645
14646 2010-07-30  Bruno Haible  <bruno@clisp.org>
14647
14648         mbrtowc: Fix cross-compilation guess for AIX.
14649         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14650         guess. Leftover from 2008-12-21.
14651
14652 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14653
14654         init.sh: work around trap limitation of some shells
14655         * tests/init.sh (setup_): Move exit trap outside of shell function.
14656
14657 2010-07-29  Eric Blake  <eblake@redhat.com>
14658
14659         strtod: aid debugging
14660         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14661         understanding why strtod is rejected.
14662
14663 2010-07-28  Bruno Haible  <bruno@clisp.org>
14664
14665         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14666         * lib/unistr/u8-chr.c: Include <string.h>.
14667         * tests/unistr/test-u8-chr.c: Likewise.
14668         * tests/unistr/test-u16-chr.c: Likewise.
14669         * tests/unistr/test-u32-chr.c: Likewise.
14670         * tests/unistr/test-u8-strchr.c: Likewise.
14671         * tests/unistr/test-u16-strchr.c: Likewise.
14672         * tests/unistr/test-u32-strchr.c: Likewise.
14673         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14674         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14675         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14676         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14677
14678 2010-07-28  Bruno Haible  <bruno@clisp.org>
14679
14680         Use spaces for indentation, not tabs.
14681         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14682
14683 2010-07-27  Bruno Haible  <bruno@clisp.org>
14684
14685         mbspcasecmp: Fix function specification.
14686         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14687         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14688         Reported by Eric Blake <eblake@redhat.com>.
14689
14690 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14691
14692         timespec: use cast and not conditional, as truncation isn't possible
14693         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14694         instead of a conditional.  Comment about the situation in more detail.
14695         This undoes most of the 2009-10-29 patch.
14696
14697 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14698
14699         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14700         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14701         * lib/unistr/u8-strchr.c: Likewise.
14702         * modules/unistr/u8-chr: Depend on memchr.
14703
14704         unistr/u*-strchr: add tests
14705         * modules/unistr/u8-strchr-tests: New file.
14706         * modules/unistr/u16-strchr-tests: New file.
14707         * modules/unistr/u32-strchr-tests: New file.
14708         * tests/unistr/test-strchr.h: New file.
14709         * tests/unistr/test-u8-strchr.c: New file.
14710         * tests/unistr/test-u16-strchr.c: New file.
14711         * tests/unistr/test-u32-strchr.c: New file.
14712
14713         unistr/u*-chr: test multibyte sequences more
14714         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14715         test vector.
14716         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14717         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14718         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14719
14720         unistr/u*-chr: test multibyte sequences
14721         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14722
14723         unistr/u*-chr: prepare for multibyte tests
14724         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14725         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14726         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14727         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14728         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14729         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14730
14731 2010-07-18  Bruno Haible  <bruno@clisp.org>
14732
14733         unistr/u8-strchr: Optimize non-ASCII argument case.
14734         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14735         because the first byte often matches anyway.
14736         Reported by Pádraig Brady <P@draigbrady.com>.
14737
14738 2010-07-15  Karl Berry  <karl@gnu.org>
14739
14740         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14741
14742 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14743
14744         getcwd: on Solaris, work better if ancestors are inaccessible
14745         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14746         buffer and size, try again with a large buffer.  This works better
14747         on Solaris, since its getcwd succeeds even if the path to the root
14748         is inaccessible, and this is helpful in common cases such as .zfs
14749         hidden directories.  Problem reported by J Chapman Flack in
14750         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14751         Use system getcwd if it's declared, not merely if it's partly
14752         working; use the partly-working test only to avoid needless effort
14753         if the system getcwd fails.
14754         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14755         comment that was already obsolete and is now even more obsolete.
14756         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14757         now might call strdup.
14758
14759 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14760
14761         pthread: Add enough so that coreutils/src/sort.c compiles.
14762         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14763         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14764         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14765         Include <sys/types.h>, in case it defines pthread_t.
14766         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14767         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14768         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14769         (pthread_rwlockattr_t, pthread_spinlock_t):
14770         New typedefs, if HAVE_PTHREAD_T is not defined.
14771         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14772         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14773         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14774         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14775         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14776         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14777         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14778         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14779         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14780         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14781         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14782         New macros.
14783         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14784         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14785         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14786         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14787         (pthread_spin_unlock): New dummy functions.
14788         (pthread_create): Return EAGAIN; don't set errno.
14789         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14790         require AC_C_INLINE.
14791         * modules/pthread (Depends-on): Add sched, time.
14792         (pthread.h): Use AM_V_GEN.
14793
14794 2010-07-13  Bruno Haible  <bruno@clisp.org>
14795
14796         striconveh: Don't malloc memory if the result buffer is sufficient.
14797         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14798         buffer if its size is sufficient.
14799         Reported by Ludovic Courtès <ludo@gnu.org>.
14800
14801 2010-07-13  Bruno Haible  <bruno@clisp.org>
14802
14803         strtod: Add safety check.
14804         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14805
14806 2010-07-12  Bruno Haible  <bruno@clisp.org>
14807
14808         Unify tests that set gl_cv_func_ldexpl_no_libm.
14809         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14810         gl_FUNC_LDEXPL.
14811         (gl_FUNC_LDEXPL): Invoke it.
14812         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14813
14814 2010-07-12  Bruno Haible  <bruno@clisp.org>
14815
14816         Unify tests that set gl_cv_func_ldexp_no_libm.
14817         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14818         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14819         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14820         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14821         * modules/strtod (Files): Add m4/ldexp.m4.
14822
14823 2010-07-12  Bruno Haible  <bruno@clisp.org>
14824
14825         Unify tests that set gl_cv_func_frexpl_no_libm.
14826         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14827         gl_FUNC_FREXPL_NO_LIBM.
14828         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14829         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14830
14831 2010-07-12  Bruno Haible  <bruno@clisp.org>
14832
14833         Unify tests that set gl_cv_func_frexp_no_libm.
14834         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14835         gl_FUNC_FREXP_NO_LIBM.
14836         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14837         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14838
14839 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14840
14841         memcoll: clarify sizes versus lengths, document better, and tweak perf
14842         * lib/memcoll.c (strcoll_loop, memcoll0):
14843         Improve quality of descriptive comments.  Name variables
14844         consistently as to whether they are lengths (which do not include
14845         terminating null) versus sizes (which do).
14846         * lib/xmemcoll.c (xmemcoll0): Likewise.
14847         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14848         returned when s1size == 0; this is easier to compile and saves
14849         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14850
14851 2010-07-12  Bruno Haible  <bruno@clisp.org>
14852
14853         Tests for module '_Exit'.
14854         * modules/_Exit-tests: New file.
14855         * tests/test-_Exit.sh: New file.
14856         * tests/test-_Exit.c: New file.
14857
14858         New module '_Exit'.
14859         * lib/stdlib.in.h (__attribute__): New macro.
14860         (_Exit): New declaration.
14861         * lib/_Exit.c: New file.
14862         * m4/_Exit.m4: New file.
14863         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14864         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14865         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14866         * modules/_Exit: New file.
14867         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14868         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14869
14870 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14871
14872         strtod: make it more-accurate typically, and don't require libm
14873         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14874         Include limits.h.  Don't include string.h.
14875         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14876         (locale_isspace): New function, so that no casts are needed to
14877         check whether *s is a space.
14878         (ldexp): Provide an unused dummy if not available.
14879         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14880         (strtod): Use them.  This implementation prefers to use the
14881         underlying strtod if available, falling back on our own code
14882         only to fix known bugs.  This is more likely to produce an
14883         accurate result.  Also, it avoids the use of libm functions.
14884         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14885         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14886         was absent, but it caused a test failure with coreutils.
14887         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14888         with libm.
14889         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14890         * modules/strtod-tests (Makefile.am): Likewise.
14891
14892 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14893             Bruno Haible  <bruno@clisp.org>
14894
14895         unistr/u8-strchr: Optimize ASCII argument case.
14896         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14897
14898 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         (x)memcoll: minor tweaks
14901         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14902         is after the type that it qualifies.
14903         (memcoll0): Likewise.
14904         * lib/memcoll.h (memcoll0): Likewise.
14905         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14906         * lib/xmemcoll.h (xmemcoll0): Likewise.
14907         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14908         differs from memcoll in that the NUL byte is part of the argument.
14909         Omit the abort-checks, as performance is a real issue here.  Plus,
14910         the checks were wrong anyway (an off-by-one error).  Omit local
14911         variable 'diff', as it's a bit clearer that way.
14912         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14913         no longer needed.
14914
14915 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14916
14917         (x)memcoll: speedup when input is known to be NUL delimited
14918         * lib/memcoll.c: Include stdlib.
14919         (memcoll0): New function.
14920         (strcoll_loop): New function, refactored for use in both memcoll
14921         and memcoll0.
14922         * lib/memcoll.h (memcoll0): Add prototype.
14923         * lib/xmemcoll.c (xmemcoll0): New function.
14924         (collate_error): New function, refactored for use in both xmemcoll
14925         and xmemcoll0.
14926         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14927         * m4/memcoll.m4: add inline invocation.
14928
14929 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14930
14931         * build-aux/bootstrap: Remove any local translations
14932         from the translation project synchronization directory,
14933         so that local only translations are not distributed.
14934
14935 2010-07-04  Bruno Haible  <bruno@clisp.org>
14936
14937         fsusage: Clarify which code applies to which platforms.
14938         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14939         platform.
14940         * lib/fsusage.c (get_fs_usage): Likewise.
14941
14942 2010-07-04  Bruno Haible  <bruno@clisp.org>
14943
14944         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14945         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14946         Reported by Martin Lambers <marlam@marlam.de>.
14947
14948 2010-07-04  Jim Meyering  <meyering@redhat.com>
14949
14950         hash: once again explicitly disallow insertion of NULL
14951         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14952         inserting a NULL pointer cannot work with these functions.
14953         Add a comment with details.
14954         This reverts part of the 2010-07-01 commit, 5bef1a35
14955         "hash: extend module to deal with non-pointer keys".
14956
14957 2010-07-01  Bruno Haible  <bruno@clisp.org>
14958
14959         stdbool: Update doc.
14960         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14961         Info from Christian Weisgerber <naddy@mips.inka.de>.
14962
14963 2010-07-01  Jim Meyering  <meyering@redhat.com>
14964
14965         hash: extend module to deal with non-pointer keys
14966         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14967         but that allows insertion of non-pointer entries.
14968         Do not disallow an ENTRY value of NULL.
14969         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14970         * lib/hash.h (hash_insert0): Declare.
14971
14972 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14973
14974         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14975         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14976         not present (i.e. with autoconf 2.59 and when using gettextize, not
14977         gnulib), require AC_GNU_SOURCE instead.
14978
14979 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14980
14981         idpriv-drop: Fix tests.
14982         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14983         not to the test-idpriv-droptemp program.
14984
14985 2010-06-29  Bruno Haible  <bruno@clisp.org>
14986
14987         string: Fix syntax error with g++ 2.96.
14988         * lib/string.in.h (__pure__): Remove definition.
14989         (_GL_ATTRIBUTE_PURE): New macro.
14990         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14991         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14992         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14993
14994 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14995
14996         unitypes: Fix bug introduced on 2010-05-18.
14997         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14998
14999 2010-06-22  Eric Blake  <eblake@redhat.com>
15000
15001         memmem: slight optimization
15002         * lib/str-two-way.h (critical_factorization): Update comments.
15003         Reduce work during factorization phase.
15004         Reported by Carlos Bueno <carlos@bueno.org>.
15005
15006 2010-06-21  Bruno Haible  <bruno@clisp.org>
15007
15008         Fix HAVE_CALLOC_POSIX misnomer.
15009         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15010         !HAVE_CALLOC_POSIX.
15011         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15012         HAVE_CALLOC_POSIX.
15013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15014         instead of HAVE_CALLOC_POSIX.
15015         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15016         HAVE_CALLOC_POSIX.
15017
15018         Use modern idiom for calloc() replacement.
15019         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15020         AC_FUNC_CALLOC.
15021         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15022         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15023         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15024         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15025         (gl_REPLACE_CALLOC): New macro.
15026
15027 2010-06-21  Bruno Haible  <bruno@clisp.org>
15028
15029         Fix HAVE_REALLOC_POSIX misnomer.
15030         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15031         !HAVE_REALLOC_POSIX.
15032         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15033         HAVE_REALLOC_POSIX.
15034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15035         instead of HAVE_REALLOC_POSIX.
15036         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15037         HAVE_REALLOC_POSIX.
15038
15039         Use modern idiom for realloc() replacement.
15040         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15041         AC_FUNC_REALLOC.
15042         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15043         Autoconf's AC_FUNC_REALLOC.
15044         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15045         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15046         (gl_REPLACE_REALLOC): New macro.
15047         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15048
15049 2010-06-21  Bruno Haible  <bruno@clisp.org>
15050
15051         Fix HAVE_MALLOC_POSIX misnomer.
15052         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15053         !HAVE_MALLOC_POSIX.
15054         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15055         HAVE_MALLOC_POSIX.
15056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15057         instead of HAVE_MALLOC_POSIX.
15058         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15059         HAVE_MALLOC_POSIX.
15060
15061         Use modern idiom for malloc() replacement.
15062         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15063         AC_FUNC_MALLOC.
15064         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15065         Autoconf's AC_FUNC_MALLOC.
15066         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15067         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15068         (gl_REPLACE_MALLOC): New macro.
15069         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15070
15071 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15072
15073         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15074         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15075         This macro takes 3 arguments, not 4.
15076
15077 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15078
15079         ipv6: fix detection under mingw
15080         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15081         in6_addr.
15082
15083 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15084
15085         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15086         that strtod() works when cross-compiling to a glibc version known
15087         to work.
15088
15089 2010-06-15  Bruno Haible  <bruno@clisp.org>
15090
15091         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15092
15093 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15094
15095         select: Correct timeout.
15096         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15097
15098 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15099
15100         git-version-gen: init shell var to avoid env var influence
15101         * build-aux/git-version-gen (v): Init shell var to empty.
15102
15103 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15104
15105         priv-set: Don't assume that priv.h exists merely because getppriv does.
15106         See Jan Andersen's bug report about AIX 5L in
15107         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15108         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15109         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15110         * lib/priv-set.h: Likewise.
15111         * tests/test-priv-set.c: Likewise.
15112
15113 2010-06-13  Bruno Haible  <bruno@clisp.org>
15114
15115         relocatable: Make it easier to test whether to install wrappers.
15116         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15117         RELOCATABLE_VIA_WRAPPER.
15118
15119 2010-06-13  Bruno Haible  <bruno@clisp.org>
15120
15121         gnulib-tool: Display specified modules and dependencies differently.
15122         * gnulib-tool (func_show_module_list): New function.
15123         (func_import, func_create_testdir): Invoke it.
15124         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15125
15126 2010-06-13  Bruno Haible  <bruno@clisp.org>
15127
15128         gnulib-tool: Align code of func_import and func_create_testdir.
15129         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15130         specified_modules.
15131
15132 2010-06-12  Jim Meyering  <meyering@redhat.com>
15133
15134         test-inttostr: avoid spurious failure on Solaris 9
15135         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15136         to accept "%ju".  Reported by Bruno Haible.
15137
15138 2010-06-11  Jim Meyering  <meyering@redhat.com>
15139
15140         test-sys_socket: mark variables as used more readably
15141         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15142         as "used" explicitly via (void) statement casts.  This is more
15143         readable than using them in an artificial return expression.
15144         Suggestion from Bruno Haible.
15145
15146 2010-06-11  Bruno Haible  <bruno@clisp.org>
15147
15148         Avoid some more warnings from "gcc -Wwrite-strings".
15149         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15150         to 'const char *'.
15151         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15152         * tests/test-c-strcasestr.c (main): Likewise.
15153         * tests/test-mbscasestr1.c (main): Likewise.
15154         * tests/test-mbscasestr2.c (main): Likewise.
15155         * tests/test-memmem.c (main): Likewise.
15156         * tests/test-strstr.c (main): Likewise.
15157         * tests/test-strcasestr.c (main): Likewise.
15158
15159 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15160
15161         init.sh: change framework_failure_ to fail with status 99, not 1
15162         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15163         automake's parallel-tests rule that this is an unexpected failure,
15164         even if the test is listed in XFAIL_TESTS.
15165
15166 2010-06-11  Jim Meyering  <meyering@redhat.com>
15167
15168         test-inttostr: avoid warnings about 4-6KB literal strings
15169         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15170         Include "macros.h", for its definition of ASSERT.
15171         (CK): s/assert/ASSERT/
15172         * modules/inttostr-tests (Files): Add macros.h.
15173
15174         init.sh: don't use $ME_ or skip_ before they are defined
15175         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15176         their first uses.  Also hoist their companions: warn_, fail_,
15177         framework_failure_, $stderr_fileno.  Prompted by a patch from
15178         Stefano Lattarini.
15179
15180         test-sys_socket: avoid set-but-not-used warnings from gcc
15181         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15182         avoid warning about set-but-not-used variables.
15183
15184         test-xvasprintf: avoid 'const' discard warnings
15185         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15186         "const" when assigning from literal strings.
15187         (test_xasprintf): Add "void" in function argument list to placate
15188         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15189
15190         tests: avoid compilation warnings in argmatch and exclude tests...
15191         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15192         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15193         Since it always exits, declare with the "noreturn" attribute.
15194         * tests/test-argmatch.c: Likewise.
15195
15196         tests: avoid 'const' discard warnings in mbsstr tests
15197         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15198         * tests/test-mbsstr2.c (main): Likewise.
15199
15200         test-verify: avoid warning from gcc's -Wmissing-declarations
15201         * tests/test-verify.c (function): Declare to be static.
15202
15203         test-inttostr.c: include <string.h> for use of strcmp
15204         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15205
15206         test-linkat: avoid failed assertion on "other" architectures
15207         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15208         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15209         sparc: https://bugs.launchpad.net/bugs/591968
15210
15211 2010-06-11  Jim Meyering  <meyering@redhat.com>
15212
15213         printf.m4: avoid autoconf's "Expanded Before Required" warning
15214         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15215         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15216         autoconf warning.
15217
15218 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15219
15220         Replacement header templates are now named with ".in", not "_".
15221         * doc/gnulib-intro.texi: Correct.
15222
15223 2010-06-10  Jim Meyering  <meyering@redhat.com>
15224
15225         inttostr-tests: depend on snprintf, not snprintf-posix
15226         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15227         snprintf-posix, to avoid this aclocal failure:
15228           missing file gnulib-tests/vasnprintf.c
15229           configure.ac:45: error: expected source file, required through \
15230           AC_LIBSOURCES, not found
15231
15232 2010-06-10  Jim Meyering  <meyering@redhat.com>
15233
15234         inttostr: add a new function, inttostr, and tests
15235         The namesake function was not available.  The existence of the
15236         template file, inttostr.c makes its addition nontrivial.
15237         * lib/anytostr.c: Rename from inttostr.c.
15238         (anytostr): Rename from inttostr.
15239         * lib/inttostr.c: New file.
15240         * modules/inttostr (Files): Add anytostr.c.
15241         (Makefile.am): Set lib_SOURCES instead of ...
15242         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15243         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15244         * lib/offtostr.c: Likewise.
15245         * lib/uinttostr.c: Likewise.
15246         * lib/umaxtostr.c: Likewise.
15247         * modules/inttostr-tests: New file.
15248         * tests/test-inttostr.c: New file.  Test these functions.
15249
15250 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15251             Bruno Haible  <bruno@clisp.org>
15252
15253         Add "Extending Gnulib" chapter to manual.
15254         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15255         chapter.
15256         (Extending Gnulib): New chapter.
15257         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15258         chapter.
15259
15260 2010-06-09  Bruno Haible  <bruno@clisp.org>
15261
15262         Avoid relocwrapper link errors due to gnulib replacement functions.
15263         * lib/areadlink.c: Use the system's malloc, realloc functions.
15264         (areadlink): Set errno to ENOMEM explicitly.
15265         * modules/areadlink (Depends-on): Remove malloc-posix.
15266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15267
15268 2010-06-09  Bruno Haible  <bruno@clisp.org>
15269
15270         Avoid relocwrapper link errors due to gnulib replacement functions.
15271         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15272         * lib/malloca.c: Likewise.
15273         * lib/relocatable.c: Likewise.
15274         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15275         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15276         * lib/setenv.c: Use the system's malloc, realloc functions.
15277         * lib/strerror.c: Use the system's sprintf function.
15278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15279
15280 2010-06-04  Bruno Haible  <bruno@clisp.org>
15281
15282         Prefer documented low-level autoconf macro names.
15283         * m4/lib-link.m4: Use m4_translit instead of translit.
15284         * m4/environ.m4: Likewise.
15285         * m4/mathfunc.m4: Likewise.
15286         * m4/onceonly.m4: Likewise.
15287         * m4/stdint.m4: Likewise.
15288         Suggested by Eric Blake.
15289
15290 2010-06-04  Martin Lambers  <marlam@marlam.de>
15291             Bruno Haible  <bruno@clisp.org>
15292
15293         havelib: Allow library names with '+' characters.
15294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15295         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15296
15297 2010-06-09  Bruno Haible  <bruno@clisp.org>
15298
15299         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15300         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15301         realloc failed.
15302
15303 2010-06-08  Peter Simons  <simons@cryp.to>
15304
15305         maint.mk: make the news-check rule more configurable
15306         * top/maint.mk (news-check-lines-spec): New variable.
15307         (news-check): Use "sed -n 1,10p" in place of "head".
15308
15309 2010-06-07  Jim Meyering  <meyering@redhat.com>
15310
15311         do-release-commit-and-tag: fix typo in --help
15312         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15313
15314         regex: avoid new dead-code warning with gcc-4.6.0
15315         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15316         if-block containing a while-loop.  It's been unused for at least
15317         5 years.
15318
15319 2010-06-05  Bruno Haible  <bruno@clisp.org>
15320
15321         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15322         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15323
15324 2010-06-04  Bruno Haible  <bruno@clisp.org>
15325
15326         Update to GNU gettext 0.18.1.
15327         * modules/gettext (configure.ac): Require gettext infrastructure from
15328         version 0.18.1.
15329
15330 2010-06-03  Bruno Haible  <bruno@clisp.org>
15331
15332         Don't use AC_LIBOBJ with file names in subdirectories.
15333         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15334         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15335         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15336         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15337         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15338         gl_LIBUNISTRING_LIBSOURCE.
15339         (Makefile.am): Augment lib_SOURCES here, conditionally.
15340         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15341
15342 2010-06-03  Bruno Haible  <bruno@clisp.org>
15343
15344         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15345         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15346         expansion does not end with a newline.
15347         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15348         unnecessary newline.
15349
15350 2010-06-03  Bruno Haible  <bruno@clisp.org>
15351
15352         Reduce dependencies.
15353         * tests/test-quotearg.h: New file, extracted from
15354         tests/test-quotearg.c.
15355         * tests/test-quotearg-simple.c: New file, extracted from
15356         tests/test-quotearg.c.
15357         * tests/test-quotearg.c: Don't include <ctype.h>.
15358         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15359         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15360         use_quote_double_quotes, use_quotearg_colon): Moved to
15361         tests/test-quotearg.h.
15362         (results_g, flag_results, custom_quotes, custom_results): Moved
15363         to tests/test-quotearg-simple.c.
15364         (main): Moved the part that does not depend on gettext to
15365         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15366         performed.
15367         * modules/quotearg-simple: New file.
15368         * modules/quotearg-simple-tests: New file.
15369         * modules/quotearg (Depends-on): Add quotearg-simple.
15370         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15371         (Files): Add tests/test-quotearg.h.
15372         Reported by Paolo Bonzini.
15373
15374 2010-06-03  Bruno Haible  <bruno@clisp.org>
15375
15376         Reduce dependencies.
15377         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15378
15379 2010-06-03  Bruno Haible  <bruno@clisp.org>
15380
15381         time: Undefine more broken macros.
15382         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15383         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15384         Reported by Eric Blake.
15385
15386 2010-06-03  Bruno Haible  <bruno@clisp.org>
15387
15388         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15389         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15390         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15391         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15392         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15393         Reported by Ludovic Courtès <ludo@gnu.org>.
15394
15395 2010-06-02  Eric Blake  <eblake@redhat.com>
15396
15397         time: work with mingw + pthreads-win32 library
15398         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15399         if timespec is defined only in pthread.h.
15400         * modules/time (Makefile.am): Substitute it.
15401         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15402         <pthread.h>, when needed.
15403         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15404         from the library.
15405
15406 2010-05-31  Bruno Haible  <bruno@clisp.org>
15407
15408         Avoid expanding two macros in the wrong order.
15409         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15410         gl_LIBUNISTRING if it is defined.
15411         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15412         autoconf >= 2.64.
15413         Reported by Ludovic Courtès <ludo@gnu.org>.
15414
15415 2010-05-27  Jim Meyering  <meyering@redhat.com>
15416
15417         maint.mk: also prohibit "#undef" of always-defined symbols
15418         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15419         Allow more than one space before the symbol name.
15420         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15421         the regexp uses alternation.
15422
15423 2010-05-26  Eric Blake  <eblake@redhat.com>
15424
15425         maint.mk: avoid echo -e
15426         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15427         Convert all uses of echo -* to printf.
15428         Reported by Matthias Bolte.
15429
15430 2010-05-25  Bruno Haible  <bruno@clisp.org>
15431
15432         Update to GNU gettext 0.18, part 2.
15433         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15434         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15435
15436 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15437
15438         Add missing include in test-pwrite.c.
15439         * tests/test-pwrite.c: Include string.h, for strcmp.
15440
15441 2010-05-24  Bruno Haible  <bruno@clisp.org>
15442
15443         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15444
15445 2010-05-24  Bruno Haible  <bruno@clisp.org>
15446
15447         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15448         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15449         iconveh_error argument.
15450         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15451         U_STRCONV_TO_LOCALE.
15452         * lib/unistr/u16-strcoll.c: Likewise.
15453         * lib/unistr/u32-strcoll.c: Likewise.
15454         * modules/unistr/u8-strcoll (Depends-on): Add
15455         uniconv/u8-strconv-to-enc, localcharset. Remove
15456         uniconv/u8-strconv-to-locale.
15457         (configure.ac): Bump version number.
15458         * modules/unistr/u16-strcoll (Depends-on): Add
15459         uniconv/u16-strconv-to-enc, localcharset. Remove
15460         uniconv/u16-strconv-to-locale.
15461         (configure.ac): Bump version number.
15462         * modules/unistr/u32-strcoll (Depends-on): Add
15463         uniconv/u32-strconv-to-enc, localcharset. Remove
15464         uniconv/u32-strconv-to-locale.
15465         (configure.ac): Bump version number.
15466
15467 2010-05-24  Bruno Haible  <bruno@clisp.org>
15468
15469         Avoid a test failure on NetBSD 5.0.
15470         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15471         an iconv() bug.
15472
15473 2010-05-24  Bruno Haible  <bruno@clisp.org>
15474
15475         Adjust #include directive style.
15476         * modules/regex (Includes): Recommend to write <regex.h>.
15477
15478 2010-05-24  Bruno Haible  <bruno@clisp.org>
15479
15480         regex: Don't require alloca.
15481         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15482         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15483         only inside if (0).
15484
15485 2010-05-23  Jim Meyering  <meyering@redhat.com>
15486
15487         test-renameat.c: include <sys/stat.h>
15488         * tests/test-renameat.c: Include <sys/stat.h>; required for
15489         definition of S_IS* macros.
15490
15491 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15492
15493         Update maintainer documentation for 'relocatable-prog' module.
15494         * doc/relocatable-maint.texi: Update.
15495         Comments by Bruno Haible.
15496
15497 2010-05-23  Bruno Haible  <bruno@clisp.org>
15498
15499         git-merge-changelog: Enable --split-merged-entry by default.
15500         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15501         (usage): Don't mention this option any more.
15502         Reported by Ralf Wildenhues.
15503
15504 2010-05-23  Jim Meyering  <meyering@redhat.com>
15505
15506         test-pwrite: do not leave behind a test file named "out"
15507         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15508         The trivial-looking use of init.sh is really necessary.
15509         It ensures that the temporary file, "out", is created in
15510         a temporary directory, and removed upon termination.
15511         * tests/test-pwrite.sh: Re-add file.
15512         * modules/pwrite-tests: Reference it.
15513
15514 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15515
15516         Fix output redirection buglet in init.sh.
15517         * tests/init.sh: Fix redirection of stderr.
15518
15519 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15520
15521         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15522
15523 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15524
15525         * modules/valgrind-tests: New file.
15526         * m4/valgrind-tests.m4: New file.
15527         * doc/valgrind-tests.texi: New file.
15528         * doc/gnulib.texi (Running self-tests under valgrind): New
15529         section.
15530
15531 2010-05-19  Bruno Haible  <bruno@clisp.org>
15532
15533         Clean up dead code in recent commit.
15534         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15535         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15536         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15537         Suggested by Paolo Bonzini.
15538
15539 2010-05-19  Bruno Haible  <bruno@clisp.org>
15540
15541         Avoid valgrind error reports from libunistring.
15542         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15543         * modules/libunistring (Files): Add it.
15544         * modules/libunistring-optional (Files): Likewise.
15545
15546 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15547             Bruno Haible  <bruno@clisp.org>
15548
15549         New module 'libunistring-optional'.
15550         * modules/libunistring-optional: New file.
15551         * m4/libunistring-base.m4: New file.
15552         * m4/libunistring-optional.m4: New file.
15553         * lib/unicase.in.h: Renamed from lib/unicase.h.
15554         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15555         * lib/unictype.in.h: Renamed from lib/unictype.h.
15556         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15557         * lib/uniname.in.h: Renamed from lib/uniname.h.
15558         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15559         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15560         * lib/unistr.in.h: Renamed from lib/unistr.h.
15561         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15562         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15563         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15564         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15565         gl_LIBUNISTRING. If the library was found, determine the installed
15566         version and set LIBUNISTRING_VERSION.
15567         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15568         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15569         handle a configuration option --with-included-libunistring.
15570         * modules/libunistring (Files): Add m4/absolute-header.m4.
15571         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15572         Add m4/libunistring-base.m4.
15573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15574         (Makefile.am): Build unicase.h from unicase.in.h.
15575         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15576         Add m4/libunistring-base.m4.
15577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15578         (Makefile.am): Build uniconv.h from uniconv.in.h.
15579         * modules/unictype/base (Files): Use unictype.in.h instead of
15580         unictype.h. Add m4/libunistring-base.m4.
15581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15582         (Makefile.am): Build unictype.h from unictype.in.h.
15583         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15584         Add m4/libunistring-base.m4.
15585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15586         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15587         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15588         Add m4/libunistring-base.m4.
15589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15590         (Makefile.am): Build uniname.h from uniname.in.h.
15591         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15592         Add m4/libunistring-base.m4.
15593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15594         (Makefile.am): Build uninorm.h from uninorm.in.h.
15595         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15596         unistdio.h. Add m4/libunistring-base.m4.
15597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15598         (Makefile.am): Build unistdio.h from unistdio.in.h.
15599         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15600         Add m4/libunistring-base.m4.
15601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15602         (Makefile.am): Build unistr.h from unistr.in.h.
15603         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15604         Add m4/libunistring-base.m4.
15605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15606         (Makefile.am): Build unitypes.h from unitypes.in.h.
15607         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15608         Add m4/libunistring-base.m4.
15609         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15610         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15611         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15612         uniwidth.h. Add m4/libunistring-base.m4.
15613         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15614         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15615         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15616         instead of augmenting lib_SOURCES.
15617         * modules/unicase/empty-suffix-context: Likewise.
15618         * modules/unicase/locale-language: Likewise.
15619         * modules/unicase/tolower: Likewise.
15620         * modules/unicase/totitle: Likewise.
15621         * modules/unicase/toupper: Likewise.
15622         * modules/unicase/u8-casecmp: Likewise.
15623         * modules/unicase/u8-casecoll: Likewise.
15624         * modules/unicase/u8-casefold: Likewise.
15625         * modules/unicase/u8-casexfrm: Likewise.
15626         * modules/unicase/u8-ct-casefold: Likewise.
15627         * modules/unicase/u8-ct-tolower: Likewise.
15628         * modules/unicase/u8-ct-totitle: Likewise.
15629         * modules/unicase/u8-ct-toupper: Likewise.
15630         * modules/unicase/u8-is-cased: Likewise.
15631         * modules/unicase/u8-is-casefolded: Likewise.
15632         * modules/unicase/u8-is-lowercase: Likewise.
15633         * modules/unicase/u8-is-titlecase: Likewise.
15634         * modules/unicase/u8-is-uppercase: Likewise.
15635         * modules/unicase/u8-prefix-context: Likewise.
15636         * modules/unicase/u8-suffix-context: Likewise.
15637         * modules/unicase/u8-tolower: Likewise.
15638         * modules/unicase/u8-totitle: Likewise.
15639         * modules/unicase/u8-toupper: Likewise.
15640         * modules/unicase/u16-casecmp: Likewise.
15641         * modules/unicase/u16-casecoll: Likewise.
15642         * modules/unicase/u16-casefold: Likewise.
15643         * modules/unicase/u16-casexfrm: Likewise.
15644         * modules/unicase/u16-ct-casefold: Likewise.
15645         * modules/unicase/u16-ct-tolower: Likewise.
15646         * modules/unicase/u16-ct-totitle: Likewise.
15647         * modules/unicase/u16-ct-toupper: Likewise.
15648         * modules/unicase/u16-is-cased: Likewise.
15649         * modules/unicase/u16-is-casefolded: Likewise.
15650         * modules/unicase/u16-is-lowercase: Likewise.
15651         * modules/unicase/u16-is-titlecase: Likewise.
15652         * modules/unicase/u16-is-uppercase: Likewise.
15653         * modules/unicase/u16-prefix-context: Likewise.
15654         * modules/unicase/u16-suffix-context: Likewise.
15655         * modules/unicase/u16-tolower: Likewise.
15656         * modules/unicase/u16-totitle: Likewise.
15657         * modules/unicase/u16-toupper: Likewise.
15658         * modules/unicase/u32-casecmp: Likewise.
15659         * modules/unicase/u32-casecoll: Likewise.
15660         * modules/unicase/u32-casefold: Likewise.
15661         * modules/unicase/u32-casexfrm: Likewise.
15662         * modules/unicase/u32-ct-casefold: Likewise.
15663         * modules/unicase/u32-ct-tolower: Likewise.
15664         * modules/unicase/u32-ct-totitle: Likewise.
15665         * modules/unicase/u32-ct-toupper: Likewise.
15666         * modules/unicase/u32-is-cased: Likewise.
15667         * modules/unicase/u32-is-casefolded: Likewise.
15668         * modules/unicase/u32-is-lowercase: Likewise.
15669         * modules/unicase/u32-is-titlecase: Likewise.
15670         * modules/unicase/u32-is-uppercase: Likewise.
15671         * modules/unicase/u32-prefix-context: Likewise.
15672         * modules/unicase/u32-suffix-context: Likewise.
15673         * modules/unicase/u32-tolower: Likewise.
15674         * modules/unicase/u32-totitle: Likewise.
15675         * modules/unicase/u32-toupper: Likewise.
15676         * modules/unicase/ulc-casecmp: Likewise.
15677         * modules/unicase/ulc-casecoll: Likewise.
15678         * modules/unicase/ulc-casexfrm: Likewise.
15679         * modules/uniconv/u8-conv-from-enc: Likewise.
15680         * modules/uniconv/u8-conv-to-enc: Likewise.
15681         * modules/uniconv/u8-strconv-from-enc: Likewise.
15682         * modules/uniconv/u8-strconv-from-locale: Likewise.
15683         * modules/uniconv/u8-strconv-to-enc: Likewise.
15684         * modules/uniconv/u8-strconv-to-locale: Likewise.
15685         * modules/uniconv/u16-conv-from-enc: Likewise.
15686         * modules/uniconv/u16-conv-to-enc: Likewise.
15687         * modules/uniconv/u16-strconv-from-enc: Likewise.
15688         * modules/uniconv/u16-strconv-from-locale: Likewise.
15689         * modules/uniconv/u16-strconv-to-enc: Likewise.
15690         * modules/uniconv/u16-strconv-to-locale: Likewise.
15691         * modules/uniconv/u32-conv-from-enc: Likewise.
15692         * modules/uniconv/u32-conv-to-enc: Likewise.
15693         * modules/uniconv/u32-strconv-from-enc: Likewise.
15694         * modules/uniconv/u32-strconv-from-locale: Likewise.
15695         * modules/uniconv/u32-strconv-to-enc: Likewise.
15696         * modules/uniconv/u32-strconv-to-locale: Likewise.
15697         * modules/unictype/bidicategory-byname: Likewise.
15698         * modules/unictype/bidicategory-name: Likewise.
15699         * modules/unictype/bidicategory-of: Likewise.
15700         * modules/unictype/bidicategory-test: Likewise.
15701         * modules/unictype/block-list: Likewise.
15702         * modules/unictype/block-test: Likewise.
15703         * modules/unictype/category-C: Likewise.
15704         * modules/unictype/category-Cc: Likewise.
15705         * modules/unictype/category-Cf: Likewise.
15706         * modules/unictype/category-Cn: Likewise.
15707         * modules/unictype/category-Co: Likewise.
15708         * modules/unictype/category-Cs: Likewise.
15709         * modules/unictype/category-L: Likewise.
15710         * modules/unictype/category-Ll: Likewise.
15711         * modules/unictype/category-Lm: Likewise.
15712         * modules/unictype/category-Lo: Likewise.
15713         * modules/unictype/category-Lt: Likewise.
15714         * modules/unictype/category-Lu: Likewise.
15715         * modules/unictype/category-M: Likewise.
15716         * modules/unictype/category-Mc: Likewise.
15717         * modules/unictype/category-Me: Likewise.
15718         * modules/unictype/category-Mn: Likewise.
15719         * modules/unictype/category-N: Likewise.
15720         * modules/unictype/category-Nd: Likewise.
15721         * modules/unictype/category-Nl: Likewise.
15722         * modules/unictype/category-No: Likewise.
15723         * modules/unictype/category-P: Likewise.
15724         * modules/unictype/category-Pc: Likewise.
15725         * modules/unictype/category-Pd: Likewise.
15726         * modules/unictype/category-Pe: Likewise.
15727         * modules/unictype/category-Pf: Likewise.
15728         * modules/unictype/category-Pi: Likewise.
15729         * modules/unictype/category-Po: Likewise.
15730         * modules/unictype/category-Ps: Likewise.
15731         * modules/unictype/category-S: Likewise.
15732         * modules/unictype/category-Sc: Likewise.
15733         * modules/unictype/category-Sk: Likewise.
15734         * modules/unictype/category-Sm: Likewise.
15735         * modules/unictype/category-So: Likewise.
15736         * modules/unictype/category-Z: Likewise.
15737         * modules/unictype/category-Zl: Likewise.
15738         * modules/unictype/category-Zp: Likewise.
15739         * modules/unictype/category-Zs: Likewise.
15740         * modules/unictype/category-and: Likewise.
15741         * modules/unictype/category-and-not: Likewise.
15742         * modules/unictype/category-byname: Likewise.
15743         * modules/unictype/category-name: Likewise.
15744         * modules/unictype/category-none: Likewise.
15745         * modules/unictype/category-of: Likewise.
15746         * modules/unictype/category-or: Likewise.
15747         * modules/unictype/category-test: Likewise.
15748         * modules/unictype/combining-class: Likewise.
15749         * modules/unictype/ctype-alnum: Likewise.
15750         * modules/unictype/ctype-alpha: Likewise.
15751         * modules/unictype/ctype-blank: Likewise.
15752         * modules/unictype/ctype-cntrl: Likewise.
15753         * modules/unictype/ctype-digit: Likewise.
15754         * modules/unictype/ctype-graph: Likewise.
15755         * modules/unictype/ctype-lower: Likewise.
15756         * modules/unictype/ctype-print: Likewise.
15757         * modules/unictype/ctype-punct: Likewise.
15758         * modules/unictype/ctype-space: Likewise.
15759         * modules/unictype/ctype-upper: Likewise.
15760         * modules/unictype/ctype-xdigit: Likewise.
15761         * modules/unictype/decimal-digit: Likewise.
15762         * modules/unictype/digit: Likewise.
15763         * modules/unictype/mirror: Likewise.
15764         * modules/unictype/numeric: Likewise.
15765         * modules/unictype/property-alphabetic: Likewise.
15766         * modules/unictype/property-ascii-hex-digit: Likewise.
15767         * modules/unictype/property-bidi-arabic-digit: Likewise.
15768         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15769         * modules/unictype/property-bidi-block-separator: Likewise.
15770         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15771         * modules/unictype/property-bidi-common-separator: Likewise.
15772         * modules/unictype/property-bidi-control: Likewise.
15773         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15774         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15775         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15776         * modules/unictype/property-bidi-european-digit: Likewise.
15777         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15778         * modules/unictype/property-bidi-left-to-right: Likewise.
15779         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15780         * modules/unictype/property-bidi-other-neutral: Likewise.
15781         * modules/unictype/property-bidi-pdf: Likewise.
15782         * modules/unictype/property-bidi-segment-separator: Likewise.
15783         * modules/unictype/property-bidi-whitespace: Likewise.
15784         * modules/unictype/property-byname: Likewise.
15785         * modules/unictype/property-combining: Likewise.
15786         * modules/unictype/property-composite: Likewise.
15787         * modules/unictype/property-currency-symbol: Likewise.
15788         * modules/unictype/property-dash: Likewise.
15789         * modules/unictype/property-decimal-digit: Likewise.
15790         * modules/unictype/property-default-ignorable-code-point: Likewise.
15791         * modules/unictype/property-deprecated: Likewise.
15792         * modules/unictype/property-diacritic: Likewise.
15793         * modules/unictype/property-extender: Likewise.
15794         * modules/unictype/property-format-control: Likewise.
15795         * modules/unictype/property-grapheme-base: Likewise.
15796         * modules/unictype/property-grapheme-extend: Likewise.
15797         * modules/unictype/property-grapheme-link: Likewise.
15798         * modules/unictype/property-hex-digit: Likewise.
15799         * modules/unictype/property-hyphen: Likewise.
15800         * modules/unictype/property-id-continue: Likewise.
15801         * modules/unictype/property-id-start: Likewise.
15802         * modules/unictype/property-ideographic: Likewise.
15803         * modules/unictype/property-ids-binary-operator: Likewise.
15804         * modules/unictype/property-ids-trinary-operator: Likewise.
15805         * modules/unictype/property-ignorable-control: Likewise.
15806         * modules/unictype/property-iso-control: Likewise.
15807         * modules/unictype/property-join-control: Likewise.
15808         * modules/unictype/property-left-of-pair: Likewise.
15809         * modules/unictype/property-line-separator: Likewise.
15810         * modules/unictype/property-logical-order-exception: Likewise.
15811         * modules/unictype/property-lowercase: Likewise.
15812         * modules/unictype/property-math: Likewise.
15813         * modules/unictype/property-non-break: Likewise.
15814         * modules/unictype/property-not-a-character: Likewise.
15815         * modules/unictype/property-numeric: Likewise.
15816         * modules/unictype/property-other-alphabetic: Likewise.
15817         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15818         * modules/unictype/property-other-grapheme-extend: Likewise.
15819         * modules/unictype/property-other-id-continue: Likewise.
15820         * modules/unictype/property-other-id-start: Likewise.
15821         * modules/unictype/property-other-lowercase: Likewise.
15822         * modules/unictype/property-other-math: Likewise.
15823         * modules/unictype/property-other-uppercase: Likewise.
15824         * modules/unictype/property-paired-punctuation: Likewise.
15825         * modules/unictype/property-paragraph-separator: Likewise.
15826         * modules/unictype/property-pattern-syntax: Likewise.
15827         * modules/unictype/property-pattern-white-space: Likewise.
15828         * modules/unictype/property-private-use: Likewise.
15829         * modules/unictype/property-punctuation: Likewise.
15830         * modules/unictype/property-quotation-mark: Likewise.
15831         * modules/unictype/property-radical: Likewise.
15832         * modules/unictype/property-sentence-terminal: Likewise.
15833         * modules/unictype/property-soft-dotted: Likewise.
15834         * modules/unictype/property-space: Likewise.
15835         * modules/unictype/property-terminal-punctuation: Likewise.
15836         * modules/unictype/property-test: Likewise.
15837         * modules/unictype/property-titlecase: Likewise.
15838         * modules/unictype/property-unassigned-code-value: Likewise.
15839         * modules/unictype/property-unified-ideograph: Likewise.
15840         * modules/unictype/property-uppercase: Likewise.
15841         * modules/unictype/property-variation-selector: Likewise.
15842         * modules/unictype/property-white-space: Likewise.
15843         * modules/unictype/property-xid-continue: Likewise.
15844         * modules/unictype/property-xid-start: Likewise.
15845         * modules/unictype/property-zero-width: Likewise.
15846         * modules/unictype/scripts: Likewise.
15847         * modules/unictype/syntax-c-ident: Likewise.
15848         * modules/unictype/syntax-c-whitespace: Likewise.
15849         * modules/unictype/syntax-java-ident: Likewise.
15850         * modules/unictype/syntax-java-whitespace: Likewise.
15851         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15852         * modules/unilbrk/u8-width-linebreaks: Likewise.
15853         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15854         * modules/unilbrk/u16-width-linebreaks: Likewise.
15855         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15856         * modules/unilbrk/u32-width-linebreaks: Likewise.
15857         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15858         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15859         * modules/uniname/uniname: Likewise.
15860         * modules/uninorm/canonical-decomposition: Likewise.
15861         * modules/uninorm/composition: Likewise.
15862         * modules/uninorm/decomposing-form: Likewise.
15863         * modules/uninorm/decomposition: Likewise.
15864         * modules/uninorm/filter: Likewise.
15865         * modules/uninorm/nfc: Likewise.
15866         * modules/uninorm/nfd: Likewise.
15867         * modules/uninorm/nfkc: Likewise.
15868         * modules/uninorm/nfkd: Likewise.
15869         * modules/uninorm/u8-normalize: Likewise.
15870         * modules/uninorm/u8-normcmp: Likewise.
15871         * modules/uninorm/u8-normcoll: Likewise.
15872         * modules/uninorm/u8-normxfrm: Likewise.
15873         * modules/uninorm/u16-normalize: Likewise.
15874         * modules/uninorm/u16-normcmp: Likewise.
15875         * modules/uninorm/u16-normcoll: Likewise.
15876         * modules/uninorm/u16-normxfrm: Likewise.
15877         * modules/uninorm/u32-normalize: Likewise.
15878         * modules/uninorm/u32-normcmp: Likewise.
15879         * modules/uninorm/u32-normcoll: Likewise.
15880         * modules/uninorm/u32-normxfrm: Likewise.
15881         * modules/unistdio/u8-asnprintf: Likewise.
15882         * modules/unistdio/u8-asprintf: Likewise.
15883         * modules/unistdio/u8-snprintf: Likewise.
15884         * modules/unistdio/u8-sprintf: Likewise.
15885         * modules/unistdio/u8-u8-asnprintf: Likewise.
15886         * modules/unistdio/u8-u8-asprintf: Likewise.
15887         * modules/unistdio/u8-u8-snprintf: Likewise.
15888         * modules/unistdio/u8-u8-sprintf: Likewise.
15889         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15890         * modules/unistdio/u8-u8-vasprintf: Likewise.
15891         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15892         * modules/unistdio/u8-u8-vsprintf: Likewise.
15893         * modules/unistdio/u8-vasnprintf: Likewise.
15894         * modules/unistdio/u8-vasprintf: Likewise.
15895         * modules/unistdio/u8-vsnprintf: Likewise.
15896         * modules/unistdio/u8-vsprintf: Likewise.
15897         * modules/unistdio/u16-asnprintf: Likewise.
15898         * modules/unistdio/u16-asprintf: Likewise.
15899         * modules/unistdio/u16-snprintf: Likewise.
15900         * modules/unistdio/u16-sprintf: Likewise.
15901         * modules/unistdio/u16-u16-asnprintf: Likewise.
15902         * modules/unistdio/u16-u16-asprintf: Likewise.
15903         * modules/unistdio/u16-u16-snprintf: Likewise.
15904         * modules/unistdio/u16-u16-sprintf: Likewise.
15905         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15906         * modules/unistdio/u16-u16-vasprintf: Likewise.
15907         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15908         * modules/unistdio/u16-u16-vsprintf: Likewise.
15909         * modules/unistdio/u16-vasnprintf: Likewise.
15910         * modules/unistdio/u16-vasprintf: Likewise.
15911         * modules/unistdio/u16-vsnprintf: Likewise.
15912         * modules/unistdio/u16-vsprintf: Likewise.
15913         * modules/unistdio/u32-asnprintf: Likewise.
15914         * modules/unistdio/u32-asprintf: Likewise.
15915         * modules/unistdio/u32-snprintf: Likewise.
15916         * modules/unistdio/u32-sprintf: Likewise.
15917         * modules/unistdio/u32-u32-asnprintf: Likewise.
15918         * modules/unistdio/u32-u32-asprintf: Likewise.
15919         * modules/unistdio/u32-u32-snprintf: Likewise.
15920         * modules/unistdio/u32-u32-sprintf: Likewise.
15921         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15922         * modules/unistdio/u32-u32-vasprintf: Likewise.
15923         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15924         * modules/unistdio/u32-u32-vsprintf: Likewise.
15925         * modules/unistdio/u32-vasnprintf: Likewise.
15926         * modules/unistdio/u32-vasprintf: Likewise.
15927         * modules/unistdio/u32-vsnprintf: Likewise.
15928         * modules/unistdio/u32-vsprintf: Likewise.
15929         * modules/unistdio/ulc-asnprintf: Likewise.
15930         * modules/unistdio/ulc-asprintf: Likewise.
15931         * modules/unistdio/ulc-fprintf: Likewise.
15932         * modules/unistdio/ulc-snprintf: Likewise.
15933         * modules/unistdio/ulc-sprintf: Likewise.
15934         * modules/unistdio/ulc-vasnprintf: Likewise.
15935         * modules/unistdio/ulc-vasprintf: Likewise.
15936         * modules/unistdio/ulc-vfprintf: Likewise.
15937         * modules/unistdio/ulc-vsnprintf: Likewise.
15938         * modules/unistdio/ulc-vsprintf: Likewise.
15939         * modules/unistr/u8-check: Likewise.
15940         * modules/unistr/u8-chr: Likewise.
15941         * modules/unistr/u8-cmp: Likewise.
15942         * modules/unistr/u8-cmp2: Likewise.
15943         * modules/unistr/u8-cpy: Likewise.
15944         * modules/unistr/u8-cpy-alloc: Likewise.
15945         * modules/unistr/u8-endswith: Likewise.
15946         * modules/unistr/u8-mblen: Likewise.
15947         * modules/unistr/u8-mbsnlen: Likewise.
15948         * modules/unistr/u8-mbtouc: Likewise.
15949         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15950         * modules/unistr/u8-mbtoucr: Likewise.
15951         * modules/unistr/u8-move: Likewise.
15952         * modules/unistr/u8-next: Likewise.
15953         * modules/unistr/u8-prev: Likewise.
15954         * modules/unistr/u8-set: Likewise.
15955         * modules/unistr/u8-startswith: Likewise.
15956         * modules/unistr/u8-stpcpy: Likewise.
15957         * modules/unistr/u8-stpncpy: Likewise.
15958         * modules/unistr/u8-strcat: Likewise.
15959         * modules/unistr/u8-strchr: Likewise.
15960         * modules/unistr/u8-strcmp: Likewise.
15961         * modules/unistr/u8-strcoll: Likewise.
15962         * modules/unistr/u8-strcpy: Likewise.
15963         * modules/unistr/u8-strcspn: Likewise.
15964         * modules/unistr/u8-strdup: Likewise.
15965         * modules/unistr/u8-strlen: Likewise.
15966         * modules/unistr/u8-strmblen: Likewise.
15967         * modules/unistr/u8-strmbtouc: Likewise.
15968         * modules/unistr/u8-strncat: Likewise.
15969         * modules/unistr/u8-strncmp: Likewise.
15970         * modules/unistr/u8-strncpy: Likewise.
15971         * modules/unistr/u8-strnlen: Likewise.
15972         * modules/unistr/u8-strpbrk: Likewise.
15973         * modules/unistr/u8-strrchr: Likewise.
15974         * modules/unistr/u8-strspn: Likewise.
15975         * modules/unistr/u8-strstr: Likewise.
15976         * modules/unistr/u8-strtok: Likewise.
15977         * modules/unistr/u8-to-u16: Likewise.
15978         * modules/unistr/u8-to-u32: Likewise.
15979         * modules/unistr/u8-uctomb: Likewise.
15980         * modules/unistr/u16-check: Likewise.
15981         * modules/unistr/u16-chr: Likewise.
15982         * modules/unistr/u16-cmp: Likewise.
15983         * modules/unistr/u16-cmp2: Likewise.
15984         * modules/unistr/u16-cpy: Likewise.
15985         * modules/unistr/u16-cpy-alloc: Likewise.
15986         * modules/unistr/u16-endswith: Likewise.
15987         * modules/unistr/u16-mblen: Likewise.
15988         * modules/unistr/u16-mbsnlen: Likewise.
15989         * modules/unistr/u16-mbtouc: Likewise.
15990         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15991         * modules/unistr/u16-mbtoucr: Likewise.
15992         * modules/unistr/u16-move: Likewise.
15993         * modules/unistr/u16-next: Likewise.
15994         * modules/unistr/u16-prev: Likewise.
15995         * modules/unistr/u16-set: Likewise.
15996         * modules/unistr/u16-startswith: Likewise.
15997         * modules/unistr/u16-stpcpy: Likewise.
15998         * modules/unistr/u16-stpncpy: Likewise.
15999         * modules/unistr/u16-strcat: Likewise.
16000         * modules/unistr/u16-strchr: Likewise.
16001         * modules/unistr/u16-strcmp: Likewise.
16002         * modules/unistr/u16-strcoll: Likewise.
16003         * modules/unistr/u16-strcpy: Likewise.
16004         * modules/unistr/u16-strcspn: Likewise.
16005         * modules/unistr/u16-strdup: Likewise.
16006         * modules/unistr/u16-strlen: Likewise.
16007         * modules/unistr/u16-strmblen: Likewise.
16008         * modules/unistr/u16-strmbtouc: Likewise.
16009         * modules/unistr/u16-strncat: Likewise.
16010         * modules/unistr/u16-strncmp: Likewise.
16011         * modules/unistr/u16-strncpy: Likewise.
16012         * modules/unistr/u16-strnlen: Likewise.
16013         * modules/unistr/u16-strpbrk: Likewise.
16014         * modules/unistr/u16-strrchr: Likewise.
16015         * modules/unistr/u16-strspn: Likewise.
16016         * modules/unistr/u16-strstr: Likewise.
16017         * modules/unistr/u16-strtok: Likewise.
16018         * modules/unistr/u16-to-u32: Likewise.
16019         * modules/unistr/u16-to-u8: Likewise.
16020         * modules/unistr/u16-uctomb: Likewise.
16021         * modules/unistr/u32-check: Likewise.
16022         * modules/unistr/u32-chr: Likewise.
16023         * modules/unistr/u32-cmp: Likewise.
16024         * modules/unistr/u32-cmp2: Likewise.
16025         * modules/unistr/u32-cpy: Likewise.
16026         * modules/unistr/u32-cpy-alloc: Likewise.
16027         * modules/unistr/u32-endswith: Likewise.
16028         * modules/unistr/u32-mblen: Likewise.
16029         * modules/unistr/u32-mbsnlen: Likewise.
16030         * modules/unistr/u32-mbtouc: Likewise.
16031         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16032         * modules/unistr/u32-mbtoucr: Likewise.
16033         * modules/unistr/u32-move: Likewise.
16034         * modules/unistr/u32-next: Likewise.
16035         * modules/unistr/u32-prev: Likewise.
16036         * modules/unistr/u32-set: Likewise.
16037         * modules/unistr/u32-startswith: Likewise.
16038         * modules/unistr/u32-stpcpy: Likewise.
16039         * modules/unistr/u32-stpncpy: Likewise.
16040         * modules/unistr/u32-strcat: Likewise.
16041         * modules/unistr/u32-strchr: Likewise.
16042         * modules/unistr/u32-strcmp: Likewise.
16043         * modules/unistr/u32-strcoll: Likewise.
16044         * modules/unistr/u32-strcpy: Likewise.
16045         * modules/unistr/u32-strcspn: Likewise.
16046         * modules/unistr/u32-strdup: Likewise.
16047         * modules/unistr/u32-strlen: Likewise.
16048         * modules/unistr/u32-strmblen: Likewise.
16049         * modules/unistr/u32-strmbtouc: Likewise.
16050         * modules/unistr/u32-strncat: Likewise.
16051         * modules/unistr/u32-strncmp: Likewise.
16052         * modules/unistr/u32-strncpy: Likewise.
16053         * modules/unistr/u32-strnlen: Likewise.
16054         * modules/unistr/u32-strpbrk: Likewise.
16055         * modules/unistr/u32-strrchr: Likewise.
16056         * modules/unistr/u32-strspn: Likewise.
16057         * modules/unistr/u32-strstr: Likewise.
16058         * modules/unistr/u32-strtok: Likewise.
16059         * modules/unistr/u32-to-u16: Likewise.
16060         * modules/unistr/u32-to-u8: Likewise.
16061         * modules/unistr/u32-uctomb: Likewise.
16062         * modules/uniwbrk/u8-wordbreaks: Likewise.
16063         * modules/uniwbrk/u16-wordbreaks: Likewise.
16064         * modules/uniwbrk/u32-wordbreaks: Likewise.
16065         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16066         * modules/uniwbrk/wordbreak-property: Likewise.
16067         * modules/uniwidth/u8-strwidth: Likewise.
16068         * modules/uniwidth/u8-width: Likewise.
16069         * modules/uniwidth/u16-strwidth: Likewise.
16070         * modules/uniwidth/u16-width: Likewise.
16071         * modules/uniwidth/u32-strwidth: Likewise.
16072         * modules/uniwidth/u32-width: Likewise.
16073         * modules/uniwidth/width: Likewise.
16074         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16075         with $(LIBUNISTRING).
16076         * modules/unicase/ignorable-tests: Likewise.
16077         * modules/unicase/locale-language-tests: Likewise.
16078         * modules/unicase/tolower-tests: Likewise.
16079         * modules/unicase/totitle-tests: Likewise.
16080         * modules/unicase/toupper-tests: Likewise.
16081         * modules/unicase/u8-casecmp-tests: Likewise.
16082         * modules/unicase/u8-casecoll-tests: Likewise.
16083         * modules/unicase/u8-casefold-tests: Likewise.
16084         * modules/unicase/u8-is-cased-tests: Likewise.
16085         * modules/unicase/u8-is-casefolded-tests: Likewise.
16086         * modules/unicase/u8-is-lowercase-tests: Likewise.
16087         * modules/unicase/u8-is-titlecase-tests: Likewise.
16088         * modules/unicase/u8-is-uppercase-tests: Likewise.
16089         * modules/unicase/u8-tolower-tests: Likewise.
16090         * modules/unicase/u8-totitle-tests: Likewise.
16091         * modules/unicase/u8-toupper-tests: Likewise.
16092         * modules/unicase/u16-casecmp-tests: Likewise.
16093         * modules/unicase/u16-casecoll-tests: Likewise.
16094         * modules/unicase/u16-casefold-tests: Likewise.
16095         * modules/unicase/u16-is-cased-tests: Likewise.
16096         * modules/unicase/u16-is-casefolded-tests: Likewise.
16097         * modules/unicase/u16-is-lowercase-tests: Likewise.
16098         * modules/unicase/u16-is-titlecase-tests: Likewise.
16099         * modules/unicase/u16-is-uppercase-tests: Likewise.
16100         * modules/unicase/u16-tolower-tests: Likewise.
16101         * modules/unicase/u16-totitle-tests: Likewise.
16102         * modules/unicase/u16-toupper-tests: Likewise.
16103         * modules/unicase/u32-casecmp-tests: Likewise.
16104         * modules/unicase/u32-casecoll-tests: Likewise.
16105         * modules/unicase/u32-casefold-tests: Likewise.
16106         * modules/unicase/u32-is-cased-tests: Likewise.
16107         * modules/unicase/u32-is-casefolded-tests: Likewise.
16108         * modules/unicase/u32-is-lowercase-tests: Likewise.
16109         * modules/unicase/u32-is-titlecase-tests: Likewise.
16110         * modules/unicase/u32-is-uppercase-tests: Likewise.
16111         * modules/unicase/u32-tolower-tests: Likewise.
16112         * modules/unicase/u32-totitle-tests: Likewise.
16113         * modules/unicase/u32-toupper-tests: Likewise.
16114         * modules/unicase/ulc-casecmp-tests: Likewise.
16115         * modules/unicase/ulc-casecoll-tests: Likewise.
16116         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16117         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16118         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16119         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16120         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16121         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16122         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16123         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16124         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16125         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16126         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16127         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16128         * modules/unictype/bidicategory-byname-tests: Likewise.
16129         * modules/unictype/bidicategory-name-tests: Likewise.
16130         * modules/unictype/bidicategory-of-tests: Likewise.
16131         * modules/unictype/bidicategory-test-tests: Likewise.
16132         * modules/unictype/block-list-tests: Likewise.
16133         * modules/unictype/block-of-tests: Likewise.
16134         * modules/unictype/block-test-tests: Likewise.
16135         * modules/unictype/category-C-tests: Likewise.
16136         * modules/unictype/category-Cc-tests: Likewise.
16137         * modules/unictype/category-Cf-tests: Likewise.
16138         * modules/unictype/category-Cn-tests: Likewise.
16139         * modules/unictype/category-Co-tests: Likewise.
16140         * modules/unictype/category-Cs-tests: Likewise.
16141         * modules/unictype/category-L-tests: Likewise.
16142         * modules/unictype/category-Ll-tests: Likewise.
16143         * modules/unictype/category-Lm-tests: Likewise.
16144         * modules/unictype/category-Lo-tests: Likewise.
16145         * modules/unictype/category-Lt-tests: Likewise.
16146         * modules/unictype/category-Lu-tests: Likewise.
16147         * modules/unictype/category-M-tests: Likewise.
16148         * modules/unictype/category-Mc-tests: Likewise.
16149         * modules/unictype/category-Me-tests: Likewise.
16150         * modules/unictype/category-Mn-tests: Likewise.
16151         * modules/unictype/category-N-tests: Likewise.
16152         * modules/unictype/category-Nd-tests: Likewise.
16153         * modules/unictype/category-Nl-tests: Likewise.
16154         * modules/unictype/category-No-tests: Likewise.
16155         * modules/unictype/category-P-tests: Likewise.
16156         * modules/unictype/category-Pc-tests: Likewise.
16157         * modules/unictype/category-Pd-tests: Likewise.
16158         * modules/unictype/category-Pe-tests: Likewise.
16159         * modules/unictype/category-Pf-tests: Likewise.
16160         * modules/unictype/category-Pi-tests: Likewise.
16161         * modules/unictype/category-Po-tests: Likewise.
16162         * modules/unictype/category-Ps-tests: Likewise.
16163         * modules/unictype/category-S-tests: Likewise.
16164         * modules/unictype/category-Sc-tests: Likewise.
16165         * modules/unictype/category-Sk-tests: Likewise.
16166         * modules/unictype/category-Sm-tests: Likewise.
16167         * modules/unictype/category-So-tests: Likewise.
16168         * modules/unictype/category-Z-tests: Likewise.
16169         * modules/unictype/category-Zl-tests: Likewise.
16170         * modules/unictype/category-Zp-tests: Likewise.
16171         * modules/unictype/category-Zs-tests: Likewise.
16172         * modules/unictype/category-and-not-tests: Likewise.
16173         * modules/unictype/category-and-tests: Likewise.
16174         * modules/unictype/category-byname-tests: Likewise.
16175         * modules/unictype/category-name-tests: Likewise.
16176         * modules/unictype/category-none-tests: Likewise.
16177         * modules/unictype/category-of-tests: Likewise.
16178         * modules/unictype/category-or-tests: Likewise.
16179         * modules/unictype/category-test-withtable-tests: Likewise.
16180         * modules/unictype/combining-class-tests: Likewise.
16181         * modules/unictype/ctype-alnum-tests: Likewise.
16182         * modules/unictype/ctype-alpha-tests: Likewise.
16183         * modules/unictype/ctype-blank-tests: Likewise.
16184         * modules/unictype/ctype-cntrl-tests: Likewise.
16185         * modules/unictype/ctype-digit-tests: Likewise.
16186         * modules/unictype/ctype-graph-tests: Likewise.
16187         * modules/unictype/ctype-lower-tests: Likewise.
16188         * modules/unictype/ctype-print-tests: Likewise.
16189         * modules/unictype/ctype-punct-tests: Likewise.
16190         * modules/unictype/ctype-space-tests: Likewise.
16191         * modules/unictype/ctype-upper-tests: Likewise.
16192         * modules/unictype/ctype-xdigit-tests: Likewise.
16193         * modules/unictype/decimal-digit-tests: Likewise.
16194         * modules/unictype/digit-tests: Likewise.
16195         * modules/unictype/mirror-tests: Likewise.
16196         * modules/unictype/numeric-tests: Likewise.
16197         * modules/unictype/property-alphabetic-tests: Likewise.
16198         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16199         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16200         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16201         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16202         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16203         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16204         * modules/unictype/property-bidi-control-tests: Likewise.
16205         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16206         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16207         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16208         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16209         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16210         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16211         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16212         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16213         * modules/unictype/property-bidi-pdf-tests: Likewise.
16214         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16215         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16216         * modules/unictype/property-byname-tests: Likewise.
16217         * modules/unictype/property-combining-tests: Likewise.
16218         * modules/unictype/property-composite-tests: Likewise.
16219         * modules/unictype/property-currency-symbol-tests: Likewise.
16220         * modules/unictype/property-dash-tests: Likewise.
16221         * modules/unictype/property-decimal-digit-tests: Likewise.
16222         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16223         * modules/unictype/property-deprecated-tests: Likewise.
16224         * modules/unictype/property-diacritic-tests: Likewise.
16225         * modules/unictype/property-extender-tests: Likewise.
16226         * modules/unictype/property-format-control-tests: Likewise.
16227         * modules/unictype/property-grapheme-base-tests: Likewise.
16228         * modules/unictype/property-grapheme-extend-tests: Likewise.
16229         * modules/unictype/property-grapheme-link-tests: Likewise.
16230         * modules/unictype/property-hex-digit-tests: Likewise.
16231         * modules/unictype/property-hyphen-tests: Likewise.
16232         * modules/unictype/property-id-continue-tests: Likewise.
16233         * modules/unictype/property-id-start-tests: Likewise.
16234         * modules/unictype/property-ideographic-tests: Likewise.
16235         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16236         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16237         * modules/unictype/property-ignorable-control-tests: Likewise.
16238         * modules/unictype/property-iso-control-tests: Likewise.
16239         * modules/unictype/property-join-control-tests: Likewise.
16240         * modules/unictype/property-left-of-pair-tests: Likewise.
16241         * modules/unictype/property-line-separator-tests: Likewise.
16242         * modules/unictype/property-logical-order-exception-tests: Likewise.
16243         * modules/unictype/property-lowercase-tests: Likewise.
16244         * modules/unictype/property-math-tests: Likewise.
16245         * modules/unictype/property-non-break-tests: Likewise.
16246         * modules/unictype/property-not-a-character-tests: Likewise.
16247         * modules/unictype/property-numeric-tests: Likewise.
16248         * modules/unictype/property-other-alphabetic-tests: Likewise.
16249         * modules/unictype/property-other-default-ignorable-code-point-tests:
16250         Likewise.
16251         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16252         * modules/unictype/property-other-id-continue-tests: Likewise.
16253         * modules/unictype/property-other-id-start-tests: Likewise.
16254         * modules/unictype/property-other-lowercase-tests: Likewise.
16255         * modules/unictype/property-other-math-tests: Likewise.
16256         * modules/unictype/property-other-uppercase-tests: Likewise.
16257         * modules/unictype/property-paired-punctuation-tests: Likewise.
16258         * modules/unictype/property-paragraph-separator-tests: Likewise.
16259         * modules/unictype/property-pattern-syntax-tests: Likewise.
16260         * modules/unictype/property-pattern-white-space-tests: Likewise.
16261         * modules/unictype/property-private-use-tests: Likewise.
16262         * modules/unictype/property-punctuation-tests: Likewise.
16263         * modules/unictype/property-quotation-mark-tests: Likewise.
16264         * modules/unictype/property-radical-tests: Likewise.
16265         * modules/unictype/property-sentence-terminal-tests: Likewise.
16266         * modules/unictype/property-soft-dotted-tests: Likewise.
16267         * modules/unictype/property-space-tests: Likewise.
16268         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16269         * modules/unictype/property-test-tests: Likewise.
16270         * modules/unictype/property-titlecase-tests: Likewise.
16271         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16272         * modules/unictype/property-unified-ideograph-tests: Likewise.
16273         * modules/unictype/property-uppercase-tests: Likewise.
16274         * modules/unictype/property-variation-selector-tests: Likewise.
16275         * modules/unictype/property-white-space-tests: Likewise.
16276         * modules/unictype/property-xid-continue-tests: Likewise.
16277         * modules/unictype/property-xid-start-tests: Likewise.
16278         * modules/unictype/property-zero-width-tests: Likewise.
16279         * modules/unictype/scripts-tests: Likewise.
16280         * modules/unictype/syntax-c-ident-tests: Likewise.
16281         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16282         * modules/unictype/syntax-java-ident-tests: Likewise.
16283         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16284         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16285         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16286         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16287         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16288         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16289         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16290         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16291         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16292         * modules/uniname/uniname-tests: Likewise.
16293         * modules/uninorm/canonical-decomposition-tests: Likewise.
16294         * modules/uninorm/compat-decomposition-tests: Likewise.
16295         * modules/uninorm/composition-tests: Likewise.
16296         * modules/uninorm/decomposing-form-tests: Likewise.
16297         * modules/uninorm/decomposition-tests: Likewise.
16298         * modules/uninorm/filter-tests: Likewise.
16299         * modules/uninorm/nfc-tests: Likewise.
16300         * modules/uninorm/nfd-tests: Likewise.
16301         * modules/uninorm/nfkc-tests: Likewise.
16302         * modules/uninorm/nfkd-tests: Likewise.
16303         * modules/uninorm/u8-normcmp-tests: Likewise.
16304         * modules/uninorm/u8-normcoll-tests: Likewise.
16305         * modules/uninorm/u16-normcmp-tests: Likewise.
16306         * modules/uninorm/u16-normcoll-tests: Likewise.
16307         * modules/uninorm/u32-normcmp-tests: Likewise.
16308         * modules/uninorm/u32-normcoll-tests: Likewise.
16309         * modules/unistdio/u8-asnprintf-tests: Likewise.
16310         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16311         * modules/unistdio/u8-vasprintf-tests: Likewise.
16312         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16313         * modules/unistdio/u8-vsprintf-tests: Likewise.
16314         * modules/unistdio/u16-asnprintf-tests: Likewise.
16315         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16316         * modules/unistdio/u16-vasprintf-tests: Likewise.
16317         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16318         * modules/unistdio/u16-vsprintf-tests: Likewise.
16319         * modules/unistdio/u32-asnprintf-tests: Likewise.
16320         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16321         * modules/unistdio/u32-vasprintf-tests: Likewise.
16322         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16323         * modules/unistdio/u32-vsprintf-tests: Likewise.
16324         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16325         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16326         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16327         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16328         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16329         * modules/unistr/u8-check-tests: Likewise.
16330         * modules/unistr/u8-chr-tests: Likewise.
16331         * modules/unistr/u8-cmp-tests: Likewise.
16332         * modules/unistr/u8-cmp2-tests: Likewise.
16333         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16334         * modules/unistr/u8-cpy-tests: Likewise.
16335         * modules/unistr/u8-mblen-tests: Likewise.
16336         * modules/unistr/u8-mbsnlen-tests: Likewise.
16337         * modules/unistr/u8-mbtouc-tests: Likewise.
16338         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16339         * modules/unistr/u8-mbtoucr-tests: Likewise.
16340         * modules/unistr/u8-move-tests: Likewise.
16341         * modules/unistr/u8-next-tests: Likewise.
16342         * modules/unistr/u8-prev-tests: Likewise.
16343         * modules/unistr/u8-set-tests: Likewise.
16344         * modules/unistr/u8-stpcpy-tests: Likewise.
16345         * modules/unistr/u8-stpncpy-tests: Likewise.
16346         * modules/unistr/u8-strcat-tests: Likewise.
16347         * modules/unistr/u8-strcmp-tests: Likewise.
16348         * modules/unistr/u8-strcoll-tests: Likewise.
16349         * modules/unistr/u8-strcpy-tests: Likewise.
16350         * modules/unistr/u8-strdup-tests: Likewise.
16351         * modules/unistr/u8-strlen-tests: Likewise.
16352         * modules/unistr/u8-strmblen-tests: Likewise.
16353         * modules/unistr/u8-strmbtouc-tests: Likewise.
16354         * modules/unistr/u8-strncat-tests: Likewise.
16355         * modules/unistr/u8-strncmp-tests: Likewise.
16356         * modules/unistr/u8-strncpy-tests: Likewise.
16357         * modules/unistr/u8-strnlen-tests: Likewise.
16358         * modules/unistr/u8-to-u16-tests: Likewise.
16359         * modules/unistr/u8-to-u32-tests: Likewise.
16360         * modules/unistr/u8-uctomb-tests: Likewise.
16361         * modules/unistr/u16-check-tests: Likewise.
16362         * modules/unistr/u16-chr-tests: Likewise.
16363         * modules/unistr/u16-cmp-tests: Likewise.
16364         * modules/unistr/u16-cmp2-tests: Likewise.
16365         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16366         * modules/unistr/u16-cpy-tests: Likewise.
16367         * modules/unistr/u16-mblen-tests: Likewise.
16368         * modules/unistr/u16-mbsnlen-tests: Likewise.
16369         * modules/unistr/u16-mbtouc-tests: Likewise.
16370         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16371         * modules/unistr/u16-mbtoucr-tests: Likewise.
16372         * modules/unistr/u16-move-tests: Likewise.
16373         * modules/unistr/u16-next-tests: Likewise.
16374         * modules/unistr/u16-prev-tests: Likewise.
16375         * modules/unistr/u16-set-tests: Likewise.
16376         * modules/unistr/u16-stpcpy-tests: Likewise.
16377         * modules/unistr/u16-stpncpy-tests: Likewise.
16378         * modules/unistr/u16-strcat-tests: Likewise.
16379         * modules/unistr/u16-strcmp-tests: Likewise.
16380         * modules/unistr/u16-strcoll-tests: Likewise.
16381         * modules/unistr/u16-strcpy-tests: Likewise.
16382         * modules/unistr/u16-strdup-tests: Likewise.
16383         * modules/unistr/u16-strlen-tests: Likewise.
16384         * modules/unistr/u16-strmblen-tests: Likewise.
16385         * modules/unistr/u16-strmbtouc-tests: Likewise.
16386         * modules/unistr/u16-strncat-tests: Likewise.
16387         * modules/unistr/u16-strncmp-tests: Likewise.
16388         * modules/unistr/u16-strncpy-tests: Likewise.
16389         * modules/unistr/u16-strnlen-tests: Likewise.
16390         * modules/unistr/u16-to-u32-tests: Likewise.
16391         * modules/unistr/u16-to-u8-tests: Likewise.
16392         * modules/unistr/u16-uctomb-tests: Likewise.
16393         * modules/unistr/u32-check-tests: Likewise.
16394         * modules/unistr/u32-chr-tests: Likewise.
16395         * modules/unistr/u32-cmp-tests: Likewise.
16396         * modules/unistr/u32-cmp2-tests: Likewise.
16397         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16398         * modules/unistr/u32-cpy-tests: Likewise.
16399         * modules/unistr/u32-mblen-tests: Likewise.
16400         * modules/unistr/u32-mbsnlen-tests: Likewise.
16401         * modules/unistr/u32-mbtouc-tests: Likewise.
16402         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16403         * modules/unistr/u32-mbtoucr-tests: Likewise.
16404         * modules/unistr/u32-move-tests: Likewise.
16405         * modules/unistr/u32-next-tests: Likewise.
16406         * modules/unistr/u32-prev-tests: Likewise.
16407         * modules/unistr/u32-set-tests: Likewise.
16408         * modules/unistr/u32-stpcpy-tests: Likewise.
16409         * modules/unistr/u32-stpncpy-tests: Likewise.
16410         * modules/unistr/u32-strcat-tests: Likewise.
16411         * modules/unistr/u32-strcmp-tests: Likewise.
16412         * modules/unistr/u32-strcoll-tests: Likewise.
16413         * modules/unistr/u32-strcpy-tests: Likewise.
16414         * modules/unistr/u32-strdup-tests: Likewise.
16415         * modules/unistr/u32-strlen-tests: Likewise.
16416         * modules/unistr/u32-strmblen-tests: Likewise.
16417         * modules/unistr/u32-strmbtouc-tests: Likewise.
16418         * modules/unistr/u32-strncat-tests: Likewise.
16419         * modules/unistr/u32-strncmp-tests: Likewise.
16420         * modules/unistr/u32-strncpy-tests: Likewise.
16421         * modules/unistr/u32-strnlen-tests: Likewise.
16422         * modules/unistr/u32-to-u16-tests: Likewise.
16423         * modules/unistr/u32-to-u8-tests: Likewise.
16424         * modules/unistr/u32-uctomb-tests: Likewise.
16425         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16426         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16427         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16428         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16429         * modules/uniwidth/u8-strwidth-tests: Likewise.
16430         * modules/uniwidth/u8-width-tests: Likewise.
16431         * modules/uniwidth/u16-strwidth-tests: Likewise.
16432         * modules/uniwidth/u16-width-tests: Likewise.
16433         * modules/uniwidth/u32-strwidth-tests: Likewise.
16434         * modules/uniwidth/u32-width-tests: Likewise.
16435         * modules/uniwidth/width-tests: Likewise.
16436
16437 2010-05-18  Richard Jones  <rjones@redhat.com>
16438
16439         doc: users.txt: list hivex
16440         * users.txt: Add hivex.
16441
16442 2010-05-18  Richard Jones  <rjones@redhat.com>
16443
16444         doc: users.txt: list febootstrap
16445         * users.txt: Add febootstrap.
16446
16447 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16448
16449         bootstrap: fix an error when gnulib is not used as a git submodule
16450         * build-aux/bootstrap (gnulib_path): If its length is zero then
16451         assign "gnulib" to it.
16452         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16453
16454 2010-05-16  Bruno Haible  <bruno@clisp.org>
16455
16456         Avoid autoconf warnings about AM_ICONV.
16457         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16458         2.64.
16459
16460 2010-05-16  Bruno Haible  <bruno@clisp.org>
16461
16462         absolute-header: Make the macro usable in more situations.
16463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16464         from gl_ABSOLUTE_HEADER.
16465         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16466
16467 2010-05-16  James Youngman  <jay@gnu.org>
16468
16469         doc: update users.txt
16470         * users.txt: Add CSSC.
16471
16472 2010-05-16  Jim Meyering  <meyering@redhat.com>
16473
16474         init.sh: fix an error in the previous change; add more comments
16475         * tests/init.sh: Compare exit code in loop against 9, not 2.
16476         Patch by Bruno Haible.
16477         Make the two tests more similar by adding an empty "then" clause.
16478         Add comments.
16479
16480         init.sh: avoid unnecessary shell re-exec
16481         * tests/init.sh: Improve the re-exec-required check to first test the
16482         current shell.  If it passes the test, do not search for a shell that
16483         does pass, and do not re-exec.  This test is particularly contorted to
16484         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16485         of $(...) evokes a syntax error and causes immediate shell exit with
16486         status 2.  Bruno Haible reported that the re-exec made it impossible
16487         to single-step through any init.sh-using script.
16488
16489 2010-05-16  Bruno Haible  <bruno@clisp.org>
16490
16491         Fix collision between gnulib's and libintl's printf replacements.
16492         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16493         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16494         (printf): When using GNU C, map the __printf__ function to rpl_printf
16495         via __asm__. When not using GNU C, define rpl_printf instead of
16496         __printf__.
16497         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16498         commit.
16499         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16500         commit.
16501         * m4/asm-underscore.m4: New file.
16502         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16503         * modules/stdio (Files): Add m4/asm-underscore.m4.
16504         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16505         Reported by Ben Pfaff.
16506
16507 2010-05-16  Bruno Haible  <bruno@clisp.org>
16508
16509         verify: Avoid skipping the test on openSUSE 11.0.
16510         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16511
16512 2010-05-13  Bruno Haible  <bruno@clisp.org>
16513
16514         Avoid useless warnings from G++.
16515         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16516         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16517         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16518
16519 2010-05-11  Jim Meyering  <meyering@redhat.com>
16520
16521         maint.mk: tweak preceding change
16522         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16523         regexps tighter by anchoring at EOL, and make the new group "shy"
16524         for slightly decreased overhead.
16525
16526 2010-05-11  Eric Blake  <eblake@redhat.com>
16527
16528         maint.mk: gnulib doesn't guarantee NSIG
16529         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16530
16531 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16532
16533         test-pwrite.c: Remove unused variable declaration.
16534         * tests/test-pwrite.c (main): Remove read_buf declaration.
16535
16536         Remove useless test-pwrite.sh file.
16537         * tests/test-pwrite.sh: Delete file.
16538         * modules/pwrite-tests: Remove references.
16539         Reported by Bruno Haible.
16540
16541 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16542
16543         init.sh: fix a typo
16544         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16545
16546 2010-05-10  Jim Meyering  <meyering@redhat.com>
16547
16548         maint.mk: avoid using a temporary file in the always-defined-macros check
16549         * top/maint.mk (.re-defmac): Remove rule.
16550         (gl_trap_): Remove definition.
16551         (sc_prohibit_always-defined_macros): Rewrite not to create and
16552         depend on a temporary file.  Instead, depend on GNU grep's ability
16553         to read a list of regular expressions from stdin when given "-f -".
16554
16555 2010-05-09  Bruno Haible  <bruno@clisp.org>
16556
16557         Update to GNU gettext 0.18, part 1.
16558         * m4/gettext.m4: Update to GNU gettext 0.18.
16559         * m4/intl.m4: Likewise.
16560         * m4/po.m4: Likewise.
16561         * modules/gettext (Files): Add m4/fcntl-o.m4.
16562         (configure.ac): Require gettext infrastructure from version 0.18.
16563
16564 2010-05-09  Jim Meyering  <meyering@redhat.com>
16565
16566         init.sh: enable MALLOC_PERTURB_
16567         * tests/init.sh: Enable glibc's malloc-perturbing option.
16568
16569         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16570         With my recent change in init.sh from the two-line form:
16571             -#   : ${srcdir=.}
16572             -#   . "$srcdir/init.sh"; path_prepend_ .
16573             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16574         I noticed that using the one-line form would cause this test
16575         to fail with a false-positive, or to stop working altogether,
16576         depending on whether help-version changed or all the tests did.
16577         * top/maint.mk (_hv_regex): Remove this definition.
16578         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16579         (_hv_regex_strong): Use a stronger regex to check for conformance.
16580         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16581         Give a separate diagnostic for lack of conforming use.
16582
16583         maint.mk: prohibit definition of symbols defined by gnulib
16584         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16585         definition of symbols defined by gnulib.
16586
16587 2010-05-09  Bruno Haible  <bruno@clisp.org>
16588
16589         acl: Avoid test failure on Cygwin-hosted mingw.
16590         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16591
16592 2010-05-09  Bruno Haible  <bruno@clisp.org>
16593
16594         error: Use system's fcntl function.
16595         * lib/error.c (fcntl): Undefine.
16596
16597 2010-05-09  Jim Meyering  <meyering@redhat.com>
16598
16599         verify: adjust formatting to be more consistent
16600         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16601         argument-list '('s, and after one comma.
16602
16603 2010-05-09  Bruno Haible  <bruno@clisp.org>
16604
16605         error: More reliable output on mingw.
16606         * lib/error.c: Include <windows.h>.
16607         (is_open): New function.
16608         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16609         defined.
16610
16611 2010-05-09  Bruno Haible  <bruno@clisp.org>
16612
16613         vasnprintf: Fix syntax errors in libintl build on mingw.
16614         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16615         pad_ourselves and prec_ourselves after use.
16616
16617 2010-05-08  Bruno Haible  <bruno@clisp.org>
16618
16619         * lib/config.charset: Update comments for Cygwin 1.7.
16620         * lib/localcharset.c: Likewise.
16621
16622 2010-05-07  Jim Meyering  <meyering@redhat.com>
16623
16624         init.sh: improve comments
16625         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16626         . "${srcdir=.}/init.sh"; path_prepend_ .
16627         Add a note about path_prepend_ and the alternative of using
16628         TESTS_ENVIRONMENT.
16629
16630 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16631
16632         exclude: Unescape hashed patterns in wildcard mode.
16633         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16634         to the hash list.
16635         * tests/test-exclude8.sh: New test case.
16636         * modules/exclude-tests: Add new test.
16637
16638 2010-05-05  Eric Blake  <eblake@redhat.com>
16639
16640         verify: automate tests
16641         * modules/verify-tests: New module.
16642         * tests/test-verify.sh: New file.
16643         * tests/test-verify.c: Guard each negative test with a unique id.
16644         Also avoid warning about unused left hand of comma expressions.
16645
16646 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16647
16648         Further improvements to verify.h, suggested by Eric Blake.
16649         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16650         the GL_* versions, to avoid collision with OpenGL.
16651         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16652         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16653         than testing merely whether it's defined.
16654
16655         Modify verify.h to pacify gcc -Wredundant_decls.
16656         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16657         These use the prefix "GL_" since they're likely to be useful elsewhere.
16658         We may need to break them out into a different .h file.
16659         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16660         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16661         of verify_function__.
16662
16663 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16664
16665         Tests for module pwrite.
16666         * modules/pwrite-tests: New file.
16667         * tests/test-pwrite.sh: New file.
16668         * tests/test-pwrite.c: New file.
16669
16670         New module pwrite.
16671         * lib/unistd.in.h (pwrite): New declaration.
16672         * lib/pwrite.c: New file, from glibc with modifications.
16673         * m4/pwrite.m4: New file.
16674         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16675         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16676         REPLACE_PWRITE.
16677         * modules/pwrite: New file.
16678         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16679         REPLACE_PWRITE.
16680         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16681         * doc/posix-functions/pwrite.texi: Mention the new module.
16682
16683 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16684
16685         pread: Update documentation.
16686         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16687
16688 2010-05-04  Eric Blake  <eblake@redhat.com>
16689
16690         docs: update cygwin progress
16691         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16692         this bug.
16693         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16694         Added in cygwin 1.7.2.
16695         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16696         Likewise.
16697         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16698         Likewise.
16699         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16700         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16701         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16702         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16703         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16704         Mention nproc module.
16705         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16706         bug in cygwin 1.7.5 addition.
16707         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16708         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16709         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16710         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16711         1.7.5.
16712         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16713         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16714         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16715         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16716         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16717         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16718         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16719         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16720         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16721         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16722         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16723         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16724         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16725         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16726         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16727         Likewise.
16728         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16729         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16730         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16731         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16732         Likewise.
16733         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16734         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16735         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16736         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16737         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16738         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16739         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16740         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16741         Likewise.
16742         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16743         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16744         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16745         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16746         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16747         Likewise.
16748         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16749         Likewise.
16750         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16751         Likewise.
16752         * doc/glibc-functions/xdrrec_endofrecord.texi
16753         (xdrrec_endofrecord): Likewise.
16754         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16755         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16756         Likewise.
16757         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16758         Likewise.
16759
16760 2010-05-04  Jim Meyering  <meyering@redhat.com>
16761
16762         gendocs.sh: make its "-s FILE" option more useful
16763         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16764         $PACKAGE to reflect the probably-different basename of "FILE".
16765
16766 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16767
16768         bootstrap: don't ignore download_po_files failure
16769         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16770         failure.
16771
16772 2010-05-03  Jim Meyering  <meyering@redhat.com>
16773
16774         maint.mk: allow to pass options to gendocs.sh
16775         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16776         (gendocs_options_): New overridable variable.
16777
16778         gnu-web-doc-update: don't ignore configure or build failure
16779         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16780
16781         announce-gen: backslash-escape '@'s in --help output
16782         * build-aux/announce-gen: Fix syntax errors.
16783
16784         maint.mk, announce-gen: allow project-specific announcement mail headers
16785         * top/maint.mk (translation_project_): Define default.
16786         (announcement_Cc_, announcement_mail_headers_): Likewise.
16787         (announcement): Invoke announce-gen with new --mail-headers option.
16788         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16789
16790         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16791         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16792         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16793         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16794         line in the "err2" output file when running "make check" in verbose
16795         mode (i.e., with set -x enabled).
16796
16797 2010-05-03  Bruno Haible  <bruno@clisp.org>
16798
16799         wctob: Fix for weird platforms.
16800         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16801         argument value.
16802
16803 2010-05-03  Jim Meyering  <meyering@redhat.com>
16804
16805         maint.mk: prohibit unwarranted use of <strings.h>
16806         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16807         strings.h in a file that does not also use strcasecmp, strncasecmp,
16808         ffs or ffsll.
16809
16810         maint.mk: remove obsolete comments
16811         * top/maint.mk: Remove stale, commented-out rules.
16812
16813 2010-05-02  Bruno Haible  <bruno@clisp.org>
16814
16815         wcwidth: Declare also when it's aliased.
16816         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16817         macro.
16818
16819 2010-05-02  Bruno Haible  <bruno@clisp.org>
16820
16821         Fix regression from 2010-04-25.
16822         * gnulib-tool (func_modules_transitive_closure): Check the status of
16823         all modules, not only of the tests that are of the form foo-tests where
16824         foo is a module.
16825
16826 2010-05-02  Bruno Haible  <bruno@clisp.org>
16827
16828         wctob: Work around nasty Cygwin 1.7.2 bug.
16829         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16830         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16831
16832 2010-05-01  Bruno Haible  <bruno@clisp.org>
16833
16834         fpurge: Sharper test.
16835         * tests/test-fpurge.c (main): Add one more ftell check.
16836         * modules/fpurge-tests (Depends-on): Add ftell.
16837         Suggested by Eric Blake.
16838
16839 2010-05-01  Bruno Haible  <bruno@clisp.org>
16840
16841         ftello: Another test.
16842         * tests/test-ftello3.c: New file.
16843         * modules/ftello-tests (Files): Add it.
16844         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16845         MOSTLYCLEANFILES.
16846
16847         ftell: Another test.
16848         * tests/test-ftell3.c: New file.
16849         * modules/ftell-tests (Files): Add it.
16850         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16851         MOSTLYCLEANFILES.
16852
16853 2010-05-01  Bruno Haible  <bruno@clisp.org>
16854
16855         ftell, ftello: Work around Solaris bug.
16856         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16857         * lib/ftello.c: Include stdio-impl.h.
16858         (ftello): On Solaris, when _IOWRT is set, compute the result without
16859         looking at _IOREAD.
16860         * modules/ftello (Files): Add lib/stdio-impl.h.
16861         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16862         * doc/posix-functions/ftello.texi: Likewise.
16863         Reported by Eric Blake.
16864
16865 2010-05-01  Bruno Haible  <bruno@clisp.org>
16866
16867         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16868         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16869         the _IOWRT flag is also set.
16870
16871 2010-05-01  Bruno Haible  <bruno@clisp.org>
16872
16873         Fix doc about a HP-UX stdio bug.
16874         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16875         * doc/posix-functions/ftello.texi: Likewise.
16876
16877 2010-05-01  Bruno Haible  <bruno@clisp.org>
16878
16879         lseek test: Fix failure on Solaris.
16880         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16881         output.
16882
16883 2010-04-30  Jim Meyering  <meyering@redhat.com>
16884
16885         bootstrap: don't ignore failure to generate po*/Makevars
16886         * build-aux/bootstrap (with_gettext): Don't ignore failure
16887         to create po/Makevars or runtime-po/Makevars.
16888
16889 2010-04-29  Eric Blake  <eblake@redhat.com>
16890
16891         headers: relax license to LGPLv2+
16892         * modules/fcntl-h (License): Relax license.
16893         * modules/getopt-posix (License): Likewise.
16894         * modules/locale (License): Likewise.
16895         * modules/math (License): Likewise.
16896         * modules/pty (License): Likewise.
16897         * modules/sched (License): Likewise.
16898         * modules/search (License): Likewise.
16899         * modules/spawn (License): Likewise.
16900         * modules/stdarg (License): Likewise.
16901         * modules/sysexits (License): Likewise.
16902
16903 2010-04-29  Jim Meyering  <meyering@redhat.com>
16904
16905         inttypes: relax license to LGPLv2+
16906         * modules/inttypes (License): Relax license.
16907
16908 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16909
16910         * top/maint.mk (indent): Run twice to produce idempotent results.
16911
16912 2010-04-28  Bruno Haible  <bruno@clisp.org>
16913
16914         getdate: Generate getdate.c in the source directory.
16915         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16916         MOSTLYCLEANFILES.
16917         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16918
16919 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16920
16921         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16922         is not declared as a const *; avoid warnings in that case.
16923
16924 2010-04-28  Eric Blake  <eblake@redhat.com>
16925
16926         canonicalize-lgpl: avoid compiler warning
16927         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16928         declaration' / 'extraneous semicolon' warning with some compilers.
16929         Reported by Andreas Gruenbacher.
16930
16931 2010-04-28  Jim Meyering  <meyering@redhat.com>
16932
16933         init.sh: ensure a more reliable exit status when exiting via trap
16934         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16935         Inspired by patches from Dmitry V. Levin.
16936         Also trap on signal 3 (SIGQUIT).
16937
16938 2010-04-27  Bruno Haible  <bruno@clisp.org>
16939
16940         Update doc about utimes().
16941         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16942         'utimens' module.
16943         Reported by Andreas Gruenbacher <agruen@suse.de>.
16944
16945 2010-04-27  Eric Blake  <eblake@redhat.com>
16946
16947         full-read, full-write: relax license
16948         * modules/full-read (License): Drop to LGPLv2+.
16949         * modules/full-write (License): Likewise.
16950         * modules/safe-read (License): Likewise.
16951         * modules/safe-write (License): Likewise.
16952
16953         pthread: mention library for linking
16954         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16955
16956 2010-04-27  Jim Meyering  <meyering@redhat.com>
16957
16958         maint.mk: fix a bug introduced in last change
16959         * top/maint.mk (gl_assured_headers_): Now that all names are on
16960         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16961         is not anchored to end of word, it should be adequate.
16962
16963         maint.mk: avoid side-effect in latest syntax-check
16964         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16965         to run commands via $(shell...), and hence to incur cost only when
16966         the new rule is actually run.
16967
16968         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16969         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16970         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16971         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16972         (gl_assured_headers_, az_, AZ_): Define.
16973         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16974
16975 2010-04-26  Jim Meyering  <jim@meyering.net>
16976             Bruno Haible  <bruno@clisp.org>
16977
16978         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16979         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16980         Prompted by an exchange with Gilles Espinasse.
16981
16982 2010-04-26  Jim Meyering  <meyering@redhat.com>
16983
16984         git-version-gen: aesthetic tweak
16985         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16986         so that the command remains on a single line.
16987
16988 2010-04-26  Eric Blake  <eblake@redhat.com>
16989
16990         git-version-gen: allow use on EBCDIC hosts
16991         * build-aux/git-version-gen (dirty): Use literal rather than tying
16992         ourselves to ascii.
16993         Reported by Steve Goetze.
16994
16995 2010-04-25  Bruno Haible  <bruno@clisp.org>
16996
16997         netdb: Add support for GNULIB_POSIXCHECK.
16998         * lib/netdb.in.h: Include warn-on-use.h.
16999         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17000         functions are used when GNULIB_POSIXCHECK is defined and the
17001         getaddrinfo module is not in use.
17002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17003         freeaddrinfo, gai_strerror, getnameinfo are declared.
17004         * modules/netdb (Depends-on): Add warn-on-use.
17005         (Makefile.am): Include warn-on-use.h in netdb.h.
17006
17007 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17008
17009         build: avoid "make check" failure without .git/ directory
17010         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17011         there is no .git/ directory.
17012
17013 2010-04-25  Bruno Haible  <bruno@clisp.org>
17014
17015         ptsname: Fix misuse of ttyname_r.
17016         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17017         of errno.
17018
17019 2010-04-25  Bruno Haible  <bruno@clisp.org>
17020
17021         ttyname_r: Make it work on Solaris 10.
17022         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17023         if the system function has the POSIX declaration. Test whether the
17024         function fails if the buffer is less than 128 bytes large.
17025         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17026         system's ttyname_r function. Provide a reasonably large buffer.
17027         * modules/ttyname_r (Depends-on): Add extensions.
17028         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17029
17030 2010-04-25  Bruno Haible  <bruno@clisp.org>
17031
17032         Use the 'extensions' module for some more functions on Solaris.
17033         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17034         module.
17035         * doc/posix-functions/ctime_r.texi: Likewise.
17036         * doc/posix-functions/getgrgid_r.texi: Likewise.
17037         * doc/posix-functions/getgrnam_r.texi: Likewise.
17038         * doc/posix-functions/getpwnam_r.texi: Likewise.
17039         * doc/posix-functions/getpwuid_r.texi: Likewise.
17040         * doc/posix-functions/readdir_r.texi: Likewise.
17041         * doc/posix-functions/sigwait.texi: Likewise.
17042         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17043         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17044
17045 2010-04-25  Bruno Haible  <bruno@clisp.org>
17046
17047         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17048         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17049         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17050         * lib/ttyname_r.c: Include <limits.h>.
17051         (ttyname_r): Define using the system's ttyname_r function, if it exists
17052         and not on Solaris.
17053         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17054         set.
17055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17056         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17057         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17058         Reported by Simon Josefsson.
17059
17060 2010-04-25  Bruno Haible  <bruno@clisp.org>
17061
17062         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17063         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17064         * doc/posix-functions/ctime_r.texi: Likewise.
17065         * doc/posix-functions/getgrgid_r.texi: Likewise.
17066         * doc/posix-functions/getgrnam_r.texi: Likewise.
17067         * doc/posix-functions/getlogin_r.texi: Likewise.
17068         * doc/posix-functions/getpwnam_r.texi: Likewise.
17069         * doc/posix-functions/getpwuid_r.texi: Likewise.
17070         * doc/posix-functions/readdir_r.texi: Likewise.
17071         * doc/posix-functions/sigwait.texi: Likewise.
17072         * doc/posix-functions/ttyname_r.texi: Likewise.
17073         Reported by Simon Josefsson.
17074
17075 2010-04-25  Bruno Haible  <bruno@clisp.org>
17076
17077         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17078         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17079         also to --create-testdir.
17080         (func_acceptable): Don't consider the status of *-tests modules here.
17081         (func_modules_transitive_closure): Consider it here, before including a
17082         test module.
17083         (func_import, func_create_testdir): Set inc_all_direct_tests,
17084         inc_all_indirect_tests.
17085         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17086         --create-testdir and --create-megatestdir.
17087
17088 2010-04-25  Bruno Haible  <bruno@clisp.org>
17089
17090         gnulib-tool: Add --without-*-tests options.
17091         * gnulib-tool (func_usage): Document the --without-*-tests options.
17092         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17093         excl_unportable_tests): New variables.
17094         Fail if they are specified with --import or --update.
17095         (func_acceptable): Respect the excl_*_tests variables.
17096         (func_import): Set the excl_*_tests variables to empty.
17097
17098 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17099             Bruno Haible  <bruno@clisp.org>
17100
17101         Work around a MacOS X 10.4 bug with openpty.
17102         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17103         * tests/test-openpty.c (main): Close the master side explicitly.
17104
17105 2010-04-25  Bruno Haible  <bruno@clisp.org>
17106
17107         strnlen: Fix a C++ test error on MacOS X and Solaris.
17108         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17109         the function is not declared.
17110         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17111         Simon Josefsson.
17112
17113 2010-04-24  Bruno Haible  <bruno@clisp.org>
17114
17115         Avoid a gcc warning.
17116         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17117         of correct type for %08lx directive.
17118         Reported by Eric Blake.
17119
17120 2010-04-24  Bruno Haible  <bruno@clisp.org>
17121
17122         vasnprintf: Correct errno value in case of out-of-memory.
17123         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17124         or sprintf. Use the errno value from SNPRINTF or sprintf.
17125         Reported by Ian Beckwith <ianb@erislabs.net>.
17126
17127 2010-04-24  Bruno Haible  <bruno@clisp.org>
17128
17129         ansi-c++-opt: Find correct compiler when cross-compiling.
17130         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17131         AC_CHECK_PROGS.
17132         Reported by Simon Josefsson.
17133
17134 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17135
17136         vc-list-files: Add support for subversion
17137         * build-aux/vc-list-files: Use "svn list" to generate the list of
17138         files controlled by subversion.
17139
17140 2010-04-23  Jim Meyering  <meyering@redhat.com>
17141
17142         vc-list-files tests: convert to use init.sh
17143         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17144         path_prepend_.
17145         Use Exit, not exit.
17146         Use skip_ rather than open coding it.
17147         Remove trap set-up and compare definitions.
17148         * tests/test-vc-list-files-git.sh: Likewise.
17149         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17150
17151 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17152
17153         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17154         backup files.
17155
17156 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17157
17158         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17159
17160 2010-04-20  Eric Blake  <eblake@redhat.com>
17161
17162         tests: be robust to ignored SIGPIPE
17163         * tests/test-select-in.sh: Consume all output.
17164         * tests/test-lseek.sh: Check correct exit status, while avoiding
17165         EPIPE.
17166
17167 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17168             Bruno Haible  <bruno@clisp.org>
17169
17170         visibility: Don't use -fvisibility if it leads to a warning.
17171         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17172         yes, don't pretend that visibility works if it leads to a warning.
17173         Reported by Mike Gran <spk121@yahoo.com>.
17174
17175 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17176
17177         * build-aux/bootstrap: Use "git -h" for testing for supported options
17178         instead of "git --help".  The short-form option only shows a summary,
17179         and doesn't layout the full man page.  Grep for the full option name
17180         in the summary, too.
17181
17182 2010-04-19  Bruno Haible  <bruno@clisp.org>
17183
17184         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17185         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17186         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17187         mention of RELOCATABLE_STRIP.
17188         Reported by Sylvain Beucler <beuc@beuc.net>.
17189
17190 2010-04-19  Bruno Haible  <bruno@clisp.org>
17191
17192         * lib/diffseq.h: Fix typo in comment.
17193         Reported by Eric Blake.
17194
17195 2010-04-19  Bruno Haible  <bruno@clisp.org>
17196
17197         ioctl: Move autoconf macro to a .m4 file.
17198         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17199         * modules/ioctl (Files): Add it.
17200         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17201         Reported by Ian Beckwith <ianb@erislabs.net>.
17202
17203 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17204             Bruno Haible  <bruno@clisp.org>
17205
17206         diffseq: Accommodate use-case with abstract arrays.
17207         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17208         is not defined.
17209         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17210         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17211
17212 2010-04-18  Bruno Haible  <bruno@clisp.org>
17213
17214         * doc/posix-headers/stdbool.texi: More precise wording.
17215
17216 2010-04-17  Jim Meyering  <meyering@redhat.com>
17217
17218         maint.mk: use gnu-style indentation in an embedded perl script
17219         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17220         Rename variable: s/two/last_two_bytes/
17221
17222 2010-04-16  Eric Blake  <eblake@redhat.com>
17223
17224         test-stdbool: skip test that fails with Solaris CC
17225         * tests/test-stdbool.c (f): Skip test that causes compilation
17226         error under buggy C++ compiler.
17227         * lib/stdbool.in.h: Document the limitation.
17228         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17229
17230         setenv: allow compilation with C++
17231         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17232         register keyword.
17233
17234         stdint: allow test to pass with C++
17235         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17236
17237         getopt: allow compilation with C++
17238         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17239         struct.
17240         * lib/getopt.c (_getopt_internal_r): Use correct type.
17241         Reported by Dagobert Michelson, via Joel E. Denny.
17242
17243 2010-04-16  Bruno Haible  <bruno@clisp.org>
17244
17245         Override netdb.h always.
17246         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17247         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17248         Reported by Ludovic Courtès <ludo@gnu.org>.
17249
17250 2010-04-15  Bruno Haible  <bruno@clisp.org>
17251
17252         openpty: Fix mistake from 2010-03-21.
17253         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17254         Reported by Simon Josefsson.
17255
17256 2010-04-15  Eric Blake  <eblake@redhat.com>
17257
17258         test-forkpty: fix expected signature
17259         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17260         Reported by Simon Josefsson.
17261
17262 2010-04-15  Jim Meyering  <meyering@redhat.com>
17263
17264         maint.mk: texinfo_suffix_re_: correct the default regexp
17265         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17266
17267         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17268         make it configurable via texinfo_suffix_re_.
17269
17270 2010-04-14  Eric Blake  <eblake@redhat.com>
17271
17272         strtok_r: relax license to LGPLv2+
17273         * modules/strtok_r (License): Relax license.
17274         Reported by Matthias Bolte.
17275
17276 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17277
17278         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17279         version 1.4.4 by default instead of requiring the libgcrypt
17280         version used during build.  This makes it possible to use the
17281         application with older but still binary compatible libgcrypt
17282         versions.
17283
17284 2010-04-13  Eric Blake  <eblake@redhat.com>
17285
17286         getopt-gnu: match recent glibc fixes and posix ruling
17287         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17288         '+' handling, when requesting extensions.
17289         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17290         'W;' handling.
17291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17292         * doc/posix-functions/getopt.texi (getopt): Document this.
17293         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17294         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17295         Likewise.
17296
17297         getopt: merge bug fixes from glibc
17298         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17299         diagnostics.  Honor '+:' correctly.  Reject ';'.
17300
17301         getopt-posix: detect MacOS bug
17302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17303         optind when missing a required argument.
17304         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17305         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17306         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17307         Likewise.
17308
17309         getopt-posix: avoid spurious failure on Solaris
17310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17311         an indicator that setting optind=1 is sufficient for reset.
17312
17313         getopt-posix: avoid spurious failure on FreeBSD
17314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17315         in POSIX mode, since the m4 test uses it.
17316
17317         gnulib-tool: silence warning on BSD sh
17318         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17319
17320 2010-04-13  Jim Meyering  <meyering@redhat.com>
17321
17322         doc: users.txt: GNU patch now uses gnulib
17323         * users.txt: Add patch.
17324
17325 2010-04-12  Jim Meyering  <meyering@redhat.com>
17326
17327         maint.mk: generate more concise timing data for syntax-check rules
17328         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17329         " done" from each line that reports a syntax-check test duration.
17330
17331 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17332
17333         git-version-gen: use "git update-index..." rather than "git status"
17334         * build-aux/git-version-gen: Use git update-index --refresh, not
17335         "git status".  With some versions of git, "git status" would fail
17336         to update the index and result in an unwarranted "-dirty" suffix.
17337
17338 2010-04-11  Jim Meyering  <meyering@redhat.com>
17339
17340         openat: correct formatting (no semantic change)
17341         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17342         Suggested by Bruno Haible.
17343
17344 2010-04-11  Bruno Haible  <bruno@clisp.org>
17345
17346         Stricter declaration checking in testdirs.
17347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17348         If for_tests is true, augment AM_CPPFLAGS to define
17349         GNULIB_STRICT_CHECKING.
17350         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17351         GNULIB_STRICT_CHECKING is defined, verify that the function is
17352         declared.
17353
17354 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17355             Bruno Haible  <bruno@clisp.org>
17356
17357         libunistring: Improve configure output.
17358         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17359         Don't say "consider installing GNU libunistring" when checking again
17360         with libiconv.
17361
17362 2010-04-11  Bruno Haible  <bruno@clisp.org>
17363
17364         libunistring: Correct value of $LTLIBUNISTRING.
17365         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17366         correct the value of $LTLIBUNISTRING.
17367
17368 2010-04-11  Bruno Haible  <bruno@clisp.org>
17369
17370         havelib: Add static libraries to LIBS in the right order.
17371         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17372         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17373
17374 2010-04-11  Bruno Haible  <bruno@clisp.org>
17375
17376         libunistring: Detect libunistring also when it depends on libiconv.
17377         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17378         the second AC_LIB_HAVE_LINKFLAGS invocation.
17379
17380 2010-04-11  James Youngman  <jay@gnu.org>
17381
17382         close-stream: declare local scalars to be "const"
17383         * lib/close-stream.c (close_stream): Make boolean variables const
17384         to document the fact that we set but do not change them.
17385
17386 2010-04-11  Bruno Haible  <bruno@clisp.org>
17387
17388         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17389
17390 2010-04-11  Jim Meyering  <meyering@redhat.com>
17391
17392         maint.mk: don't include dist-check.mk
17393         * top/maint.mk: Remove bogus include directive.
17394
17395         maint.mk: improve empty-line-at-EOF check
17396         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17397         solution, rather than tail+Perl-based one.  The latter would read
17398         a few kilobytes from the end of each file, and did not handle empty
17399         files properly.
17400
17401         maint.mk: print the elapsed time for each syntax-check rule
17402         * top/maint.mk (sc_m_rules_): Save start time in a file.
17403         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17404         (local-check): Interpose the .z rules
17405
17406 2010-04-11  Jim Meyering  <meyering@redhat.com>
17407
17408         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17409         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17410         empty file with one that ends in an empty line.
17411
17412 2010-04-10  Bruno Haible  <bruno@clisp.org>
17413
17414         mkdir: Make it work on mingw64.
17415         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17416         * lib/mkdir.c: Update comment.
17417         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17418
17419 2010-04-10  Bruno Haible  <bruno@clisp.org>
17420
17421         Don't override improved macro from newer autoconf.
17422         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17423         autoconf >= 2.62.
17424         Reported by Joel E. Denny <jdenny@clemson.edu>.
17425
17426 2010-04-10  Jim Meyering  <meyering@redhat.com>
17427
17428         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17429         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17430
17431         maint.mk: correct a diagnostic
17432         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17433         in diagnostic; now use $prohibit.
17434
17435 2010-04-10  Bruno Haible  <address@hidden>
17436
17437         fchownat: Fix a C++ test error on Solaris 8.
17438         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17439         the function does not exist.
17440
17441 2010-04-10  Bruno Haible  <bruno@clisp.org>
17442
17443         vasnprintf: Add more tests.
17444         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17445         (test_function): Test converting an invalid wide string.
17446
17447         vasnprintf: Correct handling of unconvertible wide string arguments.
17448         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17449         VASNPRINTF.
17450         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17451         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17452         smaller than the expected maximum need for the directive. Set errno to
17453         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17454         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17456         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17457         * modules/vasnprintf (Files): Add m4/printf.m4.
17458         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17459
17460 2010-04-10  Bruno Haible  <bruno@clisp.org>
17461
17462         vasnprintf: Fix crash in %ls directive.
17463         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17464         string is passed as argument to %ls, with no precision and no width.
17465         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17466
17467 2010-04-10  Bruno Haible  <bruno@clisp.org>
17468
17469         vasnprintf: Fix multiple test failures on mingw.
17470         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17471         _snprintf, or snwprintf, not _snwprintf.
17472
17473 2010-04-10  Bruno Haible  <bruno@clisp.org>
17474
17475         write: Fix a C++ test error on mingw.
17476         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17477
17478 2010-04-10  Bruno Haible  <bruno@clisp.org>
17479
17480         vasnprintf test: Reduce code duplication.
17481         * tests/test-vasnprintf.c (test_function): New function, extracted from
17482         test_vasnprintf.
17483         (test_vasnprintf, test_asnprintf): Invoke it.
17484
17485 2010-04-10  Bruno Haible  <bruno@clisp.org>
17486
17487         strnlen: Fix warning in C++ mode on MacOS X.
17488         * lib/string.in.h (strnlen): Use the modern idiom.
17489         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17490         defining strnlen as a macro already in <config.h>.
17491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17492         REPLACE_STRNLEN.
17493         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17494         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17495
17496 2010-04-08  James Youngman  <jay@gnu.org>
17497
17498         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17499         the example.
17500
17501 2010-04-09  Jim Meyering  <meyering@redhat.com>
17502
17503         maint.mk: print better diagnostic when there is no $(_hv_file)
17504         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17505         announce that when $(_hv_file) (aka help-version) does not exist.
17506
17507         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17508         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17509         not try to interpret its random input bytes.  Jarno Rajahalme reported
17510         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17511         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17512         (mktempd_): Likewise, just in case.
17513
17514         ftruncate: add two years to projected module removal date: 2012
17515         * m4/ftruncate.m4: Adjust comments.
17516
17517         ftruncate: mark module as obsolete; even MinGW provides it, now
17518         * modules/ftruncate (Status): Obsolete.
17519         (Notice): Say that.
17520         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17521         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17522
17523 2010-04-08  Bruno Haible  <bruno@clisp.org>
17524
17525         Fix side effects from tests-related modules.
17526         * modules/dprintf-posix (Comment): New section.
17527         * modules/fprintf-posix (Comment): Likewise.
17528         * modules/obstack-printf-posix (Comment): Likewise.
17529         * modules/printf-posix (Comment): Likewise.
17530         * modules/snprintf-posix (Comment): Likewise.
17531         * modules/sprintf-posix (Comment): Likewise.
17532         * modules/vasnprintf-posix (Comment): Likewise.
17533         * modules/vasprintf-posix (Comment): Likewise.
17534         * modules/vdprintf-posix (Comment): Likewise.
17535         * modules/vfprintf-posix (Comment): Likewise.
17536         * modules/vprintf-posix (Comment): Likewise.
17537         * modules/vsnprintf-posix (Comment): Likewise.
17538         * modules/vsprintf-posix (Comment): Likewise.
17539         * modules/xprintf-posix (Comment): Likewise.
17540         * modules/xvasprintf-posix (Comment): Likewise.
17541         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17542         * modules/floorf-tests (Depends-on): Likewise.
17543         * modules/round-tests (Depends-on): Likewise.
17544         * modules/roundf-tests (Depends-on): Likewise.
17545         * modules/trunc-tests (Depends-on): Likewise.
17546         * modules/truncf-tests (Depends-on): Likewise.
17547         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17548         'fprintf-posix' module is not present.
17549         * tests/test-floorf2.c (check): Likewise.
17550         * tests/test-trunc2.c (check): Likewise.
17551         * tests/test-truncf2.c (check): Likewise.
17552         * tests/test-round2.c (equal): Likewise.
17553         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17554
17555 2010-04-07  Karl Berry  <karl@gnu.org>
17556
17557         * config/srclist.txt,
17558         * config/srclistvars.sh,
17559         * config/srclist-update: doc fixes.
17560
17561 2010-04-07  Jim Meyering  <meyering@redhat.com>
17562
17563         maint.mk: add a PATH crosschecking syntax-check rule
17564         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17565         Useful if you use a test like the one in help-version (coreutils,
17566         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17567         printed by prog --version.
17568
17569 2010-04-06  Bruno Haible  <bruno@clisp.org>
17570
17571         Fix link error on mingw.
17572         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17573         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17574
17575 2010-04-06  Bruno Haible  <bruno@clisp.org>
17576
17577         Assume rmdir exists.
17578         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17579
17580 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17581
17582         doc: update users.txt
17583         * users.txt: Add gcal.
17584
17585 2010-04-06  Jim Meyering  <meyering@redhat.com>
17586
17587         init.sh: simply unset TMPDIR rather than risking env -i
17588         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17589         although it probably works fine on all Unix-based systems, some
17590         systems (Cygwin?) cannot tolerate a totally cleared environment.
17591         Suggestion from Eric Blake.
17592
17593 2010-04-06  Jim Meyering  <meyering@redhat.com>
17594
17595         init.sh: portability fix: use env's POSIX-specified -i option not -u
17596         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17597         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17598
17599 2010-04-05  Bruno Haible  <bruno@clisp.org>
17600
17601         btowc: Work around Cygwin 1.7.2 bug.
17602         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17603         does not map NUL to 0.
17604         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17605
17606 2010-04-05  Bruno Haible  <bruno@clisp.org>
17607
17608         Make the multithread modules work on Cygwin 1.7.2.
17609         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17610         imported symbols can be declared weak, so that it returns "no" on
17611         Cygwin 1.7.2.
17612
17613 2010-04-05  Bruno Haible  <bruno@clisp.org>
17614
17615         Use the module 'strncat'.
17616         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17617
17618         Tests for module 'strncat'.
17619         * modules/strncat-tests: New file.
17620         * tests/test-strncat.c: New file.
17621
17622         New module 'strncat'.
17623         * lib/string.in.h (strncat): New declaration.
17624         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17625         * m4/strncat.m4: New file, based on m4/memchr.m4.
17626         * modules/strncat: New file.
17627         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17628         is declared.
17629         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17630         REPLACE_STRNCAT.
17631         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17632         REPLACE_STRNCAT.
17633         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17634         module.
17635         * tests/test-string-c++.cc: Check signature of strncat.
17636
17637 2010-04-05  Jim Meyering  <meyering@redhat.com>
17638
17639         xstrtoumax-tests: convert to use init.sh
17640         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17641         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17642         Use Exit, not exit.
17643         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17644
17645         xstrtoimax-tests: convert to use init.sh
17646         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17647         * tests/test-xstrtoimax.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 2010-04-05  Bruno Haible  <bruno@clisp.org>
17652
17653         sys_socket: Avoid #define replacements in C++ mode.
17654         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17655         warning to the function if possible, rather than #defining the symbol
17656         to a dysfunctional alias.
17657
17658 2010-04-05  Bruno Haible  <bruno@clisp.org>
17659
17660         fseeko: Fix C++ test error on mingw.
17661         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17662         gl_FUNC_FSEEKO.
17663         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17664         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17665         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17666         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17667
17668 2010-04-05  Bruno Haible  <bruno@clisp.org>
17669
17670         duplocale: Improve test output.
17671         * tests/test-duplocale.c (main): Print reason for skipped test.
17672
17673 2010-04-05  Bruno Haible  <bruno@clisp.org>
17674
17675         Assume rmdir exists.
17676         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17677         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17678
17679 2010-04-05  Bruno Haible  <bruno@clisp.org>
17680
17681         Fix link error on Solaris 8 with cc.
17682         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17683
17684 2010-04-05  Bruno Haible  <bruno@clisp.org>
17685
17686         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17687         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17688
17689 2010-04-05  Bruno Haible  <bruno@clisp.org>
17690
17691         vasprintf: Update documentation.
17692         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17693
17694 2010-04-05  Bruno Haible  <bruno@clisp.org>
17695
17696         ptsname: Improve test.
17697         * tests/test-ptsname.c (main): Also try the various master names of BSD
17698         systems.
17699
17700 2010-04-05  Bruno Haible  <bruno@clisp.org>
17701
17702         memchr: Avoid a possible C++ test error.
17703         * lib/string.in.h (memchr): Provide declaration if function is missing.
17704         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17705         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17707         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17708
17709 2010-04-05  Bruno Haible  <bruno@clisp.org>
17710
17711         strtok_r: Improve idiom.
17712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17713         AC_LIBOBJ is used.
17714
17715 2010-04-05  Bruno Haible  <bruno@clisp.org>
17716
17717         strdup: Improve idiom.
17718         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17719         AC_LIBOBJ is used.
17720         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17721         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17722         when AC_LIBOBJ is used.
17723
17724 2010-04-05  Bruno Haible  <bruno@clisp.org>
17725
17726         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17727         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17728         don't set REPLACE_MBSINIT to 1.
17729         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17730         don't set REPLACE_MBRTOWC to 1.
17731         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17732         exist, don't set REPLACE_MBSRTOWCS to 1.
17733         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17734         exist, don't set REPLACE_MBSNRTOWCS to 1.
17735         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17736         don't set REPLACE_WCRTOMB to 1.
17737         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17738         exist, don't set REPLACE_WCSRTOMBS to 1.
17739         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17740         exist, don't set REPLACE_WCSNRTOMBS to 1.
17741
17742 2010-04-05  Bruno Haible  <bruno@clisp.org>
17743
17744         ldexpl: Improve idiom.
17745         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17746         make sure to set HAVE_DECL_LDEXPL to 0.
17747
17748 2010-04-05  Jim Meyering  <meyering@redhat.com>
17749
17750         xstrtol-tests: convert to use init.sh
17751         * modules/xstrtol-tests (Files): Add tests/init.sh.
17752         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17753         Use Exit, not exit.
17754         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17755
17756         atexit-tests: convert to use init.sh
17757         * modules/atexit-tests (Files): Add tests/init.sh.
17758         * tests/test-atexit.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         init.sh: fix typo
17763         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17764
17765         init.sh: make it easier for a test script to write to the tty, ...
17766         when using automake's parallel-tests mode.
17767         * tests/init.sh (stderr_fileno_): Define overridable variable.
17768         (warn_): New function, to use it.
17769         (fail_, skip_, framework_failure_): Use warn_.
17770
17771 2010-04-04  Bruno Haible  <bruno@clisp.org>
17772
17773         btowc: Avoid warning.
17774         * lib/btowc.c: Include <stdlib.h>.
17775         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17776
17777 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17778             Bruno Haible  <bruno@clisp.org>
17779
17780         wchar: Port to NetBSD 1.5.
17781         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17782         * lib/wctype.in.h (WEOF): Likewise.
17783
17784 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17785             Bruno Haible  <bruno@clisp.org>
17786
17787         Port extended stdio to NetBSD 1.5.
17788         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17789         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17790         older.
17791
17792 2010-04-04  Bruno Haible  <bruno@clisp.org>
17793
17794         string: Remove unused substitution.
17795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17796         HAVE_DECL_STRERROR.
17797         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17798
17799 2010-04-04  Bruno Haible  <bruno@clisp.org>
17800
17801         strtod: Avoid a possible C++ test error.
17802         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17803         set REPLACE_STRTOD.
17804
17805 2010-04-04  Bruno Haible  <bruno@clisp.org>
17806
17807         strerror: Update documentation.
17808         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17809
17810 2010-04-04  Bruno Haible  <bruno@clisp.org>
17811
17812         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17813         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17814         _GL_CXXALIAS_SYS_CAST.
17815
17816 2010-04-04  Bruno Haible  <bruno@clisp.org>
17817
17818         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17819         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17820         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17821         REPLACE_FREXPL to 1.
17822         * doc/posix-functions/frexpl.texi: Update documentation.
17823
17824 2010-04-04  Bruno Haible  <bruno@clisp.org>
17825
17826         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17827         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17828
17829 2010-04-04  Bruno Haible  <bruno@clisp.org>
17830
17831         Implement nanosleep for native Windows.
17832         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17833
17834 2010-04-04  Bruno Haible  <bruno@clisp.org>
17835
17836         math: Fix some C++ test errors on Solaris 8.
17837         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17838
17839 2010-04-04  Bruno Haible  <bruno@clisp.org>
17840
17841         math: Fix some C++ test errors on Cygwin.
17842         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17843         truncl): Provide declaration if the system does not have it.
17844         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17845         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17846         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17847         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17848         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17849         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17850         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17851         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17852         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17853         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17854         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17855         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17856         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17857         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17858         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17859         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17861         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17862         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17863         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17864         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17865         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17866
17867 2010-04-04  Bruno Haible  <bruno@clisp.org>
17868
17869         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17870         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17871         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17872         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17873         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17874         * m4/isinf.m4 (gl_ISINF): Likewise.
17875         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17876
17877 2010-04-04  Bruno Haible  <bruno@clisp.org>
17878
17879         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17880         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17881
17882 2010-04-04  Bruno Haible  <bruno@clisp.org>
17883
17884         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17885         * modules/tmpfile (configure.ac): Update.
17886
17887         tmpfile: Fix C++ test error on mingw.
17888         * lib/stdio.in.h (tmpfile): New declaration.
17889         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17890         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17891         * modules/tmpfile (Depends-on): Add stdio.
17892         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17893         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17894         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17895         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17896         REPLACE_TMPFILE.
17897         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17898
17899 2010-04-04  Bruno Haible  <bruno@clisp.org>
17900
17901         ioctl: Fix C++ test error on mingw.
17902         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17903         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17904         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17905
17906 2010-04-03  Bruno Haible  <bruno@clisp.org>
17907
17908         wcwidth: Fix C++ test error on mingw.
17909         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17911         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17912
17913 2010-04-03  Bruno Haible  <bruno@clisp.org>
17914
17915         nanosleep: Fix C++ test error on mingw.
17916         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17917         * lib/time.in.h (nanosleep): Use modern idiom.
17918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17919         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17920         REPLACE_NANOSLEEP to 1.
17921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17922         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17923
17924 2010-04-03  Bruno Haible  <bruno@clisp.org>
17925
17926         strptime: Fix C++ test error on mingw.
17927         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17928         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17929         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17930         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17932         not REPLACE_STRPTIME.
17933         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17934         REPLACE_STRPTIME.
17935
17936 2010-04-03  Bruno Haible  <bruno@clisp.org>
17937
17938         timegm: Fix C++ test error on mingw.
17939         * lib/time.in.h (timegm): Use modern idiom.
17940         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17941         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17942         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17943         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17944
17945 2010-04-03  Bruno Haible  <bruno@clisp.org>
17946
17947         timegm: Assume declaration if function exists.
17948         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17949         if it exists. Don't clobber ac_cv_func_timegm.
17950
17951 2010-04-03  Bruno Haible  <bruno@clisp.org>
17952
17953         time_r: Fix C++ test error on mingw.
17954         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17955         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17956         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17957         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17958         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17959
17960 2010-04-03  Bruno Haible  <bruno@clisp.org>
17961
17962         time_r: Minor updates.
17963         * modules/time_r (Description): Mention the provided functions.
17964         * lib/time_r.c: Don't include <string.h>.
17965         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17966         * doc/posix-functions/localtime_r.texi: Likewise.
17967
17968 2010-04-03  Bruno Haible  <bruno@clisp.org>
17969
17970         time: Fix regression introduced on 2010-03-08.
17971         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17972         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17973
17974 2010-04-03  Jim Meyering  <meyering@redhat.com>
17975
17976         maint.mk: don't silently disable project-specific syntax-check rules
17977         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17978         that they need to convert their project-specific syntax-check rules
17979         to use the new _sc_search_regexp.
17980
17981 2010-04-03  Bruno Haible  <bruno@clisp.org>
17982
17983         fchdir: Fix regression introduced on 2010-03-08.
17984         * lib/unistd.in.h (fchdir): Fix declaration.
17985         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17987         REPLACE_FCHDIR.
17988         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17989         REPLACE_FCHDIR.
17990
17991 2010-04-03  Bruno Haible  <bruno@clisp.org>
17992
17993         getpagesize: Fix C++ test error on mingw.
17994         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17995         system does not declare the function.
17996         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17997         declared.
17998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17999         HAVE_DECL_GETPAGESIZE.
18000         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18001
18002 2010-04-03  Bruno Haible  <bruno@clisp.org>
18003
18004         stdio: Make C++ tests work on mingw.
18005         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18006         does not declare the function.
18007
18008 2010-04-03  Bruno Haible  <bruno@clisp.org>
18009
18010         ftello: Fix C++ test error on mingw.
18011         * lib/stdio.in.h (ftello): Use modern idiom.
18012         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18013         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18014         is missing and that it needs to be replaced.
18015         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18017         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18018
18019 2010-04-03  Bruno Haible  <bruno@clisp.org>
18020
18021         fseeko: Fix C++ test error on mingw.
18022         * lib/stdio.in.h (fseeko): Use modern idiom.
18023         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18025         is missing and that it needs to be replaced.
18026         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18028         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18029
18030 2010-04-03  Bruno Haible  <bruno@clisp.org>
18031
18032         mkstemp: Fix C++ test error on mingw.
18033         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18035         function is missing and that it needs to be replaced.
18036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18037         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18038
18039 2010-04-03  Bruno Haible  <bruno@clisp.org>
18040
18041         stpncpy: Fix C++ test error on mingw.
18042         * lib/string.in.h (stpncpy): Use modern idiom.
18043         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18044         function is missing and that it needs to be replaced.
18045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18046         REPLACE_STPNCPY.
18047         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18048
18049 2010-04-03  Bruno Haible  <bruno@clisp.org>
18050
18051         sys_stat: Fix C++ test error on mingw.
18052         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18053         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18054
18055 2010-04-03  Bruno Haible  <bruno@clisp.org>
18056
18057         pty: Update doc.
18058         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18059
18060 2010-04-03  Bruno Haible  <bruno@clisp.org>
18061
18062         unistd: Fix C++ test error on mingw.
18063         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18064
18065 2010-04-03  Bruno Haible  <bruno@clisp.org>
18066
18067         Update doc regarding mingw.
18068         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18069         * doc/glibc-functions/login_tty.texi: Likewise.
18070         * doc/glibc-functions/forkpty.texi: Likewise.
18071
18072 2010-04-03  Bruno Haible  <bruno@clisp.org>
18073
18074         stdlib: Avoid compilation failure of c-strtold on mingw.
18075         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18076
18077 2010-04-03  Bruno Haible  <bruno@clisp.org>
18078
18079         locale: Make C++ tests work on Cygwin and mingw.
18080         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18081         cannot provide the function.
18082         Reported by Simon Josefsson.
18083
18084 2010-04-03  Bruno Haible  <bruno@clisp.org>
18085
18086         localename: Port to MacOS X 10.6.
18087         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18088         memory layout of the locales in MacOS X 10.6 as well.
18089         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18090
18091 2010-04-02  Bruno Haible  <bruno@clisp.org>
18092
18093         gnulib-tool: Ensure that long-running tests are executed last.
18094         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18095         running tests after the one for the other tests.
18096
18097 2010-04-02  Bruno Haible  <bruno@clisp.org>
18098
18099         gnulib-tool: Ensure the tests in the main directory are executed first.
18100         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18101         start with the current directory.
18102
18103 2010-04-02  Bruno Haible  <bruno@clisp.org>
18104
18105         Tests for module 'havelib', moved here from GNU gettext.
18106         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18107         modifications.
18108         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18109         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18110         with modifications.
18111         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18112         modifications.
18113         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18114         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18115         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18116         with modifications.
18117         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18118         with modifications.
18119         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18120         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18121         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18122         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18123         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18124         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18125         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18126         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18127         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18128         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18129         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18130         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18131         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18132         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18133         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18134         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18135         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18136         with modifications.
18137         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18138         with modifications.
18139         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18140         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18141         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18142         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18143         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18144         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18145         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18146         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18147         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18148         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18149         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18150         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18151         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18152         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18153         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18154         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18155         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18156         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18157         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18158         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18159         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18160         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18161         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18162         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18163         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18164         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18165         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18166         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18167         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18168         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18169         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18170         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18171         * tests/havelib/rpathx/rpathx.c: New file, from
18172         gettext/autoconf-lib-link.
18173         * tests/havelib/rpathx/Makefile.am: New file, from
18174         gettext/autoconf-lib-link.
18175         * tests/havelib/rpathx/configure.ac: New file, from
18176         gettext/autoconf-lib-link with modifications.
18177         * tests/havelib/rpathy/rpathy.c: New file, from
18178         gettext/autoconf-lib-link.
18179         * tests/havelib/rpathy/Makefile.am: New file, from
18180         gettext/autoconf-lib-link.
18181         * tests/havelib/rpathy/configure.ac: New file, from
18182         gettext/autoconf-lib-link with modifications.
18183         * tests/havelib/rpathz/rpathz.c: New file, from
18184         gettext/autoconf-lib-link.
18185         * tests/havelib/rpathz/Makefile.am: New file, from
18186         gettext/autoconf-lib-link.
18187         * tests/havelib/rpathz/configure.ac: New file, from
18188         gettext/autoconf-lib-link with modifications.
18189         * tests/havelib/rpathlx/usex.c: New file, from
18190         gettext/autoconf-lib-link.
18191         * tests/havelib/rpathlx/Makefile.am: New file, from
18192         gettext/autoconf-lib-link.
18193         * tests/havelib/rpathlx/configure.ac: New file, from
18194         gettext/autoconf-lib-link with modifications.
18195         * tests/havelib/rpathly/usey.c: New file, from
18196         gettext/autoconf-lib-link.
18197         * tests/havelib/rpathly/Makefile.am: New file, from
18198         gettext/autoconf-lib-link.
18199         * tests/havelib/rpathly/configure.ac: New file, from
18200         gettext/autoconf-lib-link with modifications.
18201         * tests/havelib/rpathlz/usez.c: New file, from
18202         gettext/autoconf-lib-link.
18203         * tests/havelib/rpathlz/Makefile.am: New file, from
18204         gettext/autoconf-lib-link.
18205         * tests/havelib/rpathlz/configure.ac: New file, from
18206         gettext/autoconf-lib-link with modifications.
18207         * tests/havelib/rpathlyx/usey.c: New file, from
18208         gettext/autoconf-lib-link.
18209         * tests/havelib/rpathlyx/Makefile.am: New file, from
18210         gettext/autoconf-lib-link.
18211         * tests/havelib/rpathlyx/configure.ac: New file, from
18212         gettext/autoconf-lib-link with modifications.
18213         * tests/havelib/rpathlzyx/usez.c: New file, from
18214         gettext/autoconf-lib-link.
18215         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18216         gettext/autoconf-lib-link.
18217         * tests/havelib/rpathlzyx/configure.ac: New file, from
18218         gettext/autoconf-lib-link with modifications.
18219         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18220         with modifications.
18221
18222 2010-04-02  Bruno Haible  <bruno@clisp.org>
18223
18224         gnulib-tool: Create distributed built sources also for the tests.
18225         * gnulib-tool (func_create_testdir): Also generate distributed built
18226         sources in the tests directory.
18227
18228 2010-04-02  Bruno Haible  <bruno@clisp.org>
18229
18230         gnulib-tool: Obey user's environment variables.
18231         * gnulib-tool (func_create_testdir): When creating built sources,
18232         respect the environment variables for autoconf, automake, etc. given by
18233         the user.
18234
18235 2010-04-02  Bruno Haible  <bruno@clisp.org>
18236
18237         gnulib-tool: Provide the value of --m4-base to modules.
18238         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18239         of gl_m4_base.
18240
18241 2010-04-02  Eric Blake  <eblake@redhat.com>
18242
18243         maint.mk: fix some fallout
18244         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18245         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18246
18247 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18248
18249         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18250         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18251         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18252         (sc_cast_of_x_alloc_return_value): Likewise.
18253         (sc_cast_of_alloca_return_value): Likewise.
18254         (sc_space_tab): Likewise.
18255         (sc_prohibit_atoi_atof): Likewise.
18256         (sc_prohibit_magic_number_exit): Likewise.
18257         (sc_error_exit_success): Likewise.
18258         (sc_file_system): Likewise.
18259         (sc_prohibit_have_config_h): Likewise.
18260         (sc_require_config_h): Likewise.
18261         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18262         (sc_obsolete_symbols): Likewise.
18263         (sc_changelog): Likewise.
18264         (sc_program_name): Likewise.
18265         (sc_the_the): Likewise.
18266         (sc_trailing_blank): Likewise.
18267         (sc_two_space_separator_in_usage): Likewise.
18268         (sc_useless_cpp_parens): Likewise.
18269         (sc_GPL_version): Likewise.
18270         (sc_GFDL_version): Likewise.
18271         (sc_texinfo_acronym): Likewise.
18272         (sc_prohibit_cvs_keyword): Likewise.
18273         (sc_prohibit_stat_st_blocks): Likewise.
18274         (sc_prohibit_S_IS_definition): Likewise.
18275         (sc_redundant_const): Likewise.
18276         (sc_makefile_TAB_only_indentation): Likewise.
18277         (sc_m4_quote_check): Likewise.
18278         (sc_makefile_path_separator_check): Likewise.
18279         (sc_copyright_check): Likewise.
18280         (sc_Wundef_boolean): Likewise.
18281         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18282
18283         maint.mk: match 0 or more whitespace-before-function-call '('
18284         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18285         that have zero or two-and-more spaces between the function name
18286         and the open parenthesis.
18287         (sc_error_message_warn_fatal): Likewise.
18288         (sc_error_message_uppercase): Likewise.
18289         (sc_error_message_period): Likewise.
18290
18291 2010-03-31  Eric Blake  <eblake@redhat.com>
18292
18293         maint.mk: check for [ as well as test
18294         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18295         Based on a libvirt report by Matthias Bolte.
18296
18297         gnumakefile: don't squelch _version output
18298         * top/GNUmakefile (_version): Create one-shot dependency rather
18299         than using $(shell) when version must be regenerated.
18300         (_autoreconf): Run verbosely, by default.
18301
18302         sys_time: avoid compiler warnings
18303         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18304         unconditional, fixing regression from 2010-03-29.
18305         Reported by Simon Josefsson.
18306
18307 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18308
18309         maint.mk: s/_header_without_use/_sc_header_without_use/
18310         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18311         (sc_prohibit_assert_without_use): Use the new name.
18312         (sc_prohibit_close_stream_without_use): Likewise.
18313         (sc_prohibit_getopt_without_use): Likewise.
18314         (sc_prohibit_quotearg_without_use): Likewise.
18315         (sc_prohibit_quote_without_use): Likewise.
18316         (sc_prohibit_long_options_without_use): Likewise.
18317         (sc_prohibit_inttostr_without_use): Likewise.
18318         (sc_prohibit_ignore_value_without_use): Likewise.
18319         (sc_prohibit_error_without_use): Likewise.
18320         (sc_prohibit_xalloc_without_use): Likewise.
18321         (sc_prohibit_hash_without_use): Likewise.
18322         (sc_prohibit_hash_pjw_without_use): Likewise.
18323         (sc_prohibit_safe_read_without_use): Likewise.
18324         (sc_prohibit_argmatch_without_use): Likewise.
18325         (sc_prohibit_canonicalize_without_use): Likewise.
18326         (sc_prohibit_root_dev_ino_without_use): Likewise.
18327         (sc_prohibit_openat_without_use): Likewise.
18328         (sc_prohibit_c_ctype_without_use): Likewise.
18329         (sc_prohibit_signal_without_use): Likewise.
18330         (sc_prohibit_intprops_without_use): Likewise.
18331
18332 2010-03-30  Eric Blake  <eblake@redhat.com>
18333
18334         maint: improve module indicators
18335         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18336         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18337         columns, and avoid extra macro expansion.
18338
18339         fdopendir: work around FreeBSD bug
18340         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18341         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18342         * modules/dirent (Makefile.am): Substitute it.
18343         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18344         declaration.
18345         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18346         fix.
18347         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18348
18349 2010-03-29  Bruno Haible  <bruno@clisp.org>
18350
18351         Emit #pragma system_header after the inclusion guard, not before.
18352         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18353         guard that spans the entire file, not before. This enables an
18354         optimization in GCC's preprocessor.
18355         * lib/ctype.in.h: Likewise.
18356         * lib/dirent.in.h: Likewise.
18357         * lib/errno.in.h: Likewise.
18358         * lib/float.in.h: Likewise.
18359         * lib/getopt.in.h: Likewise.
18360         * lib/iconv.in.h: Likewise.
18361         * lib/langinfo.in.h: Likewise.
18362         * lib/locale.in.h: Likewise.
18363         * lib/math.in.h: Likewise.
18364         * lib/netdb.in.h: Likewise.
18365         * lib/netinet_in.in.h: Likewise.
18366         * lib/pty.in.h: Likewise.
18367         * lib/sched.in.h: Likewise.
18368         * lib/se-selinux.in.h: Likewise.
18369         * lib/search.in.h: Likewise.
18370         * lib/spawn.in.h: Likewise.
18371         * lib/stdarg.in.h: Likewise.
18372         * lib/stdint.in.h: Likewise.
18373         * lib/string.in.h: Likewise.
18374         * lib/strings.in.h: Likewise.
18375         * lib/sys_file.in.h: Likewise.
18376         * lib/sys_ioctl.in.h: Likewise.
18377         * lib/sys_time.in.h: Likewise.
18378         * lib/sys_times.in.h: Likewise.
18379         * lib/sys_utsname.in.h: Likewise.
18380         * lib/sys_wait.in.h: Likewise.
18381         * lib/sysexits.in.h: Likewise.
18382         * lib/wctype.in.h: Likewise.
18383
18384 2010-03-28  James Youngman  <jay@gnu.org>
18385
18386         save-cwd: don't leak a file descriptor when the caller execs.
18387         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18388         saved file descriptor.
18389         * modules/save-cwd (Depends-on): Depend on cloexec.
18390
18391 2010-03-29  Bruno Haible  <bruno@clisp.org>
18392
18393         Remove vestiges of fts-lgpl module.
18394         * lib/fts_.h: Assume GNULIB_FTS is 1.
18395         * lib/fts.c: Likewise.
18396         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18397
18398 2010-03-28  Bruno Haible  <bruno@clisp.org>
18399
18400         Fix definition of tests witness macro.
18401         * gnulib-tool (func_import): Fix definition of witness macro.
18402
18403 2010-03-28  Bruno Haible  <bruno@clisp.org>
18404
18405         Fix ioctl's protoype on glibc systems.
18406         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18407         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18408         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18409         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18410         signature. If not, arrange to replace the ioctl function.
18411         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18412         REPLACE_IOCTL.
18413         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18414         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18415         Reported by Ludovic Courtès <ludo@gnu.org>.
18416
18417 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18418
18419         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18420         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18421         made it so grep -r --include=GLOB* ... did not work.
18422
18423 2010-03-26  Jim Meyering  <meyering@redhat.com>
18424             Eric Blake  <eblake@redhat.com>
18425
18426         maint.mk: prohibit use of test's -o and -a operators
18427         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18428
18429 2010-03-28  Bruno Haible  <bruno@clisp.org>
18430
18431         Remove unused GNULIB_XYZ macro definitions.
18432         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18433         invocation.
18434
18435 2010-03-28  Bruno Haible  <bruno@clisp.org>
18436
18437         Mark privileged tests modules.
18438         * modules/idpriv-drop-tests (Status): New section.
18439         * modules/idpriv-droptemp-tests (Status): New section.
18440
18441 2010-03-28  Bruno Haible  <bruno@clisp.org>
18442
18443         Split C++ tests into separate tests modules.
18444         * modules/dirent-c++-tests: New file, extracted from
18445         modules/dirent-tests.
18446         * modules/dirent-tests: Depend on it.
18447         * modules/fcntl-h-c++-tests: New file, extracted from
18448         modules/fcntl-h-tests.
18449         * modules/fcntl-h-tests: Depend on it.
18450         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18451         * modules/glob-tests: Depend on it.
18452         * modules/iconv-h-c++-tests: New file, extracted from
18453         modules/iconv-h-tests.
18454         * modules/iconv-h-tests: Depend on it.
18455         * modules/langinfo-c++-tests: New file, extracted from
18456         modules/langinfo-tests.
18457         * modules/langinfo-tests: Depend on it.
18458         * modules/locale-c++-tests: New file, extracted from
18459         modules/locale-tests.
18460         * modules/locale-tests: Depend on it.
18461         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18462         * modules/math-tests: Depend on it.
18463         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18464         * modules/pty-tests: Depend on it.
18465         * modules/search-c++-tests: New file, extracted from
18466         modules/search-tests.
18467         * modules/search-tests: Depend on it.
18468         * modules/signal-c++-tests: New file, extracted from
18469         modules/signal-tests.
18470         * modules/signal-tests: Depend on it.
18471         * modules/spawn-c++-tests: New file, extracted from
18472         modules/spawn-tests.
18473         * modules/spawn-tests: Depend on it.
18474         * modules/stdio-c++-tests: New file, extracted from
18475         modules/stdio-tests.
18476         * modules/stdio-tests: Depend on it.
18477         * modules/stdlib-c++-tests: New file, extracted from
18478         modules/stdlib-tests.
18479         * modules/stdlib-tests: Depend on it.
18480         * modules/string-c++-tests: New file, extracted from
18481         modules/string-tests.
18482         * modules/string-tests: Depend on it.
18483         * modules/sys_ioctl-c++-tests: New file, extracted from
18484         modules/sys_ioctl-tests.
18485         * modules/sys_ioctl-tests: Depend on it.
18486         * modules/sys_select-c++-tests: New file, extracted from
18487         modules/sys_select-tests.
18488         * modules/sys_select-tests: Depend on it.
18489         * modules/sys_socket-c++-tests: New file, extracted from
18490         modules/sys_socket-tests.
18491         * modules/sys_socket-tests: Depend on it.
18492         * modules/sys_stat-c++-tests: New file, extracted from
18493         modules/sys_stat-tests.
18494         * modules/sys_stat-tests: Depend on it.
18495         * modules/sys_time-c++-tests: New file, extracted from
18496         modules/sys_time-tests.
18497         * modules/sys_time-tests: Depend on it.
18498         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18499         * modules/time-tests: Depend on it.
18500         * modules/unistd-c++-tests: New file, extracted from
18501         modules/unistd-tests.
18502         * modules/unistd-tests: Depend on it.
18503         * modules/wchar-c++-tests: New file, extracted from
18504         modules/wchar-tests.
18505         * modules/wchar-tests: Depend on it.
18506         * modules/wctype-c++-tests: New file, extracted from
18507         modules/wctype-tests.
18508         * modules/wctype-tests: Depend on it.
18509         Reported by Simon Josefsson.
18510
18511 2010-03-28  Bruno Haible  <bruno@clisp.org>
18512
18513         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18514         * gnulib-tool (func_exists_module): New function, extracted from
18515         func_verify_module.
18516         (func_verify_module): Use it.
18517         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18518         'foo' only if 'foo' exists.
18519         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18520         module.
18521
18522 2010-03-28  Bruno Haible  <bruno@clisp.org>
18523
18524         gnulib-tool: Add support for special categories of tests.
18525         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18526         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18527         (func_usage): Document them.
18528         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18529         inc_unportable_tests, inc_all_tests): New variables.
18530         (func_acceptable): Consider these variables.
18531         (func_modules_transitive_closure): Make it work when the 'Status' field
18532         consists of multiple words.
18533         (func_import): Store and restore the values of inc_cxx_tests,
18534         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18535         inc_all_tests in gnulib-comp.m4.
18536         (func_create_testdir): Set inc_all_tests to true.
18537         * doc/gnulib.texi (Extra tests modules): New section.
18538         Suggested by Jim Meyering.
18539
18540 2010-03-28  Bruno Haible  <bruno@clisp.org>
18541
18542         ansi-c++-opt: Allow turning off the C++ build by default.
18543         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18544         gl_CXX_CHOICE_DEFAULT_NO is defined.
18545         Requested by Eric Blake.
18546
18547 2010-03-28  Bruno Haible  <bruno@clisp.org>
18548
18549         unistd: Avoid #define replacements in C++ mode.
18550         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18551         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18552         setsockopt, shutdown, select): In C++, attach a warning to the function
18553         if possible, rather than #defining the symbol to a dysfunctional alias.
18554         Reported by John W. Eaton <jwe@gnu.org>.
18555
18556 2010-03-28  Bruno Haible  <bruno@clisp.org>
18557
18558         Fix link errors on mingw.
18559         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18560         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18561         $(LIBSOCKET).
18562         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18563         $(LIBSOCKET).
18564
18565 2010-03-28  Bruno Haible  <bruno@clisp.org>
18566             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18567
18568         lib-ignore: Determine different options for different compilers.
18569         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18570         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18571         Add comments.
18572         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18573         * NEWS: Mention the change.
18574
18575 2010-03-27  Bruno Haible  <bruno@clisp.org>
18576
18577         Remove unused GNULIB_XYZ macro definitions.
18578         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18579         * modules/fseek (configure.ac): Likewise.
18580         * modules/ioctl (configure.ac): Likewise.
18581         * modules/open (configure.ac): Likewise.
18582         * modules/stdlib-safer (configure.ac): Likewise.
18583
18584 2010-03-27  Bruno Haible  <bruno@clisp.org>
18585
18586         Add a remark about certain modules.
18587         * modules/malloc (Comment): New section.
18588         * modules/realloc (Comment): Likewise.
18589         * modules/sigpipe (Comment): Likewise.
18590
18591 2010-03-27  Bruno Haible  <bruno@clisp.org>
18592
18593         Resolve conflict between the two kinds of module indicators.
18594         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18595         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18596         * modules/canonicalize (configure.ac): Invoke
18597         gl_MODULE_INDICATOR_FOR_TESTS.
18598         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18599         GNULIB_XYZ.
18600         * tests/test-dirent-c++.cc: Likewise.
18601         * tests/test-dirent-safer.c: Likewise.
18602         * tests/test-dup2.c: Likewise.
18603         * tests/test-fchdir.c: Likewise.
18604         * tests/test-fcntl-h-c++.cc: Likewise.
18605         * tests/test-getopt.c: Likewise.
18606         * tests/test-getopt.h: Likewise.
18607         * tests/test-langinfo-c++.cc: Likewise.
18608         * tests/test-locale-c++.cc: Likewise.
18609         * tests/test-math-c++.cc: Likewise.
18610         * tests/test-pty-c++.cc: Likewise.
18611         * tests/test-search-c++.cc: Likewise.
18612         * tests/test-signal-c++.cc: Likewise.
18613         * tests/test-spawn-c++.cc: Likewise.
18614         * tests/test-stdio-c++.cc: Likewise.
18615         * tests/test-stdlib-c++.cc: Likewise.
18616         * tests/test-string-c++.cc: Likewise.
18617         * tests/test-sys_ioctl-c++.cc: Likewise.
18618         * tests/test-sys_select-c++.cc: Likewise.
18619         * tests/test-sys_socket-c++.cc: Likewise.
18620         * tests/test-sys_stat-c++.cc: Likewise.
18621         * tests/test-sys_time-c++.cc: Likewise.
18622         * tests/test-time-c++.cc: Likewise.
18623         * tests/test-unistd-c++.cc: Likewise.
18624         * tests/test-wchar-c++.cc: Likewise.
18625         * tests/uninorm/test-u8-nfc.c: Likewise.
18626         * tests/uninorm/test-u8-nfd.c: Likewise.
18627         * tests/uninorm/test-u8-nfkc.c: Likewise.
18628         * tests/uninorm/test-u8-nfkd.c: Likewise.
18629         * tests/uninorm/test-u16-nfc.c: Likewise.
18630         * tests/uninorm/test-u16-nfd.c: Likewise.
18631         * tests/uninorm/test-u16-nfkc.c: Likewise.
18632         * tests/uninorm/test-u16-nfkd.c: Likewise.
18633         * tests/uninorm/test-u32-nfc.c: Likewise.
18634         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18635         * tests/uninorm/test-u32-nfd.c: Likewise.
18636         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18637         * tests/uninorm/test-u32-nfkc.c: Likewise.
18638         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18639         * tests/uninorm/test-u32-nfkd.c: Likewise.
18640         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18641         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18642
18643 2010-03-27  Bruno Haible  <bruno@clisp.org>
18644
18645         Distinguish two kinds of module indicators.
18646         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18647         gl_MODULE_INDICATOR.
18648         (gl_MODULE_INDICATOR): New macro.
18649         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18650         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18651         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18652         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18653         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18654         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18655         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18656         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18657         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18658         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18659         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18660         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18661         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18662         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18663         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18665         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18666         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18667         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18668         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18669         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18670         * modules/cloexec (configure.ac): Likewise.
18671         * modules/getopt-gnu (configure.ac): Likewise.
18672         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18673         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18674         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18675         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18676
18677 2010-03-27  Bruno Haible  <bruno@clisp.org>
18678
18679         New module description field 'Comment'.
18680         * gnulib-tool: New option --extract-comment.
18681         (func_usage): Document it.
18682         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18683         (func_get_comment): New function.
18684         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18685
18686 2010-03-27  Bruno Haible  <bruno@clisp.org>
18687
18688         Addendum to 2010-02-07 commit.
18689         * gnulib-tool (func_usage): Document --extract-applicability option.
18690
18691 2010-03-27  Bruno Haible  <bruno@clisp.org>
18692
18693         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18694         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18695         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18696         rather than link errors.
18697
18698 2010-03-27  Bruno Haible  <bruno@clisp.org>
18699
18700         Avoid side effects from tests-related modules on the compilation of lib.
18701         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18702         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18703         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18704         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18705         macro.
18706         (func_import): Define a witness macro. Assign it a value that depends
18707         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18708         tests-related modules.
18709         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18710         Reported by Jim Meyering.
18711
18712 2010-03-27  Bruno Haible  <bruno@clisp.org>
18713
18714         Factorize common .m4 code.
18715         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18716         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18717         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18718         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18719         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18720         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18721         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18722         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18723         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18724         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18725         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18726         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18727         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18728         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18729         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18730         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18731         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18732         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18734         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18735         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18736         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18737         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18738         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18739         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18740         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18741         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18742         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18743         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18744         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18745         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18746         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18747
18748 2010-03-27  Bruno Haible  <bruno@clisp.org>
18749
18750         Fix a compilation error on Cygwin with g++ >= 4.3.
18751         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18752         if it is undefined or if we alias it to chmod.
18753         (lstat): Don't warn about the use of this function if it is undefined
18754         or if we alias it to stat.
18755         Reported by Simon Josefsson.
18756
18757 2010-03-27  Bruno Haible  <bruno@clisp.org>
18758
18759         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18760         * modules/getlogin (configure.ac): Update.
18761
18762         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18763         * modules/getlogin_r (configure.ac): Update.
18764
18765         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18767         * modules/inet_ntop (configure.ac): Update.
18768
18769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18770         * modules/inet_pton (configure.ac): Update.
18771
18772         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18773         * modules/mbslen (configure.ac): Update.
18774
18775         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18776         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18777         * modules/forkpty (configure.ac): Update.
18778         * modules/openpty (configure.ac): Update.
18779
18780 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18781
18782         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18783         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18784
18785 2010-03-25  Eric Blake  <eblake@redhat.com>
18786
18787         maint: use pragma consistently across replacement headers
18788         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18789         * lib/dirent.in.h (system_header): Likewise.
18790         * lib/errno.in.h (system_header): Likewise.
18791         * lib/float.in.h (system_header): Likewise.
18792         * lib/getopt.in.h (system_header): Likewise.
18793         * lib/iconv.in.h (system_header): Likewise.
18794         * lib/inttypes.in.h (system_header): Likewise.
18795         * lib/langinfo.in.h (system_header): Likewise.
18796         * lib/locale.in.h (system_header): Likewise.
18797         * lib/math.in.h (system_header): Likewise.
18798         * lib/netdb.in.h (system_header): Likewise.
18799         * lib/netinet_in.in.h (system_header): Likewise.
18800         * lib/pty.in.h (system_header): Likewise.
18801         * lib/sched.in.h (system_header): Likewise.
18802         * lib/se-selinux.in.h (system_header): Likewise.
18803         * lib/search.in.h (system_header): Likewise.
18804         * lib/spawn.in.h (system_header): Likewise.
18805         * lib/stdarg.in.h (system_header): Likewise.
18806         * lib/stdint.in.h (system_header): Likewise.
18807         * lib/string.in.h (system_header): Likewise.
18808         * lib/strings.in.h (system_header): Likewise.
18809         * lib/sys_file.in.h (system_header): Likewise.
18810         * lib/sys_ioctl.in.h (system_header): Likewise.
18811         * lib/sys_socket.in.h (system_header): Likewise.
18812         * lib/sys_times.in.h (system_header): Likewise.
18813         * lib/sys_utsname.in.h (system_header): Likewise.
18814         * lib/sys_wait.in.h (system_header): Likewise.
18815         * lib/sysexits.in.h (system_header): Likewise.
18816         * lib/unistd.in.h (system_header): Likewise.
18817         * lib/wctype.in.h (system_header): Likewise.
18818
18819         arpa/inet: fix mingw compilation warning
18820         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18821         Reported by Matthew Bolte.
18822
18823 2010-03-25  Bruno Haible  <bruno@clisp.org>
18824
18825         Avoid collision between gnulib wrapper and libintl wrapper.
18826         * lib/printf.c (printf): Don't define if a printf wrapper is already
18827         defined in intl/printf.c.
18828         Reported by Michel Boaventura <michel@michelboaventura.com>.
18829
18830 2010-03-25  Bruno Haible  <bruno@clisp.org>
18831
18832         Use ANSI C.
18833         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18834
18835 2010-03-25  Bruno Haible  <bruno@clisp.org>
18836
18837         Minor formatting changes.
18838         * lib/acosl.c: Insert space before function argument list.
18839         * lib/argz.c: Likewise.
18840         * lib/asinl.c: Likewise.
18841         * lib/expl.c: Likewise.
18842         * lib/gen-uni-tables.c: Likewise.
18843         * lib/gettext.h: Likewise.
18844         * lib/glthread/lock.h: Likewise.
18845         * lib/tanl.c: Likewise.
18846         * lib/uniname/uniname.c: Likewise.
18847         * tests/test-idpriv-drop.c: Likewise.
18848         * tests/test-idpriv-droptemp.c: Likewise.
18849         * tests/test-lock.c: Likewise.
18850         * tests/test-tls.c: Likewise.
18851         * lib/argp-help.c: Insert space before function-like macro argument
18852         list.
18853         * lib/memcmp.c: Likewise.
18854         * tests/test-base64.c: Likewise.
18855         * lib/localename.c: Insert space before sizeof's argument list.
18856         * lib/safe-alloc.h: Likewise.
18857         * lib/file-set.h: Insert space before macro argument list.
18858         * tests/test-argp.c: Likewise.
18859         * lib/argp-namefrob.h: Insert space before function parameter list.
18860         * lib/getaddrinfo.c: Likewise.
18861         * lib/netdb.in.h: Likewise.
18862         * lib/parse-duration.h: Likewise.
18863         * lib/parse-duration.c: Likewise.
18864         * lib/poll.c: Likewise.
18865         * lib/select.c: Likewise.
18866         * lib/trim.h: Likewise.
18867         * tests/test-usleep.c: Likewise.
18868         * lib/ldexpl.c: Insert space before function parameter list and before
18869         function argument list.
18870         * lib/logl.c: Likewise.
18871         * lib/sqrtl.c: Likewise.
18872         * lib/trim.c: Likewise.
18873         * lib/cosl.c: Use GNU style indentation. Insert space before function
18874         argument list.
18875         * lib/sinl.c: Likewise.
18876         * lib/tsearch.c: Insert space after 'for'.
18877         Reported by Jim Meyering.
18878
18879 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18880
18881         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18882         config header before grepping, as it's not present before
18883         autoreconf/configure are run.  Reported by Simon Josefsson.
18884
18885 2010-03-23  Bruno Haible  <bruno@clisp.org>
18886
18887         pt_chown: Make it work with automake < 1.11.
18888         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18889         Reported by Simon Josefsson.
18890
18891 2010-03-23  Bruno Haible  <bruno@clisp.org>
18892
18893         pt_chown: Don't depend on GPLed modules.
18894         * lib/pt_chown.c: Don't include idpriv.h.
18895         (main): Don't drop privileges.
18896         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18897         Reported by Simon Josefsson.
18898
18899 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18900
18901         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18902         suggestions from karl@freefriends.org (Karl Berry).
18903
18904 2010-03-22  Eric Blake  <eblake@redhat.com>
18905
18906         gethostname: further tweaks
18907         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18908         are overriding gethostname.
18909         Suggested by Bruno Haible.
18910
18911 2010-03-21  Bruno Haible  <bruno@clisp.org>
18912
18913         Fix comments.
18914         * lib/forkpty.c (rpl_forkpty): Fix comment.
18915         * lib/openpty.c (rpl_openpty): Likewise.
18916         Reported by Eric Blake.
18917
18918 2010-03-22  Eric Blake  <eblake@redhat.com>
18919
18920         gethostname: fix build on mingw
18921         * lib/unistd.in.h (includes): Work around fact that mingw
18922         <winsock2.h> re-includes <unistd.h>, by avoiding any
18923         redeclarations if we are being included by <winsock2.h>.
18924         Reported by Matthias Bolte.
18925
18926 2010-03-21  Bruno Haible  <bruno@clisp.org>
18927
18928         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18929         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18930         modifications.
18931         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18932         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18933         provide the replacement.
18934         * modules/forkpty (Depends-on): Add openpty, login_tty.
18935         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18936         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18937         * doc/glibc-functions/forkpty.texi: More supported platforms.
18938         * config/srclist.txt: Add forkpty.c (commented).
18939
18940 2010-03-21  Bruno Haible  <bruno@clisp.org>
18941
18942         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18943         (Makefile.am): Verify that PTY_LIB is defined.
18944
18945         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18946
18947 2010-03-21  Bruno Haible  <bruno@clisp.org>
18948
18949         Tests for module 'login_tty'.
18950         * modules/login_tty-tests: New file.
18951         * tests/test-login_tty.c: New file.
18952
18953         New module 'login_tty'.
18954         * lib/login_tty.c: New file.
18955         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18956         * modules/login_tty: New file.
18957         * doc/glibc-functions/login_tty.texi: Mention the new module.
18958
18959 2010-03-21  Bruno Haible  <bruno@clisp.org>
18960
18961         login_tty: Documentation.
18962         * doc/glibc-functions/login_tty.texi: New file.
18963         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18964
18965 2010-03-21  Bruno Haible  <bruno@clisp.org>
18966
18967         pty: Consistent macro naming.
18968         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18969         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18970         * modules/pty (configure.ac): Update.
18971
18972 2010-03-21  Bruno Haible  <bruno@clisp.org>
18973
18974         Tests for openpty: Make stricter.
18975         * tests/test-openpty.c (main): Add test of canonical processing and
18976         erase.
18977         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18978
18979         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18980         * lib/openpty.c (openpty): New replacement function.
18981         * lib/pty.in.h: Include <termios.h>.
18982         (openpty): Update declaration. Add comments.
18983         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18984         is not declared, arrange to provide the replacement. Check for _getpty
18985         and posix_openpt.
18986         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18987         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18988         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18989         * modules/pty-tests (test_pty_c___LDADD): New variable.
18990         * doc/glibc-functions/openpty.texi: More supported platforms.
18991
18992 2010-03-21  Bruno Haible  <bruno@clisp.org>
18993
18994         setenv: Tweaks.
18995         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18996         the test program.
18997         * doc/posix-functions/setenv.texi: Update platforms list.
18998
18999 2010-03-21  Bruno Haible  <bruno@clisp.org>
19000
19001         New module 'unlockpt'.
19002         * lib/unlockpt.c: New file, from glibc with modifications.
19003         * m4/unlockpt.m4: New file.
19004         * modules/unlockpt: New file.
19005         * lib/stdlib.in.h (unlockpt): New declaration.
19006         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19007         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19008         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19009         HAVE_UNLOCKPT.
19010         * doc/posix-functions/unlockpt.texi: Mention the new module.
19011         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19012         * config/srclist.txt: Add unlockpt.c (commented).
19013
19014 2010-03-21  Jim Meyering  <meyering@redhat.com>
19015
19016         maint.mk: prohibit inclusion of "intprops.h" without use
19017         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19018
19019 2010-03-21  Bruno Haible  <bruno@clisp.org>
19020
19021         New module 'grantpt'.
19022         * lib/grantpt.c: New file, from glibc with modifications.
19023         * m4/grantpt.m4: New file.
19024         * modules/grantpt: New file.
19025         * lib/stdlib.in.h (grantpt): New declaration.
19026         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19027         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19028         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19029         HAVE_GRANTPT.
19030         * doc/posix-functions/grantpt.texi: Mention the new module.
19031         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19032         * config/srclist.txt: Add grantpt.c (commented).
19033
19034 2010-03-21  Bruno Haible  <bruno@clisp.org>
19035
19036         New module 'pt_chown'.
19037         * lib/pt_chown.c: New file, from glibc with modifications.
19038         * lib/pty-private.h: New file, from glibc with modifications.
19039         * modules/pt_chown: New file.
19040         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19041
19042 2010-03-21  Bruno Haible  <bruno@clisp.org>
19043
19044         Tests for module 'ptsname'.
19045         * modules/ptsname-tests: New file.
19046         * tests/test-ptsname.c: New file.
19047
19048         New module 'ptsname'.
19049         * lib/ptsname.c: New file, from glibc with modifications.
19050         * m4/ptsname.m4: New file.
19051         * modules/ptsname: New file.
19052         * lib/stdlib.in.h (ptsname): New declaration.
19053         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19054         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19055         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19056         HAVE_PTSNAME.
19057         * doc/posix-functions/ptsname.texi: Mention the new module.
19058         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19059         * config/srclist.txt: Add ptsname.c (commented).
19060
19061 2010-03-21  Bruno Haible  <bruno@clisp.org>
19062
19063         Tests for module 'ttyname_r'.
19064         * modules/ttyname_r-tests: New file.
19065         * tests/test-ttyname_r.c: New file.
19066
19067         New module 'ttyname_r'.
19068         * lib/ttyname_r.c: New file.
19069         * m4/ttyname_r.m4: New file.
19070         * modules/ttyname_r: New file.
19071         * lib/unistd.in.h (ttyname_r): New declaration.
19072         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19073         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19074         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19075         HAVE_TTYNAME_R.
19076         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19077         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19078
19079 2010-03-20  Bruno Haible  <bruno@clisp.org>
19080
19081         signal: Undefine macro definitions in C++ mode.
19082         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19083         sigfillset): Undefine macro definitions from the system header in C++
19084         mode.
19085         Reported by John W. Eaton <jwe@gnu.org>.
19086
19087 2010-03-20  Bruno Haible  <bruno@clisp.org>
19088
19089         Ensure no #include statements inside extern "C" { ... }.
19090         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19091         contain #include statements.
19092         * lib/time.in.h: Likewise.
19093
19094 2010-03-20  Bruno Haible  <bruno@clisp.org>
19095
19096         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19097         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19098         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19099         Reported by John W. Eaton <jwe@gnu.org>.
19100
19101 2010-03-20  Bruno Haible  <bruno@clisp.org>
19102
19103         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19104         Reported by Jim Meyering.
19105
19106 2010-03-20  Bruno Haible  <bruno@clisp.org>
19107
19108         pipe: Set errno upon failure.
19109         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19110         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19111         errno value in error message.
19112
19113 2010-03-20  Bruno Haible  <bruno@clisp.org>
19114             Jim Meyering  <meyering@redhat.com>
19115
19116         lchown: Avoid "unused variable" warning.
19117         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19118
19119 2010-03-20  Bruno Haible  <bruno@clisp.org>
19120
19121         Work around unlink() bug on MacOS X 10.5.6.
19122         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19123         attempting to unlink a parent directory.
19124         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19125         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19126         activate for the replacement function.
19127         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19128
19129 2010-03-20  Bruno Haible  <bruno@clisp.org>
19130
19131         Fix link errors on Solaris 8.
19132         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19133         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19134
19135 2010-03-19  Jim Meyering  <meyering@redhat.com>
19136
19137         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19138         The _LIBC implementation of build_range_exp correctly honors the
19139         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19140         However, the non-_LIBC implementation would ignore that syntax-bit
19141         flag and return REG_ERANGE unconditionally.
19142         This change makes it honor that flag.
19143         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19144         Make two pointer parameters "const".
19145         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19146         (parse_bracket_exp): Update caller.
19147
19148         regex.m4: correct the reversed range endpoint ([b-a]) test
19149         * m4/regex.m4: When requiring that [b-a] evoke failure,
19150         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19151         test pass once again for x86-based systems.
19152
19153 2010-03-19  Bruno Haible  <bruno@clisp.org>
19154
19155         scandir: Fix link error on Solaris 8.
19156         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19157         macros.
19158
19159 2010-03-19  Bruno Haible  <bruno@clisp.org>
19160
19161         getusershell: Fix documentation.
19162         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19163         module.
19164         * doc/glibc-functions/setusershell.texi: Likewise.
19165
19166         getusershell: Provide declaration, missing on Solaris 9.
19167         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19168         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19169         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19170         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19172         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19173         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19174         HAVE_GETUSERSHELL.
19175         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19176
19177 2010-03-19  Bruno Haible  <bruno@clisp.org>
19178
19179         wctype: Provide iswblank function.
19180         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19181         exists and is fine.
19182         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19183         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19184         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19185         * doc/posix-functions/iswblank.texi: Update.
19186
19187 2010-03-19  Bruno Haible  <bruno@clisp.org>
19188
19189         Tests of module 'pty' in C++ mode.
19190         * modules/pty-tests: New file.
19191         * tests/test-pty-c++.cc: New file.
19192         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19193
19194 2010-03-19  Eric Blake  <eblake@redhat.com>
19195
19196         logb: fix documentation
19197         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19198         1.5 declaration bug.
19199
19200         forkpty, openpty: prefer glibc's const-safe prototype
19201         * lib/forkpty.c (rpl_forkpty): New file.
19202         * lib/openpty.c (rpl_openpty): Likewise.
19203         * modules/forkpty (Files): Distribute it.
19204         * modules/openpty (Files): Likewise.
19205         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19206         check...
19207         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19208         replacement for for non-const BSD signature.
19209         * modules/pty (Makefile.am): Substitute witnesses.
19210         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19211         * tests/test-forkpty.c: Update signature check.
19212         * tests/test-openpty.c: Likewise.
19213         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19214         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19215
19216         forkpty, openpty: split functions into new modules
19217         * modules/pty (Makefile.am): Substitute new witnesses.
19218         (Libraries): Move library detection...
19219         * modules/forkpty: ...into new module.
19220         * modules/openpty: Another new module.
19221         * modules/pty-tests: Rename and split...
19222         * modules/forkpty-tests: ...to this...
19223         * modules/openpty-tests: ...and this.
19224         * tests/test-pty.c: Rename and split...
19225         * tests/test-forkpty.c: ...to this...
19226         * tests/test-openpty.c: ...and this.
19227         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19228         (gl_PTY): Split library searching...
19229         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19230         (gl_FORKPTY, gl_OPENPTY): New macros.
19231         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19232         * NEWS: Mention the split.
19233         * MODULES.html.sh (Misc): Document the modules.
19234         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19235         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19236
19237         pty: improve replacement header
19238         * lib/pty.in.h: New file.
19239         * modules/pty (Files): Ship it.
19240         (Makefile.am): Always build replacement.
19241         * m4/pty.m4: Rename...
19242         * m4/pty_h.m4: ...to this.
19243         (gl_PTY): Modernize setting of witness macros; update check of
19244         forkpty to take proper advantage of cache.
19245         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19246
19247         getopt: avoid compiler warning
19248         * lib/getopt.c (attribute_hidden): Remove unused macro.
19249
19250 2010-03-18  Bruno Haible  <bruno@clisp.org>
19251
19252         Fix link errors on Solaris 8.
19253         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19254         * modules/search-tests (test_search_c___LDADD): Likewise.
19255         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19256         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19257         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19258         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19259         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19260         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19261         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19262
19263 2010-03-18  Bruno Haible  <bruno@clisp.org>
19264
19265         Fix bug introduced on 2010-03-14.
19266         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19267         (gl_SPAWN_H): Require it.
19268         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19269         Reported by Simon Josefsson.
19270
19271 2010-03-18  Bruno Haible  <bruno@clisp.org>
19272
19273         Fix typo introduced on 2009-12-31.
19274         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19275         posix_spawn_file_actions_adddup2.
19276
19277 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19278         and Eric Blake  <eblake@redhat.com>
19279
19280         test-vc-list-files-git: make more robust
19281         * tests/test-vc-list-files-git.sh: Unset problematic environment
19282         variables.  Chain commands together.
19283
19284 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19285
19286         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19287         `AC_CHECK_DECL' invocation.
19288
19289 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19290
19291         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19292         appears before executable statements. Suggested by Petr Sumbera
19293         <Petr.Sumbera@Sun.COM>.
19294
19295 2010-03-14  Bruno Haible  <bruno@clisp.org>
19296
19297         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19298         portability problems. Instead use a simpler test.
19299         (main): Check that invalid arguments are rejected only on Linux.
19300
19301 2010-03-14  Bruno Haible  <bruno@clisp.org>
19302
19303         Fix bug introduced on 2009-12-31.
19304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19305         gl_PREREQ_SYS_H_WINSOCK2 always.
19306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19307         SYS_SOCKET_H variable.
19308         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19309         Update comments.
19310         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19311         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19312         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19313         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19314         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19315
19316 2010-03-14  Bruno Haible  <bruno@clisp.org>
19317
19318         Fix values returned by sinl, cosl.
19319         * lib/trigl.h: Add specification comments.
19320         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19321         that combines the values from the precomputed table with the values of
19322         the Chebyshev polynomials.
19323
19324 2010-03-14  Bruno Haible  <bruno@clisp.org>
19325
19326         Fix compilation error when modules 'posix_spawn[p]' are not used.
19327         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19328         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19329
19330 2010-03-14  Bruno Haible  <bruno@clisp.org>
19331
19332         Fix compilation error on mingw when module 'time_r' is not used.
19333         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19334         is 1.
19335         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19336         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19337         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19338         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19339
19340 2010-03-14  Bruno Haible  <bruno@clisp.org>
19341
19342         Fix compilation error with Sun C.
19343         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19344         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19345         instead of GCC specific ULONG_LONG_MAX.
19346         * lib/xstrtoll.c: Likewise.
19347         * lib/xstrtoull.c: Likewise.
19348
19349 2010-03-13  Bruno Haible  <bruno@clisp.org>
19350
19351         Allow the user to disable C++ code and tests.
19352         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19353         (gl_PROG_ANSI_CXX): Require it.
19354
19355 2010-03-13  Bruno Haible  <bruno@clisp.org>
19356
19357         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19358         cases.
19359
19360 2010-03-13  Bruno Haible  <bruno@clisp.org>
19361
19362         Test that gnulib does not break the standard C++ headers.
19363         * tests/test-locale-c++2.cc: New file.
19364         * modules/locale-tests (Files): Add it.
19365         (Makefile.am): Compile it for test-locale-c++.
19366         * tests/test-math-c++2.cc: New file.
19367         * modules/math-tests (Files): Add it.
19368         (Makefile.am): Compile it for test-math-c++.
19369         * tests/test-signal-c++2.cc: New file.
19370         * modules/signal-tests (Files): Add it.
19371         (Makefile.am): Compile it for test-signal-c++.
19372         * tests/test-stdio-c++2.cc: New file.
19373         * modules/stdio-tests (Files): Add it.
19374         (Makefile.am): Compile it for test-stdio-c++.
19375         * tests/test-stdlib-c++2.cc: New file.
19376         * modules/stdlib-tests (Files): Add it.
19377         (Makefile.am): Compile it for test-stdlib-c++.
19378         * tests/test-string-c++2.cc: New file.
19379         * modules/string-tests (Files): Add it.
19380         (Makefile.am): Compile it for test-string-c++.
19381         * tests/test-time-c++2.cc: New file.
19382         * modules/time-tests (Files): Add it.
19383         (Makefile.am): Compile it for test-time-c++.
19384         Reported by John W. Eaton <jwe@gnu.org>.
19385
19386 2010-03-13  Bruno Haible  <bruno@clisp.org>
19387
19388         * gnulib-tool (func_usage): Clarify which options are available for
19389         --create-testdir and --create-megatestdir.
19390
19391 2010-03-13  Bruno Haible  <bruno@clisp.org>
19392
19393         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19394         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19395         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19396         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19397         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19398         when appropriate.
19399         Reported by Jim Meyering.
19400
19401 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19402
19403         * gnulib-tool (func_import): Explain origin of code.
19404
19405 2010-03-12  Bruno Haible  <bruno@clisp.org>
19406
19407         Fix problem with automake's definition of CXXLINK.
19408         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19409         Reported by Simon Josefsson and Ludovic Courtès.
19410
19411 2010-03-12  Bruno Haible  <bruno@clisp.org>
19412
19413         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19414         stable releases.
19415
19416 2010-03-11  Bruno Haible  <bruno@clisp.org>
19417
19418         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19419         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19420         whether the system provides one variant or multiple variants of the
19421         function.
19422         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19423         C++ compilers.
19424         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19425         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19426         Reported by Jim Meyering.
19427
19428 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19429
19430         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19431
19432 2010-03-08  Bruno Haible  <bruno@clisp.org>
19433
19434         gnulib-tool: Add support for --libtool in --create-testdir.
19435         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19436         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19437
19438 2010-03-08  Eric Blake  <eblake@redhat.com>
19439
19440         gnulib-tool.texi: mention possibility of git submodule
19441         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19442         submodules.
19443         * doc/.gitignore: Ignore another generated file.
19444
19445 2010-03-08  Karl Berry  <karl@gnu.org>
19446
19447         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19448         of committing gnulib files while skipping others.
19449
19450 2010-03-07  Bruno Haible  <bruno@clisp.org>
19451
19452         Tests of module 'wctype' in C++ mode.
19453         * tests/test-wctype-c++.cc: New file.
19454         * modules/wctype-tests (Files): Add it and tests/signature.h.
19455         (Depends-on): Add ansi-c++-opt.
19456         (Makefile.am): Arrange to compile and run test-wctype-c++.
19457
19458         Tests of module 'wchar' in C++ mode.
19459         * tests/test-wchar-c++.cc: New file.
19460         * modules/wchar-tests (Files): Add it and tests/signature.h.
19461         (Depends-on): Add ansi-c++-opt.
19462         (Makefile.am): Arrange to compile and run test-wchar-c++.
19463         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19464         gl_MODULE_INDICATOR.
19465
19466         Tests of module 'unistd' in C++ mode.
19467         * tests/test-unistd-c++.cc: New file.
19468         * modules/unistd-tests (Files): Add it and tests/signature.h.
19469         (Depends-on): Add ansi-c++-opt.
19470         (Makefile.am): Arrange to compile and run test-unistd-c++.
19471         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19472         gl_MODULE_INDICATOR.
19473
19474         Tests of module 'time' in C++ mode.
19475         * tests/test-time-c++.cc: New file.
19476         * modules/time-tests (Files): Add it and tests/signature.h.
19477         (Depends-on): Add ansi-c++-opt.
19478         (Makefile.am): Arrange to compile and run test-time-c++.
19479         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19480
19481         Tests of module 'sys_time' in C++ mode.
19482         * tests/test-sys_time-c++.cc: New file.
19483         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19484         (Depends-on): Add ansi-c++-opt.
19485         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19486         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19487         gl_MODULE_INDICATOR.
19488
19489         Tests of module 'sys_stat' in C++ mode.
19490         * tests/test-sys_stat-c++.cc: New file.
19491         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19492         (Depends-on): Add ansi-c++-opt.
19493         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19494         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19495         gl_MODULE_INDICATOR.
19496
19497         Tests of module 'sys_socket' in C++ mode.
19498         * tests/test-sys_socket-c++.cc: New file.
19499         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19500         (Depends-on): Add ansi-c++-opt.
19501         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19503         gl_MODULE_INDICATOR.
19504
19505         Tests of module 'sys_select' in C++ mode.
19506         * tests/test-sys_select-c++.cc: New file.
19507         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19508         (Depends-on): Add ansi-c++-opt.
19509         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19510         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19511         gl_MODULE_INDICATOR.
19512
19513         Tests of module 'sys_ioctl' in C++ mode.
19514         * tests/test-sys_ioctl-c++.cc: New file.
19515         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19516         (Depends-on): Add ansi-c++-opt.
19517         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19518         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19519         gl_MODULE_INDICATOR.
19520
19521         Tests of module 'string' in C++ mode.
19522         * tests/test-string-c++.cc: New file.
19523         * modules/string-tests (Files): Add it and tests/signature.h.
19524         (Depends-on): Add ansi-c++-opt.
19525         (Makefile.am): Arrange to compile and run test-string-c++.
19526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19527         gl_MODULE_INDICATOR.
19528
19529         Tests of module 'stdlib' in C++ mode.
19530         * tests/test-stdlib-c++.cc: New file.
19531         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19532         (Depends-on): Add ansi-c++-opt.
19533         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19534         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19535         gl_MODULE_INDICATOR.
19536
19537         Tests of module 'stdio' in C++ mode.
19538         * tests/test-stdio-c++.cc: New file.
19539         * modules/stdio-tests (Files): Add it and tests/signature.h.
19540         (Depends-on): Add ansi-c++-opt.
19541         (Makefile.am): Arrange to compile and run test-stdio-c++.
19542         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19543         gl_MODULE_INDICATOR.
19544
19545         Tests of module 'spawn' in C++ mode.
19546         * tests/test-spawn-c++.cc: New file.
19547         * modules/spawn-tests (Files): Add it and tests/signature.h.
19548         (Depends-on): Add ansi-c++-opt.
19549         (Makefile.am): Arrange to compile and run test-spawn-c++.
19550         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19551         gl_MODULE_INDICATOR.
19552
19553         Tests of module 'signal' in C++ mode.
19554         * tests/test-signal-c++.cc: New file.
19555         * modules/signal-tests (Files): Add it and tests/signature.h.
19556         (Depends-on): Add ansi-c++-opt.
19557         (Makefile.am): Arrange to compile and run test-signal-c++.
19558         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19559         gl_MODULE_INDICATOR.
19560
19561         Tests of module 'search' in C++ mode.
19562         * tests/test-search-c++.cc: New file.
19563         * modules/search-tests (Files): Add it and tests/signature.h.
19564         (Depends-on): Add ansi-c++-opt.
19565         (Makefile.am): Arrange to compile and run test-search-c++.
19566         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19567         gl_MODULE_INDICATOR.
19568
19569         Tests of module 'math' in C++ mode.
19570         * tests/test-math-c++.cc: New file.
19571         * modules/math-tests (Files): Add it and tests/signature.h.
19572         (Depends-on): Add ansi-c++-opt.
19573         (Makefile.am): Arrange to compile and run test-math-c++.
19574         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19575
19576         Tests of module 'locale' in C++ mode.
19577         * tests/test-locale-c++.cc: New file.
19578         * modules/locale-tests (Files): Add it and tests/signature.h.
19579         (Depends-on): Add ansi-c++-opt.
19580         (Makefile.am): Arrange to compile and run test-locale-c++.
19581         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19582         gl_MODULE_INDICATOR.
19583
19584         Tests of module 'langinfo' in C++ mode.
19585         * tests/test-langinfo-c++.cc: New file.
19586         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19587         (Depends-on): Add ansi-c++-opt.
19588         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19589         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19590         gl_MODULE_INDICATOR.
19591
19592         Tests of module 'iconv-h' in C++ mode.
19593         * tests/test-iconv-h-c++.cc: New file.
19594         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19595         (Depends-on): Add ansi-c++-opt.
19596         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19597
19598         Tests of module 'glob' in C++ mode.
19599         * tests/test-glob-c++.cc: New file.
19600         * modules/glob-tests (Files): Add it.
19601         (Depends-on): Add ansi-c++-opt.
19602         (Makefile.am): Arrange to compile and run test-glob-c++.
19603
19604         Tests of module 'fcntl-h' in C++ mode.
19605         * tests/test-fcntl-h-c++.cc: New file.
19606         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19607         (Depends-on): Add ansi-c++-opt.
19608         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19609         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19610         gl_MODULE_INDICATOR.
19611
19612         Tests of module 'dirent' in C++ mode.
19613         * tests/test-dirent-c++.cc: New file.
19614         * modules/dirent-tests (Files): Add it and tests/signature.h.
19615         (Depends-on): Add ansi-c++-opt.
19616         (Makefile.am): Arrange to compile and run test-dirent-c++.
19617         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19618         gl_MODULE_INDICATOR.
19619
19620         New module 'ansi-c++-opt'.
19621         * modules/ansi-c++-opt: New file.
19622         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19623
19624         Document C++ namespace mode.
19625         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19626
19627         wctype: Avoid #define replacements in C++ mode.
19628         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19629         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19630         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19631         In C++, define a namespaced alias symbol.
19632         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19633         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19634         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19635         rule.
19636
19637         wchar: Avoid #define replacements in C++ mode.
19638         * lib/wchar.in.h: Include c++defs.h.
19639         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19640         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19641         symbol.
19642         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19643         * modules/wchar (Depends-on): Add c++defs.
19644         (Makefile.am): Update wchar.h rule.
19645
19646         unistd: Avoid #define replacements in C++ mode.
19647         * lib/unistd.in.h: Include c++defs.h.
19648         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19649         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19650         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19651         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19652         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19653         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19654         symbol.
19655         (environ): Update.
19656         * modules/unistd (Depends-on): Add c++defs.
19657         (Makefile.am): Update unistd.h rule.
19658
19659         time: Avoid #define replacements in C++ mode.
19660         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19661         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19662         define a namespaced alias symbol.
19663         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19664         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19665         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19666         * modules/time (Depends-on): Add c++defs, warn-on-use.
19667         (Makefile.am): Update time.h rule.
19668         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19669         * modules/nanosleep (configure.ac): Likewise.
19670         * modules/strptime (configure.ac): Likewise.
19671         * modules/timegm (configure.ac): Likewise.
19672
19673         sys_time: Avoid #define replacements in C++ mode.
19674         * lib/sys_time.in.h: Include c++defs.h.
19675         (gettimeofday): In C++, define a namespaced alias symbol.
19676         * modules/sys_time (Depends-on): Add c++defs.
19677         (Makefile.am): Update sys/time.h rule.
19678
19679         sys_stat: Avoid #define replacements in C++ mode.
19680         * lib/sys_stat.in.h: Include c++defs.h.
19681         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19682         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19683         namespaced alias symbol.
19684         In C++, define a namespaced alias symbol.
19685         * modules/sys_stat (Depends-on): Add c++defs.
19686         (Makefile.am): Update sys/stat.h rule.
19687
19688         sys_socket: Avoid #define replacements in C++ mode.
19689         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19690         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19691         definitions also when the system has a <sys/socket.h>.
19692         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19693         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19694         In C++, define a namespaced alias symbol.
19695         * modules/sys_socket (Depends-on): Add c++defs.
19696         (Makefile.am): Update sys/socket.h rule.
19697
19698         sys_select: Avoid #define replacements in C++ mode.
19699         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19700         definitions also when the system has a <sys/select.h>.
19701         (select): In C++, define a namespaced alias symbol.
19702         * modules/sys_select (Depends-on): Add c++defs.
19703         (Makefile.am): Update sys/select.h rule.
19704
19705         sys_ioctl: Avoid #define replacements in C++ mode.
19706         * lib/sys_ioctl.in.h: Include c++defs.h.
19707         (ioctl): In C++, define a namespaced alias symbol.
19708         * modules/sys_ioctl (Depends-on): Add c++defs.
19709         (Makefile.am): Update sys/ioctl.h rule.
19710
19711         string: Avoid #define replacements in C++ mode.
19712         * lib/string.in.h: Include c++defs.h.
19713         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19714         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19715         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19716         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19717         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19718         * modules/string (Depends-on): Add c++defs.
19719         (Makefile.am): Update string.h rule.
19720
19721         stdlib: Avoid #define replacements in C++ mode.
19722         * lib/stdlib.in.h: Include c++defs.h.
19723         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19724         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19725         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19726         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19727         symbol.
19728         * modules/stdlib (Depends-on): Add c++defs.
19729         (Makefile.am): Update stdlib.h rule.
19730
19731         stdio: Avoid #define replacements in C++ mode.
19732         * lib/stdio.in.h: Include c++defs.h.
19733         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19734         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19735         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19736         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19737         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19738         namespaced alias symbol.
19739         * modules/stdio (Depends-on): Add c++defs.
19740         (Makefile.am): Update stdio.h rule.
19741
19742         spawn: Avoid #define replacements in C++ mode.
19743         * lib/spawn.in.h: Include c++defs.h.
19744         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19745         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19746         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19747         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19748         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19749         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19750         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19751         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19752         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19753         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19754         In C++, define a namespaced alias symbol.
19755         * modules/spawn (Depends-on): Add c++defs.
19756         (Makefile.am): Update spawn.h rule.
19757
19758         signal: Avoid #define replacements in C++ mode.
19759         * lib/signal.in.h: Include c++defs.h.
19760         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19761         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19762         namespaced alias symbol.
19763         * modules/signal (Depends-on): Add c++defs.
19764         (Makefile.am): Update signal.h rule.
19765
19766         search: Avoid #define replacements in C++ mode.
19767         * lib/search.in.h: Include c++defs.h.
19768         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19769         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19770         symbol.
19771         * modules/search (Depends-on): Add c++defs.
19772         (Makefile.am): Update search.h rule.
19773
19774         math: Avoid #define replacements in C++ mode.
19775         * lib/math.in.h: Include c++defs.h.
19776         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19777         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19778         trunc, truncl): In C++, define a namespaced alias symbol.
19779         * modules/math (Depends-on): Add c++defs.
19780         (Makefile.am): Update math.h rule.
19781
19782         locale: Avoid #define replacements in C++ mode.
19783         * lib/locale.in.h: Include c++defs.h.
19784         (duplocale): In C++, define a namespaced alias symbol.
19785         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19786         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19787         * modules/locale (Depends-on): Add c++defs.
19788         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19789
19790         langinfo: Avoid #define replacements in C++ mode.
19791         * lib/langinfo.in.h: Include c++defs.h.
19792         (nl_langinfo): In C++, define a namespaced alias symbol.
19793         * modules/langinfo (Depends-on): Add c++defs.
19794         (Makefile.am): Update langinfo.h rule.
19795
19796         iconv-h: Avoid #define replacements in C++ mode.
19797         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19798         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19799         symbol.
19800         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19801         whenever iconv is present.
19802         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19803         (Makefile.am): Update iconv.h rule.
19804
19805         glob: Avoid #define replacements in C++ mode.
19806         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19807         (_gl_glob_errfunc_fn): New type.
19808         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19809         symbol.
19810         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19811         (Makefile.am): Update glob.h rule.
19812
19813         fcntl-h: Avoid #define replacements in C++ mode.
19814         * lib/fcntl.in.h: Include c++defs.h.
19815         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19816         * modules/fcntl-h (Depends-on): Add c++defs.
19817         (Makefile.am): Update fcntl.h rule.
19818
19819         dirent: Avoid #define replacements in C++ mode.
19820         * lib/dirent.in.h: Include c++defs.h.
19821         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19822         namespaced alias symbol.
19823         (dirfd): Update declaration.
19824         * modules/dirent (Depends-on): Add c++defs.
19825         (Makefile.am): Update dirent.h rule.
19826
19827         ctype: Make it usable in C++ code.
19828         * lib/ctype.in.h: Include c++defs.h.
19829         (isblank): Declare as extern "C".
19830         * modules/ctype (Depends-on): Add c++defs.
19831         (Makefile.am): Update ctype.h rule.
19832
19833         New module 'c++defs'.
19834         * modules/c++defs: New file.
19835         * build-aux/c++defs.h: New file.
19836         Reported by John W. Eaton <jwe@gnu.org>.
19837
19838 2010-03-07  Bruno Haible  <bruno@clisp.org>
19839
19840         logb: Provide missing declaration for Cygwin.
19841         * lib/math.in.h (logb): New declaration.
19842         * m4/logb.m4: New file.
19843         * modules/logb (Files): Add m4/logb.m4.
19844         (Depends-on): Add math.
19845         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19846         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19848         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19849         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19850
19851 2010-03-07  Bruno Haible  <bruno@clisp.org>
19852
19853         Fix test-cond link error.
19854         * tests/test-cond.c: Include <stdio.h>.
19855
19856 2010-03-07  Bruno Haible  <bruno@clisp.org>
19857
19858         Fix test-dirent-safer link error.
19859         * modules/dirent-safer-tests (Makefile.am): Define
19860         test_dirent_safer_LDADD.
19861
19862 2010-03-07  Bruno Haible  <bruno@clisp.org>
19863
19864         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19865         among default module list.
19866
19867 2010-03-07  Bruno Haible  <bruno@clisp.org>
19868
19869         Fix link error on platforms with GNU libiconv.
19870         * modules/unistr/u8-strcoll-tests (Makefile): Define
19871         test_u8_strcoll_LDADD.
19872         * modules/unistr/u16-strcoll-tests (Makefile): Define
19873         test_u16_strcoll_LDADD.
19874         * modules/unistr/u32-strcoll-tests (Makefile): Define
19875         test_u32_strcoll_LDADD.
19876
19877 2010-03-07  Bruno Haible  <bruno@clisp.org>
19878
19879         Use POSIX declarations for socket functions.
19880         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19881         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19882         rpl_sendto): Change declaration to match POSIX.
19883         * lib/connect.c (rpl_connect): Likewise.
19884         * lib/accept.c (rpl_accept): Likewise.
19885         * lib/bind.c (rpl_bind): Likewise.
19886         * lib/getpeername.c (rpl_getpeername): Likewise.
19887         * lib/getsockname.c (rpl_getsockname): Likewise.
19888         * lib/recv.c (rpl_recv): Likewise.
19889         * lib/send.c (rpl_send): Likewise.
19890         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19891         * lib/sendto.c (rpl_sendto): Likewise.
19892
19893 2010-03-06  Bruno Haible  <bruno@clisp.org>
19894
19895         Clarify access, euidaccess, faccessat.
19896         * doc/posix-functions/faccessat.texi: Mention security problem under
19897         "Other problems", not "Portability problems".
19898         * doc/posix-functions/access.texi: Likewise. Mention a related security
19899         problem.
19900         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19901         * lib/euidaccess.c: Add comments about platforms.
19902         * lib/unistd.in.h (access, euidaccess): Add warnings.
19903
19904 2010-03-07  Bruno Haible  <bruno@clisp.org>
19905
19906         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19907         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19908         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19909         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19910         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19911         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19912         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19913         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19914         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19915         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19916         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19917         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19918         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19919         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19920         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19921         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19922         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19923         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19924         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19925         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19926         Likewise.
19927         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19928         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19929         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19930         Likewise.
19931         * tests/test-spawn.c (main): Make it work when
19932         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19933
19934 2010-03-07  Bruno Haible  <bruno@clisp.org>
19935
19936         Fix incorrect Makefile.am generation in German locale.
19937         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19938         Execute sed command with character range in C locale.
19939
19940 2010-03-06  Bruno Haible  <bruno@clisp.org>
19941
19942         Tests for module 'iconv-h'.
19943         * modules/iconv-h-tests: New file.
19944         * tests/test-iconv-h.c: New file.
19945
19946         New module 'iconv-h'.
19947         * modules/iconv-h: New file.
19948         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19949         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19950         (configure.ac): Remove gl_ICONV_H.
19951         (Makefile.am): Remove rule for iconv.h.
19952
19953 2010-03-06  Bruno Haible  <bruno@clisp.org>
19954
19955         More consistent naming of *.m4 files.
19956         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19957         * modules/wctype (Files): Update.
19958
19959         More consistent naming of *.m4 files.
19960         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19961         * modules/wchar (Files): Update.
19962
19963 2010-03-06  Jim Meyering  <meyering@redhat.com>
19964
19965         euidaccess: relax license to LGPLv2+
19966         * modules/euidaccess (License): Relax to LGPLv2+.
19967
19968 2010-03-06  Bruno Haible  <bruno@clisp.org>
19969
19970         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19971         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19972         (Makefile.am): Augment lib_SOURCES instead.
19973
19974 2010-03-04  Jim Meyering  <meyering@redhat.com>
19975
19976         utime: remove obsolete module
19977         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19978         unnecessary for years, and has been marked as obsolete for 10 months.
19979         * modules/utime: Remove file.
19980         * lib/utime.c: Remove file.
19981         * m4/utime.m4: Remove file.
19982         * m4/utimes-null.m4: Remove file.
19983         * doc/posix-functions/utime.texi (utime): Remove reference to
19984         the module.  Move the sole "fixed by gnulib" item into the
19985         "problems not fixed by Gnulib" list.
19986         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19987
19988 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19989
19990         * modules/exit (License): Relax license to LGPLv2+.
19991         (Status): Mark as obsolete.
19992         * NEWS: Mention deprecated 'exit' module.
19993         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19994         of now obsolete 'exit'.
19995
19996 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19997
19998         fts-lgpl: remove unused module
19999         * modules/fts-lgpl: Remove.
20000         * MODULES.html.sh (func_all_modules): Adjust.
20001         * check-module (find_included_lib_files): Adjust.
20002         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20003
20004 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20005
20006         copy-acl: enhance Solaris ACL error handling
20007         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20008         * lib/set-mode-acl.c (qset_acl): Likewise.
20009
20010 2010-03-02  Bruno Haible  <bruno@clisp.org>
20011
20012         spawn: Don't override the system defined values on FreeBSD 8.
20013         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20014         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20015         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20016         if HAVE_POSIX_SPAWN is 1.
20017         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20018
20019 2010-03-01  Bruno Haible  <bruno@clisp.org>
20020
20021         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20022         regarding Automake.
20023
20024 2010-02-25  Bruno Haible  <bruno@clisp.org>
20025
20026         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20027         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20028         setting, not afterwards.
20029         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20030
20031 2010-02-24  Eric Blake  <eblake@redhat.com>
20032
20033         bootstrap, git-version-gen: use timestamp
20034         * build-aux/git-version-gen (scriptversion): Force UTC.
20035         * build-aux/bootstrap (scriptversion): New variable.
20036
20037         bootstrap: allow older git
20038         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20039         older than 1.6.4.  Requested by the libvirt project.
20040
20041 2010-02-23  Eric Blake  <eblake@redhat.com>
20042
20043         warn-on-use: work with old autoconf
20044         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20045         AS_VAR semantics of autoconf 2.60.
20046         Reported by Bruno Haible.
20047
20048         bootstrap: improve some comments
20049         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20050         clarification comments.
20051
20052         gettimeofday: provide correct function
20053         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20054         when replacement is declared, otherwise provide gettimeofday.
20055         Reported by Michael Goffioul.
20056
20057 2010-02-23  Jim Meyering  <meyering@redhat.com>
20058
20059         lib-ignore: relax license to "unlimited", not LGPLv2+
20060         * modules/lib-ignore (License): Relax to "unlimited".
20061
20062 2010-02-23  Jim Meyering  <meyering@redhat.com>
20063
20064         lib-ignore: relax license to LGPLv2+
20065         * modules/lib-ignore (License): Relax to LGPLv2+.
20066
20067 2010-02-22  Eric Blake  <eblake@redhat.com>
20068
20069         lseek: avoid bash 3.2 broken pipe bug
20070         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20071         warning from bash 3.2.
20072         Reported by Ben Pfaff, with analysis from Bruno Haible.
20073
20074         bootstrap: support non-FSF copyright holder
20075         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20076         bootstrap.conf override of COPYRIGHT_HOLDER.
20077         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20078
20079         bootstrap: interoperate with gettext 0.14.1
20080         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20081
20082         bootstrap: allow for alternate submodule location
20083         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20084         hardcoding submodule location.
20085         (gnulib_mk): Allow direct use of Makefile.am.
20086
20087         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20088         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20089         rather than reconfiguring where the submodule points.
20090
20091         gettimeofday: restore support for platforms that lack function
20092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20093         replacement if function is missing.
20094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20095         * modules/sys_time (Makefile.am): Substitute it.
20096         * lib/sys_time.in.h (gettimeofday): Check it.
20097         Reported by Michael Goffioul.
20098
20099 2010-02-21  Bruno Haible  <bruno@clisp.org>
20100
20101         * lib/stdio.in.h (obstack_printf): Fix typo.
20102
20103 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20104
20105         vc-list-files: use bzr ls's -R option
20106         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20107         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20108
20109 2010-02-21  Jim Meyering  <meyering@redhat.com>
20110
20111         init.sh: fix EXEEXT shims to work also for names like test-prog
20112         * tests/init.sh: Re-exec a better shell, when needed.
20113         If the current shell lacks support for posix $(...), an init.sh-using
20114         test will now try to find a shell that supports that.  If EXEEXT is
20115         nonempty, we also require support for hyphen-in-alias-name and shell
20116         substitutions like ${var#glob}.  Failure to find such a shell results
20117         in a skipped test.
20118
20119 2010-02-21  Bruno Haible  <bruno@clisp.org>
20120
20121         Really work around around "broken pipe" error message from bash 3.2.
20122         * gnulib-tool (func_reset_sigpipe): Remove function.
20123         (echo): In bash 3.2, define to a function that uses printf.
20124         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20125
20126 2010-02-20  Bruno Haible  <bruno@clisp.org>
20127
20128         Restore support for automake 1.9.6 with autoconf 2.61.
20129         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20130         Reported by James Youngman <jay@gnu.org>.
20131
20132 2010-02-20  Bruno Haible  <bruno@clisp.org>
20133
20134         Improve *printf warning condition.
20135         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20136         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20137         and the function is overridden due to SIGPIPE emulation.
20138
20139 2010-02-20  Bruno Haible  <bruno@clisp.org>
20140
20141         * lib/stdio.in.h: Tweak comments.
20142
20143 2010-02-19  Bruno Haible  <bruno@clisp.org>
20144
20145         Make it easier to find modules. New gnulib-tool option '--find'.
20146         * gnulib-tool: New option --find.
20147         (func_usage): Document it.
20148         (func_sanitize_modulelist): New function, extracted from
20149         func_all_modules.
20150         (func_all_modules): Invoke it.
20151         * doc/gnulib-tool.texi (Which modules?): New node.
20152
20153 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20154
20155         * lib/sys_select.in.h: Provide select replacement even if
20156         sys/select.h exists on a system, for Interix.
20157
20158 2010-02-18  Jim Meyering  <meyering@redhat.com>
20159
20160         init.sh: don't use $(...) just yet
20161         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20162         to accommodate e.g., Solaris' /bin/sh.
20163
20164 2010-02-17  Bruno Haible  <bruno@clisp.org>
20165
20166         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20167         Reported by Ludovic Courtès <ludo@gnu.org>.
20168
20169 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20170
20171         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20172         linking with -lintl.
20173
20174 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20175
20176         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20177         if not provided by the system's netdb.h.  Reported by
20178         ludo@gnu.org (Ludovic Courtès).
20179
20180 2010-02-15  Jim Meyering  <meyering@redhat.com>
20181
20182         init.sh: improve portability and efficiency
20183         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20184         "dummy" in a for loop.
20185         Use '!', not '^' to select the complement of a character set used
20186         in a "case" statement.
20187         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20188         Suggestions from Eric Blake.
20189
20190         init.sh: automatically accommodate programs with the .exe suffix
20191         Automatically arrange for an invocation of "prog" to execute the
20192         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20193         may use the simpler "prog", yet still work when built on a system
20194         that requires specifying the added suffix.
20195         Do this by constructing a function named "prog" that invokes
20196         "prog.exe" for each .exe file in selected directories.
20197         * tests/init.sh (find_exe_basenames_): New function.
20198         (create_exe_shim_functions_): New function.
20199         (path_prepend_): Use it.
20200
20201         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20202         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20203         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20204
20205 2010-02-14  Jim Meyering  <meyering@redhat.com>
20206
20207         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20208         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20209         (sc_prohibit_hash_pjw_without_use): New rule.
20210
20211         maint.mk: allow the default upload destination dir to be overridden
20212         * top/maint.mk (upload_dest_dir_): Define with a default that
20213         preserves the status quo.
20214         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20215         Reported by Peter Simons.
20216
20217         maint.mk: prohibit inclusion of "hash.h" without_use
20218         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20219
20220 2010-02-10  Jim Meyering  <meyering@redhat.com>
20221
20222         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20223         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20224
20225 2010-02-09  Eric Blake  <ebb9@byu.net>
20226         and Bruno Haible  <bruno@clisp.org>
20227
20228         obstack-printf-posix: ensure declaration
20229         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20230         extracted from gl_FUNC_OBSTACK_PRINTF.
20231         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20232         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20233         Likewise.
20234         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20235         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20236         0.
20237
20238 2010-02-08  Bruno Haible  <bruno@clisp.org>
20239
20240         gnulib-tool: Fix typo in 2010-02-07 commit.
20241         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20242         Reported by Eric Blake.
20243
20244 2010-02-07  Bruno Haible  <bruno@clisp.org>
20245
20246         gnulib-tool: Fix up caching patches.
20247         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20248         option --no-cache. Use associative arrays when supported by the shell.
20249         (sed_comments): New variable.
20250         (modcache): Renamed from do_cache.
20251         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20252         abbreviate unnecessarily.
20253         (have_associative): New variable.
20254         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20255         way also for ksh and zsh.
20256         (func_init_sed_convert_to_cache_statements): New function, extracted
20257         from func_cache_lookup_module. Add support for associative arrays.
20258         Don't set the c_MODULE_cached variable here. Ignore all lines before
20259         the first field header. Remove only the final newline, not all trailing
20260         newlines. Support empty fields correctly. Limit the use of 'eval' to
20261         assignments.
20262         (func_get_description, func_get_status, func_get_notice,
20263         func_get_applicability, func_get_filelist, func_get_dependencies,
20264         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20265         func_get_automake_snippet, func_get_include_directive,
20266         func_get_link_directive, func_get_license, func_get_maintainer):
20267         Update documentation. List the unoptimized code first. Add support for
20268         associative arrays. Limit the use of 'eval' to assignments.
20269         (func_get_applicability): Undo stylistic pessimisations.
20270         (func_get_automake_snippet, func_get_include_directive): Reduce code
20271         duplication.
20272         (func_modules_transitive_closure, func_modules_add_dummy,
20273         func_modules_notice, func_modules_to_filelist, func_add_file,
20274         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20275         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20276         func_create_testdir, func_create_megatestdir): Update documentation.
20277
20278 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20279
20280         * gnulib-tool (func_cache_lookup_module): Store the module name
20281         belonging to the cache variable; error out if two different
20282         module names map to the same cache variable name.
20283
20284 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20285
20286         gnulib-tool: Make caching optional.
20287         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20288         Update matching short versions of --no-changelog.
20289         (func_usage): Update.
20290         (sed_extract_cache_prog): Renamed from ...
20291         (sed_extract_prog): ... this; revert to old extraction script.
20292         (func_get_description, func_get_status)
20293         (func_get_notice, func_get_applicability, func_get_filelist)
20294         (func_get_dependencies, func_get_autoconf_early_snippet)
20295         (func_get_autoconf_snippet, func_get_automake_snippet)
20296         (func_get_include_directive, func_get_link_directive)
20297         (func_get_license, func_get_maintainer): If $do_cache is false,
20298         use old, non-caching extraction scripts.
20299         Suggestion by Bruno Haible.
20300
20301 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20302
20303         gnulib-tool: cache module metainformation.
20304         * gnulib-tool (sed_extract_prog): Match newline before each
20305         header, and rewrite header to a shell variable suffix.
20306         (func_cache_var, func_cache_lookup_module): New functions,
20307         to turn a module name into a cache variable prefix, and to
20308         look up and cache module metainformation.
20309         (func_get_description, func_get_status)
20310         (func_get_notice, func_get_applicability, func_get_filelist)
20311         (func_get_dependencies, func_get_autoconf_early_snippet)
20312         (func_get_autoconf_snippet, func_get_automake_snippet)
20313         (func_get_include_directive, func_get_link_directive)
20314         (func_get_license, func_get_maintainer): Use
20315         func_cache_lookup_module.
20316
20317 2010-02-07  Bruno Haible  <bruno@clisp.org>
20318
20319         fnctl: Fix missing dependency.
20320         * modules/fcntl (Depends-on): Add getdtablesize.
20321         Reported by John W. Eaton <jwe@gnu.org>.
20322
20323 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20324
20325         Argp: fix recognition of short alias options.
20326
20327         * lib/argp-parse.c (convert_options): Fix improper use of
20328         `|' between character values.
20329         * tests/test-argp.c (group1_option): New alias option
20330         --read (-r).
20331         (group1_parser): Special handling for 'r'.
20332         (test15): New test case.
20333         (test_fun): Add test15.
20334         * tests/test-argp-2.sh: Update expected --help and --usage
20335         outputs.
20336
20337 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20338
20339         * tests/test-argp.c: Fix indentation.
20340
20341 2010-02-04  Eric Blake  <ebb9@byu.net>
20342
20343         gettimeofday: expose type of second argument
20344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20345         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20346         * tests/test-gettimeofday.c: Use it to silence warning.
20347         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20348         the issue.
20349
20350 2010-02-03  Jim Meyering  <meyering@redhat.com>
20351
20352         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20353         * lib/regcomp.c (TYPE_SIGNED): Define.
20354         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20355
20356         regcomp.c: avoid a new -Wshadow warning
20357         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20358
20359 2010-02-01  Jim Meyering  <meyering@redhat.com>
20360
20361         removing useless parentheses in cpp #define directives
20362         For motivation, see commit c0221df4, "define STREQ(a,b)
20363         consistently, removing useless parentheses"
20364         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20365         * lib/mountlist.c (MNT_IGNORE): Likewise.
20366         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20367
20368 2010-02-01  Eric Blake  <ebb9@byu.net>
20369
20370         sys_time: use link-warning
20371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20372         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20373         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20374         * modules/sys_time (Depends-on): Add warn-on-use.
20375         (Makefile.am): Always build replacement.
20376         (configure.ac): Update substitutions.
20377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20378         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20379         bother with SYS_TIME_H.
20380         * modules/gettimeofday (configure.ac): Declare indicator.
20381         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20382         in use.
20383
20384         closein-tests: silence compiler warning
20385         * tests/test-closein.c (main): Ignore fread result.
20386         * modules/closein-tests (Depends-on): Add ignore-value.
20387
20388         tests: silence warning about system return
20389         * tests/test-areadlink-with-size.c (main): Ignore system result.
20390         * tests/test-areadlink.c (main): Likewise.
20391         * tests/test-areadlinkat-with-size.c (main): Likewise.
20392         * tests/test-areadlinkat.c (main): Likewise.
20393         * tests/test-canonicalize-lgpl.c (main): Likewise.
20394         * tests/test-canonicalize.c (main): Likewise.
20395         * tests/test-chown.c (main): Likewise.
20396         * tests/test-fchownat.c (main): Likewise.
20397         * tests/test-fdutimensat.c (main): Likewise.
20398         * tests/test-fstatat.c (main): Likewise.
20399         * tests/test-futimens.c (main): Likewise.
20400         * tests/test-lchown.c (main): Likewise.
20401         * tests/test-link.c (main): Likewise.
20402         * tests/test-linkat.c (main): Likewise.
20403         * tests/test-lstat.c (main): Likewise.
20404         * tests/test-mkdir.c (main): Likewise.
20405         * tests/test-mkdirat.c (main): Likewise.
20406         * tests/test-mkfifo.c (main): Likewise.
20407         * tests/test-mkfifoat.c (main): Likewise.
20408         * tests/test-mknod.c (main): Likewise.
20409         * tests/test-readlink.c (main): Likewise.
20410         * tests/test-remove.c (main): Likewise.
20411         * tests/test-rename.c (main): Likewise.
20412         * tests/test-renameat.c (main): Likewise.
20413         * tests/test-rmdir.c (main): Likewise.
20414         * tests/test-symlink.c (main): Likewise.
20415         * tests/test-symlinkat.c (main): Likewise.
20416         * tests/test-unlink.c (main): Likewise.
20417         * tests/test-unlinkat.c (main): Likewise.
20418         * tests/test-utimens.c (main): Likewise.
20419         * tests/test-utimensat.c (main): Likewise.
20420         * modules/areadlink-tests (Depends-on): Add ignore-value.
20421         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20422         * modules/areadlinkat-tests (Depends-on): Likewise.
20423         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20424         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20425         * modules/canonicalize-tests (Depends-on): Likewise.
20426         * modules/chown-tests (Depends-on): Likewise.
20427         * modules/fdutimensat-tests (Depends-on): Likewise.
20428         * modules/futimens-tests (Depends-on): Likewise.
20429         * modules/lchown-tests (Depends-on): Likewise.
20430         * modules/link-tests (Depends-on): Likewise.
20431         * modules/linkat-tests (Depends-on): Likewise.
20432         * modules/lstat-tests (Depends-on): Likewise.
20433         * modules/mkdir-tests (Depends-on): Likewise.
20434         * modules/mkfifo-tests (Depends-on): Likewise.
20435         * modules/mkfifoat-tests (Depends-on): Likewise.
20436         * modules/mknod-tests (Depends-on): Likewise.
20437         * modules/openat-tests (Depends-on): Likewise.
20438         * modules/readlink-tests (Depends-on): Likewise.
20439         * modules/remove-tests (Depends-on): Likewise.
20440         * modules/rename-tests (Depends-on): Likewise.
20441         * modules/renameat-tests (Depends-on): Likewise.
20442         * modules/rmdir-tests (Depends-on): Likewise.
20443         * modules/symlink-tests (Depends-on): Likewise.
20444         * modules/symlinkat-tests (Depends-on): Likewise.
20445         * modules/unlink-tests (Depends-on): Likewise.
20446         * modules/utimens-tests (Depends-on): Likewise.
20447         * modules/utimensat-tests (Depends-on): Likewise.
20448
20449 2010-01-31  Bruno Haible  <bruno@clisp.org>
20450
20451         Perform the same test for many <math.h> functions.
20452         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20453         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20454         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20455         of gl_MATHFUNC.
20456         * modules/acos (configure.ac): Likewise.
20457         * modules/asin (configure.ac): Likewise.
20458         * modules/atan (configure.ac): Likewise.
20459         * modules/atan2 (configure.ac): Likewise.
20460         * modules/cbrt (configure.ac): Likewise.
20461         * modules/copysign (configure.ac): Likewise.
20462         * modules/cos (configure.ac): Likewise.
20463         * modules/cosh (configure.ac): Likewise.
20464         * modules/erf (configure.ac): Likewise.
20465         * modules/erfc (configure.ac): Likewise.
20466         * modules/exp (configure.ac): Likewise.
20467         * modules/fmod (configure.ac): Likewise.
20468         * modules/hypot (configure.ac): Likewise.
20469         * modules/j0 (configure.ac): Likewise.
20470         * modules/j1 (configure.ac): Likewise.
20471         * modules/jn (configure.ac): Likewise.
20472         * modules/lgamma (configure.ac): Likewise.
20473         * modules/log (configure.ac): Likewise.
20474         * modules/log10 (configure.ac): Likewise.
20475         * modules/log1p (configure.ac): Likewise.
20476         * modules/pow (configure.ac): Likewise.
20477         * modules/remainder (configure.ac): Likewise.
20478         * modules/sin (configure.ac): Likewise.
20479         * modules/sinh (configure.ac): Likewise.
20480         * modules/tan (configure.ac): Likewise.
20481         * modules/tanh (configure.ac): Likewise.
20482         * modules/y0 (configure.ac): Likewise.
20483         * modules/y1 (configure.ac): Likewise.
20484         * modules/yn (configure.ac): Likewise.
20485         Suggested by Paolo Bonzini.
20486
20487 2010-01-31  Bruno Haible  <bruno@clisp.org>
20488
20489         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20490
20491 2010-01-31  Bruno Haible  <bruno@clisp.org>
20492
20493         Work around getdelim() bug on FreeBSD 8.0.
20494         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20495         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20496         not work.
20497         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20498         is 1.
20499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20500         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20501         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20502         a non-zero size.
20503         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20504
20505 2010-01-31  Bruno Haible  <bruno@clisp.org>
20506
20507         Work around getline() bug on FreeBSD 8.0.
20508         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20509         and a non-zero size.
20510         * tests/test-getline.c (main): Likewise.
20511         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20512         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20513
20514 2010-01-28  Eric Blake  <ebb9@byu.net>
20515
20516         regex: fix build failure
20517         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20518         platforms.
20519
20520 2010-01-28  Jim Meyering  <meyering@redhat.com>
20521
20522         regex: do not ignore memory allocation failure
20523         * lib/regex_internal.c (create_cd_newstate): Detect
20524         re_node_set_init_copy failure.   Extracted from glibc commit
20525         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20526
20527         regex: sync more white-space changes from libc
20528         * lib/regex_internal.c: White-space only changes.
20529         * lib/regexec.c: Likewise.
20530
20531         regex: add many uses of __attribute_warn_unused_result__
20532         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20533         * lib/regexec.c: Likewise.
20534         Extracted from a messy glibc commit.
20535
20536         regcomp.c: spelling and merge-artifact from glibc
20537         * lib/regcomp.c: Merge remainder of glibc's
20538         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20539
20540         regcomp.c: sync white-space changes from glibc
20541         * lib/regcomp.c: Merge to accommodate white space
20542         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20543
20544         regcomp.c: do not ignore internal return values
20545         * lib/regcomp.c: Do not ignore internal return values.
20546         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20547         but without its white-space changes and spelling fixes.
20548
20549         regex_internal.h: define __attribute_warn_unused_result__
20550         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20551
20552         maint: add a syntax-check rule to check for vulnerable Makefile.in
20553         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20554
20555 2010-01-27  Jim Meyering  <meyering@redhat.com>
20556
20557         ncftpput-ftp: clean up spaces
20558         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20559         Remove trailing blanks.
20560
20561 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20562
20563         * build-aux/git-version-gen: Fix copyright statement.
20564         * build-aux/gnupload: Likewise.
20565         * tests/test-arcfour.c: Likewise.
20566         * tests/test-arctwo.c: Likewise.
20567         * tests/test-count-one-bits.c: Likewise.
20568         * tests/test-crc.c: Likewise.
20569         * tests/test-des.c: Likewise.
20570         * tests/test-gc-arcfour.c: Likewise.
20571         * tests/test-gc-arctwo.c: Likewise.
20572         * tests/test-gc-des.c: Likewise.
20573         * tests/test-gc-hmac-md5.c: Likewise.
20574         * tests/test-gc-hmac-sha1.c: Likewise.
20575         * tests/test-gc-md2.c: Likewise.
20576         * tests/test-gc-md4.c: Likewise.
20577         * tests/test-gc-md5.c: Likewise.
20578         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20579         * tests/test-gc-rijndael.c: Likewise.
20580         * tests/test-gc-sha1.c: Likewise.
20581         * tests/test-gc.c: Likewise.
20582         * tests/test-gethostname.c: Likewise.
20583         * tests/test-gettimeofday.c: Likewise.
20584         * tests/test-hash.c: Likewise.
20585         * tests/test-hmac-md5.c: Likewise.
20586         * tests/test-hmac-sha1.c: Likewise.
20587         * tests/test-md2.c: Likewise.
20588         * tests/test-md4.c: Likewise.
20589         * tests/test-md5.c: Likewise.
20590         * tests/test-memchr.c: Likewise.
20591         * tests/test-memchr2.c: Likewise.
20592         * tests/test-memcmp.c: Likewise.
20593         * tests/test-memmem.c: Likewise.
20594         * tests/test-memrchr.c: Likewise.
20595         * tests/test-rawmemchr.c: Likewise.
20596         * tests/test-read-file.c: Likewise.
20597         * tests/test-rijndael.c: Likewise.
20598         * tests/test-sockets.c: Likewise.
20599         * tests/test-strchrnul.c: Likewise.
20600         * tests/test-strstr.c: Likewise.
20601         * tests/test-strtod.c: Likewise.
20602         * build-aux/ncftpput-ftp: Likewise.
20603
20604 2010-01-26  Eric Blake  <ebb9@byu.net>
20605
20606         ignore-value: update recommended header name
20607         * modules/ignore-value (Include): Only use <> for headers that
20608         exist in glibc.
20609
20610 2010-01-26  Jim Meyering  <meyering@redhat.com>
20611
20612         test-userspec.c: avoid compiler warnings
20613         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20614         and "initialization discards qualifiers..." warnings.
20615         Put the first "uid" in its own scope, and make char* members "const".
20616
20617 2010-01-25  Bruno Haible  <bruno@clisp.org>
20618
20619         gnulib-tool: Make warning diagnostics consistent.
20620         * gnulib-tool (func_warning): New function.
20621         Use it everywhere where gnulib-tool produces output to stderr and it is
20622         not a fatal error.
20623
20624 2010-01-25  Bruno Haible  <bruno@clisp.org>
20625
20626         Fix test dependencies.
20627         * modules/xstrtol-tests (Depends-on): Add inttypes.
20628         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20629
20630 2010-01-25 Pádraig Brady <P@draigBrady.com>
20631
20632         syntax-check: detect incorrect boolean macro values in config.h
20633         * modules/maintainer-makefile (configure.ac): Parameterize the location
20634         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20635         The logic is from Eric Blake and the location indicated by Jim Meyering.
20636         Note the more natural CONFIG_HEADER name is prohibited by automake
20637         for backwards compatibility reasons.
20638         * top/maint.mk (sc_Wundef_boolean): New rule.
20639
20640 2010-01-25  Jim Meyering  <meyering@redhat.com>
20641
20642         bootstrap: detect MacOS 10.6's shasum, too
20643         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20644         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20645
20646 2010-01-23  Jim Meyering  <meyering@redhat.com>
20647
20648         xstrtoll: new module
20649         * modules/xstrtoll: New file.
20650         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20651         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20652         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20653         ./configure fails if you use this module and lack "long long".
20654         * modules/xstrtoll-tests: New module.
20655         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20656         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20657         new init.sh-based test framework.
20658
20659 2010-01-24  Bruno Haible  <bruno@clisp.org>
20660
20661         Tests for module 'yn'.
20662         * modules/yn-tests: New file.
20663         * tests/test-yn.c: New file.
20664
20665         Tests for module 'y1'.
20666         * modules/y1-tests: New file.
20667         * tests/test-y1.c: New file.
20668
20669         Tests for module 'y0'.
20670         * modules/y0-tests: New file.
20671         * tests/test-y0.c: New file.
20672
20673         Tests for module 'tanh'.
20674         * modules/tanh-tests: New file.
20675         * tests/test-tanh.c: New file.
20676
20677         Tests for module 'tan'.
20678         * modules/tan-tests: New file.
20679         * tests/test-tan.c: New file.
20680
20681         Tests for module 'sqrt'.
20682         * modules/sqrt-tests: New file.
20683         * tests/test-sqrt.c: New file.
20684
20685         Tests for module 'sinh'.
20686         * modules/sinh-tests: New file.
20687         * tests/test-sinh.c: New file.
20688
20689         Tests for module 'sin'.
20690         * modules/sin-tests: New file.
20691         * tests/test-sin.c: New file.
20692
20693         Tests for module 'rint'.
20694         * modules/rint-tests: New file.
20695         * tests/test-rint.c: New file.
20696
20697         Tests for module 'remainder'.
20698         * modules/remainder-tests: New file.
20699         * tests/test-remainder.c: New file.
20700
20701         Tests for module 'pow'.
20702         * modules/pow-tests: New file.
20703         * tests/test-pow.c: New file.
20704
20705         Tests for module 'nextafter'.
20706         * modules/nextafter-tests: New file.
20707         * tests/test-nextafter.c: New file.
20708
20709         Tests for module 'modf'.
20710         * modules/modf-tests: New file.
20711         * tests/test-modf.c: New file.
20712
20713         Tests for module 'logb'.
20714         * modules/logb-tests: New file.
20715         * tests/test-logb.c: New file.
20716
20717         Tests for module 'log1p'.
20718         * modules/log1p-tests: New file.
20719         * tests/test-log1p.c: New file.
20720
20721         Tests for module 'log10'.
20722         * modules/log10-tests: New file.
20723         * tests/test-log10.c: New file.
20724
20725         Tests for module 'log'.
20726         * modules/log-tests: New file.
20727         * tests/test-log.c: New file.
20728
20729         Tests for module 'lgamma'.
20730         * modules/lgamma-tests: New file.
20731         * tests/test-lgamma.c: New file.
20732
20733         Tests for module 'ldexp'.
20734         * modules/ldexp-tests: New file.
20735         * tests/test-ldexp.c: New file.
20736
20737         Tests for module 'jn'.
20738         * modules/jn-tests: New file.
20739         * tests/test-jn.c: New file.
20740
20741         Tests for module 'j1'.
20742         * modules/j1-tests: New file.
20743         * tests/test-j1.c: New file.
20744
20745         Tests for module 'j0'.
20746         * modules/j0-tests: New file.
20747         * tests/test-j0.c: New file.
20748
20749         Tests for module 'hypot'.
20750         * modules/hypot-tests: New file.
20751         * tests/test-hypot.c: New file.
20752
20753         Tests for module 'fmod'.
20754         * modules/fmod-tests: New file.
20755         * tests/test-fmod.c: New file.
20756
20757         Tests for module 'fabs'.
20758         * modules/fabs-tests: New file.
20759         * tests/test-fabs.c: New file.
20760
20761         Tests for module 'exp'.
20762         * modules/exp-tests: New file.
20763         * tests/test-exp.c: New file.
20764
20765         Tests for module 'erfc'.
20766         * modules/erfc-tests: New file.
20767         * tests/test-erfc.c: New file.
20768
20769         Tests for module 'erf'.
20770         * modules/erf-tests: New file.
20771         * tests/test-erf.c: New file.
20772
20773         Tests for module 'cosh'.
20774         * modules/cosh-tests: New file.
20775         * tests/test-cosh.c: New file.
20776
20777         Tests for module 'cos'.
20778         * modules/cos-tests: New file.
20779         * tests/test-cos.c: New file.
20780
20781         Tests for module 'copysign'.
20782         * modules/copysign-tests: New file.
20783         * tests/test-copysign.c: New file.
20784
20785         Tests for module 'cbrt'.
20786         * modules/cbrt-tests: New file.
20787         * tests/test-cbrt.c: New file.
20788
20789         Tests for module 'atan2'.
20790         * modules/atan2-tests: New file.
20791         * tests/test-atan2.c: New file.
20792
20793         Tests for module 'atan'.
20794         * modules/atan-tests: New file.
20795         * tests/test-atan.c: New file.
20796
20797         Tests for module 'asin'.
20798         * modules/asin-tests: New file.
20799         * tests/test-asin.c: New file.
20800
20801         Tests for module 'acos'.
20802         * modules/acos-tests: New file.
20803         * tests/test-acos.c: New file.
20804
20805 2010-01-24  Bruno Haible  <bruno@clisp.org>
20806
20807         Fix tests for common <math.h> functions.
20808         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20809         code snippet that references the function pointer, rather than merely
20810         calling the function. Substitute the FUNC_LIBM variable.
20811         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20812         * modules/acos (configure.ac): Likewise.
20813         * modules/asin (configure.ac): Likewise.
20814         * modules/atan (configure.ac): Likewise.
20815         * modules/atan2 (configure.ac): Likewise.
20816         * modules/cbrt (configure.ac): Likewise.
20817         * modules/copysign (configure.ac): Likewise.
20818         * modules/cos (configure.ac): Likewise.
20819         * modules/cosh (configure.ac): Likewise.
20820         * modules/erf (configure.ac): Likewise.
20821         * modules/erfc (configure.ac): Likewise.
20822         * modules/exp (configure.ac): Likewise.
20823         * modules/fabs (configure.ac): Likewise.
20824         * modules/fmod (configure.ac): Likewise.
20825         * modules/hypot (configure.ac): Likewise.
20826         * modules/j0 (configure.ac): Likewise.
20827         * modules/j1 (configure.ac): Likewise.
20828         * modules/jn (configure.ac): Likewise.
20829         * modules/ldexp (configure.ac): Likewise.
20830         * modules/lgamma (configure.ac): Likewise.
20831         * modules/log (configure.ac): Likewise.
20832         * modules/log10 (configure.ac): Likewise.
20833         * modules/log1p (configure.ac): Likewise.
20834         * modules/logb (configure.ac): Likewise.
20835         * modules/modf (configure.ac): Likewise.
20836         * modules/nextafter (configure.ac): Likewise.
20837         * modules/pow (configure.ac): Likewise.
20838         * modules/remainder (configure.ac): Likewise.
20839         * modules/rint (configure.ac): Likewise.
20840         * modules/sin (configure.ac): Likewise.
20841         * modules/sinh (configure.ac): Likewise.
20842         * modules/tan (configure.ac): Likewise.
20843         * modules/tanh (configure.ac): Likewise.
20844         * modules/y0 (configure.ac): Likewise.
20845         * modules/y1 (configure.ac): Likewise.
20846         * modules/yn (configure.ac): Likewise.
20847
20848 2010-01-24  Bruno Haible  <bruno@clisp.org>
20849
20850         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20851         * tests/test-acosl.c (x): New variable.
20852         (main): Store argument in x and fetch it from x.
20853         * tests/test-asinl.c (x): New variable.
20854         (main): Store argument in x and fetch it from x.
20855         * tests/test-atanl.c (x): New variable.
20856         (main): Store argument in x and fetch it from x.
20857         * tests/test-cosl.c (x): New variable.
20858         (main): Store argument in x and fetch it from x.
20859         * tests/test-expl.c (x): New variable.
20860         (main): Store argument in x and fetch it from x.
20861         * tests/test-logl.c (x): New variable.
20862         (main): Store argument in x and fetch it from x.
20863         * tests/test-sinl.c (x): New variable.
20864         (main): Store argument in x and fetch it from x.
20865         * tests/test-sqrtl.c (x): New variable.
20866         (main): Store argument in x and fetch it from x.
20867         * tests/test-tanl.c (x): New variable.
20868         (main): Store argument in x and fetch it from x.
20869
20870 2010-01-24  Bruno Haible  <bruno@clisp.org>
20871
20872         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20873         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20874         assignments to the initial TESTS_ENVIRONMENT.
20875         * doc/gnulib.texi (Unit test modules): Document it.
20876         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20877         TESTS_ENVIRONMENT.
20878         * modules/btowc-tests (Makefile.am): Likewise.
20879         * modules/c-stack-tests (Makefile.am): Likewise.
20880         * modules/c-strcase-tests (Makefile.am): Likewise.
20881         * modules/copy-file-tests (Makefile.am): Likewise.
20882         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20883         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20884         * modules/mbrtowc-tests (Makefile.am): Likewise.
20885         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20886         * modules/mbscasestr-tests (Makefile.am): Likewise.
20887         * modules/mbschr-tests (Makefile.am): Likewise.
20888         * modules/mbscspn-tests (Makefile.am): Likewise.
20889         * modules/mbsinit-tests (Makefile.am): Likewise.
20890         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20891         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20892         * modules/mbspbrk-tests (Makefile.am): Likewise.
20893         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20894         * modules/mbsrchr-tests (Makefile.am): Likewise.
20895         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20896         * modules/mbsspn-tests (Makefile.am): Likewise.
20897         * modules/mbsstr-tests (Makefile.am): Likewise.
20898         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20899         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20900         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20901         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20902         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20903         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20904         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20905         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20906         * modules/wcrtomb-tests (Makefile.am): Likewise.
20907         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20908         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20909         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20910         assignments from TESTS_ENVIRONMENT.
20911         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20912         augmentation.
20913         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20914         * modules/atexit-tests (Makefile.am): Likewise.
20915         * modules/binary-io-tests (Makefile.am): Likewise.
20916         * modules/closein-tests (Makefile.am): Likewise.
20917         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20918         * modules/exclude-tests (Makefile.am): Likewise.
20919         * modules/fflush-tests (Makefile.am): Likewise.
20920         * modules/fpending-tests (Makefile.am): Likewise.
20921         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20922         * modules/freadahead-tests (Makefile.am): Likewise.
20923         * modules/freadptr-tests (Makefile.am): Likewise.
20924         * modules/freadseek-tests (Makefile.am): Likewise.
20925         * modules/fseek-tests (Makefile.am): Likewise.
20926         * modules/fseeko-tests (Makefile.am): Likewise.
20927         * modules/ftell-tests (Makefile.am): Likewise.
20928         * modules/ftello-tests (Makefile.am): Likewise.
20929         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20930         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20931         * modules/lseek-tests (Makefile.am): Likewise.
20932         * modules/parse-duration-tests (Makefile.am): Likewise.
20933         * modules/perror-tests (Makefile.am): Likewise.
20934         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20935         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20936         * modules/pipe-tests (Makefile.am): Likewise.
20937         * modules/pread-tests (Makefile.am): Likewise.
20938         * modules/printf-posix-tests (Makefile.am): Likewise.
20939         * modules/select-tests (Makefile.am): Likewise.
20940         * modules/sigpipe-tests (Makefile.am): Likewise.
20941         * modules/tsearch-tests (Makefile.am): Likewise.
20942         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20943         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20944         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20945         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20946         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20947         * modules/version-etc-tests (Makefile.am): Likewise.
20948         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20949         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20950         * modules/xalloc-die-tests (Makefile.am): Likewise.
20951         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20952         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20953         * modules/xstrtol-tests (Makefile.am): Likewise.
20954         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20955         * modules/yesno-tests (Makefile.am): Likewise.
20956         Suggested by Jim Meyering.
20957
20958 2010-01-24  Bruno Haible  <bruno@clisp.org>
20959
20960         More documentation.
20961         * doc/gnulib.texi (Writing modules): New chapter.
20962         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20963         the new chapter.
20964
20965 2010-01-24  Jim Meyering  <meyering@redhat.com>
20966
20967         maint.mk: do not prepend "./" after filtering
20968         * top/maint.mk (_prepend_srcdir_prefix): New variable
20969         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20970         "./" when $(srcdir) is ".".
20971
20972         define STREQ(a,b) consistently, removing useless parentheses
20973         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20974         since the only risk is that "a" or "b" contains an unparenthesized
20975         comma, but if either did that, STREQ would have 3 or more arguments.
20976         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20977         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20978         * lib/hash-triple.c (STREQ): Likewise.
20979         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20980         * lib/getugroups.c (STREQ): Likewise.
20981
20982 2010-01-23  Jim Meyering  <meyering@redhat.com>
20983
20984         maint.mk: fix syntax-check in a non-srcdir build directory
20985         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20986         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20987
20988 2010-01-22  Jim Meyering  <meyering@redhat.com>
20989
20990         userspec: add unit tests
20991         * tests/test-userspec.c: New file.
20992         * modules/userspec-tests: Likewise.
20993
20994 2010-01-21  Jim Meyering  <meyering@redhat.com>
20995
20996         maint.mk: handle source file names containing "." robustly
20997         * top/maint.mk (_dot_escaped_srcdir): Define.
20998         (VC_LIST): Use it in LHS of sed substitution.
20999
21000 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21001
21002         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21003         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21004         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21005         from a non-srcdir build.
21006
21007 2010-01-20  Eric Blake  <ebb9@byu.net>
21008
21009         warn-on-use: use instead of link-warning
21010         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21011         * modules/unistd (Depends-on, Makefile.am): Likewise.
21012         * modules/arpa_inet (Depends-on): Replace link-warning with
21013         warn-on-use.
21014         (Makefile.am): Update rules accordingly.
21015         * modules/ctype (Depends-on, Makefile.am): Likewise.
21016         * modules/dirent (Depends-on, Makefile.am): Likewise.
21017         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21018         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21019         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21020         * modules/locale (Depends-on, Makefile.am): Likewise.
21021         * modules/math (Depends-on, Makefile.am): Likewise.
21022         * modules/search (Depends-on, Makefile.am): Likewise.
21023         * modules/signal (Depends-on, Makefile.am): Likewise.
21024         * modules/spawn (Depends-on, Makefile.am): Likewise.
21025         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21026         * modules/string (Depends-on, Makefile.am): Likewise.
21027         * modules/strings (Depends-on, Makefile.am): Likewise.
21028         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21029         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21030         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21031         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21032         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21033         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21034         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21035         * modules/wchar (Depends-on, Makefile.am): Likewise.
21036         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21037         should be poisoned.
21038         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21039         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21040         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21041         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21042         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21043         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21044         * m4/math_h.m4 (gl_MATH_H): Likewise.
21045         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21046         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21047         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21048         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21049         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21050         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21051         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21052         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21053         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21056         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21057         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21058         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21059         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21060         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21061         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21062         GL_LINK_WARNING.
21063         * lib/ctype.in.h: Likewise.
21064         * lib/dirent.in.h: Likewise.
21065         * lib/fcntl.in.h: Likewise.
21066         * lib/inttypes.in.h: Likewise.
21067         * lib/langinfo.in.h: Likewise.
21068         * lib/locale.in.h: Likewise.
21069         * lib/math.in.h: Likewise.
21070         * lib/search.in.h: Likewise.
21071         * lib/signal.in.h: Likewise.
21072         * lib/spawn.in.h: Likewise.
21073         * lib/stdio.in.h: Likewise.
21074         * lib/stdlib.in.h: Likewise.
21075         * lib/string.in.h: Likewise.
21076         * lib/strings.in.h: Likewise.
21077         * lib/sys_file.in.h: Likewise.
21078         * lib/sys_ioctl.in.h: Likewise.
21079         * lib/sys_select.in.h: Likewise.
21080         * lib/sys_socket.in.h: Likewise.
21081         * lib/sys_stat.in.h: Likewise.
21082         * lib/sys_times.in.h: Likewise.
21083         * lib/sys_utsname.in.h: Likewise.
21084         * lib/unistd.in.h: Likewise.
21085         * lib/wchar.in.h: Likewise.
21086
21087 2010-01-20  Bruno Haible  <bruno@clisp.org>
21088
21089         Avoid duplicate -lm.
21090         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21091         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21092         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21093         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21094         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21095         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21096         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21097         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21098         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21099         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21100         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21101         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21102         Reported by Paolo Bonzini.
21103
21104 2010-01-19  Bruno Haible  <bruno@clisp.org>
21105
21106         langinfo, nl_langinfo: Relicense under LGPLv2+.
21107         * modules/langinfo (License): Change to LGPLv2+.
21108         * modules/nl_langinfo (License): Likewise.
21109         Patch by David Lutterkort <lutter@redhat.com>.
21110
21111 2010-01-19  Bruno Haible  <bruno@clisp.org>
21112
21113         Avoid compilation error with cc on OSF/1 5.1.
21114         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21115         statement, not before.
21116         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21117
21118 2010-01-18  Bruno Haible  <bruno@clisp.org>
21119
21120         Avoid a link error due to the __printf__ symbol.
21121         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21122         and 2.6.x.
21123         (__format__, __printf__): Remove definitions.
21124         * lib/argp-fmtstream.h: Likewise.
21125         * lib/argp.h: Likewise.
21126         * lib/error.h: Likewise.
21127         * lib/vasnprintf.h: Likewise.
21128         * lib/xprintf.h: Likewise.
21129         * lib/xvasprintf.h: Likewise.
21130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21131
21132 2010-01-18  Bruno Haible  <bruno@clisp.org>
21133
21134         Tests for module 'tanl'.
21135         * modules/tanl-tests: New file.
21136         * tests/test-tanl.c: New file.
21137
21138         Tests for module 'sqrtl'.
21139         * modules/sqrtl-tests: New file.
21140         * tests/test-sqrtl.c: New file.
21141
21142         Tests for module 'sinl'.
21143         * modules/sinl-tests: New file.
21144         * tests/test-sinl.c: New file.
21145
21146         Tests for module 'logl'.
21147         * modules/logl-tests: New file.
21148         * tests/test-logl.c: New file.
21149
21150         Tests for module 'expl'.
21151         * modules/expl-tests: New file.
21152         * tests/test-expl.c: New file.
21153
21154         Tests for module 'cosl'.
21155         * modules/cosl-tests: New file.
21156         * tests/test-cosl.c: New file.
21157
21158         Tests for module 'atanl'.
21159         * modules/atanl-tests: New file.
21160         * tests/test-atanl.c: New file.
21161
21162         Tests for module 'asinl'.
21163         * modules/asinl-tests: New file.
21164         * tests/test-asinl.c: New file.
21165
21166         Tests for module 'acosl'.
21167         * modules/acosl-tests: New file.
21168         * tests/test-acosl.c: New file.
21169
21170         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21171         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21172         tanl): Use the standard gnulib idiom.
21173         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21174         * lib/sinl.c: Likewise.
21175         * lib/tanl.c: Don't include trigl.c.
21176         (kernel_tanl): Make static.
21177         * lib/sincosl.c: Include trigl.h first.
21178         * lib/trigl.c: Likewise.
21179         * m4/acosl.m4: New file.
21180         * m4/asinl.m4: New file.
21181         * m4/atanl.m4: New file.
21182         * m4/cosl.m4: New file.
21183         * m4/expl.m4: New file.
21184         * m4/logl.m4: New file.
21185         * m4/sinl.m4: New file.
21186         * m4/sqrtl.m4: New file.
21187         * m4/tanl.m4: New file.
21188         * m4/mathl.m4: Remove file.
21189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21190         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21191         Don't initialize GNULIB_MATHL.
21192         * modules/acosl: New file.
21193         * modules/asinl: New file.
21194         * modules/atanl: New file.
21195         * modules/cosl: New file.
21196         * modules/expl: New file.
21197         * modules/logl: New file.
21198         * modules/sinl: New file.
21199         * modules/sqrtl: New file.
21200         * modules/tanl: New file.
21201         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21202         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21203         substitute GNULIB_MATHL.
21204         * modules/mathl: Rewritten.
21205         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21206         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21207         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21208         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21209         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21210         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21211         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21212         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21213         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21214
21215 2010-01-18  Bruno Haible  <bruno@clisp.org>
21216
21217         sqrt: Make gl_FUNC_SQRT requirable.
21218         * m4/sqrt.m4: New file.
21219         * modules/sqrt (Files): Add it.
21220         (configure.ac): Invoke gl_FUNC_SQRT.
21221
21222 2010-01-18  Bruno Haible  <bruno@clisp.org>
21223
21224         New modules for common <math.h> functions.
21225         * m4/mathfunc.m4: New file.
21226         * modules/acos: New file.
21227         * modules/asin: New file.
21228         * modules/atan: New file.
21229         * modules/atan2: New file.
21230         * modules/cbrt: New file.
21231         * modules/copysign: New file.
21232         * modules/cos: New file.
21233         * modules/cosh: New file.
21234         * modules/erf: New file.
21235         * modules/erfc: New file.
21236         * modules/exp: New file.
21237         * modules/fabs: New file.
21238         * modules/fmod: New file.
21239         * modules/hypot: New file.
21240         * modules/j0: New file.
21241         * modules/j1: New file.
21242         * modules/jn: New file.
21243         * modules/ldexp: New file.
21244         * modules/lgamma: New file.
21245         * modules/log: New file.
21246         * modules/log10: New file.
21247         * modules/log1p: New file.
21248         * modules/logb: New file.
21249         * modules/modf: New file.
21250         * modules/nextafter: New file.
21251         * modules/pow: New file.
21252         * modules/remainder: New file.
21253         * modules/rint: New file.
21254         * modules/sin: New file.
21255         * modules/sinh: New file.
21256         * modules/sqrt: New file.
21257         * modules/tan: New file.
21258         * modules/tanh: New file.
21259         * modules/y0: New file.
21260         * modules/y1: New file.
21261         * modules/yn: New file.
21262         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21263         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21264         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21265         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21266         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21267         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21268         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21269         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21270         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21271         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21272         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21273         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21274         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21275         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21276         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21277         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21278         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21279         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21280         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21281         * doc/posix-functions/log.texi: Mention the 'log' module.
21282         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21283         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21284         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21285         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21286         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21287         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21288         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21289         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21290         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21291         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21292         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21293         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21294         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21295         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21296         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21297         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21298
21299 2010-01-18  Jim Meyering  <meyering@redhat.com>
21300
21301         ignore-value: relax license to LGPLv2+
21302         * modules/ignore-value (License): Relax to LGPLv2+.
21303
21304         getdate: don't leak when TZ contains two or more '"'s
21305         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21306         double quote in TZ after the first one.
21307
21308         readtokens: do not leak internal token_lengths buffer
21309         * lib/readtokens.c (readtokens): Free the local, lengths,
21310         when the supplied "token_lengths" parameter is NULL.
21311
21312 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21313
21314         Fix a couple of missing LIBTHREAD link failures on AIX.
21315         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21316         $(LIBTHREAD).
21317         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21318
21319         Link test-poll against INET_PTON_LIB.
21320         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21321         for inet_pton on Solaris 10.
21322
21323 2010-01-17  Bruno Haible  <bruno@clisp.org>
21324
21325         unistdio/*-sprintf: Fix typo in module description.
21326         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21327         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21328         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21329         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21330         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21331         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21332         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21334
21335 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21336
21337         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21338         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21339         variables in shell case patterns, for AIX and HP-UX ksh.
21340
21341         Split large sed scripts, for HP-UX sed.
21342         * modules/stdio: Split sed scripts around 50 sed commands,
21343         to avoid HP-UX limit of 99 commands, in the near future.
21344         * modules/string: Likewise.
21345         * modules/unistd: Likewise.
21346
21347         gnulib-tool: avoid writing in the current directory.
21348         * gnulib-tool (func_emit_lib_Makefile_am)
21349         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21350         not in the current directory, so concurrent gnulib-tool
21351         instances do not interfere.
21352
21353 2010-01-16  Jim Meyering  <meyering@redhat.com>
21354
21355         doc: update users.txt
21356         * users.txt: Add grep.
21357         (diffutils, gzip): Update URLs.
21358
21359 2010-01-12  Bruno Haible  <bruno@clisp.org>
21360
21361         posix_spawn: Avoid test failure on Cygwin.
21362         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21363         characters.
21364         Reported by Simon Josefsson.
21365
21366 2010-01-12  Bruno Haible  <bruno@clisp.org>
21367
21368         * tests/test-cond.c (main): When skipping the test, show the reason.
21369
21370 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21371
21372         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21373
21374 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21375
21376         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21377         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21378
21379 2010-01-12  Eric Blake  <ebb9@byu.net>
21380
21381         build: guarantee AS_VAR_IF
21382         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21383         (gl_AS_VAR_IF): Move...
21384         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21385         Reported by Simon Josefsson.
21386
21387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21388
21389         * lib/stdio.in.h: Fix typo.
21390
21391 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21392
21393         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21394         libgpg-error.
21395
21396 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21397
21398         * tests/test-xalloc-die.sh: Use $EXEEXT.
21399
21400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21401             Bruno Haible  <bruno@clisp.org>
21402
21403         getlogin, getlogin_r: Avoid test failure.
21404         * tests/test-getlogin.c: Include <stdio.h>.
21405         (main): Skip the test when the function fails because stdin is not a
21406         tty.
21407         * tests/test-getlogin_r.c: Include <stdio.h>.
21408         (main): Skip the test when the function fails because stdin is not a
21409         tty.
21410
21411 2010-01-11  Eric Blake  <ebb9@byu.net>
21412
21413         tests: avoid more large file warnings
21414         * tests/test-fflush.c: Avoid warning about ftell use.
21415         * tests/test-fseek.c: Avoid warning about fseek use.
21416
21417 2010-01-10  Bruno Haible  <bruno@clisp.org>
21418
21419         nproc: Work better on Linux when /proc and /sys are not mounted.
21420         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21421         as lower bound when, on glibc/Linux systems,
21422         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21423         Suggested by Pádraig Brady <P@draigbrady.com>.
21424         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21425
21426         nproc: Refactor.
21427         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21428         extracted from num_processors.
21429         (num_processors): Call it.
21430
21431 2010-01-11  Jim Meyering  <meyering@redhat.com>
21432
21433         utimecmp: avoid new warning from upcoming gcc-4.5.0
21434         * lib/utimecmp.c (BILLION): Define using #define rather than an
21435         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21436
21437 2010-01-11  Eric Blake  <ebb9@byu.net>
21438
21439         math: add portability warnings for classification macros
21440         * modules/math (Depends-on): Add warn-on-use.
21441         (Makefile.am): Provide new substitutions.
21442         * m4/math_h.m4 (gl_MATH_H): Require inline.
21443         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21444         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21445         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21446         implement warnings.
21447
21448         unistd: warn on use of environ without module
21449         * modules/unistd (Depends-on): Add warn-on-use.
21450         (Makefile.am): Provide new substitutions.
21451         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21452         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21453
21454         stdio: warn on suspicious uses
21455         * modules/stdio (Depends-on): Add warn-on-use.
21456         (Makefile.am): Provide new substitutions.
21457         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21458         fseeko.
21459         * lib/stdio.in.h (gets): Always warn on use.
21460         (fseek, ftell): Adjust when warnings are issued, and honor
21461         _GL_NO_LARGE_FILES as a way to silence the warning.
21462         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21463         any warning about large file offsets.
21464         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21465         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21466         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21467         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21468         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21469         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21470         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21471         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21472
21473         warn-on-use: new module
21474         * modules/warn-on-use: New file.
21475         * build-aux/warn-on-use.h: Likewise.
21476         * m4/warn-on-use.m4: Likewise.
21477         * MODULES.html.sh (Support for building): Mention it.
21478
21479 2010-01-10  Bruno Haible  <bruno@clisp.org>
21480
21481         Tests for module 'unistr/u32-strdup'.
21482         * modules/unistr/u32-strdup-tests: New file.
21483         * tests/unistr/test-u32-strdup.c: New file.
21484
21485         Tests for module 'unistr/u16-strdup'.
21486         * modules/unistr/u16-strdup-tests: New file.
21487         * tests/unistr/test-u16-strdup.c: New file.
21488
21489         Tests for module 'unistr/u8-strdup'.
21490         * modules/unistr/u8-strdup-tests: New file.
21491         * tests/unistr/test-u8-strdup.c: New file.
21492         * tests/unistr/test-strdup.h: New file.
21493
21494         Tests for module 'unistr/u32-strncmp'.
21495         * modules/unistr/u32-strncmp-tests: New file.
21496         * tests/unistr/test-u32-strncmp.c: New file.
21497
21498         Tests for module 'unistr/u16-strncmp'.
21499         * modules/unistr/u16-strncmp-tests: New file.
21500         * tests/unistr/test-u16-strncmp.c: New file.
21501
21502         Tests for module 'unistr/u8-strncmp'.
21503         * modules/unistr/u8-strncmp-tests: New file.
21504         * tests/unistr/test-u8-strncmp.c: New file.
21505         * tests/unistr/test-strncmp.h: New file.
21506
21507         Tests for module 'unistr/u32-strcoll'.
21508         * modules/unistr/u32-strcoll-tests: New file.
21509         * tests/unistr/test-u32-strcoll.c: New file.
21510
21511         Tests for module 'unistr/u16-strcoll'.
21512         * modules/unistr/u16-strcoll-tests: New file.
21513         * tests/unistr/test-u16-strcoll.c: New file.
21514
21515         Tests for module 'unistr/u8-strcoll'.
21516         * modules/unistr/u8-strcoll-tests: New file.
21517         * tests/unistr/test-u8-strcoll.c: New file.
21518
21519         Tests for module 'unistr/u32-strcmp'.
21520         * modules/unistr/u32-strcmp-tests: New file.
21521         * tests/unistr/test-u32-strcmp.c: New file.
21522         * tests/unistr/test-u32-strcmp.h: New file.
21523
21524         Tests for module 'unistr/u16-strcmp'.
21525         * modules/unistr/u16-strcmp-tests: New file.
21526         * tests/unistr/test-u16-strcmp.c: New file.
21527         * tests/unistr/test-u16-strcmp.h: New file.
21528
21529         Tests for module 'unistr/u8-strcmp'.
21530         * modules/unistr/u8-strcmp-tests: New file.
21531         * tests/unistr/test-u8-strcmp.c: New file.
21532         * tests/unistr/test-u8-strcmp.h: New file.
21533         * tests/unistr/test-strcmp.h: New file.
21534
21535         Tests for module 'unistr/u32-strncat'.
21536         * modules/unistr/u32-strncat-tests: New file.
21537         * tests/unistr/test-u32-strncat.c: New file.
21538
21539         Tests for module 'unistr/u16-strncat'.
21540         * modules/unistr/u16-strncat-tests: New file.
21541         * tests/unistr/test-u16-strncat.c: New file.
21542
21543         Tests for module 'unistr/u8-strncat'.
21544         * modules/unistr/u8-strncat-tests: New file.
21545         * tests/unistr/test-u8-strncat.c: New file.
21546         * tests/unistr/test-strncat.h: New file.
21547
21548         Tests for module 'unistr/u32-strcat'.
21549         * modules/unistr/u32-strcat-tests: New file.
21550         * tests/unistr/test-u32-strcat.c: New file.
21551
21552         Tests for module 'unistr/u16-strcat'.
21553         * modules/unistr/u16-strcat-tests: New file.
21554         * tests/unistr/test-u16-strcat.c: New file.
21555
21556         Tests for module 'unistr/u8-strcat'.
21557         * modules/unistr/u8-strcat-tests: New file.
21558         * tests/unistr/test-u8-strcat.c: New file.
21559         * tests/unistr/test-strcat.h: New file.
21560
21561         Tests for module 'unistr/u32-stpncpy'.
21562         * modules/unistr/u32-stpncpy-tests: New file.
21563         * tests/unistr/test-u32-stpncpy.c: New file.
21564
21565         Tests for module 'unistr/u16-stpncpy'.
21566         * modules/unistr/u16-stpncpy-tests: New file.
21567         * tests/unistr/test-u16-stpncpy.c: New file.
21568
21569         Tests for module 'unistr/u8-stpncpy'.
21570         * modules/unistr/u8-stpncpy-tests: New file.
21571         * tests/unistr/test-u8-stpncpy.c: New file.
21572         * tests/unistr/test-stpncpy.h: New file.
21573
21574         Tests for module 'unistr/u32-strncpy'.
21575         * modules/unistr/u32-strncpy-tests: New file.
21576         * tests/unistr/test-u32-strncpy.c: New file.
21577
21578         Tests for module 'unistr/u16-strncpy'.
21579         * modules/unistr/u16-strncpy-tests: New file.
21580         * tests/unistr/test-u16-strncpy.c: New file.
21581
21582         Tests for module 'unistr/u8-strncpy'.
21583         * modules/unistr/u8-strncpy-tests: New file.
21584         * tests/unistr/test-u8-strncpy.c: New file.
21585         * tests/unistr/test-strncpy.h: New file.
21586
21587         Tests for module 'unistr/u32-stpcpy'.
21588         * modules/unistr/u32-stpcpy-tests: New file.
21589         * tests/unistr/test-u32-stpcpy.c: New file.
21590
21591         Tests for module 'unistr/u16-stpcpy'.
21592         * modules/unistr/u16-stpcpy-tests: New file.
21593         * tests/unistr/test-u16-stpcpy.c: New file.
21594
21595         Tests for module 'unistr/u8-stpcpy'.
21596         * modules/unistr/u8-stpcpy-tests: New file.
21597         * tests/unistr/test-u8-stpcpy.c: New file.
21598         * tests/unistr/test-stpcpy.h: New file.
21599
21600         Tests for module 'unistr/u32-strcpy'.
21601         * modules/unistr/u32-strcpy-tests: New file.
21602         * tests/unistr/test-u32-strcpy.c: New file.
21603
21604         Tests for module 'unistr/u16-strcpy'.
21605         * modules/unistr/u16-strcpy-tests: New file.
21606         * tests/unistr/test-u16-strcpy.c: New file.
21607
21608         Tests for module 'unistr/u8-strcpy'.
21609         * modules/unistr/u8-strcpy-tests: New file.
21610         * tests/unistr/test-u8-strcpy.c: New file.
21611         * tests/unistr/test-strcpy.h: New file.
21612
21613         Tests for module 'unistr/u32-strnlen'.
21614         * modules/unistr/u32-strnlen-tests: New file.
21615         * tests/unistr/test-u32-strnlen.c: New file.
21616
21617         Tests for module 'unistr/u16-strnlen'.
21618         * modules/unistr/u16-strnlen-tests: New file.
21619         * tests/unistr/test-u16-strnlen.c: New file.
21620
21621         Tests for module 'unistr/u8-strnlen'.
21622         * modules/unistr/u8-strnlen-tests: New file.
21623         * tests/unistr/test-u8-strnlen.c: New file.
21624         * tests/unistr/test-strnlen.h: New file.
21625
21626         Tests for module 'unistr/u32-strlen'.
21627         * modules/unistr/u32-strlen-tests: New file.
21628         * tests/unistr/test-u32-strlen.c: New file.
21629
21630         Tests for module 'unistr/u16-strlen'.
21631         * modules/unistr/u16-strlen-tests: New file.
21632         * tests/unistr/test-u16-strlen.c: New file.
21633
21634         Tests for module 'unistr/u8-strlen'.
21635         * modules/unistr/u8-strlen-tests: New file.
21636         * tests/unistr/test-u8-strlen.c: New file.
21637
21638         Tests for module 'unistr/u32-prev'.
21639         * modules/unistr/u32-prev-tests: New file.
21640         * tests/unistr/test-u32-prev.c: New file.
21641
21642         Tests for module 'unistr/u16-prev'.
21643         * modules/unistr/u16-prev-tests: New file.
21644         * tests/unistr/test-u16-prev.c: New file.
21645
21646         Tests for module 'unistr/u8-prev'.
21647         * modules/unistr/u8-prev-tests: New file.
21648         * tests/unistr/test-u8-prev.c: New file.
21649
21650         Tests for module 'unistr/u32-next'.
21651         * modules/unistr/u32-next-tests: New file.
21652         * tests/unistr/test-u32-next.c: New file.
21653
21654         Tests for module 'unistr/u16-next'.
21655         * modules/unistr/u16-next-tests: New file.
21656         * tests/unistr/test-u16-next.c: New file.
21657
21658         Tests for module 'unistr/u8-next'.
21659         * modules/unistr/u8-next-tests: New file.
21660         * tests/unistr/test-u8-next.c: New file.
21661
21662         Tests for module 'unistr/u32-strmbtouc'.
21663         * modules/unistr/u32-strmbtouc-tests: New file.
21664         * tests/unistr/test-u32-strmbtouc.c: New file.
21665
21666         Tests for module 'unistr/u16-strmbtouc'.
21667         * modules/unistr/u16-strmbtouc-tests: New file.
21668         * tests/unistr/test-u16-strmbtouc.c: New file.
21669
21670         Tests for module 'unistr/u8-strmbtouc'.
21671         * modules/unistr/u8-strmbtouc-tests: New file.
21672         * tests/unistr/test-u8-strmbtouc.c: New file.
21673
21674         Tests for module 'unistr/u32-strmblen'.
21675         * modules/unistr/u32-strmblen-tests: New file.
21676         * tests/unistr/test-u32-strmblen.c: New file.
21677
21678         Tests for module 'unistr/u16-strmblen'.
21679         * modules/unistr/u16-strmblen-tests: New file.
21680         * tests/unistr/test-u16-strmblen.c: New file.
21681
21682         Tests for module 'unistr/u8-strmblen'.
21683         * modules/unistr/u8-strmblen-tests: New file.
21684         * tests/unistr/test-u8-strmblen.c: New file.
21685
21686         Tests for module 'unistr/u32-cpy-alloc'.
21687         * modules/unistr/u32-cpy-alloc-tests: New file.
21688         * tests/unistr/test-u32-cpy-alloc.c: New file.
21689
21690         Tests for module 'unistr/u16-cpy-alloc'.
21691         * modules/unistr/u16-cpy-alloc-tests: New file.
21692         * tests/unistr/test-u16-cpy-alloc.c: New file.
21693
21694         Tests for module 'unistr/u8-cpy-alloc'.
21695         * modules/unistr/u8-cpy-alloc-tests: New file.
21696         * tests/unistr/test-u8-cpy-alloc.c: New file.
21697         * tests/unistr/test-cpy-alloc.h: New file.
21698
21699         Tests for module 'unistr/u32-mbsnlen'.
21700         * modules/unistr/u32-mbsnlen-tests: New file.
21701         * tests/unistr/test-u32-mbsnlen.c: New file.
21702
21703         Tests for module 'unistr/u16-mbsnlen'.
21704         * modules/unistr/u16-mbsnlen-tests: New file.
21705         * tests/unistr/test-u16-mbsnlen.c: New file.
21706
21707         Tests for module 'unistr/u8-mbsnlen'.
21708         * modules/unistr/u8-mbsnlen-tests: New file.
21709         * tests/unistr/test-u8-mbsnlen.c: New file.
21710
21711         Tests for module 'unistr/u32-chr'.
21712         * modules/unistr/u32-chr-tests: New file.
21713         * tests/unistr/test-u32-chr.c: New file.
21714
21715         Tests for module 'unistr/u16-chr'.
21716         * modules/unistr/u16-chr-tests: New file.
21717         * tests/unistr/test-u16-chr.c: New file.
21718
21719         Tests for module 'unistr/u8-chr'.
21720         * modules/unistr/u8-chr-tests: New file.
21721         * tests/unistr/test-u8-chr.c: New file.
21722         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21723
21724         Tests for module 'unistr/u32-cmp2'.
21725         * modules/unistr/u32-cmp2-tests: New file.
21726         * tests/unistr/test-u32-cmp2.c: New file.
21727
21728         Tests for module 'unistr/u16-cmp2'.
21729         * modules/unistr/u16-cmp2-tests: New file.
21730         * tests/unistr/test-u16-cmp2.c: New file.
21731
21732         Tests for module 'unistr/u8-cmp2'.
21733         * modules/unistr/u8-cmp2-tests: New file.
21734         * tests/unistr/test-u8-cmp2.c: New file.
21735         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21736
21737         Tests for module 'unistr/u32-cmp'.
21738         * modules/unistr/u32-cmp-tests: New file.
21739         * tests/unistr/test-u32-cmp.c: New file.
21740
21741         Tests for module 'unistr/u16-cmp'.
21742         * modules/unistr/u16-cmp-tests: New file.
21743         * tests/unistr/test-u16-cmp.c: New file.
21744
21745         Tests for module 'unistr/u8-cmp'.
21746         * modules/unistr/u8-cmp-tests: New file.
21747         * tests/unistr/test-u8-cmp.c: New file.
21748         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21749
21750         Tests for module 'unistr/u32-set'.
21751         * modules/unistr/u32-set-tests: New file.
21752         * tests/unistr/test-u32-set.c: New file.
21753
21754         Tests for module 'unistr/u16-set'.
21755         * modules/unistr/u16-set-tests: New file.
21756         * tests/unistr/test-u16-set.c: New file.
21757
21758         Tests for module 'unistr/u8-set'.
21759         * modules/unistr/u8-set-tests: New file.
21760         * tests/unistr/test-u8-set.c: New file.
21761         * tests/unistr/test-set.h: New file.
21762
21763         Tests for module 'unistr/u32-move'.
21764         * modules/unistr/u32-move-tests: New file.
21765         * tests/unistr/test-u32-move.c: New file.
21766
21767         Tests for module 'unistr/u16-move'.
21768         * modules/unistr/u16-move-tests: New file.
21769         * tests/unistr/test-u16-move.c: New file.
21770
21771         Tests for module 'unistr/u8-move'.
21772         * modules/unistr/u8-move-tests: New file.
21773         * tests/unistr/test-u8-move.c: New file.
21774         * tests/unistr/test-move.h: New file.
21775
21776         Tests for module 'unistr/u32-cpy'.
21777         * modules/unistr/u32-cpy-tests: New file.
21778         * tests/unistr/test-u32-cpy.c: New file.
21779
21780         Tests for module 'unistr/u16-cpy'.
21781         * modules/unistr/u16-cpy-tests: New file.
21782         * tests/unistr/test-u16-cpy.c: New file.
21783
21784         Tests for module 'unistr/u8-cpy'.
21785         * modules/unistr/u8-cpy-tests: New file.
21786         * tests/unistr/test-u8-cpy.c: New file.
21787         * tests/unistr/test-cpy.h: New file.
21788
21789 2010-01-09  Bruno Haible  <bruno@clisp.org>
21790
21791         Tests for module 'unistr/u32-uctomb'.
21792         * modules/unistr/u32-uctomb-tests: New file.
21793         * tests/unistr/test-u32-uctomb.c: New file.
21794
21795         Tests for module 'unistr/u16-uctomb'.
21796         * modules/unistr/u16-uctomb-tests: New file.
21797         * tests/unistr/test-u16-uctomb.c: New file.
21798
21799         Tests for module 'unistr/u8-uctomb'.
21800         * modules/unistr/u8-uctomb-tests: New file.
21801         * tests/unistr/test-u8-uctomb.c: New file.
21802
21803         Tests for module 'unistr/u32-mbtoucr'.
21804         * modules/unistr/u32-mbtoucr-tests: New file.
21805         * tests/unistr/test-u32-mbtoucr.c: New file.
21806
21807         Tests for module 'unistr/u16-mbtoucr'.
21808         * modules/unistr/u16-mbtoucr-tests: New file.
21809         * tests/unistr/test-u16-mbtoucr.c: New file.
21810
21811         Tests for module 'unistr/u8-mbtoucr'.
21812         * modules/unistr/u8-mbtoucr-tests: New file.
21813         * tests/unistr/test-u8-mbtoucr.c: New file.
21814
21815         Tests for module 'unistr/u32-mbtouc'.
21816         * modules/unistr/u32-mbtouc-tests: New file.
21817         * tests/unistr/test-u32-mbtouc.c: New file.
21818
21819         Tests for module 'unistr/u16-mbtouc'.
21820         * modules/unistr/u16-mbtouc-tests: New file.
21821         * tests/unistr/test-u16-mbtouc.c: New file.
21822
21823         Tests for module 'unistr/u8-mbtouc'.
21824         * modules/unistr/u8-mbtouc-tests: New file.
21825         * tests/unistr/test-u8-mbtouc.c: New file.
21826
21827         Tests for module 'unistr/u32-mbtouc-unsafe'.
21828         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21829         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21830         * tests/unistr/test-u32-mbtouc.h: New file.
21831
21832         Tests for module 'unistr/u16-mbtouc-unsafe'.
21833         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21834         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21835         * tests/unistr/test-u16-mbtouc.h: New file.
21836
21837         Tests for module 'unistr/u8-mbtouc-unsafe'.
21838         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21839         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21840         * tests/unistr/test-u8-mbtouc.h: New file.
21841
21842         Tests for module 'unistr/u32-mblen'.
21843         * modules/unistr/u32-mblen-tests: New file.
21844         * tests/unistr/test-u32-mblen.c: New file.
21845
21846         Tests for module 'unistr/u16-mblen'.
21847         * modules/unistr/u16-mblen-tests: New file.
21848         * tests/unistr/test-u16-mblen.c: New file.
21849
21850         Tests for module 'unistr/u8-mblen'.
21851         * modules/unistr/u8-mblen-tests: New file.
21852         * tests/unistr/test-u8-mblen.c: New file.
21853
21854         Tests for module 'unistr/u32-to-u16'.
21855         * modules/unistr/u32-to-u16-tests: New file.
21856         * tests/unistr/test-u32-to-u16.c: New file.
21857
21858         Tests for module 'unistr/u32-to-u8'.
21859         * modules/unistr/u32-to-u8-tests: New file.
21860         * tests/unistr/test-u32-to-u8.c: New file.
21861
21862         Tests for module 'unistr/u16-to-u32'.
21863         * modules/unistr/u16-to-u32-tests: New file.
21864         * tests/unistr/test-u16-to-u32.c: New file.
21865
21866         Tests for module 'unistr/u16-to-u8'.
21867         * modules/unistr/u16-to-u8-tests: New file.
21868         * tests/unistr/test-u16-to-u8.c: New file.
21869
21870         Tests for module 'unistr/u8-to-u32'.
21871         * modules/unistr/u8-to-u32-tests: New file.
21872         * tests/unistr/test-u8-to-u32.c: New file.
21873
21874         Tests for module 'unistr/u8-to-u16'.
21875         * modules/unistr/u8-to-u16-tests: New file.
21876         * tests/unistr/test-u8-to-u16.c: New file.
21877
21878         Tests for module 'unistr/u32-check'.
21879         * modules/unistr/u32-check-tests: New file.
21880         * tests/unistr/test-u32-check.c: New file.
21881
21882         Tests for module 'unistr/u16-check'.
21883         * modules/unistr/u16-check-tests: New file.
21884         * tests/unistr/test-u16-check.c: New file.
21885
21886         Tests for module 'unistr/u8-check'.
21887         * modules/unistr/u8-check-tests: New file.
21888         * tests/unistr/test-u8-check.c: New file.
21889
21890         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21891         (category_equals): New function.
21892         (main): Add more tests.
21893         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21894
21895         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21896
21897 2010-01-10  Bruno Haible  <bruno@clisp.org>
21898
21899         unistr/u*-strcoll: Try harder to distinguish different strings.
21900         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21901         compare s1 and s2 to see if they are different.
21902
21903 2010-01-10  Bruno Haible  <bruno@clisp.org>
21904
21905         unistr/u*-stpncpy: Fix the return value.
21906         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21907         description of the return value consistent with stpncpy in glibc.
21908         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21909         written non-NUL unit.
21910
21911 2010-01-10  Bruno Haible  <bruno@clisp.org>
21912
21913         unistr/u*-next: Add missing dependencies.
21914         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21915         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21916         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21917
21918 2010-01-10  Bruno Haible  <bruno@clisp.org>
21919
21920         unistr/u8-mbsnlen: Fix return value for incomplete character.
21921         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21922         u8_mblen.
21923         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21924         Remove unistr/u8-mblen.
21925         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21926         u16_mblen.
21927         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21928         Remove unistr/u16-mblen.
21929
21930 2010-01-10  Bruno Haible  <bruno@clisp.org>
21931
21932         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21933         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21934         Reported by Brian Gough <bjg@gnu.org> and
21935         Chris Clayton <chris2553@googlemail.com> via
21936         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21937
21938 2010-01-09  Bruno Haible  <bruno@clisp.org>
21939
21940         unistr/u16-to-u32: Reject invalid input.
21941         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21942         u16_mbtouc.
21943         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21944         Remove unistr/u16-mbtouc.
21945
21946         unistr/u16-to-u8: Reject invalid input.
21947         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21948         u16_mbtouc.
21949         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21950         Remove unistr/u16-mbtouc.
21951
21952         unistr/u8-to-u32: Reject invalid input.
21953         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21954         u8_mbtouc.
21955         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21956         Remove unistr/u8-mbtouc.
21957
21958         unistr/u8-to-u16: Reject invalid input.
21959         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21960         u8_mbtouc.
21961         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21962         Remove unistr/u8-mbtouc.
21963
21964 2010-01-09  Bruno Haible  <bruno@clisp.org>
21965
21966         Tests for module 'getlogin'.
21967         * modules/getlogin-tests: New file.
21968         * tests/test-getlogin.c: New file.
21969
21970         New module 'getlogin'.
21971         * lib/unistd.in.h (getlogin): New declaration.
21972         * lib/getlogin.c: New file.
21973         * m4/getlogin.m4: New file.
21974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21975         HAVE_GETLOGIN.
21976         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21977         HAVE_GETLOGIN.
21978         * modules/getlogin: New file.
21979         * doc/posix-functions/getlogin.texi: Mention the new module.
21980         Reported by John W. Eaton <jwe@gnu.org>.
21981
21982 2010-01-09  Bruno Haible  <bruno@clisp.org>
21983
21984         getlogin_r: Support for native Windows.
21985         * lib/getlogin_r.c: Include <windows.h>
21986         (getlogin_r): Implement for native Windows.
21987         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21988         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21989         via John W. Eaton <jwe@gnu.org>.
21990
21991 2010-01-09  Bruno Haible  <bruno@clisp.org>
21992
21993         getlogin_r: Small fixes.
21994         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21995         succeeds.
21996         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21997         before testing whether getlogin_r is declared. No need to set
21998         HAVE_DECL_GETLOGIN_R to 1.
21999         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22000
22001 2010-01-09  Bruno Haible  <bruno@clisp.org>
22002
22003         * lib/unistd.in.h (getlogin_r): Add comment.
22004
22005 2010-01-09  Bruno Haible  <bruno@clisp.org>
22006
22007         Tests for module 'getlogin_r'.
22008         * modules/getlogin_r-tests: New file.
22009         * tests/test-getlogin_r.c: New file.
22010
22011 2010-01-09  Jim Meyering  <meyering@redhat.com>
22012
22013         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22014         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22015         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22016
22017 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22018
22019         * lib/dup2.c (rpl_dup2): Improve comment.
22020
22021 2010-01-08  Eric Blake  <ebb9@byu.net>
22022
22023         maint.mk: allow packages to add makefile @@ exceptions
22024         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22025         (sc_makefile_check): Rename...
22026         (sc_makefile_at_at_check): ...to this, and use hook.
22027
22028         dup2: work around mingw bug
22029         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22030         Reported by Simon Josefsson.
22031
22032 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22033
22034         glob: Fix C++ compilation.
22035         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22036         C++.
22037
22038 2010-01-07  Bruno Haible  <bruno@clisp.org>
22039
22040         Fix indentation of wctype.in.h, broken since 2007-01-06.
22041         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22042
22043 2010-01-07  Bruno Haible  <bruno@clisp.org>
22044
22045         mbslen: Avoid collision with system function.
22046         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22047         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22048         * m4/mbslen.m4: New file.
22049         * modules/mbslen (Files): Add it.
22050         (configure.ac): Invoke gl_MBSLEN.
22051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22052         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22053         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22054         via Ian Beckwith <ianb@erislabs.net>.
22055
22056 2010-01-07  Bruno Haible  <bruno@clisp.org>
22057
22058         dirent: Document the last fix.
22059         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22060
22061 2010-01-07  Bruno Haible  <bruno@clisp.org>
22062
22063         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22064         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22065         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22066         va_list are defined.
22067         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22068         Reported by Eric Blake.
22069
22070 2010-01-07  Bruno Haible  <bruno@clisp.org>
22071
22072         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22073         * modules/xlist (Depends-on): Add 'list',
22074         * modules/xoset (Depends-on): Add 'oset'.
22075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22076
22077 2010-01-07  Bruno Haible  <bruno@clisp.org>
22078
22079         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22080         * doc/posix-functions/strncasecmp.texi: Likewise.
22081
22082 2010-01-07  Bruno Haible  <bruno@clisp.org>
22083
22084         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22085
22086 2010-01-07  John W. Eaton  <jwe@octave.org>
22087
22088         wctype: allow C++ use
22089         * lib/wctype.in.h: Add extern "C" block for C++.
22090
22091 2010-01-06  Eric Blake  <ebb9@byu.net>
22092
22093         maint.mk: detect incorrect GFDL usage
22094         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22095
22096 2010-01-06  Jim Meyering  <meyering@redhat.com>
22097         and Eric Blake  <ebb9@byu.net>
22098
22099         maint.mk: ignore multi-line copyright in NEWS
22100         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22101
22102 2010-01-06  Eric Blake  <ebb9@byu.net>
22103
22104         select: add missing dependency
22105         * modules/select-tests (Depends-on): Move sockets dependency...
22106         * modules/select (Depends-on): ...here.
22107         Reported by Ian Beckwith.
22108
22109         doc: regenerate INSTALL
22110         * doc/INSTALL: Reflect recent autoconf update.
22111         * doc/INSTALL.ISO: Likewise.
22112         * doc/INSTALL.UTF-8: Likewise.
22113
22114         pread: fix compilation on glibc
22115         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22116         Reported by Ralf Wildenhues.
22117
22118         dirent: fix test failure
22119         * lib/dirent.in.h (includes): Guarantee ino_t.
22120         Reported by Ralf Wildenhues.
22121
22122 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22123
22124         linkat, renameat: avoid bad free
22125         * lib/at-func2.c (at_func2): Fix typo.
22126         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22127
22128 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22129
22130         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22131         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22132         to avoid failure of symlink test later.
22133
22134 2010-01-06  Eric Blake  <ebb9@byu.net>
22135
22136         stdio, unistd: guarantee ssize_t
22137         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22138         2008 are exposed when needed.
22139         * lib/stdio.in.h (includes): Likewise.
22140         Reported by Ralf Wildenhues.
22141
22142 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22143
22144         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22145         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22146         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22147
22148 2010-01-06  Jim Meyering  <meyering@redhat.com>
22149
22150         readtokens: this module *does* require xalloc.h
22151         It uses only functions that were omitted by the old syntax-check rule.
22152         * lib/readtokens.c: Include "xalloc.h" once again.
22153         * modules/readtokens (Depends-on): Add xalloc.
22154         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22155
22156 2010-01-05  Eric Blake  <ebb9@byu.net>
22157
22158         maint: support 'make announcement' from a VPATH build
22159         * top/maint.mk (announcement): Look for correct NEWS file.
22160
22161 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22162
22163         utimens (fdutimens): ignore a negative FD, per contract
22164         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22165         when we have a valid file descriptor.  Otherwise, using a brand
22166         new glibc (with just-patched futimens that now fails with EBADF)
22167         would cause this function to fail with ENOSYS.
22168         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22169         See also http://bugzilla.redhat.com/552320.
22170
22171 2010-01-05  Eric Blake  <ebb9@byu.net>
22172
22173         strcase: document what it provides
22174         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22175         gnulib module.
22176         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22177         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22178
22179 2010-01-05  Jim Meyering  <meyering@redhat.com>
22180
22181         maint: remove useless inclusions of "xalloc.h"
22182         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22183         * lib/readtokens.c: Likewise.
22184         * lib/same.c: Likewise.
22185         * modules/getloadavg (Depends-on): Remove xalloc.
22186         * modules/readtokens: Likewise.
22187         * modules/same: Likewise.
22188
22189         maint.mk: include 4 more function names in alloca.h-checking regexp
22190         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22191         regexp.  Before, we would give a false-positive (saying alloca.h
22192         is included unnecessarily) when the only uses involved omitted symbols.
22193
22194         xalloc.h: use consistent formatting
22195         * lib/xalloc.h: Move declarations to start in the first column.
22196
22197 2010-01-05  Eric Blake  <ebb9@byu.net>
22198
22199         mkdir: avoid xalloc
22200         * lib/mkdir.c (includes): Drop unused header.
22201         Reported by John W. Eaton.
22202
22203 2010-01-04  Jim Meyering  <meyering@redhat.com>
22204
22205         nl_langinfo: avoid configure-time syntax error
22206         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22207         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22208         the empty string.  Don't let that provoke a shell syntax error.
22209
22210         regcomp, regexec, fnmatch: avoid array bounds read error
22211         * lib/regcomp.c (build_equiv_class): From glibc:
22212         Use only the low 24 bits of a findidx return value as an index
22213         into the weights array.  Patch by Ulrich Drepper:
22214         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22215         * lib/regexec.c (check_node_accept_bytes): Likewise.
22216         * lib/fnmatch_loop.c (FCT): Likewise.
22217
22218         regcomp: skip collseq lookup when there are no rules
22219         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22220         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22221
22222         regcomp: recognize ill-formed { } expressions
22223         * lib/regcomp.c (parse_dup_op): From glibc:
22224         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22225
22226         regcomp: fix typo in comment
22227         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22228         s/satisfy/satisfies/.
22229
22230         regcomp: sync from glibc: remove dead store
22231         * lib/regcomp.c (duplicate_node_closure): Remove useless
22232         search_duplicated_node call and dead store.
22233
22234         regcomp: sync from glibc; always use nl_langinfo
22235         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22236         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22237         * modules/regex (Depends-on): Add nl_langinfo.
22238
22239 2010-01-04  Eric Blake  <ebb9@byu.net>
22240
22241         fdopendir: fix configure test
22242         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22243
22244 2010-01-01  Bruno Haible  <bruno@clisp.org>
22245
22246         wchar: Remove unused configure check.
22247         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22248
22249 2010-01-01  Eric Blake  <ebb9@byu.net>
22250
22251         headers: make check of system header explicit
22252         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22253         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22254         ourselves.
22255         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22257         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22258         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22259         internals.
22260         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22261         missing.
22262         Suggested by Bruno Haible.
22263
22264 2010-01-01  Jim Meyering  <meyering@redhat.com>
22265
22266         ChangeLog: tweak to eliminate unnecessary copyright line
22267         * ChangeLog: Remove a copyright line that was mistakenly updated
22268         by today's update-copyright run.  Reported by Eric Blake.
22269
22270         test-update-copyright: don't let envvar setting cause test failure
22271         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22272
22273 2010-01-01  Bruno Haible  <bruno@clisp.org>
22274
22275         localename: Avoid gcc warning.
22276         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22277         function if it is not used.
22278
22279 2010-01-01  Jim Meyering  <meyering@redhat.com>
22280
22281         update nearly all FSF copyright year lists to include 2010
22282         Use the same procedure as for 2009, outlined in
22283         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22284
22285         version-etc: set COPYRIGHT_YEAR to 2010
22286         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22287
22288 2009-12-31  Eric Blake  <ebb9@byu.net>
22289
22290         doc: correct availability of cygwin 1.5.x getopt
22291         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22292         variables.
22293         * doc/posix-functions/opterr.texi (opterr): Likewise.
22294         * doc/posix-functions/optind.texi (optind): Likewise.
22295         * doc/posix-functions/optopt.texi (optopt): Likewise.
22296         * doc/posix-functions/tzname.texi (tzname): Likewise.
22297
22298         openat: update maintainer
22299         * modules/openat (Maintainer): Add myself.
22300
22301         utimens: avoid shadowing warning
22302         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22303         buffers into one, to avoid shadowing, as well as avoiding a
22304         redundant stat.
22305         Reported by Jim Meyering.
22306
22307         test-dup2: avoid compiler warning
22308         * tests/test-dup2.c (is_inheritable): Only define if used.
22309
22310 2010-01-01  Bruno Haible  <bruno@clisp.org>
22311
22312         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22313         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22314         defined, use wctomb instead of wcrtomb.
22315
22316 2010-01-01  Bruno Haible  <bruno@clisp.org>
22317
22318         iconv: Reject native Solaris iconv.
22319         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22320         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22321
22322 2009-12-31  Bruno Haible  <bruno@clisp.org>
22323
22324         * tests/test-signal.c (main): Remove test of 'SIG'.
22325
22326 2009-12-31  Bruno Haible  <bruno@clisp.org>
22327
22328         spawn: Fix incomplete fix.
22329         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22330         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22331         warnings for GNULIB_POSIXCHECK again.
22332         Reported by Eric Blake.
22333
22334 2009-12-31  Bruno Haible  <bruno@clisp.org>
22335
22336         Avoid namespace pollution on glibc systems.
22337         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22338         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22339         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22340         glibc systems.
22341
22342 2009-12-31  Bruno Haible  <bruno@clisp.org>
22343
22344         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22345         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22346         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22347         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22348         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22349         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22350         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22351
22352 2009-12-31  Bruno Haible  <bruno@clisp.org>
22353
22354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22355         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22356         afterwards.
22357
22358 2009-12-31  Bruno Haible  <bruno@clisp.org>
22359
22360         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22361         SYS_UTSNAME_H.
22362
22363 2009-12-31  Bruno Haible  <bruno@clisp.org>
22364
22365         spawn: Fix misapplied patch.
22366         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22367         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22368         warnings for GNULIB_POSIXCHECK.
22369
22370 2009-12-31  Bruno Haible  <bruno@clisp.org>
22371
22372         times: Update after sys_times changed.
22373         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22374         * modules/times (Files): Add it.
22375         (configure.ac): Invoke gl_FUNC_TIMES.
22376
22377 2009-12-31  Bruno Haible  <bruno@clisp.org>
22378
22379         Use AC_C_INLINE where necessary.
22380         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22381         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22382         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22383         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22384         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22385         * m4/mbiter.m4 (gl_MBITER): Likewise.
22386         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22387         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22388         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22389         * modules/u64 (configure.ac): Likewise.
22390
22391 2009-12-31  Bruno Haible  <bruno@clisp.org>
22392
22393         Use AC_C_INLINE instead of module 'inline' where possible.
22394         * modules/inline (Description): Clarify purpose.
22395         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22396         * modules/count-one-bits (Depends-on): Remove inline.
22397         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22398         * modules/openat (Depends-on): Remove inline.
22399         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22400         instead of depending on module 'inline'.
22401         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22402         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22403         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22404         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22405         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22406         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22407         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22408         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22409         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22410         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22411         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22412         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22413         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22414         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22415         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22416         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22417         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22418         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22419         Likewise.
22420         * modules/unictype/property-ascii-hex-digit (Depends-on,
22421         configure.ac): Likewise.
22422         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22423         configure.ac): Likewise.
22424         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22425         configure.ac): Likewise.
22426         * modules/unictype/property-bidi-block-separator (Depends-on,
22427         configure.ac): Likewise.
22428         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22429         configure.ac): Likewise.
22430         * modules/unictype/property-bidi-common-separator (Depends-on,
22431         configure.ac): Likewise.
22432         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22433         Likewise.
22434         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22435         configure.ac): Likewise.
22436         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22437         configure.ac): Likewise.
22438         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22439         configure.ac): Likewise.
22440         * modules/unictype/property-bidi-european-digit (Depends-on,
22441         configure.ac): Likewise.
22442         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22443         configure.ac): Likewise.
22444         * modules/unictype/property-bidi-left-to-right (Depends-on,
22445         configure.ac): Likewise.
22446         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22447         configure.ac): Likewise.
22448         * modules/unictype/property-bidi-other-neutral (Depends-on,
22449         configure.ac): Likewise.
22450         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22451         Likewise.
22452         * modules/unictype/property-bidi-segment-separator (Depends-on,
22453         configure.ac): Likewise.
22454         * modules/unictype/property-bidi-whitespace (Depends-on,
22455         configure.ac): Likewise.
22456         * modules/unictype/property-combining (Depends-on, configure.ac):
22457         Likewise.
22458         * modules/unictype/property-composite (Depends-on, configure.ac):
22459         Likewise.
22460         * modules/unictype/property-currency-symbol (Depends-on,
22461         configure.ac): Likewise.
22462         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22463         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22464         Likewise.
22465         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22466         configure.ac): Likewise.
22467         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22468         Likewise.
22469         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22470         Likewise.
22471         * modules/unictype/property-extender (Depends-on, configure.ac):
22472         Likewise.
22473         * modules/unictype/property-format-control (Depends-on, configure.ac):
22474         Likewise.
22475         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22476         Likewise.
22477         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22478         Likewise.
22479         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22480         Likewise.
22481         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22482         Likewise.
22483         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22484         Likewise.
22485         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22486         Likewise.
22487         * modules/unictype/property-id-start (Depends-on, configure.ac):
22488         Likewise.
22489         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22490         Likewise.
22491         * modules/unictype/property-ids-binary-operator (Depends-on,
22492         configure.ac): Likewise.
22493         * modules/unictype/property-ids-trinary-operator (Depends-on,
22494         configure.ac): Likewise.
22495         * modules/unictype/property-ignorable-control (Depends-on,
22496         configure.ac): Likewise.
22497         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22498         Likewise.
22499         * modules/unictype/property-join-control (Depends-on, configure.ac):
22500         Likewise.
22501         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22502         Likewise.
22503         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22504         Likewise.
22505         * modules/unictype/property-logical-order-exception (Depends-on,
22506         configure.ac): Likewise.
22507         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22508         Likewise.
22509         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22510         * modules/unictype/property-non-break (Depends-on, configure.ac):
22511         Likewise.
22512         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22513         Likewise.
22514         * modules/unictype/property-numeric (Depends-on, configure.ac):
22515         Likewise.
22516         * modules/unictype/property-other-alphabetic (Depends-on,
22517         configure.ac): Likewise.
22518         * modules/unictype/property-other-default-ignorable-code-point
22519         (Depends-on, configure.ac): Likewise.
22520         * modules/unictype/property-other-grapheme-extend (Depends-on,
22521         configure.ac): Likewise.
22522         * modules/unictype/property-other-id-continue (Depends-on,
22523         configure.ac): Likewise.
22524         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22525         Likewise.
22526         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22527         Likewise.
22528         * modules/unictype/property-other-math (Depends-on, configure.ac):
22529         Likewise.
22530         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22531         Likewise.
22532         * modules/unictype/property-paired-punctuation (Depends-on,
22533         configure.ac): Likewise.
22534         * modules/unictype/property-paragraph-separator (Depends-on,
22535         configure.ac): Likewise.
22536         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22537         Likewise.
22538         * modules/unictype/property-pattern-white-space (Depends-on,
22539         configure.ac): Likewise.
22540         * modules/unictype/property-private-use (Depends-on, configure.ac):
22541         Likewise.
22542         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22543         Likewise.
22544         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22545         Likewise.
22546         * modules/unictype/property-radical (Depends-on, configure.ac):
22547         Likewise.
22548         * modules/unictype/property-sentence-terminal (Depends-on,
22549         configure.ac): Likewise.
22550         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22551         Likewise.
22552         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22553         * modules/unictype/property-terminal-punctuation (Depends-on,
22554         configure.ac): Likewise.
22555         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22556         Likewise.
22557         * modules/unictype/property-unassigned-code-value (Depends-on,
22558         configure.ac): Likewise.
22559         * modules/unictype/property-unified-ideograph (Depends-on,
22560         configure.ac): Likewise.
22561         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22562         Likewise.
22563         * modules/unictype/property-variation-selector (Depends-on,
22564         configure.ac): Likewise.
22565         * modules/unictype/property-white-space (Depends-on, configure.ac):
22566         Likewise.
22567         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22568         Likewise.
22569         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22570         Likewise.
22571         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22572         Likewise.
22573         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22574         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22575         Likewise.
22576
22577 2009-12-31  Bruno Haible  <bruno@clisp.org>
22578
22579         Remove unnecessary AC_C_INLINE invocation.
22580         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22581         since 2009-08-21.
22582
22583 2009-12-31  Jim Meyering  <meyering@redhat.com>
22584
22585         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22586         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22587         With this change, we can all remove the gpg_key_ID = ... definition
22588         from our respective cfg.mk files.
22589
22590         maint.mk: create announcement template in ~/, not in /tmp
22591         * top/maint.mk (emit_upload_commands): Adjust.
22592         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22593         Remove temporary file, .ci-msg.
22594
22595 2009-12-31  Eric Blake  <ebb9@byu.net>
22596
22597         link-warning: always build headers with link warnings
22598         * modules/arpa_inet (Makefile.am): Always build replacement
22599         header.
22600         * modules/ctype (Makefile.am): Likewise.
22601         * modules/dirent (Makefile.am): Likewise.
22602         * modules/inttypes (Makefile.am): Likewise.
22603         * modules/langinfo (Makefile.am): Likewise.
22604         * modules/locale (Makefile.am): Likewise.
22605         * modules/spawn (Makefile.am): Likewise.
22606         * modules/sys_file (Makefile.am): Likewise.
22607         * modules/sys_ioctl (Makefile.am): Likewise.
22608         * modules/sys_select (Makefile.am): Likewise.
22609         * modules/sys_socket (Makefile.am): Likewise.
22610         * modules/sys_times (Makefile.am): Likewise.
22611         * modules/sys_utsname (Makefile.am): Likewise.
22612         * modules/sys_wait (Makefile.am): Likewise.
22613         * modules/wchar (Makefile.am): Likewise.
22614         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22615         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22616         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22617         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22618         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22619         Likewise.
22620         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22621         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22622         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22623         Likewise.
22624         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22625         Likewise.
22626         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22628         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22629         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22630         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22631         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22632         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22633         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22634         (gl_WCHAR_H_DEFAULTS): Likewise.
22635
22636 2009-12-31  Eric Blake  <ebb9@byu.net>
22637
22638         signal, spawn: use link warnings
22639         * lib/signal.in.h (sigset_t): Make unconditional.
22640         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22641         (sigpending, sigprocmask, sigaction): Add link warnings.
22642         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22643         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22644         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22645         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22646         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22647         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22648         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22649         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22650         (posix_spawn_file_actions_destroy)
22651         (posix_spawn_file_actions_addopen)
22652         (posix_spawn_file_actions_addclose)
22653         (posix_spawn_file_actions_adddup2): Likewise.
22654         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22655         * tests/test-signal.c (main): Enhance test.
22656
22657         spawn: improve wrapper support
22658         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22659         (gl_SPAWN_H_DEFAULTS): New defaults.
22660         * modules/spawn (Makefile.am): Substitute them.
22661         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22662         Only declare if missing or broken.
22663
22664         sys_times, sys_utsname: use include_next
22665         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22666         header.
22667         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22669         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22670         * modules/sys_times (Depends-on): Add include_next.
22671         (Makefile.am): Substitute additional values.
22672         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22673         * lib/sys_times.in.h (includes): Include native header, if
22674         available.
22675         * lib/sys_utsname.in.h (includes): Likewise.
22676         * tests/test-sys_times.c (main): Enhance test.
22677
22678         fdutimensat: revert prior patch
22679         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22680         utimens.h.
22681         Reported by Bruno Haible.
22682
22683 2009-12-30  Eric Blake  <ebb9@byu.net>
22684
22685         sys_wait: drop link-warning dependency
22686         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22687         link-warning efforts.
22688         * lib/sys_wait.in.h: Likewise.
22689
22690         fdutimensat: remove bogus dependency
22691         * modules/fdutimensat (Depends-on): Drop inline.
22692
22693         unistd: fix typo
22694         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22695
22696 2009-12-30  Bruno Haible  <bruno@clisp.org>
22697
22698         Fix compilation error with Solaris cc.
22699         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22700         * lib/unicase/u16-is-invariant.c: Likewise.
22701         * lib/unicase/u32-is-invariant.c: Likewise.
22702         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22703
22704 2009-12-30  Bruno Haible  <bruno@clisp.org>
22705
22706         Fix test crash.
22707         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22708         locales.
22709         Reported by Simon Josefsson <simon@josefsson.org>.
22710
22711 2009-12-30  Bruno Haible  <bruno@clisp.org>
22712
22713         Fix compilation error on most platforms.
22714         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22715         Reported by Simon Josefsson <simon@josefsson.org>
22716         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22717
22718 2009-12-30  Eric Blake  <ebb9@byu.net>
22719
22720         futimens, utimensat: work around ntfs-3g bug
22721         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22722         a ctime bug is present, and expand workaround to cover ntfs-3g.
22723         * lib/utimens.c (fdutimens, lutimens): Likewise.
22724         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22725         (validate_timespec): Adjust return value.
22726         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22727         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22728         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22729
22730 2009-12-29  Eric Blake  <ebb9@byu.net>
22731
22732         link-warning: make usage consistent
22733         * modules/ctype (Depends-on): Add link-warning.
22734         (Makefile.am): Update rules accordingly.
22735         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22736         * modules/locale (Depends-on, Makefile.am): Likewise.
22737         * modules/sys_file (Makefile.am): Likewise.
22738         * modules/getopt-posix (Makefile.am): Delete unused link warning
22739         efforts.
22740         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22741         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22742         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22743         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22744
22745         stdio: remove unused variables
22746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22747         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22748         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22749
22750         tests: test more substitute headers
22751         * modules/ctype-tests: New file.
22752         * modules/dirent-tests: Likewise.
22753         * modules/spawn-tests: Likewise.
22754         * modules/sys_file-tests: Likewise.
22755         * modules/sys_ioctl-tests: Likewise.
22756         * modules/sys_wait-tests: Likewise.
22757         * tests/test-ctype.c: Likewise.
22758         * tests/test-dirent.c: Likewise.
22759         * tests/test-spawn.c: Likewise.
22760         * tests/test-sys_file.c: Likewise.
22761         * tests/test-sys_ioctl.c: Likewise.
22762         * tests/test-sys_wait.c: Likewise.
22763         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22764         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22765         whether or not flock is in use.
22766
22767         tests: remove License section from module
22768         * modules/arpa_inet-tests: Remove unneeded section.
22769         * modules/byteswap-tests: Likewise.
22770         * modules/ceilf-tests: Likewise.
22771         * modules/ceill-tests: Likewise.
22772         * modules/crypto/des-tests: Likewise.
22773         * modules/crypto/gc-arcfour-tests: Likewise.
22774         * modules/crypto/gc-arctwo-tests: Likewise.
22775         * modules/crypto/gc-des-tests: Likewise.
22776         * modules/crypto/gc-hmac-md5-tests: Likewise.
22777         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22778         * modules/crypto/gc-md2-tests: Likewise.
22779         * modules/crypto/gc-md4-tests: Likewise.
22780         * modules/crypto/gc-md5-tests: Likewise.
22781         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22782         * modules/crypto/gc-rijndael-tests: Likewise.
22783         * modules/crypto/gc-sha1-tests: Likewise.
22784         * modules/crypto/gc-tests: Likewise.
22785         * modules/crypto/md2-tests: Likewise.
22786         * modules/crypto/md4-tests: Likewise.
22787         * modules/fcntl-h-tests: Likewise.
22788         * modules/floorf-tests: Likewise.
22789         * modules/floorl-tests: Likewise.
22790         * modules/frexp-nolibm-tests: Likewise.
22791         * modules/frexp-tests: Likewise.
22792         * modules/frexpl-nolibm-tests: Likewise.
22793         * modules/frexpl-tests: Likewise.
22794         * modules/getaddrinfo-tests: Likewise.
22795         * modules/inttypes-tests: Likewise.
22796         * modules/isfinite-tests: Likewise.
22797         * modules/isinf-tests: Likewise.
22798         * modules/ldexpl-tests: Likewise.
22799         * modules/locale-tests: Likewise.
22800         * modules/math-tests: Likewise.
22801         * modules/netdb-tests: Likewise.
22802         * modules/netinet_in-tests: Likewise.
22803         * modules/printf-frexp-tests: Likewise.
22804         * modules/printf-frexpl-tests: Likewise.
22805         * modules/priv-set-tests: Likewise.
22806         * modules/random_r-tests: Likewise.
22807         * modules/round-tests: Likewise.
22808         * modules/roundf-tests: Likewise.
22809         * modules/roundl-tests: Likewise.
22810         * modules/search-tests: Likewise.
22811         * modules/select-tests: Likewise.
22812         * modules/signal-tests: Likewise.
22813         * modules/stdbool-tests: Likewise.
22814         * modules/stddef-tests: Likewise.
22815         * modules/stdint-tests: Likewise.
22816         * modules/stdio-tests: Likewise.
22817         * modules/stdlib-tests: Likewise.
22818         * modules/string-tests: Likewise.
22819         * modules/strings-tests: Likewise.
22820         * modules/sys_select-tests: Likewise.
22821         * modules/sys_socket-tests: Likewise.
22822         * modules/sys_stat-tests: Likewise.
22823         * modules/sys_time-tests: Likewise.
22824         * modules/sys_utsname-tests: Likewise.
22825         * modules/sysexits-tests: Likewise.
22826         * modules/time-tests: Likewise.
22827         * modules/trunc-tests: Likewise.
22828         * modules/truncf-tests: Likewise.
22829         * modules/truncl-tests: Likewise.
22830         * modules/tsearch-tests: Likewise.
22831         * modules/unistd-tests: Likewise.
22832         * modules/wchar-tests: Likewise.
22833         * modules/wctype-tests: Likewise.
22834
22835         tests: fix license on several tests
22836         * tests/test-des.c: Update to GPLv3+.
22837         * tests/test-flock.c: Likewise.
22838         * tests/test-fsync.c: Likewise.
22839         * tests/test-futimens.h: Likewise.
22840         * tests/test-gc-arcfour.c: Likewise.
22841         * tests/test-gc-arctwo.c: Likewise.
22842         * tests/test-gc-des.c: Likewise.
22843         * tests/test-gc-hmac-md5.c: Likewise.
22844         * tests/test-gc-hmac-sha1.c: Likewise.
22845         * tests/test-gc-md2.c: Likewise.
22846         * tests/test-gc-md4.c: Likewise.
22847         * tests/test-gc-md5.c: Likewise.
22848         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22849         * tests/test-gc-rijndael.c: Likewise.
22850         * tests/test-gc-sha1.c: Likewise.
22851         * tests/test-gc.c: Likewise.
22852         * tests/test-getcwd.c: Likewise.
22853         * tests/test-link.c: Likewise.
22854         * tests/test-link.h: Likewise.
22855         * tests/test-lutimens.h: Likewise.
22856         * tests/test-md2.c: Likewise.
22857         * tests/test-md4.c: Likewise.
22858         * tests/test-mkdir.h: Likewise.
22859         * tests/test-rename.c: Likewise.
22860         * tests/test-rename.h: Likewise.
22861         * tests/test-safe-alloc.c: Likewise.
22862         * tests/test-utimens-common.h: Likewise.
22863         * tests/test-utimens.h: Likewise.
22864
22865         maint: sync license texts
22866         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22867         * doc/gpl-3.0.texi: Revert copyright year update.
22868         * doc/lgpl-3.0.texi: Likewise.
22869
22870 2009-12-29  Jim Meyering  <meyering@redhat.com>
22871
22872         update nearly all FSF copyright year lists to include 2009
22873         The files named by the following are exempted:
22874             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22875               test -f "$dst" && { echo "$dst"; continue; }
22876               test -d "$dst" || continue
22877               echo "$dst"/$(basename "$src")
22878             done > exempt
22879             git ls-files tests/unictype >> exempt
22880         In the remaining files, convert to all-interval notation if
22881         - there is already at least one year interval like 2000-2003
22882         - the file is maintained by me
22883         - the file is in lib/uni*/, where that style already prevails
22884         Otherwise, use update-copyright's default.
22885
22886 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22887         and Eric Blake  <ebb9@byu.net>
22888
22889         tests: don't require debug system() to pass
22890         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22891         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22892         * tests/test-unlink.h (test_unlink_func): Likewise.
22893         * tests/test-fstatat.c (main): ...into callers.
22894         * tests/test-lstat.c (main): Likewise.
22895         * tests/test-rmdir.c (main): Likewise.
22896         * tests/test-unlink.c (main): Likewise.
22897         * tests/test-unlinkat.c (main): Likewise.
22898         * tests/test-areadlink-with-size.c (main): Don't require a
22899         debug-only system call to pass, aiding cross-testing to mingw.
22900         * tests/test-areadlink.c (main): Likewise.
22901         * tests/test-areadlinkat-with-size.c (main): Likewise.
22902         * tests/test-areadlinkat.c (main): Likewise.
22903         * tests/test-canonicalize-lgpl.c (main): Likewise.
22904         * tests/test-canonicalize.c (main): Likewise.
22905         * tests/test-chown.c (main): Likewise.
22906         * tests/test-fchownat.c (main): Likewise.
22907         * tests/test-lchown.c (main): Likewise.
22908         * tests/test-fdutimensat.c (main): Likewise.
22909         * tests/test-futimens.c (main): Likewise.
22910         * tests/test-link.c (main): Likewise.
22911         * tests/test-linkat.c (main): Likewise.
22912         * tests/test-mkdir.c (main): Likewise.
22913         * tests/test-mkdirat.c (main): Likewise.
22914         * tests/test-mkfifo.c (main): Likewise.
22915         * tests/test-mkfifoat.c (main): Likewise.
22916         * tests/test-mknod.c (main): Likewise.
22917         * tests/test-readlink.c (main): Likewise.
22918         * tests/test-remove.c (main): Likewise.
22919         * tests/test-rename.c (main): Likewise.
22920         * tests/test-renameat.c (main): Likewise.
22921         * tests/test-symlink.c (main): Likewise.
22922         * tests/test-symlinkat.c (main): Likewise.
22923         * tests/test-utimens.c (main): Likewise.
22924         * tests/test-utimensat.c (main): Likewise.
22925
22926 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22927
22928         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22929         on $(UNUSED_PARAMETER_H) to avoid build failure.
22930
22931 2009-12-28  Jim Meyering  <meyering@redhat.com>
22932
22933         update-copyright: you may specify a max. line length other than 72
22934         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22935
22936         maint: use consistent FSF copyright line syntax
22937         * lib/posixtm.c: Add missing comma in FSF copyright line.
22938         * lib/posixtm.h: Likewise.
22939         * lib/getugroups.c: Add missing ", Inc.".
22940
22941         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22942         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22943         FSF copyright line.  Remove trailing blanks.
22944
22945 2009-12-28  Eric Blake  <ebb9@byu.net>
22946
22947         test-dup2: reduce dependencies
22948         * modules/cloexec (Configure.ac): Set witness.
22949         * modules/dup2-tests (Depends-on): Drop cloexec.
22950         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22951         not present.
22952         Suggested by Bruno Haible.
22953
22954 2009-12-26  Bruno Haible  <bruno@clisp.org>
22955
22956         Remove an unneeded dependency.
22957         * modules/fseterr (Depends-on): Remove dup2.
22958
22959 2009-12-26  Eric Blake  <ebb9@byu.net>
22960
22961         tests: use macros.h in more places
22962         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22963         (ASSERT_STREAM): Provide default of stderr.
22964         * tests/test-dirent-safer.c: Include macros.h, using alternate
22965         stream for assertions.
22966         * tests/test-dup-safer.c: Likewise.
22967         * tests/test-freopen-safer.c: Likewise.
22968         * tests/test-getopt.c: Likewise.
22969         * tests/test-openat-safer.c: Likewise.
22970         * tests/test-pipe.c: Likewise.
22971         * tests/test-popen-safer.c: Likewise.
22972         * modules/dirent-safer-tests (Files): Include macros.h.
22973         * modules/unistd-safer-tests (Files): Likewise.
22974         * modules/freopen-safer-tests (Files): Likewise.
22975         * modules/getopt-posix-tests (Files): Likewise.
22976         * modules/openat-safer-tests (Files): Likewise.
22977         * modules/pipe-tests (Files): Likewise.
22978
22979 2009-12-26  Bruno Haible  <bruno@clisp.org>
22980
22981         javacomp: Portability fix.
22982         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22983         that it also works on Solaris.
22984
22985 2009-12-26  Bruno Haible  <bruno@clisp.org>
22986
22987         localename: Fix storage allocation of gl_locale_name_thread's result.
22988         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22989         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22990         all platforms that have 'uselocale'.
22991         (gl_locale_name_thread_unsafe): New function, extracted from
22992         gl_locale_name_thread.
22993         (gl_locale_name_thread): Call struniq on all platforms that have
22994         'uselocale'.
22995         * tests/test-localename.c (test_locale_name_thread): Check that the
22996         resulting strings are permanently allocated.
22997         * modules/localename-tests (Depends-on): Add strdup.
22998
22999 2009-12-26  Bruno Haible  <bruno@clisp.org>
23000
23001         * tests/test-localename.c (categories): Fill in the strings.
23002
23003 2009-12-26  Jim Meyering  <meyering@redhat.com>
23004
23005         isdir: complete the removal of m4/isdir.m4
23006         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23007
23008         isdir: clean up, since at least grep still uses it
23009         * lib/isdir.c: Include "isdir.h".
23010         (S_ISDIR): Remove now-unneeded definition.
23011         * modules/isdir (Files): Add lib/isdir.h.
23012         * lib/isdir.h: New file, with declaration.
23013         * m4/isdir.m4: Remove file -- unneeded.
23014
23015 2009-12-25  Bruno Haible  <bruno@clisp.org>
23016
23017         selinux-h: Make generated .h files standalone.
23018         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23019         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23020         * lib/se-selinux.in.h: Likewise.
23021         * modules/selinux-h (Depends-on): Add unused-parameter.
23022         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23023         selinux/selinux.h and selinux/context.h.
23024         Suggested by Eric Blake.
23025
23026 2009-12-25  Bruno Haible  <bruno@clisp.org>
23027
23028         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23029         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23030         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23031         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23032         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23033
23034 2009-12-24  Bruno Haible  <bruno@clisp.org>
23035
23036         openat: Fix warning.
23037         * lib/openat-proc.c: Include <unistd.h>.
23038
23039 2009-12-24  Bruno Haible  <bruno@clisp.org>
23040
23041         New module 'unused-parameter'.
23042         * build-aux/unused-parameter.h: New file, extracted from earlier
23043         gnulib-common.m4.
23044         * modules/unused-parameter: New file.
23045         * lib/unistr.h: Include unused-parameter.h.
23046         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23047         _GL_UNUSED.
23048         * modules/unistr/base (Depends-on): Add unused-parameter.
23049
23050 2009-12-24  Bruno Haible  <bruno@clisp.org>
23051
23052         Add missing dependencies to 'extensions' module.
23053         * m4/extensions.m4: Add comment.
23054         * modules/accept4 (Depends-on): Add extensions.
23055         * modules/dup3 (Depends-on): Likewise.
23056         * modules/fcntl (Depends-on): Likewise.
23057         * modules/futimens (Depends-on): Likewise.
23058         * modules/mknod (Depends-on): Likewise.
23059         * modules/pipe2 (Depends-on): Likewise.
23060         * modules/stat-time (Depends-on): Likewise.
23061         * modules/strcasestr-simple (Depends-on): Likewise.
23062         * modules/strsignal (Depends-on): Likewise.
23063         * modules/utimensat (Depends-on): Likewise.
23064         * modules/localcharset (Depends-on): Likewise. Needed because of
23065         gl_FCNTL_O_FLAGS.
23066         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23067         AC_TYPE_MBSTATE_T.
23068         * modules/wcsnrtombs (Depends-on): Likewise.
23069         * modules/wcsrtombs (Depends-on): Likewise.
23070
23071 2009-12-24  Bruno Haible  <bruno@clisp.org>
23072
23073         binary-io: Avoid gcc warning due to SET_BINARY.
23074         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23075         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23076
23077 2009-12-24  Bruno Haible  <bruno@clisp.org>
23078
23079         Avoid future namespace pollution on glibc systems.
23080         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23081         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23082         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23083         glibc systems.
23084
23085 2009-12-24  Bruno Haible  <bruno@clisp.org>
23086
23087         Refactor common macros used in tests.
23088         * tests/macros.h: New file.
23089         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23090         and/or <stdlib.h>, if appropriate.
23091         (ASSERT, SIZEOF): Remove macros.
23092         * tests/test-areadlink-with-size.c: Likewise.
23093         * tests/test-areadlinkat.c: Likewise.
23094         * tests/test-areadlinkat-with-size.c: Likewise.
23095         * tests/test-argmatch.c: Likewise.
23096         * tests/test-argv-iter.c: Likewise.
23097         * tests/test-array-mergesort.c: Likewise.
23098         * tests/test-array_list.c: Likewise.
23099         * tests/test-array_oset.c: Likewise.
23100         * tests/test-avltree_list.c: Likewise.
23101         * tests/test-avltree_oset.c: Likewise.
23102         * tests/test-avltreehash_list.c: Likewise.
23103         * tests/test-base64.c: Likewise.
23104         * tests/test-binary-io.c: Likewise.
23105         * tests/test-bitrotate.c: Likewise.
23106         * tests/test-btowc.c: Likewise.
23107         * tests/test-byteswap.c: Likewise.
23108         * tests/test-c-ctype.c: Likewise.
23109         * tests/test-c-stack.c: Likewise.
23110         * tests/test-c-strcasecmp.c: Likewise.
23111         * tests/test-c-strcasestr.c: Likewise.
23112         * tests/test-c-strncasecmp.c: Likewise.
23113         * tests/test-c-strstr.c: Likewise.
23114         * tests/test-canonicalize-lgpl.c: Likewise.
23115         * tests/test-canonicalize.c: Likewise.
23116         * tests/test-carray_list.c: Likewise.
23117         * tests/test-ceilf1.c: Likewise.
23118         * tests/test-ceilf2.c: Likewise.
23119         * tests/test-ceill.c: Likewise.
23120         * tests/test-chown.c: Likewise.
23121         * tests/test-cloexec.c: Likewise.
23122         * tests/test-copy-acl.c: Likewise.
23123         * tests/test-copy-file.c: Likewise.
23124         * tests/test-count-one-bits.c: Likewise.
23125         * tests/test-dprintf-posix.c: Likewise.
23126         * tests/test-dup2.c: Likewise.
23127         * tests/test-dup3.c: Likewise.
23128         * tests/test-duplocale.c: Likewise.
23129         * tests/test-fbufmode.c: Likewise.
23130         * tests/test-fchdir.c: Likewise.
23131         * tests/test-fchownat.c: Likewise.
23132         * tests/test-fcntl-safer.c: Likewise.
23133         * tests/test-fcntl.c: Likewise.
23134         * tests/test-fdopendir.c: Likewise.
23135         * tests/test-fdutimensat.c: Likewise.
23136         * tests/test-fflush2.c: Likewise.
23137         * tests/test-file-has-acl.c: Likewise.
23138         * tests/test-filevercmp.c: Likewise.
23139         * tests/test-flock.c: Likewise.
23140         * tests/test-floorf1.c: Likewise.
23141         * tests/test-floorf2.c: Likewise.
23142         * tests/test-floorl.c: Likewise.
23143         * tests/test-fnmatch.c: Likewise.
23144         * tests/test-fopen.h: Likewise.
23145         * tests/test-fpending.c: Likewise.
23146         * tests/test-fprintf-posix.c: Likewise.
23147         * tests/test-fpurge.c: Likewise.
23148         * tests/test-freadable.c: Likewise.
23149         * tests/test-freadahead.c: Likewise.
23150         * tests/test-freading.c: Likewise.
23151         * tests/test-freadptr.c: Likewise.
23152         * tests/test-freadptr2.c: Likewise.
23153         * tests/test-freadseek.c: Likewise.
23154         * tests/test-freopen.c: Likewise.
23155         * tests/test-frexp.c: Likewise.
23156         * tests/test-frexpl.c: Likewise.
23157         * tests/test-fseek.c: Likewise.
23158         * tests/test-fseeko.c: Likewise.
23159         * tests/test-fstatat.c: Likewise.
23160         * tests/test-fstrcmp.c: Likewise.
23161         * tests/test-fsync.c: Likewise.
23162         * tests/test-ftell.c: Likewise.
23163         * tests/test-ftello.c: Likewise.
23164         * tests/test-func.c: Likewise.
23165         * tests/test-futimens.c: Likewise.
23166         * tests/test-fwritable.c: Likewise.
23167         * tests/test-fwriting.c: Likewise.
23168         * tests/test-getcwd.c: Likewise.
23169         * tests/test-getdate.c: Likewise.
23170         * tests/test-getdelim.c: Likewise.
23171         * tests/test-getdtablesize.c: Likewise.
23172         * tests/test-getgroups.c: Likewise.
23173         * tests/test-getline.c: Likewise.
23174         * tests/test-getndelim2.c: Likewise.
23175         * tests/test-glob.c: Likewise.
23176         * tests/test-hash.c: Likewise.
23177         * tests/test-i-ring.c: Likewise.
23178         * tests/test-iconv-utf.c: Likewise.
23179         * tests/test-iconv.c: Likewise.
23180         * tests/test-idpriv-drop.c: Likewise.
23181         * tests/test-idpriv-droptemp.c: Likewise.
23182         * tests/test-inet_ntop.c: Likewise.
23183         * tests/test-inet_pton.c: Likewise.
23184         * tests/test-isblank.c: Likewise.
23185         * tests/test-isfinite.c: Likewise.
23186         * tests/test-isinf.c: Likewise.
23187         * tests/test-isnan.c: Likewise.
23188         * tests/test-isnand.h: Likewise.
23189         * tests/test-isnanf.h: Likewise.
23190         * tests/test-isnanl.h: Likewise.
23191         * tests/test-lchown.c: Likewise.
23192         * tests/test-ldexpl.c: Likewise.
23193         * tests/test-link.c: Likewise.
23194         * tests/test-linkat.c: Likewise.
23195         * tests/test-linked_list.c: Likewise.
23196         * tests/test-linkedhash_list.c: Likewise.
23197         * tests/test-localename.c: Likewise.
23198         * tests/test-lseek.c: Likewise.
23199         * tests/test-lstat.c: Likewise.
23200         * tests/test-mbmemcasecmp.c: Likewise.
23201         * tests/test-mbmemcasecoll.c: Likewise.
23202         * tests/test-mbrtowc.c: Likewise.
23203         * tests/test-mbscasecmp.c: Likewise.
23204         * tests/test-mbscasestr1.c: Likewise.
23205         * tests/test-mbscasestr2.c: Likewise.
23206         * tests/test-mbscasestr3.c: Likewise.
23207         * tests/test-mbscasestr4.c: Likewise.
23208         * tests/test-mbschr.c: Likewise.
23209         * tests/test-mbscspn.c: Likewise.
23210         * tests/test-mbsinit.c: Likewise.
23211         * tests/test-mbsncasecmp.c: Likewise.
23212         * tests/test-mbsnrtowcs.c: Likewise.
23213         * tests/test-mbspbrk.c: Likewise.
23214         * tests/test-mbspcasecmp.c: Likewise.
23215         * tests/test-mbsrchr.c: Likewise.
23216         * tests/test-mbsrtowcs.c: Likewise.
23217         * tests/test-mbsspn.c: Likewise.
23218         * tests/test-mbsstr1.c: Likewise.
23219         * tests/test-mbsstr2.c: Likewise.
23220         * tests/test-mbsstr3.c: Likewise.
23221         * tests/test-memchr.c: Likewise.
23222         * tests/test-memchr2.c: Likewise.
23223         * tests/test-memcmp.c: Likewise.
23224         * tests/test-memmem.c: Likewise.
23225         * tests/test-memrchr.c: Likewise.
23226         * tests/test-mkdir.c: Likewise.
23227         * tests/test-mkdirat.c: Likewise.
23228         * tests/test-mkfifo.c: Likewise.
23229         * tests/test-mkfifoat.c: Likewise.
23230         * tests/test-mknod.c: Likewise.
23231         * tests/test-nanosleep.c: Likewise.
23232         * tests/test-nl_langinfo.c: Likewise.
23233         * tests/test-obstack-printf.c: Likewise.
23234         * tests/test-open.c: Likewise.
23235         * tests/test-openat.c: Likewise.
23236         * tests/test-pipe-filter-gi1.c: Likewise.
23237         * tests/test-pipe-filter-gi2-main.c: Likewise.
23238         * tests/test-pipe-filter-ii1.c: Likewise.
23239         * tests/test-pipe-filter-ii2-main.c: Likewise.
23240         * tests/test-pipe2.c: Likewise.
23241         * tests/test-popen.h: Likewise.
23242         * tests/test-posixtm.c: Likewise.
23243         * tests/test-pread.c: Likewise.
23244         * tests/test-printf-frexp.c: Likewise.
23245         * tests/test-printf-frexpl.c: Likewise.
23246         * tests/test-printf-posix.c: Likewise.
23247         * tests/test-priv-set.c: Likewise.
23248         * tests/test-quotearg.c: Likewise.
23249         * tests/test-random_r.c: Likewise.
23250         * tests/test-rawmemchr.c: Likewise.
23251         * tests/test-rbtree_list.c: Likewise.
23252         * tests/test-rbtree_oset.c: Likewise.
23253         * tests/test-rbtreehash_list.c: Likewise.
23254         * tests/test-readlink.c: Likewise.
23255         * tests/test-remove.c: Likewise.
23256         * tests/test-rename.c: Likewise.
23257         * tests/test-renameat.c: Likewise.
23258         * tests/test-rmdir.c: Likewise.
23259         * tests/test-round1.c: Likewise.
23260         * tests/test-roundf1.c: Likewise.
23261         * tests/test-roundl.c: Likewise.
23262         * tests/test-safe-alloc.c: Likewise.
23263         * tests/test-sameacls.c: Likewise.
23264         * tests/test-set-mode-acl.c: Likewise.
23265         * tests/test-setenv.c: Likewise.
23266         * tests/test-sigaction.c: Likewise.
23267         * tests/test-signbit.c: Likewise.
23268         * tests/test-sleep.c: Likewise.
23269         * tests/test-snprintf-posix.c: Likewise.
23270         * tests/test-snprintf.c: Likewise.
23271         * tests/test-sprintf-posix.c: Likewise.
23272         * tests/test-stat-time.c: Likewise.
23273         * tests/test-stat.c: Likewise.
23274         * tests/test-strcasestr.c: Likewise.
23275         * tests/test-strchrnul.c: Likewise.
23276         * tests/test-strerror.c: Likewise.
23277         * tests/test-striconv.c: Likewise.
23278         * tests/test-striconveh.c: Likewise.
23279         * tests/test-striconveha.c: Likewise.
23280         * tests/test-strsignal.c: Likewise.
23281         * tests/test-strstr.c: Likewise.
23282         * tests/test-strtod.c: Likewise.
23283         * tests/test-strverscmp.c: Likewise.
23284         * tests/test-symlink.c: Likewise.
23285         * tests/test-symlinkat.c: Likewise.
23286         * tests/test-trunc1.c: Likewise.
23287         * tests/test-trunc2.c: Likewise.
23288         * tests/test-truncf1.c: Likewise.
23289         * tests/test-truncf2.c: Likewise.
23290         * tests/test-truncl.c: Likewise.
23291         * tests/test-uname.c: Likewise.
23292         * tests/test-unlink.c: Likewise.
23293         * tests/test-unlinkat.c: Likewise.
23294         * tests/test-unsetenv.c: Likewise.
23295         * tests/test-usleep.c: Likewise.
23296         * tests/test-utimens.c: Likewise.
23297         * tests/test-utimensat.c: Likewise.
23298         * tests/test-vasnprintf-posix.c: Likewise.
23299         * tests/test-vasnprintf-posix2.c: Likewise.
23300         * tests/test-vasnprintf.c: Likewise.
23301         * tests/test-vasprintf-posix.c: Likewise.
23302         * tests/test-vasprintf.c: Likewise.
23303         * tests/test-vdprintf-posix.c: Likewise.
23304         * tests/test-vfprintf-posix.c: Likewise.
23305         * tests/test-vprintf-posix.c: Likewise.
23306         * tests/test-vsnprintf-posix.c: Likewise.
23307         * tests/test-vsnprintf.c: Likewise.
23308         * tests/test-vsprintf-posix.c: Likewise.
23309         * tests/test-wcrtomb.c: Likewise.
23310         * tests/test-wcsnrtombs.c: Likewise.
23311         * tests/test-wcsrtombs.c: Likewise.
23312         * tests/test-wctype.c: Likewise.
23313         * tests/test-wcwidth.c: Likewise.
23314         * tests/test-xfprintf-posix.c: Likewise.
23315         * tests/test-xmemdup0.c: Likewise.
23316         * tests/test-xprintf-posix.c: Likewise.
23317         * tests/test-xvasprintf.c: Likewise.
23318         * tests/unicase/test-locale-language.c: Likewise.
23319         * tests/unicase/test-mapping-part1.h: Likewise.
23320         * tests/unicase/test-predicate-part1.h: Likewise.
23321         * tests/unicase/test-u8-casecmp.c: Likewise.
23322         * tests/unicase/test-u8-casecoll.c: Likewise.
23323         * tests/unicase/test-u8-casefold.c: Likewise.
23324         * tests/unicase/test-u8-is-cased.c: Likewise.
23325         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23326         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23327         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23328         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23329         * tests/unicase/test-u8-tolower.c: Likewise.
23330         * tests/unicase/test-u8-totitle.c: Likewise.
23331         * tests/unicase/test-u8-toupper.c: Likewise.
23332         * tests/unicase/test-u16-casecmp.c: Likewise.
23333         * tests/unicase/test-u16-casecoll.c: Likewise.
23334         * tests/unicase/test-u16-casefold.c: Likewise.
23335         * tests/unicase/test-u16-is-cased.c: Likewise.
23336         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23337         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23338         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23339         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23340         * tests/unicase/test-u16-tolower.c: Likewise.
23341         * tests/unicase/test-u16-totitle.c: Likewise.
23342         * tests/unicase/test-u16-toupper.c: Likewise.
23343         * tests/unicase/test-u32-casecmp.c: Likewise.
23344         * tests/unicase/test-u32-casecoll.c: Likewise.
23345         * tests/unicase/test-u32-casefold.c: Likewise.
23346         * tests/unicase/test-u32-is-cased.c: Likewise.
23347         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23348         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23349         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23350         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23351         * tests/unicase/test-u32-tolower.c: Likewise.
23352         * tests/unicase/test-u32-totitle.c: Likewise.
23353         * tests/unicase/test-u32-toupper.c: Likewise.
23354         * tests/unicase/test-ulc-casecmp.c: Likewise.
23355         * tests/unicase/test-ulc-casecoll.c: Likewise.
23356         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23357         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23358         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23359         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23360         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23361         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23362         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23363         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23364         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23365         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23366         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23367         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23368         * tests/unictype/test-bidi_byname.c: Likewise.
23369         * tests/unictype/test-bidi_name.c: Likewise.
23370         * tests/unictype/test-bidi_of.c: Likewise.
23371         * tests/unictype/test-bidi_test.c: Likewise.
23372         * tests/unictype/test-block_list.c: Likewise.
23373         * tests/unictype/test-block_of.c: Likewise.
23374         * tests/unictype/test-block_test.c: Likewise.
23375         * tests/unictype/test-categ_and.c: Likewise.
23376         * tests/unictype/test-categ_and_not.c: Likewise.
23377         * tests/unictype/test-categ_byname.c: Likewise.
23378         * tests/unictype/test-categ_name.c: Likewise.
23379         * tests/unictype/test-categ_none.c: Likewise.
23380         * tests/unictype/test-categ_of.c: Likewise.
23381         * tests/unictype/test-categ_or.c: Likewise.
23382         * tests/unictype/test-categ_test_withtable.c: Likewise.
23383         * tests/unictype/test-combining.c: Likewise.
23384         * tests/unictype/test-decdigit.c: Likewise.
23385         * tests/unictype/test-digit.c: Likewise.
23386         * tests/unictype/test-mirror.c: Likewise.
23387         * tests/unictype/test-numeric.c: Likewise.
23388         * tests/unictype/test-pr_byname.c: Likewise.
23389         * tests/unictype/test-pr_test.c: Likewise.
23390         * tests/unictype/test-predicate-part1.h: Likewise.
23391         * tests/unictype/test-scripts.c: Likewise.
23392         * tests/unictype/test-sy_c_ident.c: Likewise.
23393         * tests/unictype/test-sy_java_ident.c: Likewise.
23394         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23395         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23396         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23397         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23398         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23399         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23400         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23401         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23402         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23403         * tests/uninorm/test-compat-decomposition.c: Likewise.
23404         * tests/uninorm/test-composition.c: Likewise.
23405         * tests/uninorm/test-decomposing-form.c: Likewise.
23406         * tests/uninorm/test-decomposition.c: Likewise.
23407         * tests/uninorm/test-u8-nfc.c: Likewise.
23408         * tests/uninorm/test-u8-nfd.c: Likewise.
23409         * tests/uninorm/test-u8-nfkc.c: Likewise.
23410         * tests/uninorm/test-u8-nfkd.c: Likewise.
23411         * tests/uninorm/test-u8-normcmp.c: Likewise.
23412         * tests/uninorm/test-u8-normcoll.c: Likewise.
23413         * tests/uninorm/test-u16-nfc.c: Likewise.
23414         * tests/uninorm/test-u16-nfd.c: Likewise.
23415         * tests/uninorm/test-u16-nfkc.c: Likewise.
23416         * tests/uninorm/test-u16-nfkd.c: Likewise.
23417         * tests/uninorm/test-u16-normcmp.c: Likewise.
23418         * tests/uninorm/test-u16-normcoll.c: Likewise.
23419         * tests/uninorm/test-u32-nfc.c: Likewise.
23420         * tests/uninorm/test-u32-nfd.c: Likewise.
23421         * tests/uninorm/test-u32-nfkc.c: Likewise.
23422         * tests/uninorm/test-u32-nfkd.c: Likewise.
23423         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23424         * tests/uninorm/test-u32-normcmp.c: Likewise.
23425         * tests/uninorm/test-u32-normcoll.c: Likewise.
23426         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23427         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23428         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23429         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23430         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23431         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23432         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23433         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23434         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23435         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23436         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23437         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23438         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23439         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23440         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23441         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23442         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23443         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23444         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23445         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23446         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23447         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23448         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23449         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23450         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23451         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23452         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23453         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23454         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23455         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23456         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23457         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23458         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23459         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23460         * tests/uniwidth/test-u8-width.c: Likewise.
23461         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23462         * tests/uniwidth/test-u16-width.c: Likewise.
23463         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23464         * tests/uniwidth/test-u32-width.c: Likewise.
23465         * tests/uniwidth/test-uc_width.c: Likewise.
23466         * tests/uniwidth/test-uc_width2.c: Likewise.
23467         * modules/acl-tests (Files): Add tests/macros.h.
23468         * modules/areadlink-tests (Files): Likewise.
23469         * modules/areadlink-with-size-tests (Files): Likewise.
23470         * modules/areadlinkat-tests (Files): Likewise.
23471         * modules/areadlinkat-with-size-tests (Files): Likewise.
23472         * modules/argmatch-tests (Files): Likewise.
23473         * modules/argv-iter-tests (Files): Likewise.
23474         * modules/array-list-tests (Files): Likewise.
23475         * modules/array-mergesort-tests (Files): Likewise.
23476         * modules/array-oset-tests (Files): Likewise.
23477         * modules/avltree-list-tests (Files): Likewise.
23478         * modules/avltree-oset-tests (Files): Likewise.
23479         * modules/avltreehash-list-tests (Files): Likewise.
23480         * modules/base64-tests (Files): Likewise.
23481         * modules/binary-io-tests (Files): Likewise.
23482         * modules/bitrotate-tests (Files): Likewise.
23483         * modules/btowc-tests (Files): Likewise.
23484         * modules/byteswap-tests (Files): Likewise.
23485         * modules/c-ctype-tests (Files): Likewise.
23486         * modules/c-stack-tests (Files): Likewise.
23487         * modules/c-strcase-tests (Files): Likewise.
23488         * modules/c-strcasestr-tests (Files): Likewise.
23489         * modules/c-strstr-tests (Files): Likewise.
23490         * modules/canonicalize-lgpl-tests (Files): Likewise.
23491         * modules/canonicalize-tests (Files): Likewise.
23492         * modules/carray-list-tests (Files): Likewise.
23493         * modules/ceilf-tests (Files): Likewise.
23494         * modules/ceill-tests (Files): Likewise.
23495         * modules/chown-tests (Files): Likewise.
23496         * modules/cloexec-tests (Files): Likewise.
23497         * modules/copy-file-tests (Files): Likewise.
23498         * modules/count-one-bits-tests (Files): Likewise.
23499         * modules/dprintf-posix-tests (Files): Likewise.
23500         * modules/dup2-tests (Files): Likewise.
23501         * modules/dup3-tests (Files): Likewise.
23502         * modules/duplocale-tests (Files): Likewise.
23503         * modules/fbufmode-tests (Files): Likewise.
23504         * modules/fchdir-tests (Files): Likewise.
23505         * modules/fcntl-safer-tests (Files): Likewise.
23506         * modules/fcntl-tests (Files): Likewise.
23507         * modules/fdopendir-tests (Files): Likewise.
23508         * modules/fdutimensat-tests (Files): Likewise.
23509         * modules/fflush-tests (Files): Likewise.
23510         * modules/filevercmp-tests (Files): Likewise.
23511         * modules/flock-tests (Files): Likewise.
23512         * modules/floorf-tests (Files): Likewise.
23513         * modules/floorl-tests (Files): Likewise.
23514         * modules/fnmatch-tests (Files): Likewise.
23515         * modules/fopen-safer-tests (Files): Likewise.
23516         * modules/fopen-tests (Files): Likewise.
23517         * modules/fpending-tests (Files): Likewise.
23518         * modules/fprintf-posix-tests (Files): Likewise.
23519         * modules/fpurge-tests (Files): Likewise.
23520         * modules/freadable-tests (Files): Likewise.
23521         * modules/freadahead-tests (Files): Likewise.
23522         * modules/freading-tests (Files): Likewise.
23523         * modules/freadptr-tests (Files): Likewise.
23524         * modules/freadseek-tests (Files): Likewise.
23525         * modules/freopen-tests (Files): Likewise.
23526         * modules/frexp-nolibm-tests (Files): Likewise.
23527         * modules/frexp-tests (Files): Likewise.
23528         * modules/frexpl-nolibm-tests (Files): Likewise.
23529         * modules/frexpl-tests (Files): Likewise.
23530         * modules/fseek-tests (Files): Likewise.
23531         * modules/fseeko-tests (Files): Likewise.
23532         * modules/fstrcmp-tests (Files): Likewise.
23533         * modules/fsync-tests (Files): Likewise.
23534         * modules/ftell-tests (Files): Likewise.
23535         * modules/ftello-tests (Files): Likewise.
23536         * modules/func-tests (Files): Likewise.
23537         * modules/futimens-tests (Files): Likewise.
23538         * modules/fwritable-tests (Files): Likewise.
23539         * modules/fwriting-tests (Files): Likewise.
23540         * modules/getcwd-tests (Files): Likewise.
23541         * modules/getdate-tests (Files): Likewise.
23542         * modules/getdelim-tests (Files): Likewise.
23543         * modules/getdtablesize-tests (Files): Likewise.
23544         * modules/getgroups-tests (Files): Likewise.
23545         * modules/getline-tests (Files): Likewise.
23546         * modules/getndelim2-tests (Files): Likewise.
23547         * modules/glob-tests (Files): Likewise.
23548         * modules/hash-tests (Files): Likewise.
23549         * modules/i-ring-tests (Files): Likewise.
23550         * modules/iconv-tests (Files): Likewise.
23551         * modules/iconv_open-utf-tests (Files): Likewise.
23552         * modules/idpriv-drop-tests (Files): Likewise.
23553         * modules/idpriv-droptemp-tests (Files): Likewise.
23554         * modules/inet_ntop-tests (Files): Likewise.
23555         * modules/inet_pton-tests (Files): Likewise.
23556         * modules/isblank-tests (Files): Likewise.
23557         * modules/isfinite-tests (Files): Likewise.
23558         * modules/isinf-tests (Files): Likewise.
23559         * modules/isnan-tests (Files): Likewise.
23560         * modules/isnand-nolibm-tests (Files): Likewise.
23561         * modules/isnand-tests (Files): Likewise.
23562         * modules/isnanf-nolibm-tests (Files): Likewise.
23563         * modules/isnanf-tests (Files): Likewise.
23564         * modules/isnanl-nolibm-tests (Files): Likewise.
23565         * modules/isnanl-tests (Files): Likewise.
23566         * modules/lchown-tests (Files): Likewise.
23567         * modules/ldexpl-tests (Files): Likewise.
23568         * modules/link-tests (Files): Likewise.
23569         * modules/linkat-tests (Files): Likewise.
23570         * modules/linked-list-tests (Files): Likewise.
23571         * modules/linkedhash-list-tests (Files): Likewise.
23572         * modules/localename-tests (Files): Likewise.
23573         * modules/lseek-tests (Files): Likewise.
23574         * modules/lstat-tests (Files): Likewise.
23575         * modules/mbmemcasecmp-tests (Files): Likewise.
23576         * modules/mbmemcasecoll-tests (Files): Likewise.
23577         * modules/mbrtowc-tests (Files): Likewise.
23578         * modules/mbscasecmp-tests (Files): Likewise.
23579         * modules/mbscasestr-tests (Files): Likewise.
23580         * modules/mbschr-tests (Files): Likewise.
23581         * modules/mbscspn-tests (Files): Likewise.
23582         * modules/mbsinit-tests (Files): Likewise.
23583         * modules/mbsncasecmp-tests (Files): Likewise.
23584         * modules/mbsnrtowcs-tests (Files): Likewise.
23585         * modules/mbspbrk-tests (Files): Likewise.
23586         * modules/mbspcasecmp-tests (Files): Likewise.
23587         * modules/mbsrchr-tests (Files): Likewise.
23588         * modules/mbsrtowcs-tests (Files): Likewise.
23589         * modules/mbsspn-tests (Files): Likewise.
23590         * modules/mbsstr-tests (Files): Likewise.
23591         * modules/memchr-tests (Files): Likewise.
23592         * modules/memchr2-tests (Files): Likewise.
23593         * modules/memcmp-tests (Files): Likewise.
23594         * modules/memmem-tests (Files): Likewise.
23595         * modules/memrchr-tests (Files): Likewise.
23596         * modules/mkdir-tests (Files): Likewise.
23597         * modules/mkfifo-tests (Files): Likewise.
23598         * modules/mkfifoat-tests (Files): Likewise.
23599         * modules/mknod-tests (Files): Likewise.
23600         * modules/nanosleep-tests (Files): Likewise.
23601         * modules/nl_langinfo-tests (Files): Likewise.
23602         * modules/obstack-printf-tests (Files): Likewise.
23603         * modules/open-tests (Files): Likewise.
23604         * modules/openat-tests (Files): Likewise.
23605         * modules/pipe-filter-gi-tests (Files): Likewise.
23606         * modules/pipe-filter-ii-tests (Files): Likewise.
23607         * modules/pipe2-tests (Files): Likewise.
23608         * modules/popen-safer-tests (Files): Likewise.
23609         * modules/popen-tests (Files): Likewise.
23610         * modules/posixtm-tests (Files): Likewise.
23611         * modules/pread-tests (Files): Likewise.
23612         * modules/printf-frexp-tests (Files): Likewise.
23613         * modules/printf-frexpl-tests (Files): Likewise.
23614         * modules/printf-posix-tests (Files): Likewise.
23615         * modules/priv-set-tests (Files): Likewise.
23616         * modules/quotearg-tests (Files): Likewise.
23617         * modules/random_r-tests (Files): Likewise.
23618         * modules/rawmemchr-tests (Files): Likewise.
23619         * modules/rbtree-list-tests (Files): Likewise.
23620         * modules/rbtree-oset-tests (Files): Likewise.
23621         * modules/rbtreehash-list-tests (Files): Likewise.
23622         * modules/readlink-tests (Files): Likewise.
23623         * modules/remove-tests (Files): Likewise.
23624         * modules/rename-tests (Files): Likewise.
23625         * modules/renameat-tests (Files): Likewise.
23626         * modules/rmdir-tests (Files): Likewise.
23627         * modules/round-tests (Files): Likewise.
23628         * modules/roundf-tests (Files): Likewise.
23629         * modules/roundl-tests (Files): Likewise.
23630         * modules/safe-alloc-tests (Files): Likewise.
23631         * modules/setenv-tests (Files): Likewise.
23632         * modules/sigaction-tests (Files): Likewise.
23633         * modules/signbit-tests (Files): Likewise.
23634         * modules/sleep-tests (Files): Likewise.
23635         * modules/snprintf-posix-tests (Files): Likewise.
23636         * modules/snprintf-tests (Files): Likewise.
23637         * modules/sprintf-posix-tests (Files): Likewise.
23638         * modules/stat-tests (Files): Likewise.
23639         * modules/stat-time-tests (Files): Likewise.
23640         * modules/strcasestr-tests (Files): Likewise.
23641         * modules/strchrnul-tests (Files): Likewise.
23642         * modules/strerror-tests (Files): Likewise.
23643         * modules/striconv-tests (Files): Likewise.
23644         * modules/striconveh-tests (Files): Likewise.
23645         * modules/striconveha-tests (Files): Likewise.
23646         * modules/strsignal-tests (Files): Likewise.
23647         * modules/strstr-tests (Files): Likewise.
23648         * modules/strtod-tests (Files): Likewise.
23649         * modules/strverscmp-tests (Files): Likewise.
23650         * modules/symlink-tests (Files): Likewise.
23651         * modules/symlinkat-tests (Files): Likewise.
23652         * modules/trunc-tests (Files): Likewise.
23653         * modules/truncf-tests (Files): Likewise.
23654         * modules/truncl-tests (Files): Likewise.
23655         * modules/uname-tests (Files): Likewise.
23656         * modules/unicase/cased-tests (Files): Likewise.
23657         * modules/unicase/ignorable-tests (Files): Likewise.
23658         * modules/unicase/locale-language-tests (Files): Likewise.
23659         * modules/unicase/tolower-tests (Files): Likewise.
23660         * modules/unicase/totitle-tests (Files): Likewise.
23661         * modules/unicase/toupper-tests (Files): Likewise.
23662         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23663         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23664         * modules/unicase/u8-casefold-tests (Files): Likewise.
23665         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23666         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23667         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23668         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23669         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23670         * modules/unicase/u8-tolower-tests (Files): Likewise.
23671         * modules/unicase/u8-totitle-tests (Files): Likewise.
23672         * modules/unicase/u8-toupper-tests (Files): Likewise.
23673         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23674         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23675         * modules/unicase/u16-casefold-tests (Files): Likewise.
23676         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23677         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23678         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23679         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23680         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23681         * modules/unicase/u16-tolower-tests (Files): Likewise.
23682         * modules/unicase/u16-totitle-tests (Files): Likewise.
23683         * modules/unicase/u16-toupper-tests (Files): Likewise.
23684         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23685         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23686         * modules/unicase/u32-casefold-tests (Files): Likewise.
23687         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23688         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23689         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23690         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23691         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23692         * modules/unicase/u32-tolower-tests (Files): Likewise.
23693         * modules/unicase/u32-totitle-tests (Files): Likewise.
23694         * modules/unicase/u32-toupper-tests (Files): Likewise.
23695         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23696         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23697         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23698         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23699         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23700         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23701         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23702         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23703         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23704         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23705         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23706         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23707         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23708         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23709         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23710         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23711         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23712         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23713         * modules/unictype/block-list-tests (Files): Likewise.
23714         * modules/unictype/block-of-tests (Files): Likewise.
23715         * modules/unictype/block-test-tests (Files): Likewise.
23716         * modules/unictype/category-C-tests (Files): Likewise.
23717         * modules/unictype/category-Cc-tests (Files): Likewise.
23718         * modules/unictype/category-Cf-tests (Files): Likewise.
23719         * modules/unictype/category-Cn-tests (Files): Likewise.
23720         * modules/unictype/category-Co-tests (Files): Likewise.
23721         * modules/unictype/category-Cs-tests (Files): Likewise.
23722         * modules/unictype/category-L-tests (Files): Likewise.
23723         * modules/unictype/category-Ll-tests (Files): Likewise.
23724         * modules/unictype/category-Lm-tests (Files): Likewise.
23725         * modules/unictype/category-Lo-tests (Files): Likewise.
23726         * modules/unictype/category-Lt-tests (Files): Likewise.
23727         * modules/unictype/category-Lu-tests (Files): Likewise.
23728         * modules/unictype/category-M-tests (Files): Likewise.
23729         * modules/unictype/category-Mc-tests (Files): Likewise.
23730         * modules/unictype/category-Me-tests (Files): Likewise.
23731         * modules/unictype/category-Mn-tests (Files): Likewise.
23732         * modules/unictype/category-N-tests (Files): Likewise.
23733         * modules/unictype/category-Nd-tests (Files): Likewise.
23734         * modules/unictype/category-Nl-tests (Files): Likewise.
23735         * modules/unictype/category-No-tests (Files): Likewise.
23736         * modules/unictype/category-P-tests (Files): Likewise.
23737         * modules/unictype/category-Pc-tests (Files): Likewise.
23738         * modules/unictype/category-Pd-tests (Files): Likewise.
23739         * modules/unictype/category-Pe-tests (Files): Likewise.
23740         * modules/unictype/category-Pf-tests (Files): Likewise.
23741         * modules/unictype/category-Pi-tests (Files): Likewise.
23742         * modules/unictype/category-Po-tests (Files): Likewise.
23743         * modules/unictype/category-Ps-tests (Files): Likewise.
23744         * modules/unictype/category-S-tests (Files): Likewise.
23745         * modules/unictype/category-Sc-tests (Files): Likewise.
23746         * modules/unictype/category-Sk-tests (Files): Likewise.
23747         * modules/unictype/category-Sm-tests (Files): Likewise.
23748         * modules/unictype/category-So-tests (Files): Likewise.
23749         * modules/unictype/category-Z-tests (Files): Likewise.
23750         * modules/unictype/category-Zl-tests (Files): Likewise.
23751         * modules/unictype/category-Zp-tests (Files): Likewise.
23752         * modules/unictype/category-Zs-tests (Files): Likewise.
23753         * modules/unictype/category-and-not-tests (Files): Likewise.
23754         * modules/unictype/category-and-tests (Files): Likewise.
23755         * modules/unictype/category-byname-tests (Files): Likewise.
23756         * modules/unictype/category-name-tests (Files): Likewise.
23757         * modules/unictype/category-none-tests (Files): Likewise.
23758         * modules/unictype/category-of-tests (Files): Likewise.
23759         * modules/unictype/category-or-tests (Files): Likewise.
23760         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23761         * modules/unictype/combining-class-tests (Files): Likewise.
23762         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23763         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23764         * modules/unictype/ctype-blank-tests (Files): Likewise.
23765         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23766         * modules/unictype/ctype-digit-tests (Files): Likewise.
23767         * modules/unictype/ctype-graph-tests (Files): Likewise.
23768         * modules/unictype/ctype-lower-tests (Files): Likewise.
23769         * modules/unictype/ctype-print-tests (Files): Likewise.
23770         * modules/unictype/ctype-punct-tests (Files): Likewise.
23771         * modules/unictype/ctype-space-tests (Files): Likewise.
23772         * modules/unictype/ctype-upper-tests (Files): Likewise.
23773         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23774         * modules/unictype/decimal-digit-tests (Files): Likewise.
23775         * modules/unictype/digit-tests (Files): Likewise.
23776         * modules/unictype/mirror-tests (Files): Likewise.
23777         * modules/unictype/numeric-tests (Files): Likewise.
23778         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23779         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23780         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23781         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23782         Likewise.
23783         * modules/unictype/property-bidi-block-separator-tests (Files):
23784         Likewise.
23785         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23786         Likewise.
23787         * modules/unictype/property-bidi-common-separator-tests (Files):
23788         Likewise.
23789         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23790         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23791         Likewise.
23792         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23793         Likewise.
23794         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23795         Likewise.
23796         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23797         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23798         Likewise.
23799         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23800         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23801         Likewise.
23802         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23803         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23804         * modules/unictype/property-bidi-segment-separator-tests (Files):
23805         Likewise.
23806         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23807         * modules/unictype/property-byname-tests (Files): Likewise.
23808         * modules/unictype/property-combining-tests (Files): Likewise.
23809         * modules/unictype/property-composite-tests (Files): Likewise.
23810         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23811         * modules/unictype/property-dash-tests (Files): Likewise.
23812         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23813         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23814         Likewise.
23815         * modules/unictype/property-deprecated-tests (Files): Likewise.
23816         * modules/unictype/property-diacritic-tests (Files): Likewise.
23817         * modules/unictype/property-extender-tests (Files): Likewise.
23818         * modules/unictype/property-format-control-tests (Files): Likewise.
23819         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23820         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23821         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23822         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23823         * modules/unictype/property-hyphen-tests (Files): Likewise.
23824         * modules/unictype/property-id-continue-tests (Files): Likewise.
23825         * modules/unictype/property-id-start-tests (Files): Likewise.
23826         * modules/unictype/property-ideographic-tests (Files): Likewise.
23827         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23828         * modules/unictype/property-ids-trinary-operator-tests (Files):
23829         Likewise.
23830         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23831         * modules/unictype/property-iso-control-tests (Files): Likewise.
23832         * modules/unictype/property-join-control-tests (Files): Likewise.
23833         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23834         * modules/unictype/property-line-separator-tests (Files): Likewise.
23835         * modules/unictype/property-logical-order-exception-tests (Files):
23836         Likewise.
23837         * modules/unictype/property-lowercase-tests (Files): Likewise.
23838         * modules/unictype/property-math-tests (Files): Likewise.
23839         * modules/unictype/property-non-break-tests (Files): Likewise.
23840         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23841         * modules/unictype/property-numeric-tests (Files): Likewise.
23842         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23843         * modules/unictype/property-other-default-ignorable-code-point-tests
23844         (Files): Likewise.
23845         * modules/unictype/property-other-grapheme-extend-tests (Files):
23846         Likewise.
23847         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23848         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23849         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23850         * modules/unictype/property-other-math-tests (Files): Likewise.
23851         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23852         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23853         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23854         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23855         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23856         * modules/unictype/property-private-use-tests (Files): Likewise.
23857         * modules/unictype/property-punctuation-tests (Files): Likewise.
23858         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23859         * modules/unictype/property-radical-tests (Files): Likewise.
23860         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23861         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23862         * modules/unictype/property-space-tests (Files): Likewise.
23863         * modules/unictype/property-terminal-punctuation-tests (Files):
23864         Likewise.
23865         * modules/unictype/property-test-tests (Files): Likewise.
23866         * modules/unictype/property-titlecase-tests (Files): Likewise.
23867         * modules/unictype/property-unassigned-code-value-tests (Files):
23868         Likewise.
23869         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23870         * modules/unictype/property-uppercase-tests (Files): Likewise.
23871         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23872         * modules/unictype/property-white-space-tests (Files): Likewise.
23873         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23874         * modules/unictype/property-xid-start-tests (Files): Likewise.
23875         * modules/unictype/property-zero-width-tests (Files): Likewise.
23876         * modules/unictype/scripts-tests (Files): Likewise.
23877         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23878         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23879         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23880         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23881         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23882         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23883         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23884         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23885         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23886         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23887         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23888         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23889         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23890         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23891         * modules/uninorm/composition-tests (Files): Likewise.
23892         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23893         * modules/uninorm/decomposition-tests (Files): Likewise.
23894         * modules/uninorm/filter-tests (Files): Likewise.
23895         * modules/uninorm/nfc-tests (Files): Likewise.
23896         * modules/uninorm/nfd-tests (Files): Likewise.
23897         * modules/uninorm/nfkc-tests (Files): Likewise.
23898         * modules/uninorm/nfkd-tests (Files): Likewise.
23899         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23900         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23901         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23902         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23903         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23904         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23905         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23906         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23907         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23908         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23909         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23910         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23911         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23912         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23913         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23914         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23915         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23916         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23917         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23918         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23919         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23920         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23921         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23922         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23923         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23924         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23925         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23926         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23927         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23928         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23929         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23930         * modules/uniwidth/u8-width-tests (Files): Likewise.
23931         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23932         * modules/uniwidth/u16-width-tests (Files): Likewise.
23933         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23934         * modules/uniwidth/u32-width-tests (Files): Likewise.
23935         * modules/uniwidth/width-tests (Files): Likewise.
23936         * modules/unlink-tests (Files): Likewise.
23937         * modules/unsetenv-tests (Files): Likewise.
23938         * modules/usleep-tests (Files): Likewise.
23939         * modules/utimens-tests (Files): Likewise.
23940         * modules/utimensat-tests (Files): Likewise.
23941         * modules/vasnprintf-posix-tests (Files): Likewise.
23942         * modules/vasnprintf-tests (Files): Likewise.
23943         * modules/vasprintf-posix-tests (Files): Likewise.
23944         * modules/vasprintf-tests (Files): Likewise.
23945         * modules/vdprintf-posix-tests (Files): Likewise.
23946         * modules/vfprintf-posix-tests (Files): Likewise.
23947         * modules/vprintf-posix-tests (Files): Likewise.
23948         * modules/vsnprintf-posix-tests (Files): Likewise.
23949         * modules/vsnprintf-tests (Files): Likewise.
23950         * modules/vsprintf-posix-tests (Files): Likewise.
23951         * modules/wcrtomb-tests (Files): Likewise.
23952         * modules/wcsnrtombs-tests (Files): Likewise.
23953         * modules/wcsrtombs-tests (Files): Likewise.
23954         * modules/wctype-tests (Files): Likewise.
23955         * modules/wcwidth-tests (Files): Likewise.
23956         * modules/xmemdup0-tests (Files): Likewise.
23957         * modules/xprintf-posix-tests (Files): Likewise.
23958         * modules/xvasprintf-tests (Files): Likewise.
23959
23960 2009-12-24  Eric Blake  <ebb9@byu.net>
23961
23962         test-nanosleep: fix typo
23963         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23964         patch.
23965         Reported by Bruno Haible.
23966
23967 2009-12-24  Bruno Haible  <bruno@clisp.org>
23968
23969         Reduce namespace pollution on glibc systems.
23970         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23971         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23972         systems.
23973         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23974         <getopt.h> on glibc systems.
23975         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23976         systems.
23977         * lib/fcntl.c: Include <unistd.h> here instead.
23978
23979 2009-12-24  Bruno Haible  <bruno@clisp.org>
23980
23981         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23982
23983 2009-12-24  Eric Blake  <ebb9@byu.net>
23984
23985         tests: add signature checks
23986         * tests/signature.h (SIGNATURE_CHECK): New file.
23987         * modules/atexit-tests (Files): Use it.
23988         * modules/btowc-tests (Files): Likewise.
23989         * modules/canonicalize-lgpl-tests (Files): Likewise.
23990         * modules/ceilf-tests (Files): Likewise.
23991         * modules/ceill-tests (Files): Likewise.
23992         * modules/chown-tests (Files): Likewise.
23993         * modules/dprintf-posix-tests (Files): Likewise.
23994         * modules/dup2-tests (Files): Likewise.
23995         * modules/dup3-tests (Files): Likewise.
23996         * modules/duplocale-tests (Files): Likewise.
23997         * modules/fchdir-tests (Files): Likewise.
23998         * modules/fcntl-tests (Files): Likewise.
23999         * modules/fdopendir-tests (Files): Likewise.
24000         * modules/fflush-tests (Files): Likewise.
24001         * modules/flock-tests (Files): Likewise.
24002         * modules/floorf-tests (Files): Likewise.
24003         * modules/floorl-tests (Files): Likewise.
24004         * modules/fnmatch-tests (Files): Likewise.
24005         * modules/fopen-tests (Files): Likewise.
24006         * modules/fprintf-posix-tests (Files): Likewise.
24007         * modules/freopen-tests (Files): Likewise.
24008         * modules/frexp-nolibm-tests (Files): Likewise.
24009         * modules/frexp-tests (Files): Likewise.
24010         * modules/frexpl-nolibm-tests (Files): Likewise.
24011         * modules/frexpl-tests (Files): Likewise.
24012         * modules/fseek-tests (Files): Likewise.
24013         * modules/fseeko-tests (Files): Likewise.
24014         * modules/fsync-tests (Files): Likewise.
24015         * modules/ftell-tests (Files): Likewise.
24016         * modules/ftello-tests (Files): Likewise.
24017         * modules/futimens-tests (Files): Likewise.
24018         * modules/getaddrinfo-tests (Files): Likewise.
24019         * modules/getcwd-tests (Files): Likewise.
24020         * modules/getdelim-tests (Files): Likewise.
24021         * modules/getdtablesize-tests (Files): Likewise.
24022         * modules/getgroups-tests (Files): Likewise.
24023         * modules/gethostname-tests (Files): Likewise.
24024         * modules/getline-tests (Files): Likewise.
24025         * modules/getopt-posix-tests (Files): Likewise.
24026         * modules/gettimeofday-tests (Files): Likewise.
24027         * modules/glob-tests (Files): Likewise.
24028         * modules/iconv-tests (Files): Likewise.
24029         * modules/inet_ntop-tests (Files): Likewise.
24030         * modules/inet_pton-tests (Files): Likewise.
24031         * modules/isblank-tests (Files): Likewise.
24032         * modules/lchown-tests (Files): Likewise.
24033         * modules/ldexpl-tests (Files): Likewise.
24034         * modules/link-tests (Files): Likewise.
24035         * modules/linkat-tests (Files): Likewise.
24036         * modules/lseek-tests (Files): Likewise.
24037         * modules/lstat-tests (Files): Likewise.
24038         * modules/mbrtowc-tests (Files): Likewise.
24039         * modules/mbsinit-tests (Files): Likewise.
24040         * modules/mbsnrtowcs-tests (Files): Likewise.
24041         * modules/mbsrtowcs-tests (Files): Likewise.
24042         * modules/memchr-tests (Files): Likewise.
24043         * modules/memcmp-tests (Files): Likewise.
24044         * modules/memmem-tests (Files): Likewise.
24045         * modules/memrchr-tests (Files): Likewise.
24046         * modules/mkdir-tests (Files): Likewise.
24047         * modules/mkfifo-tests (Files): Likewise.
24048         * modules/mkfifoat-tests (Files): Likewise.
24049         * modules/mknod-tests (Files): Likewise.
24050         * modules/nanosleep-tests (Files): Likewise.
24051         * modules/nl_langinfo-tests (Files): Likewise.
24052         * modules/obstack-printf-tests (Files): Likewise.
24053         * modules/open-tests (Files): Likewise.
24054         * modules/openat-tests (Files): Likewise.
24055         * modules/perror-tests (Files): Likewise.
24056         * modules/pipe2-tests (Files): Likewise.
24057         * modules/poll-tests (Files): Likewise.
24058         * modules/popen-tests (Files): Likewise.
24059         * modules/posix_spawn-tests (Files): Likewise.
24060         * modules/posix_spawnp-tests (Files): Likewise.
24061         * modules/pread-tests (Files): Likewise.
24062         * modules/printf-posix-tests (Files): Likewise.
24063         * modules/pty-tests (Files): Likewise.
24064         * modules/random_r-tests (Files): Likewise.
24065         * modules/rawmemchr-tests (Files): Likewise.
24066         * modules/readlink-tests (Files): Likewise.
24067         * modules/remove-tests (Files): Likewise.
24068         * modules/rename-tests (Files): Likewise.
24069         * modules/renameat-tests (Files): Likewise.
24070         * modules/rmdir-tests (Files): Likewise.
24071         * modules/round-tests (Files): Likewise.
24072         * modules/roundf-tests (Files): Likewise.
24073         * modules/roundl-tests (Files): Likewise.
24074         * modules/select-tests (Files): Likewise.
24075         * modules/setenv-tests (Files): Likewise.
24076         * modules/sigaction-tests (Files): Likewise.
24077         * modules/sleep-tests (Files): Likewise.
24078         * modules/snprintf-posix-tests (Files): Likewise.
24079         * modules/snprintf-tests (Files): Likewise.
24080         * modules/sprintf-posix-tests (Files): Likewise.
24081         * modules/stat-tests (Files): Likewise.
24082         * modules/strcasestr-tests (Files): Likewise.
24083         * modules/strchrnul-tests (Files): Likewise.
24084         * modules/strerror-tests (Files): Likewise.
24085         * modules/strsignal-tests (Files): Likewise.
24086         * modules/strstr-tests (Files): Likewise.
24087         * modules/strtod-tests (Files): Likewise.
24088         * modules/strverscmp-tests (Files): Likewise.
24089         * modules/symlink-tests (Files): Likewise.
24090         * modules/symlinkat-tests (Files): Likewise.
24091         * modules/times-tests (Files): Likewise.
24092         * modules/trunc-tests (Files): Likewise.
24093         * modules/truncf-tests (Files): Likewise.
24094         * modules/truncl-tests (Files): Likewise.
24095         * modules/tsearch-tests (Files): Likewise.
24096         * modules/uname-tests (Files): Likewise.
24097         * modules/unlink-tests (Files): Likewise.
24098         * modules/unsetenv-tests (Files): Likewise.
24099         * modules/usleep-tests (Files): Likewise.
24100         * modules/utimensat-tests (Files): Likewise.
24101         * modules/vasprintf-tests (Files): Likewise.
24102         * modules/vdprintf-posix-tests (Files): Likewise.
24103         * modules/vfprintf-posix-tests (Files): Likewise.
24104         * modules/vprintf-posix-tests (Files): Likewise.
24105         * modules/vsnprintf-posix-tests (Files): Likewise.
24106         * modules/vsnprintf-tests (Files): Likewise.
24107         * modules/vsprintf-posix-tests (Files): Likewise.
24108         * modules/wcrtomb-tests (Files): Likewise.
24109         * modules/wcsnrtombs-tests (Files): Likewise.
24110         * modules/wcsrtombs-tests (Files): Likewise.
24111         * modules/wcwidth-tests (Files): Likewise.
24112         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24113         * tests/test-isinf.c (isinf): Likewise.
24114         * tests/test-isnan.c (isnan): Likewise.
24115         * tests/test-signbit.c (signbit): Likewise.
24116         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24117         declaration, either as macro or with correct signature.
24118         (select): Ensure function under test is declared with correct
24119         signature in correct header.
24120         * tests/test-atexit.c (atexit): Likewise.
24121         * tests/test-btowc.c (btowc): Likewise.
24122         * tests/test-canonicalize-lgpl.c (realpath)
24123         (canonicalize_file_name): Likewise.
24124         * tests/test-ceilf1.c (ceilf): Likewise.
24125         * tests/test-ceill.c (ceill): Likewise.
24126         * tests/test-chown.c (chown): Likewise.
24127         * tests/test-dprintf-posix.c (dprintf): Likewise.
24128         * tests/test-dup2.c (dup2): Likewise.
24129         * tests/test-dup3.c (dup3): Likewise.
24130         * tests/test-duplocale.c (duplocale): Likewise.
24131         * tests/test-fchdir.c (fchdir): Likewise.
24132         * tests/test-fchownat.c (fchownat): Likewise.
24133         * tests/test-fcntl.c (fcntl): Likewise.
24134         * tests/test-fdopendir.c (fdopendir): Likewise.
24135         * tests/test-fflush.c (fflush): Likewise.
24136         * tests/test-flock.c (flock): Likewise.
24137         * tests/test-floorf1.c (floorf): Likewise.
24138         * tests/test-floorl.c (floorl): Likewise.
24139         * tests/test-fnmatch.c (fnmatch): Likewise.
24140         * tests/test-fopen.c (fopen): Likewise.
24141         * tests/test-fprintf-posix.c (fprintf): Likewise.
24142         * tests/test-freopen.c (freopen): Likewise.
24143         * tests/test-frexp.c (frexp): Likewise.
24144         * tests/test-frexpl.c (frexpl): Likewise.
24145         * tests/test-fseek.c (fseek): Likewise.
24146         * tests/test-fseeko.c (fseeko): Likewise.
24147         * tests/test-fstatat.c (fstatat): Likewise.
24148         * tests/test-fsync.c (fsync): Likewise.
24149         * tests/test-ftell.c (ftell): Likewise.
24150         * tests/test-ftello.c (ftello): Likewise.
24151         * tests/test-futimens.c (futimens): Likewise.
24152         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24153         (gai_strerror): Likewise.
24154         * tests/test-getcwd.c (getcwd): Likewise.
24155         * tests/test-getdelim.c (getdelim): Likewise.
24156         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24157         * tests/test-getgroups.c (getgroups): Likewise.
24158         * tests/test-gethostname.c (gethostname): Likewise.
24159         * tests/test-getline.c (getline): Likewise.
24160         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24161         Likewise.
24162         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24163         * tests/test-glob.c (glob, globfree): Likewise.
24164         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24165         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24166         * tests/test-inet_pton.c (inet_pton): Likewise.
24167         * tests/test-isblank.c (isblank): Likewise.
24168         * tests/test-lchown.c (lchown): Likewise.
24169         * tests/test-ldexpl.c (ldexpl): Likewise.
24170         * tests/test-link.c (link): Likewise.
24171         * tests/test-linkat.c (linkat): Likewise.
24172         * tests/test-lseek.c (lseek): Likewise.
24173         * tests/test-lstat.c (lstat): Likewise.
24174         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24175         * tests/test-mbsinit.c (mbsinit): Likewise.
24176         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24177         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24178         * tests/test-memchr.c (memchr): Likewise.
24179         * tests/test-memcmp.c (memcmp): Likewise.
24180         * tests/test-memmem.c (memmem): Likewise.
24181         * tests/test-memrchr.c (memrchr): Likewise.
24182         * tests/test-mkdir.c (mkdir): Likewise.
24183         * tests/test-mkdirat.c (mkdirat): Likewise.
24184         * tests/test-mkfifo.c (mkfifo): Likewise.
24185         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24186         * tests/test-mknod.c (mknod): Likewise.
24187         * tests/test-nanosleep.c (nanosleep): Likewise.
24188         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24189         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24190         Likewise.
24191         * tests/test-open.c (open): Likewise.
24192         * tests/test-openat.c (openat): Likewise.
24193         * tests/test-perror.c (perror): Likewise.
24194         * tests/test-pipe2.c (pipe2): Likewise.
24195         * tests/test-poll.c (poll): Likewise.
24196         * tests/test-popen.c (popen, pclose): Likewise.
24197         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24198         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24199         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24200         (posix_spawn_file_actions_destroy)
24201         (posix_spawn_file_actions_addclose)
24202         (posix_spawn_file_actions_addopen)
24203         (posix_spawn_file_actions_adddup2): Likewise.
24204         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24205         * tests/test-pread.c (pread): Likewise.
24206         * tests/test-printf-posix.c (printf): Likewise.
24207         * tests/test-pty.c (openpty, forkpty): Likewise.
24208         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24209         (random_r): Likewise.
24210         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24211         * tests/test-readlink.c (readlink): Likewise.
24212         * tests/test-remove.c (remove): Likewise.
24213         * tests/test-rename.c (rename): Likewise.
24214         * tests/test-renameat.c (renameat): Likewise.
24215         * tests/test-rmdir.c (rmdir): Likewise.
24216         * tests/test-round1.c (round): Likewise.
24217         * tests/test-roundf1.c (roundf): Likewise.
24218         * tests/test-roundl.c (roundl): Likewise.
24219         * tests/test-setenv.c (setenv): Likewise.
24220         * tests/test-sigaction.c (sigaction): Likewise.
24221         * tests/test-sleep.c (sleep): Likewise.
24222         * tests/test-snprintf.c (snprintf): Likewise.
24223         * tests/test-sprintf-posix.c (sprintf): Likewise.
24224         * tests/test-stat.c (stat): Likewise.
24225         * tests/test-stpncpy.c (stpncpy): Likewise.
24226         * tests/test-strcasestr.c (strcasestr): Likewise.
24227         * tests/test-strchrnul.c (strchrnul): Likewise.
24228         * tests/test-strerror.c (strerror): Likewise.
24229         * tests/test-strsignal.c (strsignal): Likewise.
24230         * tests/test-strstr.c (strstr): Likewise.
24231         * tests/test-strtod.c (strtod): Likewise.
24232         * tests/test-strverscmp.c (strverscmp): Likewise.
24233         * tests/test-symlink.c (symlink): Likewise.
24234         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24235         * tests/test-times.c (times): Likewise.
24236         * tests/test-trunc1.c (trunc): Likewise.
24237         * tests/test-truncf1.c (truncf): Likewise.
24238         * tests/test-truncl.c (truncl): Likewise.
24239         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24240         Likewise.
24241         * tests/test-uname.c (uname): Likewise.
24242         * tests/test-unlink.c (unlink): Likewise.
24243         * tests/test-unlinkat.c (unlinkat): Likewise.
24244         * tests/test-unsetenv.c (unsetenv): Likewise.
24245         * tests/test-usleep.c (usleep): Likewise.
24246         * tests/test-utimensat.c (utimensat): Likewise.
24247         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24248         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24249         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24250         * tests/test-vprintf-posix.c (vprintf): Likewise.
24251         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24252         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24253         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24254         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24255         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24256         * tests/test-wcwidth.c (wcwidth): Likewise.
24257
24258         build: pull in conditional headers during GNULIB_POSIXCHECK
24259         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24260         definitions from any conditionally-included headers.
24261         * lib/stdlib.in.h (includes): Likewise.
24262         * lib/unistd.in.h (includes): Likewise.
24263
24264 2009-12-24  Bruno Haible  <bruno@clisp.org>
24265
24266         * tests/test-argv-iter.c: Include header file being tested immediately
24267         after config.h.
24268         * tests/test-base64.c: Likewise.
24269         * tests/test-flock.c: Likewise.
24270         * tests/test-fsync.c: Likewise.
24271         * tests/test-getdate.c: Likewise.
24272         * tests/test-getndelim2.c: Likewise.
24273         * tests/test-isfinite.c: Likewise.
24274         * tests/test-isinf.c: Likewise.
24275         * tests/test-strerror.c: Likewise.
24276         * tests/test-strsignal.c: Likewise.
24277
24278 2009-12-23  Eric Blake  <ebb9@byu.net>
24279
24280         unistd: work around cygwin bug
24281         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24282         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24283         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24284
24285 2009-12-23  Bruno Haible  <bruno@clisp.org>
24286
24287         localename: More tests.
24288         * tests/test-localename.c (SIZEOF): New macro.
24289         (categories): New variable.
24290         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24291         test_locale_name_default): Add test w.r.t. thread locale.
24292         (test_locale_name_thread): New function.
24293         (main): Invoke it.
24294
24295         localename: Make aware of thread locale.
24296         * lib/localename.h (gl_locale_name_thread): New declaration.
24297         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24298         behaviour with respect to thread locale.
24299         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24300         <langinfo.h>, glthread/lock.h.
24301         (SIZE_BITS): New macro.
24302         (string_hash): New function.
24303         (struct hash_node): New type.
24304         (HASH_TABLE_SIZE): New macro.
24305         (struniq_hash_table, struniq_lock): New variables.
24306         (struniq): New function.
24307         (gl_locale_name_thread): New function.
24308         (gl_locale_name): Invoke it.
24309         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24310         * modules/localename (Depends-on): Add lock.
24311         Reported by Mike Gran <spk121@yahoo.com>.
24312
24313 2009-12-23  Eric Blake  <ebb9@byu.net>
24314
24315         va-args: new module
24316         * modules/va-args: New file.
24317         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24318         * MODULES.html.sh (Core language properties): Mention it.
24319
24320         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24321         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24322         named alias for __attribute__((__unused__)).
24323         * lib/chown.c: Update client.
24324         * lib/fchmodat.c: Likewise.
24325         * lib/fts.c: Likewise.
24326         * lib/getdate.y: Likewise.
24327         * lib/getgroups.c: Likewise.
24328         * lib/getopt.c: Likewise.
24329         * lib/getugroups.c: Likewise.
24330         * lib/mkdir.c: Likewise.
24331         * lib/mkfifo.c: Likewise.
24332         * lib/mkfifoat.c: Likewise.
24333         * lib/mknod.c: Likewise.
24334         * lib/mknodat.c: Likewise.
24335         * lib/readlink.c: Likewise.
24336         * lib/se-context.in.h: Likewise.
24337         * lib/se-selinux.in.h: Likewise.
24338         * lib/sockets.c: Likewise.
24339         * lib/symlink.c: Likewise.
24340         * lib/symlinkat.c: Likewise.
24341         * lib/unicodeio.c: Likewise.
24342         * lib/unistr.h: Likewise.
24343         * tests/test-areadlink.c: Likewise.
24344         * tests/test-areadlinkat.c: Likewise.
24345         * tests/test-filenamecat.c: Likewise.
24346         * tests/test-fseeko.c: Likewise.
24347         * tests/test-ftello.c: Likewise.
24348         * tests/test-getdate.c: Likewise.
24349         * tests/test-getgroups.c: Likewise.
24350         * tests/test-gethostname.c: Likewise.
24351         * tests/test-quotearg.c: Likewise.
24352         * tests/test-version-etc.c: Likewise.
24353         * tests/test-xalloc-die.c: Likewise.
24354         * tests/test-xfprintf-posix.c: Likewise.
24355         * tests/test-xprintf-posix.c: Likewise.
24356         * tests/test-xvasprintf.c: Likewise.
24357
24358         tests: avoid compiler warnings
24359         * tests/test-fcntl.c (main): Delete unused parameters.
24360         * tests/test-freopen-safer.c (main): Likewise.
24361         * tests/test-xalloc-die.c (main): Mark unused parameters.
24362         * tests/test-fseeko.c (main): Likewise.
24363         * tests/test-ftello.c (main): Likewise.
24364         * tests/test-nanosleep.c (main): Avoid declaration warning.
24365         * tests/test-sleep.c (main): Likewise.
24366         * tests/test-unsetenv.c (main): Silence warning about string
24367         literal.
24368         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24369
24370 2009-12-23  Bruno Haible  <bruno@clisp.org>
24371
24372         * tests/test-localename.c (test_locale_name): New function, extracted
24373         from main. Also test mixed situations.
24374         (test_locale_name_posix, test_locale_name_environ,
24375         test_locale_name_default): New functions.
24376         (main): Invoke them all.
24377         * modules/localename-tests (configure.ac): Test for newlocale.
24378
24379 2009-12-23  Bruno Haible  <bruno@clisp.org>
24380
24381         unistd: Ensure getcwd gets declared before being overridden.
24382         * lib/unistd.in.h: Conditionally include <io.h>.
24383
24384 2009-12-22  Bruno Haible  <bruno@clisp.org>
24385
24386         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24387         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24388         (gl_WCHAR_H): Invoke it.
24389         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24390         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24391         Reported by Karl Berry <karl@freefriends.org>.
24392
24393 2009-12-22  Eric Blake  <ebb9@byu.net>
24394
24395         math, unistd: avoid redundant includes
24396         * lib/math.in.h (isnan): No need to re-include <math.h>.
24397         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24398
24399         getsubopt: work around cygwin bug
24400         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24401         avoid conflicting with system getsubopt.
24402         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24403         bug.
24404
24405         getopt: synchronize from glibc
24406         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24407         parameter order.  Adjust all callers.
24408         (_getopt_internal_r, main): Adjust quoting in error messages.
24409         Drop considerations for outdated POSIX 1003.2 error message.
24410         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24411         callers.
24412         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24413
24414         test-getopt: test stderr behavior
24415         * modules/getopt-posix-tests (Depends-on): Add dup2.
24416         * tests/test-getopt.c (ASSERT): Avoid stderr.
24417         (main): Move stderr to a temporary file.
24418         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24419         Instead, add parameter to inform caller if output occurred.
24420         (test_getopt): Adjust all existing tests to expect silence, and
24421         add new tests of leading ":".
24422         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24423         glibc shortcomings with leading "-:" or "+:" in optstring.
24424         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24425         Likewise.
24426         * doc/posix-functions/getopt.texi (getopt): Likewise.
24427
24428         test-getopt: enhance test
24429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24430         supports optind=0.
24431         * tests/test-getopt.c (OPTIND_MIN): Move...
24432         * tests/test-getopt.h (OPTIND_MIN): ...here.
24433         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24434         Require that optind=0 works, since modern BSD supports it in
24435         addition to optreset, and since coreutils expects it.
24436         (test_getopt_long_only): New test.
24437         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24438         glibc shortcomings with 'W;', and enforcement of optind=0.
24439         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24440         Likewise.
24441
24442 2009-12-21  Bruno Haible  <bruno@clisp.org>
24443
24444         localename: Improvements for MacOS X and Cygwin.
24445         * lib/localename.h (gl_locale_name_environ): New declaration.
24446         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24447         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24448         (gl_locale_name_posix): Invoke it.
24449         (gl_locale_name_default): Add comments. Use Windows native API also on
24450         Cygwin.
24451
24452 2009-12-21  Bruno Haible  <bruno@clisp.org>
24453
24454         Update list of Win32 locale ids.
24455         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24456         (LANG_SAMI): Renamed from LANG_SAAMI.
24457         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24458         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24459         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24460         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24461         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24462         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24463         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24464         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24465         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24466         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24467         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24468         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24469         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24470         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24471         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24472         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24473         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24474         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24475         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24476         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24477         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24478         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24479         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24480         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24481         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24482         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24483         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24484         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24485         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24486         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24487         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24488         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24489         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24490         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24491         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24492         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24493         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24494         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24495         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24496         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24497         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24498         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24499         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24500         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24501         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24502         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24503         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24504         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24505         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24506         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24507         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24508         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24509         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24510         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24511         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24512         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24513         Add more languages and countries for Sami, Sorbian. Add more countries
24514         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24515         for Pashto. Change country for Syriac, Tswana.
24516
24517 2009-12-21  Eric Blake  <ebb9@byu.net>
24518
24519         test-utimens: avoid spurious failure
24520         * tests/test-chown.h (nap): Factor...
24521         * tests/nap.h: ...into new file.
24522         * tests/test-lchown.h (nap): Avoid duplication.
24523         * tests/test-utimens-common.h (nap): Use shared implementation,
24524         necessary on file systems with 1-second resolution.
24525         * modules/chown-tests (Files): Include new file.
24526         * modules/fdutimensat-tests (Files): Likewise.
24527         * modules/futimens-tests (Files): Likewise.
24528         * modules/lchown-tests (Files): Likewise.
24529         * modules/openat-tests (Files): Likewise.
24530         * modules/utimens-tests (Files): Likewise.
24531         * modules/utimensat-tests (Files): Likewise.
24532
24533 2009-12-19  Eric Blake  <ebb9@byu.net>
24534
24535         futimens, utimensat: work around Linux bug
24536         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24537         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24538         * lib/utimensat.c (rpl_utimensat): Work around it.
24539         * lib/futimens.c (rpl_futimens): Adjust comment.
24540
24541         utimens: work around Linux ctime bug
24542         * lib/utimens.c (detect_ctime_bug): New helper function.
24543         (update_timespec): Differentiate between workaround needed for
24544         this bug vs. what is needed for systems that lack utimensat.
24545         (fdutimens, lutimens): Work around bug.
24546
24547         utimens: check for ctime update
24548         * tests/test-utimens-common.h (check_ctime): Define.
24549         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24550         * tests/test-futimens.h (test_futimens): Likewise.
24551         * tests/test-lutimens.h (test_lutimens): Likewise.
24552         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24553         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24554
24555 2009-12-19  Bruno Haible  <bruno@clisp.org>
24556
24557         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24558         * tests/test-dprintf-posix2.sh: New file.
24559         * tests/test-dprintf-posix2.c: New file.
24560         * modules/dprintf-posix-tests (Files): Add them.
24561         (configure.ac): Check for getrlimit and setrlimit.
24562         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24563
24564 2009-12-19  Bruno Haible  <bruno@clisp.org>
24565
24566         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24567         * tests/test-fprintf-posix3.sh: New file.
24568         * tests/test-fprintf-posix3.c: New file.
24569         * modules/fprintf-posix-tests (Files): Add them.
24570         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24571
24572 2009-12-19  Eric Blake  <ebb9@byu.net>
24573
24574         dirfd: fix prototype
24575         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24576         * lib/dirfd.c (dirfd): Likewise.
24577
24578         canonicalize: reduce memory usage
24579         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24580         allocation to size.
24581         Reported by Solar Designer <solar@openwall.com>.
24582
24583 2009-12-19  Bruno Haible  <bruno@clisp.org>
24584
24585         New module attribute 'Applicability'.
24586         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24587         * gnulib-tool: New option --extract-applicability.
24588         (func_usage): Document it.
24589         (sed_extract_prog): Recognize it.
24590         (func_get_applicability): New function.
24591         (func_import): Generalize handling of 'link-warning' module.
24592         * modules/link-warning (Applicability): New section.
24593         * modules/arg-nonnull (Applicability): New section.
24594         Repoted by Simon Josefsson <simon@josefsson.org>.
24595
24596 2009-12-19  Bruno Haible  <bruno@clisp.org>
24597
24598         fflush: tweak
24599         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24600         * lib/fseeko.c (rpl_fseeko): Likewise.
24601
24602 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24603
24604         * lib/gl_list.h: Fix typo in comment.
24605
24606 2009-12-16  Eric Blake  <ebb9@byu.net>
24607
24608         fcntl: use to simplify other modules
24609         * modules/cloexec (Depends-on): Add fcntl.
24610         * modules/fchdir (Depends-on): Likewise.
24611         * modules/fd-safer-flag (Depends-on): Likewise.
24612         * modules/unistd-safer (Depends-on): Likewise.
24613         * modules/dup3 (configure.ac): Set module indicator.
24614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24615         missing.
24616         * lib/fchdir.c (_gl_register_dup): Fix comment.
24617         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24618         * lib/dup-safer.c (dup_safer): Likewise.
24619         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24620         * lib/dup3.c (dup3): Likewise.
24621         * tests/test-fchdir.c (main): Enhance test.
24622         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24623
24624         fcntl: port portions of fcntl to mingw
24625         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24626         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24627         replacement for mingw.
24628         * modules/fcntl (Description): Update.
24629         (Depends-on): Add dup2.
24630         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24631         * modules/fcntl-h (Makefile.am): Substitute it.
24632         * lib/fcntl.in.h (fcntl): Update declaration.
24633         (F_DUPFD, F_GETFD): New macros, when needed.
24634         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24635         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24636         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24637         we now guarantee.
24638
24639         fcntl: work around cygwin bug in F_DUPFD
24640         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24641         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24642         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24643         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24644         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24645
24646         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24647         * modules/fcntl (Files): List new files.
24648         (configure.ac): Run a test.
24649         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24650         * lib/fcntl.c (rpl_fcntl): Likewise.
24651         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24652         (gl_FCNTL_H): Always replace fcntl.h.
24653         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24654         * lib/fcntl.in.h (fcntl): Declare replacement.
24655         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24656         needed, plus a witness.
24657         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24658         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24659         * tests/test-fcntl.c: New file.
24660         * modules/fcntl-tests: Likewise.
24661
24662         binary-io: avoid potential compilation warning
24663         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24664         directives.
24665
24666         fflush: avoid compilation error on NetBSD
24667         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24668         between off_t and fpos_t, since the latter is sometimes a struct.
24669         * lib/fseeko.c (rpl_fseeko): Likewise.
24670         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24671
24672 2009-12-15  Eric Blake  <ebb9@byu.net>
24673
24674         fcntl-h, stdio, sys_ioctl: fix declarations
24675         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24676         function must not take arguments.
24677         * lib/sys_ioctl.in.h (ioctl): Likewise.
24678         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24679         (open): Add a link warning.
24680
24681 2009-12-15  Jim Meyering  <meyering@redhat.com>
24682
24683         areadlink, areadlink-with-size: relax license to LGPLv2+
24684         * modules/areadlink (License): Relax to LGPLv2+.
24685         * modules/areadlink-with-size (License): Likewise.
24686
24687 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24688             Bruno Haible  <bruno@clisp.org>
24689
24690         *printf: Fix memory leak.
24691         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24692         * lib/vfprintf.c (vfprintf): Likewise.
24693         * lib/dprintf.c (dprintf): Likewise.
24694         * lib/vdprintf.c (vdprintf): Likewise.
24695
24696 2009-12-14  Eric Blake  <ebb9@byu.net>
24697
24698         accept4: adjust module dependencies
24699         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24700
24701         utimens: one more try at avoiding compiler warning
24702         * lib/utimens.c (lutimens): Lower scope of result.
24703
24704 2009-12-13  Bruno Haible  <bruno@clisp.org>
24705
24706         Move the malloc checking from module 'list' to new module 'xlist'.
24707         * modules/xlist: New file.
24708         * lib/gl_xlist.h: New file.
24709         * lib/gl_xlist.c: New file.
24710         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24711         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24712         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24713         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24714         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24715         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24716         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24717         gl_sortedlist_nx_add): New declarations.
24718         (struct gl_list_implementation): Rename and change methods accordingly.
24719         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24720         (gl_list_nx_create): Renamed from gl_list_create.
24721         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24722         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24723         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24724         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24725         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24726         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24727         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24728         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24729         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24730         gl_list_create_empty.
24731         (gl_list_nx_create): Renamed from gl_list_create.
24732         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24733         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24734         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24735         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24736         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24737         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24738         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24739         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24740         * lib/gl_array_list.c: Don't include xalloc.h.
24741         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24742         NULL upon out-of-memory.
24743         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24744         out-of-memory.
24745         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24746         Change return type to 'int'.
24747         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24748         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24749         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24750         upon out-of-memory.
24751         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24752         upon out-of-memory.
24753         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24754         upon out-of-memory.
24755         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24756         upon out-of-memory.
24757         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24758         out-of-memory.
24759         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24760         Update.
24761         (gl_array_list_implementation): Update.
24762         * lib/gl_carray_list.c: Don't include xalloc.h.
24763         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24764         Return NULL upon out-of-memory.
24765         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24766         out-of-memory.
24767         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24768         Change return type to 'int'.
24769         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24770         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24771         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24772         upon out-of-memory.
24773         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24774         upon out-of-memory.
24775         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24776         out-of-memory.
24777         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24778         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24779         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24780         Update.
24781         (gl_carray_list_implementation): Update.
24782         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24783         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24784         gl_linked_create_empty. Return NULL upon out-of-memory.
24785         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24786         out-of-memory.
24787         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24788         Change return type to 'int'. Return -1 upon out-of-memory.
24789         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24790         out-of-memory.
24791         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24792         upon out-of-memory.
24793         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24794         upon out-of-memory.
24795         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24796         NULL upon out-of-memory.
24797         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24798         upon out-of-memory.
24799         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24800         out-of-memory.
24801         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24802         Update.
24803         * lib/gl_linked_list.c: Don't include xalloc.h.
24804         (gl_linked_list_implementation): Update.
24805         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24806         (add_to_bucket): Change return type to 'int'.
24807         (gl_linkedhash_list_implementation): Update.
24808         * lib/gl_anytree_list1.h (free_subtree): New function.
24809         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24810         gl_tree_create_empty. Return NULL upon out-of-memory.
24811         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24812         Change return type to 'int'. Return -1 upon out-of-memory.
24813         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24814         out-of-memory.
24815         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24816         (gl_tree_remove_node): New function, moved here from
24817         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24818         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24819         Update.
24820         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24821         malloc, not xmalloc. Return NULL upon out-of-memory.
24822         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24823         out-of-memory.
24824         (gl_tree_remove_node_from_tree): New function, extracted from
24825         gl_tree_remove_node.
24826         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24827         upon out-of-memory.
24828         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24829         out-of-memory.
24830         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24831         upon out-of-memory.
24832         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24833         upon out-of-memory.
24834         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24835         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24836         not xmalloc. Return NULL upon out-of-memory.
24837         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24838         out-of-memory.
24839         (gl_tree_remove_node_from_tree): New function, extracted from
24840         gl_tree_remove_node.
24841         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24842         upon out-of-memory.
24843         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24844         out-of-memory.
24845         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24846         upon out-of-memory.
24847         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24848         upon out-of-memory.
24849         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24850         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24851         gl_anytree_list1.h before gl_anyavltree_list2.h.
24852         (gl_avltree_list_implementation): Update.
24853         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24854         gl_anytree_list1.h before gl_anyavltree_list2.h.
24855         (gl_rbtree_list_implementation): Update.
24856         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24857         Change return type to 'int'. Return -1 upon out-of-memory. Use
24858         __builtin_expect.
24859         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24860         (gl_avltreehash_list_implementation): Update.
24861         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24862         (gl_rbtreehash_list_implementation): Update.
24863         * modules/array-list (Depends-on): Remove xalloc.
24864         * modules/carray-list (Depends-on): Likewise.
24865         * modules/linked-list (Depends-on): Likewise.
24866         * modules/linkedhash-list (Depends-on): Likewise.
24867         * modules/avltree-list (Depends-on): Likewise.
24868         * modules/rbtree-list (Depends-on): Likewise.
24869         * modules/avltreehash-list (Depends-on): Likewise.
24870         * modules/rbtreehash-list (Depends-on): Likewise.
24871
24872         * modules/xsublist: New file.
24873         * lib/gl_xsublist.h: New file.
24874         * lib/gl_xsublist.c: New file.
24875         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24876         (gl_sublist_nx_create): New declaration.
24877         * lib/gl_sublist.c: Don't include xalloc.h.
24878         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24879         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24880         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24881         Change return type to 'int'. Return -1 upon out-of-memory.
24882         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24883         upon out-of-memory.
24884         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24885         NULL upon out-of-memory.
24886         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24887         upon out-of-memory.
24888         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24889         NULL upon out-of-memory.
24890         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24891         NULL upon out-of-memory.
24892         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24893         upon out-of-memory.
24894         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24895         (gl_sublist_list_implementation): Update.
24896         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24897         upon out-of-memory.
24898         * modules/sublist (Depends-on): Remove xalloc.
24899
24900         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24901         * tests/test-carray_list.c: Likewise.
24902         * tests/test-linked_list.c: Likewise.
24903         * tests/test-linkedhash_list.c: Likewise.
24904         * tests/test-avltree_list.c: Likewise.
24905         * tests/test-rbtree_list.c: Likewise.
24906         * tests/test-avltreehash_list.c: Likewise.
24907         * tests/test-rbtreehash_list.c: Likewise.
24908         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24909         * modules/carray-list-tests (Makefile.am): Likewise.
24910         * modules/linked-list-tests (Makefile.am): Likewise.
24911         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24912         * modules/avltree-list-tests (Makefile.am): Likewise.
24913         * modules/rbtree-list-tests (Makefile.am): Likewise.
24914         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24915         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24916
24917         * NEWS: Mention the changes.
24918
24919         * lib/clean-temp.c: Include gl_xlist.h.
24920         * modules/clean-temp (Depends-on): Add xlist.
24921
24922         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24923         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24924
24925         * tests/test-array_oset.c: Include gl_xlist.h.
24926         * modules/array-oset-tests (Depends-on): Add xlist.
24927
24928         Reported by José E. Marchesi <jemarch@gnu.org>.
24929
24930 2009-12-13  Bruno Haible  <bruno@clisp.org>
24931
24932         Move the malloc checking from module 'oset' to new module 'xoset'.
24933         * modules/xoset: New file.
24934         * lib/gl_xoset.h: New file.
24935         * lib/gl_xoset.c: New file.
24936         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24937         declarations.
24938         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24939         (struct gl_oset_implementation): Rename and change methods accordingly.
24940         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24941         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24942         'int'. Mark as __warn_unused_result__.
24943         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24944         gl_oset_create_empty.
24945         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24946         'int'.
24947         * lib/gl_array_oset.c: Don't include xalloc.h.
24948         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24949         malloc, not xmalloc.
24950         (grow): Change return type to 'int'. Don't call xalloc_die.
24951         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24952         to 'int'.
24953         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24954         'int'.
24955         (gl_array_oset_implementation): Update.
24956         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24957         gl_tree_create_empty.
24958         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24959         'int'.
24960         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24962         xmalloc.
24963         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24964         not xmalloc.
24965         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24966         xmalloc.
24967         (gl_avltree_oset_implementation): Update.
24968         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24969         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24970         xmalloc.
24971         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24972         not xmalloc.
24973         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24974         xmalloc.
24975         (gl_rbtree_oset_implementation): Update.
24976         * modules/array-oset (Depends-on): Remove xalloc.
24977         * modules/avltree-oset (Depends-on): Likewise.
24978         * modules/rbtree-oset (Depends-on): Likewise.
24979         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24980         * tests/test-avltree_oset.c: Likewise.
24981         * tests/test-rbtree_oset.c: Likewise.
24982         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24983         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24984         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24985         * NEWS: Mention the change.
24986
24987 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24988
24989         maint.mk: allow a project to override release-prep commands
24990         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24991         commands into a new rule.
24992         (release-prep): New rule.
24993         (release-prep-hook): New overridable variable.
24994
24995 2009-12-13  Bruno Haible  <bruno@clisp.org>
24996
24997         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24998
24999 2009-12-13  Jim Meyering  <meyering@redhat.com>
25000
25001         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25002         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25003
25004 2009-12-12  Bruno Haible  <bruno@clisp.org>
25005
25006         duplocale: Tweak.
25007         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25008
25009 2009-12-12  Karl Berry  <karl@gnu.org>
25010
25011         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25012
25013 2009-12-12  Bruno Haible  <bruno@clisp.org>
25014
25015         * m4/po.m4: Undo incorrect untabification.
25016
25017 2009-12-12  Bruno Haible  <bruno@clisp.org>
25018
25019         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25020         * modules/c-strtod (Depends-on): Add locale.
25021         * modules/c-strtold (Depends-on): Likewise.
25022
25023 2009-12-12  Bruno Haible  <bruno@clisp.org>
25024
25025         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25026
25027 2009-12-11  Eric Blake  <ebb9@byu.net>
25028
25029         setenv: relax requirement in light of POSIX ruling
25030         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25031         not NULL.
25032         * tests/test-setenv.c (main): Relax test.
25033         * tests/test-unsetenv.c (main): Likewise.
25034         * doc/posix-functions/setenv.texi (setenv): Document this.
25035         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25036
25037 2009-12-11  Bruno Haible  <bruno@clisp.org>
25038
25039         New module 'fd-safer-flag'.
25040         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25041         * lib/dup-safer.c (dup_safer_flag): Remove function.
25042         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25043         * lib/fd-safer.c (fd_safer_flag): Remove function.
25044         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25045         * modules/cloexec (configure.ac): Drop indicator macro.
25046         * modules/fd-safer-flag: New file.
25047         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25048         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25049         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25050
25051 2009-12-11  Bruno Haible  <bruno@clisp.org>
25052
25053         Tests for module 'nl_langinfo'.
25054         * modules/nl_langinfo-tests: New file.
25055         * tests/test-nl_langinfo.sh: New file.
25056         * tests/test-nl_langinfo.c: New file.
25057
25058         New module 'nl_langinfo'.
25059         * lib/nl_langinfo.c: New file.
25060         * m4/nl_langinfo.m4: New file.
25061         * modules/nl_langinfo: New file.
25062         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25063
25064 2009-12-11  Bruno Haible  <bruno@clisp.org>
25065
25066         Tests for module 'langinfo'.
25067         * modules/langinfo-tests: New file.
25068         * tests/test-langinfo.c: New file.
25069
25070         New module 'langinfo'.
25071         * lib/langinfo.in.h: New file.
25072         * m4/langinfo_h.m4: New file.
25073         * modules/langinfo: New file.
25074         * doc/posix-headers/langinfo.texi: Mention the new module.
25075
25076 2009-12-11  Bruno Haible  <bruno@clisp.org>
25077
25078         * lib/config.charset: Untabify.
25079
25080 2009-12-11  Bruno Haible  <bruno@clisp.org>
25081
25082         * modules/unistd-safer (configure.ac): Drop indicator macro.
25083
25084 2009-12-11  Bruno Haible  <bruno@clisp.org>
25085
25086         Move pipe2-safer code to its own file.
25087         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25088         * lib/pipe-safer.c (pipe2_safer): Remove function.
25089         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25090         (Makefile.am): Add it to lib_SOURCES.
25091
25092 2009-12-10  Bruno Haible  <bruno@clisp.org>
25093
25094         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25095
25096 2009-12-10  Bruno Haible  <bruno@clisp.org>
25097
25098         Declare which arguments expect non-NULL values, for GCC and clang.
25099         * build-aux/arg-nonnull.h: New file.
25100         * modules/arg-nonnull: New file.
25101         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25102         (inet_ntop, inet_pton): Use it.
25103         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25104         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25105         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25106         (open, openat): Use it.
25107         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25108         (fnmatch): Use it.
25109         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25110         (getopt, getopt_long, getopt_long_only): Use it.
25111         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25112         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25113         Use it.
25114         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25115         (iconv_open): Use it.
25116         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25117         (strtoimax, strtoumax): Use it.
25118         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25119         (duplocale): Use it.
25120         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25121         (frexp, frexpl): Use it.
25122         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25123         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25124         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25125         (tsearch, tfind, tdelete, twalk): Use it.
25126         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25127         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25128         sigpending): Use it.
25129         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25130         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25131         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25132         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25133         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25134         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25135         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25136         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25137         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25138         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25139         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25140         Use it.
25141         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25142         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25143         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25144         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25145         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25146         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25147         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25148         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25149         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25150         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25151         strtoull, unsetenv): Use it.
25152         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25153         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25154         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25155         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25156         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25157         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25158         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25159         (strcasecmp, strncasecmp): Use it.
25160         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25161         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25162         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25163         rpl_setsockopt): Use it.
25164         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25165         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25166         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25167         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25168         (gettimeofday): Use it.
25169         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25170         (times): Use it.
25171         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25172         (uname): Use it.
25173         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25174         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25175         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25176         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25177         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25178         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25179         unlinkat, write): Use it.
25180         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25181         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25182         * lib/argv-iter.h: Include arg-nonnull.h.
25183         (_ATTRIBUTE_NONNULL_): Remove macro.
25184         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25185         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25186         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25187         optimization.
25188         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25189         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25190         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25191         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25192         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25193         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25194         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25195         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25196         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25197         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25198         * modules/dirent (Depends-on): Add arg-nonnull.
25199         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25200         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25201         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25202         * modules/fnmatch (Depends-on): Add arg-nonnull.
25203         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25204         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25205         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25206         * modules/glob (Depends-on): Add arg-nonnull.
25207         (Makefile.am): Insert arg-nonnull.h into glob.h.
25208         * modules/iconv_open (Depends-on): Add arg-nonnull.
25209         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25210         * modules/inttypes (Depends-on): Add arg-nonnull.
25211         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25212         * modules/locale (Depends-on): Add arg-nonnull.
25213         (Makefile.am): Insert arg-nonnull.h into locale.h.
25214         * modules/math (Depends-on): Add arg-nonnull.
25215         (Makefile.am): Insert arg-nonnull.h into math.h.
25216         * modules/netdb (Depends-on): Add arg-nonnull.
25217         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25218         * modules/search (Depends-on): Add arg-nonnull.
25219         (Makefile.am): Insert arg-nonnull.h into search.h.
25220         * modules/signal (Depends-on): Add arg-nonnull.
25221         (Makefile.am): Insert arg-nonnull.h into signal.h.
25222         * modules/spawn (Depends-on): Add arg-nonnull.
25223         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25224         * modules/stdio (Depends-on): Add arg-nonnull.
25225         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25226         * modules/stdlib (Depends-on): Add arg-nonnull.
25227         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25228         * modules/string (Depends-on): Add arg-nonnull.
25229         (Makefile.am): Insert arg-nonnull.h into string.h.
25230         * modules/strings (Depends-on): Add arg-nonnull.
25231         (Makefile.am): Insert arg-nonnull.h into strings.h.
25232         * modules/sys_socket (Depends-on): Add arg-nonnull.
25233         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25234         * modules/sys_stat (Depends-on): Add arg-nonnull.
25235         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25236         * modules/sys_time (Depends-on): Add arg-nonnull.
25237         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25238         * modules/sys_times (Depends-on): Add arg-nonnull.
25239         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25240         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25241         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25242         * modules/time (Depends-on): Add arg-nonnull.
25243         (Makefile.am): Insert arg-nonnull.h into time.h.
25244         * modules/unistd (Depends-on): Add arg-nonnull.
25245         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25246         * modules/wchar (Depends-on): Add arg-nonnull.
25247         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25248         * modules/argv-iter (Depends-on): Add arg-nonnull.
25249         * tests/test-canonicalize.c (null_ptr): New function.
25250         (main): Use it.
25251         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25252         (main): Use it.
25253         * tests/test-memmem.c (null_ptr): New function.
25254         (main): Use it.
25255         Reported by Jim Meyering.
25256
25257 2009-12-10  Bruno Haible  <bruno@clisp.org>
25258
25259         Use spaces for indentation, not tabs.
25260         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25261         * m4/*.m4: Untabify.
25262         * build-aux/*.h: Untabify.
25263         * tests/**/*.[hc]: Untabify.
25264         * README: New section "Indent with spaces, not TABs", based on
25265         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25266         * NEWS: Mention the change.
25267
25268 2009-12-10  Bruno Haible  <bruno@clisp.org>
25269
25270         pty test: Fix link error.
25271         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25272         test_pty_LDADD.
25273
25274 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25275
25276         * modules/pty: New file.
25277         * modules/pty-tests: New file.
25278         * m4/pty.m4: New file.
25279         * tests/test-pty.c: New file.
25280         * doc/glibc-headers/pty.texi: Modified.
25281         * doc/glibc-functions/forkpty.texi: Modified.
25282         * doc/glibc-functions/openpty.texi: Modified.
25283
25284 2009-12-10  Bruno Haible  <bruno@clisp.org>
25285
25286         Avoid syntax error in C++ mode.
25287         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25288
25289 2009-12-10  Bruno Haible  <bruno@clisp.org>
25290
25291         Use sed with option -e.
25292         * gnulib-tool (func_version, func_emit_copyright_notice,
25293         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25294         option -e to sed.
25295         * modules/link-warning (Makefile.am): Likewise.
25296
25297 2009-12-10  Jim Meyering  <meyering@redhat.com>
25298
25299         mgetgroups: do not write bytes beyond end of malloc'd buffer
25300         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25301         username, we call getgroups with a one-element-shorter buffer,
25302         but still told it the length was original, max_n_groups.
25303
25304 2009-12-09  Eric Blake  <ebb9@byu.net>
25305
25306         cloexec: relax license
25307         * modules/cloexec (Maintainer): Add myself.
25308         (License): Use LGPL, not GPL.
25309
25310         link-warning: optimize generation
25311         * modules/link-warning (Makefile.am): Reduce process usage.
25312
25313 2009-12-09  Bruno Haible  <bruno@clisp.org>
25314
25315         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25316         workaround was added on 2009-11-17.
25317
25318 2009-12-09  Jim Meyering  <meyering@redhat.com>
25319             Bruno Haible  <bruno@clisp.org>
25320
25321         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25322         * modules/link-warning (Makefile.am): Make the comment-removing sed
25323         command more robust in the face of bootstrap-prepended comment lines.
25324
25325 2009-12-09  Bruno Haible  <bruno@clisp.org>
25326
25327         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25328         most one group.
25329
25330 2009-12-09  Simon Josefsson <simon@josefsson.org>
25331             Bruno Haible  <bruno@clisp.org>
25332
25333         * build-aux/link-warning.h: Add copyright notice.
25334         * modules/link-warning (Makefile.am): Generate link-warning.h from
25335         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25336         * NEWS: Mention change in link-warning module.
25337         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25338         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25339         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25340         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25341         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25342         * modules/math (Makefile.am): Add dependency to math.h.
25343         * modules/search (Makefile.am): Add dependency to search.h.
25344         * modules/signal (Makefile.am): Add dependency to signal.h.
25345         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25346         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25347         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25348         * modules/string (Makefile.am): Add dependency to string.h.
25349         * modules/strings (Makefile.am): Add dependency to strings.h.
25350         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25351         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25352         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25353         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25354         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25355         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25356         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25357         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25358         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25359
25360 2009-12-09  Bruno Haible  <bruno@clisp.org>
25361
25362         fchdir: Optimize away rpl_fstat when possible.
25363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25364         REPLACE_OPEN_DIRECTORY.
25365         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25366
25367 2009-12-09  Bruno Haible  <bruno@clisp.org>
25368
25369         * lib/fchdir.c: Update comment.
25370
25371 2009-12-09  Bruno Haible  <bruno@clisp.org>
25372
25373         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25374
25375 2009-12-08  Eric Blake  <ebb9@byu.net>
25376
25377         fchdir: avoid memory leak on re-registration.
25378         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25379
25380 2009-12-08  Jim Meyering  <meyering@redhat.com>
25381
25382         init.sh: avoid Solaris 10 /bin/sh portability problem
25383         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25384         sourced script:
25385           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25386           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25387           bar
25388         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25389         and two tests used that idiom.
25390         * tests/init.sh: Update suggested usage comments.
25391         (path_prepend_): New function, to be used in place
25392         of the --src-path=DIR option.
25393         (setup_): Move PATH-prepending code into path_prepend_.
25394         * tests/test-pread.sh: Adapt to new usage.
25395         * tests/test-xalloc-die.sh: Likewise.
25396
25397 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25398
25399         * doc/gnulib.texi (Glibc pty.h): Add.
25400         * doc/glibc-functions/forkpty.texi: Add.
25401         * doc/glibc-functions/openpty.texi: Add.
25402         Suggested by Bruno Haible.
25403
25404 2009-12-08  Eric Blake  <ebb9@byu.net>
25405
25406         fchdir: fix logic bugs
25407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25408         * tests/test-fchdir.c (main): Enhance test.
25409         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25410         is in use.
25411
25412         dup2: fix logic bugs
25413         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25414         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25415         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25416         exists.
25417         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25418
25419 2009-12-07  Eric Blake  <ebb9@byu.net>
25420
25421         unlink: fix m4 detection
25422         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25423
25424         unistd-safer: add unit test
25425         * modules/unistd-safer-tests: New file.
25426         * tests/test-dup-safer.c: Likewise.
25427         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25428         * tests/test-dup2.c (setmode): Likewise.
25429         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25430
25431         cloexec: preserve text vs. binary across dup_cloexec
25432         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25433         mode.
25434         * modules/dup2-tests (Depends-on): Add binary-io.
25435         * modules/cloexec-tests (Depends-on): Likewise.
25436         * tests/test-dup2.c (setmode, is_mode): New helpers.
25437         (main): Add tests that translation mode is preserved.
25438         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25439         Reported by Bruno Haible.
25440
25441         mgetgroups: reduce duplicate listings
25442         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25443         resulting array.
25444         * tests/test-chown.h (test_chown): Simplify client.
25445         * tests/test-lchown.h (test_lchown): Likewise.
25446
25447 2009-12-06  Bruno Haible  <bruno@clisp.org>
25448
25449         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25450         value.
25451
25452 2009-12-06  Bruno Haible  <bruno@clisp.org>
25453
25454         * lib/progname.c: Include stdio.h, stdlib.h.
25455         (set_program_name): Reject a NULL argument.
25456
25457 2009-12-05  Eric Blake  <ebb9@byu.net>
25458
25459         pipe2-safer: new module
25460         * modules/pipe2-safer: New file.
25461         * lib/unistd-safer.h (pipe2_safer): New prototype.
25462         * lib/unistd--.h (pipe2): New wrapper.
25463         * lib/pipe-safer.c (pipe2_safer): New function.
25464         * modules/pipe (Depends-on): Add pipe2-safer.
25465         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25466
25467         stdlib-safer: preserve cloexec flag for mkostemp[s]
25468         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25469         fd_safer_flag.
25470
25471         unistd-safer: allow preservation of cloexec status via flag
25472         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25473         prototypes.
25474         * lib/dup-safer.c (dup_safer_flag): New function.
25475         * lib/fd-safer.c (fd_safer_flag): Likewise.
25476         * modules/cloexec (configure.ac): Set witness.
25477
25478         test-dup2: enhance test
25479         * modules/dup2-tests (Depends-on): Add cloexec.
25480         * tests/test-dup2.c (main): Enhance test.
25481
25482         cloexec: add dup_cloexec
25483         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25484         header and comments.
25485         * lib/cloexec.c (set_cloexec_flag): Add comments.
25486         (dup_cloexec): New function, with mingw implementation borrowed
25487         from...
25488         * lib/w32spawn.h (dup_noinherit): ...here.
25489         * modules/execute (Depends-on): Add cloexec.
25490         * modules/pipe (Depends-on): Likewise.
25491         * modules/cloexec (Depends-on): Add dup2.
25492         * modules/cloexec-tests (Files): New file.
25493         * tests/test-cloexec.c: Likewise.
25494
25495         test-xalloc-die: fix test for mingw
25496         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25497         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25498         directory and .exe suffix off argv[0] output.
25499
25500         test-fseeko: fix test for mingw
25501         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25502         than undefining fseek, so test will pass on mingw.
25503
25504 2009-12-05  Bruno Haible  <bruno@clisp.org>
25505
25506         * lib/progname.h (set_program_name): Clarify specification.
25507         * lib/progname.c (set_program_name): Likewise.
25508         Reported by Jim Meyering.
25509
25510 2009-12-05  Jim Meyering  <meyering@redhat.com>
25511
25512         maint.mk: backslash-escape parens in default regexp
25513         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25514         backslash-escape the literal parentheses.
25515
25516         maint.mk: news-date-check: use grep -E
25517         * top/maint.mk (today): Define a Make variable, not a...
25518         (news-date-check): ...shell variable.
25519         (news-date-regexp): Use the Make variable.
25520         Use grep's -E option.  Change the failing diagnostic to mention
25521         the variable, $(news-date-regexp).
25522
25523 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25524
25525         maintainer-makefile: allow customization of NEWS entry format
25526         * top/maint.mk (news-date-regexp): New overridable variable.
25527         (news-date-check): Use it.
25528
25529 2009-12-04  Eric Blake  <ebb9@byu.net>
25530
25531         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25532         * lib/mgetgroups.h (xgetgroups): New prototype.
25533         * lib/mgetgroups.c (xgetgroups): New wrapper.
25534         (mgetgroups): Handle ENOSYS.
25535         * modules/mgetgroups (Depends-on): Add realloc.
25536         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25537
25538         mgetgroups: avoid argument promotion issues with -1
25539         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25540         for invalid gid_t.
25541         * tests/test-chown.h (getegid, test_chown): Likewise.
25542         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25543
25544 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25545
25546         exclude: Fix header file problems.
25547         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25548
25549 2009-12-01  Jim Meyering  <meyering@redhat.com>
25550
25551         fts: fts_open: do not let an empty string cause immediate failure
25552         This is required in support of GNU rm, for which the command
25553         "rm A '' B" must process and remove both A and B, in spite of
25554         the empty string argument.
25555         * lib/fts.c (fts_open): Do not let the presence of an empty string
25556         cause fts_open to fail immediately.  Most fts-using tools must be
25557         able to process all arguments, in order, and can be expected to
25558         diagnose such arguments themselves.
25559
25560 2009-11-30  Eric Blake  <ebb9@byu.net>
25561
25562         utimens: fix compilation error
25563         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25564         Declare variable at right scope.
25565
25566 2009-11-29  Jim Meyering  <meyering@redhat.com>
25567
25568         bootstrap: handle perl-5.11's changed --version output
25569         * build-aux/bootstrap (get_version): Handle perl separately,
25570         since perl-5.11's --version output is different.
25571
25572 2009-11-28  Jim Meyering  <meyering@redhat.com>
25573
25574         userspec: depend on the inttostr module, too
25575         * modules/userspec (Depends-on): Add inttostr.
25576
25577         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25578         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25579         number of MAXUID when it evaluates to (uid_t) -1.
25580         Likewise for group ID.  Reported by Matt McCutchen in
25581         <http://savannah.gnu.org/bugs/?28113>
25582
25583         userspec: reformat to use spaces, not TABs
25584         * lib/userspec.c: Expand TABs to spaces.
25585         Add Emacs' "indent-tabs-mode: nil" hint.
25586
25587 2009-11-27  Eric Blake  <ebb9@byu.net>
25588
25589         getopt-gnu: flush out another BSD bug
25590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25591         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25592         flush out BSD bug.
25593         * tests/test-getopt.h (test_getopt): End lists with NULL.
25594         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25595         (test_getopt_long_posix): Enhance test.
25596         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25597         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25598         getopt-gnu.
25599         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25600         Likewise.
25601
25602 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25603
25604         * modules/idpriv-droptemp-tests (Notice): Fix text.
25605
25606 2009-11-27  Jim Meyering  <meyering@redhat.com>
25607
25608         test-xalloc-die: avoid spurious failure due to libtool argv difference
25609         In a libtool-enabled project, this test would fail due to a difference
25610         in the emitted program name, e.g.,
25611         -test-xalloc-die: memory exhausted
25612         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25613         Use program to avoid that.
25614         * modules/xalloc-die-tests (Depends-on): Add progname.
25615         * tests/test-xalloc-die.c: Include progname.h".
25616         (program_name): Remove decl.
25617         (main): Call set_program_name.
25618         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25619
25620 2009-11-26  Richard Jones  <rjones@redhat.com>
25621
25622         w32sock: leave win32 error in place.
25623         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25624
25625 2009-11-26  Eric Blake  <ebb9@byu.net>
25626
25627         init.sh: suggest to use skip_ and fail_ functions in comments
25628         * tests/init.sh: Add a sentence.
25629
25630 2009-11-25  Bruno Haible  <bruno@clisp.org>
25631
25632         init.sh: add documentation in comments
25633         * tests/init.sh: Add some developer and user documentation.
25634
25635 2009-11-26  Jim Meyering  <meyering@redhat.com>
25636
25637         init.sh: accommodate even those who specify bogus srcdir manually
25638         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25639         configure-time tests to be sanitized, so that there is no need to
25640         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25641         (with no double quotes) suffices.  However, since tests may be
25642         invoked manually, and since you may explicitly set srcdir to the
25643         name of a directory containing spaces, do quote its uses here.
25644         * tests/test-pread.sh: Likewise.
25645         Suggested by Bruno Haible.
25646
25647         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25648         * tests/test-pread.sh: Write no data into the pipe, because
25649         test-pread actually reads none.  This avoids a diagnostic,
25650         "bash: echo: write error: Broken pipe", that arises in the unusual
25651         event something is ignoring SIGPIPE, and might be interpreted
25652         as some sort of failure.  Reported by Bruno Haible.
25653
25654 2009-11-25  Jim Meyering  <meyering@redhat.com>
25655
25656         test-pread: cover failure with ESPIPE and EINVAL
25657         * tests/test-pread.c (main): Test for failure, too.
25658         * tests/test-pread.sh: Invoke with stdin on a pipe.
25659         Suggested by Eric Blake.
25660
25661         pread: improvement and fix
25662         * modules/pread (Depends-on): Depend on lseek, for portability to
25663         e.g., mingw.  Suggested by Eric Blake.
25664         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25665
25666         unistd.in.h: correct declaration of pread
25667         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25668         Reported by Richard W.M. Jones.
25669
25670         test-pread.sh: distribute the test script
25671         * modules/pread-tests (Files): Include test-pread.sh.
25672
25673         test-pread.sh: clean up
25674         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25675         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25676         That is unnecessary, since it's always ".".
25677         Suggestion from Eric Blake.
25678
25679         test-pread.sh: make executable
25680         * tests/test-pread.sh: Set executable bit.
25681         Reported by Eric Blake.
25682
25683         correct typo in test-pread.sh
25684         * tests/test-pread.sh: Add #! line.
25685
25686         test pread
25687         * tests/test-pread.c: New file.
25688         * tests/test-pread.sh: Likewise.
25689         * modules/pread-tests: Likewise.
25690
25691         pread: new module
25692         * modules/pread: New file.
25693         * lib/unistd.in.h (pread): Define/declare.
25694         * lib/pread.c (pread): New file.
25695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25696         * modules/unistd (Makefile.am): Substitute witnesses.
25697         * doc/posix-functions/pread.texi (pread): Update.
25698         * MODULES.html.sh: Add pread.
25699
25700 2009-11-25  Jim Meyering  <meyering@redhat.com>
25701
25702         tests/init.sh: new file to be used via most *.sh tests
25703         * tests/init.sh: New file.
25704
25705 2009-11-25  Eric Blake  <ebb9@byu.net>
25706
25707         utimens: work around older Linux failure with symlinks
25708         * lib/utimens.c (lutimensat_works_really): New variable.
25709         (fdutimens, lutimens): Use it to manage kernels that support
25710         nanosecond times on files, but not on symlinks.
25711         Reported by OndÅ™ej Vašík.
25712
25713         utimes: fix configure grammar
25714         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25715
25716 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25717
25718         regex: Fix fastmap for multibyte character ranges.
25719         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25720         characters when a multibyte character range is included.
25721
25722 2009-11-22  Andy Wingo  <wingo@pobox.com>
25723
25724         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25725         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25726
25727 2009-11-24  Bruno Haible  <bruno@clisp.org>
25728
25729         doc: Most *_l functions exist in MacOS X 10.5.
25730         * doc/posix-functions/duplocale.texi: Update platforms list.
25731         * doc/posix-functions/freelocale.texi: Likewise.
25732         * doc/posix-functions/newlocale.texi: Likewise.
25733         * doc/posix-functions/uselocale.texi: Likewise.
25734         * doc/posix-functions/isalnum_l.texi: Likewise.
25735         * doc/posix-functions/isalpha_l.texi: Likewise.
25736         * doc/posix-functions/isblank_l.texi: Likewise.
25737         * doc/posix-functions/iscntrl_l.texi: Likewise.
25738         * doc/posix-functions/isdigit_l.texi: Likewise.
25739         * doc/posix-functions/isgraph_l.texi: Likewise.
25740         * doc/posix-functions/islower_l.texi: Likewise.
25741         * doc/posix-functions/isprint_l.texi: Likewise.
25742         * doc/posix-functions/ispunct_l.texi: Likewise.
25743         * doc/posix-functions/isspace_l.texi: Likewise.
25744         * doc/posix-functions/isupper_l.texi: Likewise.
25745         * doc/posix-functions/iswalnum_l.texi: Likewise.
25746         * doc/posix-functions/iswalpha_l.texi: Likewise.
25747         * doc/posix-functions/iswblank_l.texi: Likewise.
25748         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25749         * doc/posix-functions/iswctype_l.texi: Likewise.
25750         * doc/posix-functions/iswdigit_l.texi: Likewise.
25751         * doc/posix-functions/iswgraph_l.texi: Likewise.
25752         * doc/posix-functions/iswlower_l.texi: Likewise.
25753         * doc/posix-functions/iswprint_l.texi: Likewise.
25754         * doc/posix-functions/iswpunct_l.texi: Likewise.
25755         * doc/posix-functions/iswspace_l.texi: Likewise.
25756         * doc/posix-functions/iswupper_l.texi: Likewise.
25757         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25758         * doc/posix-functions/isxdigit_l.texi: Likewise.
25759         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25760         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25761         * doc/posix-functions/strcoll_l.texi: Likewise.
25762         * doc/posix-functions/strfmon_l.texi: Likewise.
25763         * doc/posix-functions/strftime_l.texi: Likewise.
25764         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25765         * doc/posix-functions/strxfrm_l.texi: Likewise.
25766         * doc/posix-functions/tolower_l.texi: Likewise.
25767         * doc/posix-functions/toupper_l.texi: Likewise.
25768         * doc/posix-functions/towctrans_l.texi: Likewise.
25769         * doc/posix-functions/towlower_l.texi: Likewise.
25770         * doc/posix-functions/towupper_l.texi: Likewise.
25771         * doc/posix-functions/wcscoll_l.texi: Likewise.
25772         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25773         * doc/posix-functions/wctrans_l.texi: Likewise.
25774         * doc/posix-functions/wctype_l.texi: Likewise.
25775         * doc/glibc-functions/strptime_l.texi: Likewise.
25776         * doc/glibc-functions/strtod_l.texi: Likewise.
25777         * doc/glibc-functions/strtof_l.texi: Likewise.
25778         * doc/glibc-functions/strtol_l.texi: Likewise.
25779         * doc/glibc-functions/strtold_l.texi: Likewise.
25780         * doc/glibc-functions/strtoll_l.texi: Likewise.
25781         * doc/glibc-functions/strtoul_l.texi: Likewise.
25782         * doc/glibc-functions/strtoull_l.texi: Likewise.
25783         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25784         * doc/glibc-functions/wcstod_l.texi: Likewise.
25785         * doc/glibc-functions/wcstof_l.texi: Likewise.
25786         * doc/glibc-functions/wcstol_l.texi: Likewise.
25787         * doc/glibc-functions/wcstold_l.texi: Likewise.
25788         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25789         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25790         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25791
25792 2009-11-24  Bruno Haible  <bruno@clisp.org>
25793
25794         duplocale: Fix logic bug.
25795         * lib/duplocale.c: Don't include <langinfo.h>.
25796         (_NL_LOCALE_NAME): Remove macro.
25797         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25798         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25799
25800 2009-11-23  Jim Meyering  <meyering@redhat.com>
25801
25802         test-update-copyright: don't hard-code /usr/bin/perl
25803         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25804         perl to print the current year.  Gilles Espinasse reported that
25805         the replaced use of perl was hard-coded as /usr/bin/perl.
25806
25807 2009-11-23  Bruno Haible  <bruno@clisp.org>
25808
25809         duplocale: Add support for glibc 2.3.x.
25810         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25811
25812 2009-11-22  Bruno Haible  <bruno@clisp.org>
25813
25814         vasnprintf: Tiny optimization.
25815         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25816         MacOS X.
25817
25818 2009-11-22  Bruno Haible  <bruno@clisp.org>
25819
25820         Tests for module 'duplocale'.
25821         * modules/duplocale-tests: New file.
25822         * tests/test-duplocale.c: New file.
25823
25824         New module 'duplocale'.
25825         * m4/duplocale.m4: New file.
25826         * lib/locale.in.h (duplocale): New declaration.
25827         * lib/duplocale.c: New file.
25828         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25829         gl_LOCALE_H_DEFAULTS): New macros.
25830         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25831         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25832         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25833         REPLACE_DUPLOCALE.
25834         * modules/duplocale: New file.
25835         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25836
25837 2009-11-22  Bruno Haible  <bruno@clisp.org>
25838
25839         * modules/locale-tests (configure.ac): Test for newlocale function.
25840         * tests/test-locale.c: When the system has extended locale functions,
25841         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25842
25843         locale: Make locale_t available when possible.
25844         * lib/locale.in.h: Include <xlocale.h> when it exists.
25845         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25846         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25847         * modules/locale (Depends-on): Add extensions.
25848         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25849         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25850
25851 2009-11-22  Bruno Haible  <bruno@clisp.org>
25852
25853         Add comments.
25854         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25855         invocation.
25856         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25857         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25858         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25859
25860 2009-11-22  Bruno Haible  <bruno@clisp.org>
25861
25862         error: account for the possibility of freopen (stdout).
25863         * lib/error.c: Include <unistd.h>.
25864         (flush_stdout): New function, extracted from error and error_at_line.
25865         Determine stdout's fd dynamically.
25866         (error, error_at_line): Invoke flush_stdout.
25867         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25868         * modules/error (Depends-on): Add unistd.
25869
25870 2009-11-22  Bruno Haible  <bruno@clisp.org>
25871
25872         diffseq: Add comment.
25873         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25874
25875 2009-11-22  Jim Meyering  <meyering@redhat.com>
25876
25877         c-stack: avoid defining an unused static function
25878         * lib/c-stack.c (find_stack_direction): Do not define this function
25879         when it will not be used.
25880
25881         diffseq: avoid spurious gcc warnings
25882         * lib/diffseq.h (IF_LINT2): Define.
25883         (compareseq): Use it to initialize two members of "part".
25884         This avoids two used-uninitialized warnings.
25885
25886 2009-11-21  Jim Meyering  <meyering@redhat.com>
25887
25888         c-stack: avoid "ignoring return value of `write'" warning
25889         * lib/c-stack.c: Include "ignore-value.h".
25890         (die): Explicitly ignore each write return value.
25891         * modules/c-stack (Depends-on): Add ignore-value.
25892
25893 2009-11-21  Bruno Haible  <bruno@clisp.org>
25894
25895         diffseq: reduce scope of variable 'best'.
25896         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25897         variable, earlier used for two different purposes.
25898
25899 2009-11-21  Jim Meyering  <meyering@redhat.com>
25900
25901         diffseq: remove useless assignment to "best"
25902         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25903         assignment.  At that point "best" is already guaranteed to be zero.
25904
25905 2009-11-20  Eric Blake  <ebb9@byu.net>
25906
25907         build: mention ftp redirector in release announcements
25908         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25909         values that used to come from cfg.mk; mention FTP redirect URL.
25910         * build-aux/announce-gen: Mention the mirror list.
25911         Suggested by Karl Berry.
25912
25913         nanosleep: improve port to mingw
25914         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25916         LIB_NANOSLEEP, but only when needed.
25917         * modules/select (Link): Document LIBSOCKET.
25918         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25919         enough.
25920
25921         nanosleep: work around cygwin bug
25922         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25923         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25924         bug.
25925         (getnow): Delete, not needed.
25926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25927         LIB_CLOCK_GETTIME.
25928         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25929         clock-time, gettime.
25930         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25931         bug.
25932         * modules/nanosleep-tests: New test.
25933         * tests/test-nanosleep.c: New file.
25934
25935         sleep: work around cygwin bug
25936         * lib/sleep.c (rpl_sleep): Work around the bug.
25937         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25938         (gl_PREREQ_SLEEP): Delete unused macro.
25939         * modules/sleep (Depends-on): Add verify.
25940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25941         * modules/unistd (Makefile.am): Substitute witness.
25942         * lib/unistd.in.h (sleep): Update prototype.
25943         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25944         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25945         * modules/sleep-tests (Depends-on): Check for alarm.
25946
25947 2009-11-20  Jim Meyering  <meyering@redhat.com>
25948
25949         maint.mk: improve sc_prohibit_magic_number_exit
25950         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25951         so it does not match uses like System.exit(1).
25952         Add comments showing how to correct all offenders.
25953
25954 2009-11-19  Eric Blake  <ebb9@byu.net>
25955
25956         xalloc-die-tests: add missing library
25957         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25958
25959         test-xvasprintf: silence compiler warnings
25960         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25961         empty string from gcc.
25962
25963 2009-11-19  Jim Meyering  <meyering@redhat.com>
25964
25965         xfreopen: new module, from coreutils
25966         * modules/xfreopen: New module.
25967         * lib/xfreopen.c: New file.
25968         * lib/xfreopen.h: New file.
25969         * MODULES.html.sh (File stream based Input/Output"): Add it.
25970
25971 2009-11-19  Eric Blake  <ebb9@byu.net>
25972
25973         manywarnings: depend on warnings
25974         * modules/manywarnings (Depends-on): Add warnings.
25975
25976         build: avoid compiler warnings
25977         * lib/select.c (rpl_select): Delete unused variable.
25978         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25979
25980 2009-11-18  Eric Blake  <ebb9@byu.net>
25981
25982         tests: avoid false negative with --with-packager
25983         * tests/test-version-etc.sh: Discard packager information.
25984         * tests/test-argp-version-etc-1.sh: Likewise.
25985         Reported by Mike Frysinger.
25986
25987         utimens: fix regression on Solaris
25988         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25989         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25990         can only change fd timestamps via futimesat.  Instead, use an
25991         additional witness macro to avoid BSD bug.
25992         Reported by Jim Meyering.
25993
25994 2009-11-17  Eric Blake  <ebb9@byu.net>
25995
25996         usleep: use it to simplify tests
25997         * modules/stat-time-tests (Depends-on): Add usleep.
25998         (configure.ac): Drop usleep check.
25999         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26000         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26001         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26002         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26003         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26004         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26005         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26006         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26007         Likewise.
26008         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26009         * tests/test-lchown.h (nap): Likewise.
26010         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26011         * tests/test-stat-time.c (nap): Likewise.
26012         * tests/test-utimens-common.h (nap): Update comments.
26013
26014         usleep: new module
26015         * modules/usleep: New file.
26016         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26017         * lib/usleep.c (usleep): Likewise.
26018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26019         * modules/unistd (Makefile.am): Substitute witnesses.
26020         * lib/unistd.in.h (usleep): Add declaration.
26021         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26022         * MODULES.html.sh (Date and time): Likewise.
26023         * modules/usleep-tests (Depends-on): New test.
26024         * tests/test-usleep.c: New file.
26025
26026         chown: work around OpenBSD bug
26027         * lib/chown.c (rpl_chown): Work around the bug.
26028         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26029         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26030         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26031         * modules/chown (Depends-on): Add stdbool.
26032         * modules/lchown (Depends-on): Likewise.
26033         * doc/posix-functions/chown.texi (chown): Document the bug.
26034         * doc/posix-functions/lchown.texi (lchown): Likewise.
26035         * tests/test-lchown.h (test_chown): Relax test.
26036
26037         mkstemp: avoid conflict with C++ keyword template
26038         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26039         * lib/mkostemp.c (mkostemp): Likewise.
26040         * lib/mkostemps.c (mkostemps): Likewise.
26041         * lib/mkstemp.c (mkstemp): Likewise.
26042         * lib/mkstemps.c (mkstemps): Likewise.
26043
26044         xalloc-die-tests: optimize
26045         * tests/test-xalloc-die.sh: Reduce number of processes.
26046
26047 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26048
26049         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26050         patch from ludo@gnu.org (Ludovic Courtès).
26051
26052 2009-11-17  Jim Meyering  <meyering@redhat.com>
26053
26054         version-etc: use proper license string
26055         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26056         * modules/version-etc-fsf: Likewise.
26057
26058 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26059
26060         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26061         printed to stdout.  Deal with EOL differences.
26062
26063 2009-11-17  Eric Blake  <ebb9@byu.net>
26064
26065         unsetenv: work around Solaris bug
26066         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26067         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26068         Reported by Jim Meyering.
26069
26070         vasnprintf: avoid compiler warnings
26071         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26072         variables.
26073         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26074
26075 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26076
26077         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26078         settings since xalloc-die is no longer the self test,
26079         xalloc-die.sh is.
26080
26081 2009-11-17  Jim Meyering  <meyering@redhat.com>
26082
26083         test-xalloc-die.sh: make the code agree with the commit log
26084         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26085         at the end, just in case you happen to have a test-xalloc-die
26086         program in some other PATH directory.
26087
26088         test-xalloc-die.sh: fix a portability bug
26089         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26090         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26091         Otherwise, argv[0] (as often seen in diagnostics) would be too
26092         system-dependent, sometimes with, and sometimes without the leading "./".
26093
26094         version-etc-fsf: relax license to LGPLv3+
26095         * modules/version-etc-fsf (License): Relax license.
26096
26097 2009-11-16  Eric Blake  <ebb9@byu.net>
26098
26099         xalloc-die-tests: avoid printing null pointer
26100         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26101         shell script.
26102         * tests/test-xalloc-die.c (program_name): Declare.
26103         * tests/test-xalloc-die.sh (tmpfiles): New file.
26104
26105         setenv, unsetenv: work around various bugs
26106         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26107         (setenv) [HAVE_SETENV]: Work around bugs.
26108         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26110         for bugs.
26111         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26112         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26114         * modules/stdlib (Makefile.am): Update substitutions.
26115         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26116         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26117         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26118         * modules/setenv-tests: New test.
26119         * modules/unsetenv-tests: Likewise.
26120         * tests/test-setenv.c: New file.
26121         * tests/test-unsetenv.c: Likewise.
26122
26123 2009-11-16  Jim Meyering  <meyering@redhat.com>
26124
26125         version-etc: relax license to LGPLv3+
26126         * modules/version-etc (License): Relax license.
26127
26128         better AC_REQUIRE expanded-before-required-warning avoidance
26129         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26130         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26131         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26132         which is no longer needed.
26133
26134 2009-11-16  Eric Blake  <ebb9@byu.net>
26135
26136         test-freading: clean up temporary file
26137         * tests/test-freading.c (main): Remove file on success, and use
26138         ASSERT more liberally.
26139         Reported by Jim Meyering.
26140
26141 2009-11-16  Jim Meyering  <meyering@redhat.com>
26142
26143         avoid new AC_REQUIRE expanded-before-required warnings
26144         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26145         merely using it.
26146         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26147         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26148
26149 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26150
26151         * tests/test-xalloc-die.c: New file.
26152         * modules/xalloc-die-tests: New file.
26153         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26154         XFAIL_TESTS so it can be appended by modules.
26155
26156 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26157
26158         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26159         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26160
26161 2009-11-14  Eric Blake  <ebb9@byu.net>
26162
26163         fnmatch: avoid compiler warning
26164         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26165         to silence compiler warning about mismatch signedness in ?:.
26166         Reported by Robert Millan.
26167
26168         intprops: add double-inclusion guard
26169         * lib/intprops.h: Allow idempotent includes.
26170         Suggested by Bruce Korb.
26171
26172         openat: detect Solaris fchownat bug
26173         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26174         penalizing glibc chownat when only lchownat is broken.
26175         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26176         trailing slash bugs.
26177         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26178         * modules/openat-tests (Files): Include more files.
26179         (Depends-on): Add mgetgroups, sleep, stat-time.
26180         (configure.ac): Add additional checks.
26181         (Makefile.am): Build new test.
26182         * tests/test-fchownat.c: New file.
26183
26184         lchown: detect Solaris and FreeBSD bug
26185         * lib/lchown.c (rpl_lchown): Work around bug.
26186         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26188         * modules/unistd (Makefile.am): Populate it.
26189         * lib/unistd.in.h (lchown): Update declaration.
26190         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26191         * modules/lchown-tests: New file.
26192         * tests/test-lchown.h (test_lchown): Likewise.
26193         * tests/test-lchown.c (main): Likewise.
26194
26195         chown: detect Solaris and FreeBSD bug
26196         * lib/chown.c (rpl_chown): Work around bug.
26197         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26198         (gl_PREREQ_CHOWN): Delete.
26199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26200         * modules/unistd (Makefile.am): Populate it.
26201         * lib/unistd.in.h (chown): Update declaration.
26202         * lib/lchown.c (chown): Update client.
26203         * modules/lchown (Depends-on): Add lstat.
26204         * doc/posix-functions/chown.texi (chown): Document the bug.
26205         * doc/posix-functions/getgroups.texi (getgroups): Document
26206         getgroups pitfall.
26207         * modules/chown-tests: New file.
26208         * tests/test-chown.h (test_chown): Likewise.
26209         * tests/test-chown.c (main): Likewise.
26210
26211 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26212
26213         gnulib-tool: correctly detect absence of m4 directories
26214         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26215
26216 2009-11-14  Jim Meyering  <meyering@redhat.com>
26217
26218         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26219         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26220
26221 2009-11-14  John W. Eaton  <jwe@gnu.org>
26222
26223         strftime.h: wrap funtion declaration in extern "C" block
26224         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26225
26226 2009-11-13  Eric Blake  <ebb9@byu.net>
26227
26228         getgroups: avoid compiler warning
26229         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26230
26231         getgroups: work around FreeBSD bug
26232         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26233         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26234         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26235         * tests/test-getgroups.c (main): Fix buffer overrun.
26236
26237         getgroups: avoid compilation failure
26238         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26239         * modules/getgroups (Depends-on): Add stdint.
26240
26241 2009-11-13  Jim Meyering  <meyering@redhat.com>
26242
26243         test-getgroups: avoid compilation failure
26244         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26245
26246 2009-11-13  Eric Blake  <ebb9@byu.net>
26247
26248         mgetgroups: new module, taken from coreutils
26249         * modules/mgetgroups: New file.
26250         * lib/mgetgroups.h: Likewise.
26251         * lib/mgetgroups.c (mgetgroups): Likewise.
26252         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26253         * MODULES.html.sh (Users and groups): Mention it.
26254
26255         getgroups: don't expose GETGROUPS_T to user
26256         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26257         an element at a time if GETGROUPS_T is wrong size.
26258         * lib/getugroups.h (getugroups): Change signature.
26259         * lib/unistd.in.h (getgroups): Likewise.
26260         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26261         signature needs fixing.
26262         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26263         AC_TYPE_GETGROUPS.
26264         * modules/group-member (Depends-on): Add getgroups.
26265         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26266         (group_member): Rely on getgroups replacement.
26267         * lib/getugroups.c (getugroups): Use gid_t.
26268         * tests/test-getgroups.c (main): Likewise.
26269         * NEWS: Mention the signature change.
26270         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26271         problem with signature.
26272         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26273         GETGROUPS_T is still useful for setgroups.
26274
26275         getgroups, getugroups: provide stubs for mingw
26276         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26277         * lib/getugroups.c (getugroups): Likewise.
26278         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26279         function.  Modernize replacement scheme.
26280         (gl_PREREQ_GETGROUPS): Delete.
26281         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26282         * modules/getgroups (configure.ac): Declare witness.
26283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26284         * modules/unistd (Depends-on): Substitute witness.
26285         * lib/unistd.in.h (getgroups): Declare replacement.
26286
26287         getgroups: avoid calling exit
26288         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26289         drop xalloc.
26290         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26291         dependencies.
26292         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26293         exiting, in the rare case of malloc failure.
26294
26295         getgroups: fix logic error
26296         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26297         has more than 20 groups.
26298         * modules/getgroups-tests: New test.
26299         * tests/test-getgroups.c: New file.
26300
26301 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26302
26303         * tests/test-base64.c: Improve.
26304
26305 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26306
26307         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26308         Blake <ebb9@byu.net>.
26309
26310 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26311
26312         * tests/test-xvasprintf.c: Add %s%s related checks.
26313
26314 2009-11-12  Eric Blake  <ebb9@byu.net>
26315
26316         version-etc: match standards.texi style
26317         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26318         and use <> only for URLs.
26319
26320 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26321
26322         fts: do not fail on a submount during traversal
26323         * lib/fts.c (fts_build): Read the stat info again after opening
26324         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26325         Original report at http://bugzilla.redhat.com/501848.
26326
26327 2009-11-12  Jim Meyering  <meyering@redhat.com>
26328
26329         bootstrap: sync from coreutils
26330         * build-aux/bootstrap (bootstrap_epilogue): New function.
26331         Use git_modules_config in one more place.  This make bootstrap's
26332         --gnulib-srcdir option more useful for testing.
26333
26334         bootstrap: generalize autoheader check
26335         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26336         AC_CONFIG_HEADERS.
26337
26338 2009-11-11  Eric Blake  <ebb9@byu.net>
26339
26340         mkfifoat: use new modules for Solaris and BSD bugs
26341         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26342         * lib/mkfifoat.c (mknodat): Split...
26343         * lib/mknodat.c (mknodat): ...into new file.
26344         * modules/mkfifoat (Files): Ship new file.
26345         (Depends-on): Add mkfifo, mknod.
26346         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26347         (Depends-on): Add symlink.
26348         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26349         redundant with test_mkfifo.h.
26350         (do_mkfifoat, do_mknodat): New helpers.
26351
26352         mknod: new module
26353         * modules/mknod: New file.
26354         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26355         * lib/mknod.c (mknod): Likewise.
26356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26357         defaults.
26358         * modules/sys_stat (Makefile.am): Substitute them.
26359         * lib/sys_stat.in.h (mknod): Declare replacement.
26360         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26361         Document it.
26362         * doc/posix-functions/mknod.texi (mknod): Likewise.
26363         * modules/mknod-tests: New test.
26364         * tests/test-mknod.c: Likewise.
26365
26366         mkfifo: new module
26367         * modules/mkfifo: New file.
26368         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26369         * lib/mkfifo.c (mkfifo): Likewise.
26370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26371         defaults.
26372         * modules/sys_stat (Makefile.am): Substitute them.
26373         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26374         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26375         Document it.
26376         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26377         * modules/mkfifo-tests: New test.
26378         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26379         from test-mkfifoat.c.
26380         * tests/test-mkfifo.c: New file.
26381
26382         readlink: detect FreeBSD bug
26383         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26384         slash on symlink.
26385         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26386         * tests/test-readlink.h (test_readlink): Enhance test.
26387
26388         symlink: detect FreeBSD bug
26389         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26390         slash on symlink.
26391         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26392         * tests/test-symlink.h (test_symlink): Enhance test.
26393
26394 2009-11-10  Eric Blake  <ebb9@byu.net>
26395
26396         link: detect FreeBSD bug
26397         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26398         symlink.
26399         * doc/posix-functions/link.texi (link): Document the bug.
26400         * tests/test-link.h (test_link): Enhance test.
26401         * tests/test-linkat.c (main): Update caller.
26402
26403         unlink, remove: detect FreeBSD bug
26404         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26405         slash on symlink.
26406         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26407         * doc/posix-functions/remove.texi (remove): Likewise.
26408         * tests/test-unlink.h (test_unlink): Enhance test.
26409         * tests/test-remove.c (main): Likewise.
26410
26411 2009-11-09  Eric Blake  <ebb9@byu.net>
26412
26413         rename: detect FreeBSD bug
26414         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26415         slash on symlink.
26416         * modules/renameat-tests (Depends-on): Add filenamecat.
26417         * tests/test-rename.h (test_rename): Allow one more errno.
26418         * tests/test-renameat.c (main): Likewise.
26419         * doc/posix-functions/rename.texi (rename): Document the bug.
26420
26421         open: detect FreeBSD bug
26422         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26423         symlink.
26424         * doc/posix-functions/open.texi (open): Document the bug.
26425         * doc/posix-functions/utimes.texi (utimes): Likewise.
26426         * tests/test-open.h (test_open): Add parameters, and test symlink
26427         handling.
26428         * tests/test-open.c (main): Adjust caller.
26429         * tests/test-fcntl-safer.c (main): Likewise.
26430         * modules/open-tests (Depends-on): Add stdbool, symlink.
26431         * modules/fcntl-safer-tests (Depends-on): Likewise.
26432         * tests/test-openat.c (main): Add test-open tests.
26433
26434         stat: detect FreeBSD bug
26435         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26436         symlink.
26437         * doc/posix-functions/stat.texi (stat): Document the bug.
26438         * tests/test-stat.h (test_stat_func): Add argument.
26439         * tests/test-stat.c (main): Adjust caller.
26440         * tests/test-fstatat.c (main): Likewise.
26441         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26442         Reported by Jim Meyering.
26443
26444 2009-11-09  James Youngman  <jay@gnu.org>
26445
26446         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26447         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26448
26449 2009-11-08  Jim Meyering  <meyering@redhat.com>
26450
26451         utimens: remove invalid futimesat call
26452         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26453         It used the file descriptor of the target file as the DIR_FD
26454         parameter and NULL as the file name.  That caused failure with
26455         errno == EFAULT on FreeBSD-8.0-rc2
26456
26457 2009-11-07  Eric Blake  <ebb9@byu.net>
26458
26459         fflush, freadseek: use fseeko, not fseek
26460         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26461         (clear_ungetc_buffer): Avoid potential problems on large files.
26462         * lib/freadseek.c (freadseek): Likewise.
26463         * modules/freadseek (Depends-on): Add fseeko.
26464         * modules/fseek (configure.ac): Set a witness.
26465         * tests/test-fflush.c (main): Use fseeko.
26466         * tests/test-fpurge.c (fseek): Disable link warning.
26467         * tests/test-freadable.c (fseek): Likewise.
26468         * tests/test-freading.c (fseek): Likewise.
26469         * tests/test-fseeko.c (fseek): Likewise.
26470         * tests/test-ftell.c (fseek): Likewise.
26471         * tests/test-ftello.c (fseek): Likewise.
26472         * tests/test-fwritable.c (fseek): Likewise.
26473         * tests/test-fwriting.c (fseek): Likewise.
26474
26475 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26476
26477         * modules/memchr (Depends-on): Drop getpagesize dependency.
26478
26479 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26480
26481         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26482         Reported by Ludovic Courtès.
26483         * build-aux/pmccabe2html: Improve example usage.
26484         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26485
26486 2009-11-06  Jim Meyering  <meyering@redhat.com>
26487
26488         do-release-commit-and-tag: New module.
26489         Automate the release-commit and tag process.
26490         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26491         * modules/do-release-commit-and-tag: New file.
26492         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26493
26494 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26495
26496         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26497         because test-select.c uses inet_pton.
26498
26499 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26500
26501         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26502         GETADDRINFO_LIB.  Bump serial number.
26503         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26504         Suggested by Eric Blake <ebb9@byu.net>.
26505
26506 2009-11-05  Eric Blake  <ebb9@byu.net>
26507
26508         strtod: detect darwin bug
26509         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26510         Reported by Leo Davis.
26511
26512         freopen-safer: new module
26513         * modules/freopen-safer: New module.
26514         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26515         * lib/freopen-safer.c (freopen_safer): New file.
26516         * lib/stdio-safer.h (freopen_safer): New declaration.
26517         * lib/stdio--.h (freopen): New override.
26518         * MODULES.html.sh (File stream based Input/Output): Mention it.
26519         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26520         freopen-safer module.
26521         * doc/posix-functions/stderr.texi (stderr): Likewise.
26522         * doc/posix-functions/stdin.texi (stdin): Likewise.
26523         * doc/posix-functions/stdout.texi (stdout): Likewise.
26524         * modules/freopen-safer-tests: New test.
26525         * tests/test-reopen-safer.c: New file.
26526
26527 2009-11-05  Jim Meyering  <meyering@redhat.com>
26528
26529         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26530         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26531
26532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26533
26534         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26535
26536 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26537
26538         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26539
26540 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26541
26542         Fix link error.
26543         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26544         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26545
26546 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26547
26548         * tests/test-func.c: Also test value of __func__.
26549
26550 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26551
26552         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26553         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26554
26555 2009-11-05  Bruno Haible  <bruno@clisp.org>
26556
26557         Fix link error.
26558         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26559         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26560         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26561
26562 2009-11-05  Bruno Haible  <bruno@clisp.org>
26563
26564         Tests for module 'inet_pton'.
26565         * modules/inet_pton-tests: New file.
26566         * tests/test-inet_pton.c: New file.
26567
26568 2009-11-05  Bruno Haible  <bruno@clisp.org>
26569
26570         Tests for module 'inet_ntop'.
26571         * modules/inet_ntop-tests: New file.
26572         * tests/test-inet_ntop.c: New file.
26573
26574 2009-11-04  Eric Blake  <ebb9@byu.net>
26575
26576         stdlib-safer: wrap all mkstemp variants
26577         * modules/mkostemp (configure.ac): Set witness.
26578         * modules/mkostemps (configure.ac): Likewise.
26579         * modules/mkstemps (configure.ac): Likewise.
26580         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26581         (mkstemps_safer): Wrap more functions.
26582         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26583         wrapping.
26584         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26585         (mkstemps_safer): Implement the wrappers.
26586
26587         mkstemps, mkostemps: new modules
26588         * modules/mkostemps: New module.
26589         * modules/mkstemps: Likewise.
26590         * lib/mkostemps.c (mkostemps): New file.
26591         * lib/mkstemps.c (mkstemps): Likewise.
26592         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26593         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26595         * modules/stdlib (Makefile.am): Substitute them.
26596         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26597         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26598         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26599         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26600         * MODULES.html.sh (File system functions): Mention them.
26601
26602         tempname: resync from glibc
26603         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26604         same values for __GT_FILE as glibc.  Abort even when assertions
26605         are disabled.
26606         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26607         match its value otherwise.  Allow idempotent inclusion.
26608         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26609         * lib/mkostemp.c (mkostemp): Likewise.
26610         * lib/mkstemp.c (mkstemp): Likewise.
26611         * lib/tmpfile.c (tmpfile): Likewise.
26612         * NEWS: Document this.
26613
26614         utimens: fix use of futimens on older Linux
26615         * lib/utimens.c (fdutimens): Use updated, rather than original,
26616         timespec to avoid bug in older Linux kernel.
26617         Reported by Simon Josefsson.
26618
26619 2009-11-04  Bruno Haible  <bruno@clisp.org>
26620
26621         Make num_processors more flexible and consistent.
26622         * lib/nproc.h (enum nproc_query): New type.
26623         (num_processors): Add a 'query' argument.
26624         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26625         (num_processors): Add a 'query' argument. Test the value of the
26626         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26627         mingw, count the number of CPUs available for the current process.
26628         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26629         Check for sched_getaffinity and sched_getaffinity_np.
26630         * modules/nproc (Depends-on): Add c-ctype, extensions.
26631         * NEWS: Mention the change.
26632
26633 2009-11-03  Bruno Haible  <bruno@clisp.org>
26634
26635         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26636
26637 2009-11-03  Jim Meyering  <meyering@redhat.com>
26638
26639         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26640         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26641         if it is defined.
26642
26643 2009-11-02  Eric Blake  <ebb9@byu.net>
26644
26645         mktime, timegm: share common declaration
26646         * lib/mktime-internal.h: New file.
26647         * lib/mktime.c: Use it rather than open-coding a declaration.
26648         * lib/timegm.c: Likewise.
26649         * modules/mktime (Files): Ship it.
26650         * modules/timegm (Files): Likewise.
26651         Suggested by Bruno Haible.
26652
26653         test-update-copyright: update test to match script changes
26654         * tests/test-update-copyright.sh: Avoid hard-coding perl
26655         location.  Don't update *.bak created by earlier runs.
26656
26657 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26658             Simon Josefsson  <simon@josefsson.org>
26659             Bruno Haible  <bruno@clisp.org>
26660
26661         Fix link error on Solaris 8.
26662         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26663         also in libnsl. Define also INET_PTON_LIB.
26664         * modules/inet_pton (Link): New section.
26665
26666 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26667             Bruno Haible  <bruno@clisp.org>
26668
26669         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26670         * modules/inet_ntop (Link): New section.
26671         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26672
26673 2009-11-02  Eric Blake  <ebb9@byu.net>
26674
26675         maint: avoid compiler warnings in m4 macros
26676         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26678
26679 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26680
26681         * m4/pmccabe2html.m4: Remove file.
26682         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26683         function.  Change maintainer.
26684         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26685         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26686         Courtès).
26687
26688 2009-10-31  Eric Blake  <ebb9@byu.net>
26689
26690         fseeko: fix m4 regression
26691         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26692         regression from 2009-10-27.
26693         Reported by Ralf Wildenhues.
26694
26695 2009-10-31  Jim Meyering  <meyering@redhat.com>
26696
26697         inttostr: aesthetics and improved (compile-time) safety
26698         Define inttype_is_signed rather than inttype_is_unsigned,
26699         since the sole use is via "#if inttype_is_signed".
26700         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26701         inttype_is_unsigned.
26702         * lib/offtostr.c (inttype_is_signed): Likewise.
26703         * lib/uinttostr.c (inttype_is_signed): Likewise.
26704         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26705         * lib/inttostr.c (inttostr): Use verify to cross-check the
26706         inttype_is_signed value and the signedness of the actual type.
26707         * modules/inttostr (Depends-on): Add verify.
26708
26709 2009-10-30  Eric Blake  <ebb9@byu.net>
26710
26711         build: avoid compiler warnings
26712         * lib/fchmodat.c (lchmod): Mark unused variables.
26713         * lib/getopt.c (_getopt_initialize): Likewise.
26714         * lib/mktime.c (__mktime_internal): Provide prototype.
26715         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26716         older gcc that do not understand #pragma GCC diagnostic.
26717         * lib/uinttostr.c (inttype_is_unsigned): Define.
26718         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26719
26720 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26721
26722         stat: fix compilation on AIX
26723         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26724         only see struct stat64.
26725
26726 2009-10-30  Eric Blake  <ebb9@byu.net>
26727
26728         exclude: make more robust
26729         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26730         rather than masking a coding bug.
26731         Suggested by Bruno Haible.
26732
26733 2009-10-30  Jim Meyering  <meyering@redhat.com>
26734
26735         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26736         Rather than putting #!/usr/bin/perl on the first line,
26737         start with a variant of what's recommended by "man perlrun" that
26738         invokes the first "perl" program from your shell's search path.
26739         * build-aux/gitlog-to-changelog: Replace #!... as above.
26740         Add a "Local Variables" perl mode setting.
26741         Prompted by a patch from Ludovic Courtès.
26742         Improved by Eric Blake.
26743         * build-aux/useless-if-before-free: Likewise.
26744         * build-aux/announce-gen: Likewise.
26745         * build-aux/update-copyright: Likewise.
26746
26747 2009-10-29  Eric Blake  <ebb9@byu.net>
26748
26749         filenamecat-lgpl: adjust clients
26750         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26751         filenamecat.
26752         * modules/renameat (Depends-on): Likewise.
26753
26754         filenamecat: split into filenamecat-lgpl
26755         * modules/filenamecat-lgpl: New module.
26756         * modules/filenamecat (Files): Move library-safe files into
26757         filenamecat-lgpl.
26758         (Depends-on): Add filenamecat-lgpl.
26759         (configure.ac): Declare witness.
26760         * lib/filenamecat.h (file_name_concat): Only declare when using
26761         GPL module.
26762         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26763         Move...
26764         * lib/filenamecat-lgpl.c: ...into new file.
26765         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26766         (gl_FILE_NAME_CONCAT): Use it.
26767         * MODULES.html.sh (File system functions): Mention new module.
26768
26769         argp: avoid memory leak
26770         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26771         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26772         base_name, since the latter malloc()s and can call exit().
26773         Leak introduced 2006-07-03.
26774
26775         dirname-lgpl: adjust clients that don't need full dirname
26776         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26777         * modules/filenamecat (Depends-on): Likewise.
26778         * modules/linkat (Depends-on): Likewise.
26779         * modules/mkancesdirs (Depends-on): Likewise.
26780         * modules/mkdir (Depends-on): Likewise.
26781         * modules/openat (Depends-on): Likewise.
26782         * modules/savewd (Depends-on): Likewise.
26783         * modules/rename (Depends-on): Likewise.
26784         (License): Relax license.
26785         * modules/mkdir-tests (Depends-on): Drop progname.
26786         (Makefile.am): Delete unneeded LDADD.
26787         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26788
26789         dirname: split into dirname-lgpl
26790         * modules/dirname-lgpl: New module.
26791         * modules/dirname (Files): Move library-safe files into
26792         dirname-lgpl.
26793         (Depends-on): Add dirname-lgpl.
26794         (configure.ac): Declare witness.
26795         * modules/double-slash-root (License): Relax license.
26796         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26797         module.
26798         * lib/dirname.c (dir_len, mdir_name): Move...
26799         * lib/dirname-lgpl.c: ...into new file.
26800         * lib/basename.c (last_component, base_len): Move...
26801         * lib/basename-lgpl.c: ...into new file.
26802         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26803         (gl_DIRNAME): Use it.
26804         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26805         Mention new module.
26806         * modules/dirname-tests (Depends-on): Add progname.
26807         * tests/test-dirname.c (program_name): Delete.
26808
26809         mkdir: make safe for libraries
26810         * modules/mkdir (Depends-on): Drop xalloc.
26811         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26812         exit.
26813
26814         tests: avoid some compiler warnings
26815         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26816         literals.
26817         * tests/test-memchr.c (main): Avoid type mismatch.
26818         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26819         * tests/test-base64.c (main): Likewise.
26820         * tests/test-getdelim.c (main): Likewise.
26821         * tests/test-gethostname.c (main): Likewise.
26822         * tests/test-getline.c (main): Likewise.
26823         * tests/test-netinet_in.c (main): Likewise.
26824         * tests/test-select.c (open_server_socket, main): Likewise.
26825         * tests/test-select-stdin.c (main): Likewise.
26826         * tests/test-sockets.c (main): Likewise.
26827         * tests/test-strsignal.c (main): Likewise.
26828         * tests/test-sys_select.c (main): Likewise.
26829         * tests/test-sys_socket.c (main): Likewise.
26830         * tests/test-u64.c (main): Likewise.
26831         * tests/test-xfprintf-posix.c (main): Likewise.
26832         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26833
26834         sockets: avoid compiler warning
26835         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26836
26837         maint: detect usage(1) and other suspicious exits
26838         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26839
26840 2009-10-29  Jim Meyering  <meyering@redhat.com>
26841
26842         timespec: long-to-int truncation could make timespec_cmp malfunction
26843         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26844         a multiple of 2^32 nanoseconds as no difference.
26845
26846 2009-10-28  Jim Meyering  <meyering@redhat.com>
26847
26848         fprintftime: wrap macro code argument in "do {...} while(0)"
26849         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26850         cpy macro must be a statement that can be followed by a semicolon.
26851         Now that the else clause contains a comment and is hence longer
26852         than one line, I require curly braces.  That in turn requires
26853         that we wrap this code block in the standard do...while(0).
26854
26855         fprintftime: remove stray semicolon from previous change
26856         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26857
26858         fprintftime: avoid a warning about ignored fwrite return value
26859         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26860         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26861         that is unsafe.
26862         * modules/fprintftime (Depends-on): Add ignore-value.
26863
26864         exclude: avoid an unwarranted warning
26865         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26866
26867 2009-10-27  Eric Blake  <ebb9@byu.net>
26868
26869         fseek: avoid compilation failure when fflush is replaced
26870         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26871         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26872         module is in use.
26873         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26874         module is not in use; since REPLACE_FSEEK worked otherwise.
26875         (GNULIB_FTELLO): Likewise for ftell.
26876         Reported by Ian Beckwith and others.
26877
26878 2009-10-27  Bruno Haible  <bruno@clisp.org>
26879
26880         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26881         Reported by Jim Meyering.
26882
26883 2009-10-27  Jim Meyering  <jim@meyering.net>
26884             Bruno Haible  <bruno@clisp.org>
26885
26886         Avoid warning despite dropping the return value of fwrite.
26887         * lib/unicodeio.c: Include ignore-value.h.
26888         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26889         * modules/unicodeio (Depends-on): Add ignore-value.
26890
26891 2009-10-26  Eric Blake  <ebb9@byu.net>
26892
26893         areadlinkat: fix fallback path
26894         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26895         pointer and zero.
26896
26897 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26898
26899         Use a better IO block size for modern systems
26900         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26901         * lib/md2.c: Likewise.
26902         * lib/md4.c: Likewise.
26903         * lib/md5.c: Likewise.
26904         * lib/sha1.c: Likewise.
26905         * lib/sha256.c: Likewise.
26906         * lib/sha512.c: Likewise.
26907
26908 2009-10-22  Eric Blake  <ebb9@byu.net>
26909
26910         tests: avoid several compiler warnings
26911         * tests/test-getcwd.c (main): Avoid buffer underflow.
26912         * tests/test-getdate.c (main): String literals are not safe with
26913         putenv, so use setenv.  Declare unused argument.
26914         * modules/getdate-tests (Depends-on): Add setenv.
26915         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26916         problems with string literals in char *.
26917         * tests/test-hash.c (main): Avoid shadowing declaration.
26918         (insert_new): Treat string literals as char const *.
26919         * tests/test-getopt.h (test_getopt): Likewise.
26920         (getopt_loop): Alter types to minimize casting elsewhere.
26921         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26922         (test_getopt_long_posix): Likewise.
26923         (do_getopt_long): Add wrapper to minimize casting.
26924         * tests/test-atexit.c (clear_temp_file): Use void.
26925         * tests/test-areadlink-with-size.c (main): Declare unused
26926         arguments.
26927         * tests/test-areadlink.c (main): Likewise.
26928         * tests/test-areadlinkat-with-size.c (main): Likewise.
26929         * tests/test-areadlinkat.c (main): Likewise.
26930         * tests/test-canonicalize-lgpl.c (main): Likewise.
26931         * tests/test-canonicalize.c (main): Likewise.
26932         * tests/test-dirent-safer.c (main): Likewise.
26933         * tests/test-dirname.c (main): Likewise.
26934         * tests/test-dup2.c (main): Likewise.
26935         * tests/test-fchdir.c (main): Likewise.
26936         * tests/test-fcntl-h.c (main): Likewise.
26937         * tests/test-fcntl-safer.c (main): Likewise.
26938         * tests/test-fdopendir.c (main): Likewise.
26939         * tests/test-fdutimensat.c (main): Likewise.
26940         * tests/test-fflush.c (main): Likewise.
26941         * tests/test-filenamecat.c (main): Likewise.
26942         * tests/test-filevercmp.c (main): Likewise.
26943         * tests/test-fopen-safer.c (main): Likewise.
26944         * tests/test-fopen.c (main): Likewise.
26945         * tests/test-fpending.c (main): Likewise.
26946         * tests/test-fpurge.c (main): Likewise.
26947         * tests/test-freading.c (main): Likewise.
26948         * tests/test-fstatat.c (main): Likewise.
26949         * tests/test-fsync.c (main): Likewise.
26950         * tests/test-futimens.c (main): Likewise.
26951         * tests/test-getndelim2.c (main): Likewise.
26952         * tests/test-gettimeofday.c (main): Likewise.
26953         * tests/test-getopt.c (main): Likewise.
26954         * tests/test-i-ring.c (main): Likewise.
26955         * tests/test-inttypes.c (main): Likewise.
26956         * tests/test-link.c (main): Likewise.
26957         * tests/test-lstat.c (main): Likewise.
26958         * tests/test-math.c (main): Likewise.
26959         * tests/test-md5.c (main): Likewise.
26960         * tests/test-memchr2.c (main): Likewise.
26961         * tests/test-memrchr.c (main): Likewise.
26962         * tests/test-mkdir.c (main): Likewise.
26963         * tests/test-mkdirat.c (main): Likewise.
26964         * tests/test-mkfifoat.c (main): Likewise.
26965         * tests/test-open.c (main): Likewise.
26966         * tests/test-openat-safer.c (main): Likewise.
26967         * tests/test-openat.c (main): Likewise.
26968         * tests/test-quotearg.c (main): Likewise.
26969         * tests/test-rawmemchr.c (main): Likewise.
26970         * tests/test-readlink.c (main): Likewise.
26971         * tests/test-remove.c (main): Likewise.
26972         * tests/test-rename.c (main): Likewise.
26973         * tests/test-renameat.c (main): Likewise.
26974         * tests/test-rmdir.c (main): Likewise.
26975         * tests/test-sha1.c (main): Likewise.
26976         * tests/test-signal.c (main): Likewise.
26977         * tests/test-sigaction.c (main): Likewise.
26978         * tests/test-stat.c (main): Likewise.
26979         * tests/test-stat-time.c (main): Likewise.
26980         * tests/test-stddef.c (main): Likewise.
26981         * tests/test-stdint.c (main): Likewise.
26982         * tests/test-stdio.c (main): Likewise.
26983         * tests/test-stdlib.c (main): Likewise.
26984         * tests/test-strchrnul.c (main): Likewise.
26985         * tests/test-strerror.c (main): Likewise.
26986         * tests/test-string.c (main): Likewise.
26987         * tests/test-strtod.c (main): Likewise.
26988         * tests/test-strverscmp.c (main): Likewise.
26989         * tests/test-symlink.c (main): Likewise.
26990         * tests/test-symlinkat.c (main): Likewise.
26991         * tests/test-sys_stat.c (main): Likewise.
26992         * tests/test-sys_time.c (main): Likewise.
26993         * tests/test-time.c (main): Likewise.
26994         * tests/test-unistd.c (main): Likewise.
26995         * tests/test-unlink.c (main): Likewise.
26996         * tests/test-unlinkat.c (main): Likewise.
26997         * tests/test-utimens.c (main): Likewise.
26998         * tests/test-utimensat.c (main): Likewise.
26999         * tests/test-version-etc.c (main): Likewise.
27000         * tests/test-wchar.c (main): Likewise.
27001         * tests/test-wctype.c (main): Likewise.
27002         * tests/test-xprintf-posix.c (main): Likewise.
27003         * tests/test-posixtm.c (main): Likewise.
27004         (STREQ): Delete unused macro.
27005         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27006         shadowed variables.
27007         * tests/test-memchr.c (main): Likewise.
27008
27009 2009-10-21  Eric Blake  <ebb9@byu.net>
27010
27011         areadlinkat: avoid failure on older glibc
27012         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27013         rather than mis-comparing 0 against FUNC_RESULT of char*.
27014
27015 2009-10-21  Bruno Haible  <bruno@clisp.org>
27016
27017         * modules/stpncpy (License): Relicense under LGPLv2+.
27018         Reported by David Lutterkort <lutter@redhat.com>.
27019
27020 2009-10-20  Eric Blake  <ebb9@byu.net>
27021
27022         utimensat: work around Solaris 9 bug
27023         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27024         has trailing slash bugs.
27025         * tests/test-lutimens.h (test_lutimens): Enhance test.
27026         * tests/test-utimens.h (test_utimens): Likewise.
27027         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27028         * doc/posix-functions/utimes.texi (utimes): Likewise.
27029         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27030         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27031         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27032         * doc/posix-functions/futimens.texi (futimens): Likewise.
27033
27034         fdutimensat: new module
27035         * modules/fdutimensat: New file.
27036         * lib/fdutimensat.c (fdutimensat): Likewise.
27037         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27038         * MODULES.html.sh (File system functions): Mention module.
27039         * modules/fdutimensat-tests: New test.
27040         * tests/test-fdutimensat.c: Likewise.
27041
27042         doc: regenerate INSTALL
27043         * doc/INSTALL: Reflect recent autoconf update.
27044         * doc/INSTALL.ISO: Likewise.
27045         * doc/INSTALL.UTF-8: Likewise.
27046
27047 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27048
27049         acl: warn if ACL support is not detected
27050         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27051
27052 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27053
27054         * lib/nproc.h: Add extern "C" block for C++.
27055
27056 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27057             Bruno Haible  <bruno@clisp.org>
27058
27059         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27060         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27061         * doc/posix-functions/isalpha.texi: Likewise.
27062         * doc/posix-functions/isblank.texi: Likewise.
27063         * doc/posix-functions/iscntrl.texi: Likewise.
27064         * doc/posix-functions/isdigit.texi: Likewise.
27065         * doc/posix-functions/isgraph.texi: Likewise.
27066         * doc/posix-functions/islower.texi: Likewise.
27067         * doc/posix-functions/isprint.texi: Likewise.
27068         * doc/posix-functions/ispunct.texi: Likewise.
27069         * doc/posix-functions/isspace.texi: Likewise.
27070         * doc/posix-functions/isupper.texi: Likewise.
27071         * doc/posix-functions/isxdigit.texi: Likewise.
27072
27073 2009-10-18  Bruno Haible  <bruno@clisp.org>
27074
27075         Tests for module 'isblank'.
27076         * modules/isblank-tests: New file.
27077         * tests/test-isblank.c: New file.
27078
27079         New module 'isblank'.
27080         * lib/isblank.c: New file.
27081         * m4/isblank.m4: New file.
27082         * modules/isblank: New file.
27083         * doc/posix-functions/isblank.texi: Mention the new module.
27084
27085 2009-10-18  Bruno Haible  <bruno@clisp.org>
27086
27087         New module 'ctype'.
27088         * lib/ctype.in.h: New file.
27089         * m4/ctype.m4: New file.
27090         * modules/ctype: New file.
27091         * doc/posix-headers/ctype.texi: Mention the new module.
27092
27093 2009-10-18  Jim Meyering  <meyering@redhat.com>
27094
27095         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27096         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27097         right after its initialization, rather than farther down.
27098         Keeping these in close proximity makes it easier to ensure
27099         that each such variable is initialized.  E.g.,
27100
27101             LIB_CLOCK_GETTIME=
27102             AC_SUBST([LIB_CLOCK_GETTIME])
27103
27104         This change also increments these serial numbers.
27105         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27106         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27108
27109 2009-10-18  Bruno Haible  <bruno@clisp.org>
27110
27111         Don't let environment variables perturb build.
27112         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27113         (gl_PREREQ_GETHRXTIME): ... not here.
27114
27115 2009-10-18  Bruno Haible  <bruno@clisp.org>
27116
27117         Avoid symlink attack in localcharset module.
27118         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27119         (O_NOFOLLOW): Define fallback.
27120         (get_charset_aliases): Don't open the file if it is a symbolic link.
27121         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27122         gl_FCNTL_H.
27123         (gl_FCNTL_H): Require it.
27124         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27125         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27126         Reported by Fergal Glynn <fglynn@veracode.com>.
27127
27128 2009-10-18  Bruno Haible  <bruno@clisp.org>
27129
27130         Implement nproc for mingw.
27131         * lib/nproc.c: Include <windows.h>
27132         (num_processors): On native Windows platforms, try GetSystemInfo.
27133
27134 2009-10-18  Bruno Haible  <bruno@clisp.org>
27135
27136         Implement nproc for IRIX.
27137         * lib/nproc.c: Include <sys/sysmp.h>.
27138         (num_processors): On IRIX systems, try sysmp.
27139         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27140
27141 2009-10-18  Bruno Haible  <bruno@clisp.org>
27142
27143         Implement nproc for HP-UX.
27144         * lib/nproc.c: Include <sys/pstat.h>
27145         (num_processors): On HP-UX systems, try pstat_getdynamic.
27146         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27147         pstat_getdynamic.
27148
27149 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27150             Bruno Haible  <bruno@clisp.org>
27151
27152         Implement nproc for NetBSD, OpenBSD.
27153         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27154         (ARRAY_SIZE): New macro.
27155         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27156         * m4/nproc.m4: New file.
27157         * modules/nproc (Files): Add m4/nproc.m4.
27158         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27159         (Makefile.am): Instead, augment lib_SOURCES.
27160
27161 2009-10-18  Bruno Haible  <bruno@clisp.org>
27162
27163         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27164         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27165         sys/param.h.
27166
27167 2009-10-16  Eric Blake  <ebb9@byu.net>
27168
27169         utimensat: new module
27170         * modules/utimensat: New file.
27171         * lib/utimensat.c (utimensat): Likewise.
27172         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27173         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27174         so we can work around Linux bugs.
27175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27176         * modules/sys_stat (Makefile.am): Substitute them.
27177         * lib/sys_stat.in.h (utimensat): Declare it.
27178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27179         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27180         * modules/utimensat-tests: New test.
27181         * tests/test-utimensat.c: Likewise.
27182
27183         utimens: let lutimens work on non-symlinks
27184         * lib/utimens.c (lutimens): Fall back to utimens rather than
27185         failing with ENOSYS, when file is not a symlink.
27186         (utimens): Reduce redirection.
27187         * tests/test-lutimens.h (test_lutimens): Update test to cover
27188         non-symlinks.
27189         * tests/test-utimens.h (test_utimens): Update test to cover
27190         symlinks.
27191         * tests/test-utimens.c (main): Update caller.
27192
27193         utimens: cache whether utimensat syscall works
27194         * lib/utimens.c (utimensat_works_really): New cache variable.
27195         (fdutimens, lutimens): Use it to avoid failing syscall.
27196
27197         test-stat-time, test-utimens: improve portability
27198         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27199         ext4 on alpha, and for cygwin.
27200         * tests/test-utimens-common.h: New file.
27201         (nap): Factor delays into single function.
27202         * tests/test-lutimens.h (test_lutimens): Use new header.
27203         * tests/test-futimens.h (test_futimens): Likewise.
27204         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27205         timestamps to occur from same machine, as was done previously for
27206         test_utimens.
27207         * modules/utimens-tests (Files): Ship new file.
27208         * modules/futimens-tests (Files): Likewise.
27209         Reported in part by Jim Meyering.
27210
27211         sys_stat: sort replacement declarations
27212         * lib/sys_stat.in.h: Sort declarations.
27213         * lib/futimens.c (futimens): Fix typo.
27214
27215 2009-10-15  Jim Meyering  <meyering@redhat.com>
27216
27217         don't let environment settings perturb build
27218         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27219         could cause a configure-time and/or build-time malfunction.
27220         Typically, a configure-time function-in-library test is performed
27221         via code like this:
27222
27223           LIB_VAR=
27224           AC_SUBST([LIB_VAR])
27225           prefix_saved_LIBS=$LIBS
27226             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27227                        [test "$ac_cv_search_FUNC" = "none required" ||
27228                         LIB_VAR=$ac_cv_search_FUNC])
27229           LIBS=$prefix_saved_LIBS
27230
27231         However, in each of the files affected by this change, the LIB_VAR=
27232         initialization was omitted.  Thus, when set in the environment, its
27233         value would propagate into generated Makefiles when FUNC is not found
27234         in LIB_NAME.
27235         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27236         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27238
27239 2009-10-14  Eric Blake  <ebb9@byu.net>
27240
27241         fchdir: avoid infinite recursion in mingw
27242         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27243         recursing.
27244
27245         test-stat-time: port to mingw
27246         * tests/test-stat-time.c (force_unlink): Return a value.
27247         (test_ctime) [W32]: Fix compilation error.
27248         (nap): Don't call usleep with too large an argument.  Use
27249         force_unlink.
27250         * doc/pastposix-functions/usleep.texi (usleep): Document the
27251         portability issue.
27252
27253 2009-10-13  Jim Meyering  <meyering@redhat.com>
27254
27255         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27256         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27257         * modules/pipe-filter-ii: Likewise.
27258         * modules/sys_socket-tests: Likewise.
27259         * modules/tsearch-tests: Likewise.
27260         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27261         (check): Depend on it.
27262
27263 2009-10-12  Eric Blake  <ebb9@byu.net>
27264
27265         utimens-tests: port to NFS file systems
27266         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27267         comparisons to avoid spurious failures from timestamp drift
27268         between NFS machines.
27269
27270 2009-10-12  Eric Blake  <ebb9@byu.net>
27271
27272         stat-time-tests: minor cleanups
27273         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27274         * tests/test-stat-time.c (nap): Separate assignment from call.
27275         Suggested by Paolo Bonzini and Bruno Haible.
27276
27277         sys_stat: guarantee struct timespec
27278         * lib/sys_stat.in.h (includes): Always include <time.h>
27279         * modules/sys_stat (Depends-on): Add time.
27280         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27281         mode_t permission values.
27282         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27283         get at subsecond timestamps.
27284
27285 2009-10-10  Eric Blake  <ebb9@byu.net>
27286
27287         futimens: new module
27288         * modules/futimens: New file.
27289         * lib/futimens.c (futimens): Likewise.
27290         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27291         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27292         we can work around Linux bugs.
27293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27294         * modules/sys_stat (Makefile.am): Substitute them.
27295         * lib/sys_stat.in.h (futimens): Declare it.
27296         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27297         * doc/posix-functions/futimens.texi (futimens): Likewise.
27298         * modules/futimens-tests: New test.
27299         * tests/test-futimens.c: Likewise.
27300
27301         utimens: introduce fdutimens
27302         * lib/utimens.h (fdutimens): New prototype.
27303         * lib/utimens.c (gl_futimens): Move guts...
27304         (fdutimens): ...to new interface.
27305         * tests/test-utimens.c (do_fdutimens): Use it.
27306
27307         utimens: add UTIME_NOW and UTIME_OMIT support
27308         * lib/utimens.c (validate_timespec, update_timespec): New helper
27309         functions.
27310         (gl_futimens, lutimens): Use them.
27311         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27312         stdbool, sys_stat.
27313         (Link): Mention resulting library dependency.
27314         * modules/utimecmp (Link): Likewise.
27315         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27316         (Makefile.am): Pick up library dependency.
27317         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27318         definition.
27319         * tests/test-sys_stat.c: Test the definitions.
27320         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27321         * NEWS: Document library dependency.
27322
27323         utimecmp: support symlink timestamps
27324         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27325         hashing when possible.  Use pathconf when available.
27326         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27327         * modules/utimecmp (Depends-on): Add lstat.
27328
27329         utimens: add lutimens interface
27330         * lib/utimens.c (lutimens): New function.
27331         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27332         * lib/utimens.h (lutimens): Declare new interface.
27333         * tests/test-utimens.c (main): Enhance test.
27334         * tests/test-lutimens.h (test_lutimens): New file.
27335         * modules/utimens-tests (Files): Distribute it.
27336         (Depends-on): Add symlink.
27337         (configure.ac): Check for usleep.
27338
27339         utimens: validate futimens usage
27340         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27341         fewer syscalls on failure later on.  Avoid compiler warning on
27342         mingw.
27343         * modules/utimens (Depends-on): Add dup2.
27344
27345         utimens: add test
27346         * modules/utimens-tests: New test.
27347         * tests/test-utimens.h: New file.
27348         * tests/test-futimens.h: Likewise.
27349         * tests/test-utimens.c: Likewise.
27350
27351         doc: mention timestamp portability issues
27352         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27353         instead.
27354         * doc/posix-functions/utime.texi (utime): Likewise.
27355         * doc/posix-functions/utimes.texi (utimes): Likewise.
27356         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27357         instead.
27358         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27359         module.
27360         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27361         Mention weakness with symlink timestamps.
27362         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27363         to utimensat/futimens instead.
27364         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27365
27366         test-dup2: enhance test
27367         * tests/test-dup2.c (main): Also check AT_FDCWD.
27368
27369         test-stat-time: avoid more spurious failures
27370         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27371         xfs; and avoid race if the two timestamps cross quantization edge.
27372
27373         relocatable: prefer 'file system' over 'filesystem'
27374         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27375         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27376         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27377         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27378         * lib/relocatable.c (compute_curr_prefix): Likewise.
27379
27380 2009-10-10  Jim Meyering  <meyering@redhat.com>
27381
27382         stat-time-tests: check for the usleep function
27383         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27384
27385 2009-10-10  Bruno Haible  <bruno@clisp.org>
27386
27387         * modules/xnanosleep: Put the Link section after the Include section.
27388
27389 2009-10-09  Eric Blake  <ebb9@byu.net>
27390
27391         dup2: work around FreeBSD 6.1 bug
27392         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27393         * doc/posix-functions/dup2.texi (dup2): Document it.
27394         Reported by Nelson H. F. Beebe and Jim Meyering.
27395
27396         test-stat-time: port to buggy NFS clients
27397         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27398         (test_ctime): Also skip test if mtime and ctime are skewed.
27399
27400         maint: prefer 'file system' over 'filesystem'
27401         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27402         * doc/posix-functions/lstat.texi (lstat): Likewise.
27403         * lib/file-has-acl.c (file_has_acl): Likewise.
27404         * lib/fwriteerror.c [TEST]: Likewise.
27405         * tests/test-areadlink.h (test_areadlink): Likewise.
27406         * tests/test-areadlinkat-with-size.c (main): Likewise.
27407         * tests/test-areadlinkat.c (main): Likewise.
27408         * tests/test-canonicalize-lgpl.c (main): Likewise.
27409         * tests/test-canonicalize.c (main): Likewise.
27410         * tests/test-fstatat.c (main): Likewise.
27411         * tests/test-linkat.c (main): Likewise.
27412         * tests/test-lstat.h (test_lstat_func): Likewise.
27413         * tests/test-mkdir.h (test_mkdir): Likewise.
27414         * tests/test-readlink.h (test_readlink): Likewise.
27415         * tests/test-remove.c (main): Likewise.
27416         * tests/test-rename.h (test_rename): Likewise.
27417         * tests/test-renameat.c (main): Likewise.
27418         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27419         * tests/test-symlink.h (test_symlink): Likewise.
27420         * tests/test-symlinkat.c (main): Likewise.
27421         * tests/test-unlink.h (test_unlink_func): Likewise.
27422         * tests/test-unlinkat.c (main): Likewise.
27423
27424         maint: make realtime library usage explicit
27425         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27426         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27427         * modules/settime (Link): Likewise.
27428         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27429
27430         test-stat-time: speed up execution
27431         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27432         warning on mingw.
27433         (nap): New helper function.
27434         (prepare_test): Use it to reduce sleep time.
27435         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27436         execution.
27437         * modules/stat-time-tests (configure.ac): Check for usleep.
27438
27439 2009-10-09  Jim Meyering  <meyering@redhat.com>
27440
27441         selinux-h: always use getfilecon wrappers
27442         * lib/getfilecon.c: New file.
27443         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27444         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27445         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27446         (fgetfilecon): Provide a stub.
27447         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27448         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27449         file unconditionally.
27450         When <selinux/selinux.h> is found, arrange to use wrappers.
27451         * modules/selinux-h (Files): Add getfilecon.c.
27452         (Makefile.am): Substitute include-next-related bits
27453         into the now-always-generated selinux/selinux.h file.
27454         * doc/glibc-functions/lgetfilecon.texi: New file.
27455         * doc/glibc-functions/fgetfilecon.texi: New file.
27456         * doc/glibc-functions/getfilecon.texi: New file.
27457         * doc/glibc-functions/getfilecon-desc.texi: New file.
27458         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27459         which to pull in the new files.
27460         * MODULES.html.sh (Misc): Add selinux-h.
27461
27462 2009-10-08  Jim Meyering  <meyering@redhat.com>
27463
27464         unistd: fix comment typo
27465         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27466
27467 2009-10-08  Eric Blake  <ebb9@byu.net>
27468
27469         areadlink: use SIZE_MAX consistently
27470         * modules/areadlink (Depends-on): Add stdint.
27471         * modules/areadlink-with-size (Depends-on): Likewise.
27472         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27473         gives NULL; drop sys/types, since unistd gives size_t; and add
27474         stdint for SIZE_MAX.
27475         (SIZE_MAX): Rely on headers.
27476         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27477         and add stdint.
27478         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27479         (SIZE_MAX): Likewise.
27480         (INITIAL_BUF_SIZE): Turn into enum.
27481         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27482
27483 2009-10-08  Jim Meyering  <meyering@redhat.com>
27484
27485         areadlinkat: avoid compilation failure
27486         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27487         Fix typo in comment.
27488
27489 2009-10-07  Eric Blake  <ebb9@byu.net>
27490
27491         areadlinkat-with-size: new module
27492         * modules/areadlinkat-with-size: New module.
27493         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27494         * lib/areadlink.h (areadlinkat): Declare it.
27495         * MODULES.html.sh (File system functions): Mention it.
27496         * modules/areadlinkat-with-size-tests: New test.
27497         * tests/test-areadlinkat-with-size.c: New file.
27498
27499         xreadlinkat: new module
27500         * modules/xreadlinkat: New module.
27501         * lib/xreadlinkat.c (xreadlinkat): New file.
27502         * lib/xreadlink.h (xreadlinkat): Declare it.
27503         * MODULES.html.sh (File system functions): Mention it.
27504
27505         areadlinkat: new module
27506         * lib/at-func.c (FUNC_FAIL): New define.
27507         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27508         * modules/areadlinkat: New module.
27509         * lib/linkat.c (areadlinkat): Move...
27510         * lib/areadlinkat.c (areadlinkat): ...to new file.
27511         * lib/areadlink.h (areadlinkat): Declare it.
27512         * modules/linkat (Depends-on): Add areadlinkat.
27513         * MODULES.html.sh (File system functions): Mention it.
27514         * modules/areadlinkat-tests: New test.
27515         * tests/test-areadlinkat.c: New file.
27516
27517         areadlink, areadlink-with-size: add tests
27518         * modules/areadlink-tests: New test.
27519         * modules/areadlink-with-size-tests: Likewise.
27520         * tests/test-areadlink.h: New file.
27521         * tests/test-areadlink.c: Likewise.
27522         * tests/test-areadlink-with-size.c: Likewise.
27523
27524         maint: minor cleanups
27525         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27526         _UNUSED_PARAMETER_ instead.
27527         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27528         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27529         * modules/linkat-tests (Files): Distribute test-link.h.
27530
27531         openat, utimens: whitespace cleanup
27532         * lib/openat.c: Prefer space throughout, rather than mix of 8
27533         spaces vs. tabs.
27534         * lib/at-func.c: Likewise.
27535         * lib/utimens.c: Likewise.
27536
27537         openat: avoid using wrong fd
27538         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27539         working directory chooses same fd.
27540         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27541
27542         mkdir, mkdirat: fix cygwin 1.5.x bug
27543         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27544         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27545         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27546         bug.
27547         (gl_PREREQ_MKDIR): Delete unused macro.
27548         * modules/mkdir (Files): Track file rename.
27549         (configure.ac): Update macro name.
27550         * modules/openat (Depends-on): Add mkdir.
27551         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27552
27553         mkdir, mkdirat: add tests
27554         * modules/mkdir-tests: New test.
27555         * tests/test-mkdir.h: New file.
27556         * tests/test-mkdir.c: Likewise.
27557         * tests/test-mkdirat.c: Likewise.
27558         * modules/openat-tests (Files): Add new files.
27559         (Makefile.am): Run new test.
27560
27561 2009-10-06  Eric Blake  <ebb9@byu.net>
27562
27563         doc: tweak *at function documentation
27564         * doc/posix-functions/faccessat.texi (faccessat): Mention
27565         known issue with replacement.
27566         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27567         * doc/posix-functions/linkat.texi (linkat): Likewise.
27568         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27569         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27570         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27571         * doc/posix-functions/renameat.texi (renameat): Likewise.
27572         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27573
27574         openat: fix GNU/Hurd bug in unlinkat
27575         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27576         broken.
27577         * doc/posix-functions/unlink.texi (unlink): Document this.
27578         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27579
27580         fdopendir: fix GNU/Hurd bug
27581         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27582         allowing non-directory fds.
27583         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27584         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27585         * modules/dirent (Makefile.am): Substitute it.
27586         * lib/dirent.in.h (fdopendir): Declare replacement.
27587         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27588         * tests/test-fdopendir.c (main): Test something other than
27589         /dev/null, since on Hurd that behaves like a directory.
27590
27591         test-symlink: port to GNU/Hurd
27592         * tests/test-symlink.h (test_symlink): Relax expected errno.
27593
27594         doc: tweak more cygwin information
27595         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27596         now compatible with glibc.
27597         * doc/posix-functions/getopt.texi (getopt): Likewise.
27598
27599         getopt-gnu: add another test
27600         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27601         guarantee behavior relied on by m4.
27602         * tests/test-getopt.c (main): Use it.
27603         * modules/getopt-posix-tests (Depends-on): Add setenv.
27604         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27605
27606         getopt: fix compilation on darwin
27607         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27608         include.
27609         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27610         Reported by Ludovic Courtès.
27611
27612 2009-10-06  Bruno Haible  <bruno@clisp.org>
27613
27614         * modules/size_max (Description): Discourage its use.
27615         Reported by Simon Josefsson.
27616
27617 2009-10-06  Jim Meyering  <meyering@redhat.com>
27618
27619         linkat: avoid compilation failure
27620         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27621
27622 2009-10-05  Eric Blake  <ebb9@byu.net>
27623
27624         linkat: support Linux 2.6.17
27625         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27626         linkat on Linux, but allow cache variable override.
27627         * lib/linkat.c (rpl_linkat): Define override.
27628         * modules/linkat (Depends-on): Add symlinkat.
27629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27630         * modules/unistd (Makefile.am): Substitute it.
27631         * lib/unistd.in.h (linkat): Declare replacement.
27632         Reported by Pádraig Brady.
27633
27634         quotearg: port test to systems with C.UTF-8 locale
27635         * tests/test-quotearg.c (struct result_strings): Add another
27636         member, differentiating between C.ASCII and C.UTF-8 handling.
27637         (compare_strings): Add parameter.
27638         (main): Adjust all callers.
27639
27640         getopt: avoid clash with FreeBSD _getopt_internal
27641         * lib/getopt.in.h (_getopt_internal): Override the name.
27642         * lib/getopt_int.h (includes): Pick up any overrides.
27643         Reported by Reuben Thomas.
27644
27645         hash: allow C89 compilation
27646         * lib/hash.c (check_tuning): Move declaration before statement.
27647         Reported by Reuben Thomas.
27648
27649 2009-10-05  Karl Berry  <karl@gnu.org>
27650
27651         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27652
27653 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27654             Bruno Haible  <bruno@clisp.org>
27655
27656         * lib/uname.c (uname): Use a table-driven algorithm to compute
27657         Windows NT versions.
27658
27659 2009-10-04  Bruno Haible  <bruno@clisp.org>
27660
27661         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27662         program_invocation_short_name.
27663         * modules/progname (configure.ac): Test for presence of
27664         program_invocation_short_name.
27665         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27666
27667 2009-10-04  Bruno Haible  <bruno@clisp.org>
27668
27669         * lib/progname.c (set_program_name): Fix comment.
27670         Reported by Jim Meyering.
27671
27672 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27673             Bruno Haible  <bruno@clisp.org>
27674
27675         * lib/uname.c: Include <string.h>.
27676         (uname): Do only one call to GetVersionEx in the common case.
27677
27678 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27679             Bruno Haible  <bruno@clisp.org>
27680
27681         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27682         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27683         (uname): Add support for Windows CE and various non-x86 CPU types.
27684
27685 2009-10-03  Bruno Haible  <bruno@clisp.org>
27686
27687         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27688         invocation to tests/configure.ac.
27689         Reported by Ian Beckwith <ianb@erislabs.net>.
27690
27691 2009-10-02  Eric Blake  <ebb9@byu.net>
27692
27693         fchdir: avoid compiler warning
27694         * lib/fchdir.c (canonicalize_file_name)
27695         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27696
27697         test-open: support mingw errno values
27698         * tests/test-open.h (test_open): Relax test.
27699         * tests/test-fopen.h (test_fopen): Likewise.
27700         * tests/test-openat-safer.c (main): Likewise.
27701
27702         open: fix opening directory on mingw
27703         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27704
27705         test-open: on GNU/Hurd, /dev/null is a directory
27706         * tests/test-fopen.h (main): Rename...
27707         (test_fopen): ...to this.  Use a guaranteed non-directory when
27708         confirming open behavior on trailing slash.
27709         * tests/test-openat-safer.c (main): Likewise.
27710         * tests/test-open.h (main): Likewise....
27711         (test_open): ...to this.
27712         * tests/test-fopen.c (main): Adjust caller.
27713         * tests/test-fopen-safer.c (main): Likewise.
27714         * tests/test-open.c (main): Likewise.
27715         * tests/test-fcntl-safer.c (main): Likewise.
27716         Reported by Samuel Thibault.
27717
27718         rename, fchdir: don't ignore chdir failure
27719         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27720         * lib/rename.c (rpl_rename) [W32]: Likewise.
27721         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27722         an empty destination directory if source cannot be renamed,
27723         although there is still possibility for failure.
27724         * doc/posix-functions/rename.texi (rename): Document the race.
27725         Reported by Jim Meyering.
27726
27727         maint: cleanup whitespace in recent commits
27728         * lib/rename.c (rpl_rename): Remove tabs.
27729         * tests/test-link.h (test_link): Likewise.
27730         * lib/fchdir.c (get_name): Likewise.
27731         Reported by Jim Meyering.
27732
27733 2009-10-02  Ben Pfaff  <blp@gnu.org>
27734
27735         relocatable-prog-wrapper: Add missing dependency on
27736         double-slash-root.
27737         * modules/relocatable-prog-wrapper: Add dependency.
27738         Reported by Ian Beckwith <ianb@erislabs.net>.
27739
27740 2009-10-02  Eric Blake  <ebb9@byu.net>
27741
27742         renameat: fix Solaris bugs
27743         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27744         needed fixing.
27745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27746         * modules/stdio (Makefile.am): Substitute it.
27747         * lib/stdio.in.h (renameat): Declare replacement.
27748         * lib/renameat.c (rpl_renameat): Implement fix.
27749
27750         renameat: new module
27751         * modules/renameat: New file.
27752         * lib/renameat.c (renameat): Likewise.
27753         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27755         * modules/stdio (Makefile.am): Substitute them.
27756         * lib/stdio.in.h (renameat): Declare it.
27757         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27758         * doc/posix-functions/renameat.texi (renameat): Likewise.
27759         * modules/renameat-tests: New test.
27760         * tests/test-renameat.c: Likewise.
27761
27762         rename: fix mingw bugs
27763         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27764         directory overwrite bugs.
27765
27766         rename: fix another cygwin 1.5 bug
27767         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27768         checks.
27769         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27770         unnecessary cygwin workarounds.  Also work around bug with moving
27771         full directory onto an empty one.
27772         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27773
27774         rename-dest-slash: merge into rename module
27775         * modules/rename-dest-slash (Status): Mark obsolete.
27776         (Depends-on): Add rename.
27777         (Files): Let rename do it all.
27778         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27779         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27780         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27781         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27782         * lib/rename.c (rpl_rename): Update comments.
27783
27784         rename: fix cygwin 1.5.x bugs
27785         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27786         * lib/rename.c (rpl_rename): Work around them.
27787         * modules/rename (Depends-on): Add same-inode.
27788
27789         rename: fix Solaris 10 bug
27790         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27791         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27792         was the only bug.
27793
27794         rename: fix Solaris 9 bug
27795         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27796         on non-directory.  Avoid calling exit.
27797         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27798         strdup.
27799         * modules/rename-tests (Depends-on): Drop lstat.
27800         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27801         (gl_PREREQ_RENAME): Delete unused macro.
27802
27803         rename-dest-slash: fix NetBSD bug
27804         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27805         links.
27806         * modules/rename-dest-slash (Depends-on): Add same-inode.
27807
27808         rename-tests: new test, exposes several platform bugs
27809         * modules/rename-tests: New file.
27810         * tests/test-rename.h: Likewise.
27811         * tests/test-rename.c: Likewise.
27812         * doc/posix-functions/rename.texi (rename): Improve documentation,
27813         including bugs that will eventually be fixed in gnulib.
27814
27815 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27816
27817         * lib/uname.c: Include <stdlib.h>
27818         (uname): Assume version info is available.
27819
27820 2009-10-02  Jim Meyering  <meyering@redhat.com>
27821
27822         gnu-web-doc-update: correct --help output
27823         * build-aux/gnu-web-doc-update: Make --help output relevant.
27824
27825         gnu-web-doc-update: add standard options
27826         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27827
27828         gnu-web-doc-update: New module.
27829         Use this script to automatically update the on-line web documentation
27830         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27831         * modules/gnu-web-doc-update: New file, from coreutils.
27832         * build-aux/gnu-web-doc-update: New script.
27833
27834 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27835
27836         link: LoadLibrary is not needed.
27837         * lib/link.c: Use GetModuleHandle.
27838
27839 2009-10-01  Eric Blake  <ebb9@byu.net>
27840
27841         getopt: bump serial number
27842         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27843         change.
27844
27845         tests: tighten link, rmdir, and remove tests
27846         * tests/test-link.h (includes): No need to use <config.h> here.
27847         Clean up if directory hard link was created, otherwise test for
27848         trailing '.'.
27849         * tests/test-linkat.c (main): Simplify.
27850         * tests/test-remove.c (main): Enhance test for trailing '.'.
27851         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27852
27853 2009-10-01  Jim Meyering  <meyering@redhat.com>
27854
27855         maint.mk: requiring "make major" was annoying, for a "minor" release.
27856         What is intended is "stable", to contrast with alpha and beta,
27857         so require "make stable", not "make major".
27858         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27859         (get_tool_versions): Likewise.
27860         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27861
27862 2009-09-30  Ben Pfaff  <blp@gnu.org>
27863
27864         Fix broken build of replacement for Windows tmpfile().
27865         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27866         flags argument added along with the 'mkostemp' module.
27867
27868 2009-09-28  Bruno Haible  <bruno@clisp.org>
27869
27870         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27871         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27872         to 'remove_elt'.
27873         (gl_list_remove): Update.
27874         * lib/gl_list.c (gl_list_remove): Update.
27875         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27876         to 'remove_elt'.
27877         (gl_oset_remove): Update.
27878         * lib/gl_list.c (gl_oset_remove): Update.
27879         Reported by Eric Blake.
27880
27881 2009-09-28  Eric Blake  <ebb9@byu.net>
27882
27883         doc: mention yet more cygwin 1.7 status
27884         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27885         cygwin.
27886         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27887         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27888
27889         argp: fix test failure
27890         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27891         that are not upper-case.  Pass correct range to tolower.
27892
27893 2009-09-27  Jim Meyering  <meyering@redhat.com>
27894
27895         test-yesno: work around sparc-dash here-document infelicity
27896         Without this change, the literal \177 byte in a here document
27897         would make dash 0.5.5.1-3 access uninitialized memory.
27898         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27899         Instead, use a marker, "@", and filter through tr to create the desired
27900         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27901
27902 2009-09-27  Bruno Haible  <bruno@clisp.org>
27903
27904         Disable untested support for new flavours of ACLs on AIX.
27905         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27906         progress.
27907         * lib/set-mode-acl.c (qset_acl): Likewise.
27908
27909 2008-12-07  Bruno Haible  <bruno@clisp.org>
27910
27911         Add support for new flavours of ACLs on AIX. (Untested.)
27912         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27913         (file_has_acl): Add support for newer AIX.
27914         * lib/set-mode-acl.c (qset_acl): Likewise.
27915         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27916         Rainer Tammer <tammer@tammer.net>.
27917
27918 2009-09-26  Eric Blake  <ebb9@byu.net>
27919
27920         argp: fix compilation of getopt
27921         * lib/getopt.in.h (includes): Use different guard than glibc.
27922         Reported by Sergey Poznyakoff.
27923
27924         doc: mention more cygwin 1.7 status
27925         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27926         bug.
27927         * doc/posix-functions/execl.texi (execl): Likewise.
27928         * doc/posix-functions/execle.texi (execle): Likewise.
27929         * doc/posix-functions/execlp.texi (execlp): Likewise.
27930         * doc/posix-functions/execv.texi (execv): Likewise.
27931         * doc/posix-functions/execve.texi (execve): Likewise.
27932         * doc/posix-functions/execvp.texi (execvp): Likewise.
27933         * doc/glibc-functions/canonicalize_file_name.texi
27934         (canonicalize_file_name): Cygwin 1.7 now provides this.
27935         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27936         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27937         on AT_SYMLINK_NOFOLLOW.
27938
27939 2009-09-24  Eric Blake  <ebb9@byu.net>
27940
27941         test-linkat: make test more robust
27942         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27943
27944         getopt: fix inclusion guards for cygwin
27945         * modules/getopt-posix (Depends-on): Add include-next.
27946         (Makefile.am): Substitute more items in replacement header.
27947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27948         <getopt.h>.
27949         * lib/getopt.in.h (includes): Use split inclusion guard, and
27950         prefer <getopt.h> over include <unistd.h> when one is present.
27951         (option): Also override name of 'struct option'.
27952
27953         same-inode: revert prior change; it is not yet ready
27954         * NEWS: Undo mention of this change.
27955         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27956         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27957         * lib/cycle-check.c (cycle_check): Likewise.
27958         * lib/same.c (same_name): Likewise.
27959         * lib/at-func2.c (at_func2): Likewise.
27960
27961 2009-09-23  Eric Blake  <ebb9@byu.net>
27962
27963         linkat: new module
27964         * modules/linkat: New file.
27965         * lib/at-func2.c (at_func2): Likewise.
27966         * lib/linkat.c (linkat): Likewise.
27967         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27968         * lib/openat-priv.h (at_func2): Add declaration.
27969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27970         * modules/unistd (Makefile.am): Substitute them.
27971         * lib/unistd.in.h (linkat): Declare it.
27972         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27973         * doc/posix-functions/linkat.texi (linkat): Likewise.
27974         * doc/posix-functions/link.texi (link): Tweak wording.
27975         * tests/test-link.c (main): Move guts...
27976         * tests/test-link.h (test_link): ...into new file.
27977         * modules/linkat-tests: New test.
27978         * tests/test-linkat.c: Likewise.
27979         * modules/link-tests (Files): Ship new file.
27980         (Depends-on): Add stdbool.
27981
27982         dirname: add library-safe mdir_name
27983         * lib/dirname.h (mdir_name): New prototype.
27984         * lib/dirname.c (dir_name): Move guts...
27985         (mdir_name): ...to new function that avoids xalloc_die.
27986
27987         fchdir: another mingw fix
27988         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27989         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27990         on mingw (where it has not yet been ported), and make it optional
27991         elsewhere.
27992         (_gl_register_fd): Use it.
27993
27994         same-inode: make SAME_INODE tri-state, to port to mingw
27995         * NEWS: Mention this change.
27996         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27997         st_ino always being 0.
27998         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27999         * lib/cycle-check.c (cycle_check): Likewise.
28000         * lib/same.c (same_name): Likewise.
28001
28002         lstat: avoid mingw compilation error
28003         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28004         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28005         lstat ourselves.
28006         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28007         was adequate.
28008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28009         the checks for lstat.
28010         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28011
28012         link: fix test failure on Solaris 9
28013         * lib/link.c (rpl_link): Don't assume link will catch bogus
28014         trailing slash on source.
28015
28016         test-symlinkat: enhance test
28017         * tests/test-readlink.c (main): Move guts...
28018         * tests/test-readlink.h (test_readlink): ...into new file.
28019         * tests/test-symlink.c (main): Move guts...
28020         * tests/test-symlink.h (test_symlink): ...into new file.
28021         * tests/test-symlinkat.c (main): Use new files for further
28022         coverage.
28023         (do_symlink, do_readlink): New helper functions.
28024         * modules/symlink-tests (Files): Ship new file.
28025         (Depends-on): Add stdbool.
28026         * modules/readlink-tests (Files): Ship new file.
28027         (Depends-on): Add stdbool.
28028         * modules/symlinkat-tests (Files): Use new files.
28029
28030 2009-09-23  Eric Blake  <ebb9@byu.net>
28031
28032         readlink: document portability issue with symlink length
28033         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28034         systems have bogus st_size on symlinks, and mention the
28035         areadlink-with-size module.
28036         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28037         * doc/posix-functions/readlink.texi (readlink): Mention the
28038         areadlink module, and ERANGE failure.
28039         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28040         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28041
28042         readlink: fix Solaris 9 bug with trailing slash
28043         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28044         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28045         * doc/posix-functions/readlink.texi (readlink): Document this.
28046         * modules/readlink-tests: New test.
28047         * tests/test-readlink.c: Likewise.
28048
28049         readlink: fix cygwin 1.5.x bug with return type
28050         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28051         * lib/unistd.in.h (readlink): Use ssize_t.
28052         * lib/readlink.c (readlink): Likewise.
28053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28054         * modules/unistd (Makefile.am): Substitute it.
28055         * lib/unistd.in.h (readlink): Declare replacement.
28056         * doc/posix-functions/readlink.texi (readlink): Document this.
28057
28058         symlink: use throughout gnulib
28059         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28060         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28061         symlink is not used.
28062         * modules/symlinkat (Depends-on): Add symlink.
28063         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28064         * modules/canonicalize-tests (Depends-on): Likewise.
28065         * modules/lstat-tests (Depends-on): Likewise.
28066         * modules/openat-tests (Depends-on): Likewise.
28067         * modules/remove-tests (Depends-on): Likewise.
28068         * modules/rmdir-tests (Depends-on): Likewise.
28069         * modules/unlink-tests (Depends-on): Likewise.
28070         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28071         * tests/test-canonicalize.c (symlink): Likewise.
28072         * tests/test-fstatat.c (symlink): Likewise.
28073         * tests/test-lstat.c (symlink): Likewise.
28074         * tests/test-remove.c (symlink): Likewise.
28075         * tests/test-rmdir.c (symlink): Likewise.
28076         * tests/test-unlink.c (symlink): Likewise.
28077         * tests/test-unlinkat.c (symlink): Likewise.
28078
28079         symlink: new module, for Solaris 9 bug
28080         * modules/symlink: New file.
28081         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28082         * lib/symlink.c: Likewise.
28083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28084         * modules/unistd (Makefile.am): Substitute them.
28085         * lib/unistd.in.h (symlink): Declare replacement.
28086         * MODULES.html.sh (File system functions): Mention it.
28087         * doc/posix-functions/symlink.texi (symlink): Likewise.
28088         * modules/symlink-tests: New test.
28089         * tests/test-symlink.c: Likewise.
28090
28091 2009-09-23  Bruno Haible  <bruno@clisp.org>
28092
28093         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28094         when needed.
28095         Test case: gnulib-tool --import --with-tests atexit inttypes.
28096         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28097
28098 2009-09-23  Bruno Haible  <bruno@clisp.org>
28099
28100         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28101         subcommand, not in a subshell.
28102
28103 2009-09-22  Eric Blake  <ebb9@byu.net>
28104
28105         unistd: sort replacement declarations
28106         * lib/unistd.in.h: Sort declarations.
28107
28108         open, openat: minor optimization
28109         * lib/open.c (open): If open succeeded, len is non-zero.
28110         * lib/openat.c (rpl_openat): Likewise.
28111
28112         link-follow: ensure correct result
28113         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28114         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28115         distinguish between possible failures.
28116
28117 2009-09-21  Eric Blake  <ebb9@byu.net>
28118
28119         fts: avoid compiler warning
28120         * lib/fts.c (dirent_inode_sort_may_be_useful)
28121         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28122
28123 2009-09-19  Bruno Haible  <bruno@clisp.org>
28124
28125         * lib/progreloc.c (canonicalize_file_name): New declaration.
28126
28127 2009-09-19  Eric Blake  <ebb9@byu.net>
28128
28129         link: fix quoting
28130         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28131
28132         openat: fix openat bugs on Solaris 9
28133         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28134         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28135         * modules/openat (Depends-on): Add open.
28136         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28137         * modules/fcntl-h (Makefile.am): Substitute it.
28138         * lib/fcntl.in.h (openat): Declare replacement.
28139         * doc/posix-functions/openat.texi (openat): Document this.
28140
28141         openat: move fstatat and unlinkat into correct files
28142         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28143         compiled.
28144         * lib/openat.c (fstatat, unlinkat): Move...
28145         * lib/fstatat.c (fstatat): ...into correct files.
28146         * lib/unlinkat.c (unlinkat): Likewise.
28147
28148         openat: fix unlinkat bugs on Solaris 9
28149         * lib/unlinkat.c (unlinkat): New file.
28150         * modules/openat (Depends-on): Add unlink.
28151         (Files): Distribute it.
28152         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28153         trailing slash behavior is broken.
28154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28155         * modules/unistd (Makefile.am): Substitute it.
28156         * lib/unistd.in.h (unlinkat): Declare replacement.
28157         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28158
28159         openat: fix fstatat bugs on Solaris 9
28160         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28161         stat.
28162         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28163
28164         test-unlinkat: enhance test, to expose Solaris 9 bug
28165         * tests/test-unlink.c (main): Factor guts...
28166         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28167         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28168         * tests/test-rmdir.c (main): Adjust caller.
28169         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28170         (unlinker): New helper function.
28171         (rmdirat): Enhance check.
28172         * modules/rmdir-tests (Depends-on): Add stdbool.
28173         * modules/unlink-tests (Depends-on): Likewise.
28174         (Files): Add test-unlink.h.
28175         * modules/openat-tests (Files): Likewise.
28176         (Depends-on): Add unlinkdir.
28177
28178         test-fstatat: new test, to expose Solaris 9 bugs
28179         * tests/test-stat.c (main): Factor guts...
28180         * tests/test-stat.h (test_stat_func): ...into new file.
28181         * tests/test-lstat.c (main): Factor guts...
28182         * tests/test-lstat.h (test_lstat_func): ...into new file.
28183         * tests/test-fstatat.c: New file.
28184         * modules/stat-tests (Files): Add test-stat.h.
28185         * modules/lstat-tests (Files): Add test-lstat.h.
28186         (Depends-on): Add stdbool.
28187         * modules/openat-tests (Depends-on): Add pathmax.
28188         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28189         (Makefile.am): Run new test.
28190
28191         remove: new module, for mingw and Solaris 9 bugs
28192         * modules/remove: New file.
28193         * lib/remove.c: Likewise.
28194         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28196         * modules/stdio (Makefile.am): Use them.
28197         * lib/stdio.in.h (remove): Declare replacement.
28198         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28199         * doc/posix-functions/remove.texi (remove): Likewise.
28200         * modules/remove-tests: New test.
28201         * tests/test-remove.c: Likewise.
28202
28203         unlink: new module, for Solaris 9 bug
28204         * modules/unlink: New file.
28205         * lib/unlink.c: Likewise.
28206         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28208         * modules/unistd (Makefile.am): Use them.
28209         * lib/unistd.in.h (stat): Declare replacement.
28210         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28211         * doc/posix-functions/unlink.texi (unlink): Likewise.
28212         * modules/unlink-tests: New test.
28213         * tests/test-unlink.c: Likewise.
28214
28215         lstat: fix Solaris 9 bug
28216         * lib/lstat.c (lstat): Also check for trailing slash on
28217         non-symlink, non-directories.  Use stat module to simplify logic.
28218         * doc/posix-functions/lstat.texi (lstat): Document it.
28219         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28220         (configure.ac): Check for symlink.
28221         * tests/test-lstat.c (main): Add more tests.
28222
28223         stat: add as dependency to other modules
28224         * modules/chown (Depends-on): Add stat.
28225         * modules/euidaccess (Depends-on): Likewise.
28226         * modules/fchdir (Depends-on): Likewise.
28227         * modules/isdir (Depends-on): Likewise.
28228         * modules/link (Depends-on): Likewise.
28229         * modules/lstat (Depends-on): Likewise.
28230         * modules/mkdir-p (Depends-on): Likewise.
28231         * modules/modechange (Depends-on): Likewise.
28232         * modules/open (Depends-on): Likewise.
28233         * modules/readlink (Depends-on): Likewise.
28234         * modules/same (Depends-on): Likewise.
28235
28236         stat: fix Solaris 9 bug
28237         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28238         slash.
28239         * lib/stat.c (rpl_stat): Work around it.
28240         * doc/posix-functions/stat.texi (stat): Update documentation.
28241
28242         stat: new module, for mingw bug
28243         * modules/stat: New file.
28244         * lib/stat.c: Likewise.
28245         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28246         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28247         * modules/sys_stat (Makefile.am): Use them.
28248         * lib/sys_stat.in.h (stat): Declare replacement.
28249         * lib/openat.c (fstatat): Deal with lstat and stat being function
28250         macros.
28251         * modules/openat (Depends-on): Add inline.
28252         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28253         * doc/posix-functions/stat.texi (stat): Likewise.
28254         * modules/stat-tests: New test.
28255         * tests/test-stat.c: Likewise.
28256
28257 2009-09-19  Jim Meyering  <meyering@redhat.com>
28258
28259         syntax-check: detect unnecessary inclusion of canonicalize.h
28260         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28261
28262 2009-09-19  Eric Blake  <ebb9@byu.net>
28263
28264         canonicalize-lgpl: adjust clients to use correct header
28265         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28266         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28267         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28268         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28269         * lib/progreloc.c (includes): Likewise.
28270
28271 2009-09-19  Jim Meyering  <meyering@redhat.com>
28272
28273         test-posixtm.c: correct a comment
28274         * tests/test-posixtm.c: Correct first-line comment.
28275         Spotted by Eric Blake.
28276
28277 2009-09-16  Jim Meyering  <meyering@redhat.com>
28278
28279         posixtm-tests: make T const-correct; add a test case
28280         * tests/test-posixtm.c (T): Declare const.
28281         Add a test for -(2^31+1).
28282         Remove useless can-succeed-only-in-2002 test.
28283
28284         posixtm-tests: adjust the sole failing test
28285         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28286         expected output matches what mktime now produces.  Cross-checked via
28287         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28288
28289         posixtm: move #ifdef'd tests into a new module
28290         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28291         * tests/test-posixtm.c: ... this new file.
28292         * modules/posixtm-tests: New module.
28293
28294 2009-09-19  Eric Blake  <ebb9@byu.net>
28295
28296         openat: simplify use of at-func.c
28297         * lib/at-func.c (includes): Include prerequisites here, to
28298         simplify requirements on client files.
28299         * lib/openat-priv.h: Add double-inclusion guard.
28300         * lib/faccessat.c (includes): Simplify.
28301         * lib/fchmodat.c (includes): Likewise.
28302         * lib/fchownat.c (includes): Likewise.
28303         * lib/mkdirat.c (includes): Likewise.
28304         * lib/mkfifoat.c (includes): Likewise.
28305         * lib/symlinkat.c (includes): Likewise.
28306
28307         openat: allow return of fd 0
28308         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28309         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28310         unistd-safer.
28311         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28312         <fcntl.h>; this module does not leak fds.
28313         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28314         must be allowed to return 0, leaving openat_safer to add the
28315         safety.
28316         (openat_permissive): Avoid writing to just-opened fd 2 if
28317         restoring the current directory fails.
28318         * lib/openat-die.c (openat_restore_fail): Add comment.
28319         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28320         (save_cwd): Guarantee safe fd, but without use of open_safer.
28321         * tests/test-openat.c: New test.
28322         * modules/openat-tests (Files, Makefile.am): Distribute and build
28323         new file.
28324
28325         relocatable-prog-wrapper: fix build
28326         * modules/relocatable-prog-wrapper (Files): Update name of
28327         canonicalize m4 file, broken on 2009-09-17.
28328         Reported by emad hajjar <aleppos@hotmail.com>.
28329
28330 2009-09-19  Bruno Haible  <bruno@clisp.org>
28331
28332         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28333         * lib/safe-alloc.c: Likewise.
28334         Reported by Ian Beckwith <ianb@erislabs.net>.
28335
28336 2009-09-18  Bruno Haible  <bruno@clisp.org>
28337
28338         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28339         Reported by <erobles@sensacd.com.mx>.
28340
28341 2009-09-17  Eric Blake  <ebb9@byu.net>
28342
28343         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28344         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28345         slashes when checking if last component is missing.
28346         * tests/test-canonicalize.c (main): Test this.
28347
28348         canonicalize, canonicalize-lgpl: honor // if distinct from /
28349         * modules/canonicalize (Files): Add double-slash-root.m4.
28350         * modules/canonicalize-lgpl (Files): Likewise.
28351         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28352         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28353         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28354         fallback definition.
28355         (canonicalize_filename_mode): Use it to protect //.
28356         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28357         (__realpath): Likewise.
28358         * tests/test-canonicalize.c (main): Test this.
28359         * tests/test-canonicalize-lgpl.c (main): Likewise.
28360         * modules/canonicalize-tests (Depends-on): Add same-inode.
28361         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28362
28363         canonicalize-lgpl: fix glibc bug with trailing slash
28364         * m4/canonicalize-lgpl.m4: Move contents...
28365         * m4/canonicalize.m4: ...here.
28366         (gl_CANONICALIZE_LGPL): Factor realpath check...
28367         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28368         glibc 2.3.5 bug, fixed 2005-04-27.
28369         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28370         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28371         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28372         * modules/canonicalize-lgpl (Files): Manage file rename.
28373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28374         * modules/stdlib (Makefile.am): Substitute witness.
28375         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28376         is needed.
28377         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28378         replacement is required.
28379         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28380         * doc/glibc-functions/canonicalize_file_name.texi
28381         (canonicalize_file_name): Document this.
28382         * doc/posix-functions/realpath.texi (realpath): Likewise.
28383
28384         canonicalize-lgpl: reject non-directory with trailing slash
28385         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28386         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28387         catches failures in glibc 2.3.5.
28388         * tests/test-canonicalize.c (main): Likewise.
28389
28390         canonicalize-lgpl: use native realpath if it works
28391         * lib/canonicalize-lgpl.c (realpath): Guard with
28392         FUNC_REALPATH_WORKS.
28393         * lib/stdlib.in.h (realpath): Make declaration optional based on
28394         HAVE_REALPATH.
28395         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28396         native realpath works.
28397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28398         * modules/stdlib (Makefile.am): Substitute witness.
28399
28400         canonicalize, canonicalize-lgpl: use <stdlib.h>
28401         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28402         (Include): Mention <stdlib.h>.
28403         (configure.ac): Mention functions we provide.
28404         * modules/canonicalize (configure.ac): Likewise.
28405         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28406         realpath if canonicalize_file_name is missing.
28407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28408         * modules/stdlib (Makefile.am): Substitute witnesses.
28409         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28410         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28411         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28412         * NEWS: Document this.
28413         * doc/glibc-functions/canonicalize_file_name.texi
28414         (canonicalize_file_name): Likewise.
28415         * doc/posix-functions/realpath.texi (realpath): Likewise.
28416         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28417
28418         test-canonicalize: consolidate into single C program
28419         * tests/test-canonicalize.sh: Delete; move setup into...
28420         * tests/test-canonicalize.c (main): ...the program, making it
28421         easier to run in debugger.  Add some tests.
28422         * modules/canonicalize-tests (Files): Remove unused file.
28423         (Depends-on): Add progname.
28424         (configure.ac, Makefile.am): Simplify.
28425
28426         test-canonicalize-lgpl: consolidate into single C program
28427         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28428         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28429         easier to run in debugger.  Add some tests.
28430         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28431         (configure.ac, Makefile.am): Simplify.
28432
28433         canonicalize: avoid resolvepath
28434         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28435         unnecessary checks.
28436         * lib/canonicalize.c (includes): Simplify.
28437         (canonicalize_file_name): Drop resolvepath implementation.
28438         * modules/canonicalize (Depends-on): Drop filenamecat.
28439
28440         canonicalize: don't lose errno
28441         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28442         over calls to free.
28443
28444         canonicalize: simplify errno handling
28445         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28446         assignment.
28447
28448         canonicalize, canonicalize-lgpl: update module dependencies
28449         * modules/canonicalize (Depends-on): Add extensions, lstat,
28450         pathmax, stdlib.
28451         (Files): Drop pathmax.h.
28452         (configure.ac): Adjust macro name.
28453         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28454         lstat, stdlib, sys_stat.
28455         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28456         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28457         extensions.
28458         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28459         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28460         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28461         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28462         declaration, if available.
28463         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28464         we can rely on the readlink module.
28465         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28466         (includes): Use <unistd.h> unconditionally.
28467
28468 2009-09-17  Eric Blake  <ebb9@byu.net>
28469
28470         maint: make Include sections of modules consistent
28471         * modules/alloca: Use only header name; no need to list #include.
28472         * modules/alloca-opt: Likewise.
28473         * modules/arpa_inet: Likewise.
28474         * modules/canon-host: Likewise.
28475         * modules/configmake: Likewise.
28476         * modules/dirent: Likewise.
28477         * modules/eealloc: Likewise.
28478         * modules/environ: Likewise.
28479         * modules/fchdir: Likewise.
28480         * modules/fcntl: Likewise.
28481         * modules/fcntl-h: Likewise.
28482         * modules/gethrxtime: Likewise.
28483         * modules/gettime: Likewise.
28484         * modules/ignore-value: Likewise.
28485         * modules/inet_ntop: Likewise.
28486         * modules/inet_pton: Likewise.
28487         * modules/inttypes: Likewise.
28488         * modules/isnand-nolibm: Likewise.
28489         * modules/isnanf-nolibm: Likewise.
28490         * modules/mbchar: Likewise.
28491         * modules/mbfile: Likewise.
28492         * modules/mbiter: Likewise.
28493         * modules/mbuiter: Likewise.
28494         * modules/netdb: Likewise.
28495         * modules/netinet_in: Likewise.
28496         * modules/nproc: Likewise.
28497         * modules/pagealign_alloc: Likewise.
28498         * modules/poll: Likewise.
28499         * modules/printf-frexp: Likewise.
28500         * modules/pthread: Likewise.
28501         * modules/putenv: Likewise.
28502         * modules/random_r: Likewise.
28503         * modules/relocatable-prog: Likewise.
28504         * modules/search: Likewise.
28505         * modules/select: Likewise.
28506         * modules/selinux-h: Likewise.
28507         * modules/settime: Likewise.
28508         * modules/signal: Likewise.
28509         * modules/size_max: Likewise.
28510         * modules/socklen: Likewise.
28511         * modules/ssize_t: Likewise.
28512         * modules/stdarg: Likewise.
28513         * modules/stdbool: Likewise.
28514         * modules/stddef: Likewise.
28515         * modules/stdint: Likewise.
28516         * modules/stdio: Likewise.
28517         * modules/stdlib: Likewise.
28518         * modules/string: Likewise.
28519         * modules/strings: Likewise.
28520         * modules/sys_file: Likewise.
28521         * modules/sys_ioctl: Likewise.
28522         * modules/sys_select: Likewise.
28523         * modules/sys_socket: Likewise.
28524         * modules/sys_stat: Likewise.
28525         * modules/sys_time: Likewise.
28526         * modules/sys_times: Likewise.
28527         * modules/sys_utsname: Likewise.
28528         * modules/sys_wait: Likewise.
28529         * modules/sysexits: Likewise.
28530         * modules/time: Likewise.
28531         * modules/times: Likewise.
28532         * modules/tmpfile: Likewise.
28533         * modules/trim: Likewise.
28534         * modules/unistd: Likewise.
28535         * modules/wchar: Likewise.
28536         * modules/wctype: Likewise.
28537
28538 2009-09-17  Bruno Haible  <bruno@clisp.org>
28539
28540         Make getdate.y compile on QNX and NetBSD 5 / i386.
28541         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28542         TIME_T_FITS_IN_LONG_INT.
28543         * lib/getdate.y (long_time_t): New type.
28544         (relative_time): Change type of 'seconds' field to long_time_t.
28545         (get_date): Update types of local variables. Check against overflow
28546         during conversion from long_time_t to time_t.
28547         Reported by Matt Kraai <kraai@ftbfs.org>
28548         and Hasso Tepper <hasso@netbsd.org>.
28549
28550 2009-09-17  Bruno Haible  <bruno@clisp.org>
28551
28552         * modules/COPYING: Update copyright years.
28553         * modules/README: Likeiwse.
28554         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28555         Reported by Ian Beckwith <ianb@erislabs.net>.
28556
28557 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28558
28559         * users.txt: Update references for gnuit package.
28560
28561 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28562
28563         * m4/getdelim.m4: Fix typo in copyright line.
28564
28565 2009-09-17  Bruno Haible  <bruno@clisp.org>
28566
28567         * lib/atoll.c: Use the standard header with GPL copyright.
28568         * lib/argz.in.h: Likewise.
28569         * lib/glob.c: Likewise.
28570         * lib/glob-libc.h: Likewise.
28571         * lib/random_r.c: Likewise.
28572         * lib/siglist.h: Likewise.
28573         * lib/strsignal.c: Likewise.
28574         Reported by Ian Beckwith <ianb@erislabs.net>.
28575
28576 2009-09-17  Eric Blake  <ebb9@byu.net>
28577
28578         rmdir: ensure correct dependency order
28579         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28580
28581 2009-09-17  Bruno Haible  <bruno@clisp.org>
28582
28583         Disable assertion that fails on NetBSD 5 / i386.
28584         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28585         Reported by Sam Steingold <sds@gnu.org>
28586         and Hasso Tepper <hasso@netbsd.org>.
28587
28588 2009-09-16  Eric Blake  <ebb9@byu.net>
28589
28590         unlinkdir: port to mingw
28591         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28592         on which no one can unlink a directory.
28593
28594         stdlib: sort witness names
28595         * modules/stdlib (Makefile.am): Sort replacements.
28596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28597         * lib/stdlib.in.h: Likewise.
28598
28599         parse-duration-tests: avoid link failure
28600         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28601         LIBINTL.
28602         Reported by Tom G. Christensen.
28603
28604         openat-tests: ensure unlinkat behaves like rmdir
28605         * tests/test-rmdir.c (main): Factor guts...
28606         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28607         * modules/rmdir-tests (Files): Ship new file.
28608         * modules/openat-tests: New test.
28609         * tests/test-unlinkat.c: Likewise.
28610
28611         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28612         * modules/rmdir-errno (Status, Notice): Now obsolete.
28613
28614         rmdir: work around cygwin 1.5.x and mingw bugs
28615         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28616         * lib/rmdir.c (rmdir): Work around it.
28617         * modules/rmdir (Status, Notice): No longer obsolete.
28618         (Files): Add dos.m4.
28619         (Depends-on): Add unistd.
28620         (configure.ac): Set witnesses.
28621         (License): Relax to LGPLv2+.
28622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28623         * modules/unistd (Makefile.am): Substitute witnesses.
28624         * lib/unistd.in.h (rmdir): Declare replacement.
28625         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28626         * modules/rmdir-tests: New tests.
28627         * tests/test-rmdir.c: Likewise.
28628
28629 2009-09-15  Eric Blake  <ebb9@byu.net>
28630
28631         fchdir: improve use of replacement functions
28632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28634         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28635         REPLACE_CLOSEDIR.
28636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28637         * modules/sys_stat (Makefile.am): Substitute correct witness.
28638         * modules/dirent (Makefile.am): Likewise.
28639         * modules/unistd (Makefile.am): Likewise.
28640         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28641         * lib/unistd.in.h (dup): Likewise.
28642         * lib/sys_stat.in.h (fstat): Likewise.
28643
28644         maint: ignore gnulib-tool temp files
28645         * .gitignore: Ignore files created during gnulib-tool --test.
28646
28647 2009-09-13  Jim Meyering  <meyering@redhat.com>
28648
28649         posixtm: don't reject a time that specify "60" as the number of seconds
28650         * lib/posixtm.c (posixtime): The code to reject invalid dates
28651         would also reject a time specified with the .60 suffix.
28652         But POSIX allows that, in order to accommodate leap seconds.
28653         So don't reject it.
28654         (main): Adjust tests accordingly.
28655         * modules/posixtm (Depends-on): Add stpcpy.
28656
28657 2009-09-11  Jim Meyering  <meyering@redhat.com>
28658
28659         announce-gen: include [$release_type] in emitted Subject:
28660         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28661         e.g., [stable] in the emitted Subject: line.
28662
28663 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28664
28665         Remove obsolete macros from several modules.
28666         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28667         obsolete Autoconf macros with their modern counterparts.
28668         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28669         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28671         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28672         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28673         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28675         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28676         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28677         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28678         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28679         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28680         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28681         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28682         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28683         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28684         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28685         * m4/time_r.m4 (gl_TIME_R): Likewise.
28686         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28687         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28688         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28689
28690         Fix copyright header in build-aux scripts.
28691         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28692         recommendation.
28693         * build-aux/ncftpput-ftp: Likewise.
28694         * build-aux/update-copyright: Likewise.
28695
28696 2009-09-09  Eric Blake  <ebb9@byu.net>
28697
28698         test-link: allow Linux choice of errno
28699         * tests/test-link.c (main): Relax test for alternate error.
28700
28701         strndup: fix improper m4 caching
28702         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28703         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28704         (gl_PREREQ_STRNDUP): Delete.
28705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28706         * modules/string (Makefile.am): Substitute it.
28707         * lib/string.in.h (strndup): Modernize prototype.
28708
28709         getcwd: port to mingw
28710         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28711         different from the POSIX assumptions made throughout the getcwd
28712         module; fortunately, the mingw getcwd does not need replacement.
28713         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28714         * modules/getcwd-tests: New test.
28715         * tests/test-getcwd.c: Likewise.
28716
28717         link: fix platform bugs
28718         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28719         * lib/link.c (link): Work around them.  Fix related mingw bug.
28720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28721         * modules/unistd (Makefile.am): Substitute it.
28722         * lib/unistd.in.h (link): Declare replacement.
28723         * doc/posix-functions/link.texi (link): Document this.
28724         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28725
28726         test-link: consolidate into single C program, test more cases
28727         * tests/test-link.sh: Delete.
28728         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28729         at least Cygwin and Solaris.
28730         * modules/link-tests (Files): Remove unused file.
28731         (Depends-on): Add errno, sys_stat.
28732         (Makefile.am): Simplify.
28733
28734 2009-09-08  Bruno Haible  <bruno@clisp.org>
28735
28736         Work around towlower, towupper bug on mingw.
28737         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28738         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28739         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28740         * doc/posix-functions/towupper.texi: Likewise.
28741         Reported by Eric Blake.
28742
28743 2009-09-08  Jim Meyering  <meyering@redhat.com>
28744
28745         build: don't try to run autoheader if we don't use it
28746         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28747         is not used in configure.ac.
28748
28749 2009-09-08  Eric Blake  <ebb9@byu.net>
28750
28751         euidaccess: fix compilation error
28752         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28753
28754         rawmemchr: relax license
28755         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28756         okay.
28757         Reported by Jim Meyering.
28758
28759         mkfifoat: new module
28760         * modules/mkfifoat: New file.
28761         * lib/mkfifoat.c: Likewise.
28762         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28763         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28764         * modules/sys_stat (Makefile.am): Use them.
28765         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28766         * MODULES.html.sh (File system functions): Mention module.
28767         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28768         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28769         * modules/mkfifoat-tests: New test.
28770         * tests/test-mkfifoat.c: Likewise.
28771
28772         strchrnul: relax license
28773         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28774         okay.
28775         Reported by Jim Meyering.
28776
28777 2009-09-08  Eric Blake  <ebb9@byu.net>
28778
28779         fstatat: fix compilation on Solaris
28780         * lib/fstatat.c (includes): Add fcntl.h.
28781         Reported by Pádraig Brady.
28782
28783 2009-09-07  Eric Blake  <ebb9@byu.net>
28784
28785         rename: modernize replacement
28786         * modules/rename (Depends-on): Add stdio.
28787         (configure.ac): Declare witness.
28788         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28789         stdio take care of replacement.
28790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28791         * modules/stdio (Makefile.am): Substitute them.
28792         * lib/stdio.in.h (rename): Declare replacement.
28793         * lib/rename.c (includes): Allow cross-compilation to non-windows
28794         machines.
28795         * doc/posix-functions/rename.texi (rename): Improve
28796         documentation.
28797
28798         stdio: sort witness names
28799         * modules/stdio (Makefile.am): Sort replacements.
28800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28801         * lib/stdio.in.h: Likewise.
28802
28803         getcwd: minor cleanups
28804         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28805         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28806
28807         openat: provide more convenience names
28808         * modules/faccessat (configure.ac): Add C witness.
28809         * lib/unistd.in.h (readlinkat): Fix typo.
28810         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28811         convenience wrappers.
28812         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28813         wrappers in syntax checks.
28814
28815 2009-09-06  Eric Blake  <ebb9@byu.net>
28816
28817         doc: fix comments in recent patches
28818         * lib/faccessat.c: Mention correct function.
28819         * lib/fchmodat.c: Likewise.
28820         * lib/fchownat.c: Likewise.
28821         * lib/symlinkat.c: Likewise.
28822         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28823         constants.
28824
28825         faccessat, symlinkat: continue cleanup of previous patch
28826         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28827         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28828         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28830         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28831         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28832         set.
28833
28834 2009-09-06  Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28837         (fstatat): Declare if GNULIB_FSTATAT is set.
28838         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28839         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28840         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28841         * modules/fcntl-h (Files): Remove m4/openat.m4.
28842         * modules/sys_stat (Files): Remove m4/openat.m4.
28843         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28844         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28845         * modules/unistd (Files): Remove m4/openat.m4.
28846         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28847         GNULIB_OPENAT.
28848         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28849         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28850         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28851         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28852         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28853         gl_OPENAT_DEFAULTS.
28854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28855         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28856         Don't require gl_OPENAT_DEFAULTS.
28857         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28858         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28859         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28860         (gl_OPENAT_DEFAULTS): Remove macro.
28861
28862 2009-09-06  Bruno Haible  <bruno@clisp.org>
28863
28864         * modules/openat (configure.ac): Remove unneeded witness.
28865
28866 2009-09-06  Bruno Haible  <bruno@clisp.org>
28867
28868         Set errno to ENOSYS when a function is entirely unsupported.
28869         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28870         EOPNOTSUPP.
28871         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28872         * modules/chown (Depends-on): Remove errno.
28873
28874 2009-09-06  Bruno Haible  <bruno@clisp.org>
28875
28876         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28877
28878 2009-09-06  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28881
28882 2009-09-06  Ben Pfaff  <blp@gnu.org>
28883             Bruno Haible  <bruno@clisp.org>
28884
28885         Work around a glibc bug in strtok_r.
28886         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28887         Undefine if UNDEFINE_STRTOK_R is set.
28888         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28890         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28891         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28892         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28893         UNDEFINE_STRTOK_R.
28894         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28895
28896 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28897
28898         exclude: minor fix
28899         * lib/exclude.c: Include wctype.h
28900
28901 2009-09-06  Akim Demaille  <demaille@gostai.com>
28902
28903         bootstrap: improve error message
28904         * build-aux/bootstrap (find_tool): Upon failure, report the list
28905         of candidates.
28906         Honor the initial value of the envvar.
28907
28908 2009-09-05  Eric Blake  <ebb9@byu.net>
28909
28910         symlinkat: new module
28911         * modules/symlinkat: New file.
28912         * lib/symlinkat.c: Likewise.
28913         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28915         * modules/unistd (Makefile.am): Use them.
28916         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28917         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28918         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28919         * MODULES.html.sh (File system functions): Mention module.
28920         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28921         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28922         * modules/symlinkat-tests: New test.
28923         * tests/test-symlinkat.c: Likewise.
28924
28925         test-openat-safer: add more checks
28926         * tests/test-openat-safer.c (main): Check more code paths.
28927
28928 2009-09-05  Jim Meyering  <meyering@redhat.com>
28929
28930         syntax-check: detect unnecessary inclusion of openat.h
28931         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28932
28933 2009-09-05  Bruno Haible  <bruno@clisp.org>
28934
28935         Support towlower, towupper.
28936         * doc/posix-functions/towlower.texi: Mention module wctype.
28937         * doc/posix-functions/towupper.texi: Likewise.
28938         * lib/wctype.in.h (towlower, towupper): New functions.
28939         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28940         (ASSERT): New macro.
28941         (e): New variable.
28942         (main): Test also towlower, towupper. Test WEOF argument.
28943         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28944
28945 2009-09-05  Bruno Haible  <bruno@clisp.org>
28946
28947         Fix conversion behaviour when the input is invalid.
28948         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28949         mark occurring in first pass of indirect conversion.
28950         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28951         input.
28952         Found by clang's static analyzer.
28953
28954 2009-09-05  Bruno Haible  <bruno@clisp.org>
28955
28956         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28957         where direct conversion is possible.
28958
28959 2009-09-04  Eric Blake  <ebb9@byu.net>
28960
28961         openat: fail with ENOENT on empty name
28962         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28963         buffer.
28964
28965         link-follow: fix logic bug in prior patch
28966         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28967         reversed sense of yes and no in prior patch.  Avoid confusing
28968         compilation failure with desired semantics.
28969
28970         link-follow: accomodate mingw and cross-compilation
28971         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28972         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28973         cross-compilation results to -1, to make linkat easier to
28974         implement when cross-compiling.  Trivially support mingw.
28975         * modules/link-follow (configure.ac): Call new name.
28976         * NEWS: Mention this.
28977
28978 2009-09-03  Eric Blake  <ebb9@byu.net>
28979
28980         faccessat: compile replacement
28981         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28982         needed.
28983
28984         fts: fix compilation error
28985         * lib/fts.c (includes): Re-add "openat.h", for
28986         openat_needs_fchdir.
28987
28988         faccessat: new module
28989         * modules/faccessat: New file.
28990         * lib/faccessat.c: Likewise.
28991         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28993         * modules/unistd (Makefile.am): Use it.
28994         * lib/unistd.in.h (faccessat): Declare it.
28995         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28996         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28997         * MODULES.html.sh (File system functions): Mention it.
28998         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28999         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29000
29001         euidaccess: prefer POSIX over non-standard implementation
29002         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29003         * lib/euidaccess.c (euidaccess): Use it if available.
29004
29005         openat: make template easier to use
29006         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29007         AT_FUNC_F2 to be undefined.
29008         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29009         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29010         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29011         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29012         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29013         Likewise.
29014         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29015         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29016         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29017         Likewise.
29018
29019         openat: declare in POSIX headers
29020         * NEWS: Mention this.
29021         * modules/openat (configure.ac): Declare witnesses.
29022         (Depends-on): Add fcntl-h, sys_stat, unistd.
29023         (Include): Mention correct headers.
29024         * modules/fcntl-h (Depends-on): Add link-warning.
29025         (Files): Add openat.m4.
29026         (Makefile.am): Substitute witnesses.
29027         * modules/sys_stat (Files, Makefile.am): Likewise.
29028         * modules/unistd (Files, Makefile.am): Likewise.
29029         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29030         (gl_OPENAT_DEFAULTS): New macro.
29031         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29034         (SYS_STAT_H): Remove unused variable.
29035         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29036         * lib/fcntl--.h (includes): Remove unneeded header.
29037         * lib/openat-safer.c (includes): Likewise.
29038         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29039         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29040         appropriate headers.
29041         (__OPENAT_PREFIX): Delete.
29042         * lib/fcntl.in.h (openat): Provide declaration.
29043         (AT_FDCWD): Fix Solaris bug.
29044         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29045         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29046         * lib/fchmodat.c (includes):  Adjust to find declaration.
29047         * lib/fchownat.c (includes): Likewise.
29048         * lib/mkdirat.c (includes): Likewise.
29049         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29050         still visible.
29051
29052 2009-09-02  Eric Blake  <ebb9@byu.net>
29053
29054         errno: use consistently
29055         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29056         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29057         * lib/canonicalize.c (ELOOP): Likewise.
29058         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29059         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29060         * lib/lchown.c (EOPNOTSUPP): Likewise.
29061         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29062         * lib/savewd.c (ESTALE): Likewise.
29063         * lib/settime.c (ENOSYS): Likewise.
29064         * lib/utimens.c (ENOSYS): Likewise.
29065         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29066         * lib/chdir-safer.c (ELOOP): Likewise.
29067         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29068         * modules/c-stack (Depends-on): Add errno.
29069         * modules/canonicalize (Depends-on): Likewise.
29070         * modules/chdir-safer (Depends-on): Likewise.
29071         * modules/fdopendir (Depends-on): Likewise.
29072         * modules/inet_ntop (Depends-on): Likewise.
29073         * modules/inet_pton (Depends-on): Likewise.
29074         * modules/lchown (Depends-on): Likewise.
29075         * modules/openat (Depends-on): Likewise.
29076         * modules/savewd (Depends-on): Likewise.
29077         * modules/settime (Depends-on): Likewise.
29078         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29079
29080         fts: avoid leaking fds
29081         * modules/fts (Depends-on): Add cloexec.
29082         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29083         flag.
29084
29085         fts: make directory fds more robust
29086         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29087         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29088
29089         backupfile, chdir-long, fts, savedir: make safer
29090         * lib/backupfile.c (includes): Use "dirent--.h", since
29091         numbered_backup can write to stderr during readdir.
29092         * lib/savedir.c (includes): Likewise.
29093         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29094         emulation can write to stderr on failure.
29095         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29096         * lib/getcwd.c: Document why opendir_safer is unused.
29097         * lib/glob.c: Likewise.
29098         * lib/scandir.c: Likewise.
29099         * lib/openat-proc.c: Likewise, for open_safer.
29100         * modules/backupfile (Depends-on): Add dirent-safer.
29101         * modules/savedir (Depends-on): Likewise.
29102         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29103         * modules/chdir-long (Depends-on): Add openat-safer.
29104
29105         openat-safer: new module
29106         * modules/openat-safer: New file.
29107         * lib/openat-safer.c: Likewise.
29108         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29109         * lib/fcntl-safer.h (openat_safer): Declare.
29110         * lib/fcntl--.h (openat): Override.
29111         * MODULES.html.sh (File descriptor based I/O): Mention it.
29112         * lib/openat.h: Add double-inclusion guards.
29113         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29114         "fcntl--.h", so we can implement openat.
29115         * modules/openat-safer-tests: New test.
29116         * tests/test-openat-safer.c: New file.
29117
29118         dirent-safer: new module
29119         * modules/dirent-safer: New file.
29120         * lib/dirent--.h: Likewise.
29121         * lib/dirent-safer.h: Likewise.
29122         * lib/opendir-safer.c: Likewise.
29123         * m4/dirent-safer.m4: Likewise.
29124         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29125         * modules/dirent-safer-tests: New test.
29126         * tests/test-dirent-safer.c: New file.
29127         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29128
29129         fdopendir: optimize on mingw
29130         * lib/unistd.in.h (_gl_directory_name): New prototype.
29131         * lib/fchdir.c (_gl_directory_name): Implement it.
29132         (fchdir): Use it to simplify implementation.
29133         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29134         fchdir, when available, to avoid calling [f]chdir().
29135
29136         fdopendir: split into its own module
29137         * lib/openat.c (fdopendir): Move...
29138         * lib/fdopendir.c: ...into new file.
29139         * modules/fdopendir: New module.
29140         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29141         * modules/openat (Depends-on): Add fdopendir.
29142         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29143         fdopendir here.
29144         * modules/savedir (Depends-on): Only need fdopendir, not full
29145         openat.
29146         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29147         * lib/openat.h (fdopendir): Drop prototype.
29148         * lib/dirent.in.h (fdopendir): Provide prototype.
29149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29150         * modules/dirent (Makefile.am): Substitute them.
29151         * MODULES.html.sh (File system functions): Mention it.
29152         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29153         * modules/fdopendir-tests: New file.
29154         * tests/test-fdopendir.c: Likewise.
29155
29156         fchdir: use more consistent macro convention
29157         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29158         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29159         REPLACE_FCHDIR, rather than relying on config.h macros.
29160         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29161         inside a single make-time REPLACE_FCHDIR block, rather than using
29162         the config.h FCHDIR_REPLACEMENT.
29163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29164         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29165         Manage fstat replacement.
29166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29167         REPLACE_FCHDIR.
29168         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29169         (Makefile.am): Substitute REPLACE_FCHDIR.
29170         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29171         FCHDIR_REPLACEMENT.
29172         * lib/dup-safer.c (dup_safer): Likewise.
29173         * lib/dup2.c (rpl_dup2): Likewise.
29174         * lib/dup3.c (rpl_dup3): Likewise.
29175         * lib/open.c (rpl_open): Likewise.
29176
29177         fchdir: simplify error handling, and support dup3
29178         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29179         stdbool, malloc-posix, realloc-posix.
29180         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29181         (ensure_dirs_slot): Return false on allocation failure.
29182         (rpl_dup2): Delete.
29183         (_gl_register_dup): New function.
29184         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29185         (_gl_register_fd): Close fd on allocation failure.
29186         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29187         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29188         prototype.
29189         (rpl_dup2_fchdir): Delete prototype.
29190         * lib/open.c (open): Update caller.
29191         * lib/dup2.c (dup2): Track fchdir metadata.
29192         * lib/dup3.c (dup3): Likewise.
29193         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29195
29196 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29197
29198         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29199         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29200         don't pass arguments to AC_OUTPUT.
29201
29202 2009-09-02  Bruno Haible  <bruno@clisp.org>
29203
29204         * modules/mkdtemp (License): Relicense under LGPLv2+.
29205         Reported by Paolo Bonzini.
29206
29207 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29208
29209         Replace uses of obsolete autoconf macros in Jim's modules.
29210         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29211         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29212         can evoke a warning from autoconf when run with -Wobsolete
29213         enabled.  They were declared obsolete for good reasons (see
29214         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29215         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29216         should not continue using the deprecated macros.
29217         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29218         obsolete Autoconf macros with modern counterparts.
29219         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29220         * m4/dos.m4 (gl_AC_DOS): Likewise.
29221         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29223         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29224         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29225         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29226         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29227         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29228         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29229         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29230         Likewise.
29231         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29232         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29233         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29234         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29235         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29236         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29237
29238 2009-09-01  Eric Blake  <ebb9@byu.net>
29239
29240         fchdir: fix off-by-one bug in previous patch
29241         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29242         (_gl_unregister_fd): Delete useless if.
29243
29244 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29245
29246         maint.mk: sort the list of syntax-check rules
29247         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29248         easier to get a sense of progress when the rules are run sequentially
29249         and take a long time.
29250
29251 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29252
29253         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29254         * modules/netinet_in: Likewise.
29255         * modules/sys_file: Likewise.
29256         * modules/sys_ioctl: Likewise.
29257         * modules/sys_select: Likewise.
29258         * modules/sys_socket: Likewise.
29259         * modules/sys_stat: Likewise.
29260         * modules/sys_time: Likewise.
29261         * modules/sys_times: Likewise.
29262         * modules/sys_utsname: Likewise.
29263         * modules/sys_wait: Likewise.
29264
29265 2009-09-01  Jim Meyering  <meyering@redhat.com>
29266
29267         fts: help ensure that return values are not ignored
29268         * lib/fts_.h (__GNUC_PREREQ): Define.
29269         (__attribute_warn_unused_result__): Define.
29270         (fts_children, fts_close, fts_open, fts_read): Declare with
29271         __attribute_warn_unused_result__.
29272
29273         fts: fts_close now fails also when closing a dir file descriptor fails
29274         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29275         and propagate to caller, along with errno.
29276
29277         announce-gen: correct formatting in --help output
29278         * build-aux/announce-gen (usage): Move the one-line description in
29279         --help output "up", to where it belongs, just after Usage:.
29280
29281 2009-08-31  Eric Blake  <ebb9@byu.net>
29282
29283         fchdir: port to mingw
29284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29285         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29286         opened, then use a substitute.
29287         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29288         replacement.
29289         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29290         (_gl_register_fd): No need to check stat if open already filters
29291         all directories.
29292         (fchdir): Fix error condition to match POSIX.
29293         * modules/fchdir (Depends-on): Add sys_stat.
29294         * doc/posix-functions/open.texi (open): Document the limitation.
29295         * modules/fchdir-tests: New file.
29296         * tests/test-fchdir.c: Likewise.
29297
29298         canonicalize: allow cross-testing from cygwin to mingw
29299         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29300         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29301         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29302         Likewise.
29303         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29304         target does not support symlinks.
29305         * tests/test-canonicalize-lgpl.sh: Likewise.
29306
29307         chown: avoid compilation warning on mingw
29308         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29309         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29310         mingw.
29311         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29312         * modules/chown (Depends-on): Add errno.
29313
29314 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29315
29316         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29317         command.
29318
29319 2009-08-31  Jim Meyering  <meyering@redhat.com>
29320
29321         canonicalize: remove useless initialization
29322         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29323         initialization of local, "end".
29324
29325 2009-08-30  Bruno Haible  <bruno@clisp.org>
29326
29327         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29328         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29329         ENOSYS.
29330
29331 2009-08-30  Bruno Haible  <bruno@clisp.org>
29332
29333         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29334         /usr/xpg4/bin/tr when it exists.
29335         * tests/test-pipe-filter-gi1.sh: Likewise.
29336
29337 2009-08-30  Bruno Haible  <bruno@clisp.org>
29338
29339         Work around deficient /usr/bin/id program on Solaris.
29340         * tests/test-file-has-acl.sh (ID): New variable.
29341         * tests/test-set-mode-acl.sh (ID): Likewise.
29342         * tests/test-copy-acl.sh (ID): Likewise.
29343         * tests/test-copy-file.sh (ID): Likewise.
29344
29345 2009-08-30  Bruno Haible  <bruno@clisp.org>
29346
29347         New module 'xstriconveh'.
29348         * lib/xstriconveh.h: New file.
29349         * lib/xstriconveh.c: New file.
29350         * modules/xstriconveh: New file.
29351
29352 2009-08-30  Bruno Haible  <bruno@clisp.org>
29353
29354         Make it easier to use mem_cd_iconveh.
29355         * lib/striconveh.h (iconveh_t): New type.
29356         (iconveh_open, iconveh_close): New declarations.
29357         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29358         with a single 'const iconveh_t *' argument.
29359         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29360         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29361         with a single 'const iconveh_t *' argument.
29362         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29363         * tests/test-striconveh.c (main): Update.
29364         * NEWS: Mention the change.
29365
29366 2009-08-30  Bruno Haible  <bruno@clisp.org>
29367
29368         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29369         problem.
29370
29371 2009-08-30  Bruno Haible  <bruno@clisp.org>
29372
29373         Work around iconv_open problem on Solaris.
29374         * lib/iconv_open-solaris.gperf: New file.
29375         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29376         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29377         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29378         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29379         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29380         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29381
29382 2009-08-29  Jim Meyering  <meyering@redhat.com>
29383
29384         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29385         * top/maint.mk (cvs-check): Remove target; it was just an alias
29386         to the better-named vc-diff-check.
29387         (maintainer-distcheck): Remove rule.  It was used only from
29388         the (alpha/beta/major) target, and all of its commands but one
29389         were coreutils-specific.
29390         (vc-dist): Remove rule.
29391         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29392         Run vc-diff-check, not vc-dist.
29393         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29394
29395 2009-08-27  Bruno Haible  <bruno@clisp.org>
29396
29397         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29398         of 0.
29399
29400 2009-08-27  Bruno Haible  <bruno@clisp.org>
29401
29402         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29403         compilers.
29404         * doc/func.texi: Document the SunPRO C bug.
29405
29406 2009-08-27  Bruno Haible  <bruno@clisp.org>
29407
29408         Fix link error on Solaris.
29409         * tests/test-parse-duration.c (xstrdup): Remove function.
29410
29411 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29412
29413         ignore-value: handle pointer types, too
29414         * lib/ignore-value.h (__attribute__): Remove definition.
29415         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29416         of a more concise and more-often effective "(void) i" statement.
29417         (ignore_ptr): New function to suppress warnings from functions that
29418         return pointers, and to make it explicit that one function doesn't
29419         handle all cases.
29420
29421 2009-08-25  Bruno Haible  <bruno@clisp.org>
29422
29423         dup2: work around a Linux bug.
29424         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29425         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29426         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29427         Reported by Simon Josefsson.
29428
29429 2009-08-25  Jim Meyering  <meyering@redhat.com>
29430
29431         libguestfs uses gnulib
29432         * users.txt: Add libguestfs.
29433
29434 2009-08-24  Eric Blake  <ebb9@byu.net>
29435
29436         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29437         * lib/pipe2.c (includes): Add binary-io.h.
29438         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29439
29440 2009-08-24  Bruno Haible  <bruno@clisp.org>
29441
29442         Tolerate declared but missing accept4 syscall.
29443         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29444         available.
29445         * lib/sys_socket.in.h (accept4): If the function is already present,
29446         override it.
29447         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29448         * modules/accept4 (Makefile.am): Compile accept4.c always.
29449         Reported by Paolo Bonzini and Eric Blake.
29450
29451 2009-08-23  Bruno Haible  <bruno@clisp.org>
29452
29453         New module 'accept4'.
29454         * lib/sys_socket.in.h (accept4): New declaration.
29455         * lib/accept4.c: New file.
29456         * m4/accept4.m4: New file.
29457         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29458         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29459         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29460         HAVE_ACCEPT4.
29461         * modules/accept4: New file.
29462         * doc/glibc-functions/accept4.texi: Mention the new module.
29463
29464 2009-08-24  Jim Meyering  <meyering@redhat.com>
29465
29466         progname: also set global program_invocation_name, when possible
29467         Before this change, a libtool-enabled program that calls glibc's
29468         error function would report the program name as
29469         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29470         * modules/progname (configure.ac): Check for a declaration of
29471         program_invocation_name.
29472         * lib/progname.c:  Include <errno.h>.
29473         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29474         Set program_invocation_name.
29475
29476 2009-08-23  Bruno Haible  <bruno@clisp.org>
29477
29478         * lib/dup3.c: Include <string.h>.
29479
29480 2009-08-23  Bruno Haible  <bruno@clisp.org>
29481
29482         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29483         * lib/pipe2.c (pipe2): Likewise.
29484         Suggested by Eric Blake.
29485
29486 2009-08-23  Bruno Haible  <bruno@clisp.org>
29487
29488         Tolerate declared but missing dup3 syscall.
29489         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29490         * lib/unistd.in.h (dup3): If the function is already present,
29491         override it.
29492         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29493         * modules/dup3 (Makefile.am): Compile dup3.c always.
29494         Reported by Paolo Bonzini.
29495
29496 2009-08-23  Bruno Haible  <bruno@clisp.org>
29497
29498         Tolerate declared but missing pipe2 syscall.
29499         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29500         available.
29501         * lib/unistd.in.h (pipe2): If the function is already present,
29502         override it.
29503         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29504         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29505         Reported by Paolo Bonzini.
29506
29507 2009-08-23  Bruno Haible  <bruno@clisp.org>
29508
29509         * lib/pipe2.c (pipe2): Move #ifs inside function.
29510
29511 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29512
29513         quotearg: document limitations of quote_these_too
29514         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29515         those limitations are created.
29516         * lib/quotearg.h (set_char_quoting): Document that digits and
29517         letters that are special after backslash are not permitted.
29518         (quotearg_char): Cross-reference set_char_quoting documentation.
29519
29520 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29521
29522         quotearg: implement custom_quoting_style
29523         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29524         right_quote fields.
29525         (set_custom_quoting): New public function.
29526         (quotearg_buffer_restyled): Add left_quote and right_quote
29527         arguments, handle them very much like locale quoting, and update
29528         all uses.
29529         (quotearg_n_custom): New public function.
29530         (quotearg_n_custom_mem): New public function.
29531         (quotearg_custom): New public function.
29532         (quotearg_custom_mem): New public function.
29533         * lib/quotearg.h: Prototype and document new public functions.
29534         (enum quoting_style): For escape_quoting_style and
29535         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29536         ignored even though they're otherwise like c_quoting_style.
29537         Add custom_quoting_style member and document with comparison to
29538         clocale_quoting_style.
29539         * tests/test-quotearg.c (custom_quotes): New array.
29540         (custom_results): New array.
29541         (main): Extend to test custom quoting.
29542
29543 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29544
29545         quotearg: fix right quote escaping when it's in quote_these_too
29546         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29547         quote, be sure to prepend only one backslash.
29548         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29549         (main): Test it.
29550
29551 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29552
29553         quotearg-tests: test escaping of embedded locale quotes
29554         * tests/test-quotearg.c (struct result_strings): Add member for
29555         new input.
29556         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29557         (inputs): Add new input.
29558         (results_g): Add expected results.
29559         (flag_results): Likewise.
29560         (locale_results): Likewise.
29561         (compare_strings): Check those.
29562
29563 2009-08-23  Bruno Haible  <bruno@clisp.org>
29564
29565         Tests for module 'dup3'.
29566         * modules/dup3-tests: New file.
29567         * tests/test-dup3.c: New file.
29568
29569         New module 'dup3'.
29570         * lib/unistd.in.h (dup3): New declaration.
29571         * lib/dup3.c: New file.
29572         * m4/dup3.m4: New file.
29573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29574         HAVE_DUP3.
29575         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29576         * modules/dup3: New file.
29577         * doc/glibc-functions/dup3.texi: Mention the new module.
29578
29579 2009-08-23  Bruno Haible  <bruno@clisp.org>
29580
29581         Tweak the dup2 test.
29582         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29583         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29584         the test file is still empty. Fix argument order of lseek.
29585
29586 2009-08-23  Bruno Haible  <bruno@clisp.org>
29587
29588         Avoid test link errors when the modules getopt-gnu, gettext are used.
29589         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29590         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29591
29592 2009-08-23  Bruno Haible  <bruno@clisp.org>
29593
29594         Fix getdtablesize() on mingw.
29595         * lib/getdtablesize.c (getdtablesize): Implement differently.
29596         * lib/unistd.in.h (getdtablesize): Improve comment.
29597
29598 2009-08-23  Bruno Haible  <bruno@clisp.org>
29599
29600         New module 'mkostemp'.
29601         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29602         * lib/stdlib.in.h (mksotemp): New declaration.
29603         * lib/mkostemp.c: New file, from glibc with modifications.
29604         * lib/tempname.h (GT_FILE): Remove outdated comment.
29605         (gen_tempname): Add flags argument.
29606         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29607         (__GT_FILE): Map to 1.
29608         (small_open, large_open): Remove macros.
29609         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29610         * lib/mkstemp.c (mkstemp): Update.
29611         * lib/mkdtemp.c (mkdtemp): Likewise.
29612         * m4/mkostemp.m4: New file.
29613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29614         HAVE_MKOSTEMP.
29615         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29616         HAVE_MKOSTEMP.
29617         * modules/mkostemp: New file, based on modules/mkstemp.
29618         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29619         * NEWS: Mention the change.
29620
29621 2009-08-23  Bruno Haible  <bruno@clisp.org>
29622
29623         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29624         Reported by Eric Blake.
29625
29626 2009-08-23  Bruno Haible  <bruno@clisp.org>
29627
29628         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29629         Reported by Eric Blake.
29630
29631 2009-08-23  Bruno Haible  <bruno@clisp.org>
29632
29633         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29634         * modules/pipe2 (Depends-on): Likewise.
29635
29636 2009-08-23  Eric Blake  <ebb9@byu.net>
29637
29638         fcntl-h: add O_TTY_INIT support
29639         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29640         * tests/test-fcntl-h.c (o): Test it.
29641         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29642
29643         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29644         * modules/fcntl: Move <fcntl.h> header replacement...
29645         * modules/fcntl-h: ...to new name, so as not to collide with
29646         like-named function.
29647         * tests/test-fcntl.c: Rename...
29648         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29649         * modules/fcntl-tests: Rename...
29650         * modules/fcntl-h-tests: ...to this.  Update test file name.
29651         * modules/chdir-long (Depends-on): Update clients.
29652         * modules/chdir-safer (Depends-on): Likewise.
29653         * modules/fcntl-safer (Depends-on): Likewise.
29654         * modules/fts (Depends-on): Likewise.
29655         * modules/mkancesdirs (Depends-on): Likewise.
29656         * modules/mkdir-p (Depends-on): Likewise.
29657         * modules/open (Depends-on): Likewise.
29658         * modules/savewd (Depends-on): Likewise.
29659         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29660         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29661
29662 2009-08-22  Bruno Haible  <bruno@clisp.org>
29663
29664         * modules/binary-io (License): Relicense under LGPL.
29665         * modules/pipe2 (License): Likewise.
29666
29667 2009-08-22  Bruno Haible  <bruno@clisp.org>
29668
29669         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29670         return value.
29671         * lib/pipe-filter-gi.c (filter_init): Likewise.
29672         Reported by Eric Blake.
29673
29674 2009-08-22  Bruno Haible  <bruno@clisp.org>
29675
29676         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29677         * modules/pipe (Depends-on): Add pipe2.
29678
29679 2009-08-22  Bruno Haible  <bruno@clisp.org>
29680
29681         Tests for module 'pipe2'.
29682         * modules/pipe2-tests: New file.
29683         * tests/test-pipe2.c: New file.
29684
29685         New module 'pipe2'.
29686         * lib/unistd.in.h (pipe2): New declaration.
29687         * lib/pipe2.c: New file.
29688         * m4/pipe2.m4: New file.
29689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29690         HAVE_PIPE2.
29691         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29692         * modules/pipe2: New file.
29693         * doc/glibc-functions/pipe2.texi: Mention the new module.
29694
29695 2009-08-22  Bruno Haible  <bruno@clisp.org>
29696
29697         Reference some new glibc functions.
29698         * doc/glibc-functions/accept4.texi: New file.
29699         * doc/glibc-functions/dup3.texi: New file.
29700         * doc/glibc-functions/mkostemp.texi: New file.
29701         * doc/glibc-functions/pipe2.texi: New file.
29702         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29703         (Glibc sys/socket.h): Refer to accept4.
29704         (Glibc unistd.h): Refer to dup3, pipe2.
29705         Reported by Eric Blake.
29706
29707 2009-08-22  Jim Meyering  <meyering@redhat.com>
29708             Bruno Haible  <bruno@clisp.org>
29709
29710         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29711         This makes it so packages using automake-1.11's silent-rules option
29712         can print e.g., a single "GEN    configmake.h" line, rather than
29713         the 30+ statements that perform the job.  If you want to see the
29714         actual commands, you can still run "make V=1".
29715         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29716         so that make output is abbreviated when those variables are defined
29717         appropriately.
29718         * modules/argz: Likewise.
29719         * modules/arpa_inet: Likewise.
29720         * modules/byteswap: Likewise.
29721         * modules/configmake: Likewise.
29722         * modules/dirent: Likewise.
29723         * modules/errno: Likewise.
29724         * modules/fcntl: Likewise.
29725         * modules/float: Likewise.
29726         * modules/fnmatch: Likewise.
29727         * modules/getopt-posix: Likewise.
29728         * modules/glob: Likewise.
29729         * modules/iconv_open: Likewise.
29730         * modules/inttypes: Likewise.
29731         * modules/localcharset: Likewise.
29732         * modules/locale: Likewise.
29733         * modules/math: Likewise.
29734         * modules/netdb: Likewise.
29735         * modules/netinet_in: Likewise.
29736         * modules/poll: Likewise.
29737         * modules/posix_spawnp-tests: Likewise.
29738         * modules/sched: Likewise.
29739         * modules/search: Likewise.
29740         * modules/selinux-h: Likewise.
29741         * modules/signal: Likewise.
29742         * modules/spawn: Likewise.
29743         * modules/stdarg: Likewise.
29744         * modules/stdbool: Likewise.
29745         * modules/stddef: Likewise.
29746         * modules/stdint: Likewise.
29747         * modules/stdio: Likewise.
29748         * modules/stdlib: Likewise.
29749         * modules/string: Likewise.
29750         * modules/strings: Likewise.
29751         * modules/sys_file: Likewise.
29752         * modules/sys_ioctl: Likewise.
29753         * modules/sys_select: Likewise.
29754         * modules/sys_socket: Likewise.
29755         * modules/sys_stat: Likewise.
29756         * modules/sys_time: Likewise.
29757         * modules/sys_times: Likewise.
29758         * modules/sys_utsname: Likewise.
29759         * modules/sys_wait: Likewise.
29760         * modules/sysexits: Likewise.
29761         * modules/time: Likewise.
29762         * modules/unistd: Likewise.
29763         * modules/wchar: Likewise.
29764         * modules/wctype: Likewise.
29765
29766 2009-08-22  Jim Meyering  <meyering@redhat.com>
29767
29768         announce-gen: detect write failure
29769         * build-aux/announce-gen: Add Coda at end.
29770         Remove equivalent-but-more-verbose block at top.
29771
29772 2009-08-19  Akim Demaille  <demaille@gostai.com>
29773
29774         bootstrap: --help to stdout.
29775         * bootstrap (usage): Don't send --help to stderr.
29776         Use a here doc instead of a long string.
29777
29778 2009-08-21  Eric Blake  <ebb9@byu.net>
29779
29780         test-popen-safer: split from test-popen
29781         * tests/test-popen.c (main): Move...
29782         * tests/test-popen.h: ...into new file.
29783         * tests/test-popen-safer2.c: New file.
29784         * modules/popen-tests (Files): Add test-popen.h.
29785         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29786         Suggested by Bruno Haible.
29787
29788         test-fcntl-safer: split from test-open
29789         * tests/test-open.c (main): Move...
29790         * tests/test-open.h: ...into new file.
29791         * tests/test-fcntl-safer.c: New file.
29792         * modules/open-tests (Files): Add test-open.h.
29793         * modules/fcntl-safer-tests: New file.
29794         Suggested by Bruno Haible.
29795
29796         test-fopen-safer: split from test-fopen
29797         * tests/test-fopen.c (main): Move...
29798         * tests/test-fopen.h: ...into new file.
29799         * tests/test-fopen-safer.c: New file.
29800         * modules/fopen-tests (Files): Add test-fopen.h.
29801         * modules/fopen-safer-tests: New file.
29802         Suggested by Bruno Haible.
29803
29804 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29805
29806         popen-safer: test O_CLOEXEC at run-time.
29807         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29808
29809 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29810
29811         fcntl: move more flags to the header
29812         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29813         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29814         * lib/fcntl.in.h: Do both things here.
29815
29816 2009-08-21  Jim Meyering  <meyering@redhat.com>
29817
29818         consistently remove $@-t before redirecting to it
29819         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29820         * modules/alloca-opt: Likewise.
29821         * modules/byteswap: Likewise.
29822         * modules/fnmatch: Likewise.
29823         * modules/getopt-posix: Likewise.
29824         * modules/glob: Likewise.
29825         * modules/poll: Likewise.
29826         * modules/posix_spawnp-tests: Likewise.
29827         * modules/sys_socket: Likewise.
29828         * modules/sysexits: Likewise.
29829
29830 2009-08-21  Eric Blake  <ebb9@byu.net>
29831
29832         popen: simplify access to original popen
29833         * lib/popen.c (rpl_popen): No need to worry about popen being a
29834         macro.
29835         Reported by Bruno Haible.
29836
29837 2009-08-20  Eric Blake  <ebb9@byu.net>
29838
29839         build: avoid some compiler warnings
29840         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29841         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29842         type.
29843         (new_exclude_segment, excluded_file_pattern_p)
29844         (excluded_file_name_p): Reduce scope.
29845         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29846         old-style declaration.
29847
29848 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29849
29850         * tests/test-exclude1.sh: Handle Windows EOL.
29851         * tests/test-exclude2.sh: Likewise.
29852         * tests/test-exclude3.sh: Likewise.
29853         * tests/test-exclude4.sh: Likewise.
29854         * tests/test-exclude5.sh: Likewise.
29855         * tests/test-exclude6.sh: Likewise.
29856         * tests/test-exclude7.sh: Likewise.
29857
29858 2009-08-19  Akim Demaille  <demaille@gostai.com>
29859
29860         bootstrap: find sha1sum when named gsha1sum.
29861         * bootstrap (find_tool): New.
29862         ($SHA1SUM): New.
29863         Use it.
29864
29865 2009-08-20  Jim Meyering  <meyering@redhat.com>
29866
29867         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29868         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29869         expression that converts "." in a file name to "\." in the resulting
29870         regexp.  Start with a dummy statement, so that prior shell variable
29871         definitions are expanded portably.  Reported by Simon Josefsson.
29872
29873 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29874
29875         Fix polling for writeability of a screen buffer.
29876         * lib/poll.c: Distinguish input and screen buffers for the
29877         Win32 implementation.
29878         * lib/select.c: Likewise.
29879
29880 2009-08-19  Eric Blake  <ebb9@byu.net>
29881
29882         popen-safer: prevent popen from clobbering std descriptors
29883         * modules/popen-safer: New file.
29884         * lib/popen-safer.c: Likewise.
29885         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29886         * lib/stdio--.h (popen): Provide override.
29887         * lib/stdio-safer.h (popen_safer): Provide declaration.
29888         * tests/test-popen.c (includes): Partially test this.
29889         * modules/popen-safer-tests: New file, for more tests.
29890         * tests/test-popen-safer.c: Likewise.
29891         * MODULES.html.sh (file stream based Input/Output): Mention it.
29892
29893         tests: test some of the *-safer modules
29894         * modules/fopen-safer (Depends-on): Add fopen.
29895         * modules/fcntl-safer (Depends-on): Add fcntl.
29896         * modules/stdlib-safer (Depends-on): Add stdlib.
29897         (configure.ac): Set indicator.
29898         * modules/unistd-safer (configure.ac): Likewise.
29899         * modules/tmpfile-safer (configure.ac): Likewise.
29900         (Depends-on): Add tmpfile.
29901         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29902         active.
29903         * tests/test-fopen.c (includes): Test safer versions when they are
29904         in use.
29905         * tests/test-open.c (includes): Likewise.
29906
29907         popen: fix cygwin 1.5 bug when stdin closed
29908         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29909         * modules/popen: New file.
29910         * modules/popen-tests: Likewise.
29911         * tests/test-popen.c: Likewise.
29912         * m4/popen.m4: Likewise.
29913         * lib/popen.c: Likewise.
29914         * lib/stdio.in.h (popen): New declaration.
29915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29916         * modules/stdio (Makefile.am): Likewise.
29917         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29918
29919 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29920
29921         maint.mk: give full control over update-copyright exclusions
29922         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29923         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29924         (update-copyright): Don't force inclusion of top-level
29925         ChangeLog.  Don't force exclusion of all COPYING files, but make
29926         them the default exclusion instead.
29927
29928 2009-08-16  Bruno Haible  <bruno@clisp.org>
29929
29930         Fix test failures on Solaris 10.
29931         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29932         tests when Solaris iconv() is used.
29933         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29934         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29935         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29936         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29937         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29938
29939 2009-08-16  Bruno Haible  <bruno@clisp.org>
29940
29941         Fix test failures on Solaris 10.
29942         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29943         'tr' program and pass it as first argument.
29944         * tests/test-pipe-filter-gi1.sh: Likewise.
29945         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29946         program as first argument.
29947         * tests/test-pipe-filter-gi1.c (main): Likewise.
29948
29949 2009-08-16  Eric Blake  <ebb9@byu.net>
29950
29951         fpurge: fix previous commits
29952         * modules/fpurge (Makefile.am): Make replacement conditional,
29953         partially reverting 2007-04-29 change; missed in previous
29954         attempt.
29955         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29956         is missing.
29957
29958 2009-08-16  Bruno Haible  <bruno@clisp.org>
29959
29960         Clarify fpurge's effect on the file position.
29961         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29962         * tests/test-fpurge.c (main): Make a second pass for checking the file
29963         position.
29964
29965 2009-08-16  Bruno Haible  <bruno@clisp.org>
29966
29967         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29968         declaration of fpurge is missing.
29969         * tests/test-fpurge.c (main): Check that the file has not more contents
29970         than expected. Close the file before removing it.
29971
29972 2009-08-15  Eric Blake  <ebb9@byu.net>
29973
29974         fpurge: don't wrap working cygwin implementation
29975         * lib/fpurge.c (fpurge): Fix comment typo.
29976         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29977         1.7 to avoid replacement.
29978         * tests/test-fpurge.c (main): Enhance test.
29979
29980 2009-08-15  Eric Blake  <ebb9@byu.net>
29981         and Jim Meyering  <meyering@redhat.com>
29982
29983         test-update-copyright: skip if perl is insufficient
29984         * tests/test-update-copyright.sh: Failure to run maintainer tool
29985         should not cause testsuite failure on cygwin 1.5.
29986
29987 2009-08-14  Eric Blake  <ebb9@byu.net>
29988
29989         doc: mention more functions added in cygwin 1.7.0
29990         * doc/posix-headers/limits.texi (limits.h): Update for recent
29991         cygwin additions.
29992         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29993         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29994         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29995         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29996         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29997
29998 2009-08-14  Eric Blake  <ebb9@byu.net>
29999
30000         maint.mk: simplify update-copyright rule
30001         * top/maint.mk (update-copyright-local): Delete, and document how
30002         to do it in cfg.mk instead.
30003         (update-copyright-exclude-regexp): Delete, and document how to do
30004         it in .x-update-copyright instead.
30005         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30006         exclude ChangeLog.
30007
30008 2009-08-14  Bruno Haible  <bruno@clisp.org>
30009
30010         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30011
30012 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30013
30014         maint.mk: support update-copyright-env
30015         * top/maint.mk (update-copyright-env): Define place-holder.
30016         (update-copyright): Expand $(update-copyright-env) before
30017         invoking update-copyright.
30018
30019 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30020
30021         update-copyright: implement forced reformatting
30022         * build-aux/update-copyright: Implement and document
30023         UPDATE_COPYRIGHT_FORCE.
30024         * tests/test-update-copyright.sh: Test it.
30025
30026 2009-08-14  Eric Blake  <ebb9@byu.net>
30027         and Bruno Haible  <bruno@clisp.org>
30028
30029         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30030         * tests/test-locale.c: Revert previous patch related to NULL.
30031         * tests/test-stdio.c: Likewise.
30032         * tests/test-stdlib.c: Likewise.
30033         * tests/test-string.c: Likewise.
30034         * tests/test-unistd.c: Likewise.
30035         * modules/time-tests (Depends-on): Add verify.
30036         * modules/wchar-tests (Depends-on): Likewise.
30037         * tests/test-time.c: Test for NULL compliance.
30038         * tests/test-wchar.c: Likewise.
30039         * modules/locale (Depends-on): Add stddef.
30040         * modules/stdio (Depends-on): Likewise.
30041         * modules/stdlib (Depends-on): Likewise.
30042         * modules/string (Depends-on): Likewise.
30043         * modules/time (Depends-on): Likewise.
30044         * modules/unistd (Depends-on): Likewise.
30045         * modules/wchar (Depends-on): Likewise.
30046         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30047         * lib/stdlib.in.h (includes): Likewise.
30048         * lib/string.in.h (includes): Likewise.
30049         * lib/time.in.h (includes): Likewise.
30050         * lib/unistd.in.h (includes): Likewise.
30051         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30052         replaced.
30053         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30054         * m4/stddef_h.m4: New file.
30055         * modules/stddef: Likewise.
30056         * lib/stddef.in.h: Likewise.
30057         * modules/stddef-tests: Likewise.
30058         * tests/test-stddef.c: Likewise.
30059         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30060         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30061         * doc/posix-headers/locale.texi (locale.h): Likewise.
30062         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30063         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30064         * doc/posix-headers/string.texi (string.h): Likewise.
30065         * doc/posix-headers/time.texi (time.h): Likewise.
30066         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30067         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30068
30069 2009-08-14  Eric Blake  <ebb9@byu.net>
30070
30071         doc: improve git diff of texinfo files
30072         * .gitattributes: Add rule for *.texi files, with hint on how to
30073         use it.
30074         Copied from m4, and based on a report by Bruno Haible.
30075
30076 2009-08-14  Bruno Haible  <bruno@clisp.org>
30077
30078         Disable multithread support by default on Cygwin 1.5.x for real.
30079         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30080
30081 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30082
30083         update-copyright: much ado about intervals
30084         * build-aux/update-copyright: Implement and document
30085         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30086         of copyright year intervals.
30087         Also, document UPDATE_COPYRIGHT_YEAR.
30088         * tests/test-update-copyright.sh: Test it.
30089
30090         update-copyright: convert 2-digit to 4-digit years
30091         * build-aux/update-copyright: Implement and document.
30092         * tests/test-update-copyright.sh: Update.
30093
30094 2009-08-14  Jim Meyering  <meyering@redhat.com>
30095
30096         test-exclude: avoid coreutils "make check" failure
30097         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30098         just as in test-argmatch.c.
30099
30100 2009-08-13  Eric Blake  <ebb9@byu.net>
30101
30102         test-dup2: fix bad assumption
30103         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30104         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30105
30106         test-version-etc: fix CRLF portability issue
30107         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30108         recognize \r.
30109         * tests/test-argp-version-etc-1.sh: Likewise.
30110
30111         getopt: update client modules
30112         * modules/argp (Depends-on): Use getopt-gnu.
30113         * modules/git-merge-changelog (Depends-on): Likewise.
30114         * modules/long-options (Depends-on): Likewise.
30115         * modules/xstrtol (Depends-on): Likewise.
30116
30117 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30118
30119         * tests/test-version-etc.sh: Don't fail on different
30120         project/version.  Don't fail on CRLF differences.  Rewrite to use
30121         multiple -e instead of multiple sed forks, suggested by Eric Blake
30122         <ebb9@byu.net>.
30123         * tests/test-argp-version-etc-1.sh: Likewise.
30124
30125 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30126
30127         * tests/test-version-etc.sh: Don't fail on different
30128         project/version.
30129
30130 2009-08-12  Bruno Haible  <bruno@clisp.org>
30131
30132         Tests for modules 'getopt-posix', 'getopt-gnu'.
30133         * modules/getopt-posix-tests: New file.
30134         * tests/test-getopt.c: New file.
30135         * tests/test-getopt.h: New file.
30136         * tests/test-getopt_long.h: New file.
30137
30138         New modules 'getopt-posix', 'getopt-gnu'.
30139         * modules/getopt-gnu: New file, renamed from modules/getopt.
30140         * modules/getopt-posix: New file.
30141         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30142         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30143         (gl_GETOPT): Remove macro.
30144         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30145         Disable the test against BSD systems that declare optreset. Test
30146         against mingw bug. Test against lack of support of optional arguments
30147         on many platforms.
30148         * doc/glibc-headers/getopt.texi: Update module name and list of
30149         relevant platforms.
30150         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30151         'getopt-gnu' and more portability problems.
30152         * NEWS: Mention the changes.
30153
30154 2009-08-12  Bruno Haible  <bruno@clisp.org>
30155
30156         Ensure that optarg etc. get declared by <unistd.h>.
30157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30158         AC_USE_SYSTEM_EXTENSIONS.
30159         * modules/getopt (Depends-on): Add 'extensions'.
30160
30161 2009-08-12  Bruno Haible  <bruno@clisp.org>
30162
30163         Avoid test link errors.
30164         * modules/pipe-filter-ii-tests (Makefile.am): Define
30165         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30166         * modules/pipe-filter-gi-tests (Makefile.am): Define
30167         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30168         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30169
30170 2009-08-12  Bruno Haible  <bruno@clisp.org>
30171
30172         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30173         gl_GETOPT_SUBSTITUTE before.
30174         (gl_GETOPT): Use it.
30175         * m4/argp.m4 (gl_ARGP): Update.
30176         Reported by Sergey Poznyakoff.
30177
30178         * m4/getopt.m4: Reorder macros.
30179         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30180         (gl_GETOPT_SUBSTITUTE): Remove macro.
30181
30182 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30183
30184         Minor improvement in gitlog-to-changelog
30185
30186         * build-aux/gitlog-to-changelog: New option `--format' makes
30187         output format string configurable.
30188
30189 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30190
30191         Optimize exclude: use hash tables for non-wildcard patterns.
30192
30193         * lib/exclude.c: Include hash.h and mbuiter.h
30194         (struct exclude_pattern, exclude_segment): New data types.
30195         (struct exclude): Rewrite.
30196         (fnmatch_pattern_has_wildcards): New function.
30197         (new_exclude_segment, free_exclude_segment): New functions.
30198         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30199         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30200         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30201         * modules/exclude: Depend on hash and mbuiter.
30202
30203         * modules/exclude-tests: New file.
30204         * tests/test-exclude.c: New file.
30205         * tests/test-exclude1.sh: New file.
30206         * tests/test-exclude2.sh: New file.
30207         * tests/test-exclude3.sh: New file.
30208         * tests/test-exclude4.sh: New file.
30209         * tests/test-exclude5.sh: New file.
30210         * tests/test-exclude6.sh: New file.
30211         * tests/test-exclude7.sh: New file.
30212
30213 2009-08-12  Bruno Haible  <bruno@clisp.org>
30214
30215         Ensure that getopt() gets declared by <unistd.h>.
30216         * lib/unistd.in.h: Conditionally include getopt.h.
30217         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30218         Set GNULIB_UNISTD_H_GETOPT.
30219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30220         GNULIB_UNISTD_H_GETOPT.
30221         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30222
30223 2009-08-12  Bruno Haible  <bruno@clisp.org>
30224
30225         Clarify logic.
30226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30227         gl_replace_getopt instead of GETOPT_H.
30228
30229 2009-08-12  Bruno Haible  <bruno@clisp.org>
30230
30231         * m4/getopt.m4: Add comments.
30232
30233 2009-08-12  Bruno Haible  <bruno@clisp.org>
30234
30235         Disable multithread support by default on Cygwin 1.5.x.
30236         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30237         set gl_use_threads=no if not specified otherwise.
30238
30239 2009-08-11  Bruno Haible  <bruno@clisp.org>
30240
30241         Avoid compilation error on NetBSD 5.0.
30242         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30243         * tests/test-stdio.c: Likewise.
30244         * tests/test-stdlib.c: Likewise.
30245         * tests/test-string.c: Likewise.
30246         * tests/test-unistd.c: Likewise.
30247         Reported by Greg Troxel <gdt@ir.bbn.com>
30248         at <https://savannah.gnu.org/support/?106973>.
30249
30250 2009-08-11  Bruno Haible  <bruno@clisp.org>
30251
30252         * modules/dup2-tests (Depends-on): Remove close.
30253
30254         Undo 2009-07-19 commit.
30255         * modules/acl-tests (Depends-on): Remove close.
30256         * modules/binary-io-tests (Depends-on): Likewise.
30257         * modules/closein-tests (Depends-on): Likewise.
30258         * modules/flock-tests (Depends-on): Likewise.
30259         * modules/fsync-tests (Depends-on): Likewise.
30260         * modules/lseek-tests (Depends-on): Likewise.
30261         * modules/pipe-tests (Depends-on): Likewise.
30262         * modules/posix_spawn-tests (Depends-on): Likewise.
30263         * modules/posix_spawnp-tests (Depends-on): Likewise.
30264         * modules/stat-time-tests (Depends-on): Likewise.
30265         * modules/yesno-tests (Depends-on): Likewise.
30266
30267 2009-08-10  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30270
30271 2009-08-10  Bruno Haible  <bruno@clisp.org>
30272
30273         Fix a gcc warning.
30274         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30275
30276 2009-08-10  Bruno Haible  <bruno@clisp.org>
30277
30278         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30279         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30280         not only the first time.
30281         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30282         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30283         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30284         is 1, not only the the first time.
30285
30286 2009-08-10  Bruno Haible  <bruno@clisp.org>
30287
30288         Make it possible to use module 'gethostname' without module 'close'.
30289         * lib/unistd.in.h (close): Evoke a link error only if
30290         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30292         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30293         * modules/unistd (Makefile.am): Substitute
30294         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30295         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30296         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30298         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30299         * modules/sys_ioctl (Makefile.am): Substitute
30300         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30301         * modules/socket (configure.ac): On native Windows, set
30302         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30303         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30304         Reported by Sam Steingold <sds@gnu.org>.
30305
30306 2009-08-10  Bruno Haible  <bruno@clisp.org>
30307
30308         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30309         * modules/ioctl (configure.ac): Likewise.
30310
30311 2009-08-10  Bruno Haible  <bruno@clisp.org>
30312
30313         Avoid collision between gnulib wrapper and libintl wrapper.
30314         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30315         already defined in intl/printf.c.
30316         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30317         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30318
30319 2009-08-09  Bruno Haible  <bruno@clisp.org>
30320
30321         Make <sys/select.h> really self-contained, also on Solaris 10.
30322         * lib/sys_select.in.h: Include <string.h>.
30323         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30324         Solaris 10 problem.
30325         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30326         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30327         Reported by Jim Meyering.
30328
30329 2009-08-09  Bruno Haible  <bruno@clisp.org>
30330
30331         Avoid warnings from 'aclocal' that are due to a use of macro name
30332         AM_XGETTEXT_OPTION that is not defined in automake.
30333         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30334         automake.
30335         * modules/error (configure.ac): Likewise.
30336         * modules/propername (configure.ac): Likewise.
30337         * modules/vasprintf (configure.ac): Likewise.
30338         * modules/verror (configure.ac): Likewise.
30339         * modules/xprintf (configure.ac): Likewise.
30340         * modules/xvasprintf (configure.ac): Likewise.
30341
30342 2009-08-08  Bruno Haible  <bruno@clisp.org>
30343
30344         Avoid compilation error in C++ mode.
30345         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30346         Reported by Sam Steingold <sds@gnu.org>.
30347
30348 2009-08-08  Bruno Haible  <bruno@clisp.org>
30349
30350         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30351         for the various Unix platforms.
30352         * doc/posix-headers/limits.texi: Update platforms list regarding
30353         HOST_NAME_MAX.
30354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30355
30356 2009-08-07  Jim Meyering  <meyering@redhat.com>
30357
30358         selinux-at: fix typo in a comment
30359         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30360         Spotted by Paolo Bonzini.
30361
30362         selinux-at: remove redundant m4 code, add documentation
30363         * modules/selinux-at (configure.ac): Remove redundant code.
30364         LIB_SELINUX is already set via the dependent module, selinux-h.
30365         (Include): Add quotes around selinux-at.h.
30366         * lib/selinux-at.h: Add documentation.
30367         Reported by Bruno Haible in
30368         http://marc.info/?l=gnulib-bug&m=124958988300749
30369
30370 2009-08-07  Bruno Haible  <bruno@clisp.org>
30371
30372         Avoid link error on MacOS X 10.3 and 10.4.
30373         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30374         on non-ELF systems.
30375         * lib/argp-pv.c (argp_program_version): Likewise.
30376         Reported by Simon Josefsson.
30377
30378 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30379
30380         * tests/test-version-etc.sh: Use $EXEEXT.
30381
30382 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30383
30384         update-copyright: update documentation to point to maint.mk
30385         * build-aux/update-copyright: Here.
30386
30387 2009-08-06  Jim Meyering  <meyering@redhat.com>
30388
30389         maint.mk: support update-copyright-local
30390         * top/maint.mk (update-copyright-local): Define place-holder.
30391         (update-copyright): Depend on $(update-copyright-local).
30392
30393 2009-08-06  Jim Meyering  <meyering@redhat.com>
30394
30395         selinux-at: new module
30396         Initially written for coreutils, this module will soon be
30397         used by findutils, too.
30398         * MODULES.html.sh [Misc]: Add selinux-at.
30399         * lib/selinux-at.h: New file, from coreutils.
30400         * lib/selinux-at.c: Likewise.
30401         * modules/selinux-at: Likewise.
30402         (License): Change from LGPL to GPL, since it depends
30403         on the GPL'd openat module.
30404
30405         doc: update README
30406         * README: Remove references to cogito.
30407         Remove cvs-repo-updating instructions from 2007.
30408         Don't imply that CVS is better if you have limited disk space.
30409
30410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30411
30412         update-copyright: support C-style comments
30413         * build-aux/update-copyright: Implement and document.
30414         * tests/test-update-copyright.sh: Test.
30415
30416 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30417
30418         update-copyright: support omitted "(C)"
30419         * build-aux/update-copyright: Implement and document.  Also,
30420         allow variable whitespace before "(C)".
30421         * tests/test-update-copyright.sh: Test.
30422
30423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30424
30425         update-copyright: don't trip on non-FSF copyright statements
30426         * build-aux/update-copyright: Fix so that the first correctly
30427         formatted FSF copyright statement is recognized no matter what
30428         appears before it.  Update documentation.
30429         * tests/test-update-copyright.sh: Test that.
30430
30431 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30432
30433         update-copyright: clean up code a little
30434         * build-aux/update-copyright: Append "_re" to the name of any
30435         variable holding a regular expression.
30436         Replace "old" and "new" with "stmt" in variable names.
30437         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30438         handled correctly.
30439         Format code more consistently.
30440
30441 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30442
30443         update-copyright-tests: improve portability
30444         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30445         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30446
30447 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30448
30449         update-copyright: support @copyright{} and &copy;
30450         * build-aux/update-copyright: Implement and document.
30451         * tests/test-update-copyright.sh: Test.
30452
30453 2009-08-04  Jim Meyering  <meyering@redhat.com>
30454
30455         update-copyright-tests: correctly test EOL=\r\n handling
30456         * tests/test-update-copyright.sh: Put \r at the end of some lines
30457         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30458
30459         maint.mk: make update-copyright exclusion list more configurable
30460         * top/maint.mk (update-copyright): Default to excluding COPYING,
30461         but allow an override, in case someone does want to update that file.
30462
30463         maint.mk: don't update copyright date in COPYING
30464         * top/maint.mk (update-copyright): Exclude COPYING.
30465
30466         maint.mk: add a copyright-updating rule
30467         * top/maint.mk (update-copyright): New rule.
30468         Derived from coreutils/Makefile.am.
30469
30470         update-copyright: rename some variables
30471         * build-aux/update-copyright: Rename a few variables for clarity.
30472         Tweak syntax.  List Joel E. Denny as coauthor.
30473
30474 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30475
30476         update-copyright: fix bug for 2-digit last year and add tests
30477         * build-aux/update-copyright: Fix bug.
30478         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30479         specified.
30480         * modules/update-copyright-tests: New
30481         * tests/test-update-copyright.sh: New.
30482
30483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30484
30485         update-copyright: handle leading tabs in line prefix
30486         * build-aux/update-copyright: Count leading tabs as 8 spaces
30487         when computing margin.  This helps with the formatting of
30488         ChangeLogs, for example.
30489         Fix documentation a little.
30490
30491 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30492
30493         update-copyright: support EOL=\r\n
30494         * build-aux/update-copyright: Implement that.
30495
30496 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30497
30498         update-copyright: automatically format copyright statements
30499         * build-aux/update-copyright: Implement that.
30500         Also, be a little more predictable and safer by always failing
30501         when the full copyright format is not perfectly recognized as an
30502         unbroken whole.  Discussed at
30503         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30504         Rewrite documentation.
30505
30506 2009-08-03  Bruno Haible  <bruno@clisp.org>
30507
30508         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30509
30510 2009-08-02  Bruno Haible  <bruno@clisp.org>
30511
30512         Tests for module 'uname'.
30513         * modules/uname-tests: New file.
30514         * tests/test-uname.c: New file.
30515
30516         New module 'uname'.
30517         * lib/uname.c: New file.
30518         * m4/uname.m4: New file.
30519         * modules/uname: New file.
30520         * doc/posix-functions/uname.texi: Mention the new module.
30521
30522 2009-08-02  Bruno Haible  <bruno@clisp.org>
30523
30524         Tests for module 'sys_utsname'.
30525         * modules/sys_utsname-tests: New file.
30526         * tests/test-sys_utsname.c: New file.
30527
30528         New module 'sys_utsname'.
30529         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30530         * m4/sys_utsname_h.m4: New file.
30531         * modules/sys_utsname: New file.
30532         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30533
30534 2009-08-02  Bruno Haible  <bruno@clisp.org>
30535
30536         Implicitly initialize the sockets library.
30537         * lib/gethostname.c: Include sockets.h.
30538         (rpl_gethostname): Invoke gl_sockets_startup.
30539         * lib/socket.c: Include sockets.h.
30540         (rpl_socket): Invoke gl_sockets_startup.
30541         * modules/gethostname (Depends-on): Add sockets.
30542         * modules/socket (Depends-on): Likewise.
30543         * tests/test-poll.c: Don't include sockets.h.
30544         (main): Don't invoke gl_sockets_startup.
30545         * tests/test-select.c: Don't include sockets.h.
30546         (main): Don't invoke gl_sockets_startup.
30547
30548 2009-08-02  Bruno Haible  <bruno@clisp.org>
30549
30550         Allow multiple calls to gl_sockets_startup.
30551         * lib/sockets.c (initialized_sockets_version): New variable.
30552         (gl_sockets_startup): Do nothing if already called for this or a higher
30553         version.
30554         (gl_sockets_cleanup): Reset initialized_sockets_version.
30555
30556 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30557
30558         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30559         different project/version.
30560
30561 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30562             Bruno Haible  <bruno@clisp.org>
30563
30564         Tests for module 'pipe-filter-gi'.
30565         * modules/pipe-filter-gi-tests: New file.
30566         * tests/test-pipe-filter-gi1.sh: New file.
30567         * tests/test-pipe-filter-gi1.c: New file.
30568         * tests/test-pipe-filter-gi2.sh: New file.
30569         * tests/test-pipe-filter-gi2-main.c: New file.
30570         * tests/test-pipe-filter-gi2-child.c: New file.
30571
30572         New module 'pipe-filter-gi'.
30573         * lib/pipe-filter-gi.c: New file.
30574         * modules/pipe-filter-gi: New file.
30575
30576 2009-08-02  Bruno Haible  <bruno@clisp.org>
30577             Paolo Bonzini  <bonzini@gnu.org>
30578
30579         Tests for module 'pipe-filter-ii'.
30580         * modules/pipe-filter-ii-tests: New file.
30581         * tests/test-pipe-filter-ii1.sh: New file.
30582         * tests/test-pipe-filter-ii1.c: New file.
30583         * tests/test-pipe-filter-ii2.sh: New file.
30584         * tests/test-pipe-filter-ii2-main.c: New file.
30585         * tests/test-pipe-filter-ii2-child.c: New file.
30586
30587         New module 'pipe-filter-ii'.
30588         * lib/pipe-filter.h: New file.
30589         * lib/pipe-filter-ii.c: New file.
30590         * lib/pipe-filter-aux.h: New file.
30591         * modules/pipe-filter-ii: New file.
30592
30593 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30594
30595         * lib/gc-libgcrypt.c: Change copyright to FSF.
30596         * lib/gc-gnulib.c: Likewise.
30597
30598 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30599
30600         * lib/gethostname.c: Include limits.h.
30601
30602 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30603             Bruno Haible  <bruno@clisp.org>
30604
30605         Ensure HOST_NAME_MAX as part of the gethostname module.
30606         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30607         define also HOST_NAME_MAX.
30608         * tests/test-gethostname.c: Include <limits.h>.
30609         (main): Check also HOST_NAME_MAX.
30610         * doc/posix-headers/limits.texi: Document the mingw problem.
30611
30612 2009-08-02  Bruno Haible  <bruno@clisp.org>
30613
30614         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30615         Add comments.
30616
30617 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30618
30619         * lib/gethostname.c: Add Windows wrapper.
30620         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30621         * modules/gethostname: Depend on sys_socket & errno, for also
30622         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30623         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30624
30625 2009-07-31  Jim Meyering  <meyering@redhat.com>
30626
30627         getloadavg: fix symbol name in comment
30628         * lib/getloadavg.c: Correct a typo I introduced when adding
30629         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30630         Matt Kraai spotted the problem.
30631
30632 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30633
30634         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30635         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30636         code also if ! defined N_NAME_POINTER.
30637         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30638         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30639         but the n_name member is a 12-byte array.
30640
30641 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30642
30643         update-copyright: generalize comment handling
30644         * build-aux/update-copyright: Handle copyright statements
30645         within more comment styles.
30646         Document usage.
30647         Report any file with an external copyright holder or parse failure.
30648
30649 2009-07-29  Jim Meyering  <meyering@redhat.com>
30650
30651         mktime: correct setting of REPLACE_MKTIME
30652         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30653
30654         update-copyright: new module
30655         * modules/update-copyright: New file.
30656         * build-aux/update-copyright: New file.
30657         * MODULES.html.sh (maint+release support): Add update-copyright.
30658
30659 2009-07-27  Bruno Haible  <bruno@clisp.org>
30660
30661         Fix compilation error when <ctime> is used and mktime is replaced.
30662         * lib/time.in.h (mktime): New declaration.
30663         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30664         REPLACE_MKTIME instead of defining mktime in config.h.
30665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30666         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30667         Reported by Ross McFarland <rwmcfa1@neces.com>.
30668
30669 2009-07-27  Bruno Haible  <bruno@clisp.org>
30670
30671         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30672         Reported by Matt Kraai <mkraai@beckman.com>.
30673
30674 2009-07-25  Jim Meyering  <meyering@redhat.com>
30675
30676         maint.mk: avoid warnings about missing files
30677         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30678         diagnostic when .prev-version does not exist.
30679         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30680         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30681         nonexistent cfg.mk.
30682         Suggestions from Simon Josefsson.
30683
30684 2009-07-25  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30687         defined as macros. Needed on QNX 6.4.1.
30688         Reported by Matt Kraai <mkraai@beckman.com>.
30689
30690 2009-07-23  Jim Meyering  <meyering@redhat.com>
30691
30692         maint.mk: invoke "make dist" with a working value of XZ_OPT
30693         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30694
30695 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30696
30697         Make fseeko.c compile on QNX.
30698         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30699
30700 2009-07-22  Peter Simons  <simons@cryp.to>
30701
30702         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30703         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30704         * lib/md4.h: Likewise.
30705         * lib/md5.h: Likewise.
30706         * lib/sha1.h: Likewise.
30707         * lib/sha256.h: Likewise.
30708         * lib/sha512.h: Likewise.
30709
30710         tests-sha1: don't assign literal string to 'char *' variable
30711         * tests/test-sha1.c (main): Declare locals with "const" to match
30712         attributes of the right hand side.
30713
30714 2009-07-21  Eric Blake  <ebb9@byu.net>
30715
30716         dup2: fix more mingw problems
30717         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30718         fd to itself.
30719         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30720         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30721         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30722         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30723         care of mingw bugs.
30724
30725 2009-07-21  Jim Meyering  <meyering@redhat.com>
30726
30727         vc-list-files: avoid failure when /bin/sh is dash
30728         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30729         On some Debian based systems, /bin/sh is a symlink to dash, and running
30730         this command would omit the "/" following each 'tests' prefix:
30731           dash -x build-aux/vc-list-files -C . tests
30732         That is because bash and dash work differently:
30733           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30734           bash ok
30735           dash odd
30736
30737 2009-07-21  Eric Blake  <ebb9@byu.net>
30738
30739         dup2-tests: test previous patch
30740         * modules/dup2-tests: New file.
30741         * tests/test-dup2.c: Likewise.
30742         * tests/test-open.c (main): Avoid unspecified behavior.
30743         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30744         test.
30745
30746         dup2: work around mingw and cygwin 1.5 bug
30747         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30749         * modules/unistd (Makefile.am): Substitute it.
30750         * lib/unistd.in.h (dup2): Declare the replacement.
30751         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30752         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30753         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30754         * modules/execute (Depends-on): Add dup2.
30755         * modules/fseterr (Depends-on): Likewise.
30756         * modules/pipe (Depends-on): Likewise.
30757         * modules/posix_spawn-internal (Depends-on): Likewise.
30758
30759 2009-07-21  Bruno Haible  <bruno@clisp.org>
30760
30761         * modules/.gitattributes: New file.
30762
30763 2009-07-20  Bruno Haible  <bruno@clisp.org>
30764
30765         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30766         (main): Use it.
30767
30768 2009-07-20  Eric Blake  <ebb9@byu.net>
30769
30770         test-pipe: make a bit more robust.
30771         * tests/test-pipe.c (myerr): Allow error messages regardless of
30772         what we do to stderr.
30773         (test_pipe): Rearrange to avoid deadlock.
30774         (child_main): Try a larger read, to ensure we avoided deadlock.
30775         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30776         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30777         if misused.
30778
30779 2009-07-19  Jim Meyering  <meyering@redhat.com>
30780
30781         fts: avoid false-positive cycle-detection
30782         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30783         for each new command line argument.
30784
30785 2009-07-19  Bruno Haible  <bruno@clisp.org>
30786
30787         Fix build error on mingw with the modules sys_select and unistd.
30788         * modules/acl-tests (Depends-on): Add close.
30789         * modules/binary-io-tests (Depends-on): Likewise.
30790         * modules/closein-tests (Depends-on): Likewise.
30791         * modules/flock-tests (Depends-on): Likewise.
30792         * modules/fsync-tests (Depends-on): Likewise.
30793         * modules/lseek-tests (Depends-on): Likewise.
30794         * modules/pipe-tests (Depends-on): Likewise.
30795         * modules/posix_spawn-tests (Depends-on): Likewise.
30796         * modules/posix_spawnp-tests (Depends-on): Likewise.
30797         * modules/stat-time-tests (Depends-on): Likewise.
30798         * modules/yesno-tests (Depends-on): Likewise.
30799
30800 2009-07-19  Bruno Haible  <bruno@clisp.org>
30801
30802         Unify conditionals.
30803         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30804         macros, not at the compiler macros.
30805         * lib/pipe.c: Likewise.
30806         * lib/execute.c: Likewise.
30807         * lib/spawni.c: Likewise.
30808
30809 2009-07-19  Bruno Haible  <bruno@clisp.org>
30810
30811         Fix handling of closed stdin/stdout/stderr on mingw.
30812         * lib/w32spawn.h: Include unistd.h.
30813         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30814         file descriptor with O_NOINHERIT flag.
30815         (fd_safer_noinherit): New function, based on fd-safer.c.
30816         (dup_safer_noinherit): New function, based on dup-safer.c.
30817         (undup_safer_noinherit): New function.
30818         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30819         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30820         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30821         instead of fd_safer.
30822         * tests/test-pipe.c: Include <windows.h>.
30823         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30824         result.
30825
30826         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30827         from main.
30828         (test_pipe): Pass an extra argument for disambiguation.
30829         (main): Invoke parent_main or child_main.
30830
30831         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30832         consistently.
30833
30834 2009-07-18  Eric Blake  <ebb9@byu.net>
30835
30836         test-pipe: fix mingw build
30837         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30838
30839 2009-07-18  Bruno Haible  <bruno@clisp.org>
30840
30841         * modules/pipe-tests (Makefile.am): Fix typo.
30842
30843 2009-07-18  Eric Blake  <ebb9@byu.net>
30844
30845         error: fix mingw build
30846         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30847         Reported by Bruno Haible.
30848
30849         error: avoid undefined use of stdout
30850         * lib/error.c (error, error_at_line): Check that fd 1 is open
30851         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30852         is handling faults and the close_stdout module wants to report the
30853         detection of closed stdout as an error.
30854
30855 2009-07-17  Eric Blake  <ebb9@byu.net>
30856
30857         pipe: be robust in face of closed fds
30858         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30859         should cause child to misbehave.
30860         * modules/pipe-tests: New module.
30861         * tests/test-pipe.c: New file.
30862         * tests/test-pipe.sh: New file.
30863         Reported by Akim Demaille.
30864
30865 2009-07-14  Bruno Haible  <bruno@clisp.org>
30866
30867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30868         Reported by anonymous kc.
30869
30870 2009-07-07  Jim Meyering  <meyering@redhat.com>
30871
30872         maint.mk: don't look for translatable strings in *.m4 or *.mk
30873         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30874         when searching for translatable strings.
30875
30876 2009-07-05  Jim Meyering  <meyering@redhat.com>
30877
30878         remove superfluous parentheses in STREQ definition
30879         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30880         * lib/getugroups.c (STREQ): Likewise.
30881         * lib/fnmatch.c (STREQ): Likewise.
30882         Spotted by Bruno Haible.
30883
30884 2009-07-04  Jim Meyering  <meyering@redhat.com>
30885
30886         argv-iter: new module
30887         * MODULES.html.sh: Add argv-iter.
30888         * lib/argv-iter.c, lib/argv-iter.h: New files.
30889         * modules/argv-iter: New file.
30890         * modules/argv-iter-tests: New file.
30891         * tests/test-argv-iter.c: Test it.
30892
30893 2009-07-04  Bruno Haible  <bruno@clisp.org>
30894
30895         Fix assertion.
30896         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30897         contains more exact copies of a given entry than file2, leave the extra
30898         copies unpaired rather than aborting.
30899         Reported by Eric Blake.
30900
30901 2009-07-02  Bruno Haible  <bruno@clisp.org>
30902
30903         Speedup git-merge-changelog for git cherry-pick.
30904         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30905         (entries_mapping_get): New function, extracted from compute_mapping.
30906         (entries_mapping_reverse_get): New function.
30907         (compute_mapping): Add a 'full' argument. Return the result in a
30908         'struct entries_mapping'.
30909         (main): Update. Access the mappings through entries_mapping_get.
30910         Reported by Eric Blake.
30911
30912 2009-07-02  Bruno Haible  <bruno@clisp.org>
30913
30914         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30915         best_i.
30916
30917 2009-07-02  Bruno Haible  <bruno@clisp.org>
30918
30919         Speed up approximate search for matching ChangeLog entries.
30920         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30921         argument. Call fstrcmp_bounded instead of fstrcmp.
30922         (compute_mapping, try_split_merged_entry, main): Update callers.
30923
30924 2009-07-02  Bruno Haible  <bruno@clisp.org>
30925
30926         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30927
30928 2009-06-30  Bruno Haible  <bruno@clisp.org>
30929
30930         Reduce the number of uc_is_cased calls.
30931         * lib/unicase.h (casing_suffix_context_t): Add
30932         'first_char_except_ignorable' field.
30933         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30934         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30935         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30936         Update initializer.
30937         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30938         case-ignorable characters.
30939         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30940         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30941         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30942         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30943         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30944
30945 2009-06-30  Bruno Haible  <bruno@clisp.org>
30946
30947         Tests for module 'unicase/ignorable'.
30948         * modules/unicase/ignorable-tests: New file.
30949         * tests/unicase/test-ignorable.c: New file, generated by
30950         gen-uni-tables.
30951
30952         Tests for module 'unicase/cased'.
30953         * modules/unicase/cased-tests: New file.
30954         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30955         * tests/unicase/test-predicate-part1.h: New file, derived from
30956         tests/unictype/test-predicate-part1.h.
30957         * tests/unicase/test-predicate-part2.h: New file, same as
30958         tests/unictype/test-predicate-part2.h.
30959
30960         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30961         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30962         (output_casing_properties): New function.
30963         (main): Call it.
30964         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30965         * lib/unicase/cased.c: Include unictype/bitmap.h.
30966         (uc_is_cased): Define through a bitmap lookup.
30967         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30968         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30969         (uc_is_case_ignorable): Define through a bitmap lookup.
30970         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30971         lib/unictype/bitmap.h.
30972         (Depends-on): Add inline. Clean up.
30973         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30974         lib/unictype/bitmap.h.
30975         (Depends-on): Add inline. Clean up.
30976         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30977         recognition.
30978         * tests/unicase/test-u16-tolower.c (main): Likewise.
30979         * tests/unicase/test-u32-tolower.c (main): Likewise.
30980
30981 2009-06-30  Bruno Haible  <bruno@clisp.org>
30982
30983         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30984         * lib/unicase/u16-casemap.c: Likewise.
30985         * lib/unicase/u32-casemap.c: Likewise.
30986
30987 2009-06-29  Bruno Haible  <bruno@clisp.org>
30988
30989         Define u32_casefold as a wrapper around u32_ct_casefold.
30990         * lib/unicase/u32-casefold.c: Update.
30991         * modules/unicase/u32-casefold (Depends-on): Add
30992         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30993         unicase/empty-suffix-context. Clean up.
30994
30995         Define u16_casefold as a wrapper around u16_ct_casefold.
30996         * lib/unicase/u16-casefold.c: Update.
30997         * modules/unicase/u16-casefold (Depends-on): Add
30998         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30999         unicase/empty-suffix-context. Clean up.
31000
31001         Define u8_casefold as a wrapper around u8_ct_casefold.
31002         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31003         * lib/unicase/u8-casefold.c: Update.
31004         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31005         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31006
31007         Define u32_totitle as a wrapper around u32_ct_totitle.
31008         * lib/unicase/u32-totitle.c: Update.
31009         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31010         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31011
31012         Define u16_totitle as a wrapper around u16_ct_totitle.
31013         * lib/unicase/u16-totitle.c: Update.
31014         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31015         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31016
31017         Define u8_totitle as a wrapper around u8_ct_totitle.
31018         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31019         functions.
31020         (FUNC): Delegate to U_CT_TOTITLE.
31021         * lib/unicase/u8-totitle.c: Update.
31022         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31023         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31024
31025         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31026         invocation.
31027         * modules/unicase/u32-tolower (Depends-on): Add
31028         unicase/empty-prefix-context, unicase/empty-suffix-context.
31029
31030         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31031         invocation.
31032         * modules/unicase/u16-tolower (Depends-on): Add
31033         unicase/empty-prefix-context, unicase/empty-suffix-context.
31034
31035         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31036         * modules/unicase/u8-tolower (Depends-on): Add
31037         unicase/empty-prefix-context, unicase/empty-suffix-context.
31038
31039         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31040         invocation.
31041         * modules/unicase/u32-toupper (Depends-on): Add
31042         unicase/empty-prefix-context, unicase/empty-suffix-context.
31043
31044         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31045         invocation.
31046         * modules/unicase/u16-toupper (Depends-on): Add
31047         unicase/empty-prefix-context, unicase/empty-suffix-context.
31048
31049         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31050         * modules/unicase/u8-toupper (Depends-on): Add
31051         unicase/empty-prefix-context, unicase/empty-suffix-context.
31052
31053         New module 'unicase/u32-ct-casefold'.
31054         * lib/unicase/u32-ct-casefold.c: New file.
31055         * modules/unicase/u32-ct-casefold: New file.
31056
31057         New module 'unicase/u16-ct-casefold'.
31058         * lib/unicase/u16-ct-casefold.c: New file.
31059         * modules/unicase/u16-ct-casefold: New file.
31060
31061         New module 'unicase/u8-ct-casefold'.
31062         * lib/unicase/u8-ct-casefold.c: New file.
31063         * lib/unicase/u-ct-casefold.h: New file, derived from
31064         lib/unicase/u-casefold.h.
31065         * modules/unicase/u8-ct-casefold: New file.
31066
31067         New module 'unicase/u32-ct-totitle'.
31068         * lib/unicase/u32-ct-totitle.c: New file.
31069         * modules/unicase/u32-ct-totitle: New file.
31070
31071         New module 'unicase/u16-ct-totitle'.
31072         * lib/unicase/u16-ct-totitle.c: New file.
31073         * modules/unicase/u16-ct-totitle: New file.
31074
31075         New module 'unicase/u8-ct-totitle'.
31076         * lib/unicase/u8-ct-totitle.c: New file.
31077         * lib/unicase/u-ct-totitle.h: New file, derived from
31078         lib/unicase/u-totitle.h.
31079         * modules/unicase/u8-ct-totitle: New file.
31080
31081         New module 'unicase/u32-ct-tolower'.
31082         * lib/unicase/u32-ct-tolower.c: New file.
31083         * modules/unicase/u32-ct-tolower: New file.
31084
31085         New module 'unicase/u16-ct-tolower'.
31086         * lib/unicase/u16-ct-tolower.c: New file.
31087         * modules/unicase/u16-ct-tolower: New file.
31088
31089         New module 'unicase/u8-ct-tolower'.
31090         * lib/unicase/u8-ct-tolower.c: New file.
31091         * modules/unicase/u8-ct-tolower: New file.
31092
31093         New module 'unicase/u32-ct-toupper'.
31094         * lib/unicase/u32-ct-toupper.c: New file.
31095         * modules/unicase/u32-ct-toupper: New file.
31096
31097         New module 'unicase/u16-ct-toupper'.
31098         * lib/unicase/u16-ct-toupper.c: New file.
31099         * modules/unicase/u16-ct-toupper: New file.
31100
31101         New module 'unicase/u8-ct-toupper'.
31102         * lib/unicase/u8-ct-toupper.c: New file.
31103         * modules/unicase/u8-ct-toupper: New file.
31104
31105         Add context arguments to u*_casemap functions.
31106         * lib/unicase/unicasemap.h: Include unicase.h.
31107         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31108         suffix_context arguments.
31109         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31110         functions.
31111         (FUNC): Add prefix_context and suffix_context arguments. Use
31112         uc_is_cased and uc_is_case_ignorable.
31113         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31114         * lib/unicase/u16-casemap.c: Likewise.
31115         * lib/unicase/u32-casemap.c: Likewise.
31116         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31117         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31118         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31119         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31120         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31121         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31122
31123         New module 'unicase/u32-suffix-context'.
31124         * lib/unicase/u32-suffix-context.c: New file.
31125         * modules/unicase/u32-suffix-context: New file.
31126
31127         New module 'unicase/u16-suffix-context'.
31128         * lib/unicase/u16-suffix-context.c: New file.
31129         * modules/unicase/u16-suffix-context: New file.
31130
31131         New module 'unicase/u8-suffix-context'.
31132         * lib/unicase/u8-suffix-context.c: New file.
31133         * lib/unicase/u-suffix-context.h: New file.
31134         * modules/unicase/u8-suffix-context: New file.
31135
31136         New module 'unicase/empty-suffix-context'.
31137         * lib/unicase/empty-suffix-context.c: New file.
31138         * modules/unicase/empty-suffix-context: New file.
31139
31140         New module 'unicase/u32-prefix-context'.
31141         * lib/unicase/u32-prefix-context.c: New file.
31142         * modules/unicase/u32-prefix-context: New file.
31143
31144         New module 'unicase/u16-prefix-context'.
31145         * lib/unicase/u16-prefix-context.c: New file.
31146         * modules/unicase/u16-prefix-context: New file.
31147
31148         New module 'unicase/u8-prefix-context'.
31149         * lib/unicase/u8-prefix-context.c: New file.
31150         * lib/unicase/u-prefix-context.h: New file.
31151         * lib/unicase/context.h: New file.
31152         * modules/unicase/u8-prefix-context: New file.
31153
31154         New module 'unicase/empty-prefix-context'.
31155         * lib/unicase/empty-prefix-context.c: New file.
31156         * modules/unicase/empty-prefix-context: New file.
31157
31158         New module 'unicase/ignorable'.
31159         * lib/unicase/ignorable.c: New file.
31160         * modules/unicase/ignorable: New file.
31161
31162         New module 'unicase/cased'.
31163         * lib/unicase/caseprop.h: New file.
31164         * lib/unicase/cased.c: New file.
31165         * modules/unicase/cased: New file.
31166
31167         New functions for case mapping of substrings.
31168         * lib/unicase.h (casing_prefix_context_t): New type.
31169         (unicase_empty_prefix_context): New variable.
31170         (u8_casing_prefix_context, u16_casing_prefix_context,
31171         u32_casing_prefix_context, u8_casing_prefixes_context,
31172         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31173         declarations.
31174         (casing_suffix_context_t): New type.
31175         (unicase_empty_suffix_context): New variable.
31176         (u8_casing_suffix_context, u16_casing_suffix_context,
31177         u32_casing_suffix_context, u8_casing_suffixes_context,
31178         u16_casing_suffixes_context, u32_casing_suffixes_context,
31179         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31180         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31181         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31182         declarations.
31183
31184 2009-06-28  Jim Meyering  <meyering@redhat.com>
31185
31186         boostrap: indent only with spaces
31187         * build-aux/bootstrap: Indent only with spaces, never TABs.
31188
31189         bootstrap: split long lines
31190         * build-aux/bootstrap: Keep line length < 80.
31191
31192         bootstrap: sync from coreutils
31193         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31194         just as autoreconf does.  Verify a list of prerequisite
31195         package-name,version-number pairs if defined in bootstrap.conf.
31196         Refer to README-prereq, if prerequisites are not satisfied.
31197
31198 2009-06-27  Eric Blake  <ebb9@byu.net>
31199
31200         tests: add test for bogus NULL definition
31201         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31202         * tests/test-stdlib.c: Likewise.
31203         * tests/test-string.c: Likewise.
31204         * tests/test-locale.c: Likewise.
31205         * tests/test-unistd.c: Likewise.
31206         * modules/stdio-tests (Depends-on): Add verify.
31207         * modules/stdlib-tests (Depends-on): Likewise.
31208         * modules/string-tests (Depends-on): Likewise.
31209         * modules/locale-tests (Depends-on): Likewise.
31210         * modules/unistd-tests (Depends-on): Likewise.
31211
31212 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31213
31214         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31215         self-explaining comment.
31216         * m4/selinux-selinux-h: Update serial.
31217         (gl_LIBSELINUX): New macro, adding a warning for missing development
31218         packages to code extracted from...
31219         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31220         Add warning for missing development packages here, too.
31221
31222 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31223
31224         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31225
31226 2009-06-25  Eric Blake  <ebb9@byu.net>
31227
31228         version-etc: fix regression
31229         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31230         gcc.
31231         (version_etc): Use it, to catch bugs with trailing NULL.
31232         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31233         (version_etc_va): Fix logic bug.
31234         * modules/version-etc-tests: Add test.
31235         * tests/test-version-etc.c: New file.
31236         * tests/test-version-etc.sh: Likewise.
31237
31238 2009-06-25  Sam Steingold  <sds@gnu.org>
31239
31240         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31241         mbtowc declaration.
31242
31243 2009-06-25  Eric Blake  <ebb9@byu.net>
31244
31245         fpurge: migrate into <stdio.h>
31246         * lib/fpurge.h: Delete...
31247         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31248         * lib/fpurge.c (fpurge): Change declaring header.
31249         * modules/fpurge (Files): Drop deleted file.
31250         (Depends-on): Add stdio.
31251         (configure.ac): Set witness.
31252         * modules/stdio (Makefile.am): Support fpurge macros.
31253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31255         * lib/fflush.c: Update client.
31256         * tests/test-fpurge.c: Likewise.
31257         * NEWS: Mention the change.
31258
31259 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31260
31261         * lib/argp-version-etc.c (program_authors): Add const
31262         qualifier.
31263         * lib/version-etc.c: Fix typos in the comments.
31264         * modules/argp-version-etc: Depends on version-etc.
31265
31266 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31267
31268         argp-version-etc: new module.
31269
31270         * lib/argp-version-etc.c: New file.
31271         * lib/argp-version-etc.h: New file.
31272         * modules/argp-version-etc: New file.
31273         * modules/argp-version-etc-tests: New file.
31274         * tests/test-argp-version-etc.c: New test.
31275         * tests/test-argp-version-etc-1.sh: New test.
31276
31277 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31278
31279         Provide additional interfaces and documentation for version-etc
31280         module.
31281
31282         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31283         interfaces.
31284         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31285         prototypes.
31286
31287 2009-06-24  Bruno Haible  <bruno@clisp.org>
31288
31289         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31290         HAVE_LIB${NAME} macro.
31291         Reported by Sam Steingold <sds@gnu.org>.
31292
31293 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31294
31295         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31296         needed.
31297
31298 2009-06-21  Bruno Haible  <bruno@clisp.org>
31299
31300         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31301         work.
31302         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31303         together with LIB${NAME}, LTLIB${NAME}.
31304         Reported by Sam Steingold <sds@gnu.org>.
31305
31306 2009-06-20  Jim Meyering  <meyering@redhat.com>
31307
31308         tests: make sc_require_test_exit_idiom more generic
31309         * top/maint.mk (Exit_witness_file): New overridable variable.
31310         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31311         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31312
31313 2009-06-19  Jim Meyering  <meyering@redhat.com>
31314
31315         hash: reverse order of src/dst parameters in an internal interface
31316         * lib/hash.c (transfer_entries): Reverse order of parameters to
31317         put DST before SRC.  Adjust callers.
31318
31319         tests: test-hash: avoid wholesale duplication
31320         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31321         Instead, use a loop and add a single conditional.
31322
31323         tests: test-hash: allow seed selection via a command line argument
31324         * tests/test-hash.c (get_seed): New function.
31325         (main): Use it.
31326
31327 2009-06-19  Eric Blake  <ebb9@byu.net>
31328
31329         hash: avoid memory leak on allocation failure
31330         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31331         failure.  Factor repeated algorithm...
31332         (transfer_entries): ...into new helper routine.
31333         (hash_delete): React to hash_rehash return value.
31334
31335         hash: reduce memory pressure in hash_rehash no-op case
31336         * lib/hash.c (next_prime): Avoid overflow.
31337         (hash_initialize): Factor bucket size computation...
31338         (compute_bucket_size): ...into new helper function.
31339         (hash_rehash): Use new function and open coding to reduce memory
31340         pressure, and avoid a memory leak in USE_OBSTACK code.
31341         Reported by Jim Meyering.
31342
31343 2009-06-18  Eric Blake  <ebb9@byu.net>
31344
31345         hash: make rotation more obvious
31346         * modules/hash (Depends-on): Add bitrotate and stdint.
31347         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31348         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31349         (SIZE_MAX): Rely on headers for definition.
31350         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31351         (raw_hasher): Use rotr_sz.
31352         Suggested by Jim Meyering.
31353
31354         hash: fix memory leak in last patch
31355         * lib/hash.c (hash_rehash): Avoid memory leak.
31356
31357         hash: avoid no-op rehashing
31358         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31359
31360         hash: provide default callback functions
31361         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31362         (hash_initialize): Use them as defaults.
31363         * tests/test-hash.c (main): Test this.
31364
31365         hash: minor optimization
31366         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31367         when possible.
31368         (hash_initialize): Document this promise.
31369         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31370         * tests/test-hash.c (hash_compare_strings): Test this.
31371
31372 2009-06-18  Bruno Haible  <bruno@clisp.org>
31373
31374         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31375         going to be replaced anyway.
31376
31377 2009-06-18  Bruno Haible  <bruno@clisp.org>
31378
31379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31380         in one place.
31381         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31382         be replaced anyway.
31383
31384 2009-06-18  Eric Blake  <ebb9@byu.net>
31385
31386         hash: check for resize before insertion
31387         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31388         threshold before insertion, so that a pathological hash_rehash
31389         that fills every bucket can still trigger another rehash.
31390
31391 2009-06-18  Jim Meyering  <meyering@redhat.com>
31392
31393         hash-tests: add a loop around the small tests
31394         * tests/test-hash.c (main): Repeat small tests with selected
31395         small initial table sizes.
31396
31397 2009-06-17  Eric Blake  <ebb9@byu.net>
31398
31399         hash: minor cleanups
31400         * lib/hash.h (hash_entry): Make opaque, by moving...
31401         * lib/hash.c (hash_entry): ...here.
31402         (hash_insert): Clarify restrictions on what can be inserted.
31403         (hash_get_next): Clarify when it is safe to remove an element
31404         during traversal.
31405         (check_tuning): Skip verification when tuning is known safe.
31406         (hash_initialize): Clarify restrictions on tuning.
31407
31408 2009-06-17  Jim Meyering  <jim@meyering.net>
31409         and Eric Blake  <ebb9@byu.net>
31410
31411         hash-tests: new module
31412         * modules/hash-tests: New file.
31413         * tests/test-hash.c: New file.
31414
31415 2009-06-17  Eric Blake  <ebb9@byu.net>
31416
31417         strstr-simple: document new module
31418         * MODULES.html.sh: Document new module.
31419
31420         strstr, strcasestr: replace on platforms with broken memchr
31421         * modules/strstr: Split into...
31422         * modules/strstr-simple: ...new module that does not care about
31423         performance, but does care about glibc bug.
31424         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31425         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31426         if platform memchr is broken, per Debian bug 521737.
31427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31428         memchr.
31429         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31430         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31431         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31432         * modules/mountlist (Depends-on): Add strstr-simple.
31433         * modules/gen-uni-tables (Depends-on): Likewise.
31434         * modules/argz (Depends-on): Add strstr.
31435
31436 2009-06-17  Bruno Haible  <bruno@clisp.org>
31437
31438         * modules/posix_spawn-internal (Depends-on): Add errno.
31439
31440 2009-06-17  Bruno Haible  <bruno@clisp.org>
31441
31442         Define missing ESTALE on Interix 3.5.
31443         * lib/errno.in.h (ESTALE): Assign a value if missing.
31444         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31445         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31446         missing.
31447         * doc/posix-headers/errno.texi: Mention the Interix bug.
31448         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31449
31450 2009-06-15  Eric Blake  <ebb9@byu.net>
31451
31452         memchr, memchr2: add valgrind exception
31453         * lib/memchr.valgrind: New file.
31454         * lib/memchr2.valgrind: New file.
31455         * modules/memchr (Files): Distribute valgrind file.
31456         * modules/memchr2 (Files): Likewise.
31457
31458         docs: memchr is no longer obsolete
31459         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31460         * lib/string.in.h (memchr): Simplify logic.
31461
31462 2009-06-14  Jim Meyering  <meyering@redhat.com>
31463
31464         link-follow: fix the "checking..." message to not mention trailing slash
31465         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31466         never considered trailing slashes.
31467
31468 2009-06-14  Bruno Haible  <bruno@clisp.org>
31469
31470         * m4/memchr.m4: Mention also the bug on IA-64.
31471         * doc/posix-functions/memchr.texi: Likewise.
31472
31473 2009-06-12  Eric Blake  <ebb9@byu.net>
31474
31475         memchr: detect broken x86_64 and alpha implementations
31476         * modules/memchr-tests (Depends-on): Move mmap detection...
31477         * modules/memchr (Depends-on): ...here.
31478         (configure.ac): Set indicator.
31479         * lib/string.in.h (memchr): Declare replacement.
31480         * modules/string (Makefile.am): Trigger replacement.
31481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31482         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31483         bugs.
31484         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31485         * modules/getpagesize (License): Relax license.
31486
31487 2009-06-11  Bruno Haible  <bruno@clisp.org>
31488
31489         * lib/idpriv.h: Add more references.
31490
31491 2009-06-08  Bruno Haible  <bruno@clisp.org>
31492
31493         Tests for module 'idpriv-droptemp'.
31494         * modules/idpriv-droptemp-tests: New file.
31495         * tests/test-idpriv-droptemp.sh: New file.
31496         * tests/test-idpriv-droptemp.su.sh: New file.
31497         * tests/test-idpriv-droptemp.c: New file.
31498
31499         New module 'idpriv-droptemp'.
31500         * lib/idpriv-droptemp.c: New file.
31501         * modules/idpriv-droptemp: New file.
31502
31503 2009-06-08  Bruno Haible  <bruno@clisp.org>
31504
31505         Tests for module 'idpriv-drop'.
31506         * modules/idpriv-drop-tests: New file.
31507         * tests/test-idpriv-drop.sh: New file.
31508         * tests/test-idpriv-drop.su.sh: New file.
31509         * tests/test-idpriv-drop.c: New file.
31510
31511         New module 'idpriv-drop'.
31512         * lib/idpriv.h: New file.
31513         * lib-idpriv-drop.c: New file.
31514         * m4/idpriv.m4: New file.
31515         * modules/idpriv-drop: New file.
31516
31517 2009-06-08  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31520         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31521         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31522         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31523         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31524         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31525         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31526
31527 2009-06-08  Eric Blake  <ebb9@byu.net>
31528
31529         test-strstr: use memory fence, when possible
31530         * tests/test-strstr.c (main): Use memory fence, in order to be
31531         more likely to trigger Debian bug 521737.
31532         * modules/strstr-tests (Files): Pull in additional files.
31533
31534         memchr: no longer obsolete, for wider field testing
31535         * modules/memchr (Status, Notice): Delete, this module is no
31536         longer obsolete.
31537         * modules/vasnprintf (Depends-on): Add memchr.
31538
31539 2009-06-07  Jim Meyering  <meyering@redhat.com>
31540
31541         hash: declare some functions with the warn_unused_result attribute
31542         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31543
31544 2009-06-07  Bruno Haible  <bruno@clisp.org>
31545
31546         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31547         Reported by Eric Blake.
31548
31549 2009-06-06  Eric Blake  <ebb9@byu.net>
31550
31551         test-alignof: fix typo with long double
31552         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31553         compiler error.
31554
31555 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31556
31557         Escape non-texinfo { and }s.
31558         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31559         markup error.
31560
31561 2009-06-04  Jim Meyering  <meyering@redhat.com>
31562
31563         gitlog-to-changelog: don't infloop on an empty commit log
31564         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31565         Reported by Boris Petersen <transacid@centerim.org>.
31566
31567 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31568
31569         version-etc: extend for packagers
31570         Add three new configure options, intended for packagers:
31571           --with-packager="packager name"
31572           --with-packager-version="packager-specific version"
31573           --with-packager-bug-reports="packager bug reporting"
31574         An example with coreutils:
31575           $ ./configure \
31576             --with-packager=Gentoo \
31577             --with-packager-bug-report=http://bugs.gentoo.org/ \
31578             --with-packager-version="patchset 1.6"
31579           $ ./src/ls --version | head -n2
31580           ls (GNU coreutils) 7.1-dirty
31581           Packaged by Gentoo (patchset 1.6)
31582         Note that the bug reporting info via --help doesn't show up because
31583         coreutils uses its own custom emit_bug_reporting_address() implementation
31584         in src/system.h.  If it didn't, it'd look like:
31585           $ ./src/ls --help | tail -n4
31586           Report bugs to <bug-coreutils@gnu.org>.
31587           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31588           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31589           General help using GNU software: <http://www.gnu.org/gethelp/>.
31590         * lib/version-etc.c: Print new information, if provided.
31591         * m4/version-etc.m4: New file.
31592         * modules/version-etc (Files): Add m4/version-etc.m4.
31593         (configure.ac): Add gl_VERSION_ETC.
31594
31595 2009-05-31  Bruno Haible  <bruno@clisp.org>
31596
31597         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31598         and 'int64_t'.
31599         * modules/alignof-tests (Dependencies): Add stdint.
31600         Reported by Eric Blake.
31601
31602 2009-05-31  Bruno Haible  <bruno@clisp.org>
31603
31604         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31605         restriction due to compiler bugs.
31606         Reported by Eric Blake.
31607
31608 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31609             Bruno Haible  <bruno@clisp.org>
31610
31611         Fix test-alignof failure.
31612         * lib/alignof.h (alignof_slot): New macro.
31613         (alignof_type): New macro, with the same semantics as the previous
31614         'alignof'.
31615         (alignof): Alias to alignof_slot.
31616         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31617         check that the results are usable as constant expressions.
31618
31619 2009-05-31  Bruno Haible  <bruno@clisp.org>
31620
31621         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31622         * tests/test-memchr.c (main): Check that memchr does not read past the
31623         first occurrence of the byte.
31624         * tests/test-strstr.c (main): Update comment.
31625         Suggested by Eric Blake.
31626
31627 2009-05-30  Bruno Haible  <bruno@clisp.org>
31628
31629         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31630         detail how to use dumpbin.
31631         Reported by David Byron <dbyron@dbyron.com>.
31632
31633 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31634
31635         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31636
31637 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31638
31639         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31640
31641 2009-05-28  Bruno Haible  <bruno@clisp.org>
31642
31643         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31644         build-aux/ files.
31645
31646 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31647
31648         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31649
31650 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31651
31652         * gnulib-tool (sed_transform_main_lib_file)
31653         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31654         regexps.
31655
31656 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31657
31658         * tests/test-strstr.c: Add another self-test.
31659         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31660         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31661
31662 2009-05-23  Bruno Haible  <bruno@clisp.org>
31663
31664         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31665         change.
31666
31667 2009-05-21  Bruno Haible  <bruno@clisp.org>
31668
31669         Simplify use of mode_t varargs.
31670         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31671         uses 'mode_t' or 'int'.
31672         * lib/openat.c (openat): Likewise.
31673         * lib/open-safer.c (open_safer): Likewise.
31674         * m4/mode_t.m4: New file.
31675         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31676         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31678         * modules/open (Files): Add m4/mode_t.m4.
31679         * modules/openat (Files): Likewise.
31680         * modules/fcntl-safer (Files): Likewise.
31681         Suggested by Eric Blake.
31682
31683 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31684
31685         * doc/glibc-functions/fallocate.texi: New file.
31686         * doc/gnulib.texi: Include it.
31687
31688 2009-05-21  Eric Blake  <ebb9@byu.net>
31689             Bruno Haible  <bruno@clisp.org>
31690
31691         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31692         invocations.
31693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31694
31695 2009-05-21  Eric Blake  <ebb9@byu.net>
31696             Bruno Haible  <bruno@clisp.org>
31697
31698         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31699         include_next. Fix of 2008-11-20 commit.
31700         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31701         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31702         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31703         NEXT_MATH_H.
31704         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31705         instead of NEXT_MATH_H.
31706
31707 2009-05-21  Bruno Haible  <bruno@clisp.org>
31708
31709         Avoid redefinition warnings for SIZE_MAX.
31710         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31711         Reported by Simon Josefsson.
31712
31713 2009-05-21  Bruno Haible  <bruno@clisp.org>
31714
31715         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31716         AC_CACHE_VAL.
31717
31718 2009-05-20  Bruno Haible  <bruno@clisp.org>
31719
31720         Make zeroptr.h work on mingw.
31721         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31722         mprotect.
31723         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31724         * modules/memchr2-tests (configure.ac): Likewise.
31725         * modules/memcmp-tests (configure.ac): Likewise.
31726         * modules/memmem-tests (configure.ac): Likewise.
31727         * modules/memrchr-tests (configure.ac): Likewise.
31728         Reported by Simon Josefsson.
31729
31730 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31731
31732         * tests/test-glob.c: Include string.h for strcmp prototype.
31733
31734 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31735
31736         * modules/getdelim (Depends-on): Add explicit stdint, although it
31737         was implicitly already pulled in via realloc-posix.
31738         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31739
31740 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31741
31742         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31743         G. Christensen" <tgc@jupiterrise.com>.
31744         * m4/sys_socket_h.m4: Check for sa_family_t.
31745         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31746         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31747         * tests/test-sys_socket.c: Check that sa_family_t works.
31748
31749 2009-05-18  Eric Blake  <ebb9@byu.net>
31750
31751         maint.mk: allow gnulib_dir in VPATH build
31752         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31753
31754 2009-05-15  Jim Meyering  <meyering@redhat.com>
31755
31756         maint.mk: Give gnulib_dir a default definition.
31757         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31758         Thus, most packages no longer need to specify this variable in cfg.mk
31759
31760 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31761
31762         rename.m4: fix typos that would make non-mingw cross-configure fail
31763         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31764
31765 2009-05-13  Eric Blake  <ebb9@byu.net>
31766
31767         mmap-anon: avoid out-of-order autoconf expansion
31768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31769         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31770         * modules/memchr-tests (Depends-on): Add extensions.
31771         * modules/memchr2-tests (Depends-on): Add extensions.
31772         * modules/memcmp-tests (Depends-on): Add extensions.
31773         * modules/memmem-tests (Depends-on): Add extensions.
31774         * modules/memrchr-tests (Depends-on): Add extensions.
31775
31776 2009-05-13  Bruno Haible  <bruno@clisp.org>
31777
31778         Make some tests ISO C 99 compliant.
31779         * tests/zerosize-ptr.h: New file.
31780         * tests/test-memchr.c: Include zerosize-ptr.h.
31781         (main): Use a zero-size object pointer instead of NULL.
31782         * tests/test-memchr2.c: Include zerosize-ptr.h.
31783         (main): Use a zero-size object pointer instead of NULL.
31784         * tests/test-memcmp.c: Include zerosize-ptr.h.
31785         (main): Use a zero-size object pointer instead of NULL.
31786         * tests/test-memmem.c: Include zerosize-ptr.h.
31787         (main): Use a zero-size object pointer instead of NULL.
31788         * tests/test-memrchr.c: Include zerosize-ptr.h.
31789         (main): Use a zero-size object pointer instead of NULL.
31790         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31791         m4/mmap-anon.m4.
31792         (Depends-on): Add getpagesize.
31793         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31794         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31795         m4/mmap-anon.m4.
31796         (Depends-on): Add getpagesize.
31797         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31798         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31799         m4/mmap-anon.m4.
31800         (Depends-on): Add getpagesize.
31801         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31802         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31803         m4/mmap-anon.m4.
31804         (Depends-on): Add getpagesize.
31805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31806         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31807         m4/mmap-anon.m4.
31808         (Depends-on): Add getpagesize.
31809         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31810
31811 2009-05-12  Bruno Haible  <bruno@clisp.org>
31812
31813         Tests for module 'alignof'.
31814         * modules/alignof-tests: New file.
31815         * tests/test-alignof.c: New file.
31816
31817 2009-05-12  Bruno Haible  <bruno@clisp.org>
31818
31819         Fix alignof macro.
31820         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31821         vendor compilers that are always correct.
31822
31823 2009-05-12  Bruno Haible  <bruno@clisp.org>
31824
31825         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31826         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31827         not whether its fully works.
31828
31829 2009-05-12  Bruno Haible  <bruno@clisp.org>
31830
31831         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31832
31833 2009-05-12  Jim Meyering  <meyering@redhat.com>
31834
31835         * top/maint.mk: Adjust backslash alignment.
31836
31837 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31838
31839         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31840
31841 2009-05-11  Eric Blake  <ebb9@byu.net>
31842
31843         argp: avoid undefined behavior
31844         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31845         macros.
31846
31847 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31848
31849         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31850         user.name to prevent git commit from complaining.
31851
31852 2009-05-10  Bruno Haible  <bruno@clisp.org>
31853
31854         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31855         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31856         it rewrites every file name only once.
31857         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31858
31859 2009-05-08  Bruno Haible  <bruno@clisp.org>
31860
31861         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31862         instead of 'max'.
31863
31864 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31865
31866         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31867         sockaddr_storage test.
31868
31869 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31870
31871         * modules/sys_socket (Makefile.am): Substitute
31872         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31873         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31874         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31875         * tests/test-sys_socket.c: Check sockaddr_storage.
31876
31877 2009-05-08  Bruno Haible  <bruno@clisp.org>
31878
31879         New module 'alignof'.
31880         * lib/alignof.h: New file.
31881         * modules/alignof: New file.
31882
31883 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31884             Bruno Haible  <bruno@clisp.org>
31885
31886         Fix test-file-has-acl on FreeBSD.
31887         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31888         mask is implicitly added.
31889         * tests/test-file-has-acl.c: Include <signal.h>.
31890         (main): Terminate the test after 5 seconds.
31891         * modules/acl-tests (configure.ac): Check for alarm function.
31892
31893 2009-05-04  Bruno Haible  <bruno@clisp.org>
31894
31895         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31897         * modules/errno (configure.ac): Drop AC_REQUIRE.
31898         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31899         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31900
31901 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31902
31903         * modules/glob-tests: New module.
31904         * tests/test-glob.c: Add.
31905
31906 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31907
31908         * modules/fnmatch-tests: New module.
31909         * tests/test-fnmatch.c: Add.
31910
31911 2009-05-04  Eric Blake  <ebb9@byu.net>
31912
31913         maint: make the new no-submodule-changes rule VPATH-safe
31914         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31915
31916 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31917             Bruno Haible  <bruno@clisp.org>
31918
31919         acl: Fix infinite loop on FreeBSD.
31920         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31921         of return value from acl_get_entry.
31922         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31923         Likewise.
31924
31925 2009-05-03  Bruno Haible  <bruno@clisp.org>
31926
31927         * lib/acl-internal.h (acl_entries): Clarify return value.
31928         * lib/acl_entries.c (acl_entries): Likewise.
31929
31930 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31931
31932         Bug fix in acl module.
31933         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31934
31935 2009-05-03  Bruno Haible  <bruno@clisp.org>
31936
31937         Create gperf-generated file in the source dir, not in the build dir.
31938         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31939         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31940         * modules/unicase/locale-language (unicase/locale-languages.h):
31941         Likewise.
31942         * modules/unicase/special-casing (unicase/special-casing-table.h):
31943         Likewise.
31944         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31945         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31946         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31947         Reported by Ralf Wildenhues.
31948
31949 2009-05-03  Bruno Haible  <bruno@clisp.org>
31950
31951         * modules/fnmatch (Description, configure.ac): Taken from
31952         fnmatch-posix.
31953         * modules/fnmatch-posix: Turn into a symbolic reference to the
31954         'fnmatch' module, and deprecate.
31955         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31956
31957 2009-05-03  Bruno Haible  <bruno@clisp.org>
31958
31959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31960         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31961         Reported by Ralf Wildenhues.
31962
31963 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31964
31965         * m4/fnmatch.m4: Fix fnmatch re-define.
31966
31967 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31968
31969         priv-set: new module and tests; adapt write-any-file
31970         * lib/priv-set.c: New file.
31971         * lib/priv-set.h: New file.
31972         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31973         * lib/write-any-file.c: Simplify by using priv-set module.
31974         * m4/priv-set.m4: New file.
31975         * modules/priv-set: New file.
31976         * modules/unlinkdir: Add dependency on priv-set module.
31977         * modules/write-any-file: Likewise.
31978
31979         Tests for module 'priv-set'.
31980         * modules/priv-set-tests: New file.
31981         * tests/test-priv-set.c: New file.
31982
31983 2009-05-03  Jim Meyering  <meyering@redhat.com>
31984             Bruno Haible  <bruno@clisp.org>
31985
31986         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31987         use the converted UTF-8 variant of the name instead.
31988
31989 2009-05-03  Jim Meyering  <meyering@redhat.com>
31990
31991         tests: tighten some getdate tests
31992         * tests/test-getdate.c (main): Tighten tests: require equality,
31993         not just greater than.  Set TZ envvar to UTC0.
31994
31995 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31996
31997         getdate: correctly interpret "next monday" when run on a Monday
31998         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31999         that e.g., "next tues" (when run on a tuesday) results in a date
32000         that is one week in the future, and not today's date.
32001         I.e., add a week when the wday is the same as the current one.
32002         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32003         and earlier by Martin Bernreuther and Jan Minář.
32004         * tests/test-getdate.c (main): Check that "next DAY" is always in
32005         the future and that "last DAY" is always in the past.
32006
32007 2009-05-02  Jim Meyering  <meyering@redhat.com>
32008
32009         build: ensure that a release build fails when a submodule is unclean
32010         * top/maint.mk (no-submodule-changes): New rule.
32011         (alpha beta major): Depend on it.
32012
32013 2009-05-02  Bruno Haible  <bruno@clisp.org>
32014
32015         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32016         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32017         shell variable gl_fnmatch_required to detect which variant is
32018         requested.
32019         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32020         gl_FUNC_FNMATCH_POSIX.
32021         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32022         exclude fnmatch-posix.
32023
32024 2009-05-02  Bruno Haible  <bruno@clisp.org>
32025
32026         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32027         * modules/mbsrtowcs (License): Change to LGPLv2+.
32028         * modules/strnlen1 (License): Likewise.
32029         Reported by Simon Josefsson.
32030
32031 2009-05-02  Bruno Haible  <bruno@clisp.org>
32032
32033         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32034         "cross".
32035         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32036         gnulib-tool was called with option --source-base=lib.
32037
32038 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32039
32040         Use automake *-local hooks without commands, for extensibility.
32041         * modules/localcharset (Makefile.am): Rename install-exec-local
32042         rule to install-exec-localcharset, and make it a prerequisite of
32043         install-exec-local.  Likewise, rename the uninstall-local rule to
32044         uninstall-localcharset, and make it a prerequisite of the former.
32045
32046 2009-05-01  Bruno Haible  <bruno@clisp.org>
32047
32048         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32049         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32050         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32052         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32053         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32054         m4/locale-zh.m4, m4/codeset.m4.
32055
32056         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32057         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32058         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32059         m4/locale-zh.m4.
32060
32061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32062         REPLACE_WCRTOMB if mbstate_t must be replaced.
32063         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32064         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32065
32066 2009-05-01  Bruno Haible  <bruno@clisp.org>
32067
32068         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32069         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32070         dngettext, dcngettext, textdomain, bindtextdomain,
32071         bind_textdomain_codeset): Undefine before redefining.
32072
32073 2009-04-30  Bruno Haible  <bruno@clisp.org>
32074
32075         Fix bug introduced on 2009-04-25.
32076         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32077         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32078         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32079         is defined.
32080         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32081         is defined.
32082         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32083         is defined.
32084         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32085
32086 2009-04-28  Bruno Haible  <bruno@clisp.org>
32087
32088         Comment tweaks.
32089         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32090         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32091         * lib/unicase.h (u*_casexfrm): Likewise.
32092         Reported by Paolo Bonzini.
32093
32094 2009-04-28  Bruno Haible  <bruno@clisp.org>
32095
32096         Fix a compilation error.
32097         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32098         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32099         Reported by Jim Meyering.
32100
32101 2009-04-27  Bruno Haible  <bruno@clisp.org>
32102
32103         New module 'libunistring'.
32104         * modules/libunistring: New file.
32105         * m4/libunistring.m4: New file.
32106         * MODULES.html.sh (Unicode string functions): Add it.
32107
32108 2009-04-27  Eric Blake  <ebb9@byu.net>
32109
32110         maint.mk: allow package-specific header to provide <config.h>
32111         * top/maint.mk (sc_require_config_h): New variable.
32112         (sc_require_config_h, sc_require_config_h_first): Use it.
32113
32114 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32115
32116         * top/maint.mk (sc_avoid_if_before_free): Except
32117         useless-if-before-free script.
32118
32119 2009-04-27  Eric Blake  <ebb9@byu.net>
32120
32121         maintainer-makefile: depend on all required helper scripts
32122         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32123         useless-if-before-free.
32124         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32125         version, rather than assuming gnulib checkout is available.
32126         Reported by Simen Josefsson.
32127
32128 2009-04-26  Bruno Haible  <bruno@clisp.org>
32129
32130         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32131         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32132         "../" or "..".
32133
32134 2009-04-26  Bruno Haible  <bruno@clisp.org>
32135
32136         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32137         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32138         AC_LIB_HAVE_LINKFLAGS.
32139
32140 2009-04-26  Bruno Haible  <bruno@clisp.org>
32141
32142         Simplify calling convention of u*_conv_from_encoding.
32143         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32144         u32_conv_from_encoding): Expect a resultbuf argument and return the
32145         result directly as a pointer.
32146         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32147         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32148         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32149         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32150         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32151         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32152         Update.
32153         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32154         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32155         * lib/vasnprintf.c (VASNPRINTF): Update.
32156         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32157         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32158         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32159         * NEWS: Mention the change.
32160
32161 2009-04-26  Bruno Haible  <bruno@clisp.org>
32162
32163         Simplify calling convention of u*_conv_to_encoding.
32164         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32165         u32_conv_to_encoding): Expect a resultbuf argument and return the
32166         result directly as a pointer.
32167         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32168         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32169         freeing scaled_offsets if mem_iconveha failed.
32170         * lib/unicase/u-casexfrm.h (FUNC): Update.
32171         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32172         * lib/vasnprintf.c (VASNPRINTF): Update.
32173         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32174         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32175         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32176         * NEWS: Mention the change.
32177
32178 2009-04-26  Bruno Haible  <bruno@clisp.org>
32179
32180         Avoid test failures on AIX and OSF/1.
32181         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32182         malloc(0).
32183         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32184         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32185         Likewise.
32186         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32187         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32188         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32189         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32190         * doc/posix-functions/malloc.texi: Document the portability problem
32191         related to malloc(0).
32192
32193 2009-04-26  Bruno Haible  <bruno@clisp.org>
32194
32195         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32196         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32197         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32198
32199 2009-04-25  Bruno Haible  <bruno@clisp.org>
32200
32201         Avoid link error when creating a namespace clean library.
32202         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32203         as macro with arguments if already defined as an alias.
32204         * lib/signbitf.c (gl_signbitf): Don't undefine.
32205         * lib/signbitd.c (gl_signbitd): Don't undefine.
32206         * lib/signbitl.c (gl_signbitl): Don't undefine.
32207
32208 2009-04-25  Jim Meyering  <meyering@redhat.com>
32209
32210         vc-list-files: fix another quoting bug
32211         * build-aux/vc-list-files: Avoid sed backslash expansion
32212         of pathological directory names.
32213
32214 2009-04-25  Eric Blake  <ebb9@byu.net>
32215
32216         vc-list-files: fix shell quoting error
32217         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32218         timestamp.
32219
32220 2009-04-25  Jim Meyering  <meyering@redhat.com>
32221
32222         vc-list-files: restore lost functionality with subdir argument
32223         * build-aux/vc-list-files: When given a non-"." sub-directory
32224         argument, substitute the $dir/ prefix back onto each resulting name.
32225         Otherwise, coreutils' root_tests check would fail.
32226
32227 2009-04-24  Eric Blake  <ebb9@byu.net>
32228
32229         vc-list-files: ignore git symlinks
32230         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32231         than ls-files, to ignore git symlinks.
32232
32233         maint.mk: import improvements from m4
32234         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32235         (move_if_change): Delete unused macro.
32236         (news-date-check, vc-diff-check): Support VPATH builds.
32237         (announcement): Likewise.  Split --bootstrap-tools list...
32238         (boostrap-tools): ...into separate list, which can be overridden
32239         in cfg.mk.
32240         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32241         requiring dependency on useless-if-before-free module.
32242         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32243         Support VPATH builds.
32244
32245 2009-04-24  Jim Meyering  <meyering@redhat.com>
32246
32247         maint.mk: remove coreutils-specific rules and variables
32248         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32249         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32250         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32251
32252         maint.mk: remove obsolete rule
32253         * top/maint.mk (rel-check): Remove rule.
32254         (WGET, WGETFLAGS): Remove now-unused variables.
32255
32256 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32257
32258         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32259         consistency.
32260
32261         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32262         '$(PATH_SEPARATOR)' instead of ':'.
32263
32264 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32265
32266         * lib/getopt1.c (main): Use 'const' for static array.
32267
32268 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32269
32270         * top/maint.mk: Sync with coreutils.
32271         * NEWS: Explain incompatibilities.
32272
32273 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32274             Bruno Haible  <bruno@clisp.org>
32275
32276         Fix cross-compilation results.
32277         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32278         statement, as third argument of AC_TRY_RUN.
32279         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32280         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32281         Likewise.
32282         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32283         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32284         Likewise.
32285         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32286         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32287         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32288
32289 2009-04-20  Bruno Haible  <bruno@clisp.org>
32290
32291         Avoid test failure on mingw.
32292         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32293
32294 2009-04-20  Bruno Haible  <bruno@clisp.org>
32295
32296         Avoid compilation error on mingw.
32297         * modules/localename-tests (Depends-on): Add locale.
32298
32299 2009-04-19  Bruno Haible  <bruno@clisp.org>
32300
32301         Support for building a shared library on Windows platforms.
32302         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32303         (main): Test the presence of UNINORM_NFC here.
32304         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32305         (main): Test the presence of UNINORM_NFD here.
32306         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32307         (main): Test the presence of UNINORM_NFKC here.
32308         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32309         (main): Test the presence of UNINORM_NFKD here.
32310
32311 2009-04-19  Bruno Haible  <bruno@clisp.org>
32312
32313         Avoid a compiler warning.
32314         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32315         Change type of variable 'sequence'.
32316
32317 2009-04-19  Bruno Haible  <bruno@clisp.org>
32318
32319         * modules/configmake (Makefile.am): When the contents of configmake.h
32320         does not change, arrange to preserve its modification time.
32321
32322 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32323
32324         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32325         gettext domain.
32326
32327 2009-04-16  Jim Meyering  <meyering@redhat.com>
32328
32329         useless-if-before-free: improve conversion code
32330         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32331         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32332
32333 2009-04-14  Bruno Haible  <bruno@clisp.org>
32334
32335         * modules/fcntl (Depends-on): Add extensions.
32336         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32337
32338 2009-04-12  Ben Pfaff  <blp@gnu.org>
32339
32340         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32341         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32342
32343 2009-03-20  Ben Pfaff  <blp@gnu.org>
32344
32345         Make rename replace existing destinations on Windows.
32346         * m4/rename.m4: Add test for Mingw.
32347         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32348         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32349         * doc/posix-functions/rename.texi: Document.
32350
32351 2009-04-10  Bruno Haible  <bruno@clisp.org>
32352
32353         New include file "iconveh.h".
32354         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32355         * lib/striconveh.h: Include it.
32356         (enum iconv_ilseq_handler): Remove definition.
32357         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32358         striconveh.h.
32359         * lib/striconveha.c: Include striconveh.h.
32360         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32361         * modules/striconveh (Files): Add lib/iconveh.h.
32362         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32363         lib/striconveh.h.
32364
32365 2009-04-10  Bruno Haible  <bruno@clisp.org>
32366
32367         * lib/uniconv.h: Update comment.
32368
32369 2009-04-10  Bruno Haible  <bruno@clisp.org>
32370
32371         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32372         always.
32373         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32374         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32375         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32376         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32377         "unistring-notinline.h", so that the function gets defined always.
32378         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32379         * lib/unistr/u8-uctomb.c: Likewise.
32380         * lib/unistr/u16-mbtouc.c: Likewise.
32381         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32382         * lib/unistr/u16-uctomb.c: Likewise.
32383         * lib/unistr/u32-mbtouc.c: Likewise.
32384         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32385         * lib/unistr/u32-uctomb.c: Likewise.
32386
32387 2009-04-10  Bruno Haible  <bruno@clisp.org>
32388
32389         Mark 'utime' obsolete.
32390         * modules/utime (Status, Notice): New sections.
32391         Suggested by Jim Meyering.
32392
32393         Fix cross-compile guess for utime test.
32394         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32395         autoconf.
32396         * doc/posix-functions/utime.texi: Give more precisions.
32397         Reported by Jan <ipif@ymail.com>.
32398
32399 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32400
32401         filevercmp: correct today's change
32402         * lib/filevercmp.c: Also handle coreutils' test inputs.
32403         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32404
32405         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32406         for reporting it.
32407         * lib/filevercmp.c: Special handle for "", "." and "..".
32408         * tests/test-filevercmp.c: Enlarge the set suite.
32409
32410 2009-04-07  Jim Meyering  <meyering@redhat.com>
32411
32412         useless-if-before-free: show how to remove braced useless free, too
32413         * build-aux/useless-if-before-free: still only in a comment, though.
32414
32415 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32416
32417         maint.mk: import changes to syntax-check macros from coreutils
32418         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32419         Use them in the relevant macros.
32420
32421 2009-04-06  Bruno Haible  <bruno@clisp.org>
32422
32423         Fix unportable use of bit-fields.
32424         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32425         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32426         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32427
32428 2009-04-06  Bruno Haible  <bruno@clisp.org>
32429
32430         Avoid test failures on AIX and OSF/1.
32431         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32432         that malloc(0) = NULL.
32433         * tests/unicase/test-u8-tolower.c (check): Likewise.
32434         * tests/unicase/test-u8-totitle.c (check): Likewise.
32435         * tests/unicase/test-u8-toupper.c (check): Likewise.
32436         * tests/unicase/test-u16-casefold.c (check): Likewise.
32437         * tests/unicase/test-u16-tolower.c (check): Likewise.
32438         * tests/unicase/test-u16-totitle.c (check): Likewise.
32439         * tests/unicase/test-u16-toupper.c (check): Likewise.
32440         * tests/unicase/test-u32-casefold.c (check): Likewise.
32441         * tests/unicase/test-u32-tolower.c (check): Likewise.
32442         * tests/unicase/test-u32-totitle.c (check): Likewise.
32443         * tests/unicase/test-u32-toupper.c (check): Likewise.
32444         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32445         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32446         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32447         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32448         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32449         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32450         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32451         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32452         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32453         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32454         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32455         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32456
32457 2009-04-05  Bruno Haible  <bruno@clisp.org>
32458
32459         Work around an autoconf limitation.
32460         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32461         comment line if it would be longer than 3 KB.
32462
32463 2009-04-05  Bruno Haible  <bruno@clisp.org>
32464
32465         Avoid test failure with libiconv-1.13.
32466         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32467         of the expected test results.
32468
32469 2009-04-05  Bruno Haible  <bruno@clisp.org>
32470
32471         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32472         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32473         that it should be installed.
32474
32475 2009-04-05  Bruno Haible  <bruno@clisp.org>
32476
32477         * gnulib-tool: New option --copy-file.
32478         (func_usage): Document it.
32479         (func_dest_tmpfilename): Moved out of func_import.
32480         (func_add_file, func_update_file): New functions, extracted from
32481         func_import.
32482         (func_import): Update.
32483
32484 2009-04-05  Karl Berry  <karl@gnu.org>
32485
32486         * README: prominently mention gnulib-tool.
32487         Rearrange sections so getting the code is near the top.
32488
32489 2009-04-05  Bruno Haible  <bruno@clisp.org>
32490
32491         * lib/unicase.h: Mention u*_cmp2.
32492         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32493         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32494         * lib/unicase/ulc-casecmp.c: Likewise.
32495         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32496         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32497         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32498         unistr/u8-cmp.
32499         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32500         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32501         unistr/u16-cmp.
32502         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32503         unistr/u32-cmp.
32504
32505         * lib/uninorm.h: Mention u*_cmp2.
32506         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32507         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32508         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32509         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32510         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32511         unistr/u8-cmp.
32512         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32513         unistr/u16-cmp.
32514         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32515         unistr/u32-cmp.
32516
32517         New module 'unistr/u32-cmp2'.
32518         * lib/unistr/u32-cmp2.c: New file.
32519         * modules/unistr/u32-cmp2: New file.
32520
32521         New module 'unistr/u16-cmp2'.
32522         * lib/unistr/u16-cmp2.c: New file.
32523         * modules/unistr/u16-cmp2: New file.
32524
32525         New module 'unistr/u8-cmp2'.
32526         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32527         * lib/unistr/u8-cmp2.c: New file.
32528         * lib/unistr/u-cmp2.h: New file.
32529         * modules/unistr/u8-cmp2: New file.
32530
32531 2009-04-05  Bruno Haible  <bruno@clisp.org>
32532
32533         * lib/unictype.h (uc_property_is_valid): New macro.
32534         * tests/unictype/test-pr_byname.c (main): Use it.
32535
32536         * lib/unistr.h: Doc fixes.
32537         * lib/uniconv.h: Doc fixes.
32538         * lib/unictype.h: Doc fixes.
32539
32540 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32541
32542         Port coreutils 7.2 to Solaris 8.
32543
32544         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32545         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32546         for Solaris 8.  This is a bit of a hack, as it means it's the
32547         caller's responsibility to add -lnsl if needed, but most likely it
32548         won't be needed since only getaddrinfo uses this and getaddrinfo
32549         isn't needed on Solaris 8.
32550
32551         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32552         problem to Solaris 8 encountered with coreutils 7.2, which
32553         resulted in a message "fnmatch.c:292: warning: passing argument 4
32554         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32555         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32556
32557 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32558
32559         * m4/ld-version-script.m4: Add FIXME comment.
32560
32561 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32562
32563         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32564         SOVERSION variable.
32565
32566 2009-04-02  Bruno Haible  <bruno@clisp.org>
32567
32568         * Makefile (info, html, dvi, pdf): Combine the rules.
32569         Suggested by Jim Meyering.
32570
32571 2009-04-01  Bruno Haible  <bruno@clisp.org>
32572
32573         * Makefile (info, html, dvi, pdf): New targets.
32574         Reported by Reuben Thomas <rrt@sc3d.org>.
32575
32576 2009-04-01  Bruno Haible  <bruno@clisp.org>
32577
32578         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32579         can be put into PATH.
32580         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32581
32582 2009-04-01  Bruno Haible  <bruno@clisp.org>
32583
32584         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32585
32586 2009-04-01  Bruno Haible  <bruno@clisp.org>
32587
32588         Rename module 'visibility'.
32589         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32590         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32591         * doc/gnulib.texi: Update.
32592         * MODULES.html.sh (Misc): Update.
32593         * NEWS: Mention the change.
32594
32595 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32596
32597         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32598         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32599         Eric Blake <ebb9@byu.net> for review.
32600         * MODULES.html.sh: Add lib-msvc-compat.
32601         * doc/gnulib.texi: Link to new section.
32602         * m4/ld-output-def.m4: New file.
32603         * doc/ld-output-def.texi: New file.
32604
32605 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32606
32607         Rename ld-version-script to lib-symbol-versions.  Suggested by
32608         Bruno Haible <bruno@clisp.org>.
32609         * modules/ld-version-script: Renamed to lib-symbol-versions.
32610         * doc/ld-version-script.texi: Fix module name.
32611         * MODULES.html.sh: Add lib-symbol-versions.
32612
32613 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32614
32615         * modules/u64-tests: New file.
32616         * tests/test-u64.c: New file.
32617
32618 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32619
32620         * MODULES.html.sh: Mention u64.
32621         * modules/u64: New module.
32622         * modules/crypto/sha512: Depend on u64 module instead of providing
32623         u64.h.
32624
32625 2009-03-27  Eric Blake  <ebb9@byu.net>
32626
32627         test-strerror: make debugging EAI_SYSTEM easier
32628         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32629         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32630         failure was EAI_SYSTEM.
32631
32632 2009-03-25  Bruno Haible  <bruno@clisp.org>
32633
32634         Fix a problem with --enable-relocatable on Solaris 7.
32635         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32636         since 2008-02-24.
32637
32638 2009-03-25  Eric Blake  <ebb9@byu.net>
32639
32640         test-sockets: avoid gcc warning
32641         * tests/test-sockets.c (main): Silence compiler warning.
32642
32643 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32644
32645         New modules nproc, pthread, contributed by Glen Lenker.
32646
32647         * MODULES.html.sh: Add pthread, nproc.
32648         * lib/nproc.c: New file.
32649         * lib/nproc.h: New file.
32650         * lib/pthread.in.h: New file.
32651         * m4/pthread.m4: New file.
32652         * modules/nproc: New file.
32653         * modules/pthread: New file.
32654
32655 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32656
32657         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32658         New variable.
32659
32660 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32661
32662         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32663         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32664         * tests/test-filevercmp.c: Add tests for backup suffixes.
32665
32666 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32667
32668         * modules/stdlib (Depends-on): Add stdint, needed when defining
32669         struct random_data on, for example, HP-UX 10.20.  Reported by
32670         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32671
32672 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32673
32674         * lib/readline.c (readline): Call fflush on stdout after printing
32675         prompt.
32676
32677 2009-03-20  Bruno Haible  <bruno@clisp.org>
32678
32679         Remove dependency from 'close' module to -lws2_32 on native Windows.
32680         * lib/close-hook.h: New file.
32681         * lib/close-hook.c: New file.
32682         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32683         w32sock.h.
32684         (_gl_close_fd_maybe_socket): Remove function.
32685         (rpl_close): Invoke execute_all_close_hooks instead of
32686         _gl_close_fd_maybe_socket.
32687         * lib/sockets.c: Include close-hook.h, w32sock.h.
32688         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32689         (close_sockets_hook): New variable.
32690         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32691         (gl_sockets_cleanup): Unregister it.
32692         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32693         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32694         * modules/close-hook: New file.
32695         * modules/close (Files): Remove lib/w32sock.h.
32696         (Depends-on): Add close-hook.
32697         (Link): Remove section.
32698         * modules/sockets (Files): Add lib/w32sock.h.
32699         (Depends-on): Add close-hook.
32700         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32701         invocation.
32702         * NEWS: Mention that LIB_CLOSE is gone.
32703
32704 2009-03-23  Eric Blake  <ebb9@byu.net>
32705
32706         signal-tests: test previous patch
32707         * tests/test-signal.c: New file.
32708         * modules/signal-tests: Likewise.
32709
32710         signal.h: always support 'volatile sig_atomic_t'
32711         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32712         (gl_SIGNAL_H_DEFAULTS): Add a default.
32713         * modules/signal (Makefile.am): Substitute if needed.
32714         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32715         users can blindly add volatile.
32716         * doc/posix-headers/signal.texi (signal.h): Document it.
32717         Reported by Matthew Woehlke.
32718
32719 2009-03-23  Jim Meyering  <meyering@redhat.com>
32720
32721         pathmax: PATH_MAX: use pathconf only when available
32722         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32723         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32724         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32725         This avoids a link failure in a PSP cross-compilation environment
32726         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32727
32728         * lib/vasnprintf.c (divide): Fix typo in comment.
32729
32730 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32731
32732         * gnulib-tool (func_filter_filelist): Fix comment.
32733
32734 2009-03-20  Bruno Haible  <bruno@clisp.org>
32735
32736         Make sockets.h self-contained.
32737         * lib/sockets.c: Include sockets.h first.
32738         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32739
32740 2009-03-19  Eric Blake  <ebb9@byu.net>
32741
32742         doc: mention more functions added in cygwin 1.7.0
32743         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32744         addition.
32745         * doc/posix-functions/log2f.texi: Likewise.
32746
32747 2009-03-19  Jim Meyering  <meyering@redhat.com>
32748
32749         fsusage: avoid syntax error due to statement-before-declaration
32750         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32751         after all declarations.  Reported by Matthew Woehlke in
32752         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32753
32754 2009-03-18  Eric Blake  <ebb9@byu.net>
32755
32756         build-aux/compile: sync from automake
32757         * build-aux/compile: New file, from automake.
32758         * config/srclist.txt: Mention build-aux/compile.
32759
32760 2009-03-17  Bruno Haible  <bruno@clisp.org>
32761
32762         * lib/git-merge-changelog.c: Fix typo in comment.
32763         Reported by Reuben Thomas <rrt@sc3d.org>.
32764
32765 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32766
32767         * m4/regex.m4: update and improve help for
32768         --without-included-regex.
32769
32770 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32771
32772         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32773         failure on missing include files.
32774
32775 2009-03-17  Eric Blake  <ebb9@byu.net>
32776
32777         doc: mention more functions added in cygwin 1.7.0
32778         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32779         addition.
32780         * doc/posix-functions/fwscanf.texi: Likewise.
32781         * doc/posix-functions/swprintf.texi: Likewise.
32782         * doc/posix-functions/swscanf.texi: Likewise.
32783         * doc/posix-functions/vfwprintf.texi: Likewise.
32784         * doc/posix-functions/vfwscanf.texi: Likewise.
32785         * doc/posix-functions/vswprintf.texi: Likewise.
32786         * doc/posix-functions/vswscanf.texi: Likewise.
32787         * doc/posix-functions/vwprintf.texi: Likewise.
32788         * doc/posix-functions/vwscanf.texi: Likewise.
32789         * doc/posix-functions/wcscasecmp.texi: Likewise.
32790         * doc/posix-functions/wcsdup.texi: Likewise.
32791         * doc/posix-functions/wcsftime.texi: Likewise.
32792         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32793         * doc/posix-functions/wprintf.texi: Likewise.
32794         * doc/posix-functions/wscanf.texi: Likewise.
32795         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32796
32797 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32798
32799         maint.mk: really add $(AM_MAKEFLAGS)
32800         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32801         was inadvertently omitted in the last commit.
32802         Spotted by Bruno Haible.
32803
32804         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32805         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32806         $(AM_MAKEFLAGS)' rather than plain `make'.
32807
32808         gnulib-tool: execute $MAKE not make
32809         * gnulib-tool: Default $MAKE to 'make'.
32810         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32811         than make.  Initialize $MAKE in the do-autobuild script.
32812
32813         gnulib-tool: use $MAKE not make in generated files
32814         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32815         make, in generated files.  Initialize $MAKE in the do-autobuild
32816         script.
32817
32818         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32819
32820         GNUmakefile: disable parallelism only for multiple, recursive targets
32821         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32822         additions in the Makefile.
32823         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32824         by Automake.
32825         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32826         are listed on the command line and at least one of them is
32827         listed in $(ALL_RECURSIVE_TARGETS).
32828
32829 2009-03-14  Bruno Haible  <bruno@clisp.org>
32830
32831         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32832         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32833         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32834         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32835         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32836         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32837         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32838         unistr/u8-uctomb.
32839         * modules/unistr/u8-strchr (Depends-on): Likewise.
32840         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32841         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32842         unistr/u16-uctomb.
32843         * modules/unistr/u16-strchr (Depends-on): Likewise.
32844         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32845
32846 2009-03-12  Bruno Haible  <bruno@clisp.org>
32847
32848         Work around select() bug on Interix 3.5.
32849         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32850         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32851         * m4/select.m4: New file.
32852         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32853         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32854         * modules/select (Files): Add m4/select.m4.
32855         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32856         * modules/nanosleep (Depends-on): Add select.
32857         * modules/poll (Depends-on): Likewise.
32858         * doc/posix-functions/select.texi: Mention the Interix bug.
32859         Reported by Markus Duft <mduft@gentoo.org>.
32860
32861         * lib/select.c: Renamed from lib/winsock-select.c.
32862         * modules/select (Files): Add lib/select.c, remove
32863         lib/winsock-select.c.
32864         (configure.ac): Update.
32865
32866 2009-03-12  Jim Meyering  <meyering@redhat.com>
32867
32868         avoid gcc warnings about unused macro definitions
32869         * lib/readtokens.c (STREQ): Remove unused definition.
32870         * lib/xmalloc.c (SIZE_MAX): Likewise.
32871         * lib/openat-die.c (N_): Likewise.
32872         * lib/mountlist.c (SIZE_MAX): Remove definition.
32873         Instead, include <stdint.h>.
32874         * lib/readutmp.c: Likewise.
32875         * modules/readutmp (Depends-on): Add stdint.
32876         * modules/mountlist (Depends-on): Add stdint.
32877         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32878
32879 2009-03-10  Bruno Haible  <bruno@clisp.org>
32880
32881         Tests for module 'mbmemcasecoll'.
32882         * modules/mbmemcasecoll-tests: New file.
32883         * tests/test-mbmemcasecoll1.sh: New file.
32884         * tests/test-mbmemcasecoll2.sh: New file.
32885         * tests/test-mbmemcasecoll3.sh: New file.
32886         * tests/test-mbmemcasecoll.c: New file.
32887
32888         New module 'mbmemcasecoll'.
32889         * lib/mbmemcasecoll.h: New file.
32890         * lib/mbmemcasecoll.c: New file.
32891         * modules/mbmemcasecoll: New file.
32892
32893         * tests/test-mbmemcasecmp.h: New file, extracted from
32894         tests/test-mbmemcasecmp.c.
32895         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32896         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32897         (main): Update.
32898         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32899
32900 2009-03-09  Bruno Haible  <bruno@clisp.org>
32901
32902         Tests for module 'mbmemcasecmp'.
32903         * modules/mbmemcasecmp-tests: New file.
32904         * tests/test-mbmemcasecmp1.sh: New file.
32905         * tests/test-mbmemcasecmp2.sh: New file.
32906         * tests/test-mbmemcasecmp3.sh: New file.
32907         * tests/test-mbmemcasecmp.c: New file.
32908
32909         New module 'mbmemcasecmp'.
32910         * lib/mbmemcasecmp.h: New file.
32911         * lib/mbmemcasecmp.c: New file.
32912         * modules/mbmemcasecmp: New file.
32913
32914 2009-03-09  Bruno Haible  <bruno@clisp.org>
32915
32916         Tests for module 'unicase/ulc-casecoll'.
32917         * modules/unicase/ulc-casecoll-tests: New file.
32918         * tests/unicase/test-ulc-casecoll1.sh: New file.
32919         * tests/unicase/test-ulc-casecoll2.sh: New file.
32920         * tests/unicase/test-ulc-casecoll.c: New file.
32921
32922         New module 'unicase/ulc-casecoll'.
32923         * lib/unicase.h (ulc_casecoll): New declaration.
32924         * lib/unicase/ulc-casecoll.c: New file.
32925         * modules/unicase/ulc-casecoll: New file.
32926
32927         New module 'unicase/ulc-casexfrm'.
32928         * lib/unicase.h (ulc_casexfrm): New declaration.
32929         * lib/unicase/ulc-casexfrm.c: New file.
32930         * modules/unicase/ulc-casexfrm: New file.
32931
32932 2009-03-09  Bruno Haible  <bruno@clisp.org>
32933
32934         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32935         invocations.
32936
32937         * m4/mbscasecmp.m4: Remove file.
32938         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32939         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32940
32941         * m4/mbscasestr.m4: Remove file.
32942         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32943         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32944
32945         * m4/mbschr.m4: Remove file.
32946         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32947         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32948
32949         * m4/mbscspn.m4: Remove file.
32950         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32951         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32952
32953         * m4/mbslen.m4: Remove file.
32954         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32955         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32956
32957         * m4/mbsncasecmp.m4: Remove file.
32958         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32959         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32960
32961         * m4/mbsnlen.m4: Remove file.
32962         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32963         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32964
32965         * m4/mbspbrk.m4: Remove file.
32966         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32967         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32968
32969         * m4/mbspcasecmp.m4: Remove file.
32970         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32971         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32972
32973         * m4/mbsrchr.m4: Remove file.
32974         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32975         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32976
32977         * m4/mbssep.m4: Remove file.
32978         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32979         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32980
32981         * m4/mbsspn.m4: Remove file.
32982         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32983         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32984
32985         * m4/mbsstr.m4: Remove file.
32986         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32987         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32988
32989         * m4/mbstok_r.m4: Remove file.
32990         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32991         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32992
32993         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32994
32995         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32996         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32997
32998         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32999
33000 2009-03-08  Bruno Haible  <bruno@clisp.org>
33001
33002         Tests for module 'unicase/ulc-casecmp'.
33003         * modules/unicase/ulc-casecmp-tests: New file.
33004         * tests/unicase/test-ulc-casecmp1.sh: New file.
33005         * tests/unicase/test-ulc-casecmp2.sh: New file.
33006         * tests/unicase/test-ulc-casecmp.c: New file.
33007
33008         New module 'unicase/ulc-casecmp'.
33009         * lib/unicase.h (ulc_casecmp): New declaration.
33010         * lib/unicase/ulc-casecmp.c: New file.
33011         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33012         'const SRC_UNIT *'.
33013         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33014         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33015         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33016         * modules/unicase/ulc-casecmp: New file.
33017
33018         Tests for module 'unicase/u32-is-cased'.
33019         * modules/unicase/u32-is-cased-tests: New file.
33020         * tests/unicase/test-u32-is-cased.c: New file.
33021
33022         Tests for module 'unicase/u16-is-cased'.
33023         * modules/unicase/u16-is-cased-tests: New file.
33024         * tests/unicase/test-u16-is-cased.c: New file.
33025
33026         Tests for module 'unicase/u8-is-cased'.
33027         * modules/unicase/u8-is-cased-tests: New file.
33028         * tests/unicase/test-u8-is-cased.c: New file.
33029         * tests/unicase/test-is-cased.h: New file.
33030
33031         New module 'unicase/u32-is-cased'.
33032         * lib/unicase/u32-is-cased.c: New file.
33033         * modules/unicase/u32-is-cased: New file.
33034
33035         New module 'unicase/u16-is-cased'.
33036         * lib/unicase/u16-is-cased.c: New file.
33037         * modules/unicase/u16-is-cased: New file.
33038
33039         New module 'unicase/u8-is-cased'.
33040         * lib/unicase/u8-is-cased.c: New file.
33041         * lib/unicase/u-is-cased.h: New file.
33042         * modules/unicase/u8-is-cased: New file.
33043
33044         Tests for module 'unicase/u32-is-casefolded'.
33045         * modules/unicase/u32-is-casefolded-tests: New file.
33046         * tests/unicase/test-u32-is-casefolded.c: New file.
33047
33048         Tests for module 'unicase/u16-is-casefolded'.
33049         * modules/unicase/u16-is-casefolded-tests: New file.
33050         * tests/unicase/test-u16-is-casefolded.c: New file.
33051
33052         Tests for module 'unicase/u8-is-casefolded'.
33053         * modules/unicase/u8-is-casefolded-tests: New file.
33054         * tests/unicase/test-u8-is-casefolded.c: New file.
33055         * tests/unicase/test-is-casefolded.h: New file.
33056
33057         New module 'unicase/u32-is-casefolded'.
33058         * lib/unicase/u32-is-casefolded.c: New file.
33059         * modules/unicase/u32-is-casefolded: New file.
33060
33061         New module 'unicase/u16-is-casefolded'.
33062         * lib/unicase/u16-is-casefolded.c: New file.
33063         * modules/unicase/u16-is-casefolded: New file.
33064
33065         New module 'unicase/u8-is-casefolded'.
33066         * lib/unicase/u8-is-casefolded.c: New file.
33067         * modules/unicase/u8-is-casefolded: New file.
33068
33069         Tests for module 'unicase/u32-is-titlecase'.
33070         * modules/unicase/u32-is-titlecase-tests: New file.
33071         * tests/unicase/test-u32-is-titlecase.c: New file.
33072
33073         Tests for module 'unicase/u16-is-titlecase'.
33074         * modules/unicase/u16-is-titlecase-tests: New file.
33075         * tests/unicase/test-u16-is-titlecase.c: New file.
33076
33077         Tests for module 'unicase/u8-is-titlecase'.
33078         * modules/unicase/u8-is-titlecase-tests: New file.
33079         * tests/unicase/test-u8-is-titlecase.c: New file.
33080         * tests/unicase/test-is-titlecase.h: New file.
33081
33082         New module 'unicase/u32-is-titlecase'.
33083         * lib/unicase/u32-is-titlecase.c: New file.
33084         * modules/unicase/u32-is-titlecase: New file.
33085
33086         New module 'unicase/u16-is-titlecase'.
33087         * lib/unicase/u16-is-titlecase.c: New file.
33088         * modules/unicase/u16-is-titlecase: New file.
33089
33090         New module 'unicase/u8-is-titlecase'.
33091         * lib/unicase/u8-is-titlecase.c: New file.
33092         * modules/unicase/u8-is-titlecase: New file.
33093
33094         Tests for module 'unicase/u32-is-lowercase'.
33095         * modules/unicase/u32-is-lowercase-tests: New file.
33096         * tests/unicase/test-u32-is-lowercase.c: New file.
33097
33098         Tests for module 'unicase/u16-is-lowercase'.
33099         * modules/unicase/u16-is-lowercase-tests: New file.
33100         * tests/unicase/test-u16-is-lowercase.c: New file.
33101
33102         Tests for module 'unicase/u8-is-lowercase'.
33103         * modules/unicase/u8-is-lowercase-tests: New file.
33104         * tests/unicase/test-u8-is-lowercase.c: New file.
33105         * tests/unicase/test-is-lowercase.h: New file.
33106
33107         New module 'unicase/u32-is-lowercase'.
33108         * lib/unicase/u32-is-lowercase.c: New file.
33109         * modules/unicase/u32-is-lowercase: New file.
33110
33111         New module 'unicase/u16-is-lowercase'.
33112         * lib/unicase/u16-is-lowercase.c: New file.
33113         * modules/unicase/u16-is-lowercase: New file.
33114
33115         New module 'unicase/u8-is-lowercase'.
33116         * lib/unicase/u8-is-lowercase.c: New file.
33117         * modules/unicase/u8-is-lowercase: New file.
33118
33119         Tests for module 'unicase/u32-is-uppercase'.
33120         * modules/unicase/u32-is-uppercase-tests: New file.
33121         * tests/unicase/test-u32-is-uppercase.c: New file.
33122
33123         Tests for module 'unicase/u16-is-uppercase'.
33124         * modules/unicase/u16-is-uppercase-tests: New file.
33125         * tests/unicase/test-u16-is-uppercase.c: New file.
33126
33127         Tests for module 'unicase/u8-is-uppercase'.
33128         * modules/unicase/u8-is-uppercase-tests: New file.
33129         * tests/unicase/test-u8-is-uppercase.c: New file.
33130         * tests/unicase/test-is-uppercase.h: New file.
33131
33132         New module 'unicase/u32-is-uppercase'.
33133         * lib/unicase/u32-is-uppercase.c: New file.
33134         * modules/unicase/u32-is-uppercase: New file.
33135
33136         New module 'unicase/u16-is-uppercase'.
33137         * lib/unicase/u16-is-uppercase.c: New file.
33138         * modules/unicase/u16-is-uppercase: New file.
33139
33140         New module 'unicase/u8-is-uppercase'.
33141         * lib/unicase/u8-is-uppercase.c: New file.
33142         * modules/unicase/u8-is-uppercase: New file.
33143
33144         New module 'unicase/u32-is-invariant'.
33145         * lib/unicase/u32-is-invariant.c: New file.
33146         * modules/unicase/u32-is-invariant: New file.
33147
33148         New module 'unicase/u16-is-invariant'.
33149         * lib/unicase/u16-is-invariant.c: New file.
33150         * modules/unicase/u16-is-invariant: New file.
33151
33152         New module 'unicase/u8-is-invariant'.
33153         * lib/unicase/u8-is-invariant.c: New file.
33154         * lib/unicase/invariant.h: New file.
33155         * lib/unicase/u-is-invariant.h: New file.
33156         * modules/unicase/u8-is-invariant: New file.
33157
33158         Tests for module 'unicase/u32-casecoll'.
33159         * modules/unicase/u32-casecoll-tests: New file.
33160         * tests/unicase/test-u32-casecoll.c: New file.
33161
33162         Tests for module 'unicase/u16-casecoll'.
33163         * modules/unicase/u16-casecoll-tests: New file.
33164         * tests/unicase/test-u16-casecoll.c: New file.
33165
33166         Tests for module 'unicase/u8-casecoll'.
33167         * modules/unicase/u8-casecoll-tests: New file.
33168         * tests/unicase/test-u8-casecoll.c: New file.
33169
33170         New module 'unicase/u32-casecoll'.
33171         * lib/unicase/u32-casecoll.c: New file.
33172         * modules/unicase/u32-casecoll: New file.
33173
33174         New module 'unicase/u16-casecoll'.
33175         * lib/unicase/u16-casecoll.c: New file.
33176         * modules/unicase/u16-casecoll: New file.
33177
33178         New module 'unicase/u8-casecoll'.
33179         * lib/unicase/u8-casecoll.c: New file.
33180         * lib/unicase/u-casecoll.h: New file.
33181         * modules/unicase/u8-casecoll: New file.
33182
33183         New module 'unicase/u32-casexfrm'.
33184         * lib/unicase/u32-casexfrm.c: New file.
33185         * modules/unicase/u32-casexfrm: New file.
33186
33187         New module 'unicase/u16-casexfrm'.
33188         * lib/unicase/u16-casexfrm.c: New file.
33189         * modules/unicase/u16-casexfrm: New file.
33190
33191         New module 'unicase/u8-casexfrm'.
33192         * lib/unicase/u8-casexfrm.c: New file.
33193         * lib/unicase/u-casexfrm.h: New file.
33194         * modules/unicase/u8-casexfrm: New file.
33195
33196         Tests for module 'unicase/u32-casecmp'.
33197         * modules/unicase/u32-casecmp-tests: New file.
33198         * tests/unicase/test-u32-casecmp.c: New file.
33199
33200         Tests for module 'unicase/u16-casecmp'.
33201         * modules/unicase/u16-casecmp-tests: New file.
33202         * tests/unicase/test-u16-casecmp.c: New file.
33203
33204         Tests for module 'unicase/u8-casecmp'.
33205         * modules/unicase/u8-casecmp-tests: New file.
33206         * tests/unicase/test-u8-casecmp.c: New file.
33207         * tests/unicase/test-casecmp.h: New file.
33208
33209         New module 'unicase/u32-casecmp'.
33210         * lib/unicase/u32-casecmp.c: New file.
33211         * modules/unicase/u32-casecmp: New file.
33212
33213         New module 'unicase/u16-casecmp'.
33214         * lib/unicase/u16-casecmp.c: New file.
33215         * modules/unicase/u16-casecmp: New file.
33216
33217         New module 'unicase/u8-casecmp'.
33218         * lib/unicase/u8-casecmp.c: New file.
33219         * lib/unicase/u-casecmp.h: New file.
33220         * modules/unicase/u8-casecmp: New file.
33221
33222         Tests for module 'unicase/u32-casefold'.
33223         * modules/unicase/u32-casefold-tests: New file.
33224         * tests/unicase/test-u32-casefold.c: New file.
33225
33226         Tests for module 'unicase/u16-casefold'.
33227         * modules/unicase/u16-casefold-tests: New file.
33228         * tests/unicase/test-u16-casefold.c: New file.
33229
33230         Tests for module 'unicase/u8-casefold'.
33231         * modules/unicase/u8-casefold-tests: New file.
33232         * tests/unicase/test-u8-casefold.c: New file.
33233
33234         New module 'unicase/u32-casefold'.
33235         * lib/unicase/u32-casefold.c: New file.
33236         * modules/unicase/u32-casefold: New file.
33237
33238         New module 'unicase/u16-casefold'.
33239         * lib/unicase/u16-casefold.c: New file.
33240         * modules/unicase/u16-casefold: New file.
33241
33242         New module 'unicase/u8-casefold'.
33243         * lib/unicase/u8-casefold.c: New file.
33244         * lib/unicase/u-casefold.h: New file.
33245         * modules/unicase/u8-casefold: New file.
33246
33247         New module 'unicase/tocasefold'.
33248         * lib/unicase/casefold.h: New file.
33249         * lib/unicase/tocasefold.c: New file.
33250         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33251         * modules/unicase/tocasefold: New file.
33252
33253         Tests for module 'unicase/u32-totitle'.
33254         * modules/unicase/u32-totitle-tests: New file.
33255         * tests/unicase/test-u32-totitle.c: New file.
33256
33257         Tests for module 'unicase/u16-totitle'.
33258         * modules/unicase/u16-totitle-tests: New file.
33259         * tests/unicase/test-u16-totitle.c: New file.
33260
33261         Tests for module 'unicase/u8-totitle'.
33262         * modules/unicase/u8-totitle-tests: New file.
33263         * tests/unicase/test-u8-totitle.c: New file.
33264
33265         New module 'unicase/u32-totitle'.
33266         * lib/unicase/u32-totitle.c: New file.
33267         * modules/unicase/u32-totitle: New file.
33268
33269         New module 'unicase/u16-totitle'.
33270         * lib/unicase/u16-totitle.c: New file.
33271         * modules/unicase/u16-totitle: New file.
33272
33273         New module 'unicase/u8-totitle'.
33274         * lib/unicase/u8-totitle.c: New file.
33275         * lib/unicase/u-totitle.h: New file.
33276         * modules/unicase/u8-totitle: New file.
33277
33278         Tests for module 'unicase/u32-tolower'.
33279         * modules/unicase/u32-tolower-tests: New file.
33280         * tests/unicase/test-u32-tolower.c: New file.
33281
33282         Tests for module 'unicase/u16-tolower'.
33283         * modules/unicase/u16-tolower-tests: New file.
33284         * tests/unicase/test-u16-tolower.c: New file.
33285
33286         Tests for module 'unicase/u8-tolower'.
33287         * modules/unicase/u8-tolower-tests: New file.
33288         * tests/unicase/test-u8-tolower.c: New file.
33289
33290         New module 'unicase/u32-tolower'.
33291         * lib/unicase/u32-tolower.c: New file.
33292         * modules/unicase/u32-tolower: New file.
33293
33294         New module 'unicase/u16-tolower'.
33295         * lib/unicase/u16-tolower.c: New file.
33296         * modules/unicase/u16-tolower: New file.
33297
33298         New module 'unicase/u8-tolower'.
33299         * lib/unicase/u8-tolower.c: New file.
33300         * modules/unicase/u8-tolower: New file.
33301
33302         Tests for module 'unicase/u32-toupper'.
33303         * modules/unicase/u32-toupper-tests: New file.
33304         * tests/unicase/test-u32-toupper.c: New file.
33305
33306         Tests for module 'unicase/u16-toupper'.
33307         * modules/unicase/u16-toupper-tests: New file.
33308         * tests/unicase/test-u16-toupper.c: New file.
33309
33310         Tests for module 'unicase/u8-toupper'.
33311         * modules/unicase/u8-toupper-tests: New file.
33312         * tests/unicase/test-u8-toupper.c: New file.
33313
33314         New module 'unicase/u32-toupper'.
33315         * lib/unicase/u32-toupper.c: New file.
33316         * modules/unicase/u32-toupper: New file.
33317
33318         New module 'unicase/u16-toupper'.
33319         * lib/unicase/u16-toupper.c: New file.
33320         * modules/unicase/u16-toupper: New file.
33321
33322         New module 'unicase/u8-toupper'.
33323         * lib/unicase/u8-toupper.c: New file.
33324         * modules/unicase/u8-toupper: New file.
33325
33326         New module 'unicase/u32-casemap'.
33327         * lib/unicase/u32-casemap.c: New file.
33328         * modules/unicase/u32-casemap: New file.
33329
33330         New module 'unicase/u16-casemap'.
33331         * lib/unicase/u16-casemap.c: New file.
33332         * modules/unicase/u16-casemap: New file.
33333
33334         New module 'unicase/u8-casemap'.
33335         * lib/unicase/unicasemap.h: New file.
33336         * lib/unicase/u8-casemap.c: New file.
33337         * lib/unicase/u-casemap.h: New file.
33338         * modules/unicase/u8-casemap: New file.
33339
33340         New module 'unicase/special-casing'.
33341         * lib/unicase/special-casing.h: New file.
33342         * lib/unicase/special-casing.c: New file.
33343         * lib/unicase/special-casing-table.gperf: New file, generated by
33344         gen-uni-tables.c.
33345         * modules/unicase/special-casing: New file.
33346
33347         Tests for module 'unicase/locale-language'.
33348         * modules/unicase/locale-language-tests: New file.
33349         * tests/unicase/test-locale-language.sh: New file.
33350         * tests/unicase/test-locale-language.c: New file.
33351
33352         New module 'unicase/locale-language'.
33353         * lib/unicase/locale-language.c: New file.
33354         * lib/unicase/locale-languages.gperf: New file.
33355         * modules/unicase/locale-language: New file.
33356
33357         Generate more tables for case conversion and case folding.
33358         * lib/gen-uni-tables.c (SCC_*): New enum items.
33359         (struct special_casing_rule): New type.
33360         (casing_rules, num_casing_rules, allocated_casing_rules): New
33361         variables.
33362         (add_casing_rule, fill_casing_rules): New functions.
33363         (struct casefold_rule): New type.
33364         (casefolding_rules, num_casefolding_rules,
33365         allocated_casefolding_rules): New variables.
33366         (fill_casefolding_rules): New function.
33367         (unicode_casefold): New variable.
33368         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33369         sort_casing_rules, output_casing_rules): New functions.
33370         (main): Accept to more arguments: SpecialCasing.txt and
33371         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33372         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33373         Output mapping for casefolding.
33374
33375         * lib/unicase.h: Include stdbool.h, uninorm.h.
33376         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33377         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33378         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33379         arguments.
33380         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33381         resultp arguments.
33382         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33383         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33384         resultp arguments.
33385         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33386         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33387         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33388         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33389         declarations.
33390         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33391
33392 2009-03-08  Bruno Haible  <bruno@clisp.org>
33393
33394         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33395         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33396         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33397         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33398
33399 2009-03-07  Bruno Haible  <bruno@clisp.org>
33400
33401         Adjust u*_normcmp, u*_normcoll API.
33402         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33403         u16_normcoll, u32_normcoll): Change failure conventions.
33404         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33405         errno and return -1.
33406         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33407
33408 2009-03-07  Bruno Haible  <bruno@clisp.org>
33409
33410         Tests for module 'uninorm/u32-normcoll'.
33411         * modules/uninorm/u32-normcoll-tests: New file.
33412         * tests/uninorm/test-u32-normcoll.c: New file.
33413
33414         Tests for module 'uninorm/u16-normcoll'.
33415         * modules/uninorm/u16-normcoll-tests: New file.
33416         * tests/uninorm/test-u16-normcoll.c: New file.
33417
33418         Tests for module 'uninorm/u8-normcoll'.
33419         * modules/uninorm/u8-normcoll-tests: New file.
33420         * tests/uninorm/test-u8-normcoll.c: New file.
33421
33422 2009-03-07  Bruno Haible  <bruno@clisp.org>
33423
33424         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33425         tests/uninorm/test-u32-normcmp.c.
33426         * tests/uninorm/test-u32-normcmp.c: Include it.
33427         (test_nonascii): New function, extracted from main. Add some more
33428         tests.
33429         (main): Invoke test_ascii and test_nonascii.
33430         * modules/uninorm/u32-normcmp-tests (Files): Add
33431         tests/uninorm/test-u32-normcmp.h.
33432         (Depends-on): Remove uninorm/u32-normcmp.
33433
33434         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33435         tests/uninorm/test-u16-normcmp.c.
33436         * tests/uninorm/test-u16-normcmp.c: Include it.
33437         (test_nonascii): New function, extracted from main. Add some more
33438         tests.
33439         (main): Invoke test_ascii and test_nonascii.
33440         * modules/uninorm/u16-normcmp-tests (Files): Add
33441         tests/uninorm/test-u16-normcmp.h.
33442         (Depends-on): Remove uninorm/u16-normcmp.
33443
33444         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33445         tests/uninorm/test-u8-normcmp.c.
33446         * tests/uninorm/test-u8-normcmp.c: Include it.
33447         (test_nonascii): New function, extracted from main. Add some more
33448         tests.
33449         (main): Invoke test_ascii and test_nonascii.
33450         * modules/uninorm/u8-normcmp-tests (Files): Add
33451         tests/uninorm/test-u8-normcmp.h.
33452         (Depends-on): Remove uninorm/u8-normcmp.
33453
33454 2009-03-07  Bruno Haible  <bruno@clisp.org>
33455
33456         New module 'uninorm/u32-normcoll'.
33457         * lib/uninorm/u32-normcoll.c: New file.
33458         * modules/uninorm/u32-normcoll: New file.
33459
33460         New module 'uninorm/u16-normcoll'.
33461         * lib/uninorm/u16-normcoll.c: New file.
33462         * modules/uninorm/u16-normcoll: New file.
33463
33464         New module 'uninorm/u8-normcoll'.
33465         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33466         declarations.
33467         * lib/uninorm/u8-normcoll.c: New file.
33468         * lib/uninorm/u-normcoll.h: New file.
33469         * modules/uninorm/u8-normcoll: New file.
33470
33471         New module 'uninorm/u32-normxfrm'.
33472         * lib/uninorm/u32-normxfrm.c: New file.
33473         * modules/uninorm/u32-normxfrm: New file.
33474
33475         New module 'uninorm/u16-normxfrm'.
33476         * lib/uninorm/u16-normxfrm.c: New file.
33477         * modules/uninorm/u16-normxfrm: New file.
33478
33479         New module 'uninorm/u8-normxfrm'.
33480         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33481         declarations.
33482         * lib/uninorm/u8-normxfrm.c: New file.
33483         * lib/uninorm/u-normxfrm.h: New file.
33484         * modules/uninorm/u8-normxfrm: New file.
33485
33486 2009-03-07  Bruno Haible  <bruno@clisp.org>
33487
33488         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33489         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33490         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33491
33492 2009-03-07  Bruno Haible  <bruno@clisp.org>
33493
33494         New module 'memxfrm'.
33495         * lib/memxfrm.h: New file.
33496         * lib/memxfrm.c: New file.
33497         * modules/memxfrm: New file.
33498
33499 2009-03-07  Bruno Haible  <bruno@clisp.org>
33500
33501         New module 'memcmp2'.
33502         * lib/memcmp2.h: New file.
33503         * lib/memcmp2.c: New file.
33504         * modules/memcmp2: New file.
33505
33506 2009-03-07  Bruno Haible  <bruno@clisp.org>
33507
33508         Tests for module 'uninorm/decomposing-form'.
33509         * modules/uninorm/decomposing-form-tests: New file.
33510         * tests/uninorm/test-decomposing-form.c: New file.
33511
33512         New module 'uninorm/decomposing-form'.
33513         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33514         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33515         Add 'decomposing_variant' field.
33516         * lib/uninorm/decomposing-form.c: New file.
33517         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33518         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33519         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33520         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33521         * modules/uninorm/decomposing-form: New file.
33522         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33523         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33524
33525 2009-03-07  Bruno Haible  <bruno@clisp.org>
33526
33527         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33528         strings.
33529
33530 2009-03-06  Bruno Haible  <bruno@clisp.org>
33531
33532         Tests for module 'uninorm/u32-normcmp'.
33533         * tests/uninorm/test-u32-normcmp.c: New file.
33534         * modules/uninorm/u32-normcmp-tests: New file.
33535
33536         Tests for module 'uninorm/u16-normcmp'.
33537         * tests/uninorm/test-u16-normcmp.c: New file.
33538         * modules/uninorm/u16-normcmp-tests: New file.
33539
33540         Tests for module 'uninorm/u8-normcmp'.
33541         * tests/uninorm/test-u8-normcmp.c: New file.
33542         * modules/uninorm/u8-normcmp-tests: New file.
33543
33544         New module 'uninorm/u32-normcmp'.
33545         * lib/uninorm/u32-normcmp.c: New file.
33546         * modules/uninorm/u32-normcmp: New file.
33547
33548         New module 'uninorm/u16-normcmp'.
33549         * lib/uninorm/u16-normcmp.c: New file.
33550         * modules/uninorm/u16-normcmp: New file.
33551
33552         New module 'uninorm/u8-normcmp'.
33553         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33554         declarations.
33555         * lib/uninorm/u8-normcmp.c: New file.
33556         * lib/uninorm/u-normcmp.h: New file.
33557         * modules/uninorm/u8-normcmp: New file.
33558
33559 2009-03-06  Bruno Haible  <bruno@clisp.org>
33560
33561         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33562         Reported by Eric Blake.
33563
33564 2009-03-06  Eric Blake  <ebb9@byu.net>
33565             Bruno Haible  <bruno@clisp.org>
33566
33567         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33568         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33569         condition.
33570         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33571         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33572         condition.
33573         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33574
33575 2009-03-06  Eric Blake  <ebb9@byu.net>
33576
33577         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33578         to avoid compiler warnings.
33579         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33580
33581 2009-03-05  Bruno Haible  <bruno@clisp.org>
33582
33583         * tests/test-ftell.c (main): Disable test beyond end of file on
33584         FreeMiNT.
33585         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33586
33587 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33588
33589         * lib/filevercmp.c: Move hidden files up in ordering.
33590         * tests/test-filevercmp.c: Add tests for hidden files.
33591
33592 2009-03-04  Bruno Haible  <bruno@clisp.org>
33593
33594         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33595         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33596         AM_CFLAGS.
33597         Reported by Simon Josefsson.
33598
33599 2009-03-03  Bruno Haible  <bruno@clisp.org>
33600
33601         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33602         Reported by Simon Josefsson.
33603
33604         * doc/ld-version-script.texi: Update node reference.
33605
33606 2009-03-03  Bruno Haible  <bruno@clisp.org>
33607
33608         * modules/visibility (License): Change to 'unlimited'.
33609         Suggested by Simon Josefsson.
33610
33611 2009-03-03  Jim Meyering  <meyering@redhat.com>
33612
33613         unlinkdir: cannot_unlink_dir may modify process state
33614         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33615         it's neither thread-safe nor appropriate for use in a library.
33616
33617 2009-03-03  Eric Blake  <ebb9@byu.net>
33618
33619         test-closein: silence test under Darwin
33620         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33621         care if it dies from EPIPE or EBADF.
33622
33623 2009-03-03  Bruno Haible  <bruno@clisp.org>
33624
33625         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33626         earlier.
33627         * doc/visibility.texi: Fix @node and @section.
33628
33629 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33630
33631         * doc/gnulib.texi: Link to sections for ld version script and
33632         visibility.
33633         * doc/visibility.texi: Add @node and @section.
33634         * modules/ld-version-script: New module.
33635         * m4/ld-version-script.m4: New file.
33636         * doc/ld-version-script.texi: New file.
33637
33638 2009-03-02  David Lutterkort  <lutter@redhat.com>
33639
33640         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33641         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33642
33643 2009-03-02  Bruno Haible  <bruno@clisp.org>
33644
33645         * doc/visibility.texi: Mention libtool's -export-symbols option.
33646
33647 2009-03-02  Jim Meyering  <meyering@redhat.com>
33648
33649         announce-gen: new option: --no-print-checksums
33650         * build-aux/announce-gen (usage): Describe it.
33651         (print_checksums): Print a newline here, not in the [*] footnote.
33652         (main): Honor it.
33653
33654 2009-03-01  Bruno Haible  <bruno@clisp.org>
33655
33656         Use socklen_t in the native Windows replacements prototypes.
33657         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33658         instead of 'int'.
33659         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33660         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33661         * modules/getsockopt (Depends-on): Add socklen.
33662         * modules/setsockopt (Depends-on): Add socklen.
33663
33664 2009-03-01  Bruno Haible  <bruno@clisp.org>
33665
33666         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33667         least 4.2.
33668
33669 2009-03-01  Eric Blake  <ebb9@byu.net>
33670             Bruno Haible  <bruno@clisp.org>
33671
33672         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33673         error messages.
33674         * lib/wait-process.c (wait_subprocess): Omit error message about
33675         deadly signal sent to the child of termsigp != NULL.
33676
33677 2009-03-01  Eric Blake  <ebb9@byu.net>
33678
33679         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33680
33681 2009-03-01  Bruno Haible  <bruno@clisp.org>
33682
33683         Avoid a gcc warning.
33684         * tests/test-sched.c (b): Make global.
33685         Reported by Eric Blake.
33686
33687 2009-01-19  Martin Lambers  <marlam@marlam.de>
33688
33689         Provide POSIX semantics for socket timeout options on W32.
33690         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33691         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33692         * modules/setsockopt: Depend on sys_time module for struct timeval.
33693         * modules/getsockopt: Depend on sys_time module for struct timeval.
33694
33695 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33696
33697         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33698         __USE_GNU, for consistency with netdb.in.h.
33699         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33700
33701 2009-03-01  Bruno Haible  <bruno@clisp.org>
33702
33703         More support for FreeMiNT.
33704         * lib/fseeko.c (rpl_fseeko): Complete last commit.
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/fpurge.c (fpurge): Correct last commit.
33711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33712
33713 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33714
33715         Fix unportable awk script in vc-list-files.
33716         * build-aux/vc-list-files: In the replacement awk script, use
33717         substr with a second argument of 1, not zero.
33718         Report by Simon Josefsson.
33719
33720 2009-02-28  Bruno Haible  <bruno@clisp.org>
33721
33722         More support for FreeMiNT.
33723         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33724         to FreeMiNT today.
33725         * lib/fwriting.c (fwriting): Likewise.
33726         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33727
33728 2009-02-28  Bruno Haible  <bruno@clisp.org>
33729
33730         * tests/test-freadseek.c (main): Disable test beyond end of file on
33731         FreeMiNT.
33732         * tests/test-ftello.c (main): Likewise.
33733         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33734
33735 2009-02-28  Bruno Haible  <bruno@clisp.org>
33736
33737         Add tentative support for FreeMiNT.
33738         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33739         * lib/fpurge.c (fpurge): Likewise.
33740         * lib/freadable.c (freadable): Likewise.
33741         * lib/freading.c (freading): Likewise.
33742         * lib/freadptr.c (freadptr): Likewise.
33743         * lib/freadseek.c (freadptrinc): Likewise.
33744         * lib/fseeko.c (rpl_fseeko): Likewise.
33745         * lib/fseterr.c (fseterr): Likewise.
33746         * lib/fwritable.c (fwritable): Likewise.
33747         * lib/fwriting.c (fwriting): Likewise.
33748         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33749         Hourihane.
33750         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33751
33752 2009-02-28  Bruno Haible  <bruno@clisp.org>
33753
33754         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33755         SIGCHLD.
33756         Reported by Jim Meyering.
33757
33758 2009-02-28  Bruno Haible  <bruno@clisp.org>
33759
33760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33761         Mention the results of these tests on various platforms.
33762         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33763         order.
33764         * doc/posix-functions/printf.texi: Likewise.
33765         * doc/posix-functions/snprintf.texi: Likewise.
33766         * doc/posix-functions/sprintf.texi: Likewise.
33767         * doc/posix-functions/vfprintf.texi: Likewise.
33768         * doc/posix-functions/vprintf.texi: Likewise.
33769         * doc/posix-functions/vsnprintf.texi: Likewise.
33770         * doc/posix-functions/vsprintf.texi: Likewise.
33771         * doc/glibc-functions/obstack_printf.texi: Likewise.
33772         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33773
33774 2009-02-28  Bruno Haible  <bruno@clisp.org>
33775
33776         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33777         Reported by Loïc Minier <lool@dooz.org>.
33778
33779 2009-02-27  Bruno Haible  <bruno@clisp.org>
33780
33781         * gnulib-tool (func_import): Make the sed expression used to create the
33782         sed script for updating the .gitignore file POSIX compliant.
33783         Reported by Eric Blake.
33784
33785 2009-02-27  Bruno Haible  <bruno@clisp.org>
33786
33787         * gnulib-tool (sed): Don't alias as "sed --posix".
33788         Reported by Eric Blake.
33789
33790 2009-02-27  Bruno Haible  <bruno@clisp.org>
33791
33792         Avoid test link errors.
33793         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33794         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33795         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33796         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33798
33799 2009-02-27  Bruno Haible  <bruno@clisp.org>
33800
33801         Avoid spurious "(cached)" in configure output.
33802         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33803         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33804         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33805         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33806         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33807         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33808         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33809         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33810         Reported by Eric Blake.
33811
33812 2009-02-27  Eric Blake  <ebb9@byu.net>
33813
33814         printf: fix regression in previous patch
33815         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33816
33817 2009-02-27  Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33820         value.
33821         * lib/stdint.in.h: Likewise.
33822         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33823
33824 2009-02-27  Eric Blake  <ebb9@byu.net>
33825
33826         doc: mention more functions added in cygwin 1.7.0
33827         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33828         addition.
33829         * doc/posix-functions/open_wmemstream.texi: Likewise.
33830         * doc/posix-functions/wcsnlen.texi: Likewise.
33831         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33832         * doc/posix-functions/wcstod.texi: Likewise.
33833         * doc/posix-functions/wcstof.texi: Likewise.
33834         * doc/posix-functions/wcstoimax.texi: Likewise.
33835         * doc/posix-functions/wcstok.texi: Likewise.
33836         * doc/posix-functions/wcstoumax.texi: Likewise.
33837
33838         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33839         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33840         * doc/posix-functions/fprintf.texi: Update.
33841         * doc/posix-functions/printf.texi: Update.
33842         * doc/posix-functions/snprintf.texi: Update.
33843         * doc/posix-functions/sprintf.texi: Update.
33844         * doc/posix-functions/vfprintf.texi: Update.
33845         * doc/posix-functions/vprintf.texi: Update.
33846         * doc/posix-functions/vsnprintf.texi: Update.
33847         * doc/posix-functions/vsprintf.texi: Update.
33848         * doc/glibc-functions/obstack_printf.texi: Update.
33849         * doc/glibc-functions/obstack_vprintf.texi: Update.
33850
33851 2009-02-26  Eric Blake  <ebb9@byu.net>
33852
33853         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33854         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33855         compilation bug by using runtime conversion.
33856         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33857         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33858         * modules/ceill-tests (Files): Use nan.h.
33859         * modules/floorl-tests (Files): Likewise.
33860         * modules/frexpl-tests (Files): Likewise.
33861         * modules/isnanl-tests (Files): Likewise.
33862         * modules/ldexpl-tests (Files): Likewise.
33863         * modules/roundl-tests (Files): Likewise.
33864         * modules/truncl-tests (Files): Likewise.
33865         * tests/test-ceill.c (main): Use a working NaN.
33866         * tests/test-floorl.c (main): Likewise.
33867         * tests/test-frexpl.c (main): Likewise.
33868         * tests/test-isnan.c (test_long_double): Likewise.
33869         * tests/test-isnanl.h (main): Likewise.
33870         * tests/test-ldexpl.h (main): Likewise.
33871         * tests/test-roundl.h (main): Likewise.
33872         * tests/test-truncl.h (main): Likewise.
33873         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33874
33875 2009-02-26  Eric Blake  <ebb9@byu.net>
33876             Bruno Haible  <bruno@clisp.org>
33877
33878         Work around a *printf bug with %ls on Solaris.
33879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33880         precision is specified, sprintf stops converting the wide string
33881         argument when the number of bytes that have been produced by this
33882         conversion equals or exceeds the precision.
33883         * doc/posix-functions/fprintf.texi: Update.
33884         * doc/posix-functions/printf.texi: Update.
33885         * doc/posix-functions/snprintf.texi: Update.
33886         * doc/posix-functions/sprintf.texi: Update.
33887         * doc/posix-functions/vfprintf.texi: Update.
33888         * doc/posix-functions/vprintf.texi: Update.
33889         * doc/posix-functions/vsnprintf.texi: Update.
33890         * doc/posix-functions/vsprintf.texi: Update.
33891         * doc/glibc-functions/obstack_printf.texi: Update.
33892         * doc/glibc-functions/obstack_vprintf.texi: Update.
33893
33894 2009-02-26  Eric Blake  <ebb9@byu.net>
33895
33896         stdlib: favor compiler check of random.h
33897         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33898         to avoid an ObjC random.h installed by Swarm.
33899
33900 2009-02-26  Bruno Haible  <bruno@clisp.org>
33901
33902         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33903         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33904         Reported by Gary V. Vaughan <gary@gnu.org>.
33905
33906 2009-02-26  Bruno Haible  <bruno@clisp.org>
33907
33908         Fix *printf behaviour regarding the %ls directive.
33909         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33910         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33911         NEED_PRINTF_DIRECTIVE_LS.
33912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33913         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33915         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33916         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33917         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33918         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33920         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33922         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33923         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33927         * doc/posix-functions/fprintf.texi: Update.
33928         * doc/posix-functions/printf.texi: Update.
33929         * doc/posix-functions/snprintf.texi: Update.
33930         * doc/posix-functions/sprintf.texi: Update.
33931         * doc/posix-functions/vfprintf.texi: Update.
33932         * doc/posix-functions/vprintf.texi: Update.
33933         * doc/posix-functions/vsnprintf.texi: Update.
33934         * doc/posix-functions/vsprintf.texi: Update.
33935         * doc/glibc-functions/obstack_printf.texi: Update.
33936         * doc/glibc-functions/obstack_vprintf.texi: Update.
33937         Reported by Eric Blake.
33938
33939 2009-02-25  Bruno Haible  <bruno@clisp.org>
33940
33941         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33942         with known value.
33943         Reported by Gary V. Vaughan <gary@gnu.org>.
33944
33945 2009-02-25  Bruno Haible  <bruno@clisp.org>
33946
33947         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33948         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33949         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33950         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33951         Reported by Gary V. Vaughan <gary@gnu.org>.
33952
33953 2009-02-25  Bruno Haible  <bruno@clisp.org>
33954
33955         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33956         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33957         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33958         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33959         Reported by Gary V. Vaughan <gary@gnu.org>.
33960
33961 2009-02-25  Eric Blake  <ebb9@byu.net>
33962
33963         tests: skip fseek/ftell tests if ungetc is broken
33964         * m4/ungetc.m4: New file.
33965         * modules/fseek-tests: Split test, so ungetc dependency is
33966         separate from rest of test.
33967         * modules/fseeko-tests: Likewise.
33968         * modules/ftell-tests: Likewise.
33969         * modules/ftello-tests: Likewise.
33970         * tests/test-fseek.c (main): Isolate ungetc dependency.
33971         * tests/test-fseeko.c (main): Likewise.
33972         * tests/test-ftell.c (main): Likewise.
33973         * tests/test-ftello.c (main): Likewise.
33974         * tests/test-fseek2.sh: New file.
33975         * tests/test-fseeko2.sh: Likewise.
33976         * tests/test-ftell2.sh: Likewise.
33977         * tests/test-ftello2.sh: Likewise.
33978
33979 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33980
33981         test-getaddrinfo: fix usage of skip return code 77
33982         * tests/test-gettaddrinfo.c: Return skip code 77 only
33983         for first occurance of skip (4x77 is not 77)
33984
33985 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33986
33987         strtod: avoid C99 decl-after-statement
33988         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33989
33990 2009-02-24  Eric Blake  <ebb9@byu.net>
33991
33992         strtod: detect HP-UX 11.31 bug
33993         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33994         Reported by Gary V. Vaughan.
33995
33996 2009-02-23  Bruno Haible  <bruno@clisp.org>
33997
33998         Fix invalid read past end of memory block.
33999         * lib/vasnprintf.c (DCHAR_SET): Define.
34000         (local_wcslen): Define only when needed.
34001         (local_strnlen, local_wcsnlen): New functions.
34002         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34003         directives that involve a conversion ourselves.
34004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34005         wcsnlen, mbrtowc, wcrtomb.
34006         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34007         * tests/test-vasprintf-posix.c (test_function): Likewise.
34008         * tests/test-snprintf-posix.h (test_function): Likewise.
34009         * tests/test-sprintf-posix.h (test_function): Likewise.
34010         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34011
34012 2009-02-22  Bruno Haible  <bruno@clisp.org>
34013
34014         Implement new clarified decomposition of Hangul syllables.
34015         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34016         of type LTV, return only a pairwise decomposition.
34017         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34018         Likewise.
34019         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34020         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34021         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34022
34023 2009-02-22  Bruno Haible  <bruno@clisp.org>
34024
34025         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34026         zero-length results and shrink excess allocated memory.
34027         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34028         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34029         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34030         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34031         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34032         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34033         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34034         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34035         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34036         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34037         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34038         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34039
34040 2009-02-21  Bruno Haible  <bruno@clisp.org>
34041
34042         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34043         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34044         spaces after a period. Put a space between a macro name and its
34045         argument list. Trivial rewordings.
34046         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34047         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34048         (main): Return 0 explicitly.
34049
34050 2009-02-21  Bruno Haible  <bruno@clisp.org>
34051
34052         Tests for module 'uninorm/filter'.
34053         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34054         * modules/uninorm/filter-tests: New file.
34055
34056         New module 'uninorm/filter'.
34057         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34058         uninorm_filter_flush, uninorm_filter_free): New declarations.
34059         * lib/uninorm/uninorm-filter.c: New file.
34060         * modules/uninorm/filter: New file.
34061
34062 2009-02-21  Bruno Haible  <bruno@clisp.org>
34063
34064         Tests for module 'uninorm/nfkc'.
34065         * tests/uninorm/test-nfkc.c: New file.
34066         * tests/uninorm/test-u8-nfkc.c: New file.
34067         * tests/uninorm/test-u16-nfkc.c: New file.
34068         * tests/uninorm/test-u32-nfkc.c: New file.
34069         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34070         * tests/uninorm/test-u32-nfkc-big.c: New file.
34071         * modules/uninorm/nfkc-tests: New file.
34072
34073         New module 'uninorm/nfkc'.
34074         * lib/uninorm/nfkc.c: New file.
34075         * modules/uninorm/nfkc: New file.
34076
34077         Tests for module 'uninorm/nfkd'.
34078         * tests/uninorm/test-nfkd.c: New file.
34079         * tests/uninorm/test-u8-nfkd.c: New file.
34080         * tests/uninorm/test-u16-nfkd.c: New file.
34081         * tests/uninorm/test-u32-nfkd.c: New file.
34082         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34083         * tests/uninorm/test-u32-nfkd-big.c: New file.
34084         * modules/uninorm/nfkd-tests: New file.
34085
34086         New module 'uninorm/nfkd'.
34087         * lib/uninorm/nfkd.c: New file.
34088         * modules/uninorm/nfkd: New file.
34089
34090         Tests for module 'uninorm/nfc'.
34091         * tests/uninorm/test-nfc.c: New file.
34092         * tests/uninorm/test-u8-nfc.c: New file.
34093         * tests/uninorm/test-u16-nfc.c: New file.
34094         * tests/uninorm/test-u32-nfc.c: New file.
34095         * tests/uninorm/test-u32-nfc-big.sh: New file.
34096         * tests/uninorm/test-u32-nfc-big.c: New file.
34097         * modules/uninorm/nfc-tests: New file.
34098
34099         New module 'uninorm/nfc'.
34100         * lib/uninorm/nfc.c: New file.
34101         * modules/uninorm/nfc: New file.
34102
34103         Tests for module 'uninorm/nfd'.
34104         * tests/uninorm/test-nfd.c: New file.
34105         * tests/uninorm/test-u8-nfd.c: New file.
34106         * tests/uninorm/test-u16-nfd.c: New file.
34107         * tests/uninorm/test-u32-nfd.c: New file.
34108         * tests/uninorm/test-u32-nfd-big.sh: New file.
34109         * tests/uninorm/test-u32-nfd-big.c: New file.
34110         * tests/uninorm/test-u32-normalize-big.h: New file.
34111         * tests/uninorm/test-u32-normalize-big.c: New file.
34112         * tests/uninorm/NormalizationTest.txt: New file, created from
34113         Unicode 5.1.0 NormalizationTest.txt.
34114         * modules/uninorm/nfd-tests: New file.
34115
34116         New module 'uninorm/nfd'.
34117         * lib/uninorm/nfd.c: New file.
34118         * modules/uninorm/nfd: New file.
34119
34120         New module 'uninorm/u32-normalize'.
34121         * lib/uninorm/u32-normalize.c: New file.
34122         * modules/uninorm/u32-normalize: New file.
34123
34124         New module 'uninorm/u16-normalize'.
34125         * lib/uninorm/u16-normalize.c: New file.
34126         * modules/uninorm/u16-normalize: New file.
34127
34128         New module 'uninorm/u8-normalize'.
34129         * lib/uninorm/u8-normalize.c: New file.
34130         * lib/uninorm/normalize-internal.h: New file.
34131         * lib/uninorm/u-normalize-internal.h: New file.
34132         * modules/uninorm/u8-normalize: New file.
34133
34134         New module 'uninorm/decompose-internal'.
34135         * lib/uninorm/decompose-internal.c: New file.
34136         * modules/uninorm/decompose-internal: New file.
34137
34138         Tests for module 'uninorm/composition'.
34139         * tests/uninorm/test-composition.c: New file.
34140         * modules/uninorm/composition-tests: New file.
34141
34142         New module 'uninorm/composition'.
34143         * lib/uninorm/composition.c: New file.
34144         * lib/uninorm/composition-table.gperf: New file, generated by
34145         gen-uni-tables.
34146         * modules/uninorm/composition: New file.
34147
34148         Tests for module 'uninorm/compat-decomposition'.
34149         * tests/uninorm/test-compat-decomposition.c: New file.
34150         * modules/uninorm/compat-decomposition-tests: New file.
34151
34152         New module 'uninorm/compat-decomposition'.
34153         * lib/uninorm/decompose-internal.h: New file.
34154         * lib/uninorm/compat-decomposition.c: New file.
34155         * modules/uninorm/compat-decomposition: New file.
34156
34157         Tests for module 'uninorm/canonical-decomposition'.
34158         * tests/uninorm/test-canonical-decomposition.c: New file.
34159         * modules/uninorm/canonical-decomposition-tests: New file.
34160
34161         New module 'uninorm/canonical-decomposition'.
34162         * lib/uninorm/canonical-decomposition.c: New file.
34163         * modules/uninorm/canonical-decomposition: New file.
34164
34165         Tests for module 'uninorm/decomposition'.
34166         * tests/uninorm/test-decomposition.c: New file.
34167         * modules/uninorm/decomposition-tests: New file.
34168
34169         New module 'uninorm/decomposition'.
34170         * lib/uninorm/decomposition.c: New file.
34171         * modules/uninorm/decomposition: New file.
34172
34173         New module 'uninorm/decomposition-table'.
34174         * lib/uninorm/decomposition-table.h: New file.
34175         * lib/uninorm/decomposition-table.c: New file.
34176         * lib/uninorm/decomposition-table1.h: New file, generated by
34177         gen-uni-tables.
34178         * lib/uninorm/decomposition-table2.h: New file, generated by
34179         gen-uni-tables.
34180         * modules/uninorm/decomposition-table: New file.
34181
34182         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34183         (UC_DECOMP_*): New enumeration items.
34184         (get_decomposition): New function.
34185         (struct decomp_table): New type.
34186         (output_decomposition, output_decomposition_tables): New functions.
34187         (unicode_composition_exclusions): New variable.
34188         (fill_composition_exclusions, debug_output_composition_tables): New
34189         functions.
34190         (main): Accept one more argument. Invoke fill_composition_exclusions.
34191         Output decomposition and composition tables.
34192
34193         New module 'uninorm/base'.
34194         * lib/uninorm.h: New file.
34195         * lib/unictype.h: Update comment.
34196         * modules/uninorm/base: New file.
34197
34198 2009-02-21  David Lutterkort  <lutter@redhat.com>
34199
34200         Tests for module 'safe-alloc'.
34201         * tests/test-safe-alloc.c: New file.
34202         * modules/safe-alloc-tests: New file.
34203
34204         New module 'safe-alloc'.
34205         * lib/safe-alloc.h: New file.
34206         * lib/safe-alloc.c: New file.
34207         * m4/safe-alloc.m4: New file.
34208         * modules/safe-alloc: New file.
34209         * doc/safe-alloc.texi: New file.
34210         * doc/gnulib.texi: Include it.
34211         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34212         safe-alloc.
34213
34214 2009-02-18  Bruno Haible  <bruno@clisp.org>
34215
34216         Fix link error on non-glibc systems.
34217         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34218         variable.
34219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34220
34221 2009-02-18  Jim Meyering  <meyering@redhat.com>
34222
34223         fts: avoid used-uninitialized error due to recent change
34224         * lib/fts.c (fts_read): Guard uses of the new member,
34225         parent->fts_n_dirs_remaining, since it's not relevant for
34226         the parent of a directory specified on the command-line.
34227
34228 2009-02-17  James Youngman  <jay@gnu.org>
34229             Bruno Haible  <bruno@clisp.org>
34230
34231         * m4/include_next.m4: Reformulate comment.
34232
34233 2009-02-16  Jim Meyering  <meyering@redhat.com>
34234
34235         fts: add #if guards so that the fts_lgpl module still builds
34236         * lib/fts.c: Guard just-added hash-table-using parts with
34237         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34238         Reported by Simon Josefsson.
34239
34240 2009-02-15  Bruno Haible  <bruno@clisp.org>
34241
34242         * modules/array-mergesort-tests: New file.
34243         * tests/test-array-mergesort.c: New file.
34244
34245         New module 'array-mergesort'.
34246         * modules/array-mergesort: New file.
34247         * lib/array-mergesort.h: New file.
34248
34249 2009-02-15  Bruno Haible  <bruno@clisp.org>
34250
34251         Fix 2009-02-07 commit.
34252         * lib/gen-uni-tables.c (output_predicate, output_category,
34253         output_combclass, output_bidi_category, output_decimal_digit,
34254         output_digit, output_numeric, output_mirror, output_scripts,
34255         output_ident_category, output_simple_mapping): Fix format directives.
34256         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34257
34258 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34259
34260         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34261         fixes are available from IBM.
34262
34263 2009-02-13  Jim Meyering  <meyering@redhat.com>
34264
34265         fts: arrange not to stat non-directories in more cases
34266         This makes GNU find (when it doesn't need to stat each file)
34267         *much* more efficient at traversing reiserfs file systems.
34268         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34269         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34270         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34271         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34272         (leaf_optimization_applies): New function.
34273         (LCO_hash, LCO_compare): New helper functions.
34274         (link_count_optimize_ok): New function.
34275         (fts_stat): Initialize new member (if dir).
34276         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34277         we've just stat'ed a directory.  Skip the stat call when possible.
34278         ---
34279         Note this AFS-related exchange:
34280         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34281         and note find's pioctl call in find/fstype.c.
34282         But that is necessary only if you want to enable the
34283         optimization for AFS, and for now, I don't.
34284
34285         fts: move a function definition "up" (no semantic change)
34286         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34287         "up" to precede upcoming use of a related function.
34288
34289 2009-02-11  Jim Meyering  <meyering@redhat.com>
34290
34291         fts: correct internal computation of nlinks (optimization-related)
34292         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34293         whether the current entry is a directory, so don't test it.
34294
34295 2009-02-10  Bruno Haible  <bruno@clisp.org>
34296
34297         Tests for module 'uniwbrk/ulc-wordbreaks'.
34298         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34299         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34300         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34301
34302         Tests for module 'uniwbrk/u32-wordbreaks'.
34303         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34304         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34305
34306         Tests for module 'uniwbrk/u16-wordbreaks'.
34307         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34308         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34309
34310         Tests for module 'uniwbrk/u8-wordbreaks'.
34311         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34312         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34313
34314 2009-02-10  Bruno Haible  <bruno@clisp.org>
34315
34316         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34317         property.
34318         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34319         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34320         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34321
34322 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34323
34324         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34325         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34326
34327 2009-02-10  Bruno Haible  <bruno@clisp.org>
34328
34329         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34330         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34331         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34332         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34333         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34334         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34335
34336 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34337
34338         * lib/sockets.h (gl_fd_to_handle): New function.
34339
34340         * tests/test-sockets.c: Call gl_fd_to_handle.
34341
34342 2009-02-09  Bruno Haible  <bruno@clisp.org>
34343
34344         * doc/havelib.texi: Document the conventions on bi-arch systems.
34345
34346 2009-02-08  Bruno Haible  <bruno@clisp.org>
34347
34348         Document the AC_LIB_LINKFLAGS macro.
34349         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34350         * doc/gnulib.texi: Include it.
34351
34352 2009-02-08  Bruno Haible  <bruno@clisp.org>
34353
34354         Fix wrong order of sections, compared to TOC.
34355         * doc/gnulib.texi: Include relocatable-maint.texi after the
34356         "Regular expressions" node, not before.
34357
34358 2009-02-08  Bruno Haible  <bruno@clisp.org>
34359
34360         Tests for module 'unicase/totitle'.
34361         * modules/unicase/totitle-tests: New file.
34362
34363         Tests for module 'unicase/tolower'.
34364         * modules/unicase/tolower-tests: New file.
34365
34366         Tests for module 'unicase/toupper'.
34367         * modules/unicase/toupper-tests: New file.
34368         * tests/unicase/test-mapping-part1.h: New file.
34369         * tests/unicase/test-mapping-part2.h: New file.
34370
34371         New module 'unicase/totitle'.
34372         * modules/unicase/totitle: New file.
34373         * lib/unicase/totitle.c: New file.
34374
34375         New module 'unicase/tolower'.
34376         * modules/unicase/tolower: New file.
34377         * lib/unicase/tolower.c: New file.
34378
34379         New module 'unicase/toupper'.
34380         * modules/unicase/toupper: New file.
34381         * lib/unicase/toupper.c: New file.
34382         * lib/unicase/simple-mapping.h: New file.
34383
34384         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34385         (mapping_table): New structure.
34386         (output_simple_mapping): New function.
34387         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34388         * modules/gen-uni-tables (Description): Update.
34389         * lib/unicase/toupper.h: New file, automatically generated by
34390         gen-uni-tables.
34391         * lib/unicase/tolower.h: New file, automatically generated by
34392         gen-uni-tables.
34393         * lib/unicase/totitle.h: New file, automatically generated by
34394         gen-uni-tables.
34395         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34396         gen-uni-tables.
34397         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34398         gen-uni-tables.
34399         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34400         gen-uni-tables.
34401
34402         New module 'unicase/base'.
34403         * modules/unicase/base: New file.
34404         * lib/unicase.h: New file.
34405
34406 2009-02-08  Bruno Haible  <bruno@clisp.org>
34407
34408         New module 'uniwbrk/ulc-wordbreaks'.
34409         * modules/uniwbrk/ulc-wordbreaks: New file.
34410         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34411
34412         New module 'uniwbrk/u32-wordbreaks'.
34413         * modules/uniwbrk/u32-wordbreaks: New file.
34414         * lib/uniwbrk/u32-wordbreaks.c: New file.
34415
34416         New module 'uniwbrk/u16-wordbreaks'.
34417         * modules/uniwbrk/u16-wordbreaks: New file.
34418         * lib/uniwbrk/u16-wordbreaks.c: New file.
34419
34420         New module 'uniwbrk/u8-wordbreaks'.
34421         * modules/uniwbrk/u8-wordbreaks: New file.
34422         * lib/uniwbrk/u8-wordbreaks.c: New file.
34423         * lib/uniwbrk/u-wordbreaks.h: New file.
34424
34425         New module 'uniwbrk/table'.
34426         * modules/uniwbrk/table: New file.
34427         * lib/uniwbrk/wbrktable.h: New file.
34428         * lib/uniwbrk/wbrktable.c: New file.
34429
34430         New module 'uniwbrk/wordbreak-property'.
34431         * modules/uniwbrk/wordbreak-property: New file.
34432         * lib/uniwbrk/wordbreak-property.c: New file.
34433
34434         * lib/gen-uni-tables.c (WBP_*): New enum items.
34435         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34436         (unicode_org_wbp): New variable.
34437         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34438         New functions.
34439         (wbp_table): New structure.
34440         (output_wbp, output_wbrk_tables): New functions.
34441         (main): Accept additional argument. Invoke fill_org_wbp,
34442         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34443         output_wbrk_tables.
34444         * modules/gen-uni-tables (Description): Update.
34445         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34446         gen-uni-tables.
34447
34448         New module 'uniwbrk/base'.
34449         * modules/uniwbrk/base: New file.
34450         * lib/uniwbrk.h: New file.
34451
34452 2009-02-08  Bruno Haible  <bruno@clisp.org>
34453
34454         Update to Unicode 5.1.0.
34455         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34456         U+2185..U+2188.
34457         (is_property_default_ignorable_code_point): Don't include characters
34458         of category Cc or Cs and not-a-characters.
34459         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34460         U+0D79, U+109E, U+109F, U+A60C.
34461         * lib/unictype/bidi_of.h: Regenerated.
34462         * lib/unictype/blocks.h: Regenerated.
34463         * lib/unictype/categ_C.h: Regenerated.
34464         * lib/unictype/categ_Cf.h: Regenerated.
34465         * lib/unictype/categ_Cn.h: Regenerated.
34466         * lib/unictype/categ_L.h: Regenerated.
34467         * lib/unictype/categ_Ll.h: Regenerated.
34468         * lib/unictype/categ_Lm.h: Regenerated.
34469         * lib/unictype/categ_Lo.h: Regenerated.
34470         * lib/unictype/categ_Lu.h: Regenerated.
34471         * lib/unictype/categ_M.h: Regenerated.
34472         * lib/unictype/categ_Mc.h: Regenerated.
34473         * lib/unictype/categ_Me.h: Regenerated.
34474         * lib/unictype/categ_Mn.h: Regenerated.
34475         * lib/unictype/categ_N.h: Regenerated.
34476         * lib/unictype/categ_Nd.h: Regenerated.
34477         * lib/unictype/categ_Nl.h: Regenerated.
34478         * lib/unictype/categ_No.h: Regenerated.
34479         * lib/unictype/categ_P.h: Regenerated.
34480         * lib/unictype/categ_Pd.h: Regenerated.
34481         * lib/unictype/categ_Pe.h: Regenerated.
34482         * lib/unictype/categ_Pf.h: Regenerated.
34483         * lib/unictype/categ_Pi.h: Regenerated.
34484         * lib/unictype/categ_Po.h: Regenerated.
34485         * lib/unictype/categ_Ps.h: Regenerated.
34486         * lib/unictype/categ_S.h: Regenerated.
34487         * lib/unictype/categ_Sk.h: Regenerated.
34488         * lib/unictype/categ_Sm.h: Regenerated.
34489         * lib/unictype/categ_So.h: Regenerated.
34490         * lib/unictype/categ_of.h: Regenerated.
34491         * lib/unictype/combining.h: Regenerated.
34492         * lib/unictype/ctype_alnum.h: Regenerated.
34493         * lib/unictype/ctype_alpha.h: Regenerated.
34494         * lib/unictype/ctype_graph.h: Regenerated.
34495         * lib/unictype/ctype_lower.h: Regenerated.
34496         * lib/unictype/ctype_print.h: Regenerated.
34497         * lib/unictype/ctype_punct.h: Regenerated.
34498         * lib/unictype/ctype_upper.h: Regenerated.
34499         * lib/unictype/decdigit.h: Regenerated.
34500         * lib/unictype/digit.h: Regenerated.
34501         * lib/unictype/mirror.h: Regenerated.
34502         * lib/unictype/numeric.h: Regenerated.
34503         * lib/unictype/pr_alphabetic.h: Regenerated.
34504         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34505         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34506         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34507         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34508         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34509         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34510         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34511         * lib/unictype/pr_combining.h: Regenerated.
34512         * lib/unictype/pr_dash.h: Regenerated.
34513         * lib/unictype/pr_decimal_digit.h: Regenerated.
34514         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34515         * lib/unictype/pr_deprecated.h: Regenerated.
34516         * lib/unictype/pr_diacritic.h: Regenerated.
34517         * lib/unictype/pr_extender.h: Regenerated.
34518         * lib/unictype/pr_format_control.h: Regenerated.
34519         * lib/unictype/pr_grapheme_base.h: Regenerated.
34520         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34521         * lib/unictype/pr_grapheme_link.h: Regenerated.
34522         * lib/unictype/pr_id_continue.h: Regenerated.
34523         * lib/unictype/pr_id_start.h: Regenerated.
34524         * lib/unictype/pr_ideographic.h: Regenerated.
34525         * lib/unictype/pr_ignorable_control.h: Regenerated.
34526         * lib/unictype/pr_lowercase.h: Regenerated.
34527         * lib/unictype/pr_math.h: Regenerated.
34528         * lib/unictype/pr_numeric.h: Regenerated.
34529         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34530         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34531         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34532         * lib/unictype/pr_other_id_continue.h: Regenerated.
34533         * lib/unictype/pr_other_lowercase.h: Regenerated.
34534         * lib/unictype/pr_other_math.h: Regenerated.
34535         * lib/unictype/pr_punctuation.h: Regenerated.
34536         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34537         * lib/unictype/pr_soft_dotted.h: Regenerated.
34538         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34539         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34540         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34541         * lib/unictype/pr_uppercase.h: Regenerated.
34542         * lib/unictype/pr_xid_continue.h: Regenerated.
34543         * lib/unictype/pr_xid_start.h: Regenerated.
34544         * lib/unictype/pr_zero_width.h: Regenerated.
34545         * lib/unictype/scripts.h: Regenerated.
34546         * lib/unictype/scripts_byname.gperf: Regenerated.
34547         * lib/unictype/sy_java_ident.h: Regenerated.
34548         * lib/unilbrk/lbrkprop1.h: Regenerated.
34549         * lib/unilbrk/lbrkprop2.h: Regenerated.
34550         * tests/unictype/test-categ_C.c: Regenerated.
34551         * tests/unictype/test-categ_Cf.c: Regenerated.
34552         * tests/unictype/test-categ_Cn.c: Regenerated.
34553         * tests/unictype/test-categ_L.c: Regenerated.
34554         * tests/unictype/test-categ_Ll.c: Regenerated.
34555         * tests/unictype/test-categ_Lm.c: Regenerated.
34556         * tests/unictype/test-categ_Lo.c: Regenerated.
34557         * tests/unictype/test-categ_Lu.c: Regenerated.
34558         * tests/unictype/test-categ_M.c: Regenerated.
34559         * tests/unictype/test-categ_Mc.c: Regenerated.
34560         * tests/unictype/test-categ_Me.c: Regenerated.
34561         * tests/unictype/test-categ_Mn.c: Regenerated.
34562         * tests/unictype/test-categ_N.c: Regenerated.
34563         * tests/unictype/test-categ_Nd.c: Regenerated.
34564         * tests/unictype/test-categ_Nl.c: Regenerated.
34565         * tests/unictype/test-categ_No.c: Regenerated.
34566         * tests/unictype/test-categ_P.c: Regenerated.
34567         * tests/unictype/test-categ_Pd.c: Regenerated.
34568         * tests/unictype/test-categ_Pe.c: Regenerated.
34569         * tests/unictype/test-categ_Pf.c: Regenerated.
34570         * tests/unictype/test-categ_Pi.c: Regenerated.
34571         * tests/unictype/test-categ_Po.c: Regenerated.
34572         * tests/unictype/test-categ_Ps.c: Regenerated.
34573         * tests/unictype/test-categ_S.c: Regenerated.
34574         * tests/unictype/test-categ_Sk.c: Regenerated.
34575         * tests/unictype/test-categ_Sm.c: Regenerated.
34576         * tests/unictype/test-categ_So.c: Regenerated.
34577         * tests/unictype/test-ctype_alnum.c: Regenerated.
34578         * tests/unictype/test-ctype_alpha.c: Regenerated.
34579         * tests/unictype/test-ctype_graph.c: Regenerated.
34580         * tests/unictype/test-ctype_lower.c: Regenerated.
34581         * tests/unictype/test-ctype_print.c: Regenerated.
34582         * tests/unictype/test-ctype_punct.c: Regenerated.
34583         * tests/unictype/test-ctype_upper.c: Regenerated.
34584         * tests/unictype/test-decdigit.h: Regenerated.
34585         * tests/unictype/test-digit.h: Regenerated.
34586         * tests/unictype/test-numeric.h: Regenerated.
34587         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34588         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34589         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34590         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34591         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34592         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34593         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34594         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34595         * tests/unictype/test-pr_combining.c: Regenerated.
34596         * tests/unictype/test-pr_dash.c: Regenerated.
34597         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34598         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34599         * tests/unictype/test-pr_deprecated.c: Regenerated.
34600         * tests/unictype/test-pr_diacritic.c: Regenerated.
34601         * tests/unictype/test-pr_extender.c: Regenerated.
34602         * tests/unictype/test-pr_format_control.c: Regenerated.
34603         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34604         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34605         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34606         * tests/unictype/test-pr_id_continue.c: Regenerated.
34607         * tests/unictype/test-pr_id_start.c: Regenerated.
34608         * tests/unictype/test-pr_ideographic.c: Regenerated.
34609         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34610         * tests/unictype/test-pr_lowercase.c: Regenerated.
34611         * tests/unictype/test-pr_math.c: Regenerated.
34612         * tests/unictype/test-pr_numeric.c: Regenerated.
34613         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34614         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34615         Regenerated.
34616         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34617         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34618         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34619         * tests/unictype/test-pr_other_math.c: Regenerated.
34620         * tests/unictype/test-pr_punctuation.c: Regenerated.
34621         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34622         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34623         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34624         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34625         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34626         * tests/unictype/test-pr_uppercase.c: Regenerated.
34627         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34628         * tests/unictype/test-pr_xid_start.c: Regenerated.
34629         * tests/unictype/test-pr_zero_width.c: Regenerated.
34630
34631         Update to Unicode 5.1.0.
34632         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34633         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34634         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34635         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34636         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34637         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34638         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34639         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34640         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34641         (nonspacing_table_ind): Update.
34642         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34643
34644         Update to Unicode 5.1.0.
34645         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34646         code transform.
34647         * lib/uniname/uniname.c (unicode_character_name,
34648         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34649         * lib/uniname/uninames.h: Regenerated.
34650         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34651
34652 2009-02-07  Bruno Haible  <bruno@clisp.org>
34653
34654         Merge gen-ctype and gen-lbrk into a single program.
34655         * lib/gen-uni-tables.c: New file, incorporating
34656         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34657         Add directory prefixes to the names of the generated files.
34658         * lib/unictype/gen-ctype.c: Remove file.
34659         * lib/unilbrk/gen-lbrk.c: Remove file.
34660         * modules/gen-uni-tables: New file.
34661         * modules/unictype/gen-ctype: Remove file.
34662         * modules/unilbrk/gen-lbrk: Remove file.
34663
34664 2009-02-07  Bruno Haible  <bruno@clisp.org>
34665
34666         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34667
34668         New module 'unistr/u32-strcoll'.
34669         * modules/unistr/u32-strcoll: New file.
34670         * lib/unistr/u32-strcoll.c: New file.
34671
34672         New module 'unistr/u16-strcoll'.
34673         * modules/unistr/u16-strcoll: New file.
34674         * lib/unistr/u16-strcoll.c: New file.
34675
34676         New module 'unistr/u8-strcoll'.
34677         * modules/unistr/u8-strcoll: New file.
34678         * lib/unistr/u8-strcoll.c: New file.
34679         * lib/unistr/u-strcoll.h: New file.
34680
34681 2009-02-07  Bruno Haible  <bruno@clisp.org>
34682
34683         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34684         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34685         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34686         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34687         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34688         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34689
34690 2009-02-07  Bruno Haible  <bruno@clisp.org>
34691
34692         Make 64-bit clean.
34693         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34694         output_combclass, output_bidi_category, output_decimal_digit,
34695         output_digit, output_numeric, output_mirror, output_scripts,
34696         output_ident_category): Use proper width specifier in format strings.
34697
34698 2009-02-07  Bruno Haible  <bruno@clisp.org>
34699
34700         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34701         failure behaviour.
34702
34703 2009-02-07  Jim Meyering  <meyering@redhat.com>
34704
34705         regex: avoid compilation failure with upcoming gcc-4.4
34706         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34707         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34708         "... error: integer overflow in preprocessor expression".
34709
34710 2009-02-05  Ben Pfaff  <blp@gnu.org>
34711
34712         Fix link errors on Windows when close module is used.
34713         * modules/close: Add $(LIB_CLOSE) to Link section.
34714         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34715         $(LIB_CLOSE) on Windows.
34716
34717 2009-02-05  Jim Meyering  <meyering@redhat.com>
34718
34719         still avoid unused-parameter warnings, but do it cleanly
34720         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34721         (get_fs_usage): Cast to void instead.
34722         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34723         (dev_from_mount_options, read_file_system_list): Cast to void.
34724         Prompted by Bruno Haible.
34725
34726 2009-02-04  Jim Meyering  <meyering@redhat.com>
34727
34728         fsusage.c: correct copyright year
34729         * lib/fsusage.c: Reflect year in which the change is pushed into
34730
34731         avoid misc. warnings
34732         * lib/fsusage.c (UNUSED_PARAM): Define.
34733         (get_fs_usage): Mark parameter "disk" as unused.
34734         * lib/getugroups.c (getgrent): Use "void" in prototype.
34735         * lib/mountlist.c: Mark unused parameters.
34736         (read_file_system_list): Declare a local with "const".
34737         * lib/nanosleep.c (getnow): Declare static.
34738         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34739
34740         dirfd: set errno upon failure
34741         * lib/dirfd.c: Include <errno.h>.
34742         Set errno to ENOTSUP when returning -1.
34743         * modules/dirfd (Depends-on): Add errno.
34744         Suggested by John Kodis <kodis@comcast.net>.
34745
34746 2009-02-01  Bruno Haible  <bruno@clisp.org>
34747
34748         Don't assume sizeof (long) >= sizeof (void *).
34749         * lib/memcmp.c: Include stdint.h.
34750         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34751         srcp2 to 'const byte *'.
34752         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34753         types to uintptr_t.
34754         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34755         * modules/memcmp (Depends-on): Add stdint.
34756         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34757
34758 2009-01-30  Eric Blake  <ebb9@byu.net>
34759
34760         fix more require-before-expand issues
34761         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34762         expand, AC_PROG_AWK.
34763         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34764
34765 2009-01-28  Eric Blake  <ebb9@byu.net>
34766
34767         version-etc: use consistent URL formatting
34768         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34769         Improve formatting.  Use fputs for string without %.
34770
34771 2009-01-28  Jim Meyering  <meyering@redhat.com>
34772
34773         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34774         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34775         "underquoted definition of NAME" from autoconf-2.59.
34776
34777 2009-01-28  Bruno Haible  <bruno@clisp.org>
34778
34779         * doc/gnulib.texi: Add "Obsolete modules" to index.
34780
34781 2009-01-28  Jim Meyering  <meyering@redhat.com>
34782
34783         useless-if-before-free: recognize more variants
34784         * build-aux/useless-if-before-free: Also recognize e.g.,
34785         if (NULL != p) free (p);
34786
34787 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34788
34789         test-getaddrinfo: skip (don't fail) this test when there's no network
34790         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34791         on the presumption that it means you lack network access.
34792
34793 2009-01-26  Jim Meyering  <meyering@redhat.com>
34794
34795         fflush: avoid warnings on modern systems
34796         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34797         pos and result, into scopes where they're used.
34798
34799 2009-01-26  Eric Blake  <ebb9@byu.net>
34800
34801         Silence warning reintroduced by recent extensions patch.
34802         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34803         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34804         autoconf.
34805
34806         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34807         * m4/00gnulib.m4: New file.
34808         * gnulib-tool (func_get_filelist): Always use it.
34809         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34810         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34811
34812 2009-01-25  Bruno Haible  <bruno@clisp.org>
34813
34814         Make test-quotearg work on MacOS X and AIX.
34815         * tests/test-quotearg.sh: New file.
34816         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34817         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34818         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34819         include <libintl.h>.
34820         (fake_locale): Remove variable.
34821         (gettext, dgettext, dcgettext): Remove functions.
34822         (main): Instead of setting a fake locale, set a real locale. Call
34823         textdomain and bindtextdomain.
34824         * modules/quotearg-tests (Files): Add the new files.
34825         (Depends-on): Add gettext, setenv, unsetenv.
34826         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34827         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34828         Augment TESTS_ENVIRONMENT.
34829
34830 2009-01-25  Bruno Haible  <bruno@clisp.org>
34831
34832         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34833         fr_FR.ISO8859-1 locale on MacOS X.
34834         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34835         ja_JP.eucJP locale on MacOS X.
34836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34837         zh_CN.GB18030 locale on MacOS X.
34838
34839 2009-01-25  Bruno Haible  <bruno@clisp.org>
34840
34841         Avoid link errors on MacOS X 10.3.
34842         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34843         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34844
34845 2009-01-25  Bruno Haible  <bruno@clisp.org>
34846
34847         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34848         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34849         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34850         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34851         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34852         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34853         posix_spawnattr_init, posix_spawnattr_setsigmask,
34854         posix_spawnattr_setflags, posix_spawnattr_destroy.
34855
34856         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34857         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34858         * modules/execute (Files): Remove m4/posix_spawn.m4.
34859         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34860         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34861         posix_spawnattr_init, posix_spawnattr_setsigmask,
34862         posix_spawnattr_setflags, posix_spawnattr_destroy.
34863
34864 2009-01-25  Bruno Haible  <bruno@clisp.org>
34865
34866         * lib/glthread/threadlib.c: Include <stdlib.h>.
34867
34868 2009-01-25  Bruno Haible  <bruno@clisp.org>
34869
34870         * lib/glthread/threadlib.c (dummy): New declaration.
34871
34872 2009-01-25  Bruno Haible  <bruno@clisp.org>
34873
34874         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34875         multibyte characters also for the GB18030 encoding. Don't crash when
34876         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34877
34878 2009-01-25  Bruno Haible  <bruno@clisp.org>
34879
34880         Avoid redefining 'struct random_data' on OSF/1 5.1.
34881         * lib/stdlib.in.h: Include <random.h> if it exists.
34882         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34883         HAVE_RANDOM_H. Include <random.h> when testing whether
34884         'struct random_data' exists.
34885         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34886
34887 2009-01-25  Bruno Haible  <bruno@clisp.org>
34888
34889         Don't install charset.alias on MacOS X >= 10.3.
34890         * lib/localcharset.c (DARWIN7): New macro.
34891         (get_charset_aliases): Hardcode the result for Darwin7.
34892         * modules/localcharset (install-exec-local): Don't install
34893         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34894
34895 2009-01-25  Bruno Haible  <bruno@clisp.org>
34896
34897         Don't install charset.alias on mingw and Cygwin.
34898         * modules/localcharset (install-exec-local): Don't install
34899         charset.alias on mingw and Cygwin, if the file does not yet exist.
34900         The result for these platforms is hardcoded in localcharset.c.
34901
34902 2009-01-25  Bruno Haible  <bruno@clisp.org>
34903
34904         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34906         before requiring AC_USE_SYSTEM_EXTENSIONS.
34907
34908 2009-01-25  Jim Meyering  <meyering@redhat.com>
34909
34910         c-strtod: avoid warnings
34911         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34912         "assignment discards qualifiers from pointer target type" warnings.
34913
34914 2009-01-24  Bruno Haible  <bruno@clisp.org>
34915
34916         Add support for non-UTF-8 locales on MacOS X.
34917         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34918         canonical encodings. For Darwin 7 and newer, don't map traditional
34919         encodings to UTF-8.
34920         Reported by Vincent Lefevre <vincent@vinc17.org>
34921         at <http://savannah.gnu.org/bugs/?25235>.
34922
34923 2009-01-24  Bruno Haible  <bruno@clisp.org>
34924
34925         * doc/gnulib.texi (Obsolete modules): New section.
34926         Reported by Mike Frysinger <vapier@gentoo.org>.
34927
34928 2009-01-24  Bruno Haible  <bruno@clisp.org>
34929
34930         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34931         (%.dvi): New rule.
34932
34933 2009-01-24  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34936         Reported by Eric Blake.
34937
34938 2009-01-24  Bruno Haible  <bruno@clisp.org>
34939
34940         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34941         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34942         Reported by Gary V. Vaughan <gary@gnu.org>.
34943
34944 2009-01-24  Bruno Haible  <bruno@clisp.org>
34945
34946         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34947
34948 2009-01-23  Bruno Haible  <bruno@clisp.org>
34949
34950         Make c-strtod, c-strtold usable in libraries.
34951         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34952         (C_STRTOD): Call strdup instead of xstrdup.
34953         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34954         * modules/c-strtold (Depends-on): Likewise.
34955         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34956         * NEWS: Mention the change.
34957         Reported by Michael Gold <mgold@ncf.ca>.
34958
34959 2009-01-23  Jim Meyering  <meyering@redhat.com>
34960
34961         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34962         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34963         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34964
34965 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34966
34967         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34968         GNU CoreUtils.
34969         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34970         * modules/version-etc (Description): Update.
34971
34972 2009-01-22  Bruno Haible  <bruno@clisp.org>
34973
34974         Cache the C locale object.
34975         * lib/c-strtod.c (c_locale_cache): New variable.
34976         (c_locale): New function.
34977         (C_STRTOD): Use it, and don't call freelocale.
34978         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34979         Suggested by Paolo Bonzini.
34980
34981 2009-01-21  Bruno Haible  <bruno@clisp.org>
34982
34983         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34984         conditions other than overflow.
34985
34986 2009-01-21  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/c-strtod.c: Include errno.h.
34989         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34990         value from STRTOD_L and STRTOD.
34991
34992 2009-01-21  Bruno Haible  <bruno@clisp.org>
34993         and Jim Meyering  <meyering@redhat.com>
34994
34995         nanosleep: skip configure test (fail it) for apple universal builds
34996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34997         universal builds, assume that nanosleep does not work.
34998         * modules/nanosleep (Depends-on): Add multiarch.
34999
35000         mktime: skip configure test (fail it) for apple universal builds
35001         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35002         universal builds, assume that mktime does not work.
35003         * modules/mktime (Depends-on): Add multiarch.
35004
35005 2009-01-21  Eric Blake  <ebb9@byu.net>
35006
35007         multiarch: avoid expand-before-require warning
35008         * modules/multiarch (configure.ac): Require, rather than expand,
35009         gl_MULTIARCH.
35010         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35011         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35012         enforce that all clients require it.  Partial reversion of
35013         2008-12-29 patch.
35014
35015         error: avoid expand-before-require warning
35016         * modules/errno (configure.ac): Require, rather than expand,
35017         gl_HEADER_ERRNO_H.
35018         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35019         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35020         enforce that all clients require it.
35021
35022         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35023         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35024         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35025         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35026
35027 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35028
35029         Revert:
35030         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35031
35032         regex: do not depend on obsolete modules.
35033         * modules/regex: Remove memcmp and memmove.
35034
35035 2009-01-20  Bruno Haible  <bruno@clisp.org>
35036
35037         Make the 'link' module link on Windows NT 4.
35038         * lib/link.c (_WIN32_WINNT): Don't define.
35039         (CreateHardLinkFuncType): New type.
35040         (CreateHardLinkFunc, initialized): New variables.
35041         (initialize): New function.
35042         (link): Invoke CreateHardLink indirectly through the function pointer.
35043
35044 2009-01-20  Bruno Haible  <bruno@clisp.org>
35045
35046         Fix compilation failure on mingw.
35047         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35048
35049 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35050
35051         * doc/c-strtod.texi: Mention a couple of restrictions.
35052
35053 2009-01-20  Jim Meyering  <meyering@redhat.com>
35054
35055         gettimeofday: move more declarations out of functions
35056         * lib/gettimeofday.c: Move extern declarations of tzset and
35057         gmtime out of containing functions.  Prompted by Bruno Haible.
35058
35059 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35060
35061         regex: do not depend on obsolete modules.
35062         * modules/regex: Remove memcmp and memmove.
35063
35064 2009-01-19  Bruno Haible  <bruno@clisp.org>
35065
35066         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35067         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35068         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35069         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35070         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35071
35072 2009-01-19  Bruno Haible  <bruno@clisp.org>
35073
35074         * tests/test-link.c: Include <errno.h>.
35075         (main): Exit with code 77 when a hard link cannot be created due to
35076         the file system.
35077         * tests/test-link.sh: Skip test when a hard link cannot be created due
35078         to the file system.
35079         Suggested by Eric Blake.
35080
35081 2009-01-19  Martin Lambers  <marlam@marlam.de>
35082
35083         * modules/link-tests: New file.
35084         * tests/test-link.sh: New file.
35085         * tests/test-link.c: New file.
35086
35087 2009-01-19  Eric Blake  <ebb9@byu.net>
35088
35089         doc: mention another function added in cygwin 1.7.0
35090         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35091         Another new function in cygwin 1.7.
35092
35093 2009-01-19  Bruno Haible  <bruno@clisp.org>
35094
35095         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35096         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35097         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35098         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35100         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35101         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35102         * m4/md4.m4 (gl_MD4): Likewise.
35103         * m4/md5.m4 (gl_MD5): Likewise.
35104         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35105         * m4/sha1.m4 (gl_SHA1): Likewise.
35106         * m4/sha256.m4 (gl_SHA256): Likewise.
35107         * m4/sha512.m4 (gl_SHA512): Likewise.
35108
35109 2009-01-19  Bruno Haible  <bruno@clisp.org>
35110
35111         * modules/uniname/uniname-tests (Depends-on): Add progname.
35112         * tests/uniname/test-uninames.c: Include progname.h.
35113         (main): Call set_program_name.
35114
35115         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35116         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35117         (main): Call set_program_name.
35118
35119         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35120         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35121         (main): Call set_program_name.
35122
35123         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35124         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35125         (main): Call set_program_name.
35126
35127         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35128         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35129         (main): Call set_program_name.
35130
35131         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35132         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35133         (main): Call set_program_name.
35134
35135         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35136         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35137         (main): Call set_program_name.
35138
35139         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35140         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35141         (main): Call set_program_name.
35142
35143         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35144         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35145         (main): Call set_program_name.
35146
35147 2009-01-19  Eric Blake  <ebb9@byu.net>
35148
35149         test-unistd: test previous patch
35150         * tests/test-unistd.c: Test *_FILENO macros.
35151
35152         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35153         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35154         Guarantee a definition.
35155         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35156         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35157         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35158         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35159         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35160         Likewise.
35161         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35162         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35163         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35164         Likewise.
35165         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35166         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35167         (STDERR_FILENO): Likewise.
35168         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35169         (STDERR_FILENO): Likewise.
35170         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35171         (STDERR_FILENO): Likewise.
35172         Reported by Elbert Pol.
35173
35174 2009-01-19  Eric Blake  <ebb9@byu.net>
35175
35176         doc: mention more functions added in cygwin 1.7.0
35177         * doc/posix-functions/abort.texi (abort): Update wording related
35178         to cygwin.
35179         * doc/posix-functions/daylight.texi (daylight): Likewise.
35180         * doc/posix-functions/optarg.texi (optarg): Likewise.
35181         * doc/posix-functions/optarg.texi (opterr): Likewise.
35182         * doc/posix-functions/optarg.texi (optind): Likewise.
35183         * doc/posix-functions/optarg.texi (optopt): Likewise.
35184         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35185         worked in 1.5.x, and was withdrawn in 1.7.
35186         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35187         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35188         cygwin versions.
35189         * doc/posix-functions/perror.texi (perror): Likewise.
35190         * doc/posix-functions/printf.texi (printf): Likewise.
35191         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35192         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35193         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35194         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35195         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35196         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35197         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35198         Likewise.
35199         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35200         Likewise.
35201         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35202         this function.
35203         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35204         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35205         Likewise.
35206         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35207         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35208         * doc/posix-functions/confstr.texi (confstr): Likewise.
35209         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35210         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35211         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35212         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35213         * doc/posix-functions/fputws.texi (fputws): Likewise.
35214         * doc/posix-functions/fwide.texi (fwide): Likewise.
35215         * doc/posix-functions/getwc.texi (getwc): Likewise.
35216         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35217         * doc/posix-functions/putwc.texi (putwc): Likewise.
35218         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35219         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35220         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35221         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35222         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35223         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35224         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35225         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35226         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35227         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35228         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35229
35230 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35231
35232         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35233         * lib/ioctl.c: Include <sys/ioctl.h>.
35234
35235 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35236
35237         * modules/getdate-tests (Depends-on): Add progname.
35238         * tests/test-getdate.c: Use progname module, to avoid link errors
35239         on non-glibc systems.
35240
35241 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35242
35243         * modules/filenamecat-tests (Depends-on): Add progname.
35244         * modules/fstrcmp-tests (Depends-on): Likewise.
35245
35246         * tests/test-filenamecat.c: Use progname module, to avoid link
35247         errors on non-glibc systems.
35248         * tests/test-fstrcmp.c: Likewise.
35249
35250 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35251
35252         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35253         * lib/gettimeofday.c: Move extern declaration out of function.
35254
35255 2009-01-18  Bruno Haible  <bruno@clisp.org>
35256
35257         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35258         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35259         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35260
35261 2009-01-18  Bruno Haible  <bruno@clisp.org>
35262
35263         * lib/strftime.c (MEMPCPY): Remove unused macro.
35264         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35265
35266 2009-01-18  Martin Lambers  <marlam@marlam.de>
35267
35268         New module 'link'.
35269         * lib/unistd.in.h (link): New declaration.
35270         * lib/link.c: New file.
35271         * m4/link.m4: New file.
35272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35273         HAVE_LINK.
35274         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35275         * modules/link: New file.
35276         * doc/posix-functions/link.texi: Mention the new module.
35277
35278 2009-01-18  Bruno Haible  <bruno@clisp.org>
35279
35280         * tests/test-avltree_list.c (main): Call set_program_name.
35281         * tests/test-avltree_oset.c (main): Likewise.
35282         * tests/test-obstack-printf.c: Include progname.h.
35283         (main): Call set_program_name.
35284         * tests/test-quotearg.c: Include progname.h.
35285         (main): Call set_program_name.
35286         * tests/test-xmemdup0.c: Include progname.h.
35287         (main): Call set_program_name.
35288
35289 2009-01-18  Bruno Haible  <bruno@clisp.org>
35290
35291         New module 'alphasort'.
35292         * lib/dirent.in.h (alphasort): New declaration.
35293         * lib/alphasort.c: New file, from glibc with modifications.
35294         * m4/alphasort.m4: New file.
35295         * modules/alphasort: New file.
35296         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35297         HAVE_ALPHASORT.
35298         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35299         HAVE_ALPHASORT.
35300         * doc/posix-functions/alphasort.texi: Mention the new module and the
35301         portability problems.
35302
35303 2009-01-18  Bruno Haible  <bruno@clisp.org>
35304
35305         New module 'scandir'.
35306         * lib/dirent.in.h (scandir): New declaration.
35307         * lib/scandir.c: New file, from glibc with modifications.
35308         * m4/scandir.m4: New file.
35309         * modules/scandir: New file.
35310         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35311         HAVE_SCANDIR.
35312         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35313         HAVE_SCANDIR.
35314         * doc/posix-functions/scandir.texi: Mention the new module and the
35315         portability problems.
35316
35317 2009-01-17  Bruno Haible  <bruno@clisp.org>
35318
35319         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35320         Update documentation.
35321         (func_remove_suffix): Escape all dots in the suffix. Update
35322         documentation.
35323         (func_filter_filelist): Update documentation.
35324         Reported by Ralf Wildenhues.
35325
35326 2009-01-17  Bruno Haible  <bruno@clisp.org>
35327
35328         * modules/dprintf-posix-tests: New file.
35329         * tests/test-dprintf-posix.sh: New file.
35330         * tests/test-dprintf-posix.c: New file.
35331
35332         New modules 'dprintf', 'dprintf-posix'.
35333         * lib/stdio.in.h (dprintf): New declaration.
35334         * lib/dprintf.c: New file.
35335         * m4/dprintf.m4: New file.
35336         * m4/dprintf-posix.m4: New file.
35337         * modules/dprintf: New file.
35338         * modules/dprintf-posix: New file.
35339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35340         HAVE_DPRINTF, REPLACE_DPRINTF.
35341         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35342         HAVE_DPRINTF, REPLACE_DPRINTF.
35343         * doc/posix-functions/dprintf.texi: Mention the new modules.
35344
35345 2009-01-17  Bruno Haible  <bruno@clisp.org>
35346
35347         * modules/vdprintf-posix-tests: New file.
35348         * tests/test-vdprintf-posix.sh: New file.
35349         * tests/test-vdprintf-posix.c: New file.
35350
35351         New modules 'vdprintf', 'vdprintf-posix'.
35352         * lib/stdio.in.h (vdprintf): New declaration.
35353         * lib/vdprintf.c: New file.
35354         * m4/vdprintf.m4: New file.
35355         * m4/vdprintf-posix.m4: New file.
35356         * modules/vdprintf: New file.
35357         * modules/vdprintf-posix: New file.
35358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35359         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35360         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35361         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35362         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35363
35364 2009-01-17  Bruno Haible  <bruno@clisp.org>
35365
35366         Fix replacement of fopen on mingw.
35367         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35368         mingw.
35369
35370 2009-01-17  Bruno Haible  <bruno@clisp.org>
35371
35372         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35373         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35374
35375 2009-01-17  Bruno Haible  <bruno@clisp.org>
35376
35377         Avoid test-fflush2.sh failure on mingw.
35378         * tests/test-fflush2.c: Include binary-io.h.
35379         (main): Put standard input into binary mode.
35380         * modules/fflush-tests (Depends-on): Add binary-io.
35381
35382 2009-01-17  Bruno Haible  <bruno@clisp.org>
35383
35384         * lib/wchar.in.h: In another particular situation, include only the
35385         system's <wchar.h> file.
35386         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35387         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35388         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35389
35390 2009-01-17  Bruno Haible  <bruno@clisp.org>
35391
35392         Support for stripping executables in --enable-relocatable.
35393         * build-aux/install-reloc: Expect one more argument, or an environment
35394         variable RELOC_STRIP_PROG. If set, strip the destination program and
35395         its wrapper.
35396         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35397         RELOC_STRIP_PROG.
35398         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35399         to set RELOCATABLE_STRIP.
35400         * NEWS: Mention the new Makefile requirement.
35401
35402 2009-01-17  Bruno Haible  <bruno@clisp.org>
35403
35404         * build-aux/install-reloc: Remove debugging information left over by
35405         C compiler on MacOS X.
35406
35407 2009-01-17  Bruno Haible  <bruno@clisp.org>
35408
35409         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35410         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35411         _NSGetExecutablePath.
35412
35413 2009-01-16  Jim Meyering  <meyering@redhat.com>
35414
35415         strerror: avoid warnings about discarding "const"
35416         * lib/strerror.c (rpl_strerror): Instead of returning a const
35417         string from each and every "case", use a variable, and add a single
35418         cast after the switch.
35419
35420 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35421
35422         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35423
35424 2009-01-16  Bruno Haible  <bruno@clisp.org>
35425
35426         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35427         array initializer syntax that also works in C++ mode.
35428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35429
35430 2009-01-16  Jim Meyering  <meyering@redhat.com>
35431
35432         poll: suppress a warning
35433         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35434         to ignore "...unsigned expression < 0 is always false" warnings.
35435
35436 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35437
35438         poll: remove declarations of unused variables
35439         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35440         sockbuf and optlen.
35441
35442 2009-01-15  Bruno Haible  <bruno@clisp.org>
35443
35444         Make fflush-after-ungetc POSIX compliant on BSD systems.
35445         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35446         (clear_ungetc_buffer): Implement also for other systems.
35447         (rpl_fflush): On glibc systems, invoke
35448         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35449         clear_ungetc_buffer after fetching the stream's position, not before.
35450
35451 2009-01-15  Bruno Haible  <bruno@clisp.org>
35452
35453         Make fflush-after-ungetc POSIX compliant on glibc systems.
35454         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35455         after ungetc.
35456         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35457         (rpl_fflush): On glibc systems, simply call the system's fflush
35458         function after clearing the ungetc buffer.
35459         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35460         Instead, lseek only to the end of file, then use the system's fseeko
35461         for the rest. On glibc systems, reset the EOF indicator bit.
35462
35463 2009-01-15  Jim Meyering  <meyering@redhat.com>
35464
35465         openmp.m4: revert quote-adding change, for portability to older autoconf
35466         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35467         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35468         Simon Josefsson noticed the problem when using autoconf-2.61.
35469
35470 2009-01-15  Bruno Haible  <bruno@clisp.org>
35471
35472         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35473         * tests/test-fflush2.c (ASSERT): Always fail.
35474         (main): Add two tests for fflush() after ungetc(), taking into account
35475         the Austin Group's clarification.
35476         Suggested by Eric Blake.
35477
35478 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35479
35480         mktime.m4: remove K&R-style function prototypes
35481         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35482         for the Sun C++ compiler.
35483
35484 2009-01-14  Bruno Haible  <bruno@clisp.org>
35485
35486         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35487         while including <wchar.h>.
35488         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35489         the system's <wchar.h> file.
35490         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35491
35492 2009-01-14  Bruno Haible  <bruno@clisp.org>
35493
35494         * m4/csharp.m4: Don't mention gettext on the serial number line.
35495         * m4/csharpexec.m4: Likewise.
35496         * m4/eaccess.m4: Likewise.
35497         * m4/javaexec.m4: Likewise.
35498         * m4/sig_atomic_t.m4: Likewise.
35499         * m4/tmpdir.m4: Likewise.
35500         * m4/intldir.m4: Bump gettext version.
35501         * m4/lib-ld.m4: Likewise.
35502
35503 2009-01-14  Bruno Haible  <bruno@clisp.org>
35504
35505         * lib/progname.c (set_program_name): Add more comments.
35506         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35507
35508 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35509
35510         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35511         were sys/stat.h does not define it.
35512
35513 2009-01-14  Jim Meyering  <meyering@redhat.com>
35514
35515         many *.m4 files: improve m4 quoting
35516         99% of this change was performed by running the following commands:
35517         git ls-files | grep '\.m4$' | xargs perl -pi \
35518           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35519           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35520           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35521           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35522         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35523         The remainder were to add Copyright dates, increment serial numbers,
35524         undo some changes in comments, exclude m4/intl.m4, and add quotes
35525         around the "1" in ",1" where the unusual spacing prohibited the
35526         above regexps from doing the job.  For more details, see
35527         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35528         * m4/acl.m4: Modified.
35529         * m4/afs.m4: Likewise.
35530         * m4/alloca.m4: Likewise.
35531         * m4/argp.m4: Likewise.
35532         * m4/argz.m4: Likewise.
35533         * m4/atexit.m4: Likewise.
35534         * m4/bison-i18n.m4: Likewise.
35535         * m4/bison.m4: Likewise.
35536         * m4/byteswap.m4: Likewise.
35537         * m4/c-stack.m4: Likewise.
35538         * m4/c-strtod.m4: Likewise.
35539         * m4/calloc.m4: Likewise.
35540         * m4/canonicalize-lgpl.m4: Likewise.
35541         * m4/chown.m4: Likewise.
35542         * m4/clock_time.m4: Likewise.
35543         * m4/codeset.m4: Likewise.
35544         * m4/copy-file.m4: Likewise.
35545         * m4/csharp.m4: Likewise.
35546         * m4/csharpcomp.m4: Likewise.
35547         * m4/csharpexec.m4: Likewise.
35548         * m4/d-ino.m4: Likewise.
35549         * m4/d-type.m4: Likewise.
35550         * m4/dirfd.m4: Likewise.
35551         * m4/double-slash-root.m4: Likewise.
35552         * m4/eaccess.m4: Likewise.
35553         * m4/eealloc.m4: Likewise.
35554         * m4/environ.m4: Likewise.
35555         * m4/errno_h.m4: Likewise.
35556         * m4/euidaccess.m4: Likewise.
35557         * m4/execute.m4: Likewise.
35558         * m4/fatal-signal.m4: Likewise.
35559         * m4/fchdir.m4: Likewise.
35560         * m4/fcntl_h.m4: Likewise.
35561         * m4/fileblocks.m4: Likewise.
35562         * m4/filenamecat.m4: Likewise.
35563         * m4/findprog.m4: Likewise.
35564         * m4/flexmember.m4: Likewise.
35565         * m4/fnmatch.m4: Likewise.
35566         * m4/fopen.m4: Likewise.
35567         * m4/fpending.m4: Likewise.
35568         * m4/fprintf-posix.m4: Likewise.
35569         * m4/free.m4: Likewise.
35570         * m4/frexp.m4: Likewise.
35571         * m4/frexpl.m4: Likewise.
35572         * m4/fsusage.m4: Likewise.
35573         * m4/ftruncate.m4: Likewise.
35574         * m4/gc-camellia.m4: Likewise.
35575         * m4/gc-random.m4: Likewise.
35576         * m4/gc.m4: Likewise.
35577         * m4/getaddrinfo.m4: Likewise.
35578         * m4/getcwd-abort-bug.m4: Likewise.
35579         * m4/getcwd-path-max.m4: Likewise.
35580         * m4/getdate.m4: Likewise.
35581         * m4/getdomainname.m4: Likewise.
35582         * m4/getgroups.m4: Likewise.
35583         * m4/gethostname.m4: Likewise.
35584         * m4/gethrxtime.m4: Likewise.
35585         * m4/getline.m4: Likewise.
35586         * m4/getloadavg.m4: Likewise.
35587         * m4/getndelim2.m4: Likewise.
35588         * m4/getpass.m4: Likewise.
35589         * m4/gettext.m4: Likewise.
35590         * m4/gettime.m4: Likewise.
35591         * m4/gettimeofday.m4: Likewise.
35592         * m4/gnulib-common.m4: Likewise.
35593         * m4/group-member.m4: Likewise.
35594         * m4/host-os.m4: Likewise.
35595         * m4/iconv.m4: Likewise.
35596         * m4/iconv_open.m4: Likewise.
35597         * m4/inet_ntop.m4: Likewise.
35598         * m4/inet_pton.m4: Likewise.
35599         * m4/inline.m4: Likewise.
35600         * m4/intldir.m4: Likewise.
35601         * m4/intlmacosx.m4: Likewise.
35602         * m4/intmax.m4: Likewise.
35603         * m4/intmax_t.m4: Likewise.
35604         * m4/inttypes.m4: Likewise.
35605         * m4/inttypes_h.m4: Likewise.
35606         * m4/inttypes-pri.m4: Likewise.
35607         * m4/isapipe.m4: Likewise.
35608         * m4/isnand.m4: Likewise.
35609         * m4/isnanf.m4: Likewise.
35610         * m4/isnanl.m4: Likewise.
35611         * m4/javacomp.m4: Likewise.
35612         * m4/javaexec.m4: Likewise.
35613         * m4/jm-winsz1.m4: Likewise.
35614         * m4/jm-winsz2.m4: Likewise.
35615         * m4/lchown.m4: Likewise.
35616         * m4/lcmessage.m4: Likewise.
35617         * m4/ldexpl.m4: Likewise.
35618         * m4/lib-ld.m4: Likewise.
35619         * m4/lib-link.m4: Likewise.
35620         * m4/libsigsegv.m4: Likewise.
35621         * m4/link-follow.m4: Likewise.
35622         * m4/localcharset.m4: Likewise.
35623         * m4/locale-fr.m4: Likewise.
35624         * m4/locale-ja.m4: Likewise.
35625         * m4/locale-tr.m4: Likewise.
35626         * m4/locale-zh.m4: Likewise.
35627         * m4/lock.m4: Likewise.
35628         * m4/longlong.m4: Likewise.
35629         * m4/ls-mntd-fs.m4: Likewise.
35630         * m4/lstat.m4: Likewise.
35631         * m4/malloc.m4: Likewise.
35632         * m4/mathl.m4: Likewise.
35633         * m4/mbrtowc.m4: Likewise.
35634         * m4/mbstate_t.m4: Likewise.
35635         * m4/mbswidth.m4: Likewise.
35636         * m4/memchr.m4: Likewise.
35637         * m4/memcmp.m4: Likewise.
35638         * m4/memcpy.m4: Likewise.
35639         * m4/memmem.m4: Likewise.
35640         * m4/memmove.m4: Likewise.
35641         * m4/mempcpy.m4: Likewise.
35642         * m4/memrchr.m4: Likewise.
35643         * m4/memset.m4: Likewise.
35644         * m4/minmax.m4: Likewise.
35645         * m4/mkdir-slash.m4: Likewise.
35646         * m4/mkdtemp.m4: Likewise.
35647         * m4/mktime.m4: Likewise.
35648         * m4/mmap-anon.m4: Likewise.
35649         * m4/mountlist.m4: Likewise.
35650         * m4/nanosleep.m4: Likewise.
35651         * m4/nls.m4: Likewise.
35652         * m4/nocrash.m4: Likewise.
35653         * m4/open.m4: Likewise.
35654         * m4/openat.m4: Likewise.
35655         * m4/openmp.m4: Likewise.
35656         * m4/pathmax.m4: Likewise.
35657         * m4/perl.m4: Likewise.
35658         * m4/physmem.m4: Likewise.
35659         * m4/pipe.m4: Likewise.
35660         * m4/po.m4: Likewise.
35661         * m4/poll.m4: Likewise.
35662         * m4/posixtm.m4: Likewise.
35663         * m4/posixver.m4: Likewise.
35664         * m4/printf-frexp.m4: Likewise.
35665         * m4/printf-frexpl.m4: Likewise.
35666         * m4/printf-posix.m4: Likewise.
35667         * m4/printf-posix-rpl.m4: Likewise.
35668         * m4/printf.m4: Likewise.
35669         * m4/progtest.m4: Likewise.
35670         * m4/putenv.m4: Likewise.
35671         * m4/readline.m4: Likewise.
35672         * m4/readlink.m4: Likewise.
35673         * m4/readutmp.m4: Likewise.
35674         * m4/realloc.m4: Likewise.
35675         * m4/regex.m4: Likewise.
35676         * m4/relocatable.m4: Likewise.
35677         * m4/relocatable-lib.m4: Likewise.
35678         * m4/rename-dest-slash.m4: Likewise.
35679         * m4/rename.m4: Likewise.
35680         * m4/rmdir-errno.m4: Likewise.
35681         * m4/rmdir.m4: Likewise.
35682         * m4/roundf.m4: Likewise.
35683         * m4/roundl.m4: Likewise.
35684         * m4/rpmatch.m4: Likewise.
35685         * m4/save-cwd.m4: Likewise.
35686         * m4/selinux-selinux-h.m4: Likewise.
35687         * m4/setenv.m4: Likewise.
35688         * m4/settime.m4: Likewise.
35689         * m4/sig2str.m4: Likewise.
35690         * m4/sig_atomic_t.m4: Likewise.
35691         * m4/signalblocking.m4: Likewise.
35692         * m4/signbit.m4: Likewise.
35693         * m4/sigpipe.m4: Likewise.
35694         * m4/sockets.m4: Likewise.
35695         * m4/sockpfaf.m4: Likewise.
35696         * m4/st_dm_mode.m4: Likewise.
35697         * m4/stat-time.m4: Likewise.
35698         * m4/stdbool.m4: Likewise.
35699         * m4/stdint.m4: Likewise.
35700         * m4/stdint_h.m4: Likewise.
35701         * m4/stpcpy.m4: Likewise.
35702         * m4/stpncpy.m4: Likewise.
35703         * m4/strcase.m4: Likewise.
35704         * m4/strchrnul.m4: Likewise.
35705         * m4/strcspn.m4: Likewise.
35706         * m4/strdup.m4: Likewise.
35707         * m4/strftime.m4: Likewise.
35708         * m4/strndup.m4: Likewise.
35709         * m4/strnlen.m4: Likewise.
35710         * m4/strpbrk.m4: Likewise.
35711         * m4/strptime.m4: Likewise.
35712         * m4/strsep.m4: Likewise.
35713         * m4/strtod.m4: Likewise.
35714         * m4/strtoimax.m4: Likewise.
35715         * m4/strtok_r.m4: Likewise.
35716         * m4/strtol.m4: Likewise.
35717         * m4/strtoll.m4: Likewise.
35718         * m4/strtoul.m4: Likewise.
35719         * m4/strtoull.m4: Likewise.
35720         * m4/strtoumax.m4: Likewise.
35721         * m4/strverscmp.m4: Likewise.
35722         * m4/threadlib.m4: Likewise.
35723         * m4/timegm.m4: Likewise.
35724         * m4/tm_gmtoff.m4: Likewise.
35725         * m4/tmpdir.m4: Likewise.
35726         * m4/tmpfile.m4: Likewise.
35727         * m4/tzset.m4: Likewise.
35728         * m4/uintmax_t.m4: Likewise.
35729         * m4/unlinkdir.m4: Likewise.
35730         * m4/unlocked-io.m4: Likewise.
35731         * m4/uptime.m4: Likewise.
35732         * m4/userspec.m4: Likewise.
35733         * m4/utimbuf.m4: Likewise.
35734         * m4/utime.m4: Likewise.
35735         * m4/utimes-null.m4: Likewise.
35736         * m4/utimes.m4: Likewise.
35737         * m4/vararrays.m4: Likewise.
35738         * m4/vasnprintf.m4: Likewise.
35739         * m4/vfprintf-posix.m4: Likewise.
35740         * m4/vprintf-posix.m4: Likewise.
35741         * m4/wait-process.m4: Likewise.
35742         * m4/wchar_t.m4: Likewise.
35743         * m4/wint_t.m4: Likewise.
35744         * m4/write-any-file.m4: Likewise.
35745         * m4/yield.m4: Likewise.
35746
35747 2009-01-13  Bruno Haible  <bruno@clisp.org>
35748
35749         Avoid test-copy-file.sh failures when ACL support insufficient.
35750         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35751         TESTS_ENVIRONMENT.
35752         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35753         Reported by Jim Meyering.
35754
35755 2009-01-13  Bruno Haible  <bruno@clisp.org>
35756
35757         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35758         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35759         * modules/unistdio/u8-printf-parse (Files): Likewise.
35760         * modules/unistdio/u32-printf-parse (Files): Likewise.
35761         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35762
35763 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35764
35765         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35766         and m4/inttypes_h.m4 too.
35767
35768 2009-01-12  Eric Blake  <ebb9@byu.net>
35769
35770         tests: IRIX 6.2 cc can't compile -0.0 into .data
35771         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35772         rather than at compile-time.
35773         * tests/test-floorl.c (minus_zero): Likewise.
35774         * tests/test-frexpl.c (minus_zero): Likewise.
35775         * tests/test-isnan.c (minus_zerol): Likewise.
35776         * tests/test-isnanl.h (minus_zero): Likewise.
35777         * tests/test-ldexpl.c (minus_zero): Likewise.
35778         * tests/test-roundl.c (minus_zero): Likewise.
35779         * tests/test-signbit.c (minus_zerol): Likewise.
35780         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35781         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35782         * tests/test-truncl.c (minus_zero): Likewise.
35783         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35784         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35785         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35786
35787 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35788
35789         regex: fix glibc bug 9697
35790         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35791         handling.
35792
35793 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35794
35795         regex: fix glibc bug 697
35796         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35797         being NULL also if there are no backreferences.
35798
35799 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35800
35801         regex: merge glibc changes
35802         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35803         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35804         re_string_skip_chars, re_string_reconstruct): Likewise.
35805         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35806
35807 2009-01-07  Jim Meyering  <meyering@redhat.com>
35808
35809         poll: filter through cppi
35810         * lib/poll.c: Indent cpp directives to reflect nesting.
35811
35812 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35813
35814         poll: don't return uninitialized
35815         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35816
35817 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35818
35819         avoid compile failure on AIX 6.1
35820         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35821         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35822
35823 2009-01-04  Jim Meyering  <meyering@redhat.com>
35824
35825         remove duplicate inclusion of <stdio.h>
35826         * tests/test-fprintf-posix.c: Likewise.
35827         * tests/test-printf-posix.c: Likewise.
35828         * tests/test-snprintf-posix.c: Likewise.
35829         * tests/test-sprintf-posix.c: Likewise.
35830         * tests/test-vasprintf-posix.c: Likewise.
35831         * tests/test-vfprintf-posix.c: Likewise.
35832         * tests/test-vprintf-posix.c: Likewise.
35833         * tests/test-vsnprintf-posix.c: Likewise.
35834         * tests/test-vsprintf-posix.c: Likewise.
35835
35836 2009-01-03  Jim Meyering  <meyering@redhat.com>
35837
35838         gnulib-tool: fix sed-based filtering
35839         * gnulib-tool (func_filter_filelist): Remove extra backslash
35840         in sed_fff_filter definition.
35841
35842 2009-01-02  Jim Meyering  <meyering@redhat.com>
35843
35844         strftime: avoid compilation failure on Solaris 2.6
35845         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35846         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35847         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35848         be available.  Reported by Tom G. Christensen.  Details in
35849         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35850
35851 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35852             Bruno Haible  <bruno@clisp.org>
35853
35854         Speed up gnulib-tool by doing more string processing through shell
35855         built-ins.
35856         * gnulib-tool (fast_func_append): New variable.
35857         (func_remove_prefix, func_remove_suffix): New functions.
35858         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35859         (func_filter_filelist): New function.
35860         (func_get_dependencies): Use func_remove_suffix instead of sed.
35861         (func_get_automake_snippet): Use func_filter_filelist instead of a
35862         subshell and sed invocation.
35863
35864 2009-01-01  Bruno Haible  <bruno@clisp.org>
35865
35866         Fix a security bug.
35867         * gnulib-tool (func_import, import, update): Don't allow the characters
35868         '"', '$', '`', '\' in macro arguments that become part of commands that
35869         are evaluated.
35870
35871 2009-01-01  Bruno Haible  <bruno@clisp.org>
35872
35873         * gnulib-tool (func_reset_sigpipe): Add more comments.
35874
35875 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35876
35877         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35878         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35879         already know the answer.
35880
35881 2009-01-01  Jim Meyering  <meyering@redhat.com>
35882
35883         * lib/version-etc.c (version_etc_va): Update copyright year.
35884
35885 2008-12-30  Bruno Haible  <bruno@clisp.org>
35886
35887         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35888         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35889         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35890
35891 2008-12-29  Eric Blake  <ebb9@byu.net>
35892
35893         multiarch: avoid autoconf AC_REQUIRE bug
35894         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35895         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35896         2.63 and older.
35897         Reported by Bruno Haible, and analyzed in
35898         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35899
35900 2008-12-29  Bruno Haible  <bruno@clisp.org>
35901
35902         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35903         files in subdirectories correctly.
35904         Reported by Ralf Wildenhues.
35905
35906 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35907
35908         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35909         rather than 'join FILE -', for Solaris join.
35910
35911 2008-12-29  Bruno Haible  <bruno@clisp.org>
35912
35913         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35914         quoting.
35915         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35916         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35917         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35918         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35919         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35920         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35921         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35922         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35923         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35924         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35925         * m4/nls.m4 (AM_NLS): Likewise.
35926         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35927         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35928         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35929         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35930         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35931         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35932         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35933         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35934         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35935         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35936         * m4/xsize.m4 (gl_XSIZE): Likewise.
35937         Suggested by Jim Meyering.
35938
35939 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35940
35941         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35942         * lib/parse-duration.c: use a switch instead of cascading if's.
35943
35944 2008-12-29  Eric Blake  <ebb9@byu.net>
35945
35946         wchar.h: supply WEOF on Irix 5.3
35947         * lib/wchar.in.h (wint_t): Also supply WEOF.
35948         * lib/wctype.in.h (wint_t): Likewise.
35949         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35950         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35951         Reported by Tom G. Christensen.
35952
35953 2008-12-26  Bruno Haible  <bruno@clisp.org>
35954
35955         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35956         i486, i586, i686.
35957
35958 2008-12-26  Bruno Haible  <bruno@clisp.org>
35959
35960         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35961
35962 2008-12-26  Bruno Haible  <bruno@clisp.org>
35963
35964         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35965         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35966         not __STDC_CONSTANT_MACROS.
35967         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35968
35969 2008-12-25  Bruno Haible  <bruno@clisp.org>
35970
35971         Add support for universal builds to vasnprintf.
35972         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35973         universal builds, guess no.
35974         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35975         * modules/vasprintf-posix (Depends-on): Likewise.
35976         * modules/fprintf-posix (Depends-on): Likewise.
35977         * modules/vfprintf-posix (Depends-on): Likewise.
35978         * modules/snprintf-posix (Depends-on): Likewise.
35979         * modules/vsnprintf-posix (Depends-on): Likewise.
35980         * modules/sprintf-posix (Depends-on): Likewise.
35981         * modules/vsprintf-posix (Depends-on): Likewise.
35982         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35983         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35984         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35985         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35986         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35987         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35989
35990         Add support for universal builds to <inttypes.h>.
35991         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35992         _SCNu64_PREFIX): In Apple
35993         universal builds, define directly, using _LP64.
35994         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35995         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35996         * modules/inttypes (Depends-on): Add multiarch.
35997         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35998
35999         Add support for universal builds to <stdint.h>.
36000         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36001         universal builds, define directly, using _LP64.
36002         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36003         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36004         and size_t.
36005         * modules/stdint (Depends-on): Add multiarch.
36006         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36007
36008         New module 'multiarch'.
36009         * modules/multiarch: New file.
36010         * m4/multiarch.m4: New file.
36011
36012 2008-12-25  Bruno Haible  <bruno@clisp.org>
36013
36014         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36015
36016 2008-12-25  Bruno Haible  <bruno@clisp.org>
36017
36018         * modules/btowc (License): Relicense under LGPLv2+.
36019         * modules/mbsinit (License): Likewise.
36020         * modules/mbrtowc (License): Likewise.
36021         * modules/wcrtomb (License): Likewise.
36022         * modules/streq (License): Likewise.
36023         Reported by David Lutterkort <lutter@redhat.com>.
36024
36025 2008-12-23  Bruno Haible  <bruno@clisp.org>
36026
36027         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36028
36029 2008-12-23  Bruno Haible  <bruno@clisp.org>
36030
36031         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36033         GETADDRINFO_LIB, not in LIBS.
36034         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36035         * modules/canon-host (Link): Likewise.
36036         * NEWS: Mention the change.
36037         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36038         GETADDRINFO_LIB.
36039
36040 2008-12-22  Bruno Haible  <bruno@clisp.org>
36041
36042         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36043         * doc/posix-functions/iswalpha_l.texi: Likewise.
36044         * doc/posix-functions/iswblank_l.texi: Likewise.
36045         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36046         * doc/posix-functions/iswctype_l.texi: Likewise.
36047         * doc/posix-functions/iswdigit_l.texi: Likewise.
36048         * doc/posix-functions/iswgraph_l.texi: Likewise.
36049         * doc/posix-functions/iswlower_l.texi: Likewise.
36050         * doc/posix-functions/iswprint_l.texi: Likewise.
36051         * doc/posix-functions/iswpunct_l.texi: Likewise.
36052         * doc/posix-functions/iswspace_l.texi: Likewise.
36053         * doc/posix-functions/iswupper_l.texi: Likewise.
36054         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36055         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36056         * doc/posix-functions/open_wmemstream.texi: Likewise.
36057         * doc/posix-functions/swscanf.texi: Likewise.
36058         * doc/posix-functions/towctrans_l.texi: Likewise.
36059         * doc/posix-functions/towlower.texi: Likewise.
36060         * doc/posix-functions/towlower_l.texi: Likewise.
36061         * doc/posix-functions/towupper.texi: Likewise.
36062         * doc/posix-functions/towupper_l.texi: Likewise.
36063         * doc/posix-functions/vfwprintf.texi: Likewise.
36064         * doc/posix-functions/vfwscanf.texi: Likewise.
36065         * doc/posix-functions/vswscanf.texi: Likewise.
36066         * doc/posix-functions/vwprintf.texi: Likewise.
36067         * doc/posix-functions/vwscanf.texi: Likewise.
36068         * doc/posix-functions/wcpcpy.texi: Likewise.
36069         * doc/posix-functions/wcpncpy.texi: Likewise.
36070         * doc/posix-functions/wcscasecmp.texi: Likewise.
36071         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36072         * doc/posix-functions/wcscoll_l.texi: Likewise.
36073         * doc/posix-functions/wcsdup.texi: Likewise.
36074         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36075         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36076         * doc/posix-functions/wcsnlen.texi: Likewise.
36077         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36078         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36079         * doc/posix-functions/wctrans_l.texi: Likewise.
36080         * doc/posix-functions/wctype_l.texi: Likewise.
36081         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36082         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36083         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36084         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36085         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36086         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36087         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36088         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36089         * doc/glibc-functions/wcschrnul.texi: Likewise.
36090         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36091         * doc/glibc-functions/wcstod_l.texi: Likewise.
36092         * doc/glibc-functions/wcstof_l.texi: Likewise.
36093         * doc/glibc-functions/wcstol_l.texi: Likewise.
36094         * doc/glibc-functions/wcstold_l.texi: Likewise.
36095         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36096         * doc/glibc-functions/wcstoq.texi: Likewise.
36097         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36098         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36099         * doc/glibc-functions/wcstouq.texi: Likewise.
36100         * doc/glibc-functions/wmempcpy.texi: Likewise.
36101
36102 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36103             Eric Blake  <ebb9@byu.net>
36104             Paolo Bonzini  <bonzini@gnu.org>
36105             Bruno Haible  <bruno@clisp.org>
36106
36107         Make c-stack work on Haiku.
36108         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36109         (c_stack_action): Use SA_ONSTACK flag.
36110
36111 2008-12-22  Bruno Haible  <bruno@clisp.org>
36112
36113         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36114
36115 2008-12-22  Bruno Haible  <bruno@clisp.org>
36116
36117         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36118         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36119         being overridden.
36120         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36121         New macros.
36122         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36124         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36125         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36126
36127 2008-12-22  Bruno Haible  <bruno@clisp.org>
36128
36129         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36130         from test code.
36131
36132 2008-12-22  Eric Blake  <ebb9@byu.net>
36133
36134         Avoid gcc warnings on cygwin.
36135         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36136         Avoid unused variable.
36137         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36138         Likewise.
36139
36140 2008-12-22  Bruno Haible  <bruno@clisp.org>
36141
36142         Remove HAVE_MBRTOWC conditionals.
36143         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36144         (mbscasecmp): Assume mbrtowc function.
36145         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36146         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36147         * lib/mbschr.c: Include mbuiter.h unconditionally.
36148         (mbschr): Assume mbrtowc function.
36149         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36150         (mbscspn): Assume mbrtowc function.
36151         * lib/mbslen.c: Include mbuiter.h unconditionally.
36152         (mbslen): Assume mbrtowc function.
36153         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36154         (mbsncasecmp): Assume mbrtowc function.
36155         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36156         (mbsnlen): Assume mbrtowc function.
36157         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36158         (mbspbrk): Assume mbrtowc function.
36159         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36160         (mbspcasecmp): Assume mbrtowc function.
36161         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36162         (mbsrchr): Assume mbrtowc function.
36163         * lib/mbssep.c: Include mbuiter.h unconditionally.
36164         (mbssep): Assume mbrtowc function.
36165         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36166         (mbsspn): Assume mbrtowc function.
36167         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36168         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36169         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36170         (mbstok_r): Assume mbrtowc function.
36171         * lib/propername.c: Include mbuiter.h unconditionally.
36172         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36173         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36174         (trim2): Assume mbrtowc function.
36175         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36176         (mbsnwidth): Assume mbrtowc function.
36177         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36178         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36179         fallback definitions.
36180         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36181
36182 2008-12-22  Bruno Haible  <bruno@clisp.org>
36183
36184         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36185
36186 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36187
36188         * modules/regex: Request emulations for the mb*/wc* functions we need.
36189         * m4/regex.m4: Don't look for those functions here.
36190         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36191
36192 2008-12-22  Bruno Haible  <bruno@clisp.org>
36193
36194         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36195
36196 2008-12-21  Bruno Haible  <bruno@clisp.org>
36197
36198         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36199         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36200         (Include): Remove conditionalization.
36201         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36202         (Include): Remove conditionalization.
36203         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36204         (Include): Remove conditionalization.
36205         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36206         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36207         * NEWS: Mention the change.
36208         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36209         via Sergey Poznyakoff <gray@gnu.org.ua>.
36210
36211 2008-12-21  Bruno Haible  <bruno@clisp.org>
36212
36213         * MODULES.html.sh (Extended multibyte and wide character utilities
36214         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36215         wcrtomb, wcsrtombs.
36216         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36217         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36218         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36219         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36220
36221 2008-12-21  Bruno Haible  <bruno@clisp.org>
36222
36223         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36224
36225 2008-12-21  Bruno Haible  <bruno@clisp.org>
36226
36227         * modules/wcsnrtombs-tests: New file.
36228         * tests/test-wcsnrtombs1.sh: New file.
36229         * tests/test-wcsnrtombs2.sh: New file.
36230         * tests/test-wcsnrtombs3.sh: New file.
36231         * tests/test-wcsnrtombs4.sh: New file.
36232         * tests/test-wcsnrtombs.c: New file.
36233
36234         New module 'wcsnrtombs'.
36235         * lib/wchar.in.h (wcsnrtombs): New declaration.
36236         * lib/wcsnrtombs.c: New file.
36237         * lib/wcsrtombs-state.c: New file.
36238         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36239         (internal_state): Remove variable.
36240         * m4/wcsnrtombs.m4: New file.
36241         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36242         compilation units.
36243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36244         HAVE_WCSNRTOMBS.
36245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36246         HAVE_WCSNRTOMBS.
36247         * modules/wcsnrtombs: New file.
36248         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36249         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36250
36251 2008-12-21  Bruno Haible  <bruno@clisp.org>
36252
36253         * modules/wcsrtombs-tests: New file.
36254         * tests/test-wcsrtombs1.sh: New file.
36255         * tests/test-wcsrtombs2.sh: New file.
36256         * tests/test-wcsrtombs3.sh: New file.
36257         * tests/test-wcsrtombs4.sh: New file.
36258         * tests/test-wcsrtombs.c: New file.
36259
36260         New module 'wcsrtombs'.
36261         * lib/wchar.in.h (wcsrtombs): New declaration.
36262         * lib/wcsrtombs.c: New file.
36263         * m4/wcsrtombs.m4: New file.
36264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36265         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36266         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36267         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36268         * modules/wcsrtombs: New file.
36269         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36270         bugs.
36271
36272 2008-12-21  Bruno Haible  <bruno@clisp.org>
36273
36274         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36275         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36276         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36277         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36278         if not correct.
36279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36280         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36281         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36282         m4/locale-zh.m4, m4/codeset.m4.
36283         * doc/posix-functions/wcrtomb.texi: Document the bug.
36284
36285 2008-12-21  Bruno Haible  <bruno@clisp.org>
36286
36287         Work around a btowc() bug on IRIX 6.5.
36288         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36289         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36290         REPLACE_WTOBC if not.
36291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36292         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36293         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36294
36295 2008-12-21  Bruno Haible  <bruno@clisp.org>
36296
36297         * modules/wcrtomb-tests: New file.
36298         * tests/test-wcrtomb.sh: New file.
36299         * tests/test-wcrtomb.c: New file.
36300
36301         New module 'wcrtomb'.
36302         * lib/wchar.in.h (wcrtomb): New declaration.
36303         * lib/wcrtomb.c: New file.
36304         * m4/wcrtomb.m4: New file.
36305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36306         HAVE_WCRTOMB.
36307         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36308         HAVE_WCRTOMB.
36309         * modules/wcrtomb: New file.
36310         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36311
36312 2008-12-21  Bruno Haible  <bruno@clisp.org>
36313
36314         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36315         * modules/mbsrtowcs (Files): Likewise.
36316         * modules/wctob (Files): Likewise.
36317         * modules/c-strcase-tests (Files): Likewise.
36318         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36319         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36320         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36321         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36322         * modules/vasnprintf-posix-tests (Files): Likewise.
36323
36324 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36325
36326         gitlog-to-changelog: pass all command-line arguments to git-log
36327         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36328         it is sometimes convenient to filter the commits in various ways.
36329         gitlog-to-changelog only allows --since to specify a start date,
36330         but git-log itself supports many other filtering mechanisms.
36331         At the moment, I want to filter by branch name.  Rather than
36332         adding a --branch option to gitlog-to-changelog, it seems more
36333         flexible to simply pass all options directly to git-log and let
36334         git do the work.  Notice that this effectively makes --since a
36335         redundant option for gitlog-to-changelog, but removing it would
36336         require current usage to change since calls would then require
36337         an additional '--'.
36338
36339 2008-12-21  Bruno Haible  <bruno@clisp.org>
36340
36341         * modules/mbsnrtowcs-tests: New file.
36342         * tests/test-mbsnrtowcs1.sh: New file.
36343         * tests/test-mbsnrtowcs2.sh: New file.
36344         * tests/test-mbsnrtowcs3.sh: New file.
36345         * tests/test-mbsnrtowcs4.sh: New file.
36346         * tests/test-mbsnrtowcs.c: New file.
36347
36348         New module 'mbsnrtowcs'.
36349         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36350         * lib/mbsnrtowcs.c: New file.
36351         * lib/mbsrtowcs-state.c: New file.
36352         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36353         (internal_state): Remove variable.
36354         * m4/mbsnrtowcs.m4: New file.
36355         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36356         compilation units.
36357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36358         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36359         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36360         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36361         * modules/mbsnrtowcs: New file.
36362         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36363         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36364         portability problem.
36365
36366 2008-12-21  Bruno Haible  <bruno@clisp.org>
36367
36368         Work around mbsrtowcs bug.
36369         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36370         (gl_FUNC_MBSRTOWCS): Invoke it.
36371         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36372         m4/locale-zh.m4.
36373         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36374
36375 2008-12-21  Bruno Haible  <bruno@clisp.org>
36376
36377         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36378
36379 2008-12-21  Bruno Haible  <bruno@clisp.org>
36380
36381         Update doc for AIX.
36382         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36383         16-bit wchar_t type.
36384         * doc/posix-functions/btowc.texi: Likewise.
36385         * doc/posix-functions/fgetwc.texi: Likewise.
36386         * doc/posix-functions/fgetws.texi: Likewise.
36387         * doc/posix-functions/fputwc.texi: Likewise.
36388         * doc/posix-functions/fputws.texi: Likewise.
36389         * doc/posix-functions/fwide.texi: Likewise.
36390         * doc/posix-functions/fwprintf.texi: Likewise.
36391         * doc/posix-functions/fwscanf.texi: Likewise.
36392         * doc/posix-functions/getwchar.texi: Likewise.
36393         * doc/posix-functions/getwc.texi: Likewise.
36394         * doc/posix-functions/iswalnum.texi: Likewise.
36395         * doc/posix-functions/iswalpha.texi: Likewise.
36396         * doc/posix-functions/iswblank.texi: Likewise.
36397         * doc/posix-functions/iswcntrl.texi: Likewise.
36398         * doc/posix-functions/iswctype.texi: Likewise.
36399         * doc/posix-functions/iswdigit.texi: Likewise.
36400         * doc/posix-functions/iswgraph.texi: Likewise.
36401         * doc/posix-functions/iswlower.texi: Likewise.
36402         * doc/posix-functions/iswprint.texi: Likewise.
36403         * doc/posix-functions/iswpunct.texi: Likewise.
36404         * doc/posix-functions/iswspace.texi: Likewise.
36405         * doc/posix-functions/iswupper.texi: Likewise.
36406         * doc/posix-functions/iswxdigit.texi: Likewise.
36407         * doc/posix-functions/mbrtowc.texi: Likewise.
36408         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36409         * doc/posix-functions/mbstowcs.texi: Likewise.
36410         * doc/posix-functions/mbtowc.texi: Likewise.
36411         * doc/posix-functions/putwchar.texi: Likewise.
36412         * doc/posix-functions/putwc.texi: Likewise.
36413         * doc/posix-functions/swprintf.texi: Likewise.
36414         * doc/posix-functions/tolower.texi: Likewise.
36415         * doc/posix-functions/toupper.texi: Likewise.
36416         * doc/posix-functions/towctrans.texi: Likewise.
36417         * doc/posix-functions/ungetwc.texi: Likewise.
36418         * doc/posix-functions/vswprintf.texi: Likewise.
36419         * doc/posix-functions/wcrtomb.texi: Likewise.
36420         * doc/posix-functions/wcscat.texi: Likewise.
36421         * doc/posix-functions/wcschr.texi: Likewise.
36422         * doc/posix-functions/wcscmp.texi: Likewise.
36423         * doc/posix-functions/wcscoll.texi: Likewise.
36424         * doc/posix-functions/wcscpy.texi: Likewise.
36425         * doc/posix-functions/wcscspn.texi: Likewise.
36426         * doc/posix-functions/wcsftime.texi: Likewise.
36427         * doc/posix-functions/wcslen.texi: Likewise.
36428         * doc/posix-functions/wcsncat.texi: Likewise.
36429         * doc/posix-functions/wcsncmp.texi: Likewise.
36430         * doc/posix-functions/wcsncpy.texi: Likewise.
36431         * doc/posix-functions/wcspbrk.texi: Likewise.
36432         * doc/posix-functions/wcsrchr.texi: Likewise.
36433         * doc/posix-functions/wcsrtombs.texi: Likewise.
36434         * doc/posix-functions/wcsspn.texi: Likewise.
36435         * doc/posix-functions/wcsstr.texi: Likewise.
36436         * doc/posix-functions/wcstod.texi: Likewise.
36437         * doc/posix-functions/wcstof.texi: Likewise.
36438         * doc/posix-functions/wcstoimax.texi: Likewise.
36439         * doc/posix-functions/wcstok.texi: Likewise.
36440         * doc/posix-functions/wcstold.texi: Likewise.
36441         * doc/posix-functions/wcstoll.texi: Likewise.
36442         * doc/posix-functions/wcstol.texi: Likewise.
36443         * doc/posix-functions/wcstombs.texi: Likewise.
36444         * doc/posix-functions/wcstoull.texi: Likewise.
36445         * doc/posix-functions/wcstoul.texi: Likewise.
36446         * doc/posix-functions/wcstoumax.texi: Likewise.
36447         * doc/posix-functions/wcswidth.texi: Likewise.
36448         * doc/posix-functions/wcsxfrm.texi: Likewise.
36449         * doc/posix-functions/wctob.texi: Likewise.
36450         * doc/posix-functions/wctomb.texi: Likewise.
36451         * doc/posix-functions/wctrans.texi: Likewise.
36452         * doc/posix-functions/wctype.texi: Likewise.
36453         * doc/posix-functions/wcwidth.texi: Likewise.
36454         * doc/posix-functions/wmemchr.texi: Likewise.
36455         * doc/posix-functions/wmemcmp.texi: Likewise.
36456         * doc/posix-functions/wmemcpy.texi: Likewise.
36457         * doc/posix-functions/wmemmove.texi: Likewise.
36458         * doc/posix-functions/wmemset.texi: Likewise.
36459         * doc/posix-functions/wprintf.texi: Likewise.
36460         * doc/posix-functions/wscanf.texi: Likewise.
36461
36462 2008-12-21  Bruno Haible  <bruno@clisp.org>
36463
36464         Update doc for HP-UX 11.11.
36465         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36466         in HP-UX version 11.00, not in all versions of HP-UX 11.
36467         * doc/posix-functions/fwide.texi: Likewise.
36468         * doc/posix-functions/fwprintf.texi: Likewise.
36469         * doc/posix-functions/fwscanf.texi: Likewise.
36470         * doc/posix-functions/inet_ntop.texi: Likewise.
36471         * doc/posix-functions/inet_pton.texi: Likewise.
36472         * doc/posix-functions/mbrlen.texi: Likewise.
36473         * doc/posix-functions/mbrtowc.texi: Likewise.
36474         * doc/posix-functions/mbsinit.texi: Likewise.
36475         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36476         * doc/posix-functions/swprintf.texi: Likewise.
36477         * doc/posix-functions/swscanf.texi: Likewise.
36478         * doc/posix-functions/towctrans.texi: Likewise.
36479         * doc/posix-functions/vfwprintf.texi: Likewise.
36480         * doc/posix-functions/vswprintf.texi: Likewise.
36481         * doc/posix-functions/vwprintf.texi: Likewise.
36482         * doc/posix-functions/wcrtomb.texi: Likewise.
36483         * doc/posix-functions/wcsrtombs.texi: Likewise.
36484         * doc/posix-functions/wcsstr.texi: Likewise.
36485         * doc/posix-functions/wctob.texi: Likewise.
36486         * doc/posix-functions/wctrans.texi: Likewise.
36487         * doc/posix-functions/wmemchr.texi: Likewise.
36488         * doc/posix-functions/wmemcmp.texi: Likewise.
36489         * doc/posix-functions/wmemcpy.texi: Likewise.
36490         * doc/posix-functions/wmemmove.texi: Likewise.
36491         * doc/posix-functions/wmemset.texi: Likewise.
36492         * doc/posix-functions/wprintf.texi: Likewise.
36493         * doc/posix-functions/wscanf.texi: Likewise.
36494
36495 2008-12-21  Bruno Haible  <bruno@clisp.org>
36496
36497         Work around a portability problem.
36498         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36499         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36500
36501 2008-12-20  Bruno Haible  <bruno@clisp.org>
36502
36503         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36504         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36505         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36507         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36508
36509         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36510         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36511         set.
36512         (GNULIB_defined_mbstate_t): New macro.
36513         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36514         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36515         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36516         reuses the system's mbrtowc function but works around the bugs.
36517         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36518         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36519         macros.
36520         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36521         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36522         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36523         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36524         REPLACE_MBSINIT if mbsinit needs to be overridden.
36525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36526         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36527         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36528         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36529         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36530         m4/locale-zh.m4.
36531         (Depends): Add mbsinit.
36532         * modules/mbsinit (Depends): Add mbrtowc.
36533         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36534
36535 2008-12-20  Bruno Haible  <bruno@clisp.org>
36536
36537         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36538         so that there are no conversion errors on AIX.
36539         * tests/test-mbsrtowcs.c (main): LIkewise.
36540
36541 2008-12-20  Bruno Haible  <bruno@clisp.org>
36542
36543         Work around wctob bug on Solaris <= 9.
36544         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36545         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36547         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36548         * modules/wctob (Files): Add m4/locale-fr.m4.
36549         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36550
36551 2008-12-20  Bruno Haible  <bruno@clisp.org>
36552
36553         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36554         /dev/null.
36555         * tests/test-select-in.sh: Likewise.
36556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36557
36558 2008-12-20  Bruno Haible  <bruno@clisp.org>
36559
36560         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36561         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36562         Cygwin 1.5.x.
36563
36564 2008-12-20  Bruno Haible  <bruno@clisp.org>
36565
36566         Ensure mbstate_t is defined on HP-UX 11.11.
36567         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36568         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36569         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36570         AC_USE_SYSTEM_EXTENSIONS.
36571         * modules/fnmatch (Depends-on): Add extensions.
36572         * modules/mbrlen (Depends-on): Likewise.
36573         * modules/mbrtowc (Depends-on): Likewise.
36574         * modules/mbsinit (Depends-on): Likewise.
36575         * modules/mbsrtowcs (Depends-on): Likewise.
36576         * modules/mbswidth (Depends-on): Likewise.
36577         * modules/quotearg (Depends-on): Likewise.
36578         * modules/strftime (Depends-on): Likewise.
36579
36580 2008-12-20  Bruno Haible  <bruno@clisp.org>
36581
36582         Ensure wctob is declared on IRIX 6.5.
36583         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36584         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36585         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36587         of HAVE_WCTOB.
36588         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36589         HAVE_WCTOB.
36590         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36591
36592 2008-12-19  Bruno Haible  <bruno@clisp.org>
36593
36594         * modules/mbsrtowcs-tests: New file.
36595         * tests/test-mbsrtowcs1.sh: New file.
36596         * tests/test-mbsrtowcs2.sh: New file.
36597         * tests/test-mbsrtowcs3.sh: New file.
36598         * tests/test-mbsrtowcs4.sh: New file.
36599         * tests/test-mbsrtowcs.c: New file.
36600
36601         New module 'mbsrtowcs'.
36602         * lib/wchar.in.h (mbsrtowcs): New declaration.
36603         * lib/mbsrtowcs.c: New file.
36604         * m4/mbsrtowcs.m4: New file.
36605         * modules/mbsrtowcs: New file.
36606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36607         HAVE_MBSRTOWCS.
36608         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36609         HAVE_MBSRTOWCS.
36610         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36611
36612 2008-12-19  Bruno Haible  <bruno@clisp.org>
36613
36614         New module 'mbrlen'.
36615         * lib/wchar.in.h (mbrlen): New declaration.
36616         * lib/mbrlen.c: New file.
36617         * m4/mbrlen.m4: New file.
36618         * modules/mbrlen: New file.
36619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36620         HAVE_MBRLEN.
36621         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36622         HAVE_MBRLEN.
36623         * doc/posix-functions/mbrlen.texi: Document the new module.
36624
36625 2008-12-19  Bruno Haible  <bruno@clisp.org>
36626
36627         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36628         * modules/mbrtowc (Depends-on): Add verify.
36629         Suggested by Paul Eggert.
36630
36631 2008-12-18  Bruno Haible  <bruno@clisp.org>
36632
36633         * modules/mbsinit-tests: New file.
36634         * tests/test-mbsinit.sh: New file.
36635         * tests/test-mbsinit.c: New file.
36636
36637 2008-12-18  Bruno Haible  <bruno@clisp.org>
36638
36639         * modules/mbrtowc-tests: New file.
36640         * tests/test-mbrtowc1.sh: New file.
36641         * tests/test-mbrtowc2.sh: New file.
36642         * tests/test-mbrtowc3.sh: New file.
36643         * tests/test-mbrtowc4.sh: New file.
36644         * tests/test-mbrtowc.c: New file.
36645
36646         New module 'mbrtowc'.
36647         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36648         mbsinit and mbrtowc.
36649         (mbrtowc): New declaration.
36650         * lib/mbrtowc.c: New file.
36651         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36652         * modules/mbrtowc: New file.
36653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36654         HAVE_MBRTOWC.
36655         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36656         HAVE_MBRTOWC.
36657         * doc/posix-functions/mbrtowc.texi: Document the new module.
36658
36659 2008-12-18  Bruno Haible  <bruno@clisp.org>
36660
36661         New module 'wctob'.
36662         * lib/wchar.in.h (wctob): New declaration.
36663         * lib/wctob.c: New file.
36664         * m4/wctob.m4: New file.
36665         * modules/wctob: New file.
36666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36667         HAVE_WCTOB.
36668         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36669         * doc/posix-functions/wctob.texi: Document the new module.
36670
36671 2008-12-18  Bruno Haible  <bruno@clisp.org>
36672
36673         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36674         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36675
36676 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36677
36678         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36679         G. Christensen" <tgc@jupiterrise.com>.
36680
36681         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36682         G. Christensen" <tgc@jupiterrise.com>.
36683
36684         * lib/flock.c: Need to include string.h.  Reported by "Tom
36685         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36686         <ebb9@byu.net>.
36687
36688 2008-12-18  Bruno Haible  <bruno@clisp.org>
36689
36690         * m4/locale-ja.m4: New file, from GNU gettext.
36691
36692 2008-12-17  Bruno Haible  <bruno@clisp.org>
36693
36694         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36695         Suggested by Eric Blake.
36696
36697 2008-12-17  Bruno Haible  <bruno@clisp.org>
36698
36699         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36700
36701 2008-12-17  Bruno Haible  <bruno@clisp.org>
36702
36703         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36704         * modules/mbsinit (Depends-on): Add verify.
36705         Suggested by Paul Eggert.
36706
36707 2008-12-17  Bruno Haible  <bruno@clisp.org>
36708
36709         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36710         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36711         gl_FUNC_MBRTOWC.
36712         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36713         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36714         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36715         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36716         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36717         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36718         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36719         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36720         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36721         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36722         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36723         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36724         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36725         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36726         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36727         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36728         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36729         * modules/trim (configure.ac): Likewise.
36730
36731 2008-12-17  Bruno Haible  <bruno@clisp.org>
36732
36733         * modules/btowc-tests: New file.
36734         * tests/test-btowc1.sh: New file.
36735         * tests/test-btowc2.sh: New file.
36736         * tests/test-btowc.c: New file.
36737
36738         New module 'btowc'.
36739         * lib/wchar.in.h (btowc): New declaration.
36740         * lib/btowc.c: New file.
36741         * m4/btowc.m4: New file.
36742         * modules/btowc: New file.
36743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36744         HAVE_BTOWC.
36745         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36746         * doc/posix-functions/btowc.texi: Document the new module.
36747
36748 2008-12-17  Bruno Haible  <bruno@clisp.org>
36749
36750         New module 'mbsinit'.
36751         * lib/wchar.in.h (mbsinit): New declaration.
36752         * lib/mbsinit.c: New file.
36753         * m4/mbsinit.m4: New file.
36754         * modules/mbsinit: New file.
36755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36756         HAVE_MBSINIT.
36757         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36758         HAVE_MBSINIT.
36759         * doc/posix-functions/mbsinit.texi: Document the new module.
36760
36761 2008-12-16  Bruno Haible  <bruno@clisp.org>
36762
36763         * lib/unistd.in.h: Add comment.
36764         * tests/test-environ.c: Don't include <stdlib.h>.
36765
36766 2008-12-16  Bruno Haible  <bruno@clisp.org>
36767
36768         * lib/parse-duration.h (parse_duration): Document return value
36769         convention.
36770         * lib/parse-duration.c: Include specification header first. Add
36771         comments.
36772         (_): Remove macro.
36773         (parse_year_month_day, parse_hour_minute_second): Move side effects
36774         outside of strchr call.
36775         (parse_non_iso8601): Move side effects outside of isspace call.
36776         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36777         call.
36778
36779 2008-12-16  Bruno Haible  <bruno@clisp.org>
36780
36781         * tests/test-parse-duration.sh: Produce no output when the test
36782         succeeds.
36783
36784 2008-12-16  Bruno Haible  <bruno@clisp.org>
36785
36786         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36787         expressions.
36788
36789 2008-12-15  Bruno Haible  <bruno@clisp.org>
36790
36791         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36792         * doc/glibc-functions/flistxattr.texi: Likewise.
36793         * doc/glibc-functions/fopencookie.texi: Likewise.
36794         * doc/glibc-functions/fremovexattr.texi: Likewise.
36795         * doc/glibc-functions/fsetxattr.texi: Likewise.
36796         * doc/glibc-functions/getxattr.texi: Likewise.
36797         * doc/glibc-functions/lgetxattr.texi: Likewise.
36798         * doc/glibc-functions/listxattr.texi: Likewise.
36799         * doc/glibc-functions/llistxattr.texi: Likewise.
36800         * doc/glibc-functions/lremovexattr.texi: Likewise.
36801         * doc/glibc-functions/lsetxattr.texi: Likewise.
36802         * doc/glibc-functions/removexattr.texi: Likewise.
36803         * doc/glibc-functions/setxattr.texi: Likewise.
36804         * doc/posix-functions/open_memstream.texi: Likewise.
36805
36806 2008-12-15  Eric Blake  <ebb9@byu.net>
36807
36808         Update doc for cygwin 1.7.
36809         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36810         functions.
36811         * doc/posix-functions/fchmodat.texi: Likewise.
36812         * doc/posix-functions/fchownat.texi: Likewise.
36813         * doc/posix-functions/fdopendir.texi: Likewise.
36814         * doc/posix-functions/fmemopen.texi: Likewise.
36815         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36816         * doc/posix-functions/fstatat.texi: Likewise.
36817         * doc/posix-functions/futimens.texi: Likewise.
36818         * doc/posix-functions/gai_strerror.texi: Likewise.
36819         * doc/posix-functions/getaddrinfo.texi: Likewise.
36820         * doc/posix-functions/getnameinfo.texi: Likewise.
36821         * doc/posix-functions/if_freenameindex.texi: Likewise.
36822         * doc/posix-functions/if_indextoname.texi: Likewise.
36823         * doc/posix-functions/if_nameindex.texi: Likewise.
36824         * doc/posix-functions/if_nametoindex.texi: Likewise.
36825         * doc/posix-functions/insque.texi: Likewise.
36826         * doc/posix-functions/linkat.texi: Likewise.
36827         * doc/posix-functions/llrint.texi: Likewise.
36828         * doc/posix-functions/llrintf.texi: Likewise.
36829         * doc/posix-functions/llrintl.texi: Likewise.
36830         * doc/posix-functions/lockf.texi: Likewise.
36831         * doc/posix-functions/lrintl.texi: Likewise.
36832         * doc/posix-functions/mkdirat.texi: Likewise.
36833         * doc/posix-functions/mkfifoat.texi: Likewise.
36834         * doc/posix-functions/mknodat.texi: Likewise.
36835         * doc/posix-functions/mq_close.texi: Likewise.
36836         * doc/posix-functions/mq_getattr.texi: Likewise.
36837         * doc/posix-functions/mq_notify.texi: Likewise.
36838         * doc/posix-functions/mq_open.texi: Likewise.
36839         * doc/posix-functions/mq_receive.texi: Likewise.
36840         * doc/posix-functions/mq_send.texi: Likewise.
36841         * doc/posix-functions/mq_setattr.texi: Likewise.
36842         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36843         * doc/posix-functions/mq_timedsend.texi: Likewise.
36844         * doc/posix-functions/mq_unlink.texi: Likewise.
36845         * doc/posix-functions/open_memstream.texi: Likewise.
36846         * doc/posix-functions/openat.texi: Likewise.
36847         * doc/posix-functions/posix_fadvise.texi: Likewise.
36848         * doc/posix-functions/posix_fallocate.texi: Likewise.
36849         * doc/posix-functions/posix_madvise.texi: Likewise.
36850         * doc/posix-functions/posix_memalign.texi: Likewise.
36851         * doc/posix-functions/posix_openpt.texi: Likewise.
36852         * doc/posix-functions/readlinkat.texi: Likewise.
36853         * doc/posix-functions/remque.texi: Likewise.
36854         * doc/posix-functions/renameat.texi: Likewise.
36855         * doc/posix-functions/rintl.texi: Likewise.
36856         * doc/posix-functions/sem_unlink.texi: Likewise.
36857         * doc/posix-functions/shm_open.texi: Likewise.
36858         * doc/posix-functions/shm_unlink.texi: Likewise.
36859         * doc/posix-functions/signgam.texi: Likewise.
36860         * doc/posix-functions/sigset.texi: Likewise.
36861         * doc/posix-functions/stpcpy.texi: Likewise.
36862         * doc/posix-functions/stpncpy.texi: Likewise.
36863         * doc/posix-functions/strerror.texi: Likewise.
36864         * doc/posix-functions/strtod.texi: Likewise.
36865         * doc/posix-functions/symlinkat.texi: Likewise.
36866         * doc/posix-functions/unlinkat.texi: Likewise.
36867         * doc/posix-functions/utimensat.texi: Likewise.
36868         * doc/glibc-functions/bindresvport.texi: Likewise.
36869         * doc/glibc-functions/dn_expand.texi: Likewise.
36870         * doc/glibc-functions/exp10.texi: Likewise.
36871         * doc/glibc-functions/exp10f.texi: Likewise.
36872         * doc/glibc-functions/fgetxattr.texi: Likewise.
36873         * doc/glibc-functions/flistxattr.texi: Likewise.
36874         * doc/glibc-functions/fopencookie.texi: Likewise.
36875         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36876         * doc/glibc-functions/fremovexattr.texi: Likewise.
36877         * doc/glibc-functions/fsetxattr.texi: Likewise.
36878         * doc/glibc-functions/getifaddrs.texi: Likewise.
36879         * doc/glibc-functions/getxattr.texi: Likewise.
36880         * doc/glibc-functions/lgetxattr.texi: Likewise.
36881         * doc/glibc-functions/listxattr.texi: Likewise.
36882         * doc/glibc-functions/llistxattr.texi: Likewise.
36883         * doc/glibc-functions/lremovexattr.texi: Likewise.
36884         * doc/glibc-functions/lsetxattr.texi: Likewise.
36885         * doc/glibc-functions/pow10.texi: Likewise.
36886         * doc/glibc-functions/pow10f.texi: Likewise.
36887         * doc/glibc-functions/rcmd_af.texi: Likewise.
36888         * doc/glibc-functions/removexattr.texi: Likewise.
36889         * doc/glibc-functions/res_init.texi: Likewise.
36890         * doc/glibc-functions/res_mkquery.texi: Likewise.
36891         * doc/glibc-functions/res_query.texi: Likewise.
36892         * doc/glibc-functions/res_querydomain.texi: Likewise.
36893         * doc/glibc-functions/res_send.texi: Likewise.
36894         * doc/glibc-functions/rresvport_af.texi: Likewise.
36895         * doc/glibc-functions/setxattr.texi: Likewise.
36896         * doc/glibc-functions/strcasestr.texi: Likewise.
36897
36898 2008-12-15  Bruno Haible  <bruno@clisp.org>
36899
36900         Fix compilation error on OSF/1 4.0.
36901         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36902         <sys/time.h>, simply delegate to the system header.
36903         Reported by Daniel Richard G. <oss@teragram.com>.
36904
36905 2008-12-15  Bruno Haible  <bruno@clisp.org>
36906
36907         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36908         * doc/posix-functions/fchmodat.texi: Likewise.
36909         * doc/posix-functions/fchownat.texi: Likewise.
36910         * doc/posix-functions/fdopendir.texi: Likewise.
36911         * doc/posix-functions/fstatat.texi: Likewise.
36912         * doc/posix-functions/mkdirat.texi: Likewise.
36913         * doc/posix-functions/unlinkat.texi: Likewise.
36914
36915 2008-12-14  Bruno Haible  <bruno@clisp.org>
36916
36917         Update doc for POSIX:2008.
36918         * doc/posix-functions/faccessat.texi: New file.
36919         * doc/posix-functions/fchmodat.texi: New file.
36920         * doc/posix-functions/fchownat.texi: New file.
36921         * doc/posix-functions/fdopendir.texi: New file.
36922         * doc/posix-functions/fstatat.texi: New file.
36923         * doc/posix-functions/futimens.texi: New file.
36924         * doc/posix-functions/linkat.texi: New file.
36925         * doc/posix-functions/mkdirat.texi: New file.
36926         * doc/posix-functions/mkfifoat.texi: New file.
36927         * doc/posix-functions/mknodat.texi: New file.
36928         * doc/posix-functions/open_wmemstream.texi: New file.
36929         * doc/posix-functions/openat.texi: New file.
36930         * doc/posix-functions/psiginfo.texi: New file.
36931         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36932         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36933         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36934         * doc/posix-functions/readlinkat.texi: New file.
36935         * doc/posix-functions/renameat.texi: New file.
36936         * doc/posix-functions/strerror_l.texi: New file.
36937         * doc/posix-functions/symlinkat.texi: New file.
36938         * doc/posix-functions/unlinkat.texi: New file.
36939         * doc/posix-functions/utimensat.texi: New file.
36940         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36941
36942 2008-12-14  Bruno Haible  <bruno@clisp.org>
36943
36944         Update doc for POSIX:2008.
36945         * doc/posix-functions/alphasort.texi: Renamed from
36946         doc/glibc-functions/alphasort.texi.
36947         * doc/posix-functions/dirfd.texi: Renamed from
36948         doc/glibc-functions/dirfd.texi.
36949         * doc/posix-functions/dprintf.texi: Renamed from
36950         doc/glibc-functions/dprintf.texi.
36951         * doc/posix-functions/duplocale.texi: Renamed from
36952         doc/glibc-functions/duplocale.texi.
36953         * doc/posix-functions/fexecve.texi: Renamed from
36954         doc/glibc-functions/fexecve.texi.
36955         * doc/posix-functions/fmemopen.texi: Renamed from
36956         doc/glibc-functions/fmemopen.texi.
36957         * doc/posix-functions/freelocale.texi: Renamed from
36958         doc/glibc-functions/freelocale.texi.
36959         * doc/posix-functions/getdate_err.texi: Renamed from
36960         doc/glibc-functions/getdate_err.texi.
36961         * doc/posix-functions/isalnum_l.texi: Renamed from
36962         doc/glibc-functions/isalnum_l.texi.
36963         * doc/posix-functions/isalpha_l.texi: Renamed from
36964         doc/glibc-functions/isalpha_l.texi.
36965         * doc/posix-functions/isblank_l.texi: Renamed from
36966         doc/glibc-functions/isblank_l.texi.
36967         * doc/posix-functions/iscntrl_l.texi: Renamed from
36968         doc/glibc-functions/iscntrl_l.texi.
36969         * doc/posix-functions/isdigit_l.texi: Renamed from
36970         doc/glibc-functions/isdigit_l.texi.
36971         * doc/posix-functions/isgraph_l.texi: Renamed from
36972         doc/glibc-functions/isgraph_l.texi.
36973         * doc/posix-functions/islower_l.texi: Renamed from
36974         doc/glibc-functions/islower_l.texi.
36975         * doc/posix-functions/isprint_l.texi: Renamed from
36976         doc/glibc-functions/isprint_l.texi.
36977         * doc/posix-functions/ispunct_l.texi: Renamed from
36978         doc/glibc-functions/ispunct_l.texi.
36979         * doc/posix-functions/isspace_l.texi: Renamed from
36980         doc/glibc-functions/isspace_l.texi.
36981         * doc/posix-functions/isupper_l.texi: Renamed from
36982         doc/glibc-functions/isupper_l.texi.
36983         * doc/posix-functions/iswalnum_l.texi: Renamed from
36984         doc/glibc-functions/iswalnum_l.texi.
36985         * doc/posix-functions/iswalpha_l.texi: Renamed from
36986         doc/glibc-functions/iswalpha_l.texi.
36987         * doc/posix-functions/iswblank_l.texi: Renamed from
36988         doc/glibc-functions/iswblank_l.texi.
36989         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36990         doc/glibc-functions/iswcntrl_l.texi.
36991         * doc/posix-functions/iswctype_l.texi: Renamed from
36992         doc/glibc-functions/iswctype_l.texi.
36993         * doc/posix-functions/iswdigit_l.texi: Renamed from
36994         doc/glibc-functions/iswdigit_l.texi.
36995         * doc/posix-functions/iswgraph_l.texi: Renamed from
36996         doc/glibc-functions/iswgraph_l.texi.
36997         * doc/posix-functions/iswlower_l.texi: Renamed from
36998         doc/glibc-functions/iswlower_l.texi.
36999         * doc/posix-functions/iswprint_l.texi: Renamed from
37000         doc/glibc-functions/iswprint_l.texi.
37001         * doc/posix-functions/iswpunct_l.texi: Renamed from
37002         doc/glibc-functions/iswpunct_l.texi.
37003         * doc/posix-functions/iswspace_l.texi: Renamed from
37004         doc/glibc-functions/iswspace_l.texi.
37005         * doc/posix-functions/iswupper_l.texi: Renamed from
37006         doc/glibc-functions/iswupper_l.texi.
37007         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37008         doc/glibc-functions/iswxdigit_l.texi.
37009         * doc/posix-functions/isxdigit_l.texi: Renamed from
37010         doc/glibc-functions/isxdigit_l.texi.
37011         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37012         doc/glibc-functions/mbsnrtowcs.texi.
37013         * doc/posix-functions/mkdtemp.texi: Renamed from
37014         doc/glibc-functions/mkdtemp.texi.
37015         * doc/posix-functions/newlocale.texi: Renamed from
37016         doc/glibc-functions/newlocale.texi.
37017         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37018         doc/glibc-functions/nl_langinfo_l.texi.
37019         * doc/posix-functions/open_memstream.texi: Renamed from
37020         doc/glibc-functions/open_memstream.texi.
37021         * doc/posix-functions/opterr.texi: Renamed from
37022         doc/glibc-functions/opterr.texi.
37023         * doc/posix-functions/optind.texi: Renamed from
37024         doc/glibc-functions/optind.texi.
37025         * doc/posix-functions/optopt.texi: Renamed from
37026         doc/glibc-functions/optopt.texi.
37027         * doc/posix-functions/psignal.texi: Renamed from
37028         doc/glibc-functions/psignal.texi.
37029         * doc/posix-functions/scandir.texi: Renamed from
37030         doc/glibc-functions/scandir.texi.
37031         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37032         doc/glibc-functions/sched_get_priority_min.texi.
37033         * doc/posix-functions/signgam.texi: Renamed from
37034         doc/glibc-functions/signgam.texi.
37035         * doc/posix-functions/stpcpy.texi: Renamed from
37036         doc/glibc-functions/stpcpy.texi.
37037         * doc/posix-functions/stpncpy.texi: Renamed from
37038         doc/glibc-functions/stpncpy.texi.
37039         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37040         doc/glibc-functions/strcasecmp_l.texi.
37041         * doc/posix-functions/strcoll_l.texi: Renamed from
37042         doc/glibc-functions/strcoll_l.texi.
37043         * doc/posix-functions/strfmon_l.texi: Renamed from
37044         doc/glibc-functions/strfmon_l.texi.
37045         * doc/posix-functions/strftime_l.texi: Renamed from
37046         doc/glibc-functions/strftime_l.texi.
37047         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37048         doc/glibc-functions/strncasecmp_l.texi.
37049         * doc/posix-functions/strndup.texi: Renamed from
37050         doc/glibc-functions/strndup.texi.
37051         * doc/posix-functions/strnlen.texi: Renamed from
37052         doc/glibc-functions/strnlen.texi.
37053         * doc/posix-functions/strsignal.texi: Renamed from
37054         doc/glibc-functions/strsignal.texi.
37055         * doc/posix-functions/strxfrm_l.texi: Renamed from
37056         doc/glibc-functions/strxfrm_l.texi.
37057         * doc/posix-functions/timer_gettime.texi: Renamed from
37058         doc/glibc-functions/timer_gettime.texi.
37059         * doc/posix-functions/tolower_l.texi: Renamed from
37060         doc/glibc-functions/tolower_l.texi.
37061         * doc/posix-functions/toupper_l.texi: Renamed from
37062         doc/glibc-functions/toupper_l.texi.
37063         * doc/posix-functions/towctrans_l.texi: Renamed from
37064         doc/glibc-functions/towctrans_l.texi.
37065         * doc/posix-functions/towlower_l.texi: Renamed from
37066         doc/glibc-functions/towlower_l.texi.
37067         * doc/posix-functions/towupper_l.texi: Renamed from
37068         doc/glibc-functions/towupper_l.texi.
37069         * doc/posix-functions/uselocale.texi: Renamed from
37070         doc/glibc-functions/uselocale.texi.
37071         * doc/posix-functions/vdprintf.texi: Renamed from
37072         doc/glibc-functions/vdprintf.texi.
37073         * doc/posix-functions/wcpcpy.texi:
37074         Renamed from doc/glibc-functions/wcpcpy.texi.
37075         * doc/posix-functions/wcpncpy.texi: Renamed from
37076         doc/glibc-functions/wcpncpy.texi.
37077         * doc/posix-functions/wcscasecmp.texi: Renamed from
37078         doc/glibc-functions/wcscasecmp.texi.
37079         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37080         doc/glibc-functions/wcscasecmp_l.texi.
37081         * doc/posix-functions/wcscoll_l.texi: Renamed from
37082         doc/glibc-functions/wcscoll_l.texi.
37083         * doc/posix-functions/wcsdup.texi: Renamed from
37084         doc/glibc-functions/wcsdup.texi.
37085         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37086         doc/glibc-functions/wcsncasecmp.texi.
37087         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37088         doc/glibc-functions/wcsncasecmp_l.texi.
37089         * doc/posix-functions/wcsnlen.texi: Renamed from
37090         doc/glibc-functions/wcsnlen.texi.
37091         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37092         doc/glibc-functions/wcsnrtombs.texi.
37093         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37094         doc/glibc-functions/wcsxfrm_l.texi.
37095         * doc/posix-functions/wctrans_l.texi: Renamed from
37096         doc/glibc-functions/wctrans_l.texi.
37097         * doc/posix-functions/wctype_l.texi: Renamed from
37098         doc/glibc-functions/wctype_l.texi.
37099         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37100         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37101         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37102         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37103         these subsections.
37104         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37105         Remove sections.
37106
37107 2008-12-14  Bruno Haible  <bruno@clisp.org>
37108
37109         Update doc for POSIX:2008.
37110         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37111
37112 2008-12-14  Bruno Haible  <bruno@clisp.org>
37113
37114         Update doc for POSIX:2008.
37115         * doc/pastposix-functions/bcmp.texi: Renamed from
37116         doc/posix-functions/bcmp.texi.
37117         * doc/pastposix-functions/bcopy.texi: Renamed from
37118         doc/posix-functions/bcopy.texi.
37119         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37120         doc/posix-functions/bsd_signal.texi.
37121         * doc/pastposix-functions/bzero.texi: Renamed from
37122         doc/posix-functions/bzero.texi.
37123         * doc/pastposix-functions/ecvt.texi: Renamed from
37124         doc/posix-functions/ecvt.texi.
37125         * doc/pastposix-functions/fcvt.texi: Renamed from
37126         doc/posix-functions/fcvt.texi.
37127         * doc/pastposix-functions/ftime.texi: Renamed from
37128         doc/posix-functions/ftime.texi.
37129         * doc/pastposix-functions/gcvt.texi: Renamed from
37130         doc/posix-functions/gcvt.texi.
37131         * doc/pastposix-functions/getcontext.texi: Renamed from
37132         doc/posix-functions/getcontext.texi.
37133         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37134         doc/posix-functions/gethostbyaddr.texi.
37135         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37136         doc/posix-functions/gethostbyname.texi.
37137         * doc/pastposix-functions/getwd.texi: Renamed from
37138         doc/posix-functions/getwd.texi.
37139         * doc/pastposix-functions/h_errno.texi: Renamed from
37140         doc/posix-functions/h_errno.texi.
37141         * doc/pastposix-functions/index.texi: Renamed from
37142         doc/posix-functions/index.texi.
37143         * doc/pastposix-functions/makecontext.texi: Renamed from
37144         doc/posix-functions/makecontext.texi.
37145         * doc/pastposix-functions/mktemp.texi: Renamed from
37146         doc/posix-functions/mktemp.texi.
37147         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37148         doc/posix-functions/pthread_attr_getstackaddr.texi.
37149         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37150         doc/posix-functions/pthread_attr_setstackaddr.texi.
37151         * doc/pastposix-functions/rindex.texi: Renamed from
37152         doc/posix-functions/rindex.texi.
37153         * doc/pastposix-functions/scalb.texi: Renamed from
37154         doc/posix-functions/scalb.texi.
37155         * doc/pastposix-functions/setcontext.texi: Renamed from
37156         doc/posix-functions/setcontext.texi.
37157         * doc/pastposix-functions/swapcontext.texi: Renamed from
37158         doc/posix-functions/swapcontext.texi.
37159         * doc/pastposix-functions/ualarm.texi: Renamed from
37160         doc/posix-functions/ualarm.texi.
37161         * doc/pastposix-functions/usleep.texi: Renamed from
37162         doc/posix-functions/usleep.texi.
37163         * doc/pastposix-functions/vfork.texi: Renamed from
37164         doc/posix-functions/vfork.texi.
37165         * doc/pastposix-functions/wcswcs.texi: Renamed from
37166         doc/posix-functions/wcswcs.texi.
37167         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37168         (Function Substitutes): Update.
37169
37170 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37171
37172         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37173         m4/strerror.m4.
37174
37175 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37176             Bruno Haible  <bruno@clisp.org>
37177
37178         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37179
37180 2008-12-13  Bruno Haible  <bruno@clisp.org>
37181
37182         * modules/strtoull (Depends-on): Remove unistd.
37183
37184 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37185
37186         * modules/strtoull (Depends-on): Add stdlib.
37187
37188 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37189
37190         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37191
37192 2008-12-10  Jim Meyering  <meyering@redhat.com>
37193
37194         gl_ASSERT: don't say assertions are disabled when they're not
37195         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37196         "checking whether to enable assertions... no", when they are in
37197         fact enabled.  This is solely a bug in the output of configure.
37198         In spite of saying "no", NDEBUG was not defined in that case.
37199         Also, as noted by Eric Blake, leave assertions enabled upon
37200         --enable-assert=INVALID.
37201
37202 2008-12-10  Bruno Haible  <bruno@clisp.org>
37203
37204         Change MODULES.html to refer to POSIX:2008 where possible.
37205         * MODULES.html.sh (POSIX2008_URL): New variable.
37206         (posix_headers): Remove sys/timeb, ucontext.
37207         (posix2001_headers): New variable.
37208         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37209         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37210         index, makecontext, mktemp, pthread_attr_getstackaddr,
37211         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37212         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37213         (posix2001_functions): New variable.
37214         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37215         otherwise.
37216
37217 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37218
37219         add missing include to parse-duration.c
37220         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37221         * modules/parse-duration (Depends-on): Add xalloc.
37222
37223         fix sed script reading maint.mk
37224         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37225         (syntax-check-rules): Use it.
37226
37227 2008-12-09  Bruno Haible  <bruno@clisp.org>
37228
37229         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37230         MacOS X 10.4/PowerPC.
37231         Reported by Simon Josefsson.
37232
37233 2008-12-08  Jim Meyering  <meyering@redhat.com>
37234
37235         work around mingw's lack of some S_IF definitions
37236         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37237         Reported by Simon Josefsson.
37238
37239 2008-12-08  Bruno Haible  <bruno@clisp.org>
37240
37241         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37242         applied to variables. Needed on MacOS X 10.4/PowerPC.
37243         Reported by Simon Josefsson.
37244
37245 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37246         and Eric Blake  <ebb9@byu.net>
37247
37248         assert: honor --enable-assert
37249         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37250         order to honor --enable-assert, rather than treating it as a
37251         synonym for --disable-assert.
37252
37253 2008-12-08  Jim Meyering  <meyering@redhat.com>
37254
37255         * lib/posixtm.c: Remove now-useless declaration of mktime.
37256
37257         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37258
37259 2008-12-07  Bruno Haible  <bruno@clisp.org>
37260
37261         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37262         test_once): Mark functions as static.
37263         * tests/test-tls.c (test_tls): Likewise.
37264
37265 2008-12-07  Bruno Haible  <bruno@clisp.org>
37266
37267         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37268         iconv_register_autodetect.
37269
37270 2008-12-07  Jim Meyering  <meyering@redhat.com>
37271
37272         posixtm.c: avoid a warning
37273         * lib/posixtm.c (posixtime): Don't initialize tm0.
37274         It's no longer needed to placate gcc4's -Wuninitialized,
37275         and the attempt to placate would elicit a new warning.
37276
37277         unicodeio.c: mark unused parameters
37278         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37279         (fallback_failure_callback): Likewise.
37280
37281 2008-12-07  Bruno Haible  <bruno@clisp.org>
37282
37283         * gnulib-tool (func_create_testdir): When building the tests
37284         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37285         Reported by Simon Josefsson.
37286
37287 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37288
37289         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37290
37291 2008-12-06  Bruno Haible  <bruno@clisp.org>
37292
37293         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37294         Suggested by Eric Blake.
37295
37296 2008-12-06  Bruno Haible  <bruno@clisp.org>
37297
37298         Fix a c-stack test failure on MacOS X.
37299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37300         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37301         handler for SIGBUS as well.
37302         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37303         install a signal handler for SIGBUS as well.
37304         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37305
37306 2008-12-06  Bruno Haible  <bruno@clisp.org>
37307
37308         Advocacy documentation.
37309         * doc/gnulib-intro.texi (Benefits): New section.
37310         * doc/gnulib.texi: Update.
37311
37312 2008-12-06  Bruno Haible  <bruno@clisp.org>
37313
37314         Document the 'manywarnings' module.
37315         * doc/manywarnings.texi: New file.
37316         * doc/gnulib.texi: Include it.
37317
37318 2008-12-05  Eric Blake  <ebb9@byu.net>
37319
37320         tests: silence some gcc warnings
37321         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37322         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37323         type mismatches.
37324
37325 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37326             Bruno Haible  <bruno@clisp.org>
37327
37328         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37329
37330 2008-11-29  Jim Meyering  <meyering@redhat.com>
37331
37332         unicodeio.c: mark unused parameters
37333         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37334         (fallback_failure_callback): Likewise.
37335
37336         fts: fix a thinko
37337         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37338         (set_stat_type): Return S_IF*-valued "type" directly.
37339         Prompted by James Youngman's spotting a related bug.
37340         Confirmed by further testing through find.
37341
37342         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37343         * lib/fts.c (D_TYPE): Define.
37344         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37345         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37346         (s_ifmt_shift_bits): New function.
37347         (set_stat_type): New function.
37348         (fts_build): When not calling fts_stat, call set_stat_type
37349         to propagate dirent.d_type info to fts_read caller.
37350         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37351         fts_statp->st_mode type information may be valid.
37352
37353 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37354
37355         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37356         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37357         <sds@gnu.org>.
37358
37359 2008-11-20  Bruno Haible  <bruno@clisp.org>
37360
37361         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37362         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37363         INCLUDE_NEXT.
37364         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37365         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37366         * modules/math (Makefile.am): Substitute
37367         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37368         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37369
37370 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37371             Bruno Haible  <bruno@clisp.org>
37372
37373         * lib/stdint.in.h: Define all type macros so that their expansion is
37374         a single typedef'ed token. Fixes a compilation failure in Boost which
37375         does "using ::int8_t;".
37376
37377 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37378
37379         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37380         gl_MANYWARN_ALL_GCC.
37381         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37382         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37383         * modules/manywarnings: New file.
37384         * MODULES.html.sh: Mention manywarnings module.
37385
37386 2008-11-18  Bruno Haible  <bruno@clisp.org>
37387
37388         * doc/gnulib-tool.texi (Unit tests): New section.
37389
37390 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37391
37392         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37393         paths like 'lib/po/foo.po'.
37394
37395 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37396
37397         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37398         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37399
37400 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37401
37402         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37403         parameter works.
37404
37405 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37406
37407         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37408
37409 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37410
37411         * modules/parse-duration-tests: New file.
37412         * tests/test-parse-duration.sh: New file.
37413         * tests/test-parse-duration.c: New file.
37414
37415         New module 'parse-duration'.
37416         * lib/parse-duration.h: New file.
37417         * lib/parse-duration.c: New file.
37418         * modules/parse-duration: New file.
37419
37420 2008-11-17  Bruno Haible  <bruno@clisp.org>
37421
37422         * tests/test-select-out.sh: Comment out the first pipe test.
37423         Reported by Simon Josefsson.
37424
37425 2008-11-17  Bruno Haible  <bruno@clisp.org>
37426
37427         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37429         gl_HOSTENT.
37430
37431 2008-11-17  Bruno Haible  <bruno@clisp.org>
37432
37433         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37434         -lnetwork and -lnet. Needed for Haiku and BeOS.
37435
37436 2008-11-16  Bruno Haible  <bruno@clisp.org>
37437
37438         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37439
37440 2008-11-16  Bruno Haible  <bruno@clisp.org>
37441
37442         Avoid test failure on Haiku.
37443         * tests/test-fsync.c: Include <errno.h>.
37444         (main): Don't require that fsync (0) fails.
37445
37446 2008-11-15  Bruno Haible  <bruno@clisp.org>
37447
37448         New module 'hostent'.
37449         * modules/hostent: New file.
37450         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37451
37452 2008-11-15  Bruno Haible  <bruno@clisp.org>
37453
37454         New module 'servent'.
37455         * modules/servent: New file.
37456         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37457
37458 2008-11-15  Bruno Haible  <bruno@clisp.org>
37459
37460         Avoid generating same test program with two different rules.
37461         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37462         test-frexp to test-frexp-nolibm.
37463         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37464         test-frexpl to test-frexpl-nolibm.
37465
37466 2008-11-15  Bruno Haible  <bruno@clisp.org>
37467
37468         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37469         $(FREXPL_LIBM).
37470
37471 2008-11-15  Bruno Haible  <bruno@clisp.org>
37472
37473         * lib/netdb.in.h: Activate the definitions also when the system's
37474         <netdb.h> has 'struct addrinfo'.
37475         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37476         EAI_OVERFLOW or AI_NUMERICSERV.
37477         * doc/posix-headers/netdb.texi: Document the problem.
37478
37479 2008-11-15  Bruno Haible  <bruno@clisp.org>
37480
37481         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37482
37483         Make the 'sched' module work on platforms where <sched.h> exists but
37484         is incomplete (such as Haiku).
37485         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37486         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37487         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37488         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37489         HAVE_STRUCT_SCHED_PARAM.
37490         * modules/sched (Depends-on): Add include_next.
37491         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37492         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37493         * doc/posix-headers/sched.texi: Document the issue.
37494
37495 2008-11-13  Jim Meyering  <meyering@redhat.com>
37496
37497         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37498         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37499         test would fail due to the difference in the Report bugs to ...
37500         line.  The expected address is empty, "<>", while the actual
37501         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37502
37503 2008-11-12  Bruno Haible  <bruno@clisp.org>
37504
37505         lstat: don't compile lstat.c on systems lacking lstat
37506         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37507         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37508         Reported by Daniel P. Berrange via Jim Meyering.
37509
37510 2008-11-12  Jim Meyering  <meyering@redhat.com>
37511
37512         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37513
37514 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37515
37516         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37517         instead.
37518
37519 2008-11-12  Bruno Haible  <bruno@clisp.org>
37520
37521         * lib/unicodeio.c: Include unistr.h.
37522         (utf8_wctomb): Remove function.
37523         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37524
37525 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37526
37527         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37528         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37529         <bruno@clisp.org>.
37530         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37531
37532 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37533
37534         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37535         * doc/gnulib.texi: Add section for warnings.
37536
37537 2008-11-11  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/sockets.h: Add a comment.
37540
37541 2008-11-11  Karl Berry  <karl@gnu.org>
37542
37543         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37544
37545 2008-11-11  Eric Blake  <ebb9@byu.net>
37546
37547         fdl.texi: avoid git symlinks
37548         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37549
37550 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37551
37552         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37553
37554 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37555
37556         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37557         (gl_WARN_ADD): Substitute $2 if literal.
37558
37559 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37560
37561         * m4/warning.m4: Remove.
37562
37563 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37564
37565         * m4/warnings.m4: Almost complete rewrite. :-)
37566
37567 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37568
37569         * modules/warnings: New module.
37570         * m4/warnings.m4: New file.
37571         * MODULES.html.sh: Mention warnings module.
37572         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37573         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37574
37575 2008-11-10  Eric Blake  <ebb9@byu.net>
37576
37577         fdl.texi: make a symlink to the latest version
37578         * doc/standards.texi: Revert today's earlier change.
37579         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37580         * doc/fdl.texi: ...and replace this with a symlink to the newer
37581         fdl-1.3.texi.
37582
37583 2008-11-10  Bruno Haible  <bruno@clisp.org>
37584
37585         * tests/test-select-fd.c (main): Accept the result file name as fourth
37586         argument.
37587         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37588         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37589
37590 2008-11-10  Bruno Haible  <bruno@clisp.org>
37591
37592         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37593         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37594         as autoconf-substituted macros.
37595         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37597         gl_NETDB_H_DEFAULTS. Set these variables.
37598         * modules/netdb (Makefile.am): Substitute these variables.
37599
37600 2008-11-10  Eric Blake  <ebb9@byu.net>
37601
37602         standards.texi: include correct file for FDL 1.3
37603         * doc/standards.texi (GNU Free Documentation License): Change
37604         include file to pull in FDL 1.3, not 1.2.
37605
37606         fdl.texi: revert accidental change to license
37607         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37608
37609 2008-11-10  Bruno Haible  <bruno@clisp.org>
37610
37611         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37612         cross-compiling guesses also when the native compile gives no result.
37613
37614 2008-11-10  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/spawni.c (__spawni): Force variable into the stack.
37617
37618 2008-11-10  Bruno Haible  <bruno@clisp.org>
37619
37620         Add support for Haiku.
37621         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37622         glibc and BeOS, but also on Haiku.
37623         * lib/fpurge.c (fpurge): Likewise.
37624         * lib/freadable.c (freadable): Likewise.
37625         * lib/freadahead.c (freadahead): Likewise.
37626         * lib/freading.c (freading): Likewise.
37627         * lib/freadptr.c (freadptr): Likewise.
37628         * lib/freadseek.c (freadptrinc): Likewise.
37629         * lib/fseeko.c (rpl_fseeko): Likewise.
37630         * lib/fseterr.c (fseterr): Likewise.
37631         * lib/fwritable.c (fwritable): Likewise.
37632         * lib/fwriting.c (fwriting): Likewise.
37633         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37634
37635 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37636
37637         * lib/config.charset: Treat Haiku like BeOS.
37638
37639 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37640
37641         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37642         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37643
37644 2008-11-08  Bruno Haible  <bruno@clisp.org>
37645
37646         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37647         AC_CACHE_CHECK.
37648
37649 2008-11-08  Bruno Haible  <bruno@clisp.org>
37650
37651         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37652
37653 2008-11-08  Bruno Haible  <bruno@clisp.org>
37654
37655         * tests/test-select-fd.c: New file.
37656         * tests/test-select-in.sh: New file.
37657         * tests/test-select-out.sh: New file.
37658         * tests/test-select-stdin.c: New file.
37659         * modules/select-tests (Files): Add the new files.
37660         (Depends-on): Add gettimeofday.
37661         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37662         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37663         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37664
37665 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37666             Bruno Haible  <bruno@clisp.org>
37667
37668         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37669
37670 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37671
37672         * build-aux/pmccabe2html: Added support for C++ source files.
37673
37674 2008-11-05  Ben Pfaff  <blp@gnu.org>
37675
37676         Fix lib/close.c build on Windows.
37677         * modules/close (Files): Add lib/w32sock.h.
37678
37679 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37680
37681         Accept Bison's NEWS format.
37682         * build-aux/announce-gen (print_news_deltas): Tweak
37683         $re_prefix.
37684
37685 2008-11-04  Bruno Haible  <bruno@clisp.org>
37686
37687         * modules/random_r (Maintainer): Add glibc.
37688
37689 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37690
37691         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37692         by karl@freefriends.org (Karl Berry).
37693         * doc/alloca.texi: Likewise.
37694         * doc/c-ctype.texi: Likewise.
37695         * doc/c-strcase.texi: Likewise.
37696         * doc/c-strcaseeq.texi: Likewise.
37697         * doc/c-strcasestr.texi: Likewise.
37698         * doc/c-strstr.texi: Likewise.
37699         * doc/c-strtod.texi: Likewise.
37700         * doc/c-strtold.texi: Likewise.
37701         * doc/ctime.texi: Likewise.
37702         * doc/error.texi: Likewise.
37703         * doc/fdl.texi: Likewise.
37704         * doc/gcd.texi: Likewise.
37705         * doc/getdate.texi: Likewise.
37706         * doc/gnulib-intro.texi: Likewise.
37707         * doc/gnulib-tool.texi: Likewise.
37708         * doc/gnulib.texi: Likewise.
37709         * doc/inet_ntoa.texi: Likewise.
37710         * doc/maintain.texi: Likewise.
37711         * doc/make-stds.texi: Likewise.
37712         * doc/quote.texi: Likewise.
37713         * doc/regexprops-generic.texi: Likewise.
37714         * doc/standards.texi: Likewise.
37715         * doc/verify.texi: Likewise.
37716         * doc/visibility.texi: Likewise.
37717         * doc/gnulib.texi (GNU Free Documentation License): Include
37718         fdl-1.3.texi instead of fdl.texi.
37719
37720 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37721
37722         * doc/fdl-1.3.texi: New file, from
37723         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37724         * modules/fdl-1.3: Add.
37725         * MODULES.html.sh: Add fdl-1.3.
37726
37727 2008-11-03  Bruno Haible  <bruno@clisp.org>
37728
37729         Make determination of absolute name of header file work with AIX xlc.
37730         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37731         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37732         preprocessing.
37733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37734         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37735
37736 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37737
37738         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37739         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37740         <ludo@gnu.org>.
37741
37742 2008-11-02  Bruno Haible  <bruno@clisp.org>
37743
37744         Mark 'strpbrk' obsolete.
37745         * modules/strpbrk (Status, Notice): New sections.
37746         * modules/strtok_r (Depends-on): Add strpbrk.
37747
37748 2008-11-02  Bruno Haible  <bruno@clisp.org>
37749
37750         Mark 'strdup' obsolete.
37751         * modules/strdup (Status, Notice): New sections.
37752         * modules/findprog (Depends-on): Add strdup.
37753         * modules/getaddrinfo (Depends-on): Likewise.
37754         * modules/localename (Depends-on): Likewise.
37755         * modules/relocatable-lib (Depends-on): Likewise.
37756         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37757         * modules/relocatable-prog (Depends-on): Likewise.
37758         * modules/trim (Depends-on): Likewise.
37759         * modules/unictype/gen-ctype (Depends-on): Likewise.
37760         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37761
37762 2008-11-02  Bruno Haible  <bruno@clisp.org>
37763
37764         Mark 'strcspn' obsolete.
37765         * modules/strcspn (Status, Notice): New sections.
37766
37767 2008-11-02  Bruno Haible  <bruno@clisp.org>
37768
37769         Mark 'rmdir' obsolete.
37770         * modules/rmdir (Status, Notice): New sections.
37771         * modules/clean-temp (Depends-on): Add rmdir.
37772         * modules/openat (Depends-on): Likewise.
37773
37774 2008-11-02  Bruno Haible  <bruno@clisp.org>
37775
37776         Mark 'raise' obsolete.
37777         * modules/raise (Status, Notice): New sections.
37778         (Include): Specify <signal.h>.
37779         * modules/stdio (Depends-on): Add raise.
37780         * modules/write (Depends-on): Likewise.
37781
37782 2008-11-02  Bruno Haible  <bruno@clisp.org>
37783
37784         Mark 'memset' obsolete.
37785         * modules/memset (Status, Notice): New sections.
37786
37787 2008-11-02  Bruno Haible  <bruno@clisp.org>
37788
37789         Mark 'memmove' obsolete.
37790         * modules/memmove (Status, Notice): New sections.
37791         * modules/argp (Depends-on): Add memmove.
37792         * modules/argz (Depends-on): Likewise.
37793         * modules/canonicalize (Depends-on): Likewise.
37794         * modules/canonicalize-lgpl (Depends-on): Likewise.
37795         * modules/fts (Depends-on): Likewise.
37796         * modules/getcwd (Depends-on): Likewise.
37797         * modules/human (Depends-on): Likewise.
37798         * modules/regex (Depends-on): Likewise.
37799         * modules/striconveh (Depends-on): Likewise.
37800         * modules/trim (Depends-on): Likewise.
37801         * modules/unistr/u8-move (Depends-on): Likewise.
37802         * modules/unistr/u16-move (Depends-on): Likewise.
37803         * modules/unistr/u32-move (Depends-on): Likewise.
37804
37805 2008-11-02  Bruno Haible  <bruno@clisp.org>
37806
37807         Mark 'memcpy' obsolete.
37808         * modules/memcpy (Status, Notice): New sections.
37809
37810 2008-11-02  Bruno Haible  <bruno@clisp.org>
37811
37812         Mark 'memcmp' obsolete.
37813         * modules/memcmp (Status, Notice): New sections.
37814         * modules/argmatch (Depends-on): Add memchr.
37815         * modules/backupfile (Depends-on): Likewise.
37816         * modules/c-strcasestr (Depends-on): Likewise.
37817         * modules/crypto/des (Depends-on): Likewise.
37818         * modules/csharpcomp (Depends-on): Likewise.
37819         * modules/fnmatch (Depends-on): Likewise.
37820         * modules/git-merge-changelog (Depends-on): Likewise.
37821         * modules/isnand (Depends-on): Likewise.
37822         * modules/isnand-nolibm (Depends-on): Likewise.
37823         * modules/isnanf (Depends-on): Likewise.
37824         * modules/isnanf-nolibm (Depends-on): Likewise.
37825         * modules/isnanl (Depends-on): Likewise.
37826         * modules/isnanl-nolibm (Depends-on): Likewise.
37827         * modules/mbchar (Depends-on): Likewise.
37828         * modules/memcoll (Depends-on): Likewise.
37829         * modules/quotearg (Depends-on): Likewise.
37830         * modules/regex (Depends-on): Likewise.
37831         * modules/relocatable-prog (Depends-on): Likewise.
37832         * modules/same (Depends-on): Likewise.
37833         * modules/signbit (Depends-on): Likewise.
37834         * modules/strcasestr-simple (Depends-on): Likewise.
37835         * modules/unictype/gen-ctype (Depends-on): Likewise.
37836         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37837         * modules/uniname/uniname (Depends-on): Likewise.
37838         * modules/unistr/u8-cmp (Depends-on): Likewise.
37839
37840 2008-11-02  Bruno Haible  <bruno@clisp.org>
37841
37842         Mark 'memchr' obsolete.
37843         * modules/memchr (Status, Notice): New sections.
37844         * modules/argp (Depends-on): Add memchr.
37845         * modules/base64 (Depends-on): Likewise.
37846         * modules/c-strcasestr (Depends-on): Likewise.
37847         * modules/chdir-long (Depends-on): Likewise.
37848         * modules/fnmatch (Depends-on): Likewise.
37849         * modules/getsubopt (Depends-on): Likewise.
37850         * modules/git-merge-changelog (Depends-on): Likewise.
37851         * modules/glob (Depends-on): Likewise.
37852         * modules/strcasestr-simple (Depends-on): Likewise.
37853         * modules/strnlen (Depends-on): Likewise.
37854
37855 2008-11-02  Bruno Haible  <bruno@clisp.org>
37856
37857         Mark 'atexit' obsolete.
37858         * modules/atexit (Status, Notice): New sections.
37859         * modules/chdir-long (Depends-on): Add atexit.
37860         * modules/wait-process (Depends-on): Likewise.
37861
37862 2008-11-02  Bruno Haible  <bruno@clisp.org>
37863
37864         * gnulib-tool: New option --with-obsolete.
37865         (func_usage): Document it.
37866         (func_modules_transitive_closure): Drop obsolete dependencies if
37867         incobsolete is not true.
37868         (func_import): Read and save the incobsolete variable to the cache.
37869
37870 2008-11-02  Bruno Haible  <bruno@clisp.org>
37871
37872         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37873         * gnulib-tool: New option --extract-status.
37874         (func_usage): Document it.
37875         (sed_extract_prog): Recognize it.
37876         (func_get_status): New function.
37877
37878 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37879
37880         * modules/sockets (License): Change from LGPL to LGPLv2+.
37881
37882 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37883
37884         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37885
37886 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37887
37888         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37889         Mention times and sys_times.
37890         * modules/sys_times, modules/sys_times-tests: New modules.
37891         * modules/times, modules/times-tests: Likewise
37892         * m4/sys_times_h.m4: New file.
37893         * lib/sys_times.in.h: Likewise
37894         * lib/times.c: Likewise.
37895         * tests/test-sys_times.c: Likewise.
37896         * tests/test-times.c: Likewise.
37897         * doc/posix-headers/sys_times.texi: Update.
37898         * doc/posix-functions/times.texi: Update.
37899
37900 2008-10-28  Jim Meyering  <meyering@redhat.com>
37901
37902         * modules/tempname (Depends-on): Add lstat.
37903
37904         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37905
37906 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37907
37908         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37909         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37910         using idiom used elsewhere in gnulib.
37911
37912 2008-10-27  Jim Meyering  <meyering@redhat.com>
37913
37914         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37915
37916 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37917
37918         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37919         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37920         programs.
37921         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37922
37923 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37924
37925         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37926
37927 2008-10-27  Bruno Haible  <bruno@clisp.org>
37928
37929         * tests/test-lstat.c: Include <stdio.h>.
37930
37931 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37932
37933         * modules/lstat-tests: New module.
37934         * tests/test-lstat.c: New file.
37935
37936 2008-10-26  Jim Meyering  <meyering@redhat.com>
37937
37938         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37939
37940 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37941             Bruno Haible  <bruno@clisp.org>
37942
37943         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37944         * modules/configmake (Include): Add a note that the include must come
37945         after all system headers.
37946         * lib/javaversion.c: Include configmake.h after all other includes.
37947
37948 2008-10-26  Bruno Haible  <bruno@clisp.org>
37949
37950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37951         HAVE_STRUCT_RANDOM_DATA to 1.
37952         (gl_STDLIB_H): Simplify.
37953
37954 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37955
37956         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37957         substitute HAVE_STRUCT_RANDOM_DATA.
37958         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37959         random_data.
37960         * modules/stdlib (Makefile.am): Substitute
37961         HAVE_STRUCT_RANDOM_DATA.
37962
37963 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37964
37965         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37966         * doc/gnulib-intro.texi (Copyright): Likewise.
37967
37968 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37969
37970         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37971         findings.
37972
37973 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37974             Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/unistd.in.h: Include <winsock2.h>.
37977         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37978         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37979         Provide dummy declarations.
37980         (gethostname): Override.
37981         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37982         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37983         gl_PREREQ_SYS_H_WINSOCK2.
37984         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37985         * doc/posix-functions/gethostname.texi: More details.
37986
37987 2008-10-25  Bruno Haible  <bruno@clisp.org>
37988
37989         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37990         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37991         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37992
37993         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37994         here ...
37995         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37996         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37997         gl_UNISTD_H_DEFAULTS.
37998
37999 2008-10-25  Eric Blake  <ebb9@byu.net>
38000
38001         signbit: avoid spurious compiler failure
38002         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38003         declarations inside function.
38004
38005 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38006             Bruno Haible  <bruno@clisp.org>
38007
38008         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38009         * modules/random_r (Depends-on): Add stdint.
38010
38011 2008-10-24  Bruno Haible  <bruno@clisp.org>
38012
38013         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38014         Eggert.
38015         * modules/strerror (License): Likewise.
38016
38017 2008-10-24  Jim Meyering  <meyering@redhat.com>
38018
38019         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38020         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38021
38022 2008-10-24  Eric Blake  <ebb9@byu.net>
38023
38024         getgroups: fix compilation when getgroups is available
38025         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38026         but with <config.h> override of getgroups disabled.
38027
38028 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38029
38030         * doc/gnulib.texi (Header files): Add note about C++ problems.
38031         Explained by Bruno Haible <bruno@clisp.org>.
38032
38033 2008-10-23  Bruno Haible  <bruno@clisp.org>
38034
38035         Define a dummy SA_NODEFER macro on Interix.
38036         * lib/signal.in.h (SA_NODEFER): Define fallback.
38037         Reported by Aleksey Cheusov <cheusov@tut.by> via
38038         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38039
38040 2008-10-23  Bruno Haible  <bruno@clisp.org>
38041
38042         * modules/freadahead (License): Change to LGPLv2+.
38043         Suggested by Simon Josefsson.
38044
38045 2008-10-23  Jim Meyering  <meyering@redhat.com>
38046
38047         random_r: new module
38048         * modules/random_r: New file.
38049         * m4/random_r.m4: New file.
38050         * lib/random_r.c: New file, from glibc.
38051         * modules/random_r-tests: New file.
38052         * tests/test-random_r.c: New file.
38053         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38054          Declare.
38055         (RAND_MAX): Define.
38056         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38057         * modules/stdlib: Substitute them, too.
38058         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38059         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38060         * doc/glibc-functions/random_r.texi: Likewise.
38061         * doc/glibc-functions/setstate_r.texi: Likewise.
38062         * doc/glibc-functions/srandom_r.texi: Likewise.
38063         * config/srclist.txt: Mention it.
38064
38065 2008-10-23  David Lutterkort  <lutter@redhat.com>
38066
38067         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38068         link requirement
38069
38070 2008-10-23  Jim Meyering  <meyering@redhat.com>
38071
38072         selinux-h: mark parameters of stub functions as intentionally unused
38073         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38074         * lib/se-context.in.h: Likewise.
38075
38076 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38077
38078         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38079
38080 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38081
38082         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38083
38084 2008-10-22  Eric Blake  <ebb9@byu.net>
38085
38086         glthread/thread: avoid compiler warning
38087         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38088         Add unreachable abort to silence compiler.
38089
38090 2008-10-22  Eric Blake  <ebb9@byu.net>
38091
38092         netdb: also supply struct addrinfo for cygwin 1.5.x
38093         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38094         older cygwin.
38095         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38096         cygwin.
38097         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38098
38099 2008-10-22  Bruno Haible  <bruno@clisp.org>
38100
38101         * users.txt: Update entry about pspp.
38102
38103 2008-10-21  Bruno Haible  <bruno@clisp.org>
38104
38105         Simplification.
38106         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38107         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38108
38109         Simplification.
38110         * lib/ioctl.c (ioctl): Don't undefine.
38111         * lib/socket.c (socket): Don't undefine.
38112
38113         Remove unused module indicator macros.
38114         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38115         GNULIB_$1 as a C macro.
38116
38117         * doc/posix-functions/close.texi: Undo last change.
38118         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38119         Windows platforms.
38120
38121 2008-10-21  Bruno Haible  <bruno@clisp.org>
38122
38123         Add gethostname() declaration to <unistd.h>.
38124         * lib/unistd.in.h (gethostname): New declaration.
38125         * lib/gethostname.c: Include <unistd.h>.
38126         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38127         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38129         and HAVE_GETHOSTNAME.
38130         * modules/gethostname (Depends-on): Add unistd.
38131         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38132         (Include): Specify <unistd.h>.
38133         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38134         HAVE_GETHOSTNAME.
38135         * tests/test-gethostname.c: Include <unistd.h> first.
38136
38137 2008-10-21  Bruno Haible  <bruno@clisp.org>
38138
38139         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38140         * modules/select-tests (Depends-on): Likewise.
38141         Reported by Simon Josefsson.
38142
38143 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38144
38145         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38146         * lib/accept.c: New file, based on winsock.c.
38147         * lib/bind.c: New file, based on winsock.c.
38148         * lib/connect.c: New file, based on winsock.c.
38149         * lib/getpeername.c: New file, based on winsock.c.
38150         * lib/getsockname.c: New file, based on winsock.c.
38151         * lib/getsockopt.c: New file, based on winsock.c.
38152         * lib/ioctl.c: New file, based on winsock.c.
38153         * lib/listen.c: New file, based on winsock.c.
38154         * lib/recv.c: New file, based on winsock.c.
38155         * lib/recvfrom.c: New file, based on winsock.c.
38156         * lib/send.c: New file, based on winsock.c.
38157         * lib/sendto.c: New file, based on winsock.c.
38158         * lib/setsockopt.c: New file, based on winsock.c.
38159         * lib/shutdown.c: New file, based on winsock.c.
38160         * lib/socket.c: New file, based on winsock.c.
38161         * lib/w32sock.h: New file, based on winsock.c.
38162         * lib/winsock.c: Remove file.
38163         * modules/accept: Likewise.
38164         * modules/bind: Likewise.
38165         * modules/connect: Likewise.
38166         * modules/getpeername: Likewise.
38167         * modules/getsockname: Likewise.
38168         * modules/getsockopt: Likewise.
38169         * modules/ioctl: Likewise.
38170         * modules/listen: Likewise.
38171         * modules/recv: Likewise.
38172         * modules/recvfrom: Likewise.
38173         * modules/send: Likewise.
38174         * modules/sendto: Likewise.
38175         * modules/setsockopt: Likewise.
38176         * modules/shutdown: Likewise.
38177         * modules/socket: Use socket.c instead of winsock.c.
38178         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38179         * doc/posix-functions/accept.texi: Doc fix.
38180         * doc/posix-functions/bind.texi: Doc fix.
38181         * doc/posix-functions/close.texi: Doc fix.
38182         * doc/posix-functions/connect.texi: Doc fix.
38183         * doc/posix-functions/getpeername.texi: Doc fix.
38184         * doc/posix-functions/getsockname.texi: Doc fix.
38185         * doc/posix-functions/getsockopt.texi: Doc fix.
38186         * doc/posix-functions/ioctl.texi: Doc fix.
38187         * doc/posix-functions/listen.texi: Doc fix.
38188         * doc/posix-functions/recv.texi: Doc fix.
38189         * doc/posix-functions/recvfrom.texi: Doc fix.
38190         * doc/posix-functions/send.texi: Doc fix.
38191         * doc/posix-functions/sendto.texi: Doc fix.
38192         * doc/posix-functions/setsockopt.texi: Doc fix.
38193         * doc/posix-functions/shutdown.texi: Doc fix.
38194         * doc/posix-functions/socket.texi: Doc fix.
38195
38196 2008-10-20  Bruno Haible  <bruno@clisp.org>
38197
38198         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38199         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38200         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38201         as an alias for SIGABRT.
38202         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38203         (sigaction): Map it to SIGABRT.
38204         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38205
38206 2008-10-20  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/fts.c: Don't include lstat.h.
38209         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38210
38211         Move the lstat() declaration to <sys/stat.h>.
38212         * lib/lstat.h: Remove file.
38213         * lib/sys_stat.in.h: Add special invocation convention.
38214         (lstat): New declaration.
38215         * lib/lstat.c (orig_lstat): New function.
38216         (rpl_lstat): Use orig_lstat instead of lstat.
38217         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38218         AC_C_INLINE. Set REPLACE_LSTAT.
38219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38220         and REPLACE_LSTAT.
38221         * modules/lstat (Files): Remove lib/lstat.h.
38222         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38223         (Include): Specify <sys/stat.h> instead of lstat.h.
38224         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38225         REPLACE_LSTAT.
38226         * NEWS: Mention the change.
38227
38228 2008-10-20  Bruno Haible  <bruno@clisp.org>
38229
38230         * modules/posix_spawn-tests: New file.
38231         * tests/test-posix_spawn3.c: New file.
38232
38233 2008-10-20  Bruno Haible  <bruno@clisp.org>
38234
38235         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38236         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38237         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38238         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38239         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38240
38241 2008-10-20  Bruno Haible  <bruno@clisp.org>
38242
38243         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38244         of posix_spawn on AIX 5.3.
38245
38246 2008-10-20  Bruno Haible  <bruno@clisp.org>
38247
38248         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38249
38250 2008-10-20  Bruno Haible  <bruno@clisp.org>
38251
38252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38253         of AC_LANG_PROGRAM.
38254
38255 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38256
38257         * lib/netdb.in.h: Don't define GNU specific constants until they
38258         are supported or needed.  Reported by Bruno Haible
38259         <bruno@clisp.org>.
38260
38261 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38262
38263         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38264
38265 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38266
38267         * lib/getaddrinfo.h: Remove file.
38268         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38269         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38270         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38271         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38272         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38273         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38274         * tests/test-getaddrinfo.c: Likewise.
38275         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38276         * NEWS: Mention change.
38277
38278 2008-10-19  Bruno Haible  <bruno@clisp.org>
38279
38280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38281
38282 2008-10-19  Bruno Haible  <bruno@clisp.org>
38283
38284         * lib/wait-process.c: Include simply <sys/wait.h>.
38285         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38286         WIFSTOPPED): Remove fallback definitions.
38287         * modules/wait-process (Depends-on): Add sys_wait.
38288
38289         New module 'sys_wait'.
38290         * modules/sys_wait: New file.
38291         * lib/sys_wait.in.h: New file, partially copied from
38292         lib/wait-process.c.
38293         * m4/sys_wait_h.m4: New file.
38294         * doc/posix-headers/sys_wait.texi: Mention the new module.
38295
38296 2008-10-19  Bruno Haible  <bruno@clisp.org>
38297
38298         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38299
38300 2008-10-19  Bruno Haible  <bruno@clisp.org>
38301
38302         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38303         * lib/wait-process.c (WAIT_T): Remove type.
38304         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38305         (wait_subprocess): Update.
38306
38307 2008-10-19  Bruno Haible  <bruno@clisp.org>
38308
38309         New module 'atoll'.
38310         * modules/atoll: New file.
38311         * lib/stdlib.in.h (atoll): New declaration.
38312         * lib/atoll.c: New file, from glibc with modifications.
38313         * m4/atoll.m4: New file.
38314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38315         HAVE_ATOLL.
38316         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38317         * doc/posix-functions/atoll.texi: Mention the new module.
38318
38319 2008-10-19  Bruno Haible  <bruno@clisp.org>
38320
38321         Add strtoull() declaration to <stdlib.h>.
38322         * lib/stdlib.in.h (strtoull): New declaration.
38323         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38324         Set HAVE_STRTOULL.
38325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38326         HAVE_STRTOULL.
38327         * modules/strtoull (Depends-on): Add stdlib.
38328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38329         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38330         HAVE_STRTOULL.
38331
38332 2008-10-19  Bruno Haible  <bruno@clisp.org>
38333
38334         Add strtoll() declaration to <stdlib.h>.
38335         * lib/stdlib.in.h (strtoll): New declaration.
38336         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38337         Set HAVE_STRTOLL.
38338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38339         HAVE_STRTOLL.
38340         * modules/strtoll (Depends-on): Add stdlib.
38341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38342         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38343
38344 2008-10-19  Bruno Haible  <bruno@clisp.org>
38345
38346         * modules/bcopy (Depends-on): Add strings.
38347         (Include): Specify <strings.h>.
38348
38349 2008-10-19  Bruno Haible  <bruno@clisp.org>
38350
38351         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38352
38353 2008-10-19  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38356         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38357         mingw.
38358
38359 2008-10-19  Bruno Haible  <bruno@clisp.org>
38360
38361         * lib/atanl.c: Don't include isnanl.h.
38362         * lib/cosl.c: Likewise.
38363         * lib/ldexpl.c: Likewise.
38364         * lib/logl.c: Likewise.
38365         * lib/sinl.c: Likewise.
38366         * lib/sqrtl.c: Likewise.
38367         * lib/tanl.c: Likewise.
38368
38369         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38370         * lib/isnanf.h: Remove file.
38371         * lib/isnand.h: Remove file.
38372         * lib/isnanl.h: Remove file.
38373         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38374         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38375         macros.
38376         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38377         HAVE_ISNANF, don't define it as a C macro.
38378         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38379         HAVE_ISNAND, don't define it as a C macro.
38380         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38381         HAVE_ISNANL, don't define it as a C macro.
38382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38383         HAVE_ISNAN[FDL].
38384         * modules/isnanf (Files): Remove lib/isnanf.h.
38385         (Depends-on): Add math.
38386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38387         (Include): Specify <math.h> instead of isnanf.h.
38388         * modules/isnand (Files): Remove lib/isnand.h.
38389         (Depends-on): Add math.
38390         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38391         (Include): Specify <math.h> instead of isnand.h.
38392         * modules/isnanl (Files): Remove lib/isnanl.h.
38393         (Depends-on): Add math.
38394         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38395         (Include): Specify <math.h> instead of isnanl.h.
38396         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38397         HAVE_ISNAN[FDL].
38398         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38399         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38400         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38401         * NEWS: Mention the change.
38402
38403 2008-10-18  Bruno Haible  <bruno@clisp.org>
38404
38405         Add getusershell(), setusershell(), endusershell() declarations to
38406         <unistd.h>.
38407         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38408         declarations.
38409         * lib/getusershell.c: Include unistd.h.
38410         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38411         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38412         HAVE_GETUSERSHELL.
38413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38414         and HAVE_GETUSERSHELL.
38415         * modules/getusershell (Depends-on): Add unistd, extensions.
38416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38417         (Include): Specify <unistd.h>.
38418         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38419         HAVE_GETUSERSHELL.
38420
38421 2008-10-18  Bruno Haible  <bruno@clisp.org>
38422
38423         Add a getloadavg() declaration to <stdlib.h>.
38424         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38425         getloadavg declaration.
38426         (getloadavg): New declaration.
38427         * lib/getloadavg.c: Include <stdlib.h> first.
38428         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38429         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38430         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38432         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38433         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38434         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38435         (Include): Specify <stdlib.h>.
38436         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38437         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38438
38439 2008-10-18  Bruno Haible  <bruno@clisp.org>
38440
38441         * lib/dirchownmod.c: Don't include lchmod.h.
38442
38443         Move the lchmod() declaration to <sys/stat.h>.
38444         * lib/lchmod.h: Remove file.
38445         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38446         (lchmod): New declaration, moved here from lib/lchown.h.
38447         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38448         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38450         and HAVE_LCHMOD.
38451         * modules/lchmod (Files): Remove lib/lchmod.h.
38452         (Depends-on): Add sys_stat, extensions.
38453         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38454         (Include): Specify <sys/stat.h> instead of lchmod.h.
38455         * modules/sys_stat (Depends-on): Add link-warning.
38456         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38457         definition of GL_LINK_WARNING.
38458         * NEWS: Mention the change.
38459
38460 2008-10-18  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/fchdir.c: Don't include dirfd.h.
38463         * lib/fts.c: Likewise.
38464         * lib/getcwd.c: Likewise.
38465         * lib/glob.c: Likewise.
38466
38467         Move the dirfd() declaration to <dirent.h>.
38468         * lib/dirfd.h: Remove file.
38469         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38470         (dirfd): New declaration.
38471         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38472         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38473         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38474         HAVE_DECL_DIRFD.
38475         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38476         HAVE_DECL_DIRFD.
38477         * modules/dirfd (Files): Remove lib/dirfd.h.
38478         (Depends-on): Add dirent, extensions.
38479         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38480         (Include): Specify <dirent.h> instead of dirfd.h.
38481         * modules/dirent (Depends-on): Add link-warning.
38482         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38483         definition of GL_LINK_WARNING.
38484         * NEWS: Mention the change.
38485
38486 2008-10-18  Bruno Haible  <bruno@clisp.org>
38487
38488         Move the euidaccess() declaration to <unistd.h>.
38489         * lib/euidaccess.h: Remove file.
38490         * lib/unistd.in.h (euidaccess): New declaration.
38491         * lib/euidaccess.c: Don't include euidaccess.h.
38492         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38493         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38495         and HAVE_EUIDACCESS.
38496         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38497         (Depends-on): Add unistd.
38498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38499         (Include): Specify <unistd.h> instead of euidaccess.h.
38500         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38501         HAVE_EUIDACCESS.
38502         * NEWS: Mention the change.
38503
38504 2008-10-18  Bruno Haible  <bruno@clisp.org>
38505
38506         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38507
38508         Move the getdomainname() declaration to <unistd.h>.
38509         * lib/getdomainname.h: Remove file.
38510         * lib/unistd.in.h (getdomainname): New declaration.
38511         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38512         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38513         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38514         HAVE_GETDOMAINNAME.
38515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38516         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38517         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38518         (Depends-on): Add unistd, extensions.
38519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38520         (Includes): Specify <unistd.h> instead of getdomainname.h.
38521         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38522         HAVE_GETDOMAINNAME.
38523         * NEWS: Mention the change.
38524
38525 2008-10-18  Bruno Haible  <bruno@clisp.org>
38526
38527         * modules/dirent: New file.
38528         * m4/dirent_h.m4: New file.
38529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38530         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38531         * modules/fchdir (Files): Remove lib/dirent.in.h.
38532         (Depends-on): Add dirent.
38533         (Makefile.am): Move rules to modules/dirent.
38534         * doc/posix-headers/dirent.texi: Mention the new module.
38535
38536 2008-10-18  Bruno Haible  <bruno@clisp.org>
38537
38538         Avoid -Wunused-parameter warnings in public gnulib header files.
38539         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38540         macro.
38541         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38542
38543 2008-10-18  Bruno Haible  <bruno@clisp.org>
38544
38545         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38546         * doc/glibc-functions/error.texi: Mention the module 'error'.
38547         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38548         * doc/glibc-functions/getdomainname.texi: Mention the module
38549         'getdomainname'.
38550         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38551         * doc/glibc-functions/getpagesize.texi: Mention the module
38552         'getpagesize'.
38553         * doc/glibc-functions/getusershell.texi: Mention the module
38554         'getusershell'.
38555         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38556         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38557         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38558         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38559         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38560         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38561         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38562         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38563         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38564         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38565         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38566         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38567         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38568         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38569
38570 2008-10-17  Bruno Haible  <bruno@clisp.org>
38571
38572         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38573         HP-UX and IRIX, use -0.0L.
38574         * tests/test-ceill.c (minus_zero): Likewise.
38575         * tests/test-floorl.c (minus_zero): Likewise.
38576         * tests/test-frexpl.c (minus_zero): Likewise.
38577         * tests/test-isnan.c (minus_zerol): Likewise.
38578         * tests/test-isnanl.h (minus_zero): Likewise.
38579         * tests/test-ldexpl.c (minus_zero): Likewise.
38580         * tests/test-roundl.c (minus_zero): Likewise.
38581         * tests/test-signbit.c (minus_zerol): Likewise.
38582         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38583         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38584         * tests/test-truncl.c (minus_zero): Likewise.
38585         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38586         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38587         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38588         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38589
38590 2008-10-17  Bruno Haible  <bruno@clisp.org>
38591
38592         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38593         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38594         that it gets activated only for gcc >= 3.0.
38595         * lib/dirent.in.h: Likewise.
38596         * lib/errno.in.h: Likewise.
38597         * lib/fcntl.in.h: Likewise.
38598         * lib/float.in.h: Likewise.
38599         * lib/iconv.in.h: Likewise.
38600         * lib/inttypes.in.h: Likewise.
38601         * lib/locale.in.h: Likewise.
38602         * lib/math.in.h: Likewise.
38603         * lib/netdb.in.h: Likewise.
38604         * lib/netinet_in.in.h: Likewise.
38605         * lib/search.in.h: Likewise.
38606         * lib/signal.in.h: Likewise.
38607         * lib/spawn.in.h: Likewise.
38608         * lib/stdarg.in.h: Likewise.
38609         * lib/stdint.in.h: Likewise.
38610         * lib/stdio.in.h: Likewise.
38611         * lib/stdlib.in.h: Likewise.
38612         * lib/string.in.h: Likewise.
38613         * lib/strings.in.h: Likewise.
38614         * lib/sys_file.in.h: Likewise.
38615         * lib/sys_ioctl.in.h: Likewise.
38616         * lib/sys_select.in.h: Likewise.
38617         * lib/sys_socket.in.h: Likewise.
38618         * lib/sys_stat.in.h: Likewise.
38619         * lib/sys_time.in.h: Likewise.
38620         * lib/sysexits.in.h: Likewise.
38621         * lib/time.in.h: Likewise.
38622         * lib/unistd.in.h: Likewise.
38623         * lib/wchar.in.h: Likewise.
38624         * lib/wctype.in.h: Likewise.
38625         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38626
38627 2008-10-17  Jim Meyering  <meyering@redhat.com>
38628
38629         ignore-value: don't depend on inline module
38630         * modules/ignore-value (Depends-on): Remove 'inline'.
38631         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38632         Suggestion from Bruno Haible.
38633
38634 2008-10-17  Bruno Haible  <bruno@clisp.org>
38635
38636         New implementation of condition variables for Win32.
38637         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38638         (gl_linked_waitqueue_t): New type.
38639         (gl_cond_t): Use it.
38640         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38641         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38642         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38643         (glthread_cond_init_func, glthread_cond_wait_func,
38644         glthread_cond_timedwait_func, glthread_cond_signal_func,
38645         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38646         Reimplemented on the basis of gl_linked_waitqueue_t.
38647         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38648         gl_waitqueue_t.
38649         (gl_rwlock_t): Update.
38650         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38651
38652 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38653
38654         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38655         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38656
38657 2008-10-17  Jim Meyering  <meyering@redhat.com>
38658
38659         ignore-value: new module
38660         * modules/ignore-value: New file.
38661         * lib/ignore-value.h: New file.
38662         * MODULES.html.sh (Compiler warning management): New section,
38663         just for this module.  More to come.
38664
38665 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38668         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38669         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38670
38671 2008-10-16  Jim Meyering  <meyering@redhat.com>
38672
38673         openat-die.c: avoid 'no previous prototype' warning
38674         * lib/openat-die.c: Include "openat.h".
38675         Reported by Reuben Thomas <rrt@sc3d.org>.
38676
38677 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38678
38679         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38680         * lib/netdb.in.h: Fix typo.
38681         Reported by Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/netdb.in.h: Include sys/socket.h for platforms without
38684         netdb.h, to get structures like hostent on MinGW.
38685         * modules/netdb (Depends-on): Add sys_socket.
38686
38687 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38688
38689         * modules/netdb, modules/netdb-tests: New file.
38690         * m4/netdb_h.m4: New file.
38691         * lib/netdb.in.h: Add, currently just an empty file pending
38692         definitions.
38693         * tests/test-netdb.c: New file.
38694         * doc/posix-headers/netdb.texi: Mention that we replace it if
38695         needed.
38696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38697         netdb.
38698
38699 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38700
38701         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38702         with code.
38703
38704 2008-10-13  Bruno Haible  <bruno@clisp.org>
38705
38706         * lib/glthread/cond.c (glthread_cond_wait_func,
38707         glthread_cond_timedwait_func): Add a comment.
38708
38709 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38710
38711         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38712         * tests/test-select.c: Likewise,
38713
38714 2008-10-13  Bruno Haible  <bruno@clisp.org>
38715
38716         * lib/glthread/cond.c (glthread_cond_wait_func,
38717         glthread_cond_timedwait_func): Fix variable name.
38718         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38719
38720 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38721
38722         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38723         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38724         struct sockaddr.sa_len.
38725         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38726
38727 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38728
38729         * build-aux/pmccabe2html: Add css and css_url parameters.
38730
38731 2008-10-12  Bruno Haible  <bruno@clisp.org>
38732
38733         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38734         calling aclx_get.
38735         Reported by Rainer Tammer <tammer@tammer.net>.
38736
38737 2008-10-12  Bruno Haible  <bruno@clisp.org>
38738
38739         Use msvcrt aware primitives for creation/termination of Win32 threads.
38740         * lib/glthread/thread.c: Include <process.h>.
38741         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38742         (wrapper_func): Update signature.
38743         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38744
38745 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38746             Bruno Haible  <bruno@clisp.org>
38747
38748         Provide a Win32 implementation of the 'cond' module.
38749         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38750         * lib/glthread/cond.c (glthread_cond_init_func,
38751         glthread_cond_wait_func, glthread_cond_timedwait_func,
38752         glthread_cond_signal_func, glthread_cond_broadcast_func,
38753         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38754         * modules/cond (Dependencies): Add gettimeofday.
38755
38756 2008-10-11  Bruno Haible  <bruno@clisp.org>
38757
38758         Make sleep work on older versions of mingw.
38759         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38760         only whether it exists.
38761         * doc/posix-functions/sleep.texi: Mention the problem with older
38762         versions of mingw.
38763
38764 2008-10-11  Bruno Haible  <bruno@clisp.org>
38765
38766         New module 'shutdown'.
38767         * modules/shutdown: New file.
38768         * lib/sys_socket.in.h (shutdown): New declaration.
38769         * lib/winsock.c (shutdown): New function.
38770         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38771         GNULIB_SHUTDOWN.
38772         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38773         * doc/posix-functions/shutdown.texi: Document the new module.
38774
38775 2008-10-11  Jim Meyering  <meyering@redhat.com>
38776
38777         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38778
38779 2008-10-11  Bruno Haible  <bruno@clisp.org>
38780
38781         New module 'fclose'.
38782         * modules/fclose: New file.
38783         * lib/stdio.in.h (fclose): New declaration.
38784         * lib/fclose.c: New file.
38785         * m4/fclose.m4: New file.
38786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38787         REPLACE_FCLOSE.
38788         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38789         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38790         REPLACE_FCLOSE.
38791         * modules/close (Depends-on): fclose.
38792         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38793
38794 2008-10-11  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38797         set errno and don't call _close.
38798
38799 2008-10-10  Bruno Haible  <bruno@clisp.org>
38800
38801         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38802         ACL, not afterwards. Fixes test failure on Cygwin.
38803
38804 2008-10-09  Ben Pfaff  <blp@gnu.org>
38805
38806         * build-aux/announce-gen: Fix gnulib version related part of usage
38807         message.  Die with a useful error message if no tarballs are
38808         found.
38809
38810 2008-10-10  Jim Meyering  <meyering@redhat.com>
38811
38812         bootstrap: use git's --depth=N option only if it's supported
38813         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38814         recognize the --depth option.  Reported by Pádraig Brady.
38815
38816 2008-10-09  Bruno Haible  <bruno@clisp.org>
38817
38818         New module 'ioctl'.
38819         * modules/ioctl: New file.
38820         * lib/sys_socket.in.h (ioctl): Remove declaration.
38821         * lib/winsock.c: Include <sys/ioctl.h>.
38822         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38823         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38824         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38825         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38826         * doc/posix-functions/ioctl.texi: Mention the new module.
38827
38828 2008-10-09  Bruno Haible  <bruno@clisp.org>
38829
38830         New module 'sys_ioctl'.
38831         * lib/sys_ioctl.in.h: New file.
38832         * m4/sys_ioctl_h.m4: New file.
38833         * modules/sys_ioctl: New file.
38834         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38835
38836 2008-10-09  Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38839         * lib/winsock.c: Include <stdarg.h>.
38840         (rpl_ioctl): Change to second argument 'int' and then varargs.
38841
38842 2008-10-09  Bruno Haible  <bruno@clisp.org>
38843
38844         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38845         when the sys_socket module is present and the system has <winsock2.h>.
38846
38847 2008-10-09  Bruno Haible  <bruno@clisp.org>
38848
38849         * doc/posix-functions/close.texi: Mention module 'close' instead of
38850         module 'sys_socket'.
38851
38852 2008-10-09  Bruno Haible  <bruno@clisp.org>
38853
38854         * doc/glibc-headers/sys_ioctl.texi: New file.
38855         * doc/gnulib.texi: Include it.
38856
38857 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38858             Bruno Haible  <bruno@clisp.org>
38859
38860         Combine the two replacements of 'close'.
38861         * lib/sys_socket.in.h (close): Define to a reminder to include
38862         <unistd.h>.
38863         (_gl_close_fd_maybe_socket): New declaration.
38864         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38865         * lib/winsock.c (close): Remove undefinition.
38866         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38867         needed for the gnulib module 'close'.
38868         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38869         define to an error symbol or to a warning, if suitable.
38870         * lib/close.c: Include <sys/socket.h>.
38871         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38872         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38873         UNISTD_H_HAVE_WINSOCK2_H.
38874         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38876         UNISTD_H_HAVE_WINSOCK2_H.
38877         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38878         (configure.ac): Set a module indicator.
38879         (Makefile.am): Substitute GNULIB_CLOSE.
38880         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38881         * modules/poll-tests (Depends-on): Add close.
38882         * modules/select-tests (Depends-on): Likewise.
38883
38884 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38885             Bruno Haible  <bruno@clisp.org>
38886
38887         New module 'close'.
38888         * modules/close: New file.
38889         * lib/unistd.in.h (close): Move declaration out of the
38890         FCHDIR_REPLACEMENT scope.
38891         (_gl_unregister_fd): New declaration.
38892         * lib/close.c: New file.
38893         * lib/fchdir.c (rpl_close): Remove function.
38894         * m4/close.m4: New file.
38895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38896         close.
38897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38898         REPLACE_CLOSE.
38899         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38900         REPLACE_CLOSE.
38901         * modules/fchdir (Depends-on): Add close.
38902
38903 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38904             Bruno Haible  <bruno@clisp.org>
38905
38906         * lib/fcntl.in.h (open): Simplify conditionals.
38907         (_gl_register_fd): New declaration.
38908         * lib/fchdir.c (rpl_open): Remove function.
38909         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38910         also.
38911         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38913         open.
38914
38915 2008-10-09  Jim Meyering  <meyering@redhat.com>
38916
38917         GNUmakefile: use the more name-space-friendly "_version"
38918         * top/GNUmakefile (_dummy): Update.
38919         (_version): Rename from "version".
38920
38921 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38922             Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38925         rpl_close.
38926         (_gl_register_fd): New function, extracted from rpl_open.
38927         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38928         (rpl_open, rpl_opendir): Use _gl_register_fd.
38929
38930 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38931
38932         Fix organization of 'open' replacement.
38933         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38934         (gl_FUNC_OPEN): Use it.
38935         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38936
38937 2008-10-08  Bruno Haible  <bruno@clisp.org>
38938
38939         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38940
38941 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38942
38943         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38944         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38945         listen).
38946
38947 2008-10-08  Eric Blake  <ebb9@byu.net>
38948
38949         GNUmakefile: add 'make version' target
38950         * top/GNUmakefile (_curr-ver): Split version update rules...
38951         (version): ...into a target.
38952
38953 2008-10-07  Bruno Haible  <bruno@clisp.org>
38954
38955         Use a more portable replacement expression for -0.0L.
38956         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38957         instead of -0.0L. Fix m4 quotation.
38958
38959         * tests/test-signbit.c: Include <float.h>.
38960         (minus_zero): New variable.
38961         (test_signbitl): Use minus_zero instead of -zero.
38962         * modules/signbit-tests (Depends-on): Add float.
38963
38964         * tests/test-ceill.c: Include <float.h>.
38965         (zero): Remove variable.
38966         (minus_zero): New variable.
38967         (main): Use minus_zero instead of -zero.
38968         * modules/ceill-tests (Depends-on): Add float.
38969
38970         * tests/test-floorl.c: Include <float.h>.
38971         (zero): Remove variable.
38972         (minus_zero): New variable.
38973         (main): Use minus_zero instead of -zero.
38974         * modules/floorl-tests (Depends-on): Add float.
38975
38976         * tests/test-roundl.c: Include <float.h>.
38977         (zero): Remove variable.
38978         (minus_zero): New variable.
38979         (main): Use minus_zero instead of -zero.
38980         * modules/roundl-tests (Depends-on): Add float.
38981
38982         * tests/test-truncl.c: Include <float.h>.
38983         (zero): Remove variable.
38984         (minus_zero): New variable.
38985         (main): Use minus_zero instead of -zero.
38986         * modules/truncl-tests (Depends-on): Add float.
38987
38988         * tests/test-frexpl.c (zero): Remove variable.
38989         (minus_zero): New variable.
38990         (main): Use minus_zero instead of -zero.
38991         * modules/frexpl-tests (Depends-on): Add float.
38992
38993         * tests/test-isnan.c (zerol): Remove variable.
38994         (minus_zerol): New variable.
38995         (test_long_double): Use minus_zerol instead of -zerol.
38996         * modules/isnan-tests (Depends-on): Add float.
38997
38998         * tests/test-isnanl.h (zero): Remove variable.
38999         (minus_zero): New variable.
39000         (main): Use minus_zero instead of -zero.
39001         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39002         * modules/isnanl-tests (Depends-on): Add float.
39003
39004         * tests/test-ldexpl.c (zero): Remove variable.
39005         (minus_zero): New variable.
39006         (main): Use minus_zero instead of -zero.
39007         * modules/ldexpl-tests (Depends-on): Add float.
39008
39009         * tests/test-snprintf-posix.h (zerol): Remove variable.
39010         (minus_zerol): New variable.
39011         (test_function): Use minus_zerol instead of -zerol.
39012         * modules/snprintf-posix-tests (Depends-on): Add float.
39013         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39014
39015         * tests/test-sprintf-posix.h (zerol): Remove variable.
39016         (minus_zerol): New variable.
39017         (test_function): Use minus_zerol instead of -zerol.
39018         * modules/sprintf-posix-tests (Depends-on): Add float.
39019         * modules/vsprintf-posix-tests (Depends-on): Add float.
39020
39021         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39022         (minus_zerol): New variable.
39023         (test_function): Use minus_zerol instead of -zerol.
39024         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39025
39026         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39027         (minus_zerol): New variable.
39028         (test_function): Use minus_zerol instead of -zerol.
39029         * modules/vasprintf-posix-tests (Depends-on): Add float.
39030
39031 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39032
39033         * MODULES.html.sh (Support for building documentation): Mention
39034         pmccabe2html.  Sort entries.
39035
39036         Add pmccabe2html module, from gnupdf.
39037         * build-aux/pmccabe.css: New file.
39038         * build-aux/pmccabe2html: New file.
39039         * m4/pmccabe2html.m4: New file.
39040         * modules/pmccabe2html: New file.
39041
39042 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39043
39044         flock: new module
39045         * MODULES.html.sh: Add to list of modules.
39046         * lib/flock.c: flock implementation for Windows and Unix systems
39047         which have fcntl.
39048         * doc/glibc-functions/flock.texi: Update documentation.
39049         * lib/sys_file.in.h: <sys/file.h> header file.
39050         * m4/flock.m4: M4 macros.
39051         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39052         * modules/flock: flock module.
39053         * modules/flock-tests: flock tests module.
39054         * modules/sys_file: sys/file.h module.
39055         * tests/test-flock.c: test suite for flock.
39056
39057 2008-10-06  Jim Meyering  <meyering@redhat.com>
39058
39059         bootstrap: check for LT_INIT more portably still ;-)
39060         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39061         Spotted by Bruno Haible.
39062
39063 2008-10-06  Eric Blake  <ebb9@byu.net>
39064
39065         test-signbit: avoid tripping Irix cc bug on -0.0L
39066         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39067         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39068         entire testsuite consistent and avoids an Irix 6.2 bug.
39069
39070 2008-10-05  Bruno Haible  <bruno@clisp.org>
39071             Jim Meyering  <jim@meyering.net>
39072
39073         Add an option for ignoring EPIPE during close_stdout.
39074         * lib/closeout.h: Include <stdbool.h>.
39075         (close_stdout_set_ignore_EPIPE): New declaration.
39076         * lib/closeout.c: Include <stdbool.h>.
39077         (ignore_EPIPE): New variable.
39078         (close_stdout_set_ignore_EPIPE): New function.
39079         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39080         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39081         failure.
39082         * modules/closeout (Depends-on): Add stdbool.
39083
39084 2008-10-05  Bruno Haible  <bruno@clisp.org>
39085
39086         * modules/accept: New file.
39087         * modules/bind: New file.
39088         * modules/connect: New file.
39089         * modules/getpeername: New file.
39090         * modules/getsockname: New file.
39091         * modules/getsockopt: New file.
39092         * modules/listen: New file.
39093         * modules/recv: New file.
39094         * modules/recvfrom: New file.
39095         * modules/send: New file.
39096         * modules/sendto: New file.
39097         * modules/setsockopt: New file.
39098         * modules/socket: New file.
39099         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39100         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39101         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39102         the particular module is requested. Add a link warning when the
39103         particular module is not requested.
39104         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39105         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39106         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39107         the particular module is requested.
39108         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39109         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39110         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39111         * modules/sys_socket (Depends-on): Add link-warning.
39112         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39113         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39114         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39115         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39116         GL_LINK_WARNING.
39117         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39118         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39119         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39120         * doc/posix-functions/getpeername.texi: Mention the new module
39121         'getpeername'.
39122         * doc/posix-functions/getsockname.texi: Mention the new module
39123         'getsockname'.
39124         * doc/posix-functions/getsockopt.texi: Mention the new module
39125         'getsockopt'.
39126         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39127         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39128         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39129         * doc/posix-functions/send.texi: Mention the new module 'send'.
39130         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39131         * doc/posix-functions/setsockopt.texi: Mention the new module
39132         'setsockopt'.
39133         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39134         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39135         listen, connect, accept.
39136         * modules/select-tests (Depends-on): Likewise.
39137
39138 2008-10-05  Bruno Haible  <bruno@clisp.org>
39139
39140         * lib/winsock.c (strerror): Remove unused #undef.
39141         (rpl_close): Remove unused local variable.
39142
39143         * modules/sys_socket (Depends-on); Add errno.
39144
39145 2008-10-05  Bruno Haible  <bruno@clisp.org>
39146
39147         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39148         (select): Add a link warning when the 'select' module is not used.
39149         * modules/sys_select (Depends-on): Add link-warning.
39150         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39151         Suggested by Paolo Bonzini.
39152
39153 2008-10-05  Jim Meyering  <meyering@redhat.com>
39154
39155         bootstrap: check for LT_INIT more portably
39156         * build-aux/bootstrap: Avoid using grep -E, since it's not
39157         portable enough.  Suggestion from Bruno Haible.
39158
39159 2008-10-05  Bruno Haible  <bruno@clisp.org>
39160
39161         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39162         as being fixed by gnulib.
39163
39164 2008-10-05  Bruno Haible  <bruno@clisp.org>
39165
39166         * modules/select-tests: New file, mostly copied from
39167         modules/sys_select-tests.
39168         * tests/test-select.c: New file, mostly copied from
39169         tests/test-sys_select.c.
39170         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39171         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39172         (Makefile.am): Remove test_sys_select_LDADD.
39173
39174         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39175         to an undefined symbol, for an error message.
39176         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39177         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39178         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39179         winsock-select.c here.
39180         * modules/sys_select (Files): Remove lib/winsock-select.c.
39181         (Depends-on): Remove alloca.
39182         (Makefile.am): Substitute GNULIB_SELECT.
39183         * modules/select: New file.
39184         * doc/posix-functions/select.texi: Update.
39185
39186 2008-10-05  Bruno Haible  <bruno@clisp.org>
39187
39188         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39189         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39190         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39191         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39192         getdtablesize.
39193         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39194         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39195
39196 2008-10-05  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/getdtablesize-tests: New file.
39199         * tests/test-getdtablesize.c: New file.
39200
39201         New module 'getdtablesize'.
39202         * lib/unistd.in.h (getdtablesize): New declaration.
39203         * lib/getdtablesize.c: New file.
39204         * m4/getdtablesize.m4: New file.
39205         * modules/getdtablesize: New file.
39206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39207         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39208         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39209         HAVE_GETDTABLESIZE.
39210         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39211
39212 2008-10-05  Bruno Haible  <bruno@clisp.org>
39213
39214         * modules/sched (Makefile.am): Fix typo.
39215         Reported by Simon Josefsson.
39216
39217 2008-10-05  Jim Meyering  <meyering@redhat.com>
39218
39219         bootstrap: check for LT_INIT, too
39220         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39221         are deprecated.  Suggestion from Ralf Wildenhues.
39222
39223 2008-10-05  Bruno Haible  <bruno@clisp.org>
39224
39225         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39226         overriding them by ours.
39227         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39228
39229 2008-10-05  Jim Meyering  <meyering@redhat.com>
39230
39231         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39232         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39233         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39234
39235 2008-10-04  Bruno Haible  <bruno@clisp.org>
39236
39237         * modules/dup2 (License): Change to LGPLv2+.
39238         * modules/sleep (License): Likewise.
39239         * modules/perror (License): Likewise.
39240         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39241         Blake.
39242         * modules/signal (License): Likewise.
39243         * modules/sigprocmask (License): Likewise.
39244         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39245         Meyering.
39246
39247 2008-10-04  Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39250         Reported by Rainer Tammer <tammer@tammer.net>.
39251
39252 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39253             Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39256         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39257         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39258
39259 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39260
39261         filevercmp: new module
39262         * lib/filevercmp.h: New function filevercmp comparing version strings.
39263         * lib/filevercmp.c: Implementation of filevercmp function.
39264         * modules/filevercmp: Module metadata.
39265         * tests/test-filevercmp.c: Unit test for new module.
39266         * modules/filevercmp-tests: Unit test metadata.
39267         * MODULES.html.sh: Add filevercmp module.
39268
39269 2008-10-03  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/c-ctype.h: Add comment.
39272         Reported by Jim Meyering.
39273
39274 2008-10-02  Bruno Haible  <bruno@clisp.org>
39275
39276         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39277
39278 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39279
39280         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39281         name of bootstrap.conf accordingly.
39282
39283 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39284
39285         * build-aux/bootstrap: Install git-merge-changelog configuration
39286         items into .gitconfig if needed.
39287
39288 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39289
39290         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39291         git repository, and initialize/update it accordingly.
39292
39293 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39294
39295         * modules/fsync-tests: New file.
39296         * tests/test-fsync.c: New file.
39297
39298         New module 'fsync'.
39299         * lib/fsync.c: New file.
39300         * m4/fsync.m4: New file.
39301         * modules/fsync: New file.
39302         * lib/unistd.in.h (fsync): New declaration.
39303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39304         GNULIB_FSYNC and HAVE_FSYNC.
39305         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39306         * MODULES.html.sh (posix_functions): Add fsync.
39307         * doc/posix-functions/fsync.texi: Mention the new module.
39308
39309 2008-10-02  Jim Meyering  <meyering@redhat.com>
39310
39311         fts.c: sync with similar code from coreutils' remove.c
39312         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39313         Guard also with "#if defined __linux__", since for now at least,
39314         this code is Linux-kernel-specific.
39315
39316 2008-10-02  Jim Meyering  <meyering@redhat.com>
39317
39318         fts: bug fixes
39319         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39320         Include <sys/vfs.h>, not <sys/statfs.h>.
39321
39322         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39323         Include <sys/vfs.h>, not <sys/statfs.h>.
39324
39325 2008-10-01  Bruno Haible  <bruno@clisp.org>
39326
39327         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39328         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39329         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39330         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39331         * doc/posix-functions/posix_spawnp.texi: Likewise.
39332         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39333         whether posix_spawn actually works.
39334         * m4/pipe.m4 (gl_PIPE): Likewise.
39335         * modules/execute (Files): Add m4/posix_spawn.m4.
39336         * modules/pipe (Files): Add m4/posix_spawn.m4.
39337         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39338
39339 2008-10-01  Jim Meyering  <meyering@redhat.com>
39340
39341         remove trailing spaces
39342         * NEWS: Likewise.
39343         * lib/poll.c (poll): Likewise.
39344         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39345         * lib/winsock.c (rpl_close): Likewise.
39346         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39347         * modules/yield: Likewise.
39348         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39349         * tests/test-sys_select.c (connect_to_socket): Likewise.
39350
39351         fts.c: adjust a new interface to be more generally useful
39352         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39353         (fts_build): Adjust caller.
39354
39355 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39356
39357         * modules/cond-tests: New file.
39358         * tests/test-cond.c: New file.
39359
39360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39361             Bruno Haible  <bruno@clisp.org>
39362
39363         * modules/cond (Dependencies): Add errno, time.
39364         * lib/glthread/cond.h: Include <time.h>.
39365         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39366         across platforms.
39367
39368 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39369             Bruno Haible  <bruno@clisp.org>
39370
39371         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39372
39373 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39374             Bruno Haible  <bruno@clisp.org>
39375
39376         * modules/tls-tests (Depends-on): Add thread, yield.
39377         (configure.ac): Remove all checks.
39378         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39379         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39380         gl_thread_self): Remove definitions. Include glthread/thread.h and
39381         glthread/yield.h instead.
39382         (test_tls): Pass an additional NULL argument to gl_thread_join.
39383
39384 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39385             Bruno Haible  <bruno@clisp.org>
39386
39387         * modules/lock-tests (Depends-on): Add thread, yield.
39388         (configure.ac): Remove all checks.
39389         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39390         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39391         gl_thread_self): Remove definitions. Include glthread/thread.h and
39392         glthread/yield.h instead.
39393         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39394         additional NULL argument to gl_thread_join.
39395
39396 2008-09-30  Bruno Haible  <bruno@clisp.org>
39397
39398         Fix the Win32 implementation of the 'thread' module.
39399         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39400         pointer type.
39401         (gl_thread_self): Invoke gl_thread_self_func.
39402         (gl_thread_self_func): New declaration.
39403         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39404         (do_init_self_key, init_self_key): New functions.
39405         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39406         Remove some fields.
39407         (running_threads, running_lock): Remove variables.
39408         (get_current_thread_handle): New function.
39409         (gl_thread_self_func, wrapper_func, glthread_create_func,
39410         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39411         simplified.
39412
39413 2008-09-30  Bruno Haible  <bruno@clisp.org>
39414
39415         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39416         files.
39417
39418 2008-09-30  Jim Meyering  <meyering@redhat.com>
39419
39420         fts.m4: correct the test for statfs.f_type
39421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39422         when checking for statfs.f_type.
39423
39424 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39425
39426         tests: avoid some compiler warnings
39427         * tests/test-memchr.c (main): Pass NULL indirectly.
39428         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39429
39430 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39431
39432         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39433         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39434         exactly specified dayshifts.
39435         (dayshift): New rule.
39436         (rel): Add dayshift.
39437         (relative_time_table) [tomorrow, yesterday, today, now]:
39438         Use tDAY_SHIFT in place of tDAY_UNIT.
39439         * tests/test-getdate.c: Add tests for now-disallowed countable
39440         dayshifts, e.g., "4 yesterday ago".
39441
39442 2008-09-29  Bruno Haible  <bruno@clisp.org>
39443
39444         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39445         * tests/test-posix_spawn1.in.sh: Renamed from
39446         tests/test-posix_spawn.in.sh.
39447         * tests/test-posix_spawn2.c: New file.
39448         * tests/test-posix_spawn2.in.sh: New file.
39449         * modules/posix_spawnp-tests (Files): Update.
39450         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39451
39452 2008-09-29  Bruno Haible  <bruno@clisp.org>
39453
39454         Propagate effects of putenv/setenv/unsetenv to child processes.
39455         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39456         * lib/pipe.c (create_pipe): Likewise.
39457
39458 2008-09-29  Bruno Haible  <bruno@clisp.org>
39459
39460         Enable use of shell scripts as executables in mingw.
39461         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39462         run the program as a shell script.
39463         * lib/pipe.c (create_pipe): Likewise.
39464         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39465         resulting array.
39466
39467 2008-09-29  Eric Blake  <ebb9@byu.net>
39468
39469         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39470
39471 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39472
39473         * doc/posix-functions/accept.texi: Update mingw problems.
39474         * doc/posix-functions/bind.texi: Update mingw problems.
39475         * doc/posix-functions/close.texi: Update mingw problems.
39476         * doc/posix-functions/connect.texi: Update mingw problems.
39477         * doc/posix-functions/getpeername.texi: Update mingw problems.
39478         * doc/posix-functions/getsockname.texi: Update mingw problems.
39479         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39480         * doc/posix-functions/ioctl.texi: Update mingw problems.
39481         * doc/posix-functions/listen.texi: Update mingw problems.
39482         * doc/posix-functions/recv.texi: Update mingw problems.
39483         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39484         * doc/posix-functions/select.texi: Update mingw problems.
39485         * doc/posix-functions/send.texi: Update mingw problems.
39486         * doc/posix-functions/sendto.texi: Update mingw problems.
39487         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39488         * doc/posix-functions/socket.texi: Update mingw problems.
39489
39490 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39491             Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/sys_select.in.h: Include sys/time.h.
39494         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39495         * modules/sys_select: Depend on sys_time.
39496         * tests/test-sys_select.c: Test that sys/select.h defines struct
39497         timeval fully.
39498
39499 2008-09-29  Bruno Haible  <bruno@clisp.org>
39500
39501         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39502         * lib/sys_select.in.h: Likewise.
39503
39504 2008-09-29  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39507
39508 2008-09-29  Bruno Haible  <bruno@clisp.org>
39509
39510         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39511         Set LIBSOCKET instead of augmenting LIBS.
39512         * modules/sockets (Link): New section.
39513         * modules/sockets-tests (test_sockets_LDADD): New variable.
39514         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39515         * modules/poll-tests (test_poll_LDADD): New variable.
39516         * NEWS: Document the change.
39517
39518 2008-09-29  Bruno Haible  <bruno@clisp.org>
39519
39520         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39521         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39522         ARPA_INET_H directly.
39523         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39524
39525 2008-09-28  Bruno Haible  <bruno@clisp.org>
39526
39527         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39528         from gl_HEADER_SYS_SOCKET.
39529         (gl_HEADER_SYS_SOCKET): Invoke it.
39530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39531
39532 2008-09-28  Bruno Haible  <bruno@clisp.org>
39533
39534         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39535         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39536         Needed on OSF/1 4.0.
39537
39538 2008-09-28  Bruno Haible  <bruno@clisp.org>
39539
39540         Override open more carefully.
39541         * lib/open.c (orig_open): New function.
39542         (rpl_open): Use orig_open instead of open.
39543         * lib/fcntl.in.h: Add special invocation convention.
39544         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39545         (gl_FUNC_OPEN): Invoke it.
39546
39547         Override freopen more carefully.
39548         * lib/freopen.c (orig_freopen): New function.
39549         (rpl_freopen): Use orig_freopen instead of freopen.
39550         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39551         (gl_FUNC_FREOPEN): Invoke it.
39552
39553         Override fopen more carefully.
39554         * lib/fopen.c (orig_fopen): New function.
39555         (rpl_fopen): Use orig_fopen instead of fopen.
39556         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39557         (gl_FUNC_FOPEN): Invoke it.
39558         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39559
39560 2008-09-28  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39563         SIGPIPE.
39564
39565 2008-09-28  Bruno Haible  <bruno@clisp.org>
39566
39567         * tests/test-sigaction.c (handler, main): Disable the check whether
39568         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39569         glibc systems with LinuxThreads.
39570
39571 2008-09-28  Bruno Haible  <bruno@clisp.org>
39572
39573         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39574
39575         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39576         with AIX xlc.
39577         * lib/fcntl.in.h (open): Likewise.
39578         Reported by Rainer Tammer <tammer@tammer.net>.
39579
39580 2008-09-28  Bruno Haible  <bruno@clisp.org>
39581
39582         * modules/posix_spawnp-tests: New file.
39583         * tests/test-posix_spawn.c: New file.
39584         * tests/test-posix_spawn.in.sh: New file.
39585
39586         New module 'posix_spawnp'.
39587         * modules/posix_spawnp: New file.
39588         * lib/spawnp.c: New file, from GNU libc with modifications.
39589         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39590
39591         New module 'posix_spawn'.
39592         * modules/posix_spawn: New file.
39593         * lib/spawn.c: New file, from GNU libc with modifications.
39594         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39595
39596         New module 'posix_spawnattr_destroy'.
39597         * modules/posix_spawnattr_destroy: New file.
39598         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39599         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39600         module.
39601
39602         New module 'posix_spawnattr_setsigmask'.
39603         * modules/posix_spawnattr_setsigmask: New file.
39604         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39605         modifications.
39606         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39607         new module.
39608
39609         New module 'posix_spawnattr_getsigmask'.
39610         * modules/posix_spawnattr_getsigmask: New file.
39611         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39612         modifications.
39613         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39614         new module.
39615
39616         New module 'posix_spawnattr_setsigdefault'.
39617         * modules/posix_spawnattr_setsigdefault: New file.
39618         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39619         modifications.
39620         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39621         new module.
39622
39623         New module 'posix_spawnattr_getsigdefault'.
39624         * modules/posix_spawnattr_getsigdefault: New file.
39625         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39626         modifications.
39627         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39628         new module.
39629
39630         New module 'posix_spawnattr_setschedpolicy'.
39631         * modules/posix_spawnattr_setschedpolicy: New file.
39632         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39633         modifications.
39634         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39635         new module.
39636
39637         New module 'posix_spawnattr_getschedpolicy'.
39638         * modules/posix_spawnattr_getschedpolicy: New file.
39639         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39640         modifications.
39641         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39642         new module.
39643
39644         New module 'posix_spawnattr_setschedparam'.
39645         * modules/posix_spawnattr_setschedparam: New file.
39646         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39647         modifications.
39648         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39649         new module.
39650
39651         New module 'posix_spawnattr_getschedparam'.
39652         * modules/posix_spawnattr_getschedparam: New file.
39653         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39654         modifications.
39655         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39656         new module.
39657
39658         New module 'posix_spawnattr_setpgroup'.
39659         * modules/posix_spawnattr_setpgroup: New file.
39660         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39661         modifications.
39662         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39663         module.
39664
39665         New module 'posix_spawnattr_getpgroup'.
39666         * modules/posix_spawnattr_getpgroup: New file.
39667         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39668         modifications.
39669         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39670         module.
39671
39672         New module 'posix_spawnattr_setflags'.
39673         * modules/posix_spawnattr_setflags: New file.
39674         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39675         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39676         module.
39677
39678         New module 'posix_spawnattr_getflags'.
39679         * modules/posix_spawnattr_getflags: New file.
39680         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39681         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39682         module.
39683
39684         New module 'posix_spawnattr_init'.
39685         * modules/posix_spawnattr_init: New file.
39686         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39687         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39688         module.
39689
39690         New module 'posix_spawn_file_actions_destroy'.
39691         * modules/posix_spawn_file_actions_destroy: New file.
39692         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39693         modifications.
39694         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39695         the new module.
39696
39697         New module 'posix_spawn_file_actions_addopen'.
39698         * modules/posix_spawn_file_actions_addopen: New file.
39699         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39700         modifications.
39701         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39702         the new module.
39703
39704         New module 'posix_spawn_file_actions_adddup2'.
39705         * modules/posix_spawn_file_actions_adddup2: New file.
39706         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39707         modifications.
39708         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39709         the new module.
39710
39711         New module 'posix_spawn_file_actions_addclose'.
39712         * modules/posix_spawn_file_actions_addclose: New file.
39713         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39714         modifications.
39715         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39716         the new module.
39717
39718         New module 'posix_spawn_file_actions_init'.
39719         * modules/posix_spawn_file_actions_init: New file.
39720         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39721         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39722         new module.
39723
39724         New module 'posix_spawn-internal'.
39725         * modules/posix_spawn-internal: New file.
39726         * lib/spawn_int.h: New file, from GNU libc with modifications.
39727         * lib/spawni.c: New file, from GNU libc with modifications.
39728         * m4/posix_spawn.m4: New file.
39729
39730         New module 'spawn'.
39731         * modules/spawn: New file.
39732         * lib/spawn.in.h: New file, from GNU libc with modifications.
39733         * m4/spawn_h.m4: New file.
39734         * doc/posix-headers/spawn.texi: Mention the new module.
39735
39736 2008-09-28  Bruno Haible  <bruno@clisp.org>
39737
39738         * modules/sched-tests: New file.
39739         * tests/test-sched.c: New file.
39740
39741         New module 'sched'.
39742         * modules/sched: New file.
39743         * lib/sched.in.h: New file.
39744         * m4/sched_h.m4: New file.
39745         * doc/posix-headers/sched.texi: Mention the new module.
39746
39747 2008-09-27  Eric Blake  <ebb9@byu.net>
39748
39749         Fix previous patch, and tweak references to $0.
39750         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39751         (func_version, func_gnulib_dir): Don't call this program
39752         gnulib-tool.
39753         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39754         with using $0 in function.
39755         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39756         (func_fatal_error): Reuse the name the user invoked us with.
39757
39758 2008-09-27  Bruno Haible  <bruno@clisp.org>
39759
39760         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39761         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39762         (gl_ICONV_H): Not here.
39763         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39764         instead of assigning ICONV_H directly.
39765
39766         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39768         WCHAR_H directly.
39769
39770 2008-09-27  Bruno Haible  <bruno@clisp.org>
39771
39772         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39773         * modules/arpa_inet (Depends-on): Add link-warning.
39774         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39775         * modules/unistd (Makefile.am): Likewise.
39776
39777 2008-09-26  Bruno Haible  <bruno@clisp.org>
39778
39779         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39780         variables.
39781         (func_version): Essentially copied from gnulib-tool.
39782         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39783         func_readlink): Copied from gnulib-tool.
39784
39785 2008-09-26  Bruno Haible  <bruno@clisp.org>
39786
39787         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39788         invoking git-version-gen.
39789
39790 2008-09-26  Bruno Haible  <bruno@clisp.org>
39791
39792         * posix-modules: Update to directory names changed on 2008-01-19.
39793         Remove commas in output before splitting into words. No more need to
39794         avoid 'ftruncate' since 2007-02-19.
39795
39796 2008-09-26  Bruno Haible  <bruno@clisp.org>
39797
39798         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39799
39800 2008-09-26  Bruno Haible  <bruno@clisp.org>
39801
39802         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39803         * modules/fwriteerror (Depends-on): Add errno.
39804
39805 2008-09-26  Bruno Haible  <bruno@clisp.org>
39806
39807         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39808         * tests/test-vc-list-files-cvs.sh: Likewise.
39809
39810 2008-09-26  Bruno Haible  <bruno@clisp.org>
39811
39812         * doc/posix-headers/sys_resource.texi: Reorder items.
39813
39814 2008-09-26  Jim Meyering  <meyering@redhat.com>
39815
39816         fts: tweak inode comparison function
39817         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39818         inode numbers, as documented.
39819
39820         fts: sort dirent entries on inode number before traversing
39821         This avoids a quadratic, seek-related performance penalty when
39822         operating on a directory containing many entries (measurable at 10k;
39823         3.5 hours at 2 million entries with a cold cache) on certain types
39824         of file systems, including ext3 and ext4, but not tmpfs.
39825         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39826         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39827         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39828         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39829         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39830         (fts_build): Set the stat.st_ino member from D_INO.
39831         If it is likely to be useful, sort dirent entries on inode number.
39832
39833         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39834         and the struct statfs.f_type member.
39835         * modules/fts (Depends-on): Add d-ino.
39836
39837 2008-09-26  Bruno Haible  <bruno@clisp.org>
39838
39839         * modules/sigpipe-die (Depends-on): Add sigpipe.
39840
39841         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39842         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39843         and GNULIB_STDIO_H_SIGPIPE are set.
39844         * lib/stdio-write.c: New file.
39845         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39846         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39847         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39848         REPLACE_STDIO_WRITE_FUNCS.
39849         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39850         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39851         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39852         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39853         * modules/stdio (Files): Add lib/stdio-write.c.
39854         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39855         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39856         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39857         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39858         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39859         REPLACE_FPRINTF_POSIX.
39860         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39861         REPLACE_PRINTF_POSIX.
39862         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39863         REPLACE_VFPRINTF_POSIX.
39864         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39865         REPLACE_VPRINTF_POSIX.
39866         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39867         SIGPIPE issue.
39868         * doc/posix-functions/fputc.texi: Likewise.
39869         * doc/posix-functions/fputs.texi: Likewise.
39870         * doc/posix-functions/fwrite.texi: Likewise.
39871         * doc/posix-functions/printf.texi: Likewise.
39872         * doc/posix-functions/putc.texi: Likewise.
39873         * doc/posix-functions/putchar.texi: Likewise.
39874         * doc/posix-functions/puts.texi: Likewise.
39875         * doc/posix-functions/vfprintf.texi: Likewise.
39876         * doc/posix-functions/vprintf.texi: Likewise.
39877
39878         * modules/safe-write (Depends-on): Add write.
39879
39880         * modules/sigpipe-tests: New file.
39881         * tests/test-sigpipe.c: New file.
39882         * tests/test-sigpipe.sh: New file.
39883
39884         * modules/write: New file.
39885         * lib/unistd.in.h: Include <sys/types.h>.
39886         (write): New declaration.
39887         * lib/write.c: New file.
39888         * m4/write.m4: New file.
39889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39890         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39891         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39892         GNULIB_WRITE, REPLACE_WRITE.
39893         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39894         and the SIGPIPE issue.
39895
39896         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39897         (raise): New declaration.
39898         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39899         (ext_signal): New function.
39900         (rpl_raise): New function.
39901         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39902         GNULIB_SIGNAL_H_SIGPIPE.
39903         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39904         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39905
39906         * modules/sigpipe: New file.
39907         * m4/sigpipe.m4: New file.
39908
39909 2008-09-25  Derek Price  <derek@ximbiot.com>
39910             Bruno Haible  <bruno@clisp.org>
39911
39912         * gnulib-tool (func_import): Report all license incompatibilities, not
39913         just the first one.
39914
39915 2008-09-25  Bruno Haible  <bruno@clisp.org>
39916
39917         * gnulib-tool (func_import): When computing the edits, consider not
39918         only the Makefile.ams that exist but also those that will be generated.
39919
39920 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39921
39922         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39923         fixes gnulib-tool --test warning about duplicate dependency.
39924
39925 2008-09-25  Bruno Haible  <bruno@clisp.org>
39926
39927         * gnulib-tool: Don't ask the user to perform edits in the generated
39928         Makefile.ams.
39929         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39930         apply to the Makefile.am being generated.
39931         (func_emit_tests_Makefile_am): Execute edits that apply to the
39932         Makefile.am being generated.
39933         (func_import): Setup list of Makefile.am edits before emitting the
39934         Makefile.ams, not at the end.
39935         (func_create_testdir): Update.
39936         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39937
39938 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39939
39940         * gnulib-tool (func_import): Store the --tests-base option in the
39941         comment in gnulib-cache.m4.
39942
39943 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39944
39945         * NEWS: Document increased portability that sys_select now provides.
39946
39947         * lib/sys_select.in.h: Install select wrapper.
39948         * lib/sys_socket.in.h: Use more descriptive name when there is no
39949         select wrapper.
39950         * lib/winsock-select.c: New.
39951         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39952         Require gl_HEADER_SYS_SOCKET.
39953         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39954         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39955         * tests/test-sys_select.c: Add functional tests.
39956
39957 2008-09-24  Eric Blake  <ebb9@byu.net>
39958
39959         open, fopen: close fd leak in last patch
39960         * lib/open.c (rpl_open): Close fd before returning error.
39961         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39962         * doc/posix-functions/open.texi (open): Document that Irix also
39963         has the bug.
39964         * doc/posix-functions/fopen.texi (fopen): Likewise.
39965         Reported by Paolo Bonzini.
39966
39967 2008-09-24  Bruno Haible  <bruno@clisp.org>
39968
39969         Ensure that a filename ending in a slash cannot be used to access a
39970         non-directory.
39971         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39972         to check whether it's really a directory.
39973         * lib/fopen.c: Include fcntl.h, unistd.h.
39974         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39975         and fdopen().
39976         * modules/fopen (Depends-on): Add unistd.
39977         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39978         * tests/test-fopen.c (main): Likewise.
39979         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39980         * doc/posix-functions/fopen.texi: Likewise.
39981         Reported by Eric Blake.
39982
39983 2008-09-23  Eric Blake  <ebb9@byu.net>
39984
39985         c-stack: avoid compiler optimizations when provoking overflow
39986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39987         recursion harder to optimize, to ensure a stack overflow occurs.
39988         * tests/test-c-stack.c (recurse): Likewise.
39989         Borrowed from libsigsegv.
39990
39991         c-stack: work around Irix sigaltstack bug
39992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39993         whether sigaltstack uses wrong end of stack_t (copied in part from
39994         libsigsegv).
39995         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39996         Irix bug, without requiring an over-allocation.
39997         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39998         bug.
39999
40000         fopen: document mingw bug on directories
40001         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40002         not allowing a stream visiting a directory, even though reading
40003         from such a stream is not portable.
40004
40005 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40006
40007         * lib/poll.c: Rewrite.
40008         * modules/poll: Depend on alloca.
40009
40010 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40011
40012         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40013         instead define prototypes for a full set of wrappers.  Ensure
40014         that Cygwin does not use the compatibility code, which is only
40015         for MinGW.
40016         * lib/winsock.c: New.
40017         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40018         * modules/sys_socket: Add lib/winsock.c.
40019
40020         * modules/poll-tests: Add errno and perror.
40021         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40022
40023 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40024
40025         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40026
40027 2008-09-23  Bruno Haible  <bruno@clisp.org>
40028
40029         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40030         * doc/glibc-functions/*: Likewise.
40031
40032 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40033
40034         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40035         success.
40036
40037 2008-09-22  Eric Blake  <ebb9@byu.net>
40038             Bruno Haible  <bruno@clisp.org>
40039
40040         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40041         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40042         supply %A but mishandle pseudo-NaN.
40043         Reported by Simon Josefsson.
40044
40045 2008-09-21  Bruno Haible  <bruno@clisp.org>
40046
40047         * tests/test-lock.c (main): Tweak skip message.
40048         * tests/test-tls.c (main): Likewise.
40049
40050 2008-09-21  Bruno Haible  <bruno@clisp.org>
40051
40052         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40053         whether 'struct sigaction' has sa_sigaction here...
40054         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40055         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40056
40057 2008-09-21  Bruno Haible  <bruno@clisp.org>
40058
40059         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40060         section.
40061         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40062         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40063         the new section.
40064         (Support for obsolete systems lacking POSIX:2001): New section.
40065         (String handling <string.h>): Move strdup to the new section.
40066         Suggested by Simon Josefsson and Paolo Bonzini.
40067
40068 2008-09-21  Bruno Haible  <bruno@clisp.org>
40069
40070         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40071         exponents in %e and %g results on 'long double'. Needed for mingw's
40072         improved *printf functions.
40073         * tests/test-vasprintf-posix.c (test_function): Likewise.
40074         * tests/test-snprintf-posix.h (test_function): Likewise.
40075         * tests/test-sprintf-posix.h (test_function): Likewise.
40076         Reported by Eric Blake.
40077
40078 2008-09-21  Bruno Haible  <bruno@clisp.org>
40079
40080         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40081         * tests/test-sprintf-posix.h (test_function): Likewise.
40082
40083 2008-09-21  Bruno Haible  <bruno@clisp.org>
40084
40085         * modules/getpass (Depends-on): Add strdup-posix.
40086
40087         New module 'strdup-posix'.
40088         * modules/strdup-posix: New file.
40089         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40090         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40092         REPLACE_STRDUP.
40093         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40094         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40096         strdup-posix.
40097
40098         * modules/strdup (Depends-on): Remove malloc-posix.
40099
40100 2008-09-20  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40103         Wildenhues.
40104
40105 2008-09-20  Bruno Haible  <bruno@clisp.org>
40106
40107         Ensure that wint_t gets defined on IRIX 5.3.
40108         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40109         * lib/wctype.in.h (wint_t): Likewise.
40110         (__wctype_wint_t): Remove type.
40111         (isw*): Use wint_t instead of __wctype_wint_t.
40112         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40113         * modules/wchar (Files): Add m4/wint_t.m4.
40114         (Makefile.am): Substitute HAVE_WINT_T.
40115         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40116         * tests/test-wctype.c: Check that wint_t is defined.
40117         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40118         * doc/posix-headers/wctype.texi: Likewise.
40119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40120
40121 2008-09-18  Bruno Haible  <bruno@clisp.org>
40122
40123         * gnulib-tool (func_exit): Update comment.
40124
40125 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40126
40127         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40128         assumes strdup exists and does not depend on strdup to return
40129         ENOMEM on out of memory conditions.
40130
40131 2008-09-18  Bruno Haible  <bruno@clisp.org>
40132
40133         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40134         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40135         digits for the exponent.
40136
40137 2008-09-18  Jim Meyering  <meyering@redhat.com>
40138             Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/vasnprintf.c (decimal_point_char): Define also if
40141         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40142
40143 2008-09-16  Bruno Haible  <bruno@clisp.org>
40144         and Eric Blake  <ebb9@byu.net>
40145
40146         vasnprintf: support Irix 5.3
40147         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40148         that mishandle long double infinity.
40149         Reported by Tom G. Christensen.
40150
40151 2008-09-16  Bruno Haible  <bruno@clisp.org>
40152
40153         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40154         Solaris 9.
40155         * doc/glibc-functions/alphasort.texi: Likewise.
40156         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40157
40158 2008-09-16  Jim Meyering  <meyering@redhat.com>
40159
40160         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40161         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40162         a umask modification leak out of a subshell.  Otherwise, the
40163         opensolaris /bin/sh would be accepted and thus cause unwarranted
40164         failures in the coreutils test suite.
40165
40166 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40167
40168         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40169         to succeed.
40170
40171 2008-09-16  Jim Meyering  <meyering@redhat.com>
40172
40173         avoid spurious test failure when library is built without ACL support
40174         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40175         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40176         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40177         * tests/test-copy-acl.sh: Likewise.
40178
40179 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40180
40181         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40182         based on character occurrence counts.
40183
40184 2008-09-15  Eric Blake  <ebb9@byu.net>
40185
40186         tests: avoid some compiler warnings
40187         * tests/test-memchr.c (main): Pass NULL indirectly.
40188         * tests/test-closein.c (main): Avoid unused variable.
40189
40190 2008-09-15  Bruno Haible  <bruno@clisp.org>
40191
40192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40193         are missing on OpenBSD 4.0 individually.
40194         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40195
40196 2008-09-15  Bruno Haible  <bruno@clisp.org>
40197
40198         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40199         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40200         * doc/posix-functions/perror.texi: Likewise.
40201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40202         is missing.
40203         Reported by Eric Blake.
40204
40205         * lib/errno.in.h: Use replacement values >= 2000.
40206         Reported by Eric Blake.
40207
40208 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40209
40210         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40211         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40212         limit.
40213         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40214         compareseq was aborted.
40215
40216 2008-09-14  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40219         yvec_edit_count.
40220         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40221         (fstrcmp_bounded): Simplify result computation accordingly.
40222
40223 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40224
40225         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40226         (fstrcmp): Define in terms of fstrcmp_bounded.
40227         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40228         lower_bound argument.
40229         Return quickly if the result is certainly < lower_bound.
40230         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40231
40232 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40233
40234         * lib/diffseq.h (EARLY_ABORT): New macro.
40235         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40236         evaluates to true.
40237
40238 2008-09-14  Bruno Haible  <bruno@clisp.org>
40239
40240         * modules/perror-tests: New file.
40241         * tests/test-perror.sh: New file.
40242         * tests/test-perror.c: New file.
40243
40244         New module 'perror'.
40245         * lib/stdio.in.h (perror): New declaration.
40246         * lib/perror.c: New file.
40247         * m4/perror.m4: New file.
40248         * modules/perror: New file.
40249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40250         * doc/posix-functions/perror.texi: Mention the perror module.
40251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40252         REPLACE_PERROR.
40253         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40254         REPLACE_PERROR.
40255
40256 2008-09-14  Bruno Haible  <bruno@clisp.org>
40257
40258         * modules/stdio (Makefile.am): Reorder to match the order in
40259         lib/stdio.in.h.
40260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40261
40262 2008-09-13  Bruno Haible  <bruno@clisp.org>
40263
40264         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40265
40266 2008-09-13  Bruno Haible  <bruno@clisp.org>
40267
40268         Extend strerror to cover the added errno values.
40269         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40270         (rpl_strerror): Provide error messages for the added errno values and
40271         for the WSA* values.
40272         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40273         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40274         strerror.
40275         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40276         * modules/strerror (Depends-on): Add errno.
40277         * doc/posix-functions/strerror.texi: Document the change.
40278         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40279         and EOVERFLOW.
40280
40281 2008-09-13  Bruno Haible  <bruno@clisp.org>
40282
40283         * modules/EOVERFLOW: Remove file.
40284         * m4/eoverflow.m4: Remove file.
40285         * modules/EOVERFLOW-tests: Remove file.
40286         * tests/test-EOVERFLOW.c: Remove file.
40287         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40288         * modules/ftell (Depends-on): Likewise.
40289         * modules/getdelim (Depends-on): Likewise.
40290         * modules/getugroups (Depends-on): Likewise.
40291         * modules/poll (Depends-on): Likewise.
40292         * modules/snprintf (Depends-on): Likewise.
40293         * modules/sprintf-posix (Depends-on): Likewise.
40294         * modules/vasnprintf (Depends-on): Likewise.
40295         * modules/vasprintf (Depends-on): Likewise.
40296         * modules/vfprintf-posix (Depends-on): Likewise.
40297         * modules/vsnprintf (Depends-on): Likewise.
40298         * modules/vsprintf-posix (Depends-on): Likewise.
40299         * modules/xvasprintf (Depends-on): Likewise.
40300         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40301         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40302         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40303         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40304         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40305         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40306         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40307         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40308         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40309         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40310         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40311         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40312         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40313         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40314         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40315         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40316         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40317         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40318         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40319         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40320         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40321         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40322         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40323         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40324         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40325         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40326         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40327         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40328         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40329         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40330         * MODULES.html.sh: Remove EOVERFLOW.
40331         * NEWS: Mention the change.
40332
40333 2008-09-13  Bruno Haible  <bruno@clisp.org>
40334
40335         * modules/errno-tests: New file.
40336         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40337
40338         * lib/errno.in.h: New file.
40339         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40340         * modules/errno: New file.
40341         * doc/posix-headers/errno.texi: Update documentation.
40342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40343
40344 2008-09-13  Bruno Haible  <bruno@clisp.org>
40345
40346         * tests/test-poll.c: Use #if for native Windows, rather than testing
40347         __MSVCRT__.
40348
40349 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40350             Bruno Haible  <bruno@clisp.org>
40351
40352         * lib/glob.c: Don't include <pwd.h> on native Windows.
40353         (WINDOWS32): New macro.
40354         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40355
40356 2008-09-13  Bruno Haible  <bruno@clisp.org>
40357
40358         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40359         (ETIMEDOUT): Remove macro.
40360         (glthread_cond_timedwait_multithreaded): New declaration.
40361         (glthread_cond_timedwait): Use it.
40362         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40363         (glthread_cond_timedwait_multithreaded): New function.
40364
40365 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40366
40367         * modules/poll-tests: Do not check for io.h.
40368         * tests/test-poll.c: Check for __MSVCRT__ instead.
40369
40370 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40371
40372         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40373         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40374         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40375
40376 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40377
40378         * modules/poll-tests: New.
40379         * tests/test-poll.c: New.
40380
40381 2008-09-12  Eric Blake  <ebb9@byu.net>
40382
40383         frexp: test for NetBSD failure on -0.0
40384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40385         not all, bugs from NetBSD 3.0 have been fixed.
40386         * doc/posix-functions/frexp.texi (frexp): Document bug.
40387         Reported by Thomas Klausner.
40388
40389         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40390         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40391         literal -0.0.
40392         Reported by Jonathan C. Patschke <jp@centtech.com>.
40393
40394 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40395
40396         * lib/glthread/cond.h: Use dummy implementation also if
40397         USE_WIN32_THREADS.
40398
40399 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40400
40401         * modules/fnmatch-posix (License): Change to LGPLv2+.
40402         * modules/fnmatch-gnu (License): Likewise.
40403
40404 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40405
40406         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40407
40408 2008-09-11  Jim Meyering  <meyering@redhat.com>
40409
40410         * users.txt: Add gtk-vnc.
40411
40412 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40413
40414         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40415         rotate amounts.
40416
40417         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40418         required for 16-bit and 8-bit rotates.
40419         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40420         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40421         UINT8_MAX instead of hard-coded constants.
40422         Suggested by Paul Eggert.
40423
40424 2008-09-07  Bruno Haible  <bruno@clisp.org>
40425
40426         * tests/test-striconveh.c (main): Check behaviour when converting from
40427         UTF-7.
40428
40429         Make striconveh work better with stateful encodings.
40430         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40431         that iconv does not increment the inptr when returning -1/EINVAL.
40432
40433 2008-09-07  Bruno Haible  <bruno@clisp.org>
40434
40435         * build-aux/config.rpath: Update according to libtool-2.2.6.
40436         * build-aux/config.libpath: Likewise.
40437
40438 2008-09-06  Bruno Haible  <bruno@clisp.org>
40439
40440         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40441         * lib/freadptr.c (freadptr): Likewise.
40442         * lib/freadseek.c (freadptrinc): Likewise.
40443         Reported by Simon Josefsson.
40444
40445 2008-09-06  Bruno Haible  <bruno@clisp.org>
40446
40447         * modules/freadptr (License): Change to LGPLv2+.
40448         * modules/freadseek (License): Likewise.
40449         Suggested by Eric Blake.
40450
40451         * modules/memchr2 (License): Change to LGPLv2+.
40452         Approved by Eric Blake.
40453
40454 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40455             Bruno Haible  <bruno@clisp.org>
40456
40457         Make gnulib-tool work with native 'sed' on AIX.
40458         * gnulib-tool (sed_noop): New variable.
40459         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40460         func_add_or_update, func_create_testdir): Use it to initialize sed
40461         script variables.
40462         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40463
40464 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40465             Bruno Haible  <bruno@clisp.org>
40466
40467         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40468         also works after #include directives.
40469
40470 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40471
40472         getdate.y: reject an out-of-range timezone value
40473         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40474         the range [-24...+24].  When specified with only one or two digits,
40475         * tests/test-getdate.c: Tests for the fix.
40476         * doc/getdate.texi: Document this change.
40477
40478 2008-09-03  Bruno Haible  <bruno@clisp.org>
40479
40480         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40481
40482 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40483
40484         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40485         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40486         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40487         Blake <ebb9@byu.net>.
40488
40489         * tests/test-bitrotate.c: Add more test vectors.
40490
40491 2008-09-02  Eric Blake  <ebb9@byu.net>
40492
40493         vasnprintf-posix: handle large precision via %.*d
40494         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40495         when handling it ourselves.
40496         * tests/test-vasnprintf-posix.c (test_function): Add test.
40497         * tests/test-snprintf-posix.h (test_function): Likewise.
40498         * tests/test-sprintf-posix.h (test_function): Likewise.
40499         * tests/test-vasprintf-posix.c (test_function): Likewise.
40500         Reported by Alain Guibert.
40501
40502 2008-09-01  Eric Blake  <ebb9@byu.net>
40503
40504         c-stack: make configure-time check more robust
40505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40506         successful sigaction call.
40507         Reported by Tom G. Christensen.
40508
40509 2008-09-01  Bruno Haible  <bruno@clisp.org>
40510
40511         New module 'findprog-lgpl'.
40512         * modules/findprog-lgpl: New file.
40513         * lib/findprog-lgpl.c: New file.
40514         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40515         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40516         to decide whether to use strdup or xstrdup, concatenated_filename or
40517         xconcatenated_filename.
40518
40519 2008-09-01  Bruno Haible  <bruno@clisp.org>
40520
40521         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40522         'xconcat-filename' (GPL).
40523         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40524         (License): Change to LGPLv2+.
40525         * modules/xconcat-filename: New file.
40526         * lib/concat-filename.h (concatenated_filename): Change specification.
40527         (xconcatenated_filename): New declaration.
40528         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40529         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40530         memory situations.
40531         * lib/xconcat-filename.c: New file.
40532         * NEWS: Mention the change.
40533         * lib/findprog.c: Include concat-filename.h, not filename.h.
40534         (find_in_path): Use xconcatenated_filename instead of
40535         concatenated_filename.
40536         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40537         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40538         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40539         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40540         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40541         instead of concatenated_filename.
40542         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40543         (execute_java_class): Use xconcatenated_filename instead of
40544         concatenated_filename.
40545         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40546         * modules/javacomp (Depends-on): Likewise.
40547         * modules/javaexec (Depends-on): Likewise.
40548
40549 2008-09-01  Bruno Haible  <bruno@clisp.org>
40550
40551         Split module 'filename' into 'filename' and 'concat-filename'.
40552         * modules/filename: Keep only lib/filename.h.
40553         (License): Change to LGPLv2+.
40554         * modules/concat-filename: New file, extracted from modules/filename.
40555         * lib/filename.h (concatenated_filename): Remove declaration.
40556         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40557         * lib/concat-filename.c: Include concat-filename.h.
40558         * NEWS: Mention the change.
40559
40560 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40561
40562         * lib/bitrotate.h (rotl8, rotr8): Add.
40563
40564         * modules/bitrotate (configure.ac): Need
40565         AC_REQUIRE([AC_C_INLINE]).
40566         (Description): Mention stdint.h.  Reported by Bruno Haible
40567         <bruno@clisp.org>.
40568
40569         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40570         Paolo Bonzini <bonzini@gnu.org>.
40571
40572 2008-08-31  Bruno Haible  <bruno@clisp.org>
40573
40574         Assume Solaris specific bi-arch conventions on Solaris systems.
40575         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40576         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40577         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40578         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40579         like acl_libdirstem.
40580         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40581         acl_libdirstem.
40582         * NEWS: Mention the change.
40583         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40584
40585 2008-08-31  Jim Meyering  <meyering@redhat.com>
40586
40587         * lib/strftime.h: Add comments describing the two added arguments.
40588
40589         remove duplicate #include directives
40590         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40591         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40592
40593 2008-08-31  Bruno Haible  <bruno@clisp.org>
40594
40595         New module 'sigpipe-die'.
40596         * modules/sigpipe-die: New file.
40597         * lib/sigpipe-die.h: New file.
40598         * lib/sigpipe-die.c: New file.
40599         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40600
40601 2008-08-31  Bruno Haible  <bruno@clisp.org>
40602
40603         Don't override previously installed signal handlers.
40604         * lib/fatal-signal.c (saved_sigactions): New variable.
40605         (uninstall_handlers): Reset the signal to the saved handler, not
40606         to SIG_DFL (except when ignored).
40607         (install_handlers): Save the previous handlers.
40608
40609 2008-08-30  Bruno Haible  <bruno@clisp.org>
40610
40611         * gnulib-tool (func_reset_sigpipe): New function.
40612         (func_get_automake_snippet, func_modules_transitive_closure,
40613         func_import): Invoke it before a join command that reads from stdin,
40614         to avoid "echo: write error: Broken pipe" error messages on stderr.
40615         Reported by Sam Steingold <sds@gnu.org>.
40616
40617 2008-08-30  Bruno Haible  <bruno@clisp.org>
40618
40619         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40620         Code copied from m4/open.m4.
40621         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40622         access and the filename ends in a slash. Code copied from lib/open.c.
40623         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40624         * tests/test-fopen.c (main): Check against bug with trailing slash.
40625
40626 2008-08-29  Bruno Haible  <bruno@clisp.org>
40627
40628         Avoid some "gcc -pedantic" warnings.
40629         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40630         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40631         * lib/dirent.in.h: Likewise.
40632         * lib/fcntl.in.h: Likewise.
40633         * lib/float.in.h: Likewise.
40634         * lib/iconv.in.h: Likewise.
40635         * lib/inttypes.in.h: Likewise.
40636         * lib/locale.in.h: Likewise.
40637         * lib/math.in.h: Likewise.
40638         * lib/netinet_in.in.h: Likewise.
40639         * lib/search.in.h: Likewise.
40640         * lib/signal.in.h: Likewise.
40641         * lib/stdarg.in.h: Likewise.
40642         * lib/stdint.in.h: Likewise.
40643         * lib/stdio.in.h: Likewise.
40644         * lib/stdlib.in.h: Likewise.
40645         * lib/string.in.h: Likewise.
40646         * lib/strings.in.h: Likewise.
40647         * lib/sys_select.in.h: Likewise.
40648         * lib/sys_socket.in.h: Likewise.
40649         * lib/sys_stat.in.h: Likewise.
40650         * lib/sys_time.in.h: Likewise.
40651         * lib/sysexits.in.h: Likewise.
40652         * lib/time.in.h: Likewise.
40653         * lib/unistd.in.h: Likewise.
40654         * lib/wchar.in.h: Likewise.
40655         * lib/wctype.in.h: Likewise.
40656         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40657         * modules/fchdir (Makefile.am): Likewise.
40658         * modules/fcntl (Makefile.am): Likewise.
40659         * modules/float (Makefile.am): Likewise.
40660         * modules/iconv_open (Makefile.am): Likewise.
40661         * modules/inttypes (Makefile.am): Likewise.
40662         * modules/locale (Makefile.am): Likewise.
40663         * modules/math (Makefile.am): Likewise.
40664         * modules/netinet_in (Makefile.am): Likewise.
40665         * modules/search (Makefile.am): Likewise.
40666         * modules/signal (Makefile.am): Likewise.
40667         * modules/stdarg (Makefile.am): Likewise.
40668         * modules/stdint (Makefile.am): Likewise.
40669         * modules/stdio (Makefile.am): Likewise.
40670         * modules/stdlib (Makefile.am): Likewise.
40671         * modules/string (Makefile.am): Likewise.
40672         * modules/strings (Makefile.am): Likewise.
40673         * modules/sys_select (Makefile.am): Likewise.
40674         * modules/sys_socket (Makefile.am): Likewise.
40675         * modules/sys_stat (Makefile.am): Likewise.
40676         * modules/sys_time (Makefile.am): Likewise.
40677         * modules/sysexits (Makefile.am): Likewise.
40678         * modules/time (Makefile.am): Likewise.
40679         * modules/unistd (Makefile.am): Likewise.
40680         * modules/wchar (Makefile.am): Likewise.
40681         * modules/wctype (Makefile.am): Likewise.
40682         Reported by Reuben Thomas <rrt@sc3d.org>.
40683
40684 2008-08-29  Bruno Haible  <bruno@clisp.org>
40685
40686         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40687         any more.
40688
40689 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40690
40691         * MODULES.html.sh (Misc): Add bitrotate.
40692
40693         * modules/bitrotate: New file.
40694
40695         * lib/bitrotate.h: New file.
40696
40697         * modules/bitrotate-tests: New file.
40698
40699         * tests/test-bitrotate.c: New file.
40700
40701         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40702         on the bitrotate module.
40703
40704         * lib/arctwo.c: Use new bitrotate module.
40705
40706 2008-08-29  Jim Meyering  <meyering@redhat.com>
40707
40708         bootstrap: merge changes from coreutils
40709         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40710         of copied files.  Remove a kludge, now that this is fixed.
40711         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40712         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40713         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40714
40715 2008-08-29  Bruno Haible  <bruno@clisp.org>
40716
40717         * MODULES.html.sh: Remove --cvs-urls option.
40718
40719 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40720
40721         maint.mk: adjust to file name change
40722         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40723
40724 2008-08-28  Jim Meyering  <meyering@redhat.com>
40725
40726         * modules/getndelim2 (License): Relicense to LGPLv2+.
40727         Approved by Richard Stallman for the version of 1995, and by
40728         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40729
40730 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40731
40732         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40733         dummy if one is not available.  Do not touch them if
40734         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40735         (getc_maybe_unlocked): New.
40736         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40737
40738 2008-08-26  Eric Blake  <ebb9@byu.net>
40739
40740         doc/INSTALL: resync from autoconf
40741         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40742         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40743         moving...
40744         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40745         * INSTALL: Regenerate.
40746         * INSTALL.ISO: New file.
40747         * INSTALL.UTF-8: Likewise.
40748
40749 2008-08-26  Jim Meyering  <meyering@redhat.com>
40750
40751         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40752         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40753         these definitions conditional, so that they may be overridden, too.
40754
40755 2008-08-26  Bruno Haible  <bruno@clisp.org>
40756
40757         Generate INSTALL file variants with prettier quotes.
40758         * doc/Makefile (INSTALL_PRELUDE): New macro.
40759         (INSTALL): Use it.
40760         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40761
40762 2008-08-26  Bruno Haible  <bruno@clisp.org>
40763
40764         Run makeinfo in an English locale.
40765         * doc/Makefile (MAKEINFO): New variable.
40766
40767 2008-08-26  Bruno Haible  <bruno@clisp.org>
40768
40769         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40770         Suggested by Eric Blake.
40771
40772 2008-08-25  Bruno Haible  <bruno@clisp.org>
40773
40774         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40775
40776 2008-08-25  Eric Blake  <ebb9@byu.net>
40777
40778         c-stack: test that stack overflow can be caught
40779         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40780         that platform allows handling stack overflow; at least OS/2 EMX
40781         has sigaltstack, but crashes before transferring control to
40782         handler on stack overflow.
40783         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40784         check for HAVE_STACK_OVERFLOW_HANDLING.
40785         Reported by Elbert Pol.
40786
40787 2008-08-25  Bruno Haible  <bruno@clisp.org>
40788
40789         * doc/posix-functions/strftime.texi: Fix description of strftime
40790         module.
40791
40792 2008-08-24  Bruno Haible  <bruno@clisp.org>
40793
40794         * tests/uniwidth/test-uc_width2.c: New file.
40795         * tests/uniwidth/test-uc_width2.sh: New file.
40796         * modules/uniwidth/width-tests (Files): Add the new files.
40797         (TESTS): Add uniwidth/test-uc_width2.sh.
40798         (TESTS_ENVIRONMENT): New variable.
40799         (check_PROGRAMS): Add test-uc_width2.
40800         (test_uc_width2_SOURCES): New variable.
40801
40802         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40803         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40804         not 0x00AB.
40805         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40806
40807 2008-08-22  Eric Blake  <ebb9@byu.net>
40808
40809         test-lock, test-tls: mention why a test is skipped
40810         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40811         skipped.
40812         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40813
40814         count-one-bits: relax license
40815         * modules/count-one-bits (License): Relicense to LGPLv2+.
40816         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40817
40818 2008-08-22  Andreas Schwab  <schwab@suse.de>
40819
40820         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40821         Remove spurious space in assignment.
40822
40823 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40824
40825         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40826         Paul Eggert <eggert@CS.UCLA.EDU>.
40827
40828 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40829
40830         * modules/gettext: Add m4/threadlib.m4.
40831
40832 2008-08-19  Eric Blake  <ebb9@byu.net>
40833
40834         test-c-stack: fix compilation failure on FreeBSD 5.0
40835         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40836         headers before <sys/resource.h>.
40837         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40838         the bug.
40839         Reported by Nelson H. F. Beebe.
40840
40841         strverscmp: migrate from "strverscmp.h" to <string.h>
40842         * modules/string (Makefile.am): Add new hooks.
40843         * modules/strverscmp (Files): Remove strverscmp.h.
40844         (Depends-on): Add string.
40845         (configure.ac): Add indicator.
40846         (Include): Mention new header.
40847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40848         defaults.
40849         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40850         results.
40851         * lib/strverscmp.h: Delete.
40852         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40853         * tests/test-strverscmp.c (includes): Adjust client.
40854         * lib/check-version.c (includes): Likewise.
40855         * NEWS: Document the change.
40856
40857         strverscmp: add unit test
40858         * modules/strverscmp-tests: New file.
40859         * tests/test-strverscmp.c: Likewise.
40860
40861 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40862
40863         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40864         regarding Windows crypto stuff, from Mono.
40865
40866 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40867
40868         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40869         if present, for intel RND.  Return error on failures.
40870
40871 2008-08-18  Ben Pfaff  <blp@gnu.org>
40872
40873         gitlog-to-changelog: give better diagnostic for failed pipe-open
40874         * build-aux/gitlog-to-changelog: Improve error message: suggest
40875         that the version of Git may be too old.
40876
40877 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40878
40879         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40880         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40881
40882 2008-08-18  Bruno Haible  <bruno@clisp.org>
40883
40884         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40885         pthread_in_use().
40886
40887 2008-08-18  Bruno Haible  <bruno@clisp.org>
40888
40889         * lib/glthread/threadlib.c: Include <pthread.h>.
40890
40891 2008-08-18  Bruno Haible  <bruno@clisp.org>
40892
40893         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40894         glthread_recursive_lock_* macros.
40895         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40896         Fix syntax error.
40897
40898 2008-08-18  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/glthread/thread.c: Avoid forcing a context switch right after
40901         thread creation.
40902
40903 2008-08-17  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40906         * lib/glthread/thread.h: Provide Win32 specific implementation.
40907         * modules/thread (Files): Add lib/glthread/thread.c.
40908         (Depends-on): Add lock.
40909         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40910
40911 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40912
40913         New module 'yield'.
40914         * modules/yield: New file.
40915         * lib/glthread/yield.h: New file.
40916         * m4/yield.m4: New file.
40917         * MODULES.html.sh (Multithreading): Add yield.
40918
40919 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40920
40921         New module 'thread'.
40922         * modules/thread: New file.
40923         * lib/glthread/thread.h: New file.
40924         * m4/thread.m4: New file.
40925         * MODULES.html.sh (Multithreading): Add thread.
40926
40927 2008-08-17  Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/glthread/lock.h: Include <stdlib.h> always.
40930         * lib/glthread/tls.h: Likewise.
40931         * lib/glthread/cond.h: Likewise.
40932
40933 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40934
40935         New module 'cond'.
40936         * modules/cond: New file.
40937         * lib/glthread/cond.h: New file.
40938         * lib/glthread/cond.c: New file.
40939         * m4/cond.m4: New file.
40940         * MODULES.html.sh (Multithreading): Add cond.
40941
40942 2008-08-16  Eric Blake  <ebb9@byu.net>
40943
40944         c-stack: fix regression on Irix 5.3 from 2008-06-21
40945         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40946         sa_sigaction...
40947         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40948         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40949         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40950         * modules/signal (Makefile.am): Use the value.
40951         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40952         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40953         * doc/posix-headers/signal.texi (signal.h): Document this
40954         portability issue.
40955         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40956         Reported by Tom G. Christensen.
40957
40958 2008-08-17  Bruno Haible  <bruno@clisp.org>
40959
40960         New module 'threadlib'.
40961         * modules/threadlib: New file.
40962         * lib/glthread/threadlib.c: New file, extracted from
40963         lib/glthread/lock.c.
40964         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40965         functions.
40966         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40967         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40968         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40969         macros.
40970         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40971         (gl_DISABLE_THREADS): Remove macro.
40972         * modules/lock (Files): Remove build-aux/config.rpath.
40973         (Depends-on): Remove havelib. Add threadlib.
40974         (configure.ac-early): Remove section.
40975         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40976         * modules/tls (Depends-on): Remove lock. Add threadlib.
40977         (Link): New section, copied from threadlib.
40978         * MODULES.html.sh (Multithreading): Add threadlib.
40979
40980 2008-08-14  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40983         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40984         glthread_rwlock_unlock, glthread_rwlock_destroy,
40985         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40986         glthread_recursive_lock_destroy): Define as macros always.
40987         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40988         glthread_lock_lock.
40989         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40990         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40991         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40992         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40993         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40994         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40995         (glthread_recursive_lock_lock_func): Renamed from
40996         glthread_recursive_lock_lock.
40997         (glthread_recursive_lock_unlock_func): Renamed from
40998         glthread_recursive_lock_unlock.
40999         (glthread_recursive_lock_destroy_func): Renamed from
41000         glthread_recursive_lock_destroy.
41001
41002 2008-08-14  Bruno Haible  <bruno@clisp.org>
41003
41004         * lib/glthread/lock.h: Renamed from lib/lock.h.
41005         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41006         * lib/glthread/tls.h: Renamed from lib/tls.h.
41007         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41008         * lib/fstrcmp.c: Update includes.
41009         * lib/strsignal.c: Update includes.
41010         * modules/lock (Files, Makefile.am): Update.
41011         (Include): Change to "glthread/lock.h".
41012         * modules/tls (Files, Makefile.am): Update.
41013         (Include): Change to "glthread/tls.h".
41014         * tests/test-lock.c: Update includes.
41015         * tests/test-tls.c: Update includes.
41016         * NEWS: Mention the renamed header files.
41017
41018 2008-08-11  Jim Meyering  <meyering@redhat.com>
41019
41020         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41021
41022 2008-08-11  Eric Blake  <ebb9@byu.net>
41023
41024         test-c-stack: avoid C99-ism
41025         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41026         before statement.
41027         Reported by Alain Guibert.
41028
41029 2008-08-10  Jim Meyering  <meyering@redhat.com>
41030
41031         ensure that return value of uinttostr et al are not ignored
41032         * lib/inttostr.h (__GNUC_PREREQ): Define.
41033         (__attribute_warn_unused_result__): Define.
41034         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41035
41036 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41037
41038         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41039         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41040
41041 2008-08-07  Jim Meyering  <meyering@redhat.com>
41042
41043         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41044
41045         * modules/mkstemp (License): Relicense under LGPLv2+.
41046         * modules/tempname (License): Likewise.
41047
41048 2008-08-06  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/poll.c (poll): Further micro-optimization.
41051
41052 2008-08-06  Jim Meyering  <meyering@redhat.com>
41053
41054         inet_pton.c: use locale-independent tolower
41055         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41056         (inet_pton6): Use c_tolower rather than tolower.
41057         * modules/inet_pton (Depends-on): Add c-ctype.
41058
41059 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41060
41061         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41062         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41063
41064 2008-08-06  Jim Meyering  <meyering@redhat.com>
41065
41066         * modules/inet_pton (License): Relicense under LGPLv2+.
41067
41068 2008-08-03  Bruno Haible  <bruno@clisp.org>
41069
41070         Additional non-aborting API for lock and tls.
41071         * lib/lock.h: Include <errno.h>.
41072         (glthread_lock_init): New macro/function.
41073         (gl_lock_init): Define as wrapper around glthread_lock_init.
41074         (glthread_lock_lock): New macro/function.
41075         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41076         (glthread_lock_unlock): New macro/function.
41077         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41078         (glthread_lock_destroy): New macro/function.
41079         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41080         (glthread_rwlock_init): New macro/function.
41081         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41082         (glthread_rwlock_rdlock): New macro/function.
41083         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41084         (glthread_rwlock_wrlock): New macro/function.
41085         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41086         (glthread_rwlock_unlock): New macro/function.
41087         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41088         (glthread_rwlock_destroy): New macro/function.
41089         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41090         (glthread_recursive_lock_init): New macro/function.
41091         (gl_recursive_lock_init): Define as wrapper around
41092         glthread_recursive_lock_init.
41093         (glthread_recursive_lock_lock): New macro/function.
41094         (gl_recursive_lock_lock): Define as wrapper around
41095         glthread_recursive_lock_lock.
41096         (glthread_recursive_lock_unlock): New macro/function.
41097         (gl_recursive_lock_unlock): Define as wrapper around
41098         glthread_recursive_lock_unlock.
41099         (glthread_recursive_lock_destroy): New macro/function.
41100         (gl_recursive_lock_destroy): Define as wrapper around
41101         glthread_recursive_lock_destroy.
41102         (glthread_once): New macro/function.
41103         (gl_once): Define as wrapper around glthread_once.
41104         Update function declarations.
41105         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41106         glthread_rwlock_init. Return error code.
41107         (glthread_rwlock_rdlock_multithreaded): Renamed from
41108         glthread_rwlock_rdlock. Return error code.
41109         (glthread_rwlock_wrlock_multithreaded): Renamed from
41110         glthread_rwlock_wrlock. Return error code.
41111         (glthread_rwlock_unlock_multithreaded): Renamed from
41112         glthread_rwlock_unlock. Return error code.
41113         (glthread_rwlock_destroy_multithreaded): Renamed from
41114         glthread_rwlock_destroy. Return error code.
41115         (glthread_recursive_lock_init_multithreaded): Renamed from
41116         glthread_recursive_lock_init. Return error code.
41117         (glthread_recursive_lock_lock_multithreaded): Renamed from
41118         glthread_recursive_lock_lock. Return error code.
41119         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41120         glthread_recursive_lock_unlock. Return error code.
41121         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41122         glthread_recursive_lock_destroy. Return error code.
41123         (glthread_once_call): Make static.
41124         (glthread_once_multithreaded): Renamed from glthread_once.
41125         * lib/tls.h: Include <errno.h>.
41126         (glthread_tls_key_init): New macro/function.
41127         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41128         (glthread_tls_set): New macro/function.
41129         (gl_tls_set): Define as wrapper around glthread_tls_set.
41130         (glthread_tls_key_destroy): New macro/function.
41131         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41132         Update function declarations.
41133         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41134         glthread_tls_get.
41135         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41136
41137 2008-08-04  Eric Blake  <ebb9@byu.net>
41138
41139         gnumakefile: use space, not TAB, outside of targets
41140         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41141
41142 2008-08-02  Jim Meyering  <meyering@redhat.com>
41143
41144         getdate.y: avoid locale-dependent date parsing failure
41145         In Turkish locales, getdate would fail to recognize keywords
41146         containing a lowercase "i".  The solution is not to rely on
41147         locale-sensitive case-conversion.
41148         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41149         (lookup_word): Use c_toupper in place of toupper.
41150         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41151         Reported by Vefa Bicakci <bicave@superonline.com> in
41152         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41153         * modules/getdate (Depends-on): Add c-ctype.
41154
41155 2008-08-02  Bruno Haible  <bruno@clisp.org>
41156
41157         * gnulib-tool (func_import): When updating or creating a .gitignore
41158         file, prepend each added line with a slash, and ignore leading slashes
41159         from the existing lines.
41160         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41161
41162 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41163
41164         Portability fix for GNU make 3.79.1.
41165         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41166         versions do not understand.
41167
41168 2008-08-01  Bruno Haible  <bruno@clisp.org>
41169
41170         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41171         * tests/test-isnanf.h (zero): New variable.
41172         (main): Avoid literal -0.0f.
41173         * tests/test-isnand.h (zero): New variable.
41174         (main): Avoid literal -0.0.
41175         * tests/test-isnanl.h (zero): New variable.
41176         (main): Avoid literal -0.0L.
41177         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41178         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41179         -0.0, -0.0L.
41180         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41181         (test_signbitd): Avoid literal -0.0.
41182         (test_signbitl): Avoid literal -0.0L.
41183         * tests/test-ceilf1.c (zero): New variable.
41184         (main): Avoid literal -0.0f.
41185         * tests/test-ceill.c (zero): New variable.
41186         (main): Avoid literal -0.0L.
41187         * tests/test-floorf1.c (zero): New variable.
41188         (main): Avoid literal -0.0f.
41189         * tests/test-floorl.c (zero): New variable.
41190         (main): Avoid literal -0.0L.
41191         * tests/test-roundf1.c (zero): New variable.
41192         (main): Avoid literal -0.0f.
41193         * tests/test-round1.c (zero): New variable.
41194         (main): Avoid literal -0.0.
41195         * tests/test-roundl.c (zero): New variable.
41196         (main): Avoid literal -0.0L.
41197         * tests/test-truncf1.c (zero): New variable.
41198         (main): Avoid literal -0.0f.
41199         * tests/test-trunc1.c (zero): New variable.
41200         (main): Avoid literal -0.0.
41201         * tests/test-truncl.c (zero): New variable.
41202         (main): Avoid literal -0.0L.
41203         * tests/test-frexp.c (zero): New variable.
41204         (main): Avoid literal -0.0.
41205         * tests/test-frexpl.c (zero): New variable.
41206         (main): Avoid literal -0.0L.
41207         * tests/test-ldexpl.c (zero): New variable.
41208         (main): Avoid literal -0.0L.
41209         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41210         (zerod, zerol): New variables.
41211         (test_function): Avoid literals -0.0, -0.0L.
41212         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41213         (zerod, zerol): New variables.
41214         (test_function): Avoid literals -0.0, -0.0L.
41215         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41216         (zerod, zerol): New variables.
41217         (test_function): Avoid literals -0.0, -0.0L.
41218         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41219         (zerod, zerol): New variables.
41220         (test_function): Avoid literals -0.0, -0.0L.
41221         * tests/test-strtod.c (zero): New variable.
41222         (main): Avoid literal -0.0.
41223         Reported by Jonathan C. Patschke <jp@centtech.com>.
41224
41225 2008-07-31  Jim Meyering  <meyering@redhat.com>
41226
41227         sha256.h: correct definition of SHA224_DIGEST_SIZE
41228         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41229         Reported by Paulie Pena IV <paulie4@gmail.com>.
41230         Define as 224 / 8, rather than as a literal.
41231         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41232         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41233         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41234
41235 2008-07-31  Bruno Haible  <bruno@clisp.org>
41236
41237         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41238         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41239         Reported by Jonathan Patschke <jp@centtech.com>.
41240
41241 2008-07-31  Bruno Haible  <bruno@clisp.org>
41242
41243         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41244         Reported by Paolo Bonzini <bonzini@gnu.org>.
41245
41246 2008-07-30  Eric Blake  <ebb9@byu.net>
41247
41248         test-strtod: allow compilation without -lm
41249         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41250         Reported by Dennis Clarke <blastwave@gmail.com>.
41251
41252 2008-07-28  Jim Meyering  <meyering@redhat.com>
41253
41254         bootstrap: work also when there are no .po files in po/
41255         * build-aux/bootstrap (update_po_files): Complete the change
41256         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41257
41258 2008-07-27  Jim Meyering  <meyering@redhat.com>
41259
41260         * users.txt: Add zile.
41261
41262 2008-07-26  Ben Pfaff  <blp@gnu.org>
41263
41264         Add missing dependencies on new m4/exponent[fdl].m4 files.
41265         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41266         * modules/isnand-nolibm: Add m4/exponentd.m4.
41267         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41268         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41269         m4/isnan[fdl].m4, because the macros actually used moved.
41270         Reported by Jim Meyering.
41271
41272 2008-07-14  Ben Pfaff  <blp@gnu.org>
41273
41274         Add isinf module.
41275         * lib/isinf.c: New file.
41276         * lib/math.in.h: Define isinf macro if we have decided to replace
41277         it.
41278         * m4/isinf.m4: New file.
41279         * m4/math_h.m4: Initialize and substitute variables for isinf
41280         module.
41281         * modules/isinf: New file.
41282         * modules/isinf-tests: New file.
41283         * modules/math: Add substitutions for new module.
41284         * tests/test-isinf.c: New file.
41285         * doc/posix-functions/isinf.texi: Mention new module.
41286         * MODULES.html.sh: Mention new module.
41287
41288 2008-07-14  Ben Pfaff  <blp@gnu.org>
41289
41290         Factor out some macros for use by additional modules.
41291         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41292         exponentf.m4.
41293         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41294         exponentd.m4.
41295         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41296         file exponentl.m4.
41297         * m4/exponentf.m4: New file.
41298         * m4/exponentd.m4: New file.
41299         * m4/exponentl.m4: New file.
41300         * modules/isnanf: Use new file m4/exponentf.m4.
41301         * modules/isnand: Use new file m4/exponentd.m4.
41302         * modules/isnanl: Use new file m4/exponentl.m4.
41303
41304 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41305
41306         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41307         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41308         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41309         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41310
41311         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41312         readlink on platforms without PATH_MAX.
41313
41314 2008-07-21  Eric Blake  <ebb9@byu.net>
41315
41316         Warn, not fail, on stale version.
41317         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41318
41319         Don't allow installation with stale devel version number.
41320         * top/GNUmakefile (_is-install-target): New macro.
41321         (_curr-ver): Forbid installation with stale version number.
41322
41323 2008-07-20  Bruno Haible  <bruno@clisp.org>
41324
41325         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41326         TESTS_ENVIRONMENT.
41327         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41328
41329 2008-07-20  Bruno Haible  <bruno@clisp.org>
41330
41331         * lib/c-stack.h (c_stack_action): Add documentation.
41332         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41333
41334 2008-07-20  Bruno Haible  <bruno@clisp.org>
41335
41336         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41337         * modules/readlink (License): Likewise.
41338
41339 2008-07-17  Eric Blake  <ebb9@byu.net>
41340
41341         * modules/c-stack (Link): Fix typo.
41342
41343         Make c-stack use libsigsegv, when available.
41344         * modules/c-stack (Depends-on): Add libsigsegv.
41345         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41346         needed.
41347         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41348         (segv_handler, overflow_handler, c_stack_action)
41349         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41350         implementation when libsigsegv is available, but only when using
41351         the library is necessary.
41352         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41353         comment, explaining why XSI check fails on Linux.
41354         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41355         * tests/test-c-stack2.sh: Tweak skip message.
41356         * NEWS: Document new link-time requirements.
41357
41358 2008-07-16  Eric Blake  <ebb9@byu.net>
41359
41360         c-stack: Expose false positives when not using libsigsegv.
41361         * modules/c-stack-tests (Files): Expand test.
41362         * tests/test-c-stack.c (main): Add means to conditionally trigger
41363         non-overflow SIGSEGV.
41364         * tests/test-c-stack2.sh: New file.
41365
41366 2008-07-14  Bruno Haible  <bruno@clisp.org>
41367
41368         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41369         Reported by Eric Blake.
41370
41371 2008-07-14  Sam Steingold  <sds@gnu.org>
41372             Bruno Haible  <bruno@clisp.org>
41373
41374         New module libsigsegv.
41375         * modules/libsigsegv: New file.
41376         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41377         modifications.
41378         * MODULES.html.sh (Signal handling): New section.
41379
41380 2008-07-14  Bruno Haible  <bruno@clisp.org>
41381
41382         * modules/unictype/ctype-* (Description): Add the word "function".
41383         Improves the resulting doc in MODULES.html.
41384
41385 2008-07-12  Ben Pfaff  <blp@gnu.org>
41386
41387         Add longlong module.
41388         * modules/longlong: New file.
41389
41390 2008-07-12  Bruno Haible  <bruno@clisp.org>
41391
41392         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41393         to empty.
41394
41395 2008-07-10  Ben Pfaff  <blp@gnu.org>
41396
41397         Add isnan module.
41398         * doc/posix-functions/isnan.texi: Mention new module.
41399         * lib/math.in.h: Define isnan macro if we have decided to replace
41400         it.
41401         * m4/isnan.m4: New file.
41402         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41403         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41404         also.
41405         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41406         redundancy.
41407         * m4/math_h.m4: Initialize and substitute variables for isnan
41408         module.
41409         * modules/isnan: New file.
41410         * modules/isnan-tests: New file.
41411         * modules/math: Add substitutions for new module.
41412         * tests/test-isnan.c: New file.
41413         * MODULES.html.sh: Mention new module.
41414
41415 2008-07-10  Ben Pfaff  <blp@gnu.org>
41416
41417         Add isnanf module.
41418         * lib/isnanf.m4: New file.
41419         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41420         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41421         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41422         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41423         * modules/isnanf: New file.
41424         * modules/isnanf-tests: New file.
41425         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41426         files.
41427         * tests/test-isnanf-nolibm.c: factored most of its contents into
41428         new file tests/test-isnanf.h.
41429         * tests/test-isnanf.h: New file.
41430         * tests/test-isnanf.c: New file.
41431         * MODULES.html.sh: Mention new module.
41432         * doc/glibc-functions/isnanf.texi: Mention new module.
41433
41434 2008-07-10  Ben Pfaff  <blp@gnu.org>
41435
41436         Add isnand module.
41437         * lib/isnand.h: New file.
41438         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41439         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41440         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41441         functionality also.
41442         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41443         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41444         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41445         * modules/isnand: New file.
41446         * modules/isnand-tests: New file.
41447         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41448         files.
41449         * tests/test-isnand-nolibm.c: factored most of its contents into
41450         new file tests/test-isnand.h.
41451         * tests/test-isnand.h: New file.
41452         * tests/test-isnand.c: New file.
41453         * MODULES.html.sh: Mention new module.
41454
41455 2008-07-10  Ben Pfaff  <blp@gnu.org>
41456
41457         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41458         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41459         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41460         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41461         * modules/isnanf-nolibm: Update references to renamed files.
41462         * modules/isnand-nolibm: Likewise.
41463         * modules/isnanf-nolibm-tests: Likewise.
41464         * modules/isnand-nolibm-tests: Likewise.
41465         * lib/frexp.c: Likewise.
41466         * lib/isfinite.c: Likewise.
41467         * lib/signbitd.c: Likewise.
41468         * lib/signbitf.c: Likewise.
41469         * lib/vasnprintf.c: Likewise.
41470         * tests/test-ceilf1.c: Likewise.
41471         * tests/test-ceilf2.c: Likewise.
41472         * tests/test-floorf1.c: Likewise.
41473         * tests/test-floorf2.c: Likewise.
41474         * tests/test-frexp.c: Likewise.
41475         * tests/test-round1.c: Likewise.
41476         * tests/test-round2.c: Likewise.
41477         * tests/test-roundf1.c: Likewise.
41478         * tests/test-strtod.c: Likewise.
41479         * tests/test-trunc1.c: Likewise.
41480         * tests/test-trunc2.c: Likewise.
41481         * tests/test-truncf1.c: Likewise.
41482         * tests/test-truncf2.c: Likewise.
41483         * NEWS: Mention the renamed header files.
41484
41485 2008-07-11  Jim Meyering  <meyering@redhat.com>
41486
41487         vc-list-files: make the last-resort awk code more portable
41488         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41489         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41490         does not support it.
41491
41492 2008-07-10  Eric Blake  <ebb9@byu.net>
41493
41494         Work with tar's bootstrap.
41495         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41496         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41497         an m4 comment.
41498
41499 2008-07-09  Jim Meyering  <meyering@redhat.com>
41500
41501         posix-shell.m4: fix typo that made this test malfunction
41502         * m4/posix-shell.m4: Remove capitalization in variable name.
41503
41504 2008-07-08  Bruno Haible  <bruno@clisp.org>
41505
41506         * m4/onceonly.m4: Update comments.
41507         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41508
41509 2008-07-04  Jim Meyering  <meyering@redhat.com>
41510
41511         * users.txt: Add vc-dwim.
41512         (bison, coreutils): Use the gitweb URL.
41513
41514 2008-07-03  Jim Meyering  <meyering@redhat.com>
41515
41516         * users.txt: Add libffcall.  From Sam Steingold.
41517
41518 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41519
41520         getdate.y: do not ignore TZ with relative day, month or year offset
41521         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41522         relative-date-handling, since otherwise, the latter would clobber the
41523         sole output (an updated Start value) of the tz-handling block.
41524         * tests/test-getdate.c: Tests for the fix
41525
41526 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41527
41528         Recognize 'foo_LIBRARIES += libgnu.a'.
41529         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41530         makefile snippet has already specified an installation location,
41531         also using '+='.
41532
41533 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41534
41535         getdate.y: factor out common actions
41536         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41537         Use them in place of open-coded actions.
41538
41539 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41540
41541         Add self-test for getdate module.
41542         * modules/getdate-tests: New file.
41543         * tests/test-getdate.c: New file.
41544
41545 2008-06-29  Bruno Haible  <bruno@clisp.org>
41546
41547         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41548         .gitignore.
41549         Reported by Sylvain Beucler <beuc@beuc.net>.
41550
41551 2008-06-29  Bruno Haible  <bruno@clisp.org>
41552
41553         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41554         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41555
41556 2008-06-29  Bruno Haible  <bruno@clisp.org>
41557
41558         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41559         EXTRA_DIST.
41560         Reported by Sylvain Beucler <beuc@beuc.net>.
41561
41562 2008-06-26  Jim Meyering  <meyering@redhat.com>
41563
41564         make several modules depend on the "open" module
41565         This provides slightly increased consistency when opening-for-write
41566         the name of a non-directory spelled with a trailing slash.
41567         * modules/chdir-safer: Likewise.
41568         * modules/chown: Likewise.
41569         * modules/clean-temp: Likewise.
41570         * modules/copy-file: Likewise.
41571         * modules/fchdir: Likewise.
41572         * modules/fcntl-safer: Likewise.
41573         * modules/pipe: Likewise.
41574         * modules/utime: Likewise.
41575         Prompted by Eric Blake and Bruno Haible.
41576
41577 2008-06-24  Andreas Schwab  <schwab@suse.de>
41578
41579         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41580         literals can be used as initializers for global variables.
41581
41582 2008-06-23  Eric Blake  <ebb9@byu.net>
41583
41584         Make gnulib-cache.m4 easier to diff.
41585         * gnulib-tool (func_import): Allow newlines when reading cached
41586         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41587
41588 2008-06-23  Bruno Haible  <bruno@clisp.org>
41589
41590         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41591         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41592         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41593         m4/signalblocking.m4.
41594         (gl_PREREQ_SIGACTION): Don't invoke it.
41595         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41596         gl_PREREQ_SIG_HANDLER_H.
41597         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41598         Don't check for sigaction here.
41599
41600 2008-06-23  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41603         (install_handlers): Don't set the SA_RESETHAND flag.
41604
41605 2008-06-23  Bruno Haible  <bruno@clisp.org>
41606
41607         * m4/sigaction.m4: Comment fixes.
41608         * lib/signal.in.h: Likewise.
41609
41610 2008-06-23  Eric Blake  <ebb9@byu.net>
41611
41612         Fix typo.
41613         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41614
41615         Avoid SA_ namespace.
41616         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41617         Reported by Ralf Wildenhues.
41618
41619         Avoid test failure due to SA_RESTORER.
41620         * tests/test-sigaction.c (SA_MASK): New macro.
41621         (main): Avoid failing due to extension flags being set.
41622         Reported by Jim Meyering.
41623
41624         Revert use of sig-handler.h in sigprocmask.c.
41625         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41626         it requires the existence of struct sigaction.
41627         * lib/sigprocmask.c (handler_t): Restore typedef.
41628         (rpl_signal, old_handlers): Use local type.
41629
41630 2008-06-22  Bruno Haible  <bruno@clisp.org>
41631
41632         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41633         conditionally.
41634         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41635
41636 2008-06-22  Bruno Haible  <bruno@clisp.org>
41637
41638         * doc/posix-functions/siginterrupt.texi: Move note.
41639
41640         * lib/signal.in.h (SA_RESTART): New macro.
41641         * lib/sigaction.c: Update comment.
41642
41643         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41644
41645         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41646         (gl_PREREQ_SIGPROCMASK): Invoke it.
41647         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41648
41649         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41650
41651         * lib/sigprocmask.c: Update a comment.
41652
41653 2008-06-21  Eric Blake  <ebb9@byu.net>
41654
41655         Use sigaction module rather than signal().
41656         * modules/c-stack (Depends-on): Add sigaction.
41657         * modules/fatal-signal (Depends-on): Likewise.
41658         * modules/nanosleep (Depends-on): Likewise.
41659         * modules/sigprocmask (Files): Add sig-handler.h.
41660         * modules/sigaction (Files): Likewise.
41661         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41662         Eggert.
41663         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41664         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41665         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41666         (init_fatal_signals): Likewise.
41667         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41668         (siginterrupt): Delete fallback.
41669         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41670         instead.
41671         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41672         siginterrupt.
41673
41674         New module sigaction, for mingw.
41675         * modules/sigaction: New module...
41676         * modules/sigaction-tests: ...and its test.
41677         * m4/sigaction.m4: New file.
41678         * lib/sigaction.c: Likewise.
41679         * tests/test-sigaction.c: Likewise.
41680         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41681         * modules/signal (Makefile.am): Likewise.
41682         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41683         needed.
41684         * doc/posix-headers/signal.texi (signal.h): Mention provided
41685         types.
41686         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41687         that sigaction is preferable.
41688         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41689         module.
41690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41691         sigaction.
41692
41693         Improve robustness of sigprocmask by overriding signal.
41694         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41695         is in use.
41696         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41697         (SIGKILL, SIGSTOP): Provide fallbacks.
41698         (rpl_signal): Implement.
41699         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41700         signal can be called inside handlers.
41701
41702         Fix nanosleep module on mingw.
41703         * modules/nanosleep (Depends-on): Add sys_select.
41704         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41705
41706         Fix licensing of sigprocmask.
41707         * modules/raise (License): Relicense as LGPL.
41708
41709 2008-06-21  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41712         result if it contains question marks.
41713         Reported by Michael Geng <linux@michaelgeng.de>.
41714
41715 2008-06-19  Bruno Haible  <bruno@clisp.org>
41716
41717         Fix CVS-ism.
41718         * doc/gnulib.texi: Include updated-stamp.texi.
41719         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41720         (updated-stamp.texi): New rule.
41721         (gnulib.info): Depend on it.
41722         * doc/.gitignore: Add updated-stamp.texi.
41723         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41724
41725 2008-06-19  Bruno Haible  <bruno@clisp.org>
41726
41727         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41728         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41729
41730 2008-06-19  Eric Blake  <ebb9@byu.net>
41731
41732         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41733         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41734         Reported by Stepan Kasal.
41735
41736 2008-06-18  Bruno Haible  <bruno@clisp.org>
41737
41738         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41739         Reported by Eric Blake.
41740
41741 2008-06-18  Eric Blake  <ebb9@byu.net>
41742
41743         Work around cygwin 1.5.25 strsignal bug.
41744         * tests/test-strsignal.c: Allow for const char *.
41745         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41746
41747 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41748
41749         * users.txt: Update URL to article and add author/date
41750         information.
41751
41752 2008-06-17  Bruno Haible  <bruno@clisp.org>
41753
41754         New macro gl_DISABLE_THREADS.
41755         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41756         if the user did not pass --enable-threads or --disable-threads option.
41757         (gl_DISABLE_THREADS): New macro.
41758         Reported by Eric Blake <ebb9@byu.net>.
41759
41760 2008-06-17  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41763         when the macro ignores it.
41764         Based on a patch by Eric Blake <ebb9@byu.net>.
41765
41766 2008-06-17  Bruno Haible  <bruno@clisp.org>
41767
41768         * modules/tls (License): Change to LGPLv2+.
41769         Reported by Eric Blake.
41770
41771 2008-06-17  Eric Blake  <ebb9@byu.net>
41772
41773         Simplify c-stack prerequisites.
41774         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41776         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41777         check.
41778         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41779         <sys/resource.h>.
41780
41781         Move c-stack test into testsuite.
41782         * modules/c-stack-tests: New file.
41783         * lib/c-stack.c [DEBUG]: Move test program...
41784         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41785         fail test if sigaltstack is lacking.
41786         * tests/test-c-stack.sh: New driver file.
41787
41788 2008-06-16  Eric Blake  <ebb9@byu.net>
41789
41790         Use raise module consistently.
41791         * modules/fatal-signal (Depends-on): Add raise.
41792         * modules/sigprocmask (Depends-on): Likewise.
41793         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41794         * lib/sigprocmask.c (sigprocmask): Likewise.
41795         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41796         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41797
41798         Fix compliance bug in sigpending.
41799         * lib/sigprocmask.c (sigpending): Return pending array via
41800         parameter, not return value.
41801
41802 2008-06-14  Eric Blake  <ebb9@byu.net>
41803
41804         Improve obstack-printf test code.
41805         * tests/test-obstack-printf.c (test_function): Fix comment, and
41806         simplify usage of obstack_* in macros.  Add a test for coverage.
41807         Reported by Bruno Haible.
41808
41809 2008-06-14  Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41812         array size as a constant, not as a const variable.
41813         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41814         AC_USE_SYSTEM_EXTENSIONS.
41815         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41816         Test whether the obstack_printf function actually exists.
41817         * modules/obstack-printf (Depends-on): Add extensions.
41818         (Include): Remove obstack.h.
41819         * modules/obstack-printf-posix (Depends-on): Add extensions.
41820         (Include): Remove obstack.h.
41821
41822 2008-06-13  Eric Blake  <ebb9@byu.net>
41823
41824         Add obstack-printf and obstack-printf-posix modules.
41825         * modules/obstack-printf: New file.
41826         * modules/obstack-printf-posix: Likewise.
41827         * MODULES.html.sh (Misc): Mention them.
41828         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41829         Likewise.
41830         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41831         Likewise.
41832         * modules/stdio (Makefile.am): Accomodate new modules.
41833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41834         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41835         Declare.
41836         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41837         functions.
41838         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41839         (gl_REPLACE_OBSTACK_PRINTF): New macros
41840         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41841         * tests/test-obstack-printf.c: New file.
41842         * modules/obstack-printf-tests: Likewise.
41843         * modules/obstack-printf-posix-tests: Likewise.
41844
41845 2008-06-11  Bruno Haible  <bruno@clisp.org>
41846
41847         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41848         * lib/open.c: Include errno.h.
41849         (open): Fail when attempting to write to a file that has a trailing
41850         slash.
41851         * tests/test-open.c (main): Test against trailing slash bug.
41852         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41853
41854 2008-06-10  Bruno Haible  <bruno@clisp.org>
41855
41856         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41857         for $? to work inside the trap command, with various /bin/sh-s.
41858         * tests/test-vc-list-files-cvs.sh: Likewise.
41859
41860 2008-06-10  Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/acl-internal.h: Don't include gettext.h here.
41863         * lib/set-mode-acl.c: Include gettext.h here.
41864         * lib/copy-acl.c: Likewise.
41865
41866 2008-06-10  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41869         * lib/wait-process.c (wait_subprocess): Likewise.
41870         * lib/execute.h (execute): Add termsigp argument.
41871         * lib/execute.c (execute): Likewise.
41872         * lib/csharpcomp.c (compile_csharp_using_pnet,
41873         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41874         * lib/csharpexec.c (execute_csharp_using_pnet,
41875         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41876         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41877         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41878         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41879         is_jikes_present): Update.
41880         * lib/javaexec.c (execute_java_class): Update.
41881         * lib/javaversion.c (execute_and_read_line): Update.
41882         * NEWS: Document the changes.
41883         Reported by Eric Blake.
41884
41885 2008-06-10  Eric Blake  <ebb9@byu.net>
41886
41887         Add missing include.
41888         * tests/test-strstr.c (includes): Add <signal.h>.
41889         * tests/test-strcasestr.c (includes): Likewise.
41890         * tests/test-memmem.c (includes): Likewise.
41891
41892 2008-06-10  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/wait-process.c (wait_subprocess): Add an assertion.
41895
41896 2008-06-10  Bruno Haible  <bruno@clisp.org>
41897
41898         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41899
41900 2008-06-10  Bruno Haible  <bruno@clisp.org>
41901
41902         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41903         using alarm().
41904         * tests/test-strcasestr.c (main): Likewise.
41905         * tests/test-strstr.c (main): Likewise.
41906
41907 2008-06-09  Bruno Haible  <bruno@clisp.org>
41908
41909         Work around the Solaris 10 ACE ACLs ABI change.
41910         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41911         declare if ACL_NO_TRIVIAL is present.
41912         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41913         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41914         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41915         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41916         define if ACL_NO_TRIVIAL is present.
41917         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41918         and use the current ABI.
41919         (file_has_acl): Use same #if condition as elsewhere.
41920         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41921         in use, and use the current ABI.
41922         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41923         Reported by Jim Meyering.
41924
41925 2008-06-09  Eric Blake  <ebb9@byu.net>
41926
41927         Work around environments that (stupidly) ignore SIGALRM.
41928         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41929         before using alarm().
41930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41932         Reported by Ian Beckwith <ianb@erislabs.net>.
41933
41934         Produce autobuild blurb earlier in log.
41935         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41936
41937 2008-06-09  Jim Meyering  <meyering@redhat.com>
41938         and OndÅ™ej Vašík  <ovasik@redhat.com>
41939
41940         utimens.c: correct kernel bug work-around
41941         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41942         failure, not success, and the kernel bug we're trying to work
41943         around affects not just the utimensat call, but also the fallback
41944         futimens call.
41945         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41946         not success.
41947         [HAVE_FUTIMENS]: Use the same work-around, here.
41948
41949 2008-06-09  Jim Meyering  <meyering@redhat.com>
41950
41951         add more guards around definition of ACE_-related code
41952         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41953         ALLOW and ACE_OWNER are also defined.
41954
41955 2008-06-08  Bruno Haible  <bruno@clisp.org>
41956
41957         * lib/acl-internal.h: Add me as co-author.
41958         * lib/file-has-acl.c: Likewise.
41959         * lib/set-mode-acl.c: Likewise.
41960         * lib/copy-acl.c: Likewise.
41961
41962 2008-06-08  Bruno Haible  <bruno@clisp.org>
41963
41964         Add support for AIX ACLs.
41965         * lib/acl-internal.h (acl_nontrivial): New declaration.
41966         * lib/file-has-acl.c (acl_nontrivial): New function.
41967         (file_has_acl): Add implementation using AIX 4 ACL API.
41968         * lib/set-mode-acl.c (qset_acl): Likewise.
41969         * lib/copy-acl.c (qcopy_acl): Likewise.
41970
41971 2008-06-08  Bruno Haible  <bruno@clisp.org>
41972
41973         Add support for HP-UX ACLs.
41974         * lib/acl-internal.h (acl_nontrivial): New declaration.
41975         * lib/file-has-acl.c (acl_nontrivial): New function.
41976         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41977         * lib/set-mode-acl.c (qset_acl): Likewise.
41978         * lib/copy-acl.c (qcopy_acl): Likewise.
41979
41980 2008-06-08  Bruno Haible  <bruno@clisp.org>
41981
41982         Add support for Cygwin ACLs.
41983         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41984         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41985         the chmod_or_fchmod call.
41986         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41987
41988 2008-06-08  Bruno Haible  <bruno@clisp.org>
41989
41990         Fix bug with setuid modes in Solaris 10+ code.
41991         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41992         succeeded, when the mode contains some special bits.
41993
41994 2008-06-08  Bruno Haible  <bruno@clisp.org>
41995
41996         Add support for Solaris 7..10 ACLs.
41997         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41998         declarations.
41999         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42000         functions.
42001         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42002         * lib/set-mode-acl.c (qset_acl): Likewise.
42003         * lib/copy-acl.c (qcopy_acl): Likewise.
42004
42005 2008-06-08  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42008         declaration.
42009         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42010         (acl_access_nontrivial): Remove MacOS X case.
42011         (file_has_acl): Use acl_extended_nontrivial.
42012         * lib/copy-acl.c (qcopy_acl): Likewise.
42013
42014 2008-06-08  Bruno Haible  <bruno@clisp.org>
42015
42016         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42017
42018 2008-06-08  Jim Meyering  <meyering@redhat.com>
42019
42020         * modules/acl (Maintainer): Add Bruno Haible.
42021
42022 2008-06-07  Bruno Haible  <bruno@clisp.org>
42023
42024         Improve support for Tru64 ACLs.
42025         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42026         ACL on OSF/1.
42027
42028 2008-06-07  Bruno Haible  <bruno@clisp.org>
42029
42030         Add support for MacOS X ACLs.
42031         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42032         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42033         * lib/set-mode-acl.c (qset_acl): Likewise.
42034         * lib/copy-acl.c (qcopy_acl): Likewise.
42035
42036 2008-06-07  Bruno Haible  <bruno@clisp.org>
42037
42038         Fix memory leak introduced on 2008-05-22.
42039         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42040         use.
42041
42042 2008-06-07  Bruno Haible  <bruno@clisp.org>
42043
42044         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42045         to construct an empty ACL.
42046
42047 2008-06-07  Bruno Haible  <bruno@clisp.org>
42048
42049         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42050         precisely.
42051         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42052
42053 2008-06-07  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42056         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42057
42058 2008-06-07  Bruno Haible  <bruno@clisp.org>
42059
42060         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42061         regardless of POSIX.
42062         * doc/posix-functions/_longjmp.texi: Likewise.
42063         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42064         SystemV platform in this case.
42065
42066 2008-06-06  Eric Blake  <ebb9@byu.net>
42067
42068         Document abort() bugs.
42069         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42070
42071         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42072         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42073         sigsetjmp.
42074         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42075         siglongjmp, but only as a macro.
42076         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42077         is obsolete.
42078         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42079
42080         Tweak documentation to cover cygwin argz bugs.
42081         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42082         argz bug fix; no code change needed since no cygwin releases
42083         occurred between the last fix and the bug being tested.
42084         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42085         module and recently fixed cygwin bugs.
42086         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42087         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42088         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42089         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42090         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42091         Likewise.
42092         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42093         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42094         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42095         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42096         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42097         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42098         Likewise.
42099
42100         Avoid gcc warning on cygwin.
42101         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42102         !ACL_NO_TRIVIAL]: Avoid unused variable.
42103
42104 2008-06-05  Eric Blake  <ebb9@byu.net>
42105
42106         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42107         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42108         git-version-gen fails to come up with a version.
42109         Reported by Simon Josefsson.
42110
42111 2008-06-05  Jim Meyering  <meyering@redhat.com>
42112             Paul Eggert  <eggert@cs.ucla.edu>
42113
42114         utimens.c: work around a probable Linux kernel bug
42115         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42116         appears to be a kernel bug that causes utimensat to return 280
42117         instead of 0, indicating success.
42118
42119 2008-06-04  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42122         2008-06-01 commit.
42123
42124 2008-06-04  Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42127         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42128         (file_has_acl): Use it. Save errno afterwards.
42129         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42130
42131 2008-06-03  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42134         draft code. Simplify #ifs.
42135         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42136         Put Solaris code after POSIX-draft code. Fix comments regarding
42137         Solaris 10, HP-UX. Mention Cygwin.
42138         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42139
42140 2008-06-03  Eric Blake  <ebb9@byu.net>
42141
42142         Provide fallback for older kernels.
42143         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42144         Provide runtime fallback if kernel lacks support.
42145         Reported by Mike Frysinger.
42146
42147 2008-06-02  Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42150         it exists.
42151
42152 2008-06-02  Bruno Haible  <bruno@clisp.org>
42153
42154         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42155         * lib/copy-acl.c (qcopy_acl): Update comment.
42156
42157 2008-06-02  Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42160         like ACL APIs.
42161
42162 2008-06-02  Bruno Haible  <bruno@clisp.org>
42163
42164         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42165         * tests/test-set-mode-acl.sh: Likewise.
42166         * tests/test-copy-acl.sh: Likewise.
42167         * tests/test-copy-file.sh: Likewise.
42168
42169 2008-06-02  Bruno Haible  <bruno@clisp.org>
42170
42171         * tests/test-file-has-acl.sh: Remove unused code.
42172
42173 2008-06-01  Bruno Haible  <bruno@clisp.org>
42174
42175         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42176         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42177         messages.
42178         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42179
42180 2008-06-01  Bruno Haible  <bruno@clisp.org>
42181
42182         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42183         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42184         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42185         APIs.
42186         * modules/acl-tests (configure.ac): Remove tests now contained in
42187         m4/acl.m4.
42188
42189 2008-06-02  Jim Meyering  <meyering@redhat.com>
42190
42191         announce-gen: use a better key-server host name
42192         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42193         it may be more consistently reliable.  Suggested by Werner Koch
42194         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42195
42196 2008-06-01  Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42199         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42200
42201 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42202
42203         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42204
42205 2008-06-01  Bruno Haible  <bruno@clisp.org>
42206
42207         New ACL tests.
42208         * tests/test-file-has-acl.sh: New file.
42209         * tests/test-file-has-acl.c: New file.
42210         * tests/test-set-mode-acl.sh: New file.
42211         * tests/test-set-mode-acl.c: New file.
42212         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42213         * tests/test-copy-acl.c: New file.
42214         * modules/acl-tests: New file, based on modules/copy-file-tests.
42215         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42216         (Depends-on): Add acl-tests.
42217         (configure.ac): Remove checks.
42218         (Makefile.am): Don't create test-sameacls program here any more.
42219
42220 2008-06-01  Bruno Haible  <bruno@clisp.org>
42221
42222         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42223         * tests/test-sameacls.c: Include progname.h.
42224         (main): Invoke set_program_name. Portability fixes for MacOS X,
42225         Solaris, HP-UX.
42226
42227 2008-06-01  Bruno Haible  <bruno@clisp.org>
42228
42229         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42230         function.
42231         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42232
42233 2008-06-01  Bruno Haible  <bruno@clisp.org>
42234
42235         * modules/rpmatch (Depends-on): Add strdup.
42236
42237 2008-06-01  Bruno Haible  <bruno@clisp.org>
42238
42239         * lib/pipe.c: Include unistd-safer.h.
42240         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42241         * modules/pipe (Depends-on): Add unistd-safer.
42242
42243 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42244
42245         * modules/autobuild (configure.ac): Call AB_INIT.
42246
42247 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42248
42249         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42250         Suggested by Bruno Haible <bruno@clisp.org>.
42251
42252 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42253
42254         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42255         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42256         <bruno@clisp.org>.
42257
42258 2008-05-29  Eric Blake  <ebb9@byu.net>
42259
42260         Prefer new POSIX 200x interfaces over futimesat.
42261         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42262         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42263         when available.
42264         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42265
42266 2008-05-28  Bruno Haible  <bruno@clisp.org>
42267
42268         * modules/stpcpy (License): Change to LGPLv2+.
42269         Requested by David Lutterkort <dlutter@redhat.com>.
42270
42271 2008-05-27  Bruno Haible  <bruno@clisp.org>
42272
42273         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42274         current mingw.
42275         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42276
42277 2008-05-27  Bruno Haible  <bruno@clisp.org>
42278
42279         * modules/iconv_open (Link): New section, from module 'iconv'.
42280         * modules/striconv (Link): Likewise.
42281         * modules/striconveh (Link): Likewise.
42282         * modules/xstriconv (Link): Likewise.
42283         * modules/unicodeio (Link): Likewise.
42284         * modules/propername (Link): Likewise.
42285         Reported by Jim Meyering.
42286
42287 2008-05-26  Jim Meyering  <meyering@redhat.com>
42288
42289         sha256: do not artificially restrict buffer length to be < 2^32
42290         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42291         uint32_t to size_t.
42292         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42293         to match.
42294
42295         avoid unaligned access errors, e.g., on sparc
42296         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42297         direct access through a possibly-unaligned uint64* pointer.
42298         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42299         direct access through a possibly-unaligned uint32* pointer.
42300         Prompted by this patch from Tom "spot" Callaway:
42301         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42302
42303         sha512.c: fix typo in comment
42304         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42305
42306 2008-05-25  Bruno Haible  <bruno@clisp.org>
42307
42308         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42309         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42310         (Makefile.am): Update lib_SOURCES.
42311
42312 2008-05-25  Bruno Haible  <bruno@clisp.org>
42313
42314         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42315
42316 2008-05-25  Jim Meyering  <meyering@redhat.com>
42317
42318         useless-if-before-free: freed expr may have white-space differences
42319         * build-aux/useless-if-before-free: Recognize cases in which the
42320         freed expression differs from the tested one in embedded white
42321         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42322         $1 was used, so we can't make any regexp shy.  Improved tests now
42323         detect this.
42324
42325         useless-if-before-free: accept white space in the expression.
42326         * build-aux/useless-if-before-free: For now, any white space
42327         in the expression must be identical in the free argument.
42328
42329         useless-if-before-free: efficiency tweak
42330         * build-aux/useless-if-before-free: Make the expression-matching
42331         regexp "shy".
42332         Make the *outer* regexp shy, not the expr-matching one.
42333
42334         update code-in-comment to accept cast of free arg
42335         * build-aux/useless-if-before-free: Update regexp.
42336
42337 2008-05-25  Bruno Haible  <bruno@clisp.org>
42338
42339         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42340         * modules/copy-file-tests (Files, Makefile.am): Update.
42341         * tests/test-copy-file.c (func_test_copy): Update.
42342
42343 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42344
42345         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42346
42347 2008-05-23  Bruno Haible  <bruno@clisp.org>
42348
42349         Improve support for ACLs on OSF/1.
42350         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42351         Remove fallback for unknown flavors of ACLs.
42352
42353 2008-05-22  Bruno Haible  <bruno@clisp.org>
42354
42355         Add support for ACLs on OSF/1.
42356         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42357         replacements.
42358         (acl_free_text): New macro fallback.
42359         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42360         acl_free.
42361         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42362         acl_free_text function. Require AC_C_INLINE.
42363
42364 2008-05-22  Bruno Haible  <bruno@clisp.org>
42365
42366         Make copy_acl work on MacOS X 10.5.
42367         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42368         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42369         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42370         If MODE_INSIDE_ACL, don't assume that every system has the same text
42371         representation for ACLs as FreeBSD.
42372         * lib/copy-acl.c (copy_acl): Add support for platforms with
42373         !MODE_INSIDE_ACL.
42374         * lib/file-has-acl.c (file_has_acl): Likewise.
42375         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42376         FreeBSD, MacOS X, or IRIX, respectively.
42377
42378 2008-05-22  Bruno Haible  <bruno@clisp.org>
42379
42380         * lib/acl.h: Don't include <sys/acl.h>.
42381         (GETACLCNT): Move fallback to lib/acl-internal.h.
42382         * lib/acl-internal.h: Include <sys/acl.h> here.
42383         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42384
42385 2008-05-22  Bruno Haible  <bruno@clisp.org>
42386
42387         Split off copy_acl function to separate file.
42388         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42389         * lib/acl.c (copy_acl): Moved function to separate file.
42390         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42391         * modules/acl (Files): Add lib/copy-acl.c.
42392         (Makefiles.am): Augment lib_SOURCES.
42393
42394 2008-05-22  Bruno Haible  <bruno@clisp.org>
42395
42396         * modules/copy-file-tests: New file.
42397         * tests/test-copy-file.sh: New file.
42398         * tests/test-copy-file.c: New file.
42399         * tests/test-copy-file-sameacls.c: New file.
42400
42401 2008-05-22  Eric Blake  <ebb9@byu.net>
42402
42403         Avoid gcc warning.
42404         * tests/test-memcmp.c (main): Pass NULL indirectly.
42405
42406 2008-05-21  Bruno Haible  <bruno@clisp.org>
42407
42408         Add reference doc about ACLs.
42409         * doc/acl-resources.txt: New file.
42410         * doc/acl-cygwin.txt: New file.
42411
42412 2008-05-21  Bruno Haible  <bruno@clisp.org>
42413
42414         Avoid one more warning from gcc.
42415         * lib/vasnprintf.c (IF_LINT): Update comments.
42416         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42417
42418 2008-05-21  Jim Meyering  <meyering@redhat.com>
42419
42420         avoid a warning from gcc
42421         * lib/vasnprintf.c (IF_LINT): Define.
42422         (scale10_round_decimal_long_double):
42423         Use it to avoid a "may be used uninitialized" warning.
42424         (scale10_round_decimal_double): Likewise.
42425
42426 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42427
42428         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42429         declared.
42430
42431 2008-05-20  Bruno Haible  <bruno@clisp.org>
42432
42433         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42434         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42435
42436 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42437
42438         * modules/memcmp-tests: New file.
42439         * tests/test-memcmp.c: New file.
42440
42441 2008-05-19  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/propername (Notice, configure.ac): Put quoted "..." into
42444         --keyword option.
42445         * lib/propername.h: Update comments accordingly.
42446         Reported by Eric Blake.
42447
42448 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42449
42450         * modules/getpass-gnu (Depends-on): Add fseeko.
42451
42452 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42453
42454         * modules/base64-tests: New file.
42455
42456 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42457
42458         * lib/base64.c (base64_decode_ctx): If a decode context structure
42459         was passed in use it to ignore newlines.  If a context structure
42460         was _not_ passed in, continue to treat newlines as garbage (this
42461         is the historical behavior).  Formerly base64_decode.
42462         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42463         takes a decode context structure.
42464         * lib/base64.h (base64_decode): Macro for four-argument calls.
42465         (base64_decode_alloc): Likewise.
42466         * lib/base64.c (base64_decode_ctx): If a decode context structure
42467         was passed in use it to ignore newlines.  If a context structure
42468         was _not_ passed in, continue to treat newlines as garbage (this
42469         is the historical behavior).  Formerly base64_decode.
42470         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42471         takes a decode context structure.
42472         * lib/base64.h (base64_decode): Macro for four-argument calls.
42473         (base64_decode_alloc): Likewise.
42474
42475 2008-05-19  Jim Meyering  <meyering@redhat.com>
42476
42477         avoid a warning from gcc
42478         * lib/trim.c (IF_LINT): Define.
42479         (trim2): Use it to avoid a "may be used uninitialized" warning.
42480
42481         Fix doc typo.
42482         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42483
42484 2008-05-19  Bruno Haible  <bruno@clisp.org>
42485
42486         * doc/glibc-functions/getpass.texi: Document limits of other
42487         implementations.
42488
42489 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42490             Bruno Haible <bruno@clisp.org>
42491
42492         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42493
42494 2008-05-18  Bruno Haible  <bruno@clisp.org>
42495
42496         * modules/propername: New file, from GNU gettext.
42497         * lib/propername.h: New file, from GNU gettext.
42498         * lib/propername.c: New file, from GNU gettext.
42499         * MODULES.html.sh (Internationalization functions): Add propername.
42500
42501 2008-05-16  Jim Meyering  <meyering@redhat.com>
42502             Bruno Haible  <bruno@clisp.org>
42503
42504         Avoid some warnings from "gcc -Wshadow".
42505         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42506
42507 2008-05-15  Eric Blake  <ebb9@byu.net>
42508
42509         Extend previous patch to cygwin 1.7.0.
42510         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42511         fast implementation in cygwin >= 1.7.0.
42512         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42514
42515 2008-05-15  Bruno Haible  <bruno@clisp.org>
42516
42517         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42518         implementation in glibc >= 2.9.
42519         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42521
42522 2008-05-15  Bruno Haible  <bruno@clisp.org>
42523
42524         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42525         (Unicode string functions): Add unilbrk/*.
42526         Reported by Karl Berry.
42527
42528 2008-05-15  Eric Blake  <ebb9@byu.net>
42529
42530         Fix violation of <stdbool.h> replacement in regex.
42531         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42532         * lib/regexec.c (re_search_internal): Likewise.
42533         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42534
42535 2008-05-15  Jim Meyering  <meyering@redhat.com>
42536
42537         avoid distracting test output when git or cvs is not found
42538         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42539         * tests/test-vc-list-files-git.sh: Likewise.
42540
42541 2008-05-15  Eric Blake  <ebb9@byu.net>
42542
42543         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42544         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42545         glibc version.
42546         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42547         * doc/posix-functions/strstr.texi (strstr): Likewise.
42548         * lib/str-two-way.h (MAX): Sychronize with glibc.
42549
42550 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42551
42552         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42553         opr.ctx_type.
42554         (calc_first): Initialize constraint field.
42555         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42556         Fix grammar.
42557         (duplicate_node): Merge constraint field for all node types.
42558         (calc_eclosure_iter): Look at constraint field for all node types.
42559         * lib/regex_internal.c (create_cd_newstate): Don't look at
42560         opr.ctx_type.
42561
42562 2008-05-14  Bruno Haible  <bruno@clisp.org>
42563
42564         Help GCC to do better code generation.
42565         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42566         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42567         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42568         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42569         Declare with attribute 'malloc' if supported.
42570
42571 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42572
42573         use "echo STR|wc -c" rather than unportable "expr length STR"
42574         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42575         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42576
42577 2008-05-14  Jim Meyering  <meyering@redhat.com>
42578
42579         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42580         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42581         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42582         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42583         via Collin Lasse.
42584
42585 2008-05-14  Eric Blake  <ebb9@byu.net>
42586
42587         Avoid quadratic growth in gl_LIBSOURCES.
42588         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42589         Suggested by Bruno Haible.
42590
42591         Test xmemdup0.
42592         * modules/xmemdup0-tests: New file.
42593         * tests/test-xmemdup0.c: Likewise.
42594
42595 2008-05-13  Eric Blake  <ebb9@byu.net>
42596
42597         Split xmemdup0 into its own module.
42598         * modules/xmemdup0: New file.
42599         * lib/xmemdup0.h: Likewise.
42600         * lib/xmemdup0.c: Likewise.
42601         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42602         * lib/xalloc.h (xmemdup0): Remove.
42603         * lib/xmalloc.c (xmemdup0): Likewise.
42604
42605 2008-05-13  Eric Blake  <ebb9@byu.net>
42606             Bruno Haible  <bruno@clisp.org>
42607
42608         Reduce number of forks required during autoconf.
42609         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42610         and gl_LIBSOURCES_DIR.
42611         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42612         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42613         m4_syscmd per file.
42614         <m4_foreach_w>: Move...
42615         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42616
42617 2008-05-13  Eric Blake  <ebb9@byu.net>
42618
42619         * gnulib-tool: Fix various comment typos.
42620
42621 2008-05-12  Bruno Haible  <bruno@clisp.org>
42622
42623         Tailor the linebreaking algorithm.
42624         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42625
42626 2008-05-12  Bruno Haible  <bruno@clisp.org>
42627
42628         Update to Unicode 5.0.0.
42629         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42630         LBP_JV, LBP_JT. Redistribute values.
42631         (unilbrk_table): Change size.
42632         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42633         Unicode TR#14 rev. 22.
42634         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42635         LBP_JV, LBP_JT. Redistribute values.
42636         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42637         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42638         Update.
42639         * lib/unilbrk/lbrkprop1.h: Regenerated.
42640         * lib/unilbrk/lbrkprop2.h: Regenerated.
42641         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42642         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42643         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42644         Likewise.
42645         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42646         Likewise.
42647         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42648         result.
42649         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42650         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42651         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42652         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42653         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42654         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42655
42656 2008-05-11  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42659
42660 2008-05-11  Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42663         * modules/unilbrk/gen-lbrk: New file.
42664
42665 2008-05-11  Bruno Haible  <bruno@clisp.org>
42666
42667         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42668         * m4/sha512.m4 (gl_SHA512): Likewise.
42669
42670 2008-05-11  Jim Meyering  <meyering@redhat.com>
42671
42672         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42673         * modules/crypto/sha256: New file.
42674         * modules/crypto/sha512: Likewise.
42675         * lib/sha256.c: Likewise.
42676         * lib/sha256.h: Likewise.
42677         * lib/sha512.c: Likewise.
42678         * lib/sha512.h: Likewise.
42679         * lib/u64.h: Likewise.
42680         * m4/sha256.m4: Likewise.
42681         * m4/sha512.m4: Likewise.
42682         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42683
42684 2008-05-10  Bruno Haible  <bruno@clisp.org>
42685
42686         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42687         (Input/Output <stdio.h>): Add xprintf.
42688         (Signal handling <signal.h>): Add strsignal.
42689         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42690         (Core language properties): Add func.
42691         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42692         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42693         strings.
42694         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42695         (Input/output): New section.
42696         (File system functions): Add openat-die, stat-macros.
42697         (Networking functions): Add sockets.
42698         (Unicode string functions): Add unictype/*.
42699         (Support for building libraries and executables): Add gperf.
42700         (Support for building documentation): Add agpl-3.0.
42701         (Misc): Add nocrash.
42702
42703 2008-05-10  Bruno Haible  <bruno@clisp.org>
42704
42705         * modules/unictype/gen-ctype: New file.
42706
42707 2008-05-10  Jim Meyering  <meyering@redhat.com>
42708
42709         Make chdir-safer.c more efficient on a system with no symlinks.
42710         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42711         also if ELOOP is zero.  Suggested by Bruno Haible.
42712
42713         Make chdir-safer.c slightly safer.
42714         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42715         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42716
42717         Avoid compile failure on systems without ELOOP (like mingw).
42718         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42719         Reported by Bruno Haible.
42720
42721 2008-05-10  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42724         (is_utf8_encoding): Use a case-insensitive comparison.
42725         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42726         streq.
42727
42728 2008-05-10  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42731         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42732         * lib/unilbrk/ulc-common.h (iconv_string_length,
42733         iconv_string_keeping_offsets): Remove declarations.
42734         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42735         Don't include <iconv.h>, streq.h, xsize.h.
42736         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42737         conversion.
42738         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42739         <iconv.h>, streq.h, xsize.h.
42740         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42741         conversion.
42742         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42743         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42744         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42745         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42746
42747 2008-05-10  Bruno Haible  <bruno@clisp.org>
42748
42749         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42750         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42751
42752         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42753         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42754
42755         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42756         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42757
42758         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42759         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42760
42761         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42762         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42763
42764         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42765         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42766
42767         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42768         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42769
42770         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42771         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42772
42773 2008-05-10  Bruno Haible  <bruno@clisp.org>
42774
42775         Split up 'linebreak' module.
42776         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42777         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42778         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42779         modifications.
42780         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42781         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42782         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42783         lib/linebreak.c.
42784         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42785         lib/linebreak.c.
42786         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42787         lib/linebreak.c.
42788         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42789         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42790         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42791         lib/linebreak.c.
42792         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42793         lib/linebreak.c.
42794         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42795         lib/linebreak.c.
42796         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42797         lib/linebreak.c.
42798         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42799         lib/linebreak.c.
42800         * modules/unilbrk/base: New file.
42801         * modules/unilbrk/tables: New file.
42802         * modules/unilbrk/u8-possible-linebreaks: New file.
42803         * modules/unilbrk/u16-possible-linebreaks: New file.
42804         * modules/unilbrk/u32-possible-linebreaks: New file.
42805         * modules/unilbrk/ulc-common: New file.
42806         * modules/unilbrk/ulc-possible-linebreaks: New file.
42807         * modules/unilbrk/u8-width-linebreaks: New file.
42808         * modules/unilbrk/u16-width-linebreaks: New file.
42809         * modules/unilbrk/u32-width-linebreaks: New file.
42810         * modules/unilbrk/ulc-width-linebreaks: New file.
42811         * lib/linebreak.h: Remove file.
42812         * lib/linebreak.c: Remove file.
42813         * m4/linebreak.m4: Remove file.
42814         * modules/linebreak: Remove file.
42815         * NEWS: Mention the changes.
42816
42817 2008-05-09  Eric Blake  <ebb9@byu.net>
42818
42819         Add xmemdup0.
42820         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42821         implementation.
42822         * lib/xmalloc.c (xmemdup0): New C implementation.
42823
42824 2008-05-08  Bruno Haible  <bruno@clisp.org>
42825
42826         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42827
42828 2008-05-07  Eric Blake  <ebb9@byu.net>
42829
42830         Support cross-compilation of <wctype.h>.
42831         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42832         AC_CACHE_CHECK.
42833
42834 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42835
42836         * build-aux/vc-list-files: Add support for bzr.
42837
42838 2008-05-03  Jim Meyering  <meyering@redhat.com>
42839
42840         avoid failed assertion with tight malloc
42841         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42842
42843 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42844
42845         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42846         are needed from arpa/inet.h.
42847         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42848         Reported by Bruno Haible.
42849
42850 2008-05-02  Jim Meyering  <meyering@redhat.com>
42851
42852         avoid compilation error on FreeBSD 6
42853         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42854
42855 2008-05-01  Jim Meyering  <meyering@redhat.com>
42856
42857         useless-if-before-free: correct --help's exit status description
42858         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42859         for one or more matches, etc.  Reported by Bruno Haible.
42860
42861         vc-list-files: make the stand-alone gnulib test work
42862         * modules/vc-list-files-tests (configure.ac):
42863         Define and AC_SUBST abs_aux_dir.
42864         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42865         $(abs_top_srcdir) to each script and having each of them
42866         duplicate the work of setting PATH, set PATH here, using
42867         the new variable, abs_aux_dir instead.
42868         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42869         * tests/test-vc-list-files-git.sh: Likewise.
42870         Reported by Bruno Haible.
42871
42872 2008-05-01  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42875         reallocation. Rename 'done' to 'found_delimiter'.
42876
42877 2008-05-01  Jim Meyering  <meyering@redhat.com>
42878
42879         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42880         * build-aux/vc-list-files: Use `...`, not $(...).
42881
42882 2008-04-30  Jim Meyering  <meyering@redhat.com>
42883
42884         add tests for vc-list-files
42885         * modules/vc-list-files-tests: New module.
42886         * tests/test-vc-list-files-cvs.sh: New file.
42887         * tests/test-vc-list-files-git.sh: New file.
42888
42889         avoid a warning from gcc
42890         * lib/getndelim2.c (IF_LINT): Define.
42891         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42892
42893         vc-list-files: work properly with build-aux/cvsu, too
42894         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42895         to all cvs-based clauses.
42896
42897         vc-list-files: work properly in the CVS+awk case, too
42898         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42899
42900         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42901         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42902         take more than one file argument, so .  Add quotes, just in case $dir
42903         ever contains a shell meta-character.  Prompted by Soren Hansen in
42904         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42905
42906 2008-04-29  Eric Blake  <ebb9@byu.net>
42907
42908         Optimize getndelim2 to use block operations when possible.
42909         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42910         freadseek, and memchr2.
42911         * lib/getndelim2.c (getndelim2): Use them for block reads.
42912
42913 2008-04-29  Bruno Haible  <bruno@clisp.org>
42914
42915         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42916         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42917         * modules/inet_ntop (Depends-on): Add extensions.
42918         * modules/inet_pton (Depends-on): Likewise.
42919         Reported by Simon Josefsson.
42920
42921 2008-04-29  Jim Meyering  <meyering@redhat.com>
42922
42923         When the is more than one match in a block, match all of them.
42924         * build-aux/useless-if-before-free: Iterate through each block
42925         until there are no more matches.
42926
42927         Fix broken useless-if-before-free script.
42928         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42929         the expression to match cast of argument to free-like function.
42930
42931 2008-04-29  Eric Blake  <ebb9@byu.net>
42932
42933         Use new header.
42934         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42935
42936 2008-04-29  Jim Meyering  <meyering@redhat.com>
42937
42938         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42939         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42940         by gnulib to exist and to declare e.g., inet_ntop.
42941         Don't include "inet_ntop.h", now removed.
42942
42943         * m4/arpa_inet_h.m4: Remove trailing blanks.
42944
42945 2008-04-29  Eric Blake  <ebb9@byu.net>
42946
42947         Silence valgrind on safe reads beyond potential array bounds.
42948         * lib/rawmemchr.valgrind: New file.
42949         * lib/strchrnul.valgrind: Likewise.
42950         * modules/rawmemchr (Files): Distribute new file.
42951         * modules/strchrnul (Files): Likewise.
42952         Suggested by Bruno Haible.
42953
42954 2008-04-29  Bruno Haible  <bruno@clisp.org>
42955
42956         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42957         (inet_ntop, inet_pton): Change portability warning's wording.
42958         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42959         Invoke gl_CHECK_NEXT_HEADERS.
42960         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42961         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42962         set ARPA_INET_H.
42963         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42964         * modules/arpa_inet (Description): No longer only for systems that
42965         lack it.
42966         (Depends-on): Add include_next.
42967         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42968         HAVE_ARPA_INET_H.
42969
42970 2008-04-29  Jim Meyering  <meyering@redhat.com>
42971
42972         * modules/mkdir (License): Re-license as LGPLv2+.
42973
42974 2008-04-29  Bruno Haible  <bruno@clisp.org>
42975
42976         * modules/rawmemchr (Maintainer): Set to Eric.
42977         * modules/strchrnul (Maintainer): Likewise.
42978
42979 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42980
42981         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42982         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42983
42984         * modules/arpa_inet (arpa/inet.h): Use them.
42985
42986 2008-04-28  Eric Blake  <ebb9@byu.net>
42987
42988         Test getndelim2.
42989         * modules/getndelim2-tests: New file.
42990         * tests/test-getndelim2.c: Likewise.
42991         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42992         stream.
42993         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42994
42995         * MODULES.html.sh: Document new module.
42996
42997 2008-04-20  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/c-stack.c (die): Use raise.
43000         * modules/c-stack (Depends-on): Add raise.
43001
43002 2008-04-28  Bruno Haible  <bruno@clisp.org>
43003
43004         Expect rpmatch to be declared.
43005         * lib/yesno.c (rpmatch): Remove declaration.
43006
43007         Declare rpmatch.
43008         * lib/stdlib.in.h (rpmatch): New declaration.
43009         * lib/rpmatch.c: Include <stdlib.h> first.
43010         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43011         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43013         HAVE_RPMATCH.
43014         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43015         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43016         (Include): Set to <stdlib.h>.
43017         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43018         HAVE_RPMATCH.
43019         * NEWS: Document the change.
43020
43021 2008-04-28  Bruno Haible  <bruno@clisp.org>
43022
43023         Change rpmatch to use nl_langinfo when appropriate.
43024         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43025         (N_): New macro.
43026         (localized_pattern): New function/macro.
43027         (try): Remove match, nomatch arguments. Copy the pattern into safe
43028         memory before caching it.
43029         (rpmatch): Use localized_pattern. Add translator comments.
43030         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43031         Suggested by Eric Blake.
43032         * modules/rpmatch (Depends-on): Add stdbool.
43033
43034 2008-04-28  Eric Blake  <ebb9@byu.net>
43035
43036         Add rawmemchr module, matching glibc.
43037         * modules/string (Makefile.am): New indicator.
43038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43039         * lib/string.in.h (rawmemchr): Declare when appropriate.
43040         * modules/rawmemchr: New file.
43041         * m4/rawmemchr.m4: Likewise.
43042         * lib/rawmemchr.c: Likewise.
43043         * modules/rawmemchr-tests: Likewise.
43044         * tests/test-rawmemchr.c: Likewise.
43045         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43046         module.
43047         * modules/strchrnul (Depends-on): Add rawmemchr.
43048         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43049
43050         Whitespace cleanup.
43051         * tests/test-strchrnul.c: Reindent.
43052         * lib/strchrnul.c: Likewise.
43053
43054         Optimize and test strchrnul.
43055         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43056         * modules/strchrnul-tests: New file.
43057         * tests/test-strchrnul.c: Likewise.
43058
43059         Remove intprops dependency.
43060         * modules/memchr (Depends-on): Remove intprops.
43061         * modules/memrchr (Depends-on): Likewise.
43062         * modules/memchr2 (Depends-on): Likewise.
43063         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43064         * lib/memrchr.c (__memrchr): Likewise.
43065         * lib/memrchr2.c (memchr2): Likewise.
43066         Reported by Simon Josefsson.
43067
43068 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43069
43070         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43071         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43072
43073 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43074
43075         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43076
43077         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43078
43079         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43080
43081         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43082         declarations.
43083         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43084
43085         * m4/inet_pton.m4: Don't check for header files.
43086
43087         * m4/inet_ntop.m4: Don't check for header files.
43088
43089 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43090
43091         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43092         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43093         trigger for cygwin).
43094         Reported by Bruno Haible  <bruno@clisp.org>.
43095
43096 2008-04-28  Bruno Haible  <bruno@clisp.org>
43097
43098         * doc/posix-functions/strdup.texi: Mention mingw problem.
43099
43100 2008-04-27  Bruno Haible  <bruno@clisp.org>
43101
43102         * modules/stat-time-tests (Depends-on): Add sleep.
43103         * tests/test-stat-time.c (force_unlink): New function.
43104         (cleanup): Use it.
43105         (test_mtime): Remove the ctime related tests.
43106         (test_ctime): New function, containing the ctime related tests.
43107         (main): Call test_ctime, except on native Windows platforms.
43108
43109 2008-04-27  Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/rpmatch.c (rpmatch): Add some comments.
43112         Reported by James Youngman <jay@gnu.org>.
43113
43114 2008-04-27  Bruno Haible  <bruno@clisp.org>
43115
43116         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43117         quiet NaNs.
43118
43119 2008-04-27  Bruno Haible  <bruno@clisp.org>
43120
43121         Make test-yesno.sh work on mingw.
43122         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43123         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43124         (main): Set stdin to binary mode.
43125         * modules/yesno-tests (Depends-on): Add binary-io.
43126
43127 2008-04-27  Bruno Haible  <bruno@clisp.org>
43128
43129         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43130         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43131         argument that lie outside the IEEE 854 domain.
43132         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43133         (gl_ISFINITE): Use it.
43134         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43135
43136 2008-04-27  Bruno Haible  <bruno@clisp.org>
43137
43138         Allow local renaming in config.h.
43139         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43140
43141 2008-04-27  Bruno Haible  <bruno@clisp.org>
43142
43143         * lib/memchr.c (__memchr): Change type of 'i'.
43144         * lib/memchr2.c (memchr2): Likewise.
43145
43146 2008-04-26  Eric Blake  <ebb9@byu.net>
43147         and Bruno Haible  <bruno@clisp.org>
43148
43149         Optimize and test memrchr.
43150         * modules/memrchr (Depends-on): Add intprops.
43151         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43152         * modules/memrchr-tests: New file.
43153         * tests/test-memrchr.c: New file.
43154
43155 2008-04-26  Bruno Haible  <bruno@clisp.org>
43156
43157         Add tentative support for DragonFly BSD.
43158         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43159         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43160         fp.
43161         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43162         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43163         * lib/fpurge.c (fpurge): Likewise.
43164         * lib/freadable.c (freaadable): Likewise.
43165         * lib/freadahead.c (freadahead): Likewise.
43166         * lib/freading.c (freading): Likewise.
43167         * lib/freadptr.c (freadptr): Likewise.
43168         * lib/freadseek.c (freadptrinc): Likewise.
43169         * lib/fseeko.c (fseeko): Likewise.
43170         * lib/fseterr.c (fseterr): Likewise.
43171         * lib/fwritable.c (fwritable): Likewise.
43172         * lib/fwriting.c (fwriting): Likewise.
43173
43174 2008-04-26  Bruno Haible  <bruno@clisp.org>
43175
43176         * lib/stdio-impl.h: New file.
43177         * lib/fbufmode.c: Include stdio-impl.h.
43178         (fbufmode): Use fp_, remove redundant #defines.
43179         * lib/fflush.c: Include stdio-impl.h.
43180         (clear_ungetc_buffer): Remove redundant #defines.
43181         * lib/fpurge.c: Include stdio-impl.h.
43182         (fpurge): Remove redundant #defines.
43183         * lib/freadable.c: Include stdio-impl.h.
43184         (freadable): Remove redundant #defines.
43185         * lib/freadahead.c: Include stdio-impl.h.
43186         (freadahead): Remove redundant #defines.
43187         * lib/freading.c: Include stdio-impl.h.
43188         (freading): Remove redundant #defines.
43189         * lib/freadptr.c: Include stdio-impl.h.
43190         (freadptr): Remove redundant #defines.
43191         * lib/freadseek.c: Include stdio-impl.h.
43192         (freadptrinc): Remove redundant #defines.
43193         * lib/fseeko.c: Include stdio-impl.h.
43194         (rpl_fseeko): Remove redundant #defines.
43195         * lib/fseterr.c: Include stdio-impl.h.
43196         (fseterr): Remove redundant #defines.
43197         * lib/fwritable.c: Include stdio-impl.h.
43198         (fwritable: Remove redundant #defines.
43199         * lib/fwriting.c: Include stdio-impl.h.
43200         (fwriting): Remove redundant #defines.
43201         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43202         * modules/fflush (Files): Likewise.
43203         * modules/fpurge (Files): Likewise.
43204         * modules/freadable (Files): Likewise.
43205         * modules/freadahead (Files): Likewise.
43206         * modules/freading (Files): Likewise.
43207         * modules/freadptr (Files): Likewise.
43208         * modules/freadseek (Files): Likewise.
43209         * modules/fseeko (Files): Likewise.
43210         * modules/fseterr (Files): Likewise.
43211         * modules/fwritable (Files): Likewise.
43212         * modules/fwriting (Files): Likewise.
43213
43214 2008-04-26  Bruno Haible  <bruno@clisp.org>
43215
43216         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43217         restore_seek_optimization, update_fpos_cache): New functions, extracted
43218         from rpl_fflush.
43219         (rpl_fflush): Use them.
43220         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43221         (gl_REPLACE_FFLUSH): Use it.
43222
43223 2008-04-26  Bruno Haible  <bruno@clisp.org>
43224
43225         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43226         on Solaris.
43227         * tests/test-xstrtoimax.sh: Likewise.
43228         * tests/test-xstrtoumax.sh: Likewise.
43229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43230
43231 2008-04-26  Bruno Haible  <bruno@clisp.org>
43232
43233         * modules/memchr-tests: New file.
43234         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43235
43236 2008-04-26  Eric Blake  <ebb9@byu.net>
43237             Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/memchr.c: Include intprops.h.
43240         (__memchr): Optimize parallel detection of matching bytes. Rename local
43241         variables. Add explanatory comments.
43242
43243 2008-04-26  Bruno Haible  <bruno@clisp.org>
43244
43245         Fix module 'memchr', broken since 2000-10-28.
43246         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43247
43248 2008-04-26  Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43251         comments.
43252
43253 2008-04-25  Eric Blake  <ebb9@byu.net>
43254
43255         Use native fstatat on cygwin 1.7.0.
43256         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43257         first.
43258
43259 2008-04-23  Eric Blake  <ebb9@byu.net>
43260
43261         Improve memchr2 performance.
43262         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43263         NUL bytes.
43264         * modules/memchr2 (Depends-on): Use intprops.h.
43265
43266 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43267
43268         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43269         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43270         <blp@cs.stanford.edu>.
43271
43272 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43273
43274         * lib/arpa_inet.in.h: New file.
43275
43276         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43277         (Makefile.am): Sed in substitute header file.
43278
43279         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43280         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43281
43282         * modules/inet_ntop (configure.ac): Use
43283         gl_ARPA_INET_MODULE_INDICATOR.
43284
43285         * modules/inet_pton (configure.ac): Use
43286         gl_ARPA_INET_MODULE_INDICATOR.
43287
43288 2008-04-22  Jim Meyering  <meyering@redhat.com>
43289
43290         * modules/verify (License): Re-license as LGPLv2+.
43291
43292 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43293
43294         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43295         parameter to void* as per POSIX standard (MinGW uses char*).
43296
43297 2008-04-21  Bruno Haible  <bruno@clisp.org>
43298
43299         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43300         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43301         Define to replacements if REPLACE_ISWCNTRL is 1.
43302         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43303         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43304         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43305         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43306         what it fixes.
43307         * doc/posix-functions/iswalpha.texi: Likewise.
43308         * doc/posix-functions/iswblank.texi: Likewise.
43309         * doc/posix-functions/iswcntrl.texi: Likewise.
43310         * doc/posix-functions/iswdigit.texi: Likewise.
43311         * doc/posix-functions/iswgraph.texi: Likewise.
43312         * doc/posix-functions/iswlower.texi: Likewise.
43313         * doc/posix-functions/iswprint.texi: Likewise.
43314         * doc/posix-functions/iswpunct.texi: Likewise.
43315         * doc/posix-functions/iswspace.texi: Likewise.
43316         * doc/posix-functions/iswupper.texi: Likewise.
43317         * doc/posix-functions/iswxdigit.texi: Likewise.
43318         Reported by Alain Guibert.
43319
43320 2008-04-21  Bruno Haible  <bruno@clisp.org>
43321
43322         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43323         Patch by Alain Guibert.
43324
43325 2008-04-21  Bruno Haible  <bruno@clisp.org>
43326
43327         Fix test failures on mingw.
43328         * tests/test-xstrtol.c (print_no_progname): New function.
43329         (main): Install it in error_print_progname hook.
43330         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43331         * tests/test-xstrtoimax.sh: Likewise.
43332         * tests/test-xstrtoumax.sh: Likewise.
43333
43334 2008-04-21  Bruno Haible  <bruno@clisp.org>
43335
43336         Fix test failure on mingw.
43337         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43338
43339 2008-04-21  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43342         Actually assign a value.
43343
43344 2008-04-20  Bruno Haible  <bruno@clisp.org>
43345
43346         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43347         take 2.
43348         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43349         'canonicalize-lgpl' module is also used.
43350         * lib/canonicalize-lgpl.c: Undo last change.
43351         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43352
43353 2008-04-20  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43356         config.h. Provide _mkdir based fallback for mingw.
43357         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43358         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43359         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43360         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43361         rather than defining mkdir in config.h.
43362         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43363         (gl_SYS_STAT_H_DEFAULTS): New macro.
43364         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43365         HAVE_IO_H any more.
43366         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43367         HAVE_DECL_MKDIR and HAVE_IO_H.
43368
43369 2008-04-20  Bruno Haible  <bruno@clisp.org>
43370
43371         * lib/isapipe.c: Port to native Windows platforms.
43372
43373 2008-04-20  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43376
43377 2008-04-21  Eric Blake  <ebb9@byu.net>
43378
43379         Work around preprocessors that don't handle UINTMAX_MAX.
43380         * lib/memchr2.c (memchr2): Avoid embedded #if.
43381         Reported by Alain Guibert, fix suggested by Bruno Haible.
43382
43383 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43384
43385         * doc/posix-functions/strftime.texi (strftime): Explain better
43386         Windows incompatibility.  Suggested by Micah Cowan
43387         <micah@cowan.name>.
43388
43389 2008-04-20  Bruno Haible  <bruno@clisp.org>
43390
43391         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43392         unistr/u8-mblen.
43393
43394 2008-04-20  Bruno Haible  <bruno@clisp.org>
43395
43396         Fix test failure on platforms with non-GNU iconv.
43397         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43398         (U_TO_U8): Use it, rather than u16_to_u8.
43399         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43400         units at the end of the input string.
43401         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43402
43403 2008-04-20  Bruno Haible  <bruno@clisp.org>
43404
43405         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43406         when the resulting length is 0.
43407         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43408
43409 2008-04-20  Bruno Haible  <bruno@clisp.org>
43410
43411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43412         works.
43413         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43414
43415 2008-04-20  Bruno Haible  <bruno@clisp.org>
43416
43417         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43418         * modules/tsearch-tests (configure.ac): Test for initstate function.
43419
43420 2008-04-20  Bruno Haible  <bruno@clisp.org>
43421
43422         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43423         for nlink_t if missing.
43424         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43425
43426 2008-04-19  Bruno Haible  <bruno@clisp.org>
43427
43428         Work around snprintf bug on Linux libc5.
43429         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43431         gl_SNPRINTF_SIZE1.
43432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43433         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43434         that test failed.
43435         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43436         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43437         * modules/snprintf (Files): Add m4/printf.m4.
43438         * modules/vsnprintf (Files): Likewise.
43439         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43440         * doc/posix-functions/vsnprintf.texi: Likewise.
43441
43442 2008-04-19  Bruno Haible  <bruno@clisp.org>
43443
43444         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43445         from 0.0058 to less than 10^-7.
43446
43447 2008-04-19  Bruno Haible  <bruno@clisp.org>
43448
43449         Fix rounding when a precision is given.
43450         * lib/vasnprintf.c (is_borderline): New function.
43451         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43452         9...9x.
43453         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43454         %e, %g.
43455         * tests/test-vasprintf-posix.c (test_function): Likewise.
43456         * tests/test-snprintf-posix.h (test_function): Likewise.
43457         * tests/test-sprintf-posix.h (test_function): Likewise.
43458         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43459         * tests/test-printf-posix.h (test_function): Likewise.
43460         * tests/test-printf-posix.output: Update.
43461         Reported by John Darrington <john@darrington.wattle.id.au> via
43462         Ben Pfaff <blp@cs.stanford.edu>.
43463
43464 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43465
43466         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43467         Suggested by Bruno Haible <bruno@clisp.org>.
43468
43469 2008-04-17  Bruno Haible  <bruno@clisp.org>
43470
43471         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43472         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43473         implementation.
43474         Patch by Bruce Merry <bmerry@gmail.com>.
43475
43476 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43477
43478         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43479         doesn't work under Windows.
43480
43481 2008-04-16  Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43484         New macros.
43485         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43486         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43487         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43488         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43489         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43490         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43491         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43492         macros.
43493         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43494         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43495         Northern Sotho, Uighur.
43496
43497 2008-04-16  Bruno Haible  <bruno@clisp.org>
43498
43499         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43500         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43501         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43502         Reported by Daniel Bergström <daniel@octocode.com>.
43503
43504 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43505             Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43508         function.
43509         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43510         New functions, mostly extracted from gl_locale_name_default.
43511         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43512
43513 2008-04-16  Eric Blake  <ebb9@byu.net>
43514
43515         Adjust strtod detection to catch glibc 2.7 bug.
43516         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43517         Reported by John Gatewood Ham.
43518
43519 2008-04-16  Bruno Haible  <bruno@clisp.org>
43520
43521         Add tentative support for Linux libc5.
43522         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43523         * lib/fpurge.c (fpurge): Likewise.
43524         * lib/freadable.c (freadable): Likewise.
43525         * lib/freadahead.c (freadahead): Likewise.
43526         * lib/freading.c (freading): Likewise.
43527         * lib/freadptr.c (freadptr): Likewise.
43528         * lib/freadseek.c (freadptrinc): Likewise.
43529         * lib/fseeko.c (rpl_fseeko): Likewise.
43530         * lib/fseterr.c (fseterr): Likewise.
43531         * lib/fwritable.c (fwritable): Likewise.
43532         * lib/fwriting.c (fwriting): Likewise.
43533         Reported by Alain Guibert <alguibert+bts@free.fr>.
43534
43535 2008-04-15  Bruno Haible  <bruno@clisp.org>
43536
43537         * modules/mathl (configure.ac): Define module indicator.
43538
43539 2008-04-15  Bruno Haible  <bruno@clisp.org>
43540
43541         * lib/logl.c (logl): Remove unused variables.
43542
43543 2008-04-15  Bruno Haible  <bruno@clisp.org>
43544
43545         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43546         fails.
43547
43548 2008-04-15  Bruno Haible  <bruno@clisp.org>
43549
43550         * lib/trim.c (trim2): Fix argument of isspace() macro.
43551
43552 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43553
43554         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43555         to 0.
43556         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43557
43558 2008-04-14  Bruno Haible  <bruno@clisp.org>
43559
43560         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43561         AC_LANG_PROGRAM argument.
43562         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43563         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43565         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43566         * m4/math_h.m4 (gl_MATH_H): Likewise.
43567         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43569         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43570         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43571         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43572         * m4/regex.m4 (gl_REGEX): Likewise.
43573         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43574         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43577         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43578         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43581
43582 2008-04-14  Jim Meyering  <meyering@redhat.com>
43583
43584         test-strtod: fix typos: s/abs/fabs/
43585         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43586
43587 2008-04-13  Bruno Haible  <bruno@clisp.org>
43588
43589         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43590         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43591         module is also used and while not building the reloc-wrapper.
43592
43593 2008-04-13  Bruno Haible  <bruno@clisp.org>
43594
43595         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43596
43597 2008-04-13  Bruno Haible  <bruno@clisp.org>
43598
43599         Fix AIX compilation failure introduced on 2008-04-02.
43600         * tests/test-frexp.c (exp): Undefine before redefining.
43601         * tests/test-frexpl.c (exp): Likewise.
43602
43603 2008-04-13  Bruno Haible  <bruno@clisp.org>
43604
43605         Work around a HP-UX stdio bug.
43606         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43607         * tests/test-ftello.c (main): Likewise.
43608         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43609         * doc/posix-functions/ftello.texi: Likewise.
43610
43611 2008-04-13  Bruno Haible  <bruno@clisp.org>
43612
43613         Make test-signbit pass on HP-UX/hppa.
43614         * tests/test-signbit.c (minus_zerol): New variable.
43615         (test_signbitl): Use it.
43616
43617 2008-04-13  Bruno Haible  <bruno@clisp.org>
43618
43619         Make truncl work on OSF/1 4.0.
43620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43621         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43622         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43624         HAVE_DECL_TRUNCL.
43625         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43626         HAVE_DECL_TRUNCL.
43627         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43628
43629 2008-04-13  Bruno Haible  <bruno@clisp.org>
43630
43631         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43632
43633 2008-04-13  Bruno Haible  <bruno@clisp.org>
43634
43635         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43636         expression, so as to avoid HP-UX 11 cc compiler bug.
43637
43638 2008-04-13  Bruno Haible  <bruno@clisp.org>
43639
43640         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43641
43642 2008-04-13  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/git-merge-changelog.c: Remove empty declaration outside of
43645         functions.
43646
43647 2008-04-13  Bruno Haible  <bruno@clisp.org>
43648
43649         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43650
43651 2008-04-13  Bruno Haible  <bruno@clisp.org>
43652
43653         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43654         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43656         also if it exists but lacks definitions of the SHUT_* macros.
43657         * modules/sys_socket (Description): Update.
43658         Reported by Elbert Pol <e.pol@chello.nl>.
43659
43660 2008-04-13  Bruno Haible  <bruno@clisp.org>
43661
43662         * lib/localcharset.c (OS2): Don't redefine if already defined.
43663         Reported by Elbert Pol <e.pol@chello.nl>.
43664
43665 2008-04-13  Bruno Haible  <bruno@clisp.org>
43666
43667         * lib/binary-io.h [__EMX__]: Include <io.h>.
43668         Reported by Elbert Pol <e.pol@chello.nl>.
43669
43670 2008-04-12  Bruno Haible  <bruno@clisp.org>
43671
43672         * lib/fpucw.h: Enable the definitions also for x86_64.
43673         Needed for NetBSD/x86_64.
43674         Reported by Thomas Klausner <tk@giga.or.at>.
43675
43676 2008-04-12  Bruno Haible  <bruno@clisp.org>
43677
43678         * tests/test-strtod.c: Include isnand.h.
43679         (main): Use isnand instead of isnan.
43680         Reported by Jim Meyering.
43681
43682 2008-04-12  Bruno Haible  <bruno@clisp.org>
43683
43684         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43685         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43686
43687 2008-04-12  Jim Meyering  <meyering@redhat.com>
43688
43689         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43690
43691 2008-04-12  Bruno Haible  <bruno@clisp.org>
43692
43693         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43694         Reported by Elbert Pol <e.pol@chello.nl>.
43695
43696 2008-04-12  Eric Blake  <ebb9@byu.net>
43697
43698         Work around Solaris 10 math.h bug.
43699         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43700         (gl_MATH_H_DEFAULTS): Set up default.
43701         * modules/math (Makefile.am): Replace new indicators.
43702         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43703         * tests/test-math.c (main): Test this.
43704         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43705         * doc/posix-headers/math.texi (math.h): Mention bug.
43706         Reported by Nelson H. F. Beebe and Jim Meyering.
43707
43708 2008-04-11  Bruno Haible  <bruno@clisp.org>
43709
43710         Adapt to future versions of Apple GCC.
43711         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43712         Reported by Peter O'Gorman <peter@pogma.com>.
43713
43714 2008-04-11  Bruno Haible  <bruno@clisp.org>
43715
43716         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43717
43718 2008-04-11  Bruno Haible  <bruno@clisp.org>
43719
43720         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43721
43722         * modules/getaddrinfo-tests (Makefile.am): Define
43723         test_getaddrinfo_LDADD.
43724
43725 2008-04-11  Bruno Haible  <bruno@clisp.org>
43726
43727         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43728         (init): Fix syntax error.
43729         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43730         is declared.
43731
43732 2008-04-11  Bruno Haible  <bruno@clisp.org>
43733
43734         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43735         * modules/glob (Depends-on): Add stdbool.
43736
43737 2008-04-11  Bruno Haible  <bruno@clisp.org>
43738
43739         * lib/trim.c: Include <string.h>.
43740
43741 2008-04-11  Eric Blake  <ebb9@byu.net>
43742
43743         Avoid compile failure on OS/2.
43744         * lib/regex_internal.h (internal_function): Disable optimization
43745         on OS/2 (__EMX__), where it caused compiler error.
43746         Reported by Elbert Pol.
43747
43748 2008-04-11  Bruno Haible  <bruno@clisp.org>
43749
43750         Flush the standard error stream before aborting. Needed on mingw.
43751         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43752         * tests/test-array_list.c (ASSERT): Likewise.
43753         * tests/test-array_oset.c (ASSERT): Likewise.
43754         * tests/test-avltree_list.c (ASSERT): Likewise.
43755         * tests/test-avltree_oset.c (ASSERT): Likewise.
43756         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43757         * tests/test-binary-io.c (ASSERT): Likewise.
43758         * tests/test-byteswap.c (ASSERT): Likewise.
43759         * tests/test-c-ctype.c (ASSERT): Likewise.
43760         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43761         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43762         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43763         * tests/test-c-strstr.c (ASSERT): Likewise.
43764         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43765         * tests/test-canonicalize.c (ASSERT): Likewise.
43766         * tests/test-carray_list.c (ASSERT): Likewise.
43767         * tests/test-ceilf1.c (ASSERT): Likewise.
43768         * tests/test-ceilf2.c (ASSERT): Likewise.
43769         * tests/test-ceill.c (ASSERT): Likewise.
43770         * tests/test-count-one-bits.c (ASSERT): Likewise.
43771         * tests/test-fbufmode.c (ASSERT): Likewise.
43772         * tests/test-fflush2.c (ASSERT): Likewise.
43773         * tests/test-floorf1.c (ASSERT): Likewise.
43774         * tests/test-floorf2.c (ASSERT): Likewise.
43775         * tests/test-floorl.c (ASSERT): Likewise.
43776         * tests/test-fopen.c (ASSERT): Likewise.
43777         * tests/test-fpending.c (ASSERT): Likewise.
43778         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43779         * tests/test-fpurge.c (ASSERT): Likewise.
43780         * tests/test-freadable.c (ASSERT): Likewise.
43781         * tests/test-freadahead.c (ASSERT): Likewise.
43782         * tests/test-freading.c (ASSERT): Likewise.
43783         * tests/test-freadptr.c (ASSERT): Likewise.
43784         * tests/test-freadptr2.c (ASSERT): Likewise.
43785         * tests/test-freadseek.c (ASSERT): Likewise.
43786         * tests/test-freopen.c (ASSERT): Likewise.
43787         * tests/test-frexp.c (ASSERT): Likewise.
43788         * tests/test-frexpl.c (ASSERT): Likewise.
43789         * tests/test-fseek.c (ASSERT): Likewise.
43790         * tests/test-fseeko.c (ASSERT): Likewise.
43791         * tests/test-fstrcmp.c (ASSERT): Likewise.
43792         * tests/test-ftell.c (ASSERT): Likewise.
43793         * tests/test-ftello.c (ASSERT): Likewise.
43794         * tests/test-func.c (ASSERT): Likewise.
43795         * tests/test-fwritable.c (ASSERT): Likewise.
43796         * tests/test-fwriting.c (ASSERT): Likewise.
43797         * tests/test-getdelim.c (ASSERT): Likewise.
43798         * tests/test-getline.c (ASSERT): Likewise.
43799         * tests/test-i-ring.c (ASSERT): Likewise.
43800         * tests/test-iconv-utf.c (ASSERT): Likewise.
43801         * tests/test-iconv.c (ASSERT): Likewise.
43802         * tests/test-isfinite.c (ASSERT): Likewise.
43803         * tests/test-isnand.c (ASSERT): Likewise.
43804         * tests/test-isnanf.c (ASSERT): Likewise.
43805         * tests/test-isnanl.h (ASSERT): Likewise.
43806         * tests/test-ldexpl.c (ASSERT): Likewise.
43807         * tests/test-linked_list.c (ASSERT): Likewise.
43808         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43809         * tests/test-localename.c (ASSERT): Likewise.
43810         * tests/test-lseek.c (ASSERT): Likewise.
43811         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43812         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43813         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43814         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43815         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43816         * tests/test-mbschr.c (ASSERT): Likewise.
43817         * tests/test-mbscspn.c (ASSERT): Likewise.
43818         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43819         * tests/test-mbspbrk.c (ASSERT): Likewise.
43820         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43821         * tests/test-mbsrchr.c (ASSERT): Likewise.
43822         * tests/test-mbsspn.c (ASSERT): Likewise.
43823         * tests/test-mbsstr1.c (ASSERT): Likewise.
43824         * tests/test-mbsstr2.c (ASSERT): Likewise.
43825         * tests/test-mbsstr3.c (ASSERT): Likewise.
43826         * tests/test-memchr2.c (ASSERT): Likewise.
43827         * tests/test-memmem.c (ASSERT): Likewise.
43828         * tests/test-open.c (ASSERT): Likewise.
43829         * tests/test-printf-frexp.c (ASSERT): Likewise.
43830         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43831         * tests/test-printf-posix.c (ASSERT): Likewise.
43832         * tests/test-quotearg.c (ASSERT): Likewise.
43833         * tests/test-rbtree_list.c (ASSERT): Likewise.
43834         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43835         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43836         * tests/test-round1.c (ASSERT): Likewise.
43837         * tests/test-roundf1.c (ASSERT): Likewise.
43838         * tests/test-roundl.c (ASSERT): Likewise.
43839         * tests/test-signbit.c (ASSERT): Likewise.
43840         * tests/test-sleep.c (ASSERT): Likewise.
43841         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43842         * tests/test-snprintf.c (ASSERT): Likewise.
43843         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43844         * tests/test-stat-time.c (ASSERT): Likewise.
43845         * tests/test-strcasestr.c (ASSERT): Likewise.
43846         * tests/test-strerror.c (ASSERT): Likewise.
43847         * tests/test-striconv.c (ASSERT): Likewise.
43848         * tests/test-striconveh.c (ASSERT): Likewise.
43849         * tests/test-striconveha.c (ASSERT): Likewise.
43850         * tests/test-strsignal.c (ASSERT): Likewise.
43851         * tests/test-strstr.c (ASSERT): Likewise.
43852         * tests/test-strtod.c (ASSERT): Likewise.
43853         * tests/test-trunc1.c (ASSERT): Likewise.
43854         * tests/test-trunc2.c (ASSERT): Likewise.
43855         * tests/test-truncf1.c (ASSERT): Likewise.
43856         * tests/test-truncf2.c (ASSERT): Likewise.
43857         * tests/test-truncl.c (ASSERT): Likewise.
43858         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43859         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43860         * tests/test-vasnprintf.c (ASSERT): Likewise.
43861         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43862         * tests/test-vasprintf.c (ASSERT): Likewise.
43863         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43864         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43865         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43866         * tests/test-vsnprintf.c (ASSERT): Likewise.
43867         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43868         * tests/test-wcwidth.c (ASSERT): Likewise.
43869         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43870         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43871         * tests/test-xvasprintf.c (ASSERT): Likewise.
43872         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43873         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43874         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43875         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43876         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43877         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43878         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43879         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43880         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43881         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43882         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43883         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43884         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43885         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43886         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43887         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43888         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43889         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43890         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43891         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43892         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43893         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43894         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43895         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43896         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43897         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43898         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43899         * tests/unictype/test-combining.c (ASSERT): Likewise.
43900         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43901         * tests/unictype/test-digit.c (ASSERT): Likewise.
43902         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43903         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43904         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43905         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43906         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43907         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43908         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43909         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43910         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43911         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43912         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43913         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43914         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43915         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43916         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43917         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43918         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43919         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43920         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43921         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43922         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43923         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43924         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43925         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43926         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43927         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43928         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43929         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43930         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43931         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43932         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43933         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43934         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43935         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43936         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43937         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43938         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43939         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43940         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43941         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43942         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43943         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43944         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43945         Reported by Eric Blake.
43946
43947 2008-04-11  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/wchar.in.h: Tweak comment.
43950
43951 2008-04-11  Bruno Haible  <bruno@clisp.org>
43952
43953         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43954         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43955         gl_COMMON.
43956         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43957
43958 2008-04-11  Bruno Haible  <bruno@clisp.org>
43959
43960         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43961
43962 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43963
43964         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43965         of attempting to use non-existing /dev/*random.  Based on patch
43966         from Adam Strzelecki <ono@java.pl> in
43967         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43968
43969 2008-04-08  Bruno Haible  <bruno@clisp.org>
43970
43971         Add tentative support for emx+gcc.
43972         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43973         * lib/fpurge.c (fpurge): Likewise.
43974         * lib/freadable.c (freadable): Likewise.
43975         * lib/freadahead.c (freadahead): Likewise.
43976         * lib/freading.c (freading): Likewise.
43977         * lib/freadptr.c (freadptr): Likewise.
43978         * lib/freadseek.c (freadptrinc): Likewise.
43979         * lib/fseeko.c (rpl_fseeko): Likewise.
43980         * lib/fseterr.c (fseterr): Likewise.
43981         * lib/fwritable.c (fwritable): Likewise.
43982         * lib/fwriting.c (fwriting): Likewise.
43983         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43984
43985 2008-04-09  Eric Blake  <ebb9@byu.net>
43986
43987         Avoid some autoconf warnings.
43988         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43989         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43990         * m4/afs.m4 (gl_AFS): Likewise.
43991         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43992         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43994         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43995         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43996         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43997         (AC_CHECK_DECLS_ONCE): Likewise.
43998         Rename file...
43999         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44000         gnulib-tool requires autoconf 2.59 or better.
44001         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44002
44003 2008-04-08  Eric Blake  <ebb9@byu.net>
44004
44005         Use 'git describe --match' if present (added in git 1.5.5).
44006         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44007         if possible.
44008
44009 2008-04-08  Bruno Haible  <bruno@clisp.org>
44010
44011         Add tentative support for OpenServer.
44012         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44013         _ptr, _cnt.
44014         * lib/fpurge.c (fpurge): Likewise.
44015         * lib/freadable.c (freadable): Likewise.
44016         * lib/freadahead.c (freadahead): Likewise.
44017         * lib/freading.c (freading): Likewise.
44018         * lib/freadptr.c (freadptr): Likewise.
44019         * lib/freadseek.c (freadptrinc): Likewise.
44020         * lib/fseeko.c (rpl_fseeko): Likewise.
44021         * lib/fseterr.c (fseterr): Likewise.
44022         * lib/fwritable.c (fwritable): Likewise.
44023         * lib/fwriting.c (fwriting): Likewise.
44024         Reported by Roger Cornelius <rac@tenzing.org> and
44025         Brian K. White <brian@aljex.com>.
44026
44027 2008-04-06  Jim Meyering  <meyering@redhat.com>
44028
44029         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44030
44031 2008-04-06  Bruno Haible  <bruno@clisp.org>
44032
44033         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44034         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44035         * tests/test-printf-posix.sh: Likewise.
44036         * tests/test-vfprintf-posix.sh: Likewise.
44037         * tests/test-vprintf-posix.sh: Likewise.
44038         * tests/test-xprintf-posix.sh: Likewise.
44039
44040 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44041
44042         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44043         hide error from 'ls', needed on OS/2.
44044         Report by Elbert Pol <elbert.pol@gmail.com>.
44045
44046 2008-04-04  Eric Blake  <ebb9@byu.net>
44047
44048         Make test-fseeko.c failures meaningful.
44049         * tests/test-fseeko.c: Print line number on failure.
44050         * tests/test-fseek.c: Likewise.
44051         Reported by Nelson H. F. Beebe.
44052
44053         Improve strtod bug detection check.
44054         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44055         required for Solaris 10.
44056         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44057
44058 2008-04-04  Bruno Haible  <bruno@clisp.org>
44059
44060         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44061         by m4/setenv.m4.
44062
44063 2008-04-03  Eric Blake  <ebb9@byu.net>
44064
44065         Ensure sane .version contents.
44066         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44067         version string.
44068         * build-aux/git-version-gen: Improve documentation.
44069
44070         Make GNU make output nicer.
44071         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44072         MAKECMDGOALS to enforce message for all command line targets.  Set
44073         srcdir for use in maint.mk.
44074
44075         Another maintainer tweak.
44076         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44077         a target that regenerates version.
44078
44079 2008-04-03  Jim Meyering  <meyering@redhat.com>
44080
44081         vc-list-files: don't cause coreutils "make po-check" failure
44082         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44083
44084 2008-04-03  Eric Blake  <ebb9@byu.net>
44085
44086         Allow VPATH usage of vc-list-files.
44087         * build-aux/vc-list-files (scriptversion): Add timestamp.
44088         (options): Add --help, --version, -C.
44089         (CVS): Support installed cvsu.
44090
44091 2008-04-02  Bruno Haible  <bruno@clisp.org>
44092
44093         Avoid some "statement with no effect" warnings from gcc.
44094         * tests/test-wctype.c (main): Explicitly ignore unused values.
44095         Reported by Jim Meyering.
44096
44097 2008-04-02  Jim Meyering  <meyering@redhat.com>
44098
44099         Avoid some warnings from "gcc -Wshadow".
44100         * tests/test-frexp.c (exp): Define to a different identifier.
44101         * tests/test-frexpl.c (exp): Likewise.
44102
44103 2008-04-03  Jim Meyering  <meyering@redhat.com>
44104
44105         bootstrap: remove dangling *.[ch] symlinks from lib
44106         * build-aux/bootstrap [dangling symlink removal]: Move find's
44107         -depth option to precede all others, to avoid a warning.
44108         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44109
44110 2008-04-02  Bruno Haible  <bruno@clisp.org>
44111
44112         Avoid some warnings from "gcc -Wshadow".
44113         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44114         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44115         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44116         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44117         Reported by Jim Meyering.
44118
44119 2008-04-01  Bruno Haible  <bruno@clisp.org>
44120
44121         Fix test to work on IRIX 6.5 with cc.
44122         * tests/test-math.c (numeric_equal): New function.
44123         (main): Use it.
44124
44125 2008-04-01  Bruno Haible  <bruno@clisp.org>
44126
44127         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44128
44129 2008-04-01  Bruno Haible  <bruno@clisp.org>
44130
44131         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44132         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44133         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44134         (Depends-on): Remove math.
44135
44136         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44137         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44138         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44139         (Depends-on): Remove math.
44140
44141         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44142         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44143         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44144         (Depends-on): Remove math.
44145         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44146         (Depends-on): Remove math.
44147
44148         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44149         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44150         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44151         (Depends-on): Remove math.
44152         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44153         (Depends-on): Remove math.
44154
44155         * tests/test-round1.c: Include nan.h.
44156         (main): Use NaNd instead of NAN.
44157         * modules/round-tests (Files): Add tests/nan.h.
44158
44159         * tests/test-trunc1.c: Include nan.h.
44160         (main): Use NaNd instead of NAN.
44161         * modules/trunc-tests (Files): Add tests/nan.h.
44162
44163         * tests/test-roundf1.c: Include nan.h.
44164         (main): Use NaNf instead of NAN.
44165         * modules/roundf-tests (Files): Add tests/nan.h.
44166
44167         * tests/test-truncf1.c: Include nan.h.
44168         (main): Use NaNf instead of NAN.
44169         * modules/truncf-tests (Files): Add tests/nan.h.
44170
44171         * tests/test-ceilf1.c: Include nan.h.
44172         (main): Use NaNf instead of NAN.
44173         * modules/ceilf-tests (Files): Add tests/nan.h.
44174
44175         * tests/test-floorf1.c: Include nan.h.
44176         (main): Use NaNf instead of NAN.
44177         * modules/floorf-tests (Files): Add tests/nan.h.
44178
44179         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44180         (main): Use NaNf instead of NAN.
44181         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44182
44183         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44184         (main): Use NaNd instead of NAN.
44185         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44186
44187         * tests/test-frexp.c: Include nan.h.
44188         (main): Use NaNd instead of NAN.
44189         * modules/frexp-tests (Files): Add tests/nan.h.
44190
44191         * lib/isnan.c: Don't include <math.h>.
44192         (FUNC): Don't use NAN macro.
44193         * modules/isnand-nolibm (Depends-on): Remove math.
44194         * modules/isnanf-nolibm (Depends-on): Remove math.
44195         * modules/isnanl (Depends-on): Remove math.
44196         * modules/isnanl-nolibm (Depends-on): Remove math.
44197
44198         * tests/nan.h: New file.
44199
44200 2008-04-01  Eric Blake  <ebb9@byu.net>
44201
44202         Fix typos.
44203         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44204         values to be the right type.
44205
44206         For now, cater to gnulib strtod inaccuracies.
44207         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44208         fractional results.  While not as nice from a QoI perspective, it
44209         is a quicker patch than correctly implementing decimal to binary
44210         rounding.
44211
44212 2008-03-31  Eric Blake  <ebb9@byu.net>
44213
44214         Guarantee a definition of NAN.
44215         * lib/math.in.h (NAN): Define if missing.
44216         * tests/test-math.c (main): Test it.
44217         * doc/posix-headers/math.texi (math.h): Document this.
44218         * lib/isnan.c (rpl_isnand): Use it.
44219         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44220         * tests/test-floorf1.c (NaN): Likewise.
44221         * tests/test-frexp.c (NaN): Likewise.
44222         * tests/test-isnand.c (NaN): Likewise.
44223         * tests/test-isnanf.c (NaN): Likewise.
44224         * tests/test-round1.c (NaN): Likewise.
44225         * tests/test-roundf1.c (NaN): Likewise.
44226         * tests/test-snprintf-posix.h (NaN): Likewise.
44227         * tests/test-sprintf-posix.h (NaN): Likewise.
44228         * tests/test-trunc1.c (NaN): Likewise.
44229         * tests/test-truncf1.c (NaN): Likewise.
44230         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44231         * tests/test-vasprintf-posix.c (NaN): Likewise.
44232         * modules/isnand-nolibm (Depends-on): Add math.
44233         * modules/isnanf-nolibm (Depends-on): Likewise.
44234         * modules/isnanl (Depends-on): Likewise.
44235         * modules/isnanl-nolibm (Depends-on): Likewise.
44236         * modules/snprintf-posix-tests (Depends-on): Likewise.
44237         * modules/sprintf-posix-tests (Depends-on): Likewise.
44238         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44239         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44240         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44241         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44242
44243 2008-03-31  Bruno Haible  <bruno@clisp.org>
44244
44245         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44246         * doc/posix-functions/strtod.texi: Likewise.
44247
44248 2008-03-31  Bruno Haible  <bruno@clisp.org>
44249
44250         * tests/test-strtod.c (main): Don't use C99 syntax.
44251
44252 2008-03-31  Bruno Haible  <bruno@clisp.org>
44253
44254         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44255         Reported by Eric Blake.
44256
44257 2008-03-31  Jim Meyering  <meyering@redhat.com>
44258
44259         Don't compare actual signbit return values.
44260         * tests/test-strtod.c (main): Rather, compare only their
44261         zero/non-zero nature.
44262
44263 2008-03-31  Eric Blake  <ebb9@byu.net>
44264
44265         More strtod documentation.
44266         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44267         failures as distinct bugs.
44268
44269 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44270
44271         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44272         Problem reported by Erik Benada in
44273         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44274
44275 2008-03-30  Bruno Haible  <bruno@clisp.org>
44276
44277         * tests/test-strtod.c: Add comments about which assertion fails on which
44278         platform.
44279         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44280
44281 2008-03-30  Eric Blake  <ebb9@byu.net>
44282
44283         Test signbit behavior on zeros.
44284         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44285         (test_signbitd, test_signbitl): Likewise.
44286
44287         More strtod touchups.
44288         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44289         sign of negative underflow, for now.  Use .5, not .1.
44290         * doc/posix-functions/strtod.texi (strtod): Mention these
44291         limitations.
44292         Reported by Jim Meyering.
44293
44294 2008-03-30  Bruno Haible  <bruno@clisp.org>
44295
44296         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44297         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44298
44299 2008-03-30  Bruno Haible  <bruno@clisp.org>
44300
44301         Avoid failure when attempting to return empty iconv results on some
44302         platforms.
44303         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44304         allocation, don't report ENOMEM when the resulting string is empty.
44305
44306 2008-03-30  Bruno Haible  <bruno@clisp.org>
44307
44308         Fix buffer overrun.
44309         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44310         Don't consider the width for tmp_length. Check count against tmp_length
44311         before doing the padding. Ensure enough allocation during padding.
44312
44313 2008-03-30  Eric Blake  <ebb9@byu.net>
44314
44315         strtod touchups.
44316         * lib/strtod.c (strtod): Avoid compiler warnings.
44317         Reported by Jim Meyering.
44318
44319 2008-03-30  Bruno Haible  <bruno@clisp.org>
44320
44321         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44322         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44323         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44324         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44325         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44326         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44327         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44328         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44329
44330         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44331         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44332         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44333         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44334         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44335         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44336         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44337         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44338
44339         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44340         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44341         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44342         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44343         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44344         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44345         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44346         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44347
44348         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44349         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44350
44351         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44352         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44353
44354         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44355         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44356
44357         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44359         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44360
44361         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44363         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44364
44365         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44367         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44368
44369         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44371         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44372
44373         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44374         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44376         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44377         (Depends-on): Add EOVERFLOW.
44378         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44379         (Depends-on): Add EOVERFLOW.
44380         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44381         (Depends-on): Add EOVERFLOW.
44382         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44383         (Depends-on): Add EOVERFLOW.
44384         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44385         (Depends-on): Add EOVERFLOW.
44386         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44387         (Depends-on): Add EOVERFLOW.
44388         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44389         (Depends-on): Add EOVERFLOW.
44390         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44391         (Depends-on): Add EOVERFLOW.
44392
44393         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44395         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44396
44397         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44398         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44399         * modules/snprintf (Depends-on): Add EOVERFLOW.
44400
44401         * lib/poll.c (EOVERFLOW): Remove fallback.
44402         * modules/poll (Depends-on): Add EOVERFLOW.
44403
44404         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44405         * modules/getugroups (Depends-on): Add EOVERFLOW.
44406
44407         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44408         * modules/getdelim (Depends-on): Add EOVERFLOW.
44409
44410         * lib/ftell.c (EOVERFLOW): Remove fallback.
44411         * modules/ftell (Depends-on): Add EOVERFLOW.
44412
44413         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44414         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44415         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44416
44417         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44418
44419         * modules/EOVERFLOW-tests: New file.
44420         * tests/test-EOVERFLOW.c: New file.
44421
44422         * modules/EOVERFLOW: New file.
44423         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44424
44425 2008-03-30  Bruno Haible  <bruno@clisp.org>
44426
44427         Fix bug introduced on 2007-06-10.
44428         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44429         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44430
44431 2008-03-30  Bruno Haible  <bruno@clisp.org>
44432
44433         Improve freadseek's efficiency after ungetc.
44434         * lib/freadseek.c: Include freadahead.h.
44435         (freadptrinc): New function, extracted from freadseek.
44436         (freadseek): Use it in a loop. Use freadahead to determine the number
44437         of loop iterations.
44438         * modules/freadseek (Depends-on): Add freadahead.
44439         (configure.ac): Require AC_C_INLINE.
44440
44441 2008-03-30  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/freadseek.c (freadseek): Don't ignore the return value of
44444         freadptr.
44445
44446 2008-03-29  Eric Blake  <ebb9@byu.net>
44447
44448         Add hex float support.
44449         * modules/strtod (Depends-on): Add c-ctype.
44450         (Link): Mention POW_LIB.
44451         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44452         whitespace between 'e' and exponent.
44453         * tests/test-strtod.c (main): Enable hex float tests.
44454         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44455         now provides.
44456
44457         Document various strtod bugs, with some fixes.
44458         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44459         "-0x", "inf", "nan", and hex constants.
44460         * doc/posix-functions/atof.texi (atof): Likewise.
44461         * modules/stdlib (Makefile.am): Support strtod.
44462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44463         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44464         detect additional strtod bugs.
44465         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44466         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44467         bool where appropriate.  Parse 'inf' and 'nan'.
44468         * tests/test-strtod.c: New file.
44469         * modules/strtod (Depends-on): Add stdbool, stdlib.
44470         (configure.ac): Turn on module indicator.
44471         * modules/strtod-tests: New module.
44472
44473 2008-03-29  Eric Blake  <ebb9@byu.net>
44474
44475         Fix ftell on mingw.
44476         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44477         * modules/ftell-tests (Depends-on): Add binary-io.
44478         * modules/ftello-tests (Depends-on): Likewise.
44479         * tests/test-ftell.c (main): Enhance test to cover behavior after
44480         ungetc.  Enforce binary mode.
44481         * tests/test-ftello.c (main): Likewise.
44482
44483         Pass test-freadseek on cygwin.
44484         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44485         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44486         ungetc buffer.
44487
44488         * tests/test-fflush2.c (main): Fix typo.
44489
44490 2008-03-29  Bruno Haible  <bruno@clisp.org>
44491
44492         * tests/test-fflush2.c (main): Temporarily disable the contents of
44493         this test.
44494         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44495         Reported by Eric Blake.
44496
44497 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44498
44499         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44500         (GC_SHA224_DIGEST_SIZE): Add.
44501
44502         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44503         (gc_hash_digest_length): Likewise.
44504         (gc_hash_buffer): Likewise.
44505
44506 2008-03-25  Bruno Haible  <bruno@clisp.org>
44507
44508         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44509         detail which gettext release to use.
44510         Reported by Simon Josefsson.
44511
44512 2008-03-26  Jim Meyering  <meyering@redhat.com>
44513
44514         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44515         * modules/gnumakefile (clean-GNUmakefile): Also, use
44516         test ... && ... || : syntax rather than if-then ... fi.
44517
44518         gnumakefile: Don't double-quote-expand $(VPATH) value.
44519         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44520
44521 2008-03-24  Eric Blake  <ebb9@byu.net>
44522
44523         Alter GNUmakefile to install into top directory.
44524         * modules/maintainer-makefile: Split, and add dependency...
44525         * modules/gnumakefile: to this new module.
44526         * build-aux/GNUmakefile: Move...
44527         * top/GNUmakefile: ...here.
44528         * build-aux/maint.mk: Move...
44529         * top/maint.mk: ...here.
44530         * MODULES.html.sh (Support for maintaining...): Document new
44531         module.
44532
44533 2008-03-23  Bruno Haible  <bruno@clisp.org>
44534
44535         * gnulib-tool: New options --vc-files, --no-vc-files.
44536         (func_usage): Document them.
44537         (vc_files): New variable.
44538         (func_import): Consider vc_files.
44539         (func_create_testdir): Set vc_files to empty.
44540         Suggested by Jim Meyering and Karl Berry.
44541
44542 2008-03-23  Bruno Haible  <bruno@clisp.org>
44543
44544         Fix regex compilation error on HP-UX 11.
44545         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44546         * modules/regex (Files): Add m4/mbstate_t.m4.
44547         Reported by Ton Voon <ton.voon@altinity.com>.
44548
44549 2008-03-23  Bruno Haible  <bruno@clisp.org>
44550
44551         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44552
44553 2008-03-23  Eric Blake  <ebb9@byu.net>
44554             Bruno Haible  <bruno@clisp.org>
44555
44556         Install files from top/ in the destination directory.
44557         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44558         augmentation also for the files from top/.
44559         (func_import, func_create_testdir): Rewrite file names:
44560         top/filename -> filename.
44561
44562 2008-03-23  Bruno Haible  <bruno@clisp.org>
44563
44564         Tweak "gnulib --version" output.
44565         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44566
44567 2008-03-23  Bruno Haible  <bruno@clisp.org>
44568
44569         Tweak "gnulib --version" output.
44570         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44571         rather than contents of ChangeLog, when possible.
44572
44573 2008-03-21  Eric Blake  <ebb9@byu.net>
44574
44575         More --version tweaks.
44576         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44577         date of last ChangeLog entry.
44578
44579 2008-03-21  Jim Meyering  <meyering@redhat.com>
44580
44581         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44582
44583 2008-03-20  Eric Blake  <ebb9@byu.net>
44584
44585         VPATH fix.
44586         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44587
44588 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44589
44590         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44591         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44592
44593 2008-03-20  Eric Blake  <ebb9@byu.net>
44594
44595         Sync GNUmakefile with coreutils.
44596         * build-aux/GNUmakefile (have-Makefile): Rename...
44597         (_have-Makefile): ...to this, for namespace consideration.
44598         (GNUmakefile.cfg): Include, if present.
44599         (_autoreconf): Define a default.
44600         (_is-dist-target): New rule for rebuilds to pick up intra-release
44601         version.
44602         (maint-cfg.mk): Rename...
44603         (cfg.mk): ...to this.
44604
44605 2008-03-18  Jim Meyering  <meyering@redhat.com>
44606
44607         New script and module: mktempd
44608         * MODULES.html.sh (maint+release support): Add mktempd.
44609         * build-aux/mktempd: New file.
44610         * modules/mktempd: New file.
44611
44612 2008-03-15  Jim Meyering  <meyering@redhat.com>
44613
44614         Undo last change.
44615         * lib/sha1.c, lib/md5.c: 63 != ~63.
44616         Reported by Andreas Schwab.
44617
44618         sha1.c, md5.c: Hoist a redundant expression.
44619         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44620         "ctx->buflen" only once, before calling *_process_block.
44621         * lib/md5.c (md5_process_bytes): Likewise.
44622
44623 2008-03-14  Eric Blake  <ebb9@byu.net>
44624
44625         Bump copyright year in files generated by gnulib-tool.
44626         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44627         gnulib-tool, rather than hard-coding it.
44628
44629         Fix 'gnulib-tool --version' output to work with git.
44630         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44631         (startup): ...here.
44632         (func_version): Use it to invoke git-version-gen, rather than
44633         relying on CVS keyword expansion.  Modernize wording.
44634         (cvsdatestamp, last_checkin_date, version): Kill unused
44635         variables.
44636
44637 2008-03-12  Jim Meyering  <meyering@redhat.com>
44638
44639         Recognize optional cast of the argument to free.
44640         * build-aux/useless-if-before-free: Update regexps.
44641
44642         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44643
44644 2008-03-11  Bruno Haible  <bruno@clisp.org>
44645
44646         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44647         by a single package.
44648         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44649         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44650         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44651         Reported by Sam Steingold <sds@gnu.org>.
44652
44653 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44654
44655         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44656         repositories.
44657
44658 2008-03-11  Bruno Haible  <bruno@clisp.org>
44659
44660         Avoid conflicts between local macro definitions.
44661         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44662         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44663
44664 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44665             Bruno Haible  <bruno@clisp.org>
44666
44667         Make va_copy work with some version of xlc on AIX 5.1.
44668         * lib/stdarg.in.h: New file.
44669         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44670         On AIX, use a <stdarg.h> file substitute.
44671         * modules/stdarg (Files): Add lib/stdarg.in.h.
44672         (Depends-on): Add include_next.
44673         (Makefile.am): Build a stdarg.h substitute if requested.
44674         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44675
44676 2008-03-10  Bruno Haible  <bruno@clisp.org>
44677
44678         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44680         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44681
44682 2008-03-10  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/stdlib (Depends-on): Add include_next, remove
44685         absolute-header.
44686
44687 2008-03-09  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/freadahead.h (freadahead): Document more precisely.
44690         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44691         the sum of both buffer sizes.
44692         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44693         * NEWS: Document the change.
44694
44695 2008-03-09  Bruno Haible  <bruno@clisp.org>
44696
44697         Extend freadptr to return also the buffer size.
44698         * lib/freadptr.h (freadptr): Add sizep argument.
44699         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44700         (freadptr): Add sizep argument. Determine buffer size like freadahead
44701         does.
44702         * tests/test-freadptr.c: Don't include freadahead.h.
44703         (main): Adapt for new calling convention of freadptr.
44704         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44705         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44706         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44707         tests/test-freadptr2.sh.
44708         (Depends): Remove freadahead.
44709         (TESTS): Add test-freadptr2.sh.
44710         (check_PROGRAMS): Add test-freadptr2.
44711
44712 2008-03-09  Bruno Haible  <bruno@clisp.org>
44713
44714         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44715         Report and solution by Simon Josefsson.
44716
44717 2008-03-06  Bruno Haible  <bruno@clisp.org>
44718
44719         Make fflush after ungetc work on BSD platforms.
44720         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44721         * tests/test-fflush2.c: New file.
44722         * tests/test-fflush2.sh: New file.
44723         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44724         tests/test-fflush2.c.
44725         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44726         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44727
44728 2008-03-06  Eric Blake  <ebb9@byu.net>
44729
44730         Likewise for ftello.
44731         * modules/ftello (Dependencies): Add extensions.
44732         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44733
44734 2008-03-06  Bruno Haible  <bruno@clisp.org>
44735
44736         * modules/fseeko (Dependencies): Add extensions.
44737         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44738         Needed on glibc systems.
44739
44740 2008-03-06  Bruno Haible  <bruno@clisp.org>
44741
44742         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44743         email address.
44744         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44745
44746 2008-03-06  Bruno Haible  <bruno@clisp.org>
44747
44748         * users.txt: Add libgnupdf.
44749
44750 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44751
44752         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44753         (Header File Substitutes, Function Substitutes,
44754         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44755         (Build robot for gnulib): Fix typo.
44756
44757 2008-03-06  Bruno Haible  <bruno@clisp.org>
44758
44759         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44760         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44761
44762 2008-03-06  Bruno Haible  <bruno@clisp.org>
44763
44764         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44765         * doc/gnulib.texi: Include it.
44766
44767 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44768
44769         * modules/func (License): Change license to unlimited; there was
44770         no LGPL parts in the module anyway.
44771
44772 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44773
44774         * modules/__func__: Renamed to modules/func.
44775         * modules/__func__-tests: Renamed to modules/func-tests.
44776         * tests/test-__func__.c: Renamed to tests/test-func.c.
44777         * m4/__func__.m4: Renamed to m4/func.m4.
44778         * doc/gnulib.texi (__func__): Section renamed to func.
44779         Suggested by Eric Blake <ebb9@byu.net>.
44780
44781 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44782
44783         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44784         about __func__.  Make example self-contained.  Suggested by Eric
44785         Blake <ebb9@byu.net>.
44786
44787         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44788         Suggested by Eric Blake <ebb9@byu.net>.
44789
44790 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44791
44792         * modules/__func__: New file.
44793         * modules/__func__-tests: New file.
44794         * tests/test-__func__.c: New file.
44795         * m4/__func__.m4: New file.
44796         * doc/gnulib.texi (__func__): Document __func__ module.
44797
44798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44799
44800         * modules/byteswap (License): Re-license as LGPLv2+.
44801
44802 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44803
44804         * doc/Makefile: Add pdf target.
44805
44806 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44807
44808         * modules/inline (License): Use 'unlimited', since there are only
44809         *.m4 files in this module.
44810
44811 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44812             Bruno Haible  <bruno@clisp.org>
44813
44814         Add support for HP C 7.1 on OpenVMS 8.3.
44815         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44816
44817 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44818
44819         Update VMS specifics.
44820         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44821
44822 2008-03-02  Jim Meyering  <meyering@redhat.com>
44823
44824         Remove the last dependency on the "free" module.
44825         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44826         Reported by Bob Proulx.
44827
44828         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44829
44830         Remove useless "if" tests before free.  Deprecate "free" module.
44831         * doc/posix-functions/free.texi: Mention that this
44832         module is no longer useful.
44833         * modules/free (Notice): Say this module is obsolete.
44834         * modules/readutmp (Depends-on): Remove free.
44835         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44836         * lib/putenv.c (putenv): Likewise.
44837         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44838         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44839         * tests/test-c-strcasestr.c (main): Likewise.
44840         * tests/test-c-strstr.c (main): Likewise.
44841         * tests/test-mbscasestr1.c (main): Likewise.
44842         * tests/test-mbscasestr2.c (main): Likewise.
44843         * tests/test-mbsstr1.c (main): Likewise.
44844         * tests/test-mbsstr2.c (main): Likewise.
44845         * tests/test-memmem.c (main): Likewise.
44846         * tests/test-strcasestr.c (main): Likewise.
44847         * tests/test-striconv.c (main): Likewise.
44848         * tests/test-striconveh.c (main): Likewise.
44849         * tests/test-striconveha.c (main): Likewise.
44850         * tests/test-strstr.c (main): Likewise.
44851
44852         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44853
44854         bootstrap: sync from coreutils again
44855         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44856
44857 2008-03-01  Jim Meyering  <meyering@redhat.com>
44858
44859         bootstrap: sync from coreutils
44860         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44861         also when the target doesn't exist.
44862
44863 2008-03-01  Eric Blake  <ebb9@byu.net>
44864
44865         Fix bugs in last patch.
44866         * lib/memchr2.c (memchr2): Fix typo.
44867         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44868         extension.
44869         Reported by Bruce Korb.
44870
44871         New module 'memchr2'.
44872         * modules/memchr2: New file.
44873         * modules/memchr2-tests: Likewise.
44874         * lib/memchr2.h: Likewise.
44875         * lib/memchr2.c: Likewise, based on memchr.c.
44876         * tests/test-memchr2.c: New test.
44877         * MODULES.html.sh (String handling): Add memchr2.
44878
44879 2008-02-29  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/freadseek-tests: New file.
44882         * tests/test-freadseek.sh: New file.
44883         * tests/test-freadseek.c: New file.
44884
44885         New module 'freadseek'.
44886         * modules/freadseek: New file.
44887         * lib/freadseek.h: New file.
44888         * lib/freadseek.c: New file.
44889         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44890
44891 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44892
44893         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44894         wydawca.
44895
44896         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44897         program_invocation_name and program_invocation_short_name are
44898         present.
44899
44900 2008-02-28  Bruno Haible  <bruno@clisp.org>
44901
44902         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44903         * tests/test-freadptr.sh: Also test non-seekable stdin.
44904
44905 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44906
44907         * build-aux/bootstrap (source_base, m4_base)
44908         (doc_base, tests_base): New variables.
44909         (gnulib_tool_options): Do not hardcode base directories, use
44910         the above variables instead.
44911
44912 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44913
44914         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44915
44916 2008-02-28  Bruno Haible  <bruno@clisp.org>
44917
44918         * modules/freadptr-tests: New file.
44919         * tests/test-freadptr.sh: New file.
44920         * tests/test-freadptr.c: New file.
44921
44922         New module 'freadptr'.
44923         * modules/freadptr: New file.
44924         * lib/freadptr.h: New file.
44925         * lib/freadptr.c: New file.
44926         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44927
44928 2008-02-26  Karl Berry  <karl@freefriends.org>
44929
44930         Sync from Libtool:
44931         * libltdl/argz.c (argz_add, argz_count): New functions.
44932         * libltdl/argz.in.h: Declare them.
44933         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44934
44935 2008-02-22  Bruno Haible  <bruno@clisp.org>
44936
44937         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44938         is a pointer type.  Needed for HP-UX 10.
44939         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44940         * doc/posix-functions/gmtime_r.texi: Likewise.
44941         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44942
44943 2008-02-24  Bruno Haible  <bruno@clisp.org>
44944
44945         * modules/environ-tests: New file.
44946         * tests/test-environ.c: New file.
44947
44948         New module 'environ'.
44949         * modules/environ: New file.
44950         * lib/unistd.in.h (environ): New declaration.
44951         * m4/environ.m4: New file.
44952         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44953         after use.
44954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44955         HAVE_DECL_ENVIRON.
44956         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44957         HAVE_DECL_ENVIRON.
44958         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44959         wrong claim that 'environ' is missing on some systems.
44960         * modules/execute (Depends-on): Add environ.
44961         * lib/execute.c (environ): Remove fallback declaration.
44962         * modules/pipe (Depends-on): Add environ.
44963         * lib/pipe.c (environ): Remove fallback declaration.
44964         * modules/setenv (Depends-on): Add environ.
44965         * lib/setenv.c (environ): Remove fallback declaration.
44966         * modules/unsetenv (Depends-on): Add environ.
44967         * lib/unsetenv.c (environ): Remove fallback declaration.
44968         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44969         m4/environ.m4.
44970         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44971         (gl_PREREQ_UNSETENV): Likewise.
44972
44973 2008-02-24  Bruno Haible  <bruno@clisp.org>
44974
44975         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44976
44977 2008-02-20  Bob Proulx  <bob@proulx.com>
44978
44979         Enable use of older two part flavor 'git describe'.
44980         * build-aux/git-version-gen: If using the older two part flavor of
44981         git version then recreate the third part now present in the
44982         newer three part flavor of git describe.
44983
44984 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44985
44986         * lib/fts.c (fts_build): Typo correction to comment.
44987
44988 2008-02-17  Bruno Haible  <bruno@clisp.org>
44989
44990         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44991         generating no-op conflicts.
44992
44993 2008-02-17  Bruno Haible  <bruno@clisp.org>
44994
44995         Speed up by 10%.
44996         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44997         result_entries, rather than an index-based loop.
44998
44999 2008-02-17  Bruno Haible  <bruno@clisp.org>
45000
45001         Speed up by 25%.
45002         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45003         'hashcode_cached'.
45004         (entry_create): New function.
45005         (entry_hashcode): Use the cached hashcode if possible.
45006         (read_changelog_file, try_split_merged_entry): Use entry_create.
45007
45008 2008-02-17  Bruno Haible  <bruno@clisp.org>
45009
45010         Speed up from O(n^2) to O(n) for long ChangeLog files.
45011         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45012         (read_changelog_file): Change implementation of entries_reversed list
45013         to rbtreehash.
45014         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45015
45016 2008-02-17  Bruno Haible  <bruno@clisp.org>
45017
45018         New option --split-merged-entry.
45019         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45020         (find_paragraph_end, try_split_merged_entry): New functions.
45021         (long_options): Add option --split-merged-entry.
45022         (usage): Document option --split-merged-entry.
45023         (main): Implement option --split-merged-entry.
45024         Reported by Eric Blake.
45025
45026 2008-02-17  Bruno Haible  <bruno@clisp.org>
45027
45028         * lib/git-merge-changelog.c: Include c-strstr.h.
45029         (main): Support the "git pull --rebase" situation.
45030         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45031         Reported by Eric Blake.
45032
45033 2008-02-16  Eric Blake  <ebb9@byu.net>
45034
45035         Avoid doubling \ in common case of "c-maybe" quoting style.
45036         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45037         eliding outer quotes.
45038         * lib/quotearg.h: Document this.
45039         * tests/test-quotearg.c (result_strings, inputs, results_g)
45040         (flag_results, locale_results): Test it by adding a new string to
45041         each test group.
45042         (compare_strings): Test new string.
45043
45044 2008-02-13  Eric Blake  <ebb9@byu.net>
45045
45046         Avoid trigraph quoting in default output.
45047         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45048         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45049         unless explicitly requested.
45050         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45051
45052 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45053
45054         Don't rely on signed integer overflowing to negative value.
45055         * lib/getugroups.c (getugroups): Include <limits.h>.
45056         Instead, compare against INT_MAX, and increment only if the test passes.
45057
45058 2008-02-13  Jim Meyering  <meyering@redhat.com>
45059         and Eric Blake  <ebb9@byu.net>
45060
45061         Avoid shadowing warning and compile errors on Linux.
45062         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45063         forwarding macros on Linux.
45064         (dcgettext): Define a stub, for Linux.
45065         (results_g, main): Avoid warnings.
45066
45067 2008-02-12  Eric Blake  <ebb9@byu.net>
45068
45069         Silence warning in last patch.
45070         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45071
45072         Quotearg part 4: add tests, fix c-maybe colon quoting.
45073         * lib/quotearg.h: Improve documentation.
45074         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45075         escapes when adding outer quotes.  When quoting trigraphs, use
45076         valid C notation.  When quoting NUL, omit extra characters if next
45077         character is not digit.  Alter prototype.
45078         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45079         callers.
45080         * modules/quotearg-tests: New module.
45081         * tests/test-quotearg.c: New test.
45082
45083 2008-02-07  Eric Blake  <ebb9@byu.net>
45084
45085         Quotearg part 3: add flag to control outer quote elision.
45086         * lib/quotearg.h (c_maybe_quoting_style): New style.
45087         (enum quoting_flags): Better documentation of flags.
45088         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45089         c-maybe style.
45090         (quotearg_buffer_restyled): Handle new flag to elide outer
45091         quotes.
45092
45093         Quotearg part 2: add flag that can control NUL elision.
45094         * lib/quotearg.h (set_quoting_flags): New prototype.
45095         * lib/quotearg.c (struct quoting_options): Add flag field.
45096         (set_quoting_flags): New function.
45097         (quotearg_buffer_restyled): Add flags parameter.
45098         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45099         (quotearg_n_options): Set the flag, since length cannot be
45100         returned.
45101         (quoting_options_from_style): Default flags correctly.
45102
45103         Quotearg part 1: more wrappers, restore quotearg_char state.
45104         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45105         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45106         (quotearg_colon_mem): New wrappers.
45107         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45108         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45109         functions.
45110         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45111         (quotearg_colon_mem): New functions.
45112
45113 2008-02-11  Bruno Haible  <bruno@clisp.org>
45114
45115         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45116         library in the current directory: it does not work with parallel make.
45117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45118
45119 2008-02-11  Bruno Haible  <bruno@clisp.org>
45120
45121         * .gitattributes: New file.
45122
45123 2008-02-11  Jim Meyering  <meyering@redhat.com>
45124
45125         useless-if-before-free: Fix reversed exit values.
45126         * build-aux/useless-if-before-free: Use correct values
45127         for EXIT_MATCH and EXIT_NO_MATCH.
45128
45129         * build-aux/useless-if-before-free: Close stdout carefully.
45130
45131 2008-02-10  Bruno Haible  <bruno@clisp.org>
45132
45133         New module 'git-merge-changelog'.
45134         * modules/git-merge-changelog: New file.
45135         * lib/git-merge-changelog.c: New file.
45136
45137 2008-02-10  Jim Meyering  <meyering@redhat.com>
45138
45139         useless-if-before-free: New option: --list (-l).
45140
45141         useless-if-before-free: Don't exit immediately upon open failure.
45142         * build-aux/useless-if-before-free: Exit 2 for errors.
45143         Upon failure to open a file, don't exit immediately.
45144         Rather, just warn and continue with any remaining files.
45145
45146 2008-02-10  Bruno Haible  <bruno@clisp.org>
45147
45148         New abstract list operation 'node_set_value'.
45149         * lib/gl_list.h (gl_list_node_set_value): New function.
45150         (struct gl_list_implementation): New field node_set_value.
45151         * lib/gl_list.c (gl_list_node_set_value): New function.
45152         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45153         (gl_array_list_implementation): Update.
45154         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45155         (gl_carray_list_implementation): Update.
45156         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45157         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45158         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45159         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45160         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45161         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45162         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45163         Update.
45164         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45165         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45166         (gl_sublist_list_implementation): Update.
45167
45168 2008-02-10  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45171         Needed when ELEMENT is #defined to 'some_type *'.
45172
45173 2008-02-10  Jim Meyering  <meyering@redhat.com>
45174
45175         New script and module: useless-if-before-free
45176         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45177         * build-aux/useless-if-before-free: New file.
45178         * modules/useless-if-before-free: New file.
45179
45180         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45181
45182         xstrtol_error: Fix typo.
45183         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45184         s/exit_failure/exit_status/.
45185
45186 2008-02-09  Jim Meyering  <meyering@redhat.com>
45187
45188         New script and module: gitlog-to-changelog
45189         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45190         * modules/gitlog-to-changelog: New file.
45191         * build-aux/gitlog-to-changelog: New file.
45192
45193 2008-02-08  Jim Meyering  <meyering@redhat.com>
45194
45195         Avoid two "parameter unused" warnings.
45196         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45197         Mark "st" as used.
45198
45199         Use "git COMMAND", not "git-COMMAND".
45200         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45201         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45202         * build-aux/git-version-gen: Use "git status", not "git-status".
45203
45204 2008-02-07  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45207         Avoids a crash on Windows Vista.
45208         Reported by Adam Strzelecki <ono@java.pl> via
45209         Simon Josefsson <simon@josefsson.org>.
45210
45211 2008-02-06  Bruno Haible  <bruno@clisp.org>
45212
45213         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45214         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45215         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45217         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45219         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45220         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45228         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45229         left-adjust flag.
45230         * tests/test-snprintf-posix.h (test_function): Likewise.
45231         * tests/test-sprintf-posix.h (test_function): Likewise.
45232         * tests/test-vasprintf-posix.c (test_function): Likewise.
45233         * doc/posix-functions/fprintf.texi: Update.
45234         * doc/posix-functions/printf.texi: Update.
45235         * doc/posix-functions/snprintf.texi: Update.
45236         * doc/posix-functions/sprintf.texi: Update.
45237         * doc/posix-functions/vfprintf.texi: Update.
45238         * doc/posix-functions/vprintf.texi: Update.
45239         * doc/posix-functions/vsnprintf.texi: Update.
45240         * doc/posix-functions/vsprintf.texi: Update.
45241         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45242
45243 2008-02-06  Bruno Haible  <bruno@clisp.org>
45244
45245         Fix bug introduced on 2008-01-26.
45246         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45247
45248 2008-02-06  Bruno Haible  <bruno@clisp.org>
45249
45250         Fix bug introduced on 2007-06-10.
45251         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45252         !NEED_PRINTF_FLAG_ZERO.
45253
45254 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45255
45256         getloadavg: use libperfstat on AIX5
45257         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45258
45259 2008-02-03  Bruno Haible  <bruno@clisp.org>
45260
45261         * lib/diffseq.h: Add comments about required #includes.
45262         Reported by Michael Biggs <gnulib@doubleplum.net>.
45263
45264 2008-02-01  Bruno Haible  <bruno@clisp.org>
45265
45266         * users.txt: Add gnuit.
45267
45268 2008-01-31  Bruno Haible  <bruno@clisp.org>
45269
45270         * lib/md4.c (set_uint32): Mark as inline.
45271         * lib/md5.c (set_uint32): Likewise.
45272         * lib/sha1.c (set_uint32): Likewise.
45273         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45274         * m4/md5.m4 (gl_MD5): Likewise.
45275         * m4/sha1.m4 (gl_SHA1): Likewise.
45276
45277 2008-01-31  Jim Meyering  <meyering@redhat.com>
45278
45279         Use "sizeof VAR", rather than a literal "4".
45280         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45281         * lib/md4.c (md4_read_ctx): Likewise.
45282         * lib/sha1.c (sha1_read_ctx): Likewise.
45283
45284 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45285
45286         * tests/test-sha1.c: New file, based on test-md5.c.
45287
45288         * modules/crypto/sha1-tests: New file.
45289
45290 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45291
45292         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45293
45294 2008-01-31  Jim Meyering  <meyering@redhat.com>
45295
45296         Prefer "sizeof v" over the equivalent "4".
45297         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45298         * lib/md5.c (set_uint32): Likewise.
45299         * lib/sha1.c (set_uint32): Likewise.
45300
45301 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45302
45303         * lib/sha1.c (set_uint32): Mark function as static.
45304
45305 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45306
45307         md2: clarify comments to say that alignment is not required.
45308         * lib/md2.h: Remove warning about alignment in comment.
45309         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45310         never been required.
45311
45312 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45313
45314         md4: adapt alignment constraint fix from sha1.
45315         * lib/md4.c (set_uint32): New function, from sha1.c
45316         (md4_read_ctx): Use it.
45317         (md4_finish_ctx): Doc fix.
45318         * lib/md4.h: Doc fix.
45319
45320 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45321
45322         md5: adapt alignment constraint fix from sha1.
45323         * lib/md5.c (set_uint32): New function, from sha1.c
45324         (md5_read_ctx): Use it.
45325         (md5_finish_ctx): Doc fix.
45326         * lib/md5.h: Doc fix.
45327
45328 2008-01-30  Peter Palfrader  <weasel@debian.org>
45329
45330         sha1: remove the result buffer alignment constraint
45331         * lib/sha1.c (set_uint32): New function.
45332         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45333         constraint.
45334         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45335         * lib/sha1.h: Likewise.
45336
45337 2008-01-30  Andreas Schwab  <schwab@suse.de>
45338             Bruno Haible  <bruno@clisp.org>
45339
45340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45341         correct definition of LDBL_MIN_EXP.
45342
45343 2008-01-30  Karl Berry  <karl@gnu.org>
45344
45345         * config/srclist-update: try to preserve x bit on updates.
45346         * config/srclistvars.sh: update for karl.
45347
45348 2008-01-29  Jim Meyering  <meyering@redhat.com>
45349
45350         vasnprintf.c: Avoid warning about unused label
45351         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45352         "overflow" label definition and associated code with the
45353         same cpp condition that guards the sole use of that label.
45354
45355 2008-01-26  Bruno Haible  <bruno@clisp.org>
45356
45357         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45358         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45359         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45360         * lib/isnanl-nolibm.h (isnanl): Likewise.
45361         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45362
45363 2008-01-26  Bruno Haible  <bruno@clisp.org>
45364
45365         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45366         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45367
45368 2008-01-26  Bruno Haible  <bruno@clisp.org>
45369
45370         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45371         GCC >= 4.0 built-in.
45372         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45373
45374 2008-01-26  Bruno Haible  <bruno@clisp.org>
45375
45376         Rename isnan, applicable to 'double' only, to isnand.
45377         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45378         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45379         (configure.ac): Update.
45380         (Include): Replace "isnan.h" with "isnand.h".
45381         * m4/isnand.m4: Renamed from m4/isnan.m4.
45382         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45383         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45384         instead of isnan.c.
45385         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45386         instead of HAVE_ISNAN_IN_LIBC.
45387         (isnand): Renamed from isnan.
45388         * lib/isnand.c: New file.
45389         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45390         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45391         (Makefile.am): Update.
45392         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45393         Include isnand.h instead of isnan.h.
45394         (main): Test isnand instead of isnan.
45395         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45396         isnan-nolibm.
45397         * modules/frexp (Depends-on): Likewise.
45398         * modules/frexp-tests (Depends-on): Likewise.
45399         * modules/frexp-nolibm (Depends-on): Likewise.
45400         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45401         * modules/isfinite (Depends-on): Likewise.
45402         * modules/round-tests (Depends-on): Likewise.
45403         * modules/signbit (Depends-on): Likewise.
45404         * modules/signbit-tests (Depends-on): Likewise.
45405         * modules/snprintf-posix (Depends-on): Likewise.
45406         * modules/sprintf-posix (Depends-on): Likewise.
45407         * modules/trunc-tests (Depends-on): Likewise.
45408         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45409         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45410         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45411         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45412         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45413         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45414         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45415         * modules/vasnprintf-posix (Depends-on): Likewise.
45416         * modules/vasprintf-posix (Depends-on): Likewise.
45417         * modules/vfprintf-posix (Depends-on): Likewise.
45418         * modules/vsnprintf-posix (Depends-on): Likewise.
45419         * modules/vsprintf-posix (Depends-on): Likewise.
45420         * lib/frexp.c: Include isnand.h instead of isnan.h.
45421         (ISNAN): Set to isnand instead of isnan.
45422         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45423         (gl_isfinited): Use isnand instead of isnan.
45424         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45425         (gl_signbitd): Use isnand instead of isnan.
45426         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45427         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45428         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45429         (main): Use isnand instead of isnan.
45430         * tests/test-round1.c: Include isnand.h.
45431         (main): Use isnand instead of isnan.
45432         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45433         (ISNAN): Set to isnand instead of isnan.
45434         * tests/test-trunc1.c: Include isnand.h.
45435         (main): Use isnand instead of isnan.
45436         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45437         (equal): Use isnand instead of isnan.
45438         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45439         isnand-nolibm.
45440         * NEWS: Mention the change.
45441
45442 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45443             Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45446         the GCC builtins for signbits are present and set
45447         REPLACE_SIGNBIT_USING_GCC if so.
45448         * lib/math.in.h (signbit): Define using GCC builtins if
45449         REPLACE_SIGNBIT_USING_GCC is set.
45450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45451         REPLACE_SIGNBIT_USING_GCC.
45452         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45453
45454 2008-01-25  Jim Meyering  <meyering@redhat.com>
45455
45456         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45457         * lib/poll.c: Include <config.h>, not "config.h".
45458         * tests/test-getaddrinfo.c: Likewise.
45459
45460 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45461
45462         * modules/sockets-tests: New file.
45463
45464 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45465
45466         * modules/sockets: New module, can be used to call WSA_Startup and
45467         WSA_Cleanup when needed.
45468
45469         * lib/sockets.h, lib/sockets.c: New files.
45470
45471         * m4/sockets.m4: New file.
45472
45473         * tests/test-sockets.c: New file.
45474
45475 2008-01-19  Bruno Haible  <bruno@clisp.org>
45476
45477         * doc/posix-headers: Renamed from doc/headers.
45478         * doc/posix-functions: Renamed from doc/functions.
45479         * doc/gnulib.texi: Update.
45480
45481 2008-01-19  Bruno Haible  <bruno@clisp.org>
45482
45483         * doc/glibc-functions/strcasestr.texi: Include contents of
45484         doc/functions/strcasestr.texi, fixing the list of platforms.
45485         * doc/functions/strcasestr.texi: Remove file.
45486
45487 2008-01-19  Bruno Haible  <bruno@clisp.org>
45488
45489         * doc/glibc-functions/memmem.texi: Include contents of
45490         doc/functions/memmem.texi.
45491         * doc/functions/memmem.texi: Remove file.
45492
45493 2008-01-18  Bruno Haible  <bruno@clisp.org>
45494
45495         * doc/glibc-functions/*.texi: New files.
45496         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45497         to use the new files.
45498
45499 2008-01-17  Bruno Haible  <bruno@clisp.org>
45500
45501         * tests/test-gethostname.c (main): Fix printf statement.
45502
45503 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45504
45505         * modules/gethostname-tests: New file.
45506
45507         * tests/test-gethostname.c: New file.
45508
45509 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45510
45511         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45512         used by the UNAME case.  Reported by Bruno Haible
45513         <bruno@clisp.org>.
45514
45515 2008-01-17  Eric Blake  <ebb9@byu.net>
45516
45517         Convert c-strcasestr to be more efficient.
45518         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45519         (Depends-on): Add c-strcase, remove malloca, strnlen.
45520         * tests/test-c-strcasestr.c (main): Enhance test.
45521         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45522
45523 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45524
45525         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45526         Use it in creating po/Makevars.
45527
45528 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45529
45530         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45531         Applications that requires it should initialize libgcrypt
45532         manually.
45533
45534 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45535
45536         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45537
45538 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45539
45540         Fix problem with getdate on mingw32 reported by Simon Josefsson
45541         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45542         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45543         tzname", when deciding whether to declare tzname.
45544         * lib/strftime.c (tzname): Likewise.
45545
45546 2008-01-15  Bruno Haible  <bruno@clisp.org>
45547
45548         Work around a MacOS X 10.5 bug in frexpl().
45549         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45550         * doc/functions/frexpl.texi: Document the bug.
45551         Reported by Elias Pipping <pipping@gentoo.org>.
45552
45553 2008-01-14  Eric Blake  <ebb9@byu.net>
45554
45555         Touch up previous patch.
45556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45557         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45558
45559         Convert strcasestr module to use Two-Way algorithm.
45560         * modules/strcasestr-simple: New module, based on the old
45561         strcasestr, but with Two-Way rather than KMP.
45562         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45563         * lib/string.in.h (rpl_strcasestr): Declare.
45564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45565         performance.
45566         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45567         * modules/string (Makefile.am): Support strcasestr.
45568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45569         * modules/strcasestr-tests (Depends-on): Check for alarm.
45570         * tests/test-strcasestr.c: Augment test.
45571         * lib/str-two-way.h: Clean up stray macro.
45572         * NEWS: Document new module.
45573         * MODULES.html.sh (string handling): Likewise.
45574         * doc/functions/strcasestr.texi: New file.
45575         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45576         here, since it is not a POSIX function.
45577
45578 2008-01-14  Colin Watson  <cjwatson@debian.org>
45579             Bruno Haible  <bruno@clisp.org>
45580
45581         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45582         works fine; if not, set REPLACE_STRSIGNAL.
45583         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45585         REPLACE_STRSIGNAL.
45586         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45587         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45588         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45589
45590 2008-01-14  Bruno Haible  <bruno@clisp.org>
45591
45592         * modules/strsignal (Include): Change to <string.h>.
45593
45594 2008-01-14  Colin Watson  <cjwatson@debian.org>
45595
45596         * modules/argp (Notice): Add a notice recommending to change
45597         XGETTEXT_OPTIONS.
45598         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45599
45600 2008-01-13  Colin Watson  <cjwatson@debian.org>
45601
45602         * modules/strsignal-tests: New file.
45603         * tests/test-strsignal.c: New file.
45604
45605         * lib/strsignal.c: New file, from glibc with modifications.
45606         * lib/siglist.h: New file, from glibc with modifications.
45607         * lib/string.in.h (strsignal): New declaration.
45608         * m4/strsignal.m4: New file.
45609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45610         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45611         * modules/strsignal: New file.
45612         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45613         HAVE_DECL_STRSIGNAL.
45614
45615 2008-01-13  Bruno Haible  <bruno@clisp.org>
45616
45617         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45618         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45619         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45620         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45621
45622 2008-01-13  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45625         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45626         * lib/argp.h (__attribute__): Likewise.
45627         * lib/c-stack.c (__attribute__): Likewise.
45628         * lib/error.h (__attribute__): Likewise.
45629         * lib/fts.c (__attribute__): Likewise.
45630         * lib/openat.h (__attribute__): Likewise.
45631         * lib/stdio.in.h (__attribute__): Likewise.
45632         * lib/string.in.h (__attribute__): Likewise.
45633         * lib/utimens.c (__attribute__): Likewise.
45634         * lib/vasnprintf.h (__attribute__): Likewise.
45635         * lib/xalloc.h (__attribute__): Likewise.
45636         * lib/xprintf.h (__attribute__): Likewise.
45637         * lib/xstrtol.h (__attribute__): Likewise.
45638         * lib/xvasprintf.h (__attribute__): Likewise.
45639
45640 2008-01-12  Bruno Haible  <bruno@clisp.org>
45641
45642         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45643         * doc/glibc-headers/a.out.texi: New file.
45644         * doc/glibc-headers/aliases.texi: New file.
45645         * doc/glibc-headers/alloca.texi: New file.
45646         * doc/glibc-headers/ar.texi: New file.
45647         * doc/glibc-headers/argp.texi: New file.
45648         * doc/glibc-headers/argz.texi: New file.
45649         * doc/glibc-headers/byteswap.texi: New file.
45650         * doc/glibc-headers/crypt.texi: New file.
45651         * doc/glibc-headers/endian.texi: New file.
45652         * doc/glibc-headers/envz.texi: New file.
45653         * doc/glibc-headers/err.texi: New file.
45654         * doc/glibc-headers/error.texi: New file.
45655         * doc/glibc-headers/execinfo.texi: New file.
45656         * doc/glibc-headers/fpu_control.texi: New file.
45657         * doc/glibc-headers/fstab.texi: New file.
45658         * doc/glibc-headers/fts.texi: New file.
45659         * doc/glibc-headers/getopt.texi: New file.
45660         * doc/glibc-headers/ieee754.texi: New file.
45661         * doc/glibc-headers/ifaddrs.texi: New file.
45662         * doc/glibc-headers/libintl.texi: New file.
45663         * doc/glibc-headers/mcheck.texi: New file.
45664         * doc/glibc-headers/mntent.texi: New file.
45665         * doc/glibc-headers/obstack.texi: New file.
45666         * doc/glibc-headers/paths.texi: New file.
45667         * doc/glibc-headers/printf.texi: New file.
45668         * doc/glibc-headers/pty.texi: New file.
45669         * doc/glibc-headers/resolv.texi: New file.
45670         * doc/glibc-headers/shadow.texi: New file.
45671         * doc/glibc-headers/sysexits.texi: New file.
45672         * doc/glibc-headers/ttyent.texi: New file.
45673
45674 2008-01-12  Jim Meyering  <meyering@redhat.com>
45675
45676         announce-gen: emit Gnulib's git-based version string.
45677         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45678         New option --gnulib-version=V, where V is expected to be
45679         the output of running git describe in the gnulib directory.
45680         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45681         not useful, and plan to stop publishing an xdelta file with each
45682         coreutils release.
45683
45684         * build-aux/announce-gen: Also check for lzma-compressed files.
45685
45686 2008-01-11  Bruno Haible  <bruno@clisp.org>
45687
45688         * tests/test-memmem.c (main): Increase maximum allowed time.
45689         * tests/test-strstr.c (main): Likewise.
45690
45691 2008-01-11  Bruno Haible  <bruno@clisp.org>
45692
45693         * doc/functions/memmem.texi: Add more precisions about platforms.
45694         * doc/functions/strstr.texi: Likewise.
45695
45696 2008-01-10  Eric Blake  <ebb9@byu.net>
45697
45698         * m4/strstr.m4: Delete cruft from copy-n-paste.
45699         Reported by Bruno Haible.
45700
45701 2008-01-10  Bruno Haible  <bruno@clisp.org>
45702
45703         Make c-strstr rely on strstr.
45704         * lib/c-strstr.c: Don't include str-kmp.h.
45705         (c_strstr): Define in terms of strstr.
45706         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45707         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45708
45709 2008-01-10  Bruno Haible  <bruno@clisp.org>
45710
45711         * doc/gnulib.texi (String Functions in C Locale): New section.
45712         * doc/c-ctype.texi: New file.
45713         * doc/c-strcase.texi: New file.
45714         * doc/c-strcaseeq.texi: New file.
45715         * doc/c-strcasestr.texi: New file.
45716         * doc/c-strstr.texi: New file.
45717         * doc/c-strtod.texi: New file.
45718         * doc/c-strtold.texi: New file.
45719
45720 2008-01-10  Eric Blake  <ebb9@byu.net>
45721
45722         * lib/relocatable.h: Fix a comment.
45723
45724 2008-01-10  Eric Blake  <ebb9@byu.net>
45725
45726         Share two-way algorithm.
45727         * lib/str-two-way.h: New file, merged from...
45728         * lib/memmem.c: ...here...
45729         * lib/strstr.c: ...and here.
45730         * modules/memmem (Files): Use it.
45731         * modules/strstr (Files): Likewise.
45732
45733         Avoid quadratic strstr implementations.
45734         * lib/strstr.c: New file.
45735         * m4/strstr.m4: Likewise.
45736         * modules/strstr: Likewise.
45737         * modules/strstr-tests: Likewise.
45738         * tests/test-strstr.c: Likewise.
45739         * lib/string.in.h (rpl_strstr): Declare.
45740         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45742         * modules/string (Makefile.am): Likewise.
45743         * MODULES.html.sh (string handling): Mention new module.
45744         * doc/functions/strstr.texi (strstr): Document the bug.
45745
45746 2008-01-10  Bruno Haible  <bruno@clisp.org>
45747
45748         * lib/relocatable.h (relocate): State whether result is freshly
45749         allocated or not.
45750         * lib/relocatable.c (relocate): Return a freshly allocated string
45751         instead of a pointer to a privately held string.
45752         Reported by Sylvain Beucler <beuc@gnu.org>.
45753
45754 2008-01-10  Colin Watson  <cjwatson@debian.org>
45755
45756         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45757         s/S_ISNLK/S_ISLNK/.
45758
45759 2008-01-09  Bruno Haible  <bruno@clisp.org>
45760
45761         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45762         and other files.
45763         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45764         if it's only a guess.
45765         * modules/memmem: Simplify by depending on memmem-simple.
45766
45767 2008-01-09  Bruno Haible  <bruno@clisp.org>
45768
45769         Work around OpenBSD 4.0 tdelete() bug.
45770         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45771         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45772         macros and don't redefine the enum values.
45773         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45774         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45775         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45776
45777 2008-01-09  Bruno Haible  <bruno@clisp.org>
45778
45779         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45780         (main): Don't perform the tests if setlocale did not install a UTF-8
45781         locale. Needed on OpenBSD 4.0.
45782         * modules/wcwidth-tests (Depends-on): Add localcharset.
45783
45784 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45785
45786         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45787         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45788         * NEWS: announce this.
45789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45790
45791 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45792         and Eric Blake  <ebb9@byu.net>
45793
45794         Add memmem-simple module.
45795         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45796         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45797         * modules/memmem-simple: New file.
45798         * modules/memmem (Description): Tweak.
45799         * MODULES.html.sh (string handling): Mention new module.
45800         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45801         addressed by memmem-simple.
45802         * NEWS: Document the difference.
45803
45804 2008-01-09  Eric Blake  <ebb9@byu.net>
45805
45806         Give gcc some memmem optimization hints.
45807         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45808         (strcasestr): Declare as pure.
45809         * modules/memmem (Maintainer): Claim my implementation.
45810
45811 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45812
45813         Support AIX 6.1 and higher.
45814         * build-aux/config.libpath: Likewise.
45815         * build-aux/config.rpath: Likewise.
45816
45817 2008-01-08  Jim Meyering  <meyering@redhat.com>
45818             Bruno Haible  <bruno@clisp.org>
45819
45820         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45821         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45822         Reported by Peter Fales in
45823         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45824
45825 2008-01-08  Bruno Haible  <bruno@clisp.org>
45826
45827         * modules/unictype/category-of (Depends-on): Add
45828         unictype/category-none.
45829         * modules/unictype/category-and-tests (Depends-on): Add
45830         unictype/category-{L,N,Lu,Nd}.
45831         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45832         * modules/unictype/category-or-tests (Depends-on): Add
45833         unictype/category-{L,N}.
45834         * modules/unictype/category-name-tests (Depends-on): Add
45835         unictype/category-{Z,Nl}.
45836         Reported by Simon Josefsson.
45837
45838 2008-01-08  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45841         convention better.
45842         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45843         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45844         Reported by Peter Miller <millerp@canb.auug.org.au>.
45845
45846 2008-01-08  Eric Blake  <ebb9@byu.net>
45847
45848         Rewrite memmem to guarantee linear complexity without malloc.
45849         * lib/memmem.c (memmem): Use Two-Way rather than
45850         Knuth-Morris-Pratt, to allow O(1) space usage.
45851         (critical_factorization, two_way_short_needle)
45852         (two_way_long_needle): New functions.
45853         (knuth_morris_pratt): Delete.
45854         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45855         Add stdint.
45856         * tests/test-memmem.c (main): Add tests for periodic needle and
45857         sublinear performance.
45858         * doc/functions/memmem.texi (memmem): Document other deficiencies
45859         in cygwin and older glibc.
45860
45861 2008-01-08  Bruno Haible  <bruno@clisp.org>
45862
45863         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45864         augmentation.
45865
45866 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45867
45868         Add a configure time option: --disable-acl.
45869         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45870         AC_ARG_ENABLE(acl).
45871
45872 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45873
45874         * tests/test-localename.c: Don't include obsolete "setenv.h".
45875
45876         * modules/localename-tests (Depends-on): Need unsetenv.
45877
45878 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45879
45880         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45881
45882 2008-01-06  Colin Watson  <cjwatson@debian.org>
45883
45884         * users.txt: Add man-db.
45885
45886 2008-01-07  Bruno Haible  <bruno@clisp.org>
45887
45888         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45889         previous section name.
45890
45891 2008-01-07  Bruno Haible  <bruno@clisp.org>
45892
45893         * lib/progname.c (set_program_name): Don't strip off a leading
45894         "lt-" prefix outside a .libs directory.
45895         Suggested by Paul Eggert.
45896
45897 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45898             Bruno Haible  <bruno@clisp.org>
45899
45900         Improve memory cleanup in 'relocatable' module.
45901         * lib/relocatable.h (compute_curr_prefix): Change return type to
45902         'char *'.
45903         * lib/relocatable.c (compute_curr_prefix): Change return type to
45904         'char *'. Free curr_installdir after use.
45905         (relocate): Free curr_prefix_better after use.
45906         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45907
45908 2008-01-01  Bruno Haible  <bruno@clisp.org>
45909
45910         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45911         failure on older glibc systems.
45912         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45913
45914 2008-01-05  Eric Blake  <ebb9@byu.net>
45915
45916         Avoid quadratic system memmem.
45917         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45918         Reported by Ralf Wildenhues.
45919
45920         Fix memmem test for mingw.
45921         * modules/memmem-tests (configure.ac): Check for alarm.
45922         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45923         it.
45924         * doc/functions/memmem.texi: New file.
45925         * doc/gnulib.texi (Function Substitutes): Add memmem.
45926         Reported by Bruno Haible.
45927
45928 2008-01-04  Bruno Haible  <bruno@clisp.org>
45929
45930         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45931         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45932         gl_HEADER_STRING_H_DEFAULTS.
45933
45934 2008-01-04  Eric Blake  <ebb9@byu.net>
45935
45936         Shorten duration of memmem test.
45937         * tests/test-memmem.c (main): Use alarm to declare failure if test
45938         is taking too long.
45939         Reported by Ralf Wildenhues.
45940
45941 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45942
45943         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45944         string, needed by strerror.
45945
45946 2008-01-03  Colin Watson  <cjwatson@debian.org>
45947             Bruno Haible  <bruno@clisp.org>
45948
45949         * doc/gnulib-tool.texi (Localization): New section.
45950
45951 2008-01-02  Bruno Haible  <bruno@clisp.org>
45952
45953         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45954         variables to 'unsigned char *' type.
45955         Reported by Paul Eggert.
45956
45957 2008-01-02  Jim Meyering  <jim@meyering.net>
45958
45959         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45960
45961 2007-12-31  Jim Meyering  <jim@meyering.net>
45962
45963         Avoid use of private FTS type name.
45964         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45965
45966 2007-12-30  Karl Berry  <karl@gnu.org>
45967
45968         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45969         work around defect in Texinfo and/or the standalone Info browser.
45970
45971 2007-12-30  Bruno Haible  <bruno@clisp.org>
45972
45973         Unify 5 copies of the KMP code.
45974         * lib/str-kmp.h: New file.
45975         * lib/c-strcasestr.c: Include str-kmp.h.
45976         (knuth_morris_pratt): Remove function.
45977         (c_strcasestr): Update.
45978         * lib/c-strstr.c: Include str-kmp.h.
45979         (knuth_morris_pratt): Remove function.
45980         (c_strcasestr): Update.
45981         * lib/mbscasestr.c: Include str-kmp.h.
45982         (knuth_morris_pratt_unibyte): Remove function.
45983         * lib/mbsstr.c: Include str-kmp.h.
45984         (knuth_morris_pratt_unibyte): Remove function.
45985         * lib/strcasestr.c: Include str-kmp.h.
45986         (knuth_morris_pratt): Remove function.
45987         (strcasestr): Update.
45988         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45989         * modules/c-strstr (Files): Likewise.
45990         * modules/mbscasestr (Files): Likewise.
45991         * modules/mbsstr (Files): Likewise.
45992         * modules/strcasestr (Files): Likewise.
45993         Suggested by Paul Eggert.
45994
45995 2007-12-30  Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45998         defined.
45999
46000 2007-12-30  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/xmalloca.h: Include xalloc.h.
46003         (xnmalloca): New macro.
46004
46005 2007-12-30  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/malloca.h (nmalloca): New macro.
46008         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46009         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46010         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46011         knuth_morris_pratt_multibyte): Likewise.
46012         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46013         knuth_morris_pratt_multibyte): Likewise.
46014         * lib/memmem.c (knuth_morris_pratt): Likewise.
46015         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46016
46017 2007-12-25  Bruno Haible  <bruno@clisp.org>
46018
46019         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46020         * lib/glob.c: Don't include openat.h.
46021         (link_exists2_p): Add back the code that deals with the
46022         !GLOB_ALTDIRFUNC case.
46023         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46024         let it do the filename concatenation.
46025         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46026         * modules/glob (Depends-on): Remove openat.
46027
46028 2007-12-31  Bruno Haible  <bruno@clisp.org>
46029
46030         * modules/dirfd (License): Change to LGPLv2+.
46031         Approved by Jim Meyering.
46032
46033 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46034
46035         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46036         when multiplying M by sizeof (size_t).
46037
46038 2007-12-10  Martin Lambers  <marlam@marlam.de>
46039
46040         Override getpagesize on mingw.
46041         * lib/getpagesize.c: New file.
46042         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46043         * modules/getpagesize (Files): Add lib/getpagesize.c.
46044         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46046         REPLACE_GETPAGESIZE.
46047         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46048
46049 2007-12-25  Bruno Haible  <bruno@clisp.org>
46050
46051         * modules/localcharset (Notice): New field.
46052         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46053         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46054
46055 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46056             Bruno Haible  <bruno@clisp.org>
46057
46058         Avoid using the syntax symbol() in formatted documentation.
46059         * MODULES.html.sh (func_module): When replacing symbol() with a
46060         hyperlink, remove the parentheses. Show an error if some remain.
46061         Recognize and render the '...' syntax.
46062         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46063         Rework. Add paragraph about GCC's inlining.
46064         * doc/alloca.texi: Likewise.
46065         * doc/error.texi: Remove parentheses from symbol reference.
46066         * doc/gnulib-intro.texi: Likewise.
46067         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46068         * modules/fnmatch (Description): Reword to say "the ... function".
46069         * modules/full-read (Description): Likewise.
46070         * modules/full-write (Description): Likewise.
46071         * modules/safe-read (Description): Likewise.
46072         * modules/safe-write (Description): Likewise.
46073         * modules/strchrnul (Description): Likewise.
46074         * modules/trim (Description): Likewise.
46075         * modules/error (Description): Remove parentheses from symbol
46076         references.
46077         * modules/verror (Description): Likewise.
46078         Reported by Karl Berry.
46079
46080 2007-12-25  Bruno Haible  <bruno@clisp.org>
46081
46082         Fixup after 2007-10-16 commit.
46083         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46084
46085 2007-12-24  Bruno Haible  <bruno@clisp.org>
46086
46087         Make --enable-relocatable work with DESTDIR.
46088         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46089         to compute installdir from destprog.
46090         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46091         also set the RELOC_DESTDIR variable.
46092         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46093
46094 2007-12-24  Bruno Haible  <bruno@clisp.org>
46095
46096         Fix link error due to xalloc_die().
46097         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46098         of xreadlink.
46099         * lib/relocwrapper.c: Update comments.
46100         * build-aux/install-reloc: Remove xreadlink.c from file list.
46101         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46102         xreadlink.c.
46103         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46104
46105 2007-12-24  Bruno Haible  <bruno@clisp.org>
46106
46107         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46108         * lib/setenv.h: Remove file.
46109         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46110         lib/setenv.h.
46111         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46112         (Depends-on): Add stdlib.
46113         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46114         gl_FUNC_UNSETENV.
46115         (Include): Replace setenv.h with <stdlib.h>.
46116         * modules/unsetenv: New file.
46117         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46118         * lib/unsetenv.c: Include <stdlib.h> first.
46119         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46120         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46121         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46122         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46123         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46124         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46126         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46127         * doc/functions/unsetenv.texi: Update.
46128         * modules/xsetenv (Depends-on): Add unsetenv.
46129         * modules/getdate (Depends-on): Likewise.
46130         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46131         * lib/xsetenv.c: Don't include setenv.h.
46132         * lib/getdate.y: Likewise.
46133         * lib/relocwrapper.c: Likewise.
46134         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46135         (Depends-on): Add stdlib.
46136         * NEWS: Mention the changes.
46137         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46138
46139 2007-12-23  Bruno Haible  <bruno@clisp.org>
46140
46141         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46142         indentation.
46143
46144 2007-12-23  Bruno Haible  <bruno@clisp.org>
46145
46146         * lib/c-strcasestr.c: Add more comments.
46147         * lib/c-strstr.c: Likewise.
46148         * lib/mbscasestr.c: Likewise.
46149         * lib/mbsstr.c: Likewise.
46150         * lib/strcasestr.c: Likewise.
46151         * lib/memmem.c: Likewise.
46152
46153 2007-12-23  Bruno Haible  <bruno@clisp.org>
46154
46155         * tests/test-memmem.c: Include <string.h> first.
46156
46157 2007-12-22  Bruno Haible  <bruno@clisp.org>
46158
46159         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46160         the contents of $testsbase.
46161         Reported by Ralf Wildenhues.
46162
46163 2007-12-22  Bruno Haible  <bruno@clisp.org>
46164
46165         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46166         two variables local_ldadd_before, local_ldadd_last.
46167
46168 2007-12-20  Eric Blake  <ebb9@byu.net>
46169
46170         Work around circular library issue when cross-compiling.
46171         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46172         that progname.o does not need to pull in rpl_memcmp.
46173
46174 2007-12-19  Eric Blake  <ebb9@byu.net>
46175
46176         Fix memmem to avoid O(n^2) worst-case complexity.
46177         * lib/memmem.c (knuth_morris_pratt): New function.
46178         (memmem): Use it if first few naive iterations fail.
46179         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46180         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46181         * modules/memchr (License): Likewise.
46182         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46183         malloca.
46184         * tests/test-memmem.c: Rewrite, borrowing ideas from
46185         test-mbsstr1.c; the old version wouldn't even compile!
46186         * modules/memmem-tests: New file.
46187         * lib/string.in.h (rpl_memmem): Add declaration.
46188         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46190         REPLACE_MEMMEM.
46191
46192 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46193
46194         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46195         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46196         before any system include files, and undef after them all.  This
46197         should fix a problem on VMS reported by John E. Malmberg in
46198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46199
46200 2007-12-17  Eric Blake  <ebb9@byu.net>
46201
46202         Revert addition of verify, for BSD/OS.
46203         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46204         can't handle large files, for the sake of obsolete platforms.
46205         * modules/fseeko (Depends-on): Remove verify.
46206         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46207         * doc/functions/ftello.texi (ftello): Likewise.
46208         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46209         Reported by Larry Jones.
46210
46211 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46212
46213         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46214         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46215
46216 2007-12-17  Jim Meyering  <meyering@redhat.com>
46217
46218         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46219         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46220         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46221         * modules/getcwd (Depends-on): Add openat.
46222         Reported by Petr Salinger.
46223
46224 2007-12-17  Bruno Haible  <bruno@clisp.org>
46225
46226         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46227         avoid a segmentation fault of the configure test on x86_64 systems.
46228
46229 2007-12-15  Jim Meyering  <meyering@redhat.com>
46230
46231         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46232
46233 2007-12-13  Eric Blake  <ebb9@byu.net>
46234
46235         Another fseek test.
46236         * tests/test-fseek.c (main): Also test ungetc handling.
46237         * tests/test-fseeko.c (main): Likewise.
46238         * modules/fseeko (Depends-on): Add verify.
46239         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46240         large.
46241         Reported by Larry Jones.
46242
46243         Fix fseeko on mingw.
46244         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46245         seek.
46246
46247         Beef up fseek tests.
46248         * tests/test-fseek.c (main): Also test eof handling.
46249         * tests/test-fseeko.c (main): Likewise.
46250         Reported by Larry Jones.
46251
46252 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46253
46254         Fix fseeko on BSD-based platforms.
46255         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46256         successful seek.
46257
46258 2007-12-12  Eric Blake  <ebb9@byu.net>
46259
46260         Allow circular dependency of separate libtests.a
46261         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46262         when use_libtests.
46263
46264 2007-12-11  Eric Blake  <ebb9@byu.net>
46265
46266         Fix bug with -0.0L in previous patch.
46267         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46268         * tests/test-isnan.c (main): Also test on zeroes.
46269         * tests/test-isnanf.c (main): Likewise.
46270         * tests/test-isnanl.h (main): Likewise.
46271
46272         Detect pseudo-denormals on x86 even when cross-compiling.
46273         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46274         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46275         invalid bit patterns that happen to satisfy ==.
46276
46277         Avoid link failures with separate libtests.a.
46278         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46279         last, to satisfy circular dependencies.
46280
46281 2007-12-11  Eric Blake  <ebb9@byu.net>
46282         and Bruno Haible  <bruno@clisp.org>
46283
46284         Fix OpenBSD 4.0 <float.h> handling of long double.
46285         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46286         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46287         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46288
46289 2007-12-11  Jim Meyering  <meyering@redhat.com>
46290
46291         * users.txt: Add libvirt.
46292
46293         Support versions of autoconf prior to 2.59c.
46294         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46295         if it is not already defined.
46296
46297 2007-12-09  Bruno Haible  <bruno@clisp.org>
46298
46299         Let 'gnulib-tool --import' collect sources needed for the tests in
46300         tests/ rather than in lib/.
46301         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46302         argument. If true, add rules to generate libtests.a, and put libtests.a
46303         into $(LDADD). Consider source files in subdirectories and set
46304         uses_subdirs.
46305         (func_emit_initmacro_start, func_emit_initmacro_end,
46306         func_emit_initmacro_done): Pass all arguments explicitly.
46307         (func_import): Determine two module lists main_modules,
46308         testsrelated_modules. Determine use_libtests. Determine two variables
46309         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46310         instead of just sed_transform_lib_file. Determine two variables
46311         main_files and testsrelated_files. Compute 'files' as the union of
46312         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46313         func_add_or_update. In the generated gnulib-comp.m4, collect the
46314         object files for tests/ in different variables than those for lib/.
46315         Substitute LIBTESTS_LIBDEPS.
46316         (func_create_testdir): Combine the uses_subdirs results from
46317         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46318
46319 2007-12-09  Bruno Haible  <bruno@clisp.org>
46320
46321         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46322         the build-aux directory.
46323
46324 2007-12-09  Bruno Haible  <bruno@clisp.org>
46325
46326         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46327         introduced on 2006-09-09.
46328
46329 2007-12-07  Jim Meyering  <meyering@redhat.com>
46330
46331         Let these macros work also with autoconf-2.59.
46332         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46333         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46334         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46335
46336 2007-12-06  Jim Meyering  <meyering@redhat.com>
46337
46338         Avoid a configure-time syntax error in gl_FUNC_ACL.
46339         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46340         function in each branch, before testing the cache variable.
46341
46342 2007-12-04  Eric Blake  <ebb9@byu.net>
46343
46344         Make scripts executable.
46345         * build-aux/config.guess: Add execute permissions.
46346         * build-aux/config.sub: Likewise.
46347         * build-aux/gendocs.sh: Likewise.
46348
46349         Fix frexp on mingw.
46350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46351         cross-compiling.
46352         * doc/functions/frexp.texi (frexp): Document the bug.
46353
46354         Make cygwin fseeko check more reliable.
46355         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46356         version numbers, rather than unrelated feature check.
46357         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46358         * doc/functions/ftello.texi (ftello): Likewise.
46359         Reported by Bruno Haible.
46360
46361         * m4/strerror.m4: Bump version number.
46362
46363 2007-12-03  Bruno Haible  <bruno@clisp.org>
46364
46365         * doc/functions/mprotect.texi: Mention the mingw problem.
46366
46367 2007-12-03  Eric Blake  <ebb9@byu.net>
46368
46369         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46370         REPLACE_STRERROR is initialized before this macro.
46371
46372 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46373
46374         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46375         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46376         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46377         put -lsec in even for programs other than 'ls'.  This fixes a problem
46378         for gettext reported by Bruno Haible in
46379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46380         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46381         Add support for Solaris 10.  This isn't efficient, but should get the
46382         job done for now.
46383
46384 2007-12-03  James Youngman  <jay@gnu.org>
46385
46386         * doc/regexprops-generic.texi: change "an close-group" to "a
46387         close-group" and "illegal" to "not allowed".
46388
46389 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46390
46391         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46392         pr_byname.h. Needed for the rare case when the maintainer has done
46393         "make maintainer-clean" in the source directory and then attempts a
46394         build outside the source directory.
46395         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46396         scripts_byname.h.
46397
46398 2007-12-02  Martin Lambers <marlam@marlam.de>
46399             Bruno Haible  <bruno@clisp.org>
46400
46401         * lib/getpagesize.h: Remove file.
46402         * lib/unistd.in.h: Include declaration of getpagesize here.
46403         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46404         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46405         HAVE_SYS_PARAM_H.
46406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46407         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46408         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46409         (Depends-on): Add unistd.
46410         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46411         (Include): Use <unistd.h> instead of getpagesize.h.
46412         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46413         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46414         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46415         gl_GETPAGESIZE invocation, already handled by module dependency.
46416         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46417
46418 2007-12-02  Bruno Haible  <bruno@clisp.org>
46419
46420         * modules/strings-tests: New file.
46421         * tests/test-strings.c: New file.
46422
46423         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46424         * lib/strings.in.h: New file.
46425         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46426         * m4/strings_h.m4: New file.
46427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46428         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46429         * modules/strings: New file.
46430         * modules/string (Makefile.am): Update.
46431         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46432         Reported by Karl Berry.
46433
46434 2007-12-01  Eric Blake  <ebb9@byu.net>
46435
46436         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46437         accomodate fix in cygwin 1.5.25.
46438
46439 2007-12-01  Jim Meyering  <meyering@redhat.com>
46440
46441         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46442         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46443         that would inhibit utf8-optimization of a regexp containing line-
46444         or buffer-anchors, e.g., `^', `$'.
46445
46446 2007-11-30  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46449         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46450         glthread_recursive_lock_init.
46451         * lib/lock.c (glthread_recursive_lock_init)
46452         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46453         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46454
46455 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         New function qset_acl, like set_acl but with syscall semantics.
46458         * lib/acl.h (qset_acl): New decl.
46459         * lib/acl.c (qset_acl): New function.
46460         (set_acl): Use new function.  Use more-consistent diagnostics.
46461
46462 2007-11-28  Jim Meyering  <meyering@redhat.com>
46463
46464         * modules/physmem (License): Change from GPL to LGPLv2+.
46465
46466 2007-11-26  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46469         'long double' type has excess precision.
46470         Reported by Jim Meyering in
46471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46472
46473 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46474
46475         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46476         Sync from <http://gnu.org/licenses>.
46477         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46478         with license text from same location.
46479         * doc/maintain.texi, doc/standards.texi:  Sync from
46480         <http://savannah.gnu.org/projects/gnustandards>.
46481
46482 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46483         and Jim Meyering  <meyering@redhat.com>
46484
46485         Adjust getdate' grammar to accept a slightly more regular language.
46486         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46487         Before, the former was rejected.
46488         * lib/getdate.y (digits_to_date_time): New function, factored
46489         out of ...
46490         (number): ...here.  Just call digits_to_date_time.
46491         (hybrid): New non-terminal to handle an <unsigned number,
46492         signed relative offset> sequence consistently.
46493
46494 2007-11-18  Jim Meyering  <meyering@redhat.com>
46495
46496         Pull my changes from coreutils:
46497         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46498         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46499         use of $gnulib_tool_option_extras, so that it's separated from the
46500         preceding argument.
46501
46502         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46503         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46504         parent destination directories before copying a file into place.
46505
46506 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46507
46508         bootstrap: work also with 4-argument variant of AC_INIT
46509         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46510
46511 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46512
46513         Port test-getaddrinfo to Solaris.
46514         Problem reported by Bruno Haible in
46515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46516         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46517         explanation of setting 'hints'.
46518         Don't reject an implementation merely because it returns EAI_SERVICE.
46519         (EAI_SERVICE): Define to 0 if not defined.
46520
46521 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46522
46523         The license of gnu-make and posix-shell is now "GPLed build tool".
46524         * modules/gnu-make (License): Likewise.
46525         * modules/posix-shell (License): Likewise.
46526
46527         New module posix-shell, for determining a POSIX shell
46528         or perhaps something that is close enough to a POSIX shell.
46529         * m4/posix-shell.m4: New file.
46530         * modules/posix-shell: New file.
46531
46532         * MODULES.html.sh: Mention new module.
46533
46534         New module gnu-make, for determining whether we're using GNU Make.
46535         * m4/gnu-make.m4: New file.
46536         * modules/gnu-make: New file.
46537         * MODULES.html.sh: Mention new module.
46538
46539 2007-11-14  Jim Meyering  <meyering@redhat.com>
46540
46541         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46542         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46543         use this macro to create a function _definition_.
46544         Remove useless "#undef ARGMATCH_DIE".
46545
46546 2007-11-14  Bruno Haible  <bruno@clisp.org>
46547
46548         * lib/config.charset: Update for OpenBSD 4.1.
46549         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46550
46551 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46552
46553         Document 64-bit #if problems in stdint.texi.
46554         * doc/headers/stdint.texi (stdint.h): Mention problems with
46555         64-bit-#if, and how to work around them.
46556
46557         Don't insist on 'long long int' support in the preprocessor.  It
46558         breaks too many things.  For example, PRIdMAX still uses a 'long
46559         long int' format with the latest Sun compiler, even though
46560         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46561         preprocessor problem.  This causes the latest coreutils to dump
46562         core on Solaris 10 sparc with the Sun C compiler.
46563         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46564         the troublesome expressions at configure-time, not at #if-time.
46565         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46566         preprocessor.
46567         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46568         compile-time C checks, done at 'configure'-time.
46569         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46570         * modules/inttypes (Makefile): Substitute the new symbols that
46571         gl_INTTYPES_H now generates.
46572         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46573
46574 2007-11-12  Bruno Haible  <bruno@clisp.org>
46575
46576         Tests for Unicode character classification functions.
46577
46578         * modules/unictype/bidicategory-byname-tests: New file.
46579         * modules/unictype/bidicategory-name-tests: New file.
46580         * modules/unictype/bidicategory-of-tests: New file.
46581         * modules/unictype/bidicategory-test-tests: New file.
46582         * modules/unictype/block-list-tests: New file.
46583         * modules/unictype/block-of-tests: New file.
46584         * modules/unictype/block-test-tests: New file.
46585         * modules/unictype/category-C-tests: New file.
46586         * modules/unictype/category-Cc-tests: New file.
46587         * modules/unictype/category-Cf-tests: New file.
46588         * modules/unictype/category-Cn-tests: New file.
46589         * modules/unictype/category-Co-tests: New file.
46590         * modules/unictype/category-Cs-tests: New file.
46591         * modules/unictype/category-L-tests: New file.
46592         * modules/unictype/category-Ll-tests: New file.
46593         * modules/unictype/category-Lm-tests: New file.
46594         * modules/unictype/category-Lo-tests: New file.
46595         * modules/unictype/category-Lt-tests: New file.
46596         * modules/unictype/category-Lu-tests: New file.
46597         * modules/unictype/category-M-tests: New file.
46598         * modules/unictype/category-Mc-tests: New file.
46599         * modules/unictype/category-Me-tests: New file.
46600         * modules/unictype/category-Mn-tests: New file.
46601         * modules/unictype/category-N-tests: New file.
46602         * modules/unictype/category-Nd-tests: New file.
46603         * modules/unictype/category-Nl-tests: New file.
46604         * modules/unictype/category-No-tests: New file.
46605         * modules/unictype/category-P-tests: New file.
46606         * modules/unictype/category-Pc-tests: New file.
46607         * modules/unictype/category-Pd-tests: New file.
46608         * modules/unictype/category-Pe-tests: New file.
46609         * modules/unictype/category-Pf-tests: New file.
46610         * modules/unictype/category-Pi-tests: New file.
46611         * modules/unictype/category-Po-tests: New file.
46612         * modules/unictype/category-Ps-tests: New file.
46613         * modules/unictype/category-S-tests: New file.
46614         * modules/unictype/category-Sc-tests: New file.
46615         * modules/unictype/category-Sk-tests: New file.
46616         * modules/unictype/category-Sm-tests: New file.
46617         * modules/unictype/category-So-tests: New file.
46618         * modules/unictype/category-Z-tests: New file.
46619         * modules/unictype/category-Zl-tests: New file.
46620         * modules/unictype/category-Zp-tests: New file.
46621         * modules/unictype/category-Zs-tests: New file.
46622         * modules/unictype/category-and-not-tests: New file.
46623         * modules/unictype/category-and-tests: New file.
46624         * modules/unictype/category-byname-tests: New file.
46625         * modules/unictype/category-name-tests: New file.
46626         * modules/unictype/category-none-tests: New file.
46627         * modules/unictype/category-of-tests: New file.
46628         * modules/unictype/category-or-tests: New file.
46629         * modules/unictype/category-test-withtable-tests: New file.
46630         * modules/unictype/combining-class-tests: New file.
46631         * modules/unictype/ctype-alnum-tests: New file.
46632         * modules/unictype/ctype-alpha-tests: New file.
46633         * modules/unictype/ctype-blank-tests: New file.
46634         * modules/unictype/ctype-cntrl-tests: New file.
46635         * modules/unictype/ctype-digit-tests: New file.
46636         * modules/unictype/ctype-graph-tests: New file.
46637         * modules/unictype/ctype-lower-tests: New file.
46638         * modules/unictype/ctype-print-tests: New file.
46639         * modules/unictype/ctype-punct-tests: New file.
46640         * modules/unictype/ctype-space-tests: New file.
46641         * modules/unictype/ctype-upper-tests: New file.
46642         * modules/unictype/ctype-xdigit-tests: New file.
46643         * modules/unictype/decimal-digit-tests: New file.
46644         * modules/unictype/digit-tests: New file.
46645         * modules/unictype/mirror-tests: New file.
46646         * modules/unictype/numeric-tests: New file.
46647         * modules/unictype/property-alphabetic-tests: New file.
46648         * modules/unictype/property-ascii-hex-digit-tests: New file.
46649         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46650         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46651         * modules/unictype/property-bidi-block-separator-tests: New file.
46652         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46653         * modules/unictype/property-bidi-common-separator-tests: New file.
46654         * modules/unictype/property-bidi-control-tests: New file.
46655         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46656         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46657         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46658         * modules/unictype/property-bidi-european-digit-tests: New file.
46659         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46660         * modules/unictype/property-bidi-left-to-right-tests: New file.
46661         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46662         * modules/unictype/property-bidi-other-neutral-tests: New file.
46663         * modules/unictype/property-bidi-pdf-tests: New file.
46664         * modules/unictype/property-bidi-segment-separator-tests: New file.
46665         * modules/unictype/property-bidi-whitespace-tests: New file.
46666         * modules/unictype/property-byname-tests: New file.
46667         * modules/unictype/property-combining-tests: New file.
46668         * modules/unictype/property-composite-tests: New file.
46669         * modules/unictype/property-currency-symbol-tests: New file.
46670         * modules/unictype/property-dash-tests: New file.
46671         * modules/unictype/property-decimal-digit-tests: New file.
46672         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46673         * modules/unictype/property-deprecated-tests: New file.
46674         * modules/unictype/property-diacritic-tests: New file.
46675         * modules/unictype/property-extender-tests: New file.
46676         * modules/unictype/property-format-control-tests: New file.
46677         * modules/unictype/property-grapheme-base-tests: New file.
46678         * modules/unictype/property-grapheme-extend-tests: New file.
46679         * modules/unictype/property-grapheme-link-tests: New file.
46680         * modules/unictype/property-hex-digit-tests: New file.
46681         * modules/unictype/property-hyphen-tests: New file.
46682         * modules/unictype/property-id-continue-tests: New file.
46683         * modules/unictype/property-id-start-tests: New file.
46684         * modules/unictype/property-ideographic-tests: New file.
46685         * modules/unictype/property-ids-binary-operator-tests: New file.
46686         * modules/unictype/property-ids-trinary-operator-tests: New file.
46687         * modules/unictype/property-ignorable-control-tests: New file.
46688         * modules/unictype/property-iso-control-tests: New file.
46689         * modules/unictype/property-join-control-tests: New file.
46690         * modules/unictype/property-left-of-pair-tests: New file.
46691         * modules/unictype/property-line-separator-tests: New file.
46692         * modules/unictype/property-logical-order-exception-tests: New file.
46693         * modules/unictype/property-lowercase-tests: New file.
46694         * modules/unictype/property-math-tests: New file.
46695         * modules/unictype/property-non-break-tests: New file.
46696         * modules/unictype/property-not-a-character-tests: New file.
46697         * modules/unictype/property-numeric-tests: New file.
46698         * modules/unictype/property-other-alphabetic-tests: New file.
46699         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46700         * modules/unictype/property-other-grapheme-extend-tests: New file.
46701         * modules/unictype/property-other-id-continue-tests: New file.
46702         * modules/unictype/property-other-id-start-tests: New file.
46703         * modules/unictype/property-other-lowercase-tests: New file.
46704         * modules/unictype/property-other-math-tests: New file.
46705         * modules/unictype/property-other-uppercase-tests: New file.
46706         * modules/unictype/property-paired-punctuation-tests: New file.
46707         * modules/unictype/property-paragraph-separator-tests: New file.
46708         * modules/unictype/property-pattern-syntax-tests: New file.
46709         * modules/unictype/property-pattern-white-space-tests: New file.
46710         * modules/unictype/property-private-use-tests: New file.
46711         * modules/unictype/property-punctuation-tests: New file.
46712         * modules/unictype/property-quotation-mark-tests: New file.
46713         * modules/unictype/property-radical-tests: New file.
46714         * modules/unictype/property-sentence-terminal-tests: New file.
46715         * modules/unictype/property-soft-dotted-tests: New file.
46716         * modules/unictype/property-space-tests: New file.
46717         * modules/unictype/property-terminal-punctuation-tests: New file.
46718         * modules/unictype/property-test-tests: New file.
46719         * modules/unictype/property-titlecase-tests: New file.
46720         * modules/unictype/property-unassigned-code-value-tests: New file.
46721         * modules/unictype/property-unified-ideograph-tests: New file.
46722         * modules/unictype/property-uppercase-tests: New file.
46723         * modules/unictype/property-variation-selector-tests: New file.
46724         * modules/unictype/property-white-space-tests: New file.
46725         * modules/unictype/property-xid-continue-tests: New file.
46726         * modules/unictype/property-xid-start-tests: New file.
46727         * modules/unictype/property-zero-width-tests: New file.
46728         * modules/unictype/scripts-tests: New file.
46729         * modules/unictype/syntax-c-ident-tests: New file.
46730         * modules/unictype/syntax-c-whitespace-tests: New file.
46731         * modules/unictype/syntax-java-ident-tests: New file.
46732         * modules/unictype/syntax-java-whitespace-tests: New file.
46733         * tests/unictype/test-bidi_byname.c: New file.
46734         * tests/unictype/test-bidi_name.c: New file.
46735         * tests/unictype/test-bidi_of.c: New file.
46736         * tests/unictype/test-bidi_test.c: New file.
46737         * tests/unictype/test-block_list.c: New file.
46738         * tests/unictype/test-block_of.c: New file.
46739         * tests/unictype/test-block_test.c: New file.
46740         * tests/unictype/test-categ_and.c: New file.
46741         * tests/unictype/test-categ_and_not.c: New file.
46742         * tests/unictype/test-categ_byname.c: New file.
46743         * tests/unictype/test-categ_name.c: New file.
46744         * tests/unictype/test-categ_none.c: New file.
46745         * tests/unictype/test-categ_of.c: New file.
46746         * tests/unictype/test-categ_or.c: New file.
46747         * tests/unictype/test-categ_test_withtable.c: New file.
46748         * tests/unictype/test-combining.c: New file.
46749         * tests/unictype/test-decdigit.c: New file.
46750         * tests/unictype/test-digit.c: New file.
46751         * tests/unictype/test-mirror.c: New file.
46752         * tests/unictype/test-numeric.c: New file.
46753         * tests/unictype/test-pr_byname.c: New file.
46754         * tests/unictype/test-pr_test.c: New file.
46755         * tests/unictype/test-predicate-part1.h: New file.
46756         * tests/unictype/test-predicate-part2.h: New file.
46757         * tests/unictype/test-scripts.c: New file.
46758         * tests/unictype/test-sy_c_ident.c: New file.
46759         * tests/unictype/test-sy_java_ident.c: New file.
46760
46761         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46762         for Unicode 5.0.0.
46763         * tests/unictype/test-categ_Cc.c: Likewise.
46764         * tests/unictype/test-categ_Cf.c: Likewise.
46765         * tests/unictype/test-categ_Cn.c: Likewise.
46766         * tests/unictype/test-categ_Co.c: Likewise.
46767         * tests/unictype/test-categ_Cs.c: Likewise.
46768         * tests/unictype/test-categ_L.c: Likewise.
46769         * tests/unictype/test-categ_Ll.c: Likewise.
46770         * tests/unictype/test-categ_Lm.c: Likewise.
46771         * tests/unictype/test-categ_Lo.c: Likewise.
46772         * tests/unictype/test-categ_Lt.c: Likewise.
46773         * tests/unictype/test-categ_Lu.c: Likewise.
46774         * tests/unictype/test-categ_M.c: Likewise.
46775         * tests/unictype/test-categ_Mc.c: Likewise.
46776         * tests/unictype/test-categ_Me.c: Likewise.
46777         * tests/unictype/test-categ_Mn.c: Likewise.
46778         * tests/unictype/test-categ_N.c: Likewise.
46779         * tests/unictype/test-categ_Nd.c: Likewise.
46780         * tests/unictype/test-categ_Nl.c: Likewise.
46781         * tests/unictype/test-categ_No.c: Likewise.
46782         * tests/unictype/test-categ_P.c: Likewise.
46783         * tests/unictype/test-categ_Pc.c: Likewise.
46784         * tests/unictype/test-categ_Pd.c: Likewise.
46785         * tests/unictype/test-categ_Pe.c: Likewise.
46786         * tests/unictype/test-categ_Pf.c: Likewise.
46787         * tests/unictype/test-categ_Pi.c: Likewise.
46788         * tests/unictype/test-categ_Po.c: Likewise.
46789         * tests/unictype/test-categ_Ps.c: Likewise.
46790         * tests/unictype/test-categ_S.c: Likewise.
46791         * tests/unictype/test-categ_Sc.c: Likewise.
46792         * tests/unictype/test-categ_Sk.c: Likewise.
46793         * tests/unictype/test-categ_Sm.c: Likewise.
46794         * tests/unictype/test-categ_So.c: Likewise.
46795         * tests/unictype/test-categ_Z.c: Likewise.
46796         * tests/unictype/test-categ_Zl.c: Likewise.
46797         * tests/unictype/test-categ_Zp.c: Likewise.
46798         * tests/unictype/test-categ_Zs.c: Likewise.
46799         * tests/unictype/test-ctype_alnum.c: Likewise.
46800         * tests/unictype/test-ctype_alpha.c: Likewise.
46801         * tests/unictype/test-ctype_blank.c: Likewise.
46802         * tests/unictype/test-ctype_cntrl.c: Likewise.
46803         * tests/unictype/test-ctype_digit.c: Likewise.
46804         * tests/unictype/test-ctype_graph.c: Likewise.
46805         * tests/unictype/test-ctype_lower.c: Likewise.
46806         * tests/unictype/test-ctype_print.c: Likewise.
46807         * tests/unictype/test-ctype_punct.c: Likewise.
46808         * tests/unictype/test-ctype_space.c: Likewise.
46809         * tests/unictype/test-ctype_upper.c: Likewise.
46810         * tests/unictype/test-ctype_xdigit.c: Likewise.
46811         * tests/unictype/test-decdigit.h: Likewise.
46812         * tests/unictype/test-digit.h: Likewise.
46813         * tests/unictype/test-numeric.h: Likewise.
46814         * tests/unictype/test-pr_alphabetic.c: Likewise.
46815         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46816         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46817         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46818         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46819         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46820         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46821         * tests/unictype/test-pr_bidi_control.c: Likewise.
46822         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46823         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46824         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46825         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46826         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46827         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46828         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46829         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46830         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46831         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46832         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46833         * tests/unictype/test-pr_combining.c: Likewise.
46834         * tests/unictype/test-pr_composite.c: Likewise.
46835         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46836         * tests/unictype/test-pr_dash.c: Likewise.
46837         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46838         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46839         * tests/unictype/test-pr_deprecated.c: Likewise.
46840         * tests/unictype/test-pr_diacritic.c: Likewise.
46841         * tests/unictype/test-pr_extender.c: Likewise.
46842         * tests/unictype/test-pr_format_control.c: Likewise.
46843         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46844         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46845         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46846         * tests/unictype/test-pr_hex_digit.c: Likewise.
46847         * tests/unictype/test-pr_hyphen.c: Likewise.
46848         * tests/unictype/test-pr_id_continue.c: Likewise.
46849         * tests/unictype/test-pr_id_start.c: Likewise.
46850         * tests/unictype/test-pr_ideographic.c: Likewise.
46851         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46852         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46853         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46854         * tests/unictype/test-pr_iso_control.c: Likewise.
46855         * tests/unictype/test-pr_join_control.c: Likewise.
46856         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46857         * tests/unictype/test-pr_line_separator.c: Likewise.
46858         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46859         * tests/unictype/test-pr_lowercase.c: Likewise.
46860         * tests/unictype/test-pr_math.c: Likewise.
46861         * tests/unictype/test-pr_non_break.c: Likewise.
46862         * tests/unictype/test-pr_not_a_character.c: Likewise.
46863         * tests/unictype/test-pr_numeric.c: Likewise.
46864         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46865         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46866         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46867         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46868         * tests/unictype/test-pr_other_id_start.c: Likewise.
46869         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46870         * tests/unictype/test-pr_other_math.c: Likewise.
46871         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46872         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46873         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46874         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46875         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46876         * tests/unictype/test-pr_private_use.c: Likewise.
46877         * tests/unictype/test-pr_punctuation.c: Likewise.
46878         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46879         * tests/unictype/test-pr_radical.c: Likewise.
46880         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46881         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46882         * tests/unictype/test-pr_space.c: Likewise.
46883         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46884         * tests/unictype/test-pr_titlecase.c: Likewise.
46885         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46886         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46887         * tests/unictype/test-pr_uppercase.c: Likewise.
46888         * tests/unictype/test-pr_variation_selector.c: Likewise.
46889         * tests/unictype/test-pr_white_space.c: Likewise.
46890         * tests/unictype/test-pr_xid_continue.c: Likewise.
46891         * tests/unictype/test-pr_xid_start.c: Likewise.
46892         * tests/unictype/test-pr_zero_width.c: Likewise.
46893         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46894         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46895
46896 2007-11-12  Bruno Haible  <bruno@clisp.org>
46897
46898         Unicode character classification functions.
46899         * lib/unictype.h: New file.
46900         * modules/unictype/base: New file.
46901         * modules/unictype/category-L: New file.
46902         * modules/unictype/category-Lu: New file.
46903         * modules/unictype/category-Ll: New file.
46904         * modules/unictype/category-Lt: New file.
46905         * modules/unictype/category-Lm: New file.
46906         * modules/unictype/category-Lo: New file.
46907         * modules/unictype/category-M: New file.
46908         * modules/unictype/category-Mn: New file.
46909         * modules/unictype/category-Mc: New file.
46910         * modules/unictype/category-Me: New file.
46911         * modules/unictype/category-N: New file.
46912         * modules/unictype/category-Nd: New file.
46913         * modules/unictype/category-Nl: New file.
46914         * modules/unictype/category-No: New file.
46915         * modules/unictype/category-P: New file.
46916         * modules/unictype/category-Pc: New file.
46917         * modules/unictype/category-Pd: New file.
46918         * modules/unictype/category-Ps: New file.
46919         * modules/unictype/category-Pe: New file.
46920         * modules/unictype/category-Pi: New file.
46921         * modules/unictype/category-Pf: New file.
46922         * modules/unictype/category-Po: New file.
46923         * modules/unictype/category-S: New file.
46924         * modules/unictype/category-Sm: New file.
46925         * modules/unictype/category-Sc: New file.
46926         * modules/unictype/category-Sk: New file.
46927         * modules/unictype/category-So: New file.
46928         * modules/unictype/category-Z: New file.
46929         * modules/unictype/category-Zs: New file.
46930         * modules/unictype/category-Zl: New file.
46931         * modules/unictype/category-Zp: New file.
46932         * modules/unictype/category-C: New file.
46933         * modules/unictype/category-Cc: New file.
46934         * modules/unictype/category-Cf: New file.
46935         * modules/unictype/category-Cs: New file.
46936         * modules/unictype/category-Co: New file.
46937         * modules/unictype/category-Cn: New file.
46938         * modules/unictype/category-or: New file.
46939         * modules/unictype/category-of: New file.
46940         * modules/unictype/category-test: New file.
46941         * modules/unictype/category-test-withtable: New file.
46942         * modules/unictype/category-byname: New file.
46943         * modules/unictype/category-none: New file.
46944         * modules/unictype/category-and: New file.
46945         * modules/unictype/category-and-not: New file.
46946         * modules/unictype/category-name: New file.
46947         * modules/unictype/combining-class: New file.
46948         * modules/unictype/category-all: New file.
46949         * modules/unictype/bidicategory-all: New file.
46950         * modules/unictype/bidicategory-byname: New file.
46951         * modules/unictype/bidicategory-name: New file.
46952         * modules/unictype/bidicategory-of: New file.
46953         * modules/unictype/bidicategory-test: New file.
46954         * modules/unictype/decimal-digit: New file.
46955         * modules/unictype/digit: New file.
46956         * modules/unictype/numeric: New file.
46957         * modules/unictype/mirror: New file.
46958         * modules/unictype/property-white-space: New file.
46959         * modules/unictype/property-alphabetic: New file.
46960         * modules/unictype/property-other-alphabetic: New file.
46961         * modules/unictype/property-not-a-character: New file.
46962         * modules/unictype/property-default-ignorable-code-point: New file.
46963         * modules/unictype/property-other-default-ignorable-code-point: New
46964         file.
46965         * modules/unictype/property-deprecated: New file.
46966         * modules/unictype/property-logical-order-exception: New file.
46967         * modules/unictype/property-variation-selector: New file.
46968         * modules/unictype/property-private-use: New file.
46969         * modules/unictype/property-unassigned-code-value: New file.
46970         * modules/unictype/property-uppercase: New file.
46971         * modules/unictype/property-other-uppercase: New file.
46972         * modules/unictype/property-lowercase: New file.
46973         * modules/unictype/property-other-lowercase: New file.
46974         * modules/unictype/property-titlecase: New file.
46975         * modules/unictype/property-soft-dotted: New file.
46976         * modules/unictype/property-id-start: New file.
46977         * modules/unictype/property-other-id-start: New file.
46978         * modules/unictype/property-id-continue: New file.
46979         * modules/unictype/property-other-id-continue: New file.
46980         * modules/unictype/property-xid-start: New file.
46981         * modules/unictype/property-xid-continue: New file.
46982         * modules/unictype/property-pattern-white-space: New file.
46983         * modules/unictype/property-pattern-syntax: New file.
46984         * modules/unictype/property-join-control: New file.
46985         * modules/unictype/property-grapheme-base: New file.
46986         * modules/unictype/property-grapheme-extend: New file.
46987         * modules/unictype/property-other-grapheme-extend: New file.
46988         * modules/unictype/property-grapheme-link: New file.
46989         * modules/unictype/property-bidi-control: New file.
46990         * modules/unictype/property-bidi-left-to-right: New file.
46991         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46992         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46993         * modules/unictype/property-bidi-european-digit: New file.
46994         * modules/unictype/property-bidi-eur-num-separator: New file.
46995         * modules/unictype/property-bidi-eur-num-terminator: New file.
46996         * modules/unictype/property-bidi-arabic-digit: New file.
46997         * modules/unictype/property-bidi-common-separator: New file.
46998         * modules/unictype/property-bidi-block-separator: New file.
46999         * modules/unictype/property-bidi-segment-separator: New file.
47000         * modules/unictype/property-bidi-whitespace: New file.
47001         * modules/unictype/property-bidi-non-spacing-mark: New file.
47002         * modules/unictype/property-bidi-boundary-neutral: New file.
47003         * modules/unictype/property-bidi-pdf: New file.
47004         * modules/unictype/property-bidi-embedding-or-override: New file.
47005         * modules/unictype/property-bidi-other-neutral: New file.
47006         * modules/unictype/property-hex-digit: New file.
47007         * modules/unictype/property-ascii-hex-digit: New file.
47008         * modules/unictype/property-ideographic: New file.
47009         * modules/unictype/property-unified-ideograph: New file.
47010         * modules/unictype/property-radical: New file.
47011         * modules/unictype/property-ids-binary-operator: New file.
47012         * modules/unictype/property-ids-trinary-operator: New file.
47013         * modules/unictype/property-zero-width: New file.
47014         * modules/unictype/property-space: New file.
47015         * modules/unictype/property-non-break: New file.
47016         * modules/unictype/property-iso-control: New file.
47017         * modules/unictype/property-format-control: New file.
47018         * modules/unictype/property-dash: New file.
47019         * modules/unictype/property-hyphen: New file.
47020         * modules/unictype/property-punctuation: New file.
47021         * modules/unictype/property-line-separator: New file.
47022         * modules/unictype/property-paragraph-separator: New file.
47023         * modules/unictype/property-quotation-mark: New file.
47024         * modules/unictype/property-sentence-terminal: New file.
47025         * modules/unictype/property-terminal-punctuation: New file.
47026         * modules/unictype/property-currency-symbol: New file.
47027         * modules/unictype/property-math: New file.
47028         * modules/unictype/property-other-math: New file.
47029         * modules/unictype/property-paired-punctuation: New file.
47030         * modules/unictype/property-left-of-pair: New file.
47031         * modules/unictype/property-combining: New file.
47032         * modules/unictype/property-composite: New file.
47033         * modules/unictype/property-decimal-digit: New file.
47034         * modules/unictype/property-numeric: New file.
47035         * modules/unictype/property-diacritic: New file.
47036         * modules/unictype/property-extender: New file.
47037         * modules/unictype/property-ignorable-control: New file.
47038         * modules/unictype/property-test: New file.
47039         * modules/unictype/property-byname: New file.
47040         * modules/unictype/property-all: New file.
47041         * modules/unictype/scripts: New file.
47042         * modules/unictype/scripts-all: New file.
47043         * modules/unictype/block-of: New file.
47044         * modules/unictype/block-test: New file.
47045         * modules/unictype/block-list: New file.
47046         * modules/unictype/block-all: New file.
47047         * modules/unictype/syntax-c-whitespace: New file.
47048         * modules/unictype/syntax-java-whitespace: New file.
47049         * modules/unictype/syntax-c-ident: New file.
47050         * modules/unictype/syntax-java-ident: New file.
47051         * modules/unictype/ctype-alnum: New file.
47052         * modules/unictype/ctype-alpha: New file.
47053         * modules/unictype/ctype-cntrl: New file.
47054         * modules/unictype/ctype-digit: New file.
47055         * modules/unictype/ctype-graph: New file.
47056         * modules/unictype/ctype-lower: New file.
47057         * modules/unictype/ctype-print: New file.
47058         * modules/unictype/ctype-punct: New file.
47059         * modules/unictype/ctype-space: New file.
47060         * modules/unictype/ctype-upper: New file.
47061         * modules/unictype/ctype-xdigit: New file.
47062         * modules/unictype/ctype-blank: New file.
47063         * lib/unictype/bidi_byname.c: New file.
47064         * lib/unictype/bidi_name.c: New file.
47065         * lib/unictype/bidi_of.c: New file.
47066         * lib/unictype/bidi_test.c: New file.
47067         * lib/unictype/bitmap.h: New file.
47068         * lib/unictype/block_test.c: New file.
47069         * lib/unictype/blocks.c: New file.
47070         * lib/unictype/categ_C.c: New file.
47071         * lib/unictype/categ_Cc.c: New file.
47072         * lib/unictype/categ_Cf.c: New file.
47073         * lib/unictype/categ_Cn.c: New file.
47074         * lib/unictype/categ_Co.c: New file.
47075         * lib/unictype/categ_Cs.c: New file.
47076         * lib/unictype/categ_L.c: New file.
47077         * lib/unictype/categ_Ll.c: New file.
47078         * lib/unictype/categ_Lm.c: New file.
47079         * lib/unictype/categ_Lo.c: New file.
47080         * lib/unictype/categ_Lt.c: New file.
47081         * lib/unictype/categ_Lu.c: New file.
47082         * lib/unictype/categ_M.c: New file.
47083         * lib/unictype/categ_Mc.c: New file.
47084         * lib/unictype/categ_Me.c: New file.
47085         * lib/unictype/categ_Mn.c: New file.
47086         * lib/unictype/categ_N.c: New file.
47087         * lib/unictype/categ_Nd.c: New file.
47088         * lib/unictype/categ_Nl.c: New file.
47089         * lib/unictype/categ_No.c: New file.
47090         * lib/unictype/categ_P.c: New file.
47091         * lib/unictype/categ_Pc.c: New file.
47092         * lib/unictype/categ_Pd.c: New file.
47093         * lib/unictype/categ_Pe.c: New file.
47094         * lib/unictype/categ_Pf.c: New file.
47095         * lib/unictype/categ_Pi.c: New file.
47096         * lib/unictype/categ_Po.c: New file.
47097         * lib/unictype/categ_Ps.c: New file.
47098         * lib/unictype/categ_S.c: New file.
47099         * lib/unictype/categ_Sc.c: New file.
47100         * lib/unictype/categ_Sk.c: New file.
47101         * lib/unictype/categ_Sm.c: New file.
47102         * lib/unictype/categ_So.c: New file.
47103         * lib/unictype/categ_Z.c: New file.
47104         * lib/unictype/categ_Zl.c: New file.
47105         * lib/unictype/categ_Zp.c: New file.
47106         * lib/unictype/categ_Zs.c: New file.
47107         * lib/unictype/categ_and.c: New file.
47108         * lib/unictype/categ_and_not.c: New file.
47109         * lib/unictype/categ_byname.c: New file.
47110         * lib/unictype/categ_name.c: New file.
47111         * lib/unictype/categ_none.c: New file.
47112         * lib/unictype/categ_of.c: New file.
47113         * lib/unictype/categ_or.c: New file.
47114         * lib/unictype/categ_test.c: New file.
47115         * lib/unictype/combining.c: New file.
47116         * lib/unictype/ctype_alnum.c: New file.
47117         * lib/unictype/ctype_alpha.c: New file.
47118         * lib/unictype/ctype_blank.c: New file.
47119         * lib/unictype/ctype_cntrl.c: New file.
47120         * lib/unictype/ctype_digit.c: New file.
47121         * lib/unictype/ctype_graph.c: New file.
47122         * lib/unictype/ctype_lower.c: New file.
47123         * lib/unictype/ctype_print.c: New file.
47124         * lib/unictype/ctype_punct.c: New file.
47125         * lib/unictype/ctype_space.c: New file.
47126         * lib/unictype/ctype_upper.c: New file.
47127         * lib/unictype/ctype_xdigit.c: New file.
47128         * lib/unictype/decdigit.c: New file.
47129         * lib/unictype/digit.c: New file.
47130         * lib/unictype/identsyntaxmap.h: New file.
47131         * lib/unictype/mirror.c: New file.
47132         * lib/unictype/numeric.c: New file.
47133         * lib/unictype/pr_alphabetic.c: New file.
47134         * lib/unictype/pr_ascii_hex_digit.c: New file.
47135         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47136         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47137         * lib/unictype/pr_bidi_block_separator.c: New file.
47138         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47139         * lib/unictype/pr_bidi_common_separator.c: New file.
47140         * lib/unictype/pr_bidi_control.c: New file.
47141         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47142         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47143         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47144         * lib/unictype/pr_bidi_european_digit.c: New file.
47145         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47146         * lib/unictype/pr_bidi_left_to_right.c: New file.
47147         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47148         * lib/unictype/pr_bidi_other_neutral.c: New file.
47149         * lib/unictype/pr_bidi_pdf.c: New file.
47150         * lib/unictype/pr_bidi_segment_separator.c: New file.
47151         * lib/unictype/pr_bidi_whitespace.c: New file.
47152         * lib/unictype/pr_byname.c: New file.
47153         * lib/unictype/pr_byname.gperf: New file.
47154         * lib/unictype/pr_combining.c: New file.
47155         * lib/unictype/pr_composite.c: New file.
47156         * lib/unictype/pr_currency_symbol.c: New file.
47157         * lib/unictype/pr_dash.c: New file.
47158         * lib/unictype/pr_decimal_digit.c: New file.
47159         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47160         * lib/unictype/pr_deprecated.c: New file.
47161         * lib/unictype/pr_diacritic.c: New file.
47162         * lib/unictype/pr_extender.c: New file.
47163         * lib/unictype/pr_format_control.c: New file.
47164         * lib/unictype/pr_grapheme_base.c: New file.
47165         * lib/unictype/pr_grapheme_extend.c: New file.
47166         * lib/unictype/pr_grapheme_link.c: New file.
47167         * lib/unictype/pr_hex_digit.c: New file.
47168         * lib/unictype/pr_hyphen.c: New file.
47169         * lib/unictype/pr_id_continue.c: New file.
47170         * lib/unictype/pr_id_start.c: New file.
47171         * lib/unictype/pr_ideographic.c: New file.
47172         * lib/unictype/pr_ids_binary_operator.c: New file.
47173         * lib/unictype/pr_ids_trinary_operator.c: New file.
47174         * lib/unictype/pr_ignorable_control.c: New file.
47175         * lib/unictype/pr_iso_control.c: New file.
47176         * lib/unictype/pr_join_control.c: New file.
47177         * lib/unictype/pr_left_of_pair.c: New file.
47178         * lib/unictype/pr_line_separator.c: New file.
47179         * lib/unictype/pr_logical_order_exception.c: New file.
47180         * lib/unictype/pr_lowercase.c: New file.
47181         * lib/unictype/pr_math.c: New file.
47182         * lib/unictype/pr_non_break.c: New file.
47183         * lib/unictype/pr_not_a_character.c: New file.
47184         * lib/unictype/pr_numeric.c: New file.
47185         * lib/unictype/pr_other_alphabetic.c: New file.
47186         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47187         * lib/unictype/pr_other_grapheme_extend.c: New file.
47188         * lib/unictype/pr_other_id_continue.c: New file.
47189         * lib/unictype/pr_other_id_start.c: New file.
47190         * lib/unictype/pr_other_lowercase.c: New file.
47191         * lib/unictype/pr_other_math.c: New file.
47192         * lib/unictype/pr_other_uppercase.c: New file.
47193         * lib/unictype/pr_paired_punctuation.c: New file.
47194         * lib/unictype/pr_paragraph_separator.c: New file.
47195         * lib/unictype/pr_pattern_syntax.c: New file.
47196         * lib/unictype/pr_pattern_white_space.c: New file.
47197         * lib/unictype/pr_private_use.c: New file.
47198         * lib/unictype/pr_punctuation.c: New file.
47199         * lib/unictype/pr_quotation_mark.c: New file.
47200         * lib/unictype/pr_radical.c: New file.
47201         * lib/unictype/pr_sentence_terminal.c: New file.
47202         * lib/unictype/pr_soft_dotted.c: New file.
47203         * lib/unictype/pr_space.c: New file.
47204         * lib/unictype/pr_terminal_punctuation.c: New file.
47205         * lib/unictype/pr_test.c: New file.
47206         * lib/unictype/pr_titlecase.c: New file.
47207         * lib/unictype/pr_unassigned_code_value.c: New file.
47208         * lib/unictype/pr_unified_ideograph.c: New file.
47209         * lib/unictype/pr_uppercase.c: New file.
47210         * lib/unictype/pr_variation_selector.c: New file.
47211         * lib/unictype/pr_white_space.c: New file.
47212         * lib/unictype/pr_xid_continue.c: New file.
47213         * lib/unictype/pr_xid_start.c: New file.
47214         * lib/unictype/pr_zero_width.c: New file.
47215         * lib/unictype/scripts.c: New file.
47216         * lib/unictype/sy_c_ident.c: New file.
47217         * lib/unictype/sy_c_whitespace.c: New file.
47218         * lib/unictype/sy_java_ident.c: New file.
47219         * lib/unictype/sy_java_whitespace.c: New file.
47220
47221         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47222         Unicode 5.0.0.
47223         * lib/unictype/blocks.h: Likewise.
47224         * lib/unictype/categ_C.h: Likewise.
47225         * lib/unictype/categ_Cc.h: Likewise.
47226         * lib/unictype/categ_Cf.h: Likewise.
47227         * lib/unictype/categ_Cn.h: Likewise.
47228         * lib/unictype/categ_Co.h: Likewise.
47229         * lib/unictype/categ_Cs.h: Likewise.
47230         * lib/unictype/categ_L.h: Likewise.
47231         * lib/unictype/categ_Ll.h: Likewise.
47232         * lib/unictype/categ_Lm.h: Likewise.
47233         * lib/unictype/categ_Lo.h: Likewise.
47234         * lib/unictype/categ_Lt.h: Likewise.
47235         * lib/unictype/categ_Lu.h: Likewise.
47236         * lib/unictype/categ_M.h: Likewise.
47237         * lib/unictype/categ_Mc.h: Likewise.
47238         * lib/unictype/categ_Me.h: Likewise.
47239         * lib/unictype/categ_Mn.h: Likewise.
47240         * lib/unictype/categ_N.h: Likewise.
47241         * lib/unictype/categ_Nd.h: Likewise.
47242         * lib/unictype/categ_Nl.h: Likewise.
47243         * lib/unictype/categ_No.h: Likewise.
47244         * lib/unictype/categ_P.h: Likewise.
47245         * lib/unictype/categ_Pc.h: Likewise.
47246         * lib/unictype/categ_Pd.h: Likewise.
47247         * lib/unictype/categ_Pe.h: Likewise.
47248         * lib/unictype/categ_Pf.h: Likewise.
47249         * lib/unictype/categ_Pi.h: Likewise.
47250         * lib/unictype/categ_Po.h: Likewise.
47251         * lib/unictype/categ_Ps.h: Likewise.
47252         * lib/unictype/categ_S.h: Likewise.
47253         * lib/unictype/categ_Sc.h: Likewise.
47254         * lib/unictype/categ_Sk.h: Likewise.
47255         * lib/unictype/categ_Sm.h: Likewise.
47256         * lib/unictype/categ_So.h: Likewise.
47257         * lib/unictype/categ_Z.h: Likewise.
47258         * lib/unictype/categ_Zl.h: Likewise.
47259         * lib/unictype/categ_Zp.h: Likewise.
47260         * lib/unictype/categ_Zs.h: Likewise.
47261         * lib/unictype/categ_of.h: Likewise.
47262         * lib/unictype/combining.h: Likewise.
47263         * lib/unictype/ctype_alnum.h: Likewise.
47264         * lib/unictype/ctype_alpha.h: Likewise.
47265         * lib/unictype/ctype_blank.h: Likewise.
47266         * lib/unictype/ctype_cntrl.h: Likewise.
47267         * lib/unictype/ctype_digit.h: Likewise.
47268         * lib/unictype/ctype_graph.h: Likewise.
47269         * lib/unictype/ctype_lower.h: Likewise.
47270         * lib/unictype/ctype_print.h: Likewise.
47271         * lib/unictype/ctype_punct.h: Likewise.
47272         * lib/unictype/ctype_space.h: Likewise.
47273         * lib/unictype/ctype_upper.h: Likewise.
47274         * lib/unictype/ctype_xdigit.h: Likewise.
47275         * lib/unictype/decdigit.h: Likewise.
47276         * lib/unictype/digit.h: Likewise.
47277         * lib/unictype/mirror.h: Likewise.
47278         * lib/unictype/numeric.h: Likewise.
47279         * lib/unictype/pr_alphabetic.h: Likewise.
47280         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47281         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47282         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47283         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47284         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47285         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47286         * lib/unictype/pr_bidi_control.h: Likewise.
47287         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47288         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47289         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47290         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47291         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47292         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47293         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47294         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47295         * lib/unictype/pr_bidi_pdf.h: Likewise.
47296         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47297         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47298         * lib/unictype/pr_combining.h: Likewise.
47299         * lib/unictype/pr_composite.h: Likewise.
47300         * lib/unictype/pr_currency_symbol.h: Likewise.
47301         * lib/unictype/pr_dash.h: Likewise.
47302         * lib/unictype/pr_decimal_digit.h: Likewise.
47303         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47304         * lib/unictype/pr_deprecated.h: Likewise.
47305         * lib/unictype/pr_diacritic.h: Likewise.
47306         * lib/unictype/pr_extender.h: Likewise.
47307         * lib/unictype/pr_format_control.h: Likewise.
47308         * lib/unictype/pr_grapheme_base.h: Likewise.
47309         * lib/unictype/pr_grapheme_extend.h: Likewise.
47310         * lib/unictype/pr_grapheme_link.h: Likewise.
47311         * lib/unictype/pr_hex_digit.h: Likewise.
47312         * lib/unictype/pr_hyphen.h: Likewise.
47313         * lib/unictype/pr_id_continue.h: Likewise.
47314         * lib/unictype/pr_id_start.h: Likewise.
47315         * lib/unictype/pr_ideographic.h: Likewise.
47316         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47317         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47318         * lib/unictype/pr_ignorable_control.h: Likewise.
47319         * lib/unictype/pr_iso_control.h: Likewise.
47320         * lib/unictype/pr_join_control.h: Likewise.
47321         * lib/unictype/pr_left_of_pair.h: Likewise.
47322         * lib/unictype/pr_line_separator.h: Likewise.
47323         * lib/unictype/pr_logical_order_exception.h: Likewise.
47324         * lib/unictype/pr_lowercase.h: Likewise.
47325         * lib/unictype/pr_math.h: Likewise.
47326         * lib/unictype/pr_non_break.h: Likewise.
47327         * lib/unictype/pr_not_a_character.h: Likewise.
47328         * lib/unictype/pr_numeric.h: Likewise.
47329         * lib/unictype/pr_other_alphabetic.h: Likewise.
47330         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47331         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47332         * lib/unictype/pr_other_id_continue.h: Likewise.
47333         * lib/unictype/pr_other_id_start.h: Likewise.
47334         * lib/unictype/pr_other_lowercase.h: Likewise.
47335         * lib/unictype/pr_other_math.h: Likewise.
47336         * lib/unictype/pr_other_uppercase.h: Likewise.
47337         * lib/unictype/pr_paired_punctuation.h: Likewise.
47338         * lib/unictype/pr_paragraph_separator.h: Likewise.
47339         * lib/unictype/pr_pattern_syntax.h: Likewise.
47340         * lib/unictype/pr_pattern_white_space.h: Likewise.
47341         * lib/unictype/pr_private_use.h: Likewise.
47342         * lib/unictype/pr_punctuation.h: Likewise.
47343         * lib/unictype/pr_quotation_mark.h: Likewise.
47344         * lib/unictype/pr_radical.h: Likewise.
47345         * lib/unictype/pr_sentence_terminal.h: Likewise.
47346         * lib/unictype/pr_soft_dotted.h: Likewise.
47347         * lib/unictype/pr_space.h: Likewise.
47348         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47349         * lib/unictype/pr_titlecase.h: Likewise.
47350         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47351         * lib/unictype/pr_unified_ideograph.h: Likewise.
47352         * lib/unictype/pr_uppercase.h: Likewise.
47353         * lib/unictype/pr_variation_selector.h: Likewise.
47354         * lib/unictype/pr_white_space.h: Likewise.
47355         * lib/unictype/pr_xid_continue.h: Likewise.
47356         * lib/unictype/pr_xid_start.h: Likewise.
47357         * lib/unictype/pr_zero_width.h: Likewise.
47358         * lib/unictype/scripts.h: Likewise.
47359         * lib/unictype/scripts_byname.gperf: Likewise.
47360         * lib/unictype/sy_c_ident.h: Likewise.
47361         * lib/unictype/sy_c_whitespace.h: Likewise.
47362         * lib/unictype/sy_java_ident.h: Likewise.
47363         * lib/unictype/sy_java_whitespace.h: Likewise.
47364
47365         * lib/unictype/Makefile: New file.
47366         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47367         glibc.
47368         * lib/unictype/3level.h: New file, copied from glibc.
47369         * lib/unictype/3levelbit.h: New file.
47370
47371 2007-11-11  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/gperf: New file.
47374         * modules/iconv_open (Depends-on): Add it.
47375         (Makefile.am): Remove the GPERF definition.
47376
47377 2007-11-11  Bruno Haible  <bruno@clisp.org>
47378
47379         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47380         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47381
47382 2007-11-11  Bruno Haible  <bruno@clisp.org>
47383
47384         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47385         (usage): Remove function.
47386
47387 2007-11-11  Bruno Haible  <bruno@clisp.org>
47388
47389         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47390         gl_FUNC_CEILF_LIBS.
47391         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47392         gl_FUNC_CEIL_LIBS.
47393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47394         gl_FUNC_CEILL_LIBS.
47395         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47396         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47397         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47398
47399 2007-11-11  Bruno Haible  <bruno@clisp.org>
47400
47401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47402         roundf were declared but do not exist on functions.
47403         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47404         roundl were declared but do not exist on functions.
47405         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47406         HAVE_FLOORL_AND_CEILL, respectively.
47407         Needed for Sun C on Solaris 10.
47408
47409 2007-11-11  Bruno Haible  <bruno@clisp.org>
47410
47411         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47412         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47413         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47414         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47416         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47417         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47418         HAVE_DECL_ROUNDF.
47419         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47420         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47422         of HAVE_DECL_ROUND*.
47423         * modules/math (Makefile.am): Update.
47424
47425 2007-11-10  Bruno Haible  <bruno@clisp.org>
47426
47427         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47428         ptrdiff_t as m4/intl.m4.
47429
47430 2007-11-10  Jim Meyering  <meyering@redhat.com>
47431
47432         Avoid link failure for the argmatch test.
47433         * tests/test-argmatch.c (usage): Define function to avoid a link
47434         failure: argmatch_die requires a usage function.
47435
47436 2007-11-09  Bruno Haible  <bruno@clisp.org>
47437
47438         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47439         * doc/functions/vsnprintf.texi: Likewise.
47440         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47441         with a size argument < 2.
47442
47443 2007-11-09  Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47446         buffer. Fixes an inefficiency introduced on 2007-11-03.
47447
47448 2007-11-09  Bruno Haible  <bruno@clisp.org>
47449
47450         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47451         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47452
47453 2007-11-08  Jim Meyering  <meyering@redhat.com>
47454
47455         Change cache variable name prefix "jm_" to "gl_" everywhere.
47456         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47457         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47458         * m4/uptime.m4: s/gl_/jm_/
47459
47460 2007-11-07  Bruno Haible  <bruno@clisp.org>
47461
47462         Update to GNU gettext 0.17.
47463         * m4/intl.m4: Update to GNU gettext 0.17.
47464         * m4/po.m4: Likewise.
47465         * modules/gettext (Files): Remove m4/ulonglong.m4.
47466         (configure.ac): Require gettext infrastructure from version 0.17.
47467
47468 2007-11-06  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47471         symbolic values are not defined in a public header.
47472         * lib/freadable.c (freadable) [QNX]: Likewise.
47473         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47474         * lib/freading.c (freading) [QNX]: Likewise.
47475         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47476         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47477         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47478         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47479         Reported by Alain Magloire.
47480
47481         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47482
47483 2007-11-05  Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47486         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47487         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47488         Reported by Eric Blake.
47489
47490 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47491             Bruno Haible  <bruno@clisp.org>
47492
47493         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47494         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47495         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47496         (malloc): Undefine also before including <stdlib.h>.
47497         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47498         Needed on OSF/1 4.0.
47499
47500 2007-11-05  Jim Meyering  <meyering@redhat.com>
47501
47502         git-version-gen: sync from coreutils.
47503         * build-aux/git-version-gen: Add comments.
47504         Change the first '-' to '.' in the snapshot version string,
47505         e.g., 6.9-377-08144 -> 6.9.377-08144
47506         Remove first parameter.
47507         Don't declare a version "-dirty" merely because a time
47508         stamp has changed.
47509
47510 2007-11-04  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/lock.h: Protect all macro definitions containing an 'if'
47513         statement through a "do { ... } while (0)".
47514         * lib/tls.h: Likewise.
47515
47516 2007-11-04  Bruno Haible  <bruno@clisp.org>
47517
47518         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47519
47520 2007-11-04  Bruno Haible  <bruno@clisp.org>
47521
47522         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47523         * modules/fprintf-posix (Depends-on): Add nocrash.
47524         * modules/snprintf-posix (Depends-on): Likewise.
47525         * modules/sprintf-posix (Depends-on): Likewise.
47526         * modules/vasnprintf-posix (Depends-on): Likewise.
47527         * modules/vasprintf-posix (Depends-on): Likewise.
47528         * modules/vfprintf-posix (Depends-on): Likewise.
47529         * modules/vsnprintf-posix (Depends-on): Likewise.
47530         * modules/vsprintf-posix (Depends-on): Likewise.
47531         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47532         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47533         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47535         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47538
47539 2007-11-04  Bruno Haible  <bruno@clisp.org>
47540
47541         * modules/nocrash: New file.
47542         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47543         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47544
47545 2007-11-04  Bruno Haible  <bruno@clisp.org>
47546
47547         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47548         precision handling.
47549         * tests/test-vasprintf-posix.c (test_function): Likewise.
47550         * tests/test-snprintf-posix.h (test_function): Likewise.
47551         * tests/test-sprintf-posix.h (test_function): Likewise.
47552
47553         Fix *printf behaviour for large precisions on mingw and BeOS.
47554         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47555         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47557         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47559         gl_PRINTF_PRECISION and test its result. Invoke
47560         gl_PREREQ_VASNPRINTF_PRECISION.
47561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47568         * doc/functions/fprintf.texi: Update.
47569         * doc/functions/printf.texi: Update.
47570         * doc/functions/snprintf.texi: Update.
47571         * doc/functions/sprintf.texi: Update.
47572         * doc/functions/vfprintf.texi: Update.
47573         * doc/functions/vprintf.texi: Update.
47574         * doc/functions/vsnprintf.texi: Update.
47575         * doc/functions/vsprintf.texi: Update.
47576
47577 2007-11-04  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47580
47581 2007-11-04  Bruno Haible  <bruno@clisp.org>
47582
47583         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47584         Reported by Sylvain Beucler <beuc@gnu.org>.
47585
47586 2007-11-03  Bruno Haible  <bruno@clisp.org>
47587
47588         * tests/test-fprintf-posix2.sh: New file.
47589         * tests/test-fprintf-posix2.c: New file.
47590         * modules/fprintf-posix-tests (Files): Add them.
47591         (TESTS): Add test-fprintf-posix2.sh.
47592         (configure.ac): Check for getrlimit and setrlimit.
47593         (check_PROGRAMS): Add test-fprintf-posix2.
47594
47595         * tests/test-printf-posix2.sh: New file.
47596         * tests/test-printf-posix2.c: New file.
47597         * modules/printf-posix-tests (Files): Add them.
47598         (TESTS): Add test-printf-posix2.sh.
47599         (configure.ac): Check for getrlimit and setrlimit.
47600         (check_PROGRAMS): Add test-printf-posix2.
47601
47602         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47603         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47604         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47605         (decode_double): New function, copied from decode_long_double.
47606         (scale10_round_decimal_decoded): New function, extracted from
47607         scale10_round_decimal_long_double.
47608         (scale10_round_decimal_long_double): Use it.
47609         (scale10_round_decimal_double): New function.
47610         (floorlog10): New function.
47611         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47613         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47615         gl_PRINTF_ENOMEM and test its result. Invoke
47616         gl_PREREQ_VASNPRINTF_ENOMEM.
47617         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47620         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47621         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47623         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47624         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47625         * modules/snprintf-posix (Depends-on): Likewise.
47626         * modules/sprintf-posix (Depends-on): Likewise.
47627         * modules/vasnprintf-posix (Depends-on): Likewise.
47628         * modules/vasprintf-posix (Depends-on): Likewise.
47629         * modules/vfprintf-posix (Depends-on): Likewise.
47630         * modules/vsnprintf-posix (Depends-on): Likewise.
47631         * modules/vsprintf-posix (Depends-on): Likewise.
47632         * doc/functions/fprintf.texi: Update.
47633         * doc/functions/printf.texi: Update.
47634         * doc/functions/snprintf.texi: Update.
47635         * doc/functions/sprintf.texi: Update.
47636         * doc/functions/vfprintf.texi: Update.
47637         * doc/functions/vprintf.texi: Update.
47638         * doc/functions/vsnprintf.texi: Update.
47639         * doc/functions/vsprintf.texi: Update.
47640
47641 2007-11-03  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/frexp-nolibm-tests: New file.
47644
47645         * modules/frexp-nolibm: New file.
47646         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47647
47648 2007-11-03  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47651         value is C99 compliant.
47652         Needed for OSF/1 5.1.
47653
47654 2007-11-03  Bruno Haible  <bruno@clisp.org>
47655
47656         Fix out-of-memory handling of vasnprintf.
47657         * lib/printf-parse.c: Include <errno.h>.
47658         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47659         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47660         is already set.
47661
47662 2007-11-02  Eric Blake  <ebb9@byu.net>
47663
47664         Fix tests on cygwin.
47665         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47666
47667 2007-11-01  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47670         warning.
47671         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47672         needed for POSIX compatibility.
47673
47674 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47675
47676         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47677         for compatibility with GNU.
47678
47679 2007-11-01  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47682         (putenv): Renamed from rpl_putenv. Change argument type from
47683         'const char *' to 'char *'.
47684         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47685         of defining putenv in config.h, just set REPLACE_PUTENV.
47686         * modules/putenv (Depends-on): Add stdlib.
47687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47688         (Include): Use <stdlib.h>.
47689         * lib/stdlib.in.h (putenv): New declaration.
47690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47691         REPLACE_PUTENV.
47692         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47693         REPLACE_PUTENV.
47694         Needed for MacOS X 10.5.0.
47695         Reported by Peter O'Gorman <peter@pogma.com>.
47696
47697 2007-11-01  Jim Meyering  <meyering@redhat.com>
47698
47699         Treat an empty date string exactly like "0".
47700         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47701         if the remaining date string (to be parsed) is empty, use "0".
47702         Reported by Mischa Molhoek and discussed in this thread:
47703         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47704
47705 2007-10-31  Bruno Haible  <bruno@clisp.org>
47706
47707         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47708         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47709         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47710         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47711         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47712         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47713
47714 2007-10-31  Bruno Haible  <bruno@clisp.org>
47715
47716         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47717         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47718         (AC_TYPE_LONG_LONG_INT): Use it.
47719         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47720         it as well.
47721         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47722         to m4/longlong.m4.
47723         * modules/stdint (Files): Remove m4/ulonglong.m4.
47724         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47725         m4/ulonglong.m4.
47726         * modules/strtoumax (Files): Likewise.
47727
47728 2007-10-30  Bruno Haible  <bruno@clisp.org>
47729
47730         * modules/xvasprintf-posix: New file.
47731         Suggested by Eric Blake.
47732
47733 2007-10-30  Bruno Haible  <bruno@clisp.org>
47734
47735         * modules/xprintf-posix-tests: New file.
47736         * tests/test-xprintf-posix.sh: New file.
47737         * tests/test-xprintf-posix.c: New file.
47738         * tests/test-xfprintf-posix.c: New file.
47739
47740         * modules/xprintf-posix: New file.
47741
47742 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47743
47744         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47745         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47746         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47747
47748 2007-10-29  Bruno Haible  <bruno@clisp.org>
47749
47750         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47751         contain the special marker '_cv_'.
47752         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47753         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47754         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47755         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47756         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47757         Reported by Ralf Wildenhues.
47758
47759 2007-10-29  Bruno Haible  <bruno@clisp.org>
47760
47761         * gnulib-tool (func_import): When --lgpl is not specified, set
47762         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47763         GPLv3.
47764         Reported by Simon Josefsson.
47765
47766 2007-10-28  Bruno Haible  <bruno@clisp.org>
47767
47768         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47769         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47770         HAVE_DECL_ISFINITE.
47771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47772         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47773         HAVE_DECL_ISFINITE.
47774
47775 2007-10-28  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47778         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47779
47780 2007-10-28  Bruno Haible  <bruno@clisp.org>
47781
47782         Fix link errors with Sun C 5.0 on Solaris 10.
47783         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47784         function is declared but not present in the compiler's libm.
47785         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47786         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47787         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47788         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47789         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47790         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47791         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47793         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47794         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47795         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47796         HAVE_DECL_FLOORL.
47797
47798 2007-10-28  Bruno Haible  <bruno@clisp.org>
47799
47800         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47801         gl_FUNC_FLOORL. Cache the result.
47802         (gl_FUNC_FLOORL): Use it.
47803         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47804         gl_FUNC_CEILL. Cache the result.
47805         (gl_FUNC_CEILL): Use it.
47806
47807         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47808         gl_FUNC_FLOOR. Cache the result.
47809         (gl_FUNC_FLOOR): Use it.
47810         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47811         gl_FUNC_CEIL. Cache the result.
47812         (gl_FUNC_CEIL): Use it.
47813
47814         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47815         gl_FUNC_FLOORF. Cache the result.
47816         (gl_FUNC_FLOORF): Use it.
47817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47818         gl_FUNC_CEILF. Cache the result.
47819         (gl_FUNC_CEILF): Use it.
47820
47821 2007-10-28  Bruno Haible  <bruno@clisp.org>
47822
47823         * gnulib-tool: Allow specifying the LGPL version number through
47824         --lgpl=2 or --lgpl=3.
47825         (func_usage): Document --lgpl with argument.
47826         Handle --lgpl=... arguments.
47827         (func_import): Recognize also gl_LGPL calls with an argument. When
47828         --lgpl=2 is used and the module's license is just LGPL, report an
47829         error. Set sed_transform_lib_file according to the lgpl variable. In
47830         the generated files, use --lgpl or gl_LGPL invocations with argument,
47831         if necessary.
47832         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47833         an LGPv2+ license.
47834         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47835         gl_LGPL macro.
47836
47837 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47838             Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47841         (u16_uctomb_aux): Likewise.
47842         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47843         !HAVE_INLINE.
47844         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47845
47846 2007-10-28  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47849         Invoke AM_GETTEXT_OPTION if it exists.
47850         * modules/vasprintf: Likewise.
47851         * modules/verror: Likewise.
47852         * modules/xprintf: Likewise.
47853         * modules/xvasprintf: Likewise.
47854
47855 2007-10-27  Ben Pfaff  <blp@gnu.org>
47856
47857         * lib/math.in.h: Define isfinite macro and prototypes for
47858         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47859         implementations.
47860         * m4/math_h.m4: New substitutions for isfinite module.
47861         * lib/isfinite.c: New file.
47862         * m4/isfinite.m4: New file.
47863         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47864         * modules/isfinite: New file.
47865         * modules/isfinite-tests: New file.
47866         * tests/tests-isfinite.c: New file.
47867         * doc/functions/isfinite.texi: Mention isfinite module.
47868         * MODULES.html.sh: Mention new module.
47869
47870 2007-10-27  Ben Pfaff  <blp@gnu.org>
47871
47872         Ralf Wildenhues reported that Tru64 4.0D declares the round
47873         functions but does not have definitions.
47874         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47875         cannot be found in any library, set the output variable to
47876         "missing" instead of "".
47877         * m4/round.m4: Also use our substitute if we cannot find round in
47878         any library, even if it is declared.
47879         * m4/roundf.m4: Likewise for roundf.
47880         * m4/roundl.m4: Likewise for roundl.
47881         * lib/math.in.h: Undefine roundf, round, roundl before defining
47882         their replacements, to allow for hypothetical systems where these
47883         may be defined as macros but not available in libraries.
47884
47885 2007-10-27  Bruno Haible  <bruno@clisp.org>
47886
47887         * doc/gnulib.texi: Invoke @firstparagraphindent.
47888         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47889         changes in gnulib.
47890         (Source changes): New section.
47891
47892 2007-10-26  Bruno Haible  <bruno@clisp.org>
47893
47894         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47895         borrowed from autoconf.
47896
47897 2007-10-26  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47900         strerror returned the empty string. Needed on HP-UX 11.00.
47901
47902 2007-10-24  Micah Cowan  <micah@cowan.name>
47903
47904         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47905         * build-aux/bootstrap: Remove support for now-unnecessary option,
47906         --cvs-user, and envvars CVS_USER, CVS_RSH.
47907
47908 2007-10-24  Jim Meyering  <meyering@redhat.com>
47909
47910         Avoid diagnostics from sha1sum when there is no cached checksum.
47911         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47912         if the po.s1 file hasn't been created yet.
47913
47914         * build-aux/bootstrap: Sync from coreutils:
47915         2007-10-24  Jim Meyering  <meyering@redhat.com>
47916         Get gnulib from the git repository, not from an obsolete cvs one.
47917         * build-aux/bootstrap: Suggestion from Micah Cowan.
47918         2007-10-04  Jim Meyering  <jim@meyering.net>
47919         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47920         (update_po_files): Work also when there are no .po files in po/.
47921
47922 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47923
47924         * README: Append ".git" to git and cg examples.
47925         Problem reported by Benoit Sigoure.
47926
47927 2007-10-23  Micah Cowan  <micah@cowan.name>
47928
47929         * users.txt: Add wget.
47930
47931 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47932
47933         Fix linking of some unistdio tests on FreeBSD.
47934         * modules/unistdio/u16-vsnprintf-tests
47935         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47936         * modules/unistdio/u16-vsprintf-tests
47937         (test_u16_vsnprintf1_LDADD): Likewise.
47938         * modules/unistdio/u32-vsnprintf-tests
47939         (test_u32_vsnprintf1_LDADD): Likewise.
47940         * modules/unistdio/u32-vsprintf-tests
47941         (test_u32_vsprintf1_LDADD): Likewise.
47942         * modules/unistdio/u8-vsnprintf-tests
47943         (test_u8_vsnprintf1_LDADD): Likewise.
47944         * modules/unistdio/u8-vsprintf-tests
47945         (test_u8_vsprintf1_LDADD): Likewise.
47946         * modules/unistdio/ulc-vsnprintf-tests
47947         (test_ulc_vsnprintf1_LDADD): Likewise.
47948         * modules/unistdio/ulc-vsprintf-tests
47949         (test_ulc_vsprintf1_LDADD): Likewise.
47950
47951         Fix linking of some uniconv tests on FreeBSD.
47952         * modules/uniconv/u16-conv-from-enc-tests
47953         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47954         * modules/uniconv/u16-conv-to-enc-tests
47955         (test_u16_conv_to_enc_LDADD): Likewise.
47956         * modules/uniconv/u16-strconv-from-enc-tests
47957         (test_u16_strconv_from_enc_LDADD): Likewise.
47958         * modules/uniconv/u16-strconv-to-enc-tests
47959         (test_u16_strconv_to_enc_LDADD): Likewise.
47960         * modules/uniconv/u32-conv-from-enc-tests
47961         (test_u32_conv_from_enc_LDADD): Likewise.
47962         * modules/uniconv/u32-conv-to-enc-tests
47963         (test_u32_conv_to_enc_LDADD): Likewise.
47964         * modules/uniconv/u32-strconv-from-enc-tests
47965         (test_u32_strconv_from_enc_LDADD): Likewise.
47966         * modules/uniconv/u32-strconv-to-enc-tests
47967         (test_u32_strconv_to_enc_LDADD): Likewise.
47968         * modules/uniconv/u8-conv-from-enc-tests
47969         (test_u8_conv_from_enc_LDADD): Likewise.
47970         * modules/uniconv/u8-conv-to-enc-tests
47971         (test_u8_conv_to_enc_LDADD): Likewise.
47972         * modules/uniconv/u8-strconv-from-enc-tests
47973         (test_u8_strconv_from_enc_LDADD): Likewise.
47974         * modules/uniconv/u8-strconv-to-enc-tests
47975         (test_u8_strconv_to_enc_LDADD): Likewise.
47976
47977 2007-10-22  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47980         size.
47981
47982 2007-10-22  Eric Blake  <ebb9@byu.net>
47983
47984         Tweak x*printf documentation.
47985         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47986         variable name and comments.
47987         Suggested by Bruno Haible.
47988
47989 2007-10-22  Bruno Haible  <bruno@clisp.org>
47990
47991         * lib/acl.c (copy_acl): Fix file name in comment.
47992
47993 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47994
47995         Fix Tru64 problem with stdbool.h.
47996         * lib/stdbool.in.h (false, true):
47997         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47998         Don't declare as an enum in this situation; it runs afoul of Tru64.
47999         Problem reported by Steven M. Schweda in
48000         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48001
48002 2007-10-22  Eric Blake  <ebb9@byu.net>
48003
48004         Also wrap vf?printf.
48005         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48006         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48007         (xvprintf, xvfprintf): New functions.
48008
48009 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48010
48011         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48012         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48013
48014         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48015         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48016
48017 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48020         by Bruno Haible.
48021
48022 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48023
48024         * lib/getloadavg.c
48025         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48026         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48027
48028         * tests/test-i-ring.c: Work for C89.
48029
48030 2007-10-22  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48033         -1u, in preprocessor expression, so that we don't test for the bug
48034         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48036
48037 2007-10-22  Eric Blake  <ebb9@byu.net>
48038
48039         * tests/test-yesno.sh: Silence stderr during test.
48040
48041 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48042
48043         * modules/crypto/gc-camellia: New file.
48044
48045         * m4/gc-camellia.m4: New file.
48046
48047         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48048
48049         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48050
48051 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48052
48053         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48054         --help to stdout.  Reported by sms@antinode.org (Steven
48055         M. Schweda).
48056
48057 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48058
48059         * users.txt: Fix link to libksba.
48060
48061 2007-10-21  Ben Pfaff  <blp@gnu.org>
48062
48063         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48064         round.c roundf implementation that depends on floorf and ceilf to
48065         be tested unconditionally.
48066
48067 2007-10-21  Ben Pfaff  <blp@gnu.org>
48068
48069         * m4/check-libm-func.m4: Removed.
48070         * m4/check-math-lib.m4: New file.
48071         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48072         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48073         definition and lack of AC_LIBOBJ([roundf]).
48074         * m4/roundl.m4: Ditto, and similarly for roundl.
48075         * modules/round: Reference new m4 file.
48076         * modules/roundf: Ditto.
48077         * modules/roundl: Ditto.
48078         * tests/test-round2.c (main): Use ROUND instead of round.
48079         Bug report from Bruno Haible.
48080
48081 2007-10-21  Bruno Haible  <bruno@clisp.org>
48082
48083         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48084         context.
48085
48086 2007-10-21  Bruno Haible  <bruno@clisp.org>
48087
48088         * tests/test-wcwidth.c (main): Allow negative result for some control
48089         characters.
48090
48091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48092         Needed on OSF/1 5.1.
48093
48094 2007-10-21  Bruno Haible  <bruno@clisp.org>
48095
48096         * tests/test-floorf1.c: Include isnanf.h.
48097         (main): Use isnanf() instead of isnan().
48098         * tests/test-ceilf1.c: Include isnanf.h.
48099         (main): Use isnanf() instead of isnan().
48100         * tests/test-truncf1.c: Include isnanf.h.
48101         (main): Use isnanf() instead of isnan().
48102         * tests/test-roundf1.c: Include isnanf.h.
48103         (main): Use isnanf() instead of isnan().
48104
48105 2007-10-21  Eric Blake  <ebb9@byu.net>
48106
48107         * users.txt: Update URL for m4.
48108
48109 2007-10-21  Bruno Haible  <bruno@clisp.org>
48110
48111         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48112
48113 2007-10-21  Bruno Haible  <bruno@clisp.org>
48114
48115         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48116         Git's management files if the CVS files are not present.
48117
48118 2007-10-20  Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48121         gcc-3.4.x.
48122
48123 2007-10-20  Ben Pfaff  <blp@gnu.org>
48124
48125         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48126         implementations.
48127         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48128         * lib/round.c: New file.
48129         * lib/roundf.c: New file.
48130         * lib/roundl.c: New file.
48131         * m4/round.m4: New file.
48132         * m4/roundf.m4: New file.
48133         * m4/roundl.m4: New file.
48134         * m4/check-libm-func-m4: New file.
48135         * modules/math: Replace round, roundf, roundl related @VARS@ in
48136         math.in.h.
48137         * modules/round: New file.
48138         * modules/round-tests: New file.
48139         * modules/roundf: New file.
48140         * modules/roundf-tests: New file.
48141         * modules/roundl: New file.
48142         * modules/roundl-tests: New file.
48143         * tests/test-round1.c: New file.
48144         * tests/test-round2.c: New file.
48145         * tests/test-roundf1.c: New file.
48146         * tests/test-roundf2.c: New file.
48147         * tests/test-roundl.c: New file.
48148         * doc/functions/round.texi: Mention round module.
48149         * doc/functions/roundf.texi: Mention roundf module.
48150         * doc/functions/roundl.texi: Mention roundl module.
48151         * MODULES.html.sh: Mention new modules.
48152         Thanks to Bruno Haible for suggestions.
48153
48154 2007-10-20  Jim Meyering  <meyering@redhat.com>
48155
48156         * lib/xprintf.c: Include <config.h> unconditionally.
48157
48158         Change xprintf's license to GPL.
48159         * modules/xprintf (License): s/LGPL/GPL/, since this module
48160         depends on modules (exit and exitfail) which are GPL.
48161         Suggestion from Bruno Haible.
48162
48163         xprintf fixes.
48164         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48165         Use a clearer diagnostic.
48166         Patch from Bruno Haible.
48167
48168 2007-10-20  Bruno Haible  <bruno@clisp.org>
48169
48170         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48171         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48173
48174 2007-10-20  Bruno Haible  <bruno@clisp.org>
48175
48176         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48177         precision in the comparison result > x - 1 or similar.
48178         * tests/test-ceilf2.c (correct_result_p): Likewise.
48179         * tests/test-truncf2.c (correct_result_p): Likewise.
48180         * tests/test-trunc2.c (correct_result_p): Likewise.
48181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48182
48183 2007-10-20  Bruno Haible  <bruno@clisp.org>
48184
48185         * modules/ceil: New file.
48186         * m4/ceil.m4: New file.
48187         * doc/functions/ceil.texi: Mention the 'ceil' module.
48188
48189 2007-10-20  Bruno Haible  <bruno@clisp.org>
48190
48191         * modules/floor: New file.
48192         * m4/floor.m4: New file.
48193         * doc/functions/floor.texi: Mention the 'floor' module.
48194
48195 2007-10-20  Bruno Haible  <bruno@clisp.org>
48196
48197         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48198         of %a.
48199         * modules/floorf-tests (Depends-on): Likewise.
48200         * modules/truncf-tests (Depends-on): Likewise.
48201         * modules/trunc-tests (Depends-on): Likewise.
48202         Reported by Ben Pfaff.
48203
48204 2007-10-19  Jim Meyering  <meyering@redhat.com>
48205
48206         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48207         Don't bother testing specific errno values.  Just test ferror.
48208
48209         New module: xprintf
48210         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48211
48212 2007-10-19  Bruno Haible  <bruno@clisp.org>
48213
48214         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48215         syntax.
48216         * modules/javaexec (Makefile.am): Likewise.
48217         * modules/relocatable-prog (Makefile.am): Likewise.
48218         Suggested by Jim Meyering.
48219
48220 2007-10-18  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48223         Reported by Jim Meyering.
48224
48225 2007-10-18  Eric Blake  <ebb9@byu.net>
48226
48227         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48228
48229 2007-10-18  Bruno Haible  <bruno@clisp.org>
48230
48231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48232         the format string into writable memory. Needed in Fortify conditions.
48233
48234 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48235             Bruno Haible  <bruno@clisp.org>
48236
48237         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48238         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48239         * modules/trim (Depends-on): Add mbchar.
48240         (configure.ac): Add gl_FUNC_MBRTOWC.
48241         (Makefile.am): Augment lib_SOURCES.
48242
48243 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48244
48245         Modify glob.c to use fstatat and dirfd, to simplify it.
48246         Suggested by Eric Blake.
48247         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48248         Don't include <stdbool.h>; not used.
48249         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48250         (link_exists_p): Simplify implementation, since we can now assume
48251         dirfd and fstatat.
48252         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48253
48254 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48255
48256         * gnulib-tool (func_get_dependencies): Fix sed script to
48257         match only tests.
48258
48259 2007-10-17  Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48262         allow locale names without encoding suffix.
48263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48264         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48265
48266 2007-10-16  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48269         * lib/getgroups.c (getgroups): Likewise.
48270         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48271
48272 2007-10-16  Bruno Haible  <bruno@clisp.org>
48273
48274         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48275         * modules/malloc-posix (License): Likewise.
48276         * modules/realloc-posix (License): Likewise.
48277         * modules/calloc-posix (License): Likewise.
48278         * modules/intprops (License): Change from GPL to LGPL, with
48279         Paul Eggert's approval.
48280
48281 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         Merge glibc changes into lib/glob.c.
48284
48285         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48286         2007-10-15 04:59:03 UTC.  Here are the changes:
48287
48288         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48289
48290         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48291
48292         * lib/glob.c: Add some branch prediction throughout.
48293
48294         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48295
48296         [BZ #5103]
48297         * lib/glob.c (glob): Recognize patterns starting \/.
48298
48299         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48300
48301         [BZ #3996]
48302         * lib/glob.c (attribute_hidden): Define if not defined.
48303         (glob): Unescape dirname, filename or username when needed and not
48304         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48305         is NULL.  Handle unescaped [ in pattern without closing ].
48306         Don't pass GLOB_CHECK down to recursive glob for directories.
48307         (__glob_pattern_type): New function.
48308         (__glob_pattern_p): Implement using __glob_pattern_type.
48309         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48310         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48311         Remove unreachable code.
48312
48313         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48314
48315         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48316         explain why there are no leaks.
48317
48318         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48319
48320         [BZ #3253]
48321         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48322         time, rather allocate increasingly bigger arrays of pointers, if
48323         possible with alloca, if too large with malloc.
48324
48325 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48326
48327         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48328         Problem reported by H.Merijn Brand in
48329         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48330         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48331         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48332
48333 2007-10-15  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48336         with explicit rpl_ prefix.
48337         * lib/fopen.c (fopen): Likewise.
48338         * lib/freopen.c (freopen): Likewise.
48339         * lib/iconv.c (iconv): Likewise.
48340         * lib/iconv_close.c (iconv_close): Likewise.
48341
48342 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48343
48344         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48345
48346 2007-10-15  Bruno Haible  <bruno@clisp.org>
48347
48348         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48349         <stddef.h> instead of <stdlib.h> since we only need NULL.
48350         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48351
48352 2007-10-15  Bruno Haible  <bruno@clisp.org>
48353
48354         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48355         Replace paragraph talking about LIBOBJS.
48356         Reported by Colin Watson <cjwatson@debian.org>.
48357
48358 2007-10-15  Bruno Haible  <bruno@clisp.org>
48359
48360         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48361         <stdlib.h> before using NULL.
48362
48363 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48364
48365         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48366         Reported by Albert Chin <china@thewrittenword.com>.
48367
48368 2007-10-14  Bruno Haible  <bruno@clisp.org>
48369
48370         * modules/iconv_open-utf-tests: New file.
48371         * tests/test-iconv-utf.c: New file.
48372
48373         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48374         * modules/iconv_open-utf: New file.
48375         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48376         (iconv, iconv_close): New declarations.
48377         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48378         be defined.
48379         (iconv_open): Add special handling of conversion between UTF-8 and
48380         UTF-{16,32}{BE,LE}.
48381         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48382         * lib/iconv_close.c: New file.
48383         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48384         gl_FUNC_ICONV_OPEN.
48385         (gl_FUNC_ICONV_OPEN): Use it.
48386         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48387         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48388         and REPLACE_ICONV_UTF.
48389         * modules/iconv_open (Depends-on): Add c-strcase.
48390         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48391         ICONV_CONST.
48392         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48393
48394 2007-10-13  Albert Chin  <china@thewrittenword.com>
48395             Bruno Haible  <bruno@clisp.org>
48396
48397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48398         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48399
48400 2007-10-13  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48403         defined, use the ISO C99 inline semantics.
48404         * lib/argp.h (ARGP_EI): Likewise.
48405
48406 2007-10-13  Bruno Haible  <bruno@clisp.org>
48407
48408         Handle 'inline' change in gcc 4.3.0.
48409         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48410         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48411         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48412         argp_fmtstream_point): Disable 'extern' declaration if the function
48413         definition is going to be provided inline.
48414         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48415         semantics, not the ISO C99 inline semantics.
48416         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48417         'extern' declaration if the function definition is going to be provided
48418         inline.
48419         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48420         the GNU C inline semantics, not the ISO C99 inline semantics. With
48421         GCC 4.2, avoid a warning.
48422
48423 2007-10-13  Bruno Haible  <bruno@clisp.org>
48424
48425         * lib/freading.h (freading): Enable the use of __freading for
48426         glibc >= 2.7.
48427         * lib/freading.c (freading): Likewise.
48428
48429 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48432         "warning: C99 inline functions are not supported; using GNU89".
48433
48434 2007-10-12  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48437         of 2.
48438         * tests/test-ceilf2.c: New file.
48439         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48440
48441         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48442         * modules/ceilf-tests: Update.
48443
48444 2007-10-12  Bruno Haible  <bruno@clisp.org>
48445
48446         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48447         of 2.
48448         * tests/test-floorf2.c: New file.
48449         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48450
48451         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48452         * modules/floorf-tests: Update.
48453
48454 2007-10-12  Bruno Haible  <bruno@clisp.org>
48455
48456         * tests/test-trunc2.c: New file.
48457         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48458
48459         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48460         * modules/trunc-tests: Update.
48461
48462 2007-10-12  Bruno Haible  <bruno@clisp.org>
48463
48464         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48465         of 2.
48466         * tests/test-truncf2.c: New file.
48467         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48468
48469         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48470         * modules/truncf-tests: Update.
48471
48472 2007-10-11  Eric Blake  <ebb9@byu.net>
48473
48474         Don't claim strerror is broken on Interix.
48475         * doc/functions/strerror.texi (strerror): Known broken systems are
48476         now Solaris 8, and not Interix.
48477         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48478         Interix on cross-compile.
48479         Reported by Martin Koeppe in
48480         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48481
48482 2007-10-11  Bruno Haible  <bruno@clisp.org>
48483
48484         * modules/i-ring-tests: New file.
48485         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48486         instead of assert.
48487
48488 2007-10-11  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/filenamecat-tests: New file.
48491         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48492         * lib/filenamecat.c: Remove test code.
48493
48494 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48495
48496         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48497
48498         * lib/strerror.c: Include <string.h> always, to test interface,
48499         and to remove the need for the dummy.
48500         Include intprops.h to compute width instead of doing it ourselves
48501         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48502         (strerror): Define it to return NULL if there's no system strerror.
48503         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48504         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48505         ancient pre-strerror Unix systems well any more.  Saying "unknown
48506         system error" is enough.
48507         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48508         simpler strerror.c implementation.
48509         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48510         Simplify the tests to reflect the simpler strerror implementation.
48511         * modules/strerror (Depends-on): Add intprops.
48512
48513 2007-10-09  Eric Blake  <ebb9@byu.net>
48514
48515         Silence test-fpending.
48516         * modules/fpending-tests (Files): Add wrapper script.
48517         * tests/test-fpending.sh: New file.
48518
48519 2007-10-09  Bruno Haible  <bruno@clisp.org>
48520
48521         * MODULES.html.sh (func_module): Don't create a hyperlink for
48522         function names like 'printf_frexp'.
48523         (Misc): Add crc, memxor.
48524         (Characteristics of floating types): New section.
48525         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48526         isnanf-nolibm, signbit, trunc, truncf, truncl.
48527         (Enhancements for ISO C 99 functions): New subsection Input/output.
48528         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48529         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48530         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48531         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48532         (Enhancements for POSIX:2001 functions): Add chdir-long.
48533         (File system functions): Add areadlink, chdir-safer, read-file.
48534         Remove cycle-check.
48535         (File system as inode set): New section.
48536         (Date and time): Add gethrxtime.
48537         (Multithreading): Add openmp.
48538         (Internationalization functions): Add localename.
48539         (Unicode string functions): Add unistr/u*-mbsnlen.
48540         (Support for maintaining and releasing projects): Add git-version-gen.
48541         (Lone files): Remove directories.
48542
48543 2007-10-08  Ben Pfaff  <blp@gnu.org>
48544
48545         * lib/xmalloca.h: Fix typo in comment.
48546
48547 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48548
48549         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48550         when avoiding problems with integer overflow.  Use a portable test
48551         instead.
48552
48553 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48554
48555         * modules/dummy (License): Change to LGPLv2+.
48556         * modules/float (License): Likewise
48557         * modules/realloc (License): Likewise
48558         * modules/stdlib (License): Likewise
48559
48560 2007-10-07  Bruno Haible  <bruno@clisp.org>
48561
48562         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48563         * floor.c (TWO_MANT_DIG): Likewise.
48564         * ceil.c (TWO_MANT_DIG): Likewise.
48565         Reported by Ben Pfaff.
48566
48567 2007-10-07  Bruno Haible  <bruno@clisp.org>
48568
48569         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48570         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48571         * lib/frexp.c (FUNC): Likewise.
48572         * lib/printf-frexp.h (printf_frexp): Likewise.
48573         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48574         * lib/printf-frexp.c (FUNC): Likewise.
48575         Suggested by Jim Meyering.
48576
48577 2007-10-07  Jim Meyering  <meyering@redhat.com>
48578
48579         Make xnanosleep's integer overflow test more robust.
48580         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48581         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48582
48583 2007-10-07  Bruno Haible  <bruno@clisp.org>
48584
48585         * NEWS: Mention the license change.
48586
48587         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48588         abbreviations in the modules files.
48589
48590         Change copyright notice from GPLv2+ to GPLv3+.
48591         * README: Change copyright notice.
48592         * MODULES.html.sh: Likewise.
48593         * build-aux/bootstrap.conf: Likewise.
48594         * build-aux/config.libpath: Likewise.
48595         * build-aux/csharpcomp.sh.in: Likewise.
48596         * build-aux/csharpexec.sh.in: Likewise.
48597         * build-aux/install-reloc: Likewise.
48598         * build-aux/javacomp.sh.in: Likewise.
48599         * build-aux/javaexec.sh.in: Likewise.
48600         * build-aux/ldd.sh.in: Likewise.
48601         * build-aux/reloc-ldflags: Likewise.
48602         * build-aux/relocatable.sh.in: Likewise.
48603         * build-aux/x-to-1.in: Likewise.
48604         * check-module: Likewise.
48605         * config/srclistvars.sh: Likewise.
48606         * gnulib-tool: Likewise.
48607         * lib/acl-internal.h: Likewise.
48608         * lib/acl.c: Likewise.
48609         * lib/acl.h: Likewise.
48610         * lib/acl_entries.c: Likewise.
48611         * lib/areadlink-with-size.c: Likewise.
48612         * lib/areadlink.c: Likewise.
48613         * lib/areadlink.h: Likewise.
48614         * lib/argmatch.c: Likewise.
48615         * lib/argmatch.h: Likewise.
48616         * lib/argp-ba.c: Likewise.
48617         * lib/argp-eexst.c: Likewise.
48618         * lib/argp-fmtstream.c: Likewise.
48619         * lib/argp-fmtstream.h: Likewise.
48620         * lib/argp-fs-xinl.c: Likewise.
48621         * lib/argp-help.c: Likewise.
48622         * lib/argp-namefrob.h: Likewise.
48623         * lib/argp-parse.c: Likewise.
48624         * lib/argp-pin.c: Likewise.
48625         * lib/argp-pv.c: Likewise.
48626         * lib/argp-pvh.c: Likewise.
48627         * lib/argp-xinl.c: Likewise.
48628         * lib/argp.h: Likewise.
48629         * lib/at-func.c: Likewise.
48630         * lib/atanl.c: Likewise.
48631         * lib/backupfile.c: Likewise.
48632         * lib/backupfile.h: Likewise.
48633         * lib/basename.c: Likewise.
48634         * lib/binary-io.h: Likewise.
48635         * lib/byteswap.in.h: Likewise.
48636         * lib/c-stack.c: Likewise.
48637         * lib/c-stack.h: Likewise.
48638         * lib/c-strcasestr.c: Likewise.
48639         * lib/c-strcasestr.h: Likewise.
48640         * lib/c-strstr.c: Likewise.
48641         * lib/c-strstr.h: Likewise.
48642         * lib/c-strtod.c: Likewise.
48643         * lib/calloc.c: Likewise.
48644         * lib/canon-host.c: Likewise.
48645         * lib/canon-host.h: Likewise.
48646         * lib/canonicalize-lgpl.c: Likewise.
48647         * lib/canonicalize.c: Likewise.
48648         * lib/canonicalize.h: Likewise.
48649         * lib/ceil.c: Likewise.
48650         * lib/ceilf.c: Likewise.
48651         * lib/ceill.c: Likewise.
48652         * lib/chdir-long.c: Likewise.
48653         * lib/chdir-long.h: Likewise.
48654         * lib/chdir-safer.c: Likewise.
48655         * lib/chdir-safer.h: Likewise.
48656         * lib/chown.c: Likewise.
48657         * lib/classpath.c: Likewise.
48658         * lib/classpath.h: Likewise.
48659         * lib/clean-temp.c: Likewise.
48660         * lib/clean-temp.h: Likewise.
48661         * lib/cloexec.c: Likewise.
48662         * lib/close-stream.c: Likewise.
48663         * lib/closein.c: Likewise.
48664         * lib/closein.h: Likewise.
48665         * lib/closeout.c: Likewise.
48666         * lib/closeout.h: Likewise.
48667         * lib/concat-filename.c: Likewise.
48668         * lib/copy-file.c: Likewise.
48669         * lib/copy-file.h: Likewise.
48670         * lib/count-one-bits.h: Likewise.
48671         * lib/crc.c: Likewise.
48672         * lib/crc.h: Likewise.
48673         * lib/creat-safer.c: Likewise.
48674         * lib/csharpcomp.c: Likewise.
48675         * lib/csharpcomp.h: Likewise.
48676         * lib/csharpexec.c: Likewise.
48677         * lib/csharpexec.h: Likewise.
48678         * lib/cycle-check.c: Likewise.
48679         * lib/cycle-check.h: Likewise.
48680         * lib/diacrit.c: Likewise.
48681         * lib/diacrit.h: Likewise.
48682         * lib/diffseq.h: Likewise.
48683         * lib/dirchownmod.c: Likewise.
48684         * lib/dirent.in.h: Likewise.
48685         * lib/dirfd.c: Likewise.
48686         * lib/dirfd.h: Likewise.
48687         * lib/dirname.c: Likewise.
48688         * lib/dirname.h: Likewise.
48689         * lib/dummy.c: Likewise.
48690         * lib/dup-safer.c: Likewise.
48691         * lib/dup2.c: Likewise.
48692         * lib/eealloc.h: Likewise.
48693         * lib/error.c: Likewise.
48694         * lib/error.h: Likewise.
48695         * lib/euidaccess.c: Likewise.
48696         * lib/exclude.c: Likewise.
48697         * lib/exclude.h: Likewise.
48698         * lib/execute.c: Likewise.
48699         * lib/execute.h: Likewise.
48700         * lib/exitfail.c: Likewise.
48701         * lib/exitfail.h: Likewise.
48702         * lib/expl.c: Likewise.
48703         * lib/fatal-signal.c: Likewise.
48704         * lib/fatal-signal.h: Likewise.
48705         * lib/fbufmode.c: Likewise.
48706         * lib/fbufmode.h: Likewise.
48707         * lib/fchdir.c: Likewise.
48708         * lib/fchmodat.c: Likewise.
48709         * lib/fchownat.c: Likewise.
48710         * lib/fcntl--.h: Likewise.
48711         * lib/fcntl-safer.h: Likewise.
48712         * lib/fcntl.in.h: Likewise.
48713         * lib/fd-safer.c: Likewise.
48714         * lib/fflush.c: Likewise.
48715         * lib/file-has-acl.c: Likewise.
48716         * lib/file-set.c: Likewise.
48717         * lib/file-type.c: Likewise.
48718         * lib/file-type.h: Likewise.
48719         * lib/fileblocks.c: Likewise.
48720         * lib/filemode.c: Likewise.
48721         * lib/filemode.h: Likewise.
48722         * lib/filename.h: Likewise.
48723         * lib/filenamecat.c: Likewise.
48724         * lib/filenamecat.h: Likewise.
48725         * lib/findprog.c: Likewise.
48726         * lib/findprog.h: Likewise.
48727         * lib/float.in.h: Likewise.
48728         * lib/floor.c: Likewise.
48729         * lib/floorf.c: Likewise.
48730         * lib/floorl.c: Likewise.
48731         * lib/fopen-safer.c: Likewise.
48732         * lib/fopen.c: Likewise.
48733         * lib/fpending.c: Likewise.
48734         * lib/fpending.h: Likewise.
48735         * lib/fprintf.c: Likewise.
48736         * lib/fprintftime.h: Likewise.
48737         * lib/fpucw.h: Likewise.
48738         * lib/fpurge.c: Likewise.
48739         * lib/fpurge.h: Likewise.
48740         * lib/freadable.c: Likewise.
48741         * lib/freadable.h: Likewise.
48742         * lib/freadahead.c: Likewise.
48743         * lib/freadahead.h: Likewise.
48744         * lib/freading.c: Likewise.
48745         * lib/freading.h: Likewise.
48746         * lib/free.c: Likewise.
48747         * lib/freopen.c: Likewise.
48748         * lib/frexp.c: Likewise.
48749         * lib/frexpl.c: Likewise.
48750         * lib/fseek.c: Likewise.
48751         * lib/fseterr.c: Likewise.
48752         * lib/fseterr.h: Likewise.
48753         * lib/fstatat.c: Likewise.
48754         * lib/fstrcmp.c: Likewise.
48755         * lib/fstrcmp.h: Likewise.
48756         * lib/fsusage.c: Likewise.
48757         * lib/fsusage.h: Likewise.
48758         * lib/ftell.c: Likewise.
48759         * lib/ftello.c: Likewise.
48760         * lib/fts-cycle.c: Likewise.
48761         * lib/fts.c: Likewise.
48762         * lib/fts_.h: Likewise.
48763         * lib/full-read.c: Likewise.
48764         * lib/full-read.h: Likewise.
48765         * lib/full-write.c: Likewise.
48766         * lib/full-write.h: Likewise.
48767         * lib/fwritable.c: Likewise.
48768         * lib/fwritable.h: Likewise.
48769         * lib/fwriteerror.c: Likewise.
48770         * lib/fwriteerror.h: Likewise.
48771         * lib/fwriting.c: Likewise.
48772         * lib/fwriting.h: Likewise.
48773         * lib/gcd.c: Likewise.
48774         * lib/gcd.h: Likewise.
48775         * lib/getcwd.c: Likewise.
48776         * lib/getdate.h: Likewise.
48777         * lib/getdate.y: Likewise.
48778         * lib/getdomainname.c: Likewise.
48779         * lib/getdomainname.h: Likewise.
48780         * lib/getgroups.c: Likewise.
48781         * lib/gethostname.c: Likewise.
48782         * lib/gethrxtime.c: Likewise.
48783         * lib/gethrxtime.h: Likewise.
48784         * lib/getloadavg.c: Likewise.
48785         * lib/getndelim2.c: Likewise.
48786         * lib/getndelim2.h: Likewise.
48787         * lib/getnline.c: Likewise.
48788         * lib/getnline.h: Likewise.
48789         * lib/getopt.c: Likewise.
48790         * lib/getopt.in.h: Likewise.
48791         * lib/getopt1.c: Likewise.
48792         * lib/getopt_int.h: Likewise.
48793         * lib/getpagesize.h: Likewise.
48794         * lib/getsubopt.c: Likewise.
48795         * lib/gettime.c: Likewise.
48796         * lib/getugroups.c: Likewise.
48797         * lib/getugroups.h: Likewise.
48798         * lib/getusershell.c: Likewise.
48799         * lib/gl_anyavltree_list1.h: Likewise.
48800         * lib/gl_anyavltree_list2.h: Likewise.
48801         * lib/gl_anyhash_list1.h: Likewise.
48802         * lib/gl_anyhash_list2.h: Likewise.
48803         * lib/gl_anylinked_list1.h: Likewise.
48804         * lib/gl_anylinked_list2.h: Likewise.
48805         * lib/gl_anyrbtree_list1.h: Likewise.
48806         * lib/gl_anyrbtree_list2.h: Likewise.
48807         * lib/gl_anytree_list1.h: Likewise.
48808         * lib/gl_anytree_list2.h: Likewise.
48809         * lib/gl_anytree_oset.h: Likewise.
48810         * lib/gl_anytreehash_list1.h: Likewise.
48811         * lib/gl_anytreehash_list2.h: Likewise.
48812         * lib/gl_array_list.c: Likewise.
48813         * lib/gl_array_list.h: Likewise.
48814         * lib/gl_array_oset.c: Likewise.
48815         * lib/gl_array_oset.h: Likewise.
48816         * lib/gl_avltree_list.c: Likewise.
48817         * lib/gl_avltree_list.h: Likewise.
48818         * lib/gl_avltree_oset.c: Likewise.
48819         * lib/gl_avltree_oset.h: Likewise.
48820         * lib/gl_avltreehash_list.c: Likewise.
48821         * lib/gl_avltreehash_list.h: Likewise.
48822         * lib/gl_carray_list.c: Likewise.
48823         * lib/gl_carray_list.h: Likewise.
48824         * lib/gl_linked_list.c: Likewise.
48825         * lib/gl_linked_list.h: Likewise.
48826         * lib/gl_linkedhash_list.c: Likewise.
48827         * lib/gl_linkedhash_list.h: Likewise.
48828         * lib/gl_list.c: Likewise.
48829         * lib/gl_list.h: Likewise.
48830         * lib/gl_oset.c: Likewise.
48831         * lib/gl_oset.h: Likewise.
48832         * lib/gl_rbtree_list.c: Likewise.
48833         * lib/gl_rbtree_list.h: Likewise.
48834         * lib/gl_rbtree_oset.c: Likewise.
48835         * lib/gl_rbtree_oset.h: Likewise.
48836         * lib/gl_rbtreehash_list.c: Likewise.
48837         * lib/gl_rbtreehash_list.h: Likewise.
48838         * lib/gl_sublist.c: Likewise.
48839         * lib/gl_sublist.h: Likewise.
48840         * lib/group-member.c: Likewise.
48841         * lib/group-member.h: Likewise.
48842         * lib/hard-locale.c: Likewise.
48843         * lib/hard-locale.h: Likewise.
48844         * lib/hash-pjw.c: Likewise.
48845         * lib/hash-pjw.h: Likewise.
48846         * lib/hash-triple.c: Likewise.
48847         * lib/hash.c: Likewise.
48848         * lib/hash.h: Likewise.
48849         * lib/human.c: Likewise.
48850         * lib/human.h: Likewise.
48851         * lib/i-ring.c: Likewise.
48852         * lib/i-ring.h: Likewise.
48853         * lib/idcache.c: Likewise.
48854         * lib/imaxabs.c: Likewise.
48855         * lib/imaxdiv.c: Likewise.
48856         * lib/inet_pton.c: Likewise.
48857         * lib/inet_pton.h: Likewise.
48858         * lib/intprops.h: Likewise.
48859         * lib/inttostr.c: Likewise.
48860         * lib/inttostr.h: Likewise.
48861         * lib/inttypes.in.h: Likewise.
48862         * lib/isapipe.c: Likewise.
48863         * lib/isdir.c: Likewise.
48864         * lib/isnan.c: Likewise.
48865         * lib/isnan.h: Likewise.
48866         * lib/isnanf.c: Likewise.
48867         * lib/isnanf.h: Likewise.
48868         * lib/isnanl-nolibm.h: Likewise.
48869         * lib/isnanl.c: Likewise.
48870         * lib/isnanl.h: Likewise.
48871         * lib/javacomp.c: Likewise.
48872         * lib/javacomp.h: Likewise.
48873         * lib/javaexec.c: Likewise.
48874         * lib/javaexec.h: Likewise.
48875         * lib/javaversion.c: Likewise.
48876         * lib/javaversion.h: Likewise.
48877         * lib/javaversion.java: Likewise.
48878         * lib/lbrkprop.h: Likewise.
48879         * lib/lchmod.h: Likewise.
48880         * lib/lchown.c: Likewise.
48881         * lib/ldexpl.c: Likewise.
48882         * lib/linebreak.c: Likewise.
48883         * lib/linebreak.h: Likewise.
48884         * lib/linebuffer.c: Likewise.
48885         * lib/linebuffer.h: Likewise.
48886         * lib/locale.in.h: Likewise.
48887         * lib/logl.c: Likewise.
48888         * lib/long-options.c: Likewise.
48889         * lib/long-options.h: Likewise.
48890         * lib/lstat.c: Likewise.
48891         * lib/lstat.h: Likewise.
48892         * lib/math.in.h: Likewise.
48893         * lib/mbchar.c: Likewise.
48894         * lib/mbchar.h: Likewise.
48895         * lib/mbfile.h: Likewise.
48896         * lib/mbiter.h: Likewise.
48897         * lib/mbscasecmp.c: Likewise.
48898         * lib/mbscasestr.c: Likewise.
48899         * lib/mbschr.c: Likewise.
48900         * lib/mbscspn.c: Likewise.
48901         * lib/mbslen.c: Likewise.
48902         * lib/mbsncasecmp.c: Likewise.
48903         * lib/mbsnlen.c: Likewise.
48904         * lib/mbspbrk.c: Likewise.
48905         * lib/mbspcasecmp.c: Likewise.
48906         * lib/mbsrchr.c: Likewise.
48907         * lib/mbssep.c: Likewise.
48908         * lib/mbsspn.c: Likewise.
48909         * lib/mbsstr.c: Likewise.
48910         * lib/mbstok_r.c: Likewise.
48911         * lib/mbswidth.c: Likewise.
48912         * lib/mbswidth.h: Likewise.
48913         * lib/mbuiter.h: Likewise.
48914         * lib/memcasecmp.c: Likewise.
48915         * lib/memcasecmp.h: Likewise.
48916         * lib/memchr.c: Likewise.
48917         * lib/memcmp.c: Likewise.
48918         * lib/memcoll.c: Likewise.
48919         * lib/memcoll.h: Likewise.
48920         * lib/memcpy.c: Likewise.
48921         * lib/memrchr.c: Likewise.
48922         * lib/mkancesdirs.c: Likewise.
48923         * lib/mkdir-p.c: Likewise.
48924         * lib/mkdir-p.h: Likewise.
48925         * lib/mkdir.c: Likewise.
48926         * lib/mkdirat.c: Likewise.
48927         * lib/mkdtemp.c: Likewise.
48928         * lib/mkstemp-safer.c: Likewise.
48929         * lib/mkstemp.c: Likewise.
48930         * lib/modechange.c: Likewise.
48931         * lib/modechange.h: Likewise.
48932         * lib/mountlist.c: Likewise.
48933         * lib/mountlist.h: Likewise.
48934         * lib/mpsort.c: Likewise.
48935         * lib/nanosleep.c: Likewise.
48936         * lib/obstack.c: Likewise.
48937         * lib/obstack.h: Likewise.
48938         * lib/open-safer.c: Likewise.
48939         * lib/open.c: Likewise.
48940         * lib/openat-die.c: Likewise.
48941         * lib/openat-priv.h: Likewise.
48942         * lib/openat-proc.c: Likewise.
48943         * lib/openat.c: Likewise.
48944         * lib/openat.h: Likewise.
48945         * lib/pagealign_alloc.c: Likewise.
48946         * lib/pagealign_alloc.h: Likewise.
48947         * lib/physmem.c: Likewise.
48948         * lib/physmem.h: Likewise.
48949         * lib/pipe-safer.c: Likewise.
48950         * lib/pipe.c: Likewise.
48951         * lib/pipe.h: Likewise.
48952         * lib/posixtm.c: Likewise.
48953         * lib/posixtm.h: Likewise.
48954         * lib/posixver.c: Likewise.
48955         * lib/printf-frexp.c: Likewise.
48956         * lib/printf-frexp.h: Likewise.
48957         * lib/printf-frexpl.c: Likewise.
48958         * lib/printf-frexpl.h: Likewise.
48959         * lib/printf.c: Likewise.
48960         * lib/progname.c: Likewise.
48961         * lib/progname.h: Likewise.
48962         * lib/progreloc.c: Likewise.
48963         * lib/putenv.c: Likewise.
48964         * lib/quote.c: Likewise.
48965         * lib/quote.h: Likewise.
48966         * lib/quotearg.c: Likewise.
48967         * lib/quotearg.h: Likewise.
48968         * lib/raise.c: Likewise.
48969         * lib/readline.c: Likewise.
48970         * lib/readline.h: Likewise.
48971         * lib/readlink.c: Likewise.
48972         * lib/readtokens.c: Likewise.
48973         * lib/readtokens.h: Likewise.
48974         * lib/readtokens0.c: Likewise.
48975         * lib/readtokens0.h: Likewise.
48976         * lib/readutmp.c: Likewise.
48977         * lib/readutmp.h: Likewise.
48978         * lib/realloc.c: Likewise.
48979         * lib/relocwrapper.c: Likewise.
48980         * lib/rename-dest-slash.c: Likewise.
48981         * lib/rename.c: Likewise.
48982         * lib/rmdir.c: Likewise.
48983         * lib/rpmatch.c: Likewise.
48984         * lib/safe-read.c: Likewise.
48985         * lib/safe-read.h: Likewise.
48986         * lib/safe-write.c: Likewise.
48987         * lib/safe-write.h: Likewise.
48988         * lib/same-inode.h: Likewise.
48989         * lib/same.c: Likewise.
48990         * lib/same.h: Likewise.
48991         * lib/save-cwd.c: Likewise.
48992         * lib/save-cwd.h: Likewise.
48993         * lib/savedir.c: Likewise.
48994         * lib/savedir.h: Likewise.
48995         * lib/savewd.c: Likewise.
48996         * lib/savewd.h: Likewise.
48997         * lib/search.in.h: Likewise.
48998         * lib/setenv.c: Likewise.
48999         * lib/setenv.h: Likewise.
49000         * lib/settime.c: Likewise.
49001         * lib/sh-quote.c: Likewise.
49002         * lib/sh-quote.h: Likewise.
49003         * lib/sig2str.c: Likewise.
49004         * lib/sig2str.h: Likewise.
49005         * lib/signal.in.h: Likewise.
49006         * lib/signbitd.c: Likewise.
49007         * lib/signbitf.c: Likewise.
49008         * lib/signbitl.c: Likewise.
49009         * lib/sigprocmask.c: Likewise.
49010         * lib/sincosl.c: Likewise.
49011         * lib/sleep.c: Likewise.
49012         * lib/sprintf.c: Likewise.
49013         * lib/sqrtl.c: Likewise.
49014         * lib/stat-time.h: Likewise.
49015         * lib/stdio--.h: Likewise.
49016         * lib/stdio-safer.h: Likewise.
49017         * lib/stdlib--.h: Likewise.
49018         * lib/stdlib-safer.h: Likewise.
49019         * lib/stdlib.in.h: Likewise.
49020         * lib/stpcpy.c: Likewise.
49021         * lib/stpncpy.c: Likewise.
49022         * lib/strchrnul.c: Likewise.
49023         * lib/strcspn.c: Likewise.
49024         * lib/strerror.c: Likewise.
49025         * lib/strftime.c: Likewise.
49026         * lib/strftime.h: Likewise.
49027         * lib/striconveh.c: Likewise.
49028         * lib/striconveh.h: Likewise.
49029         * lib/striconveha.c: Likewise.
49030         * lib/striconveha.h: Likewise.
49031         * lib/stripslash.c: Likewise.
49032         * lib/strnlen1.c: Likewise.
49033         * lib/strnlen1.h: Likewise.
49034         * lib/strtod.c: Likewise.
49035         * lib/strtoimax.c: Likewise.
49036         * lib/strtok_r.c: Likewise.
49037         * lib/strtol.c: Likewise.
49038         * lib/strtoll.c: Likewise.
49039         * lib/strtoul.c: Likewise.
49040         * lib/strtoull.c: Likewise.
49041         * lib/sysexits.in.h: Likewise.
49042         * lib/tempname.c: Likewise.
49043         * lib/tempname.h: Likewise.
49044         * lib/timespec.h: Likewise.
49045         * lib/tls.c: Likewise.
49046         * lib/tls.h: Likewise.
49047         * lib/tmpdir.c: Likewise.
49048         * lib/tmpdir.h: Likewise.
49049         * lib/tmpfile-safer.c: Likewise.
49050         * lib/tmpfile.c: Likewise.
49051         * lib/trigl.c: Likewise.
49052         * lib/trigl.h: Likewise.
49053         * lib/trim.c: Likewise.
49054         * lib/trim.h: Likewise.
49055         * lib/trunc.c: Likewise.
49056         * lib/truncf.c: Likewise.
49057         * lib/truncl.c: Likewise.
49058         * lib/tsearch.c: Likewise.
49059         * lib/unicodeio.c: Likewise.
49060         * lib/unicodeio.h: Likewise.
49061         * lib/unistd--.h: Likewise.
49062         * lib/unistd-safer.h: Likewise.
49063         * lib/unistdio/ulc-fprintf.c: Likewise.
49064         * lib/unistdio/ulc-vfprintf.c: Likewise.
49065         * lib/unlinkdir.c: Likewise.
49066         * lib/unlinkdir.h: Likewise.
49067         * lib/unlocked-io.h: Likewise.
49068         * lib/unsetenv.c: Likewise.
49069         * lib/userspec.c: Likewise.
49070         * lib/utime.c: Likewise.
49071         * lib/utimecmp.c: Likewise.
49072         * lib/utimecmp.h: Likewise.
49073         * lib/utimens.c: Likewise.
49074         * lib/verify.h: Likewise.
49075         * lib/verror.c: Likewise.
49076         * lib/verror.h: Likewise.
49077         * lib/version-etc-fsf.c: Likewise.
49078         * lib/version-etc.c: Likewise.
49079         * lib/version-etc.h: Likewise.
49080         * lib/vfprintf.c: Likewise.
49081         * lib/vprintf.c: Likewise.
49082         * lib/vsprintf.c: Likewise.
49083         * lib/w32spawn.h: Likewise.
49084         * lib/wait-process.c: Likewise.
49085         * lib/wait-process.h: Likewise.
49086         * lib/wcwidth.c: Likewise.
49087         * lib/write-any-file.c: Likewise.
49088         * lib/xalloc-die.c: Likewise.
49089         * lib/xalloc.h: Likewise.
49090         * lib/xasprintf.c: Likewise.
49091         * lib/xgetcwd.c: Likewise.
49092         * lib/xgetcwd.h: Likewise.
49093         * lib/xgetdomainname.c: Likewise.
49094         * lib/xgetdomainname.h: Likewise.
49095         * lib/xgethostname.c: Likewise.
49096         * lib/xmalloc.c: Likewise.
49097         * lib/xmalloca.c: Likewise.
49098         * lib/xmalloca.h: Likewise.
49099         * lib/xmemcoll.c: Likewise.
49100         * lib/xnanosleep.c: Likewise.
49101         * lib/xreadlink.c: Likewise.
49102         * lib/xreadlink.h: Likewise.
49103         * lib/xsetenv.c: Likewise.
49104         * lib/xsetenv.h: Likewise.
49105         * lib/xstriconv.c: Likewise.
49106         * lib/xstriconv.h: Likewise.
49107         * lib/xstrndup.c: Likewise.
49108         * lib/xstrndup.h: Likewise.
49109         * lib/xstrtod.c: Likewise.
49110         * lib/xstrtod.h: Likewise.
49111         * lib/xstrtol-error.c: Likewise.
49112         * lib/xstrtol.c: Likewise.
49113         * lib/xstrtol.h: Likewise.
49114         * lib/xtime.h: Likewise.
49115         * lib/xvasprintf.c: Likewise.
49116         * lib/xvasprintf.h: Likewise.
49117         * lib/yesno.c: Likewise.
49118         * lib/yesno.h: Likewise.
49119         * posix-modules: Likewise.
49120         * tests/test-alloca-opt.c: Likewise.
49121         * tests/test-arcfour.c: Likewise.
49122         * tests/test-arctwo.c: Likewise.
49123         * tests/test-argmatch.c: Likewise.
49124         * tests/test-argp-2.sh: Likewise.
49125         * tests/test-argp.c: Likewise.
49126         * tests/test-arpa_inet.c: Likewise.
49127         * tests/test-array_list.c: Likewise.
49128         * tests/test-array_oset.c: Likewise.
49129         * tests/test-atexit.c: Likewise.
49130         * tests/test-avltree_list.c: Likewise.
49131         * tests/test-avltree_oset.c: Likewise.
49132         * tests/test-avltreehash_list.c: Likewise.
49133         * tests/test-base64.c: Likewise.
49134         * tests/test-binary-io.c: Likewise.
49135         * tests/test-byteswap.c: Likewise.
49136         * tests/test-c-ctype.c: Likewise.
49137         * tests/test-c-strcasecmp.c: Likewise.
49138         * tests/test-c-strcasestr.c: Likewise.
49139         * tests/test-c-strncasecmp.c: Likewise.
49140         * tests/test-c-strstr.c: Likewise.
49141         * tests/test-canonicalize-lgpl.c: Likewise.
49142         * tests/test-canonicalize.c: Likewise.
49143         * tests/test-carray_list.c: Likewise.
49144         * tests/test-ceilf.c: Likewise.
49145         * tests/test-ceill.c: Likewise.
49146         * tests/test-count-one-bits.c: Likewise.
49147         * tests/test-crc.c: Likewise.
49148         * tests/test-dirname.c: Likewise.
49149         * tests/test-fbufmode.c: Likewise.
49150         * tests/test-fcntl.c: Likewise.
49151         * tests/test-fflush.c: Likewise.
49152         * tests/test-floorf.c: Likewise.
49153         * tests/test-floorl.c: Likewise.
49154         * tests/test-fopen.c: Likewise.
49155         * tests/test-fprintf-posix.c: Likewise.
49156         * tests/test-fprintf-posix.h: Likewise.
49157         * tests/test-fpurge.c: Likewise.
49158         * tests/test-freadable.c: Likewise.
49159         * tests/test-freadahead.c: Likewise.
49160         * tests/test-freading.c: Likewise.
49161         * tests/test-freopen.c: Likewise.
49162         * tests/test-frexp.c: Likewise.
49163         * tests/test-frexpl.c: Likewise.
49164         * tests/test-fseek.c: Likewise.
49165         * tests/test-fseeko.c: Likewise.
49166         * tests/test-fseterr.c: Likewise.
49167         * tests/test-fstrcmp.c: Likewise.
49168         * tests/test-ftell.c: Likewise.
49169         * tests/test-ftello.c: Likewise.
49170         * tests/test-fwritable.c: Likewise.
49171         * tests/test-fwriting.c: Likewise.
49172         * tests/test-getaddrinfo.c: Likewise.
49173         * tests/test-getpass.c: Likewise.
49174         * tests/test-gettimeofday.c: Likewise.
49175         * tests/test-hmac-md5.c: Likewise.
49176         * tests/test-hmac-sha1.c: Likewise.
49177         * tests/test-iconv.c: Likewise.
49178         * tests/test-iconvme.c: Likewise.
49179         * tests/test-inttypes.c: Likewise.
49180         * tests/test-isnan.c: Likewise.
49181         * tests/test-isnanf.c: Likewise.
49182         * tests/test-isnanl-nolibm.c: Likewise.
49183         * tests/test-isnanl.c: Likewise.
49184         * tests/test-isnanl.h: Likewise.
49185         * tests/test-ldexpl.c: Likewise.
49186         * tests/test-linked_list.c: Likewise.
49187         * tests/test-linkedhash_list.c: Likewise.
49188         * tests/test-locale.c: Likewise.
49189         * tests/test-localename.c: Likewise.
49190         * tests/test-lock.c: Likewise.
49191         * tests/test-lseek.c: Likewise.
49192         * tests/test-malloca.c: Likewise.
49193         * tests/test-math.c: Likewise.
49194         * tests/test-mbscasecmp.c: Likewise.
49195         * tests/test-mbscasestr1.c: Likewise.
49196         * tests/test-mbscasestr2.c: Likewise.
49197         * tests/test-mbscasestr3.c: Likewise.
49198         * tests/test-mbscasestr4.c: Likewise.
49199         * tests/test-mbschr.c: Likewise.
49200         * tests/test-mbscspn.c: Likewise.
49201         * tests/test-mbsncasecmp.c: Likewise.
49202         * tests/test-mbspbrk.c: Likewise.
49203         * tests/test-mbspcasecmp.c: Likewise.
49204         * tests/test-mbsrchr.c: Likewise.
49205         * tests/test-mbsspn.c: Likewise.
49206         * tests/test-mbsstr1.c: Likewise.
49207         * tests/test-mbsstr2.c: Likewise.
49208         * tests/test-mbsstr3.c: Likewise.
49209         * tests/test-md5.c: Likewise.
49210         * tests/test-memmem.c: Likewise.
49211         * tests/test-netinet_in.c: Likewise.
49212         * tests/test-open.c: Likewise.
49213         * tests/test-printf-frexp.c: Likewise.
49214         * tests/test-printf-frexpl.c: Likewise.
49215         * tests/test-printf-posix.c: Likewise.
49216         * tests/test-printf-posix.h: Likewise.
49217         * tests/test-rbtree_list.c: Likewise.
49218         * tests/test-rbtree_oset.c: Likewise.
49219         * tests/test-rbtreehash_list.c: Likewise.
49220         * tests/test-read-file.c: Likewise.
49221         * tests/test-rijndael.c: Likewise.
49222         * tests/test-search.c: Likewise.
49223         * tests/test-signbit.c: Likewise.
49224         * tests/test-sleep.c: Likewise.
49225         * tests/test-snprintf-posix.c: Likewise.
49226         * tests/test-snprintf-posix.h: Likewise.
49227         * tests/test-snprintf.c: Likewise.
49228         * tests/test-sprintf-posix.c: Likewise.
49229         * tests/test-sprintf-posix.h: Likewise.
49230         * tests/test-stat-time.c: Likewise.
49231         * tests/test-stdbool.c: Likewise.
49232         * tests/test-stdint.c: Likewise.
49233         * tests/test-stdio.c: Likewise.
49234         * tests/test-stdlib.c: Likewise.
49235         * tests/test-stpncpy.c: Likewise.
49236         * tests/test-strcasestr.c: Likewise.
49237         * tests/test-striconv.c: Likewise.
49238         * tests/test-striconveh.c: Likewise.
49239         * tests/test-striconveha.c: Likewise.
49240         * tests/test-string.c: Likewise.
49241         * tests/test-sys_select.c: Likewise.
49242         * tests/test-sys_socket.c: Likewise.
49243         * tests/test-sys_stat.c: Likewise.
49244         * tests/test-sys_time.c: Likewise.
49245         * tests/test-sysexits.c: Likewise.
49246         * tests/test-time.c: Likewise.
49247         * tests/test-tls.c: Likewise.
49248         * tests/test-trunc.c: Likewise.
49249         * tests/test-truncf.c: Likewise.
49250         * tests/test-truncl.c: Likewise.
49251         * tests/test-unistd.c: Likewise.
49252         * tests/test-vasnprintf-posix.c: Likewise.
49253         * tests/test-vasnprintf-posix2.c: Likewise.
49254         * tests/test-vasnprintf.c: Likewise.
49255         * tests/test-vasprintf-posix.c: Likewise.
49256         * tests/test-vasprintf.c: Likewise.
49257         * tests/test-verify.c: Likewise.
49258         * tests/test-vfprintf-posix.c: Likewise.
49259         * tests/test-vprintf-posix.c: Likewise.
49260         * tests/test-vsnprintf-posix.c: Likewise.
49261         * tests/test-vsnprintf.c: Likewise.
49262         * tests/test-vsprintf-posix.c: Likewise.
49263         * tests/test-wchar.c: Likewise.
49264         * tests/test-wctype.c: Likewise.
49265         * tests/test-wcwidth.c: Likewise.
49266         * tests/test-xstrtol.c: Likewise.
49267         * tests/test-xvasprintf.c: Likewise.
49268         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49269         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49270         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49271         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49272         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49273         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49274         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49275         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49276         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49277         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49278         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49279         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49280         * tests/uniname/test-uninames.c: Likewise.
49281         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49282         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49283         * tests/unistdio/test-u16-printf1.h: Likewise.
49284         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49285         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49286         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49287         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49288         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49289         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49290         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49291         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49292         * tests/unistdio/test-u32-printf1.h: Likewise.
49293         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49294         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49295         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49296         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49297         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49298         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49299         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49300         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49301         * tests/unistdio/test-u8-printf1.h: Likewise.
49302         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49303         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49304         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49305         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49306         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49307         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49308         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49309         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49310         * tests/unistdio/test-ulc-printf1.h: Likewise.
49311         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49312         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49313         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49314         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49315         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49316         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49317         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49318         * tests/uniwidth/test-u16-width.c: Likewise.
49319         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49320         * tests/uniwidth/test-u32-width.c: Likewise.
49321         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49322         * tests/uniwidth/test-u8-width.c: Likewise.
49323         * tests/uniwidth/test-uc_width.c: Likewise.
49324         * config/srclist-update: Likewise.
49325         (fixlicense): Update to GPLv3+.
49326
49327         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49328         * tests/test-tsearch.c: Change copyright notice.
49329
49330         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49331         * lib/c-strcaseeq.h: Change copyright notice.
49332         * lib/streq.h: Likewise.
49333         * lib/uniconv.h: Likewise.
49334         * lib/uniconv/u-conv-from-enc.h: Likewise.
49335         * lib/uniconv/u-conv-to-enc.h: Likewise.
49336         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49337         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49338         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49339         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49340         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49341         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49342         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49343         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49344         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49345         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49346         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49347         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49348         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49349         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49350         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49351         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49352         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49353         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49354         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49355         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49356         * lib/uniname.h: Likewise.
49357         * lib/uniname/uniname.c: Likewise.
49358         * lib/unistdio.h: Likewise.
49359         * lib/unistdio/u-asnprintf.h: Likewise.
49360         * lib/unistdio/u-asprintf.h: Likewise.
49361         * lib/unistdio/u-printf-args.c: Likewise.
49362         * lib/unistdio/u-printf-args.h: Likewise.
49363         * lib/unistdio/u-printf-parse.h: Likewise.
49364         * lib/unistdio/u-snprintf.h: Likewise.
49365         * lib/unistdio/u-sprintf.h: Likewise.
49366         * lib/unistdio/u-vasprintf.h: Likewise.
49367         * lib/unistdio/u-vsnprintf.h: Likewise.
49368         * lib/unistdio/u-vsprintf.h: Likewise.
49369         * lib/unistdio/u16-asnprintf.c: Likewise.
49370         * lib/unistdio/u16-asprintf.c: Likewise.
49371         * lib/unistdio/u16-printf-parse.c: Likewise.
49372         * lib/unistdio/u16-snprintf.c: Likewise.
49373         * lib/unistdio/u16-sprintf.c: Likewise.
49374         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49375         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49376         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49377         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49378         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49379         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49380         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49381         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49382         * lib/unistdio/u16-vasnprintf.c: Likewise.
49383         * lib/unistdio/u16-vasprintf.c: Likewise.
49384         * lib/unistdio/u16-vsnprintf.c: Likewise.
49385         * lib/unistdio/u16-vsprintf.c: Likewise.
49386         * lib/unistdio/u32-asnprintf.c: Likewise.
49387         * lib/unistdio/u32-asprintf.c: Likewise.
49388         * lib/unistdio/u32-printf-parse.c: Likewise.
49389         * lib/unistdio/u32-snprintf.c: Likewise.
49390         * lib/unistdio/u32-sprintf.c: Likewise.
49391         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49392         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49393         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49394         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49395         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49396         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49397         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49398         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49399         * lib/unistdio/u32-vasnprintf.c: Likewise.
49400         * lib/unistdio/u32-vasprintf.c: Likewise.
49401         * lib/unistdio/u32-vsnprintf.c: Likewise.
49402         * lib/unistdio/u32-vsprintf.c: Likewise.
49403         * lib/unistdio/u8-asnprintf.c: Likewise.
49404         * lib/unistdio/u8-asprintf.c: Likewise.
49405         * lib/unistdio/u8-printf-parse.c: Likewise.
49406         * lib/unistdio/u8-snprintf.c: Likewise.
49407         * lib/unistdio/u8-sprintf.c: Likewise.
49408         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49409         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49410         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49411         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49412         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49413         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49414         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49415         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49416         * lib/unistdio/u8-vasnprintf.c: Likewise.
49417         * lib/unistdio/u8-vasprintf.c: Likewise.
49418         * lib/unistdio/u8-vsnprintf.c: Likewise.
49419         * lib/unistdio/u8-vsprintf.c: Likewise.
49420         * lib/unistdio/ulc-asnprintf.c: Likewise.
49421         * lib/unistdio/ulc-asprintf.c: Likewise.
49422         * lib/unistdio/ulc-printf-parse.c: Likewise.
49423         * lib/unistdio/ulc-snprintf.c: Likewise.
49424         * lib/unistdio/ulc-sprintf.c: Likewise.
49425         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49426         * lib/unistdio/ulc-vasprintf.c: Likewise.
49427         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49428         * lib/unistdio/ulc-vsprintf.c: Likewise.
49429         * lib/unistr.h: Likewise.
49430         * lib/unistr/u-cpy-alloc.h: Likewise.
49431         * lib/unistr/u-cpy.h: Likewise.
49432         * lib/unistr/u-endswith.h: Likewise.
49433         * lib/unistr/u-move.h: Likewise.
49434         * lib/unistr/u-set.h: Likewise.
49435         * lib/unistr/u-startswith.h: Likewise.
49436         * lib/unistr/u-stpcpy.h: Likewise.
49437         * lib/unistr/u-stpncpy.h: Likewise.
49438         * lib/unistr/u-strcat.h: Likewise.
49439         * lib/unistr/u-strcpy.h: Likewise.
49440         * lib/unistr/u-strcspn.h: Likewise.
49441         * lib/unistr/u-strdup.h: Likewise.
49442         * lib/unistr/u-strlen.h: Likewise.
49443         * lib/unistr/u-strncat.h: Likewise.
49444         * lib/unistr/u-strncpy.h: Likewise.
49445         * lib/unistr/u-strnlen.h: Likewise.
49446         * lib/unistr/u-strpbrk.h: Likewise.
49447         * lib/unistr/u-strspn.h: Likewise.
49448         * lib/unistr/u-strstr.h: Likewise.
49449         * lib/unistr/u-strtok.h: Likewise.
49450         * lib/unistr/u16-check.c: Likewise.
49451         * lib/unistr/u16-chr.c: Likewise.
49452         * lib/unistr/u16-cmp.c: Likewise.
49453         * lib/unistr/u16-cpy-alloc.c: Likewise.
49454         * lib/unistr/u16-cpy.c: Likewise.
49455         * lib/unistr/u16-endswith.c: Likewise.
49456         * lib/unistr/u16-mblen.c: Likewise.
49457         * lib/unistr/u16-mbsnlen.c: Likewise.
49458         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49459         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49460         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49461         * lib/unistr/u16-mbtouc.c: Likewise.
49462         * lib/unistr/u16-mbtoucr.c: Likewise.
49463         * lib/unistr/u16-move.c: Likewise.
49464         * lib/unistr/u16-next.c: Likewise.
49465         * lib/unistr/u16-prev.c: Likewise.
49466         * lib/unistr/u16-set.c: Likewise.
49467         * lib/unistr/u16-startswith.c: Likewise.
49468         * lib/unistr/u16-stpcpy.c: Likewise.
49469         * lib/unistr/u16-stpncpy.c: Likewise.
49470         * lib/unistr/u16-strcat.c: Likewise.
49471         * lib/unistr/u16-strchr.c: Likewise.
49472         * lib/unistr/u16-strcmp.c: Likewise.
49473         * lib/unistr/u16-strcpy.c: Likewise.
49474         * lib/unistr/u16-strcspn.c: Likewise.
49475         * lib/unistr/u16-strdup.c: Likewise.
49476         * lib/unistr/u16-strlen.c: Likewise.
49477         * lib/unistr/u16-strmblen.c: Likewise.
49478         * lib/unistr/u16-strmbtouc.c: Likewise.
49479         * lib/unistr/u16-strncat.c: Likewise.
49480         * lib/unistr/u16-strncmp.c: Likewise.
49481         * lib/unistr/u16-strncpy.c: Likewise.
49482         * lib/unistr/u16-strnlen.c: Likewise.
49483         * lib/unistr/u16-strpbrk.c: Likewise.
49484         * lib/unistr/u16-strrchr.c: Likewise.
49485         * lib/unistr/u16-strspn.c: Likewise.
49486         * lib/unistr/u16-strstr.c: Likewise.
49487         * lib/unistr/u16-strtok.c: Likewise.
49488         * lib/unistr/u16-to-u32.c: Likewise.
49489         * lib/unistr/u16-to-u8.c: Likewise.
49490         * lib/unistr/u16-uctomb-aux.c: Likewise.
49491         * lib/unistr/u16-uctomb.c: Likewise.
49492         * lib/unistr/u32-check.c: Likewise.
49493         * lib/unistr/u32-chr.c: Likewise.
49494         * lib/unistr/u32-cmp.c: Likewise.
49495         * lib/unistr/u32-cpy-alloc.c: Likewise.
49496         * lib/unistr/u32-cpy.c: Likewise.
49497         * lib/unistr/u32-endswith.c: Likewise.
49498         * lib/unistr/u32-mblen.c: Likewise.
49499         * lib/unistr/u32-mbsnlen.c: Likewise.
49500         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49501         * lib/unistr/u32-mbtouc.c: Likewise.
49502         * lib/unistr/u32-mbtoucr.c: Likewise.
49503         * lib/unistr/u32-move.c: Likewise.
49504         * lib/unistr/u32-next.c: Likewise.
49505         * lib/unistr/u32-prev.c: Likewise.
49506         * lib/unistr/u32-set.c: Likewise.
49507         * lib/unistr/u32-startswith.c: Likewise.
49508         * lib/unistr/u32-stpcpy.c: Likewise.
49509         * lib/unistr/u32-stpncpy.c: Likewise.
49510         * lib/unistr/u32-strcat.c: Likewise.
49511         * lib/unistr/u32-strchr.c: Likewise.
49512         * lib/unistr/u32-strcmp.c: Likewise.
49513         * lib/unistr/u32-strcpy.c: Likewise.
49514         * lib/unistr/u32-strcspn.c: Likewise.
49515         * lib/unistr/u32-strdup.c: Likewise.
49516         * lib/unistr/u32-strlen.c: Likewise.
49517         * lib/unistr/u32-strmblen.c: Likewise.
49518         * lib/unistr/u32-strmbtouc.c: Likewise.
49519         * lib/unistr/u32-strncat.c: Likewise.
49520         * lib/unistr/u32-strncmp.c: Likewise.
49521         * lib/unistr/u32-strncpy.c: Likewise.
49522         * lib/unistr/u32-strnlen.c: Likewise.
49523         * lib/unistr/u32-strpbrk.c: Likewise.
49524         * lib/unistr/u32-strrchr.c: Likewise.
49525         * lib/unistr/u32-strspn.c: Likewise.
49526         * lib/unistr/u32-strstr.c: Likewise.
49527         * lib/unistr/u32-strtok.c: Likewise.
49528         * lib/unistr/u32-to-u16.c: Likewise.
49529         * lib/unistr/u32-to-u8.c: Likewise.
49530         * lib/unistr/u32-uctomb.c: Likewise.
49531         * lib/unistr/u8-check.c: Likewise.
49532         * lib/unistr/u8-chr.c: Likewise.
49533         * lib/unistr/u8-cmp.c: Likewise.
49534         * lib/unistr/u8-cpy-alloc.c: Likewise.
49535         * lib/unistr/u8-cpy.c: Likewise.
49536         * lib/unistr/u8-endswith.c: Likewise.
49537         * lib/unistr/u8-mblen.c: Likewise.
49538         * lib/unistr/u8-mbsnlen.c: Likewise.
49539         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49540         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49541         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49542         * lib/unistr/u8-mbtouc.c: Likewise.
49543         * lib/unistr/u8-mbtoucr.c: Likewise.
49544         * lib/unistr/u8-move.c: Likewise.
49545         * lib/unistr/u8-next.c: Likewise.
49546         * lib/unistr/u8-prev.c: Likewise.
49547         * lib/unistr/u8-set.c: Likewise.
49548         * lib/unistr/u8-startswith.c: Likewise.
49549         * lib/unistr/u8-stpcpy.c: Likewise.
49550         * lib/unistr/u8-stpncpy.c: Likewise.
49551         * lib/unistr/u8-strcat.c: Likewise.
49552         * lib/unistr/u8-strchr.c: Likewise.
49553         * lib/unistr/u8-strcmp.c: Likewise.
49554         * lib/unistr/u8-strcpy.c: Likewise.
49555         * lib/unistr/u8-strcspn.c: Likewise.
49556         * lib/unistr/u8-strdup.c: Likewise.
49557         * lib/unistr/u8-strlen.c: Likewise.
49558         * lib/unistr/u8-strmblen.c: Likewise.
49559         * lib/unistr/u8-strmbtouc.c: Likewise.
49560         * lib/unistr/u8-strncat.c: Likewise.
49561         * lib/unistr/u8-strncmp.c: Likewise.
49562         * lib/unistr/u8-strncpy.c: Likewise.
49563         * lib/unistr/u8-strnlen.c: Likewise.
49564         * lib/unistr/u8-strpbrk.c: Likewise.
49565         * lib/unistr/u8-strrchr.c: Likewise.
49566         * lib/unistr/u8-strspn.c: Likewise.
49567         * lib/unistr/u8-strstr.c: Likewise.
49568         * lib/unistr/u8-strtok.c: Likewise.
49569         * lib/unistr/u8-to-u16.c: Likewise.
49570         * lib/unistr/u8-to-u32.c: Likewise.
49571         * lib/unistr/u8-uctomb-aux.c: Likewise.
49572         * lib/unistr/u8-uctomb.c: Likewise.
49573         * lib/unitypes.h: Likewise.
49574         * lib/uniwidth.h: Likewise.
49575         * lib/uniwidth/cjk.h: Likewise.
49576         * lib/uniwidth/u16-strwidth.c: Likewise.
49577         * lib/uniwidth/u16-width.c: Likewise.
49578         * lib/uniwidth/u32-strwidth.c: Likewise.
49579         * lib/uniwidth/u32-width.c: Likewise.
49580         * lib/uniwidth/u8-strwidth.c: Likewise.
49581         * lib/uniwidth/u8-width.c: Likewise.
49582         * lib/uniwidth/width.c: Likewise.
49583
49584 2007-10-07  Bruno Haible  <bruno@clisp.org>
49585
49586         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49587         The file is still under LGPL (see modules/inttypes).
49588
49589 2007-10-06  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/trunc (Dependencies): Add 'extensions'.
49592         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49593         Reported by Ben Pfaff <blp@gnu.org>.
49594
49595 2007-10-06  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/freopen-tests: New file.
49598         * tests/test-freopen.c: New file.
49599
49600         * modules/fopen-tests: New file.
49601         * tests/test-fopen.c: New file.
49602
49603         * modules/fopen: New file.
49604         * lib/fopen.c: New file.
49605         * m4/fopen.m4: New file.
49606         * modules/freopen: New file.
49607         * lib/freopen.c: New file.
49608         * m4/freopen.m4: New file.
49609         * lib/stdio.in.h (fopen, freopen): New declarations.
49610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49611         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49612         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49613         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49614         * doc/functions/fopen.texi: Mention the 'fopen' module.
49615         * doc/functions/freopen.texi: Mention the 'freopen' module.
49616
49617 2007-10-06  Bruno Haible  <bruno@clisp.org>
49618
49619         * modules/open-tests: New file.
49620         * tests/test-open.c: New file.
49621
49622         * modules/open: New file.
49623         * lib/open.c: New file.
49624         * m4/open.m4: New file.
49625         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49626         lib/open.c does.
49627         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49628         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49629         macros.
49630         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49631         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49632         REPLACE_OPEN.
49633         * doc/functions/open.texi: Mention the 'open' module.
49634
49635 2007-10-04  Bruno Haible  <bruno@clisp.org>
49636
49637         * modules/ceill-tests: New file.
49638         * tests/test-ceill.c: New file.
49639
49640         * modules/ceill: New file.
49641         * lib/ceill.c: Replace entire file.
49642         * m4/ceill.m4: New file.
49643         * lib/math.in.h (ceill): Replace declaration.
49644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49645         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49646         * doc/functions/ceill.texi: Mention the 'ceill' module.
49647         * modules/mathl (Files): Remove lib/ceill.c.
49648         (Depends-on): Add ceill.
49649
49650 2007-10-04  Bruno Haible  <bruno@clisp.org>
49651
49652         * modules/ceilf-tests: New file.
49653         * tests/test-ceilf.c: New file.
49654
49655         * modules/ceilf: New file.
49656         * lib/ceil.c: New file.
49657         * lib/ceilf.c: New file.
49658         * m4/ceilf.m4: New file.
49659         * lib/math.in.h (ceilf): New declaration.
49660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49661         HAVE_DECL_CEILF.
49662         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49663         HAVE_DECL_CEILF.
49664         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49665
49666 2007-10-04  Bruno Haible  <bruno@clisp.org>
49667
49668         * modules/floorl-tests: New file.
49669         * tests/test-floorl.c: New file.
49670
49671         * modules/floorl: New file.
49672         * lib/floorl.c: Replace entire file.
49673         * m4/floorl.m4: New file.
49674         * lib/math.in.h (floorl): Replace declaration.
49675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49676         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49677         * doc/functions/floorl.texi: Mention the 'floorl' module.
49678         * modules/mathl (Files): Remove lib/floorl.c.
49679         (Depends-on): Add floorl.
49680
49681 2007-10-04  Bruno Haible  <bruno@clisp.org>
49682
49683         * modules/floorf-tests: New file.
49684         * tests/test-floorf.c: New file.
49685
49686         * modules/floorf: New file.
49687         * lib/floor.c: New file.
49688         * lib/floorf.c: New file.
49689         * m4/floorf.m4: New file.
49690         * lib/math.in.h (floorf): New declaration.
49691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49692         HAVE_DECL_FLOORF.
49693         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49694         HAVE_DECL_FLOORF.
49695         * doc/functions/floorf.texi: Mention the 'floorf' module.
49696
49697 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49698             Bruno Haible  <bruno@clisp.org>
49699
49700         Advertise for the Git server instead of the CVS server.
49701         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49702         repository instead of the CVS one.
49703         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49704         about all VCS systems generically.
49705         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49706
49707 2007-10-04  Bruno Haible  <bruno@clisp.org>
49708
49709         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49710         means.
49711         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49712
49713 2007-10-04  Bruno Haible  <bruno@clisp.org>
49714
49715         * modules/truncl-tests: New file.
49716         * tests/test-truncl.c: New file.
49717
49718         * modules/truncl: New file.
49719         * lib/truncl.c: New file.
49720         * m4/truncl.m4: New file.
49721         * lib/math.in.h (truncl): New declaration.
49722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49723         HAVE_DECL_TRUNCL.
49724         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49725         HAVE_DECL_TRUNCL.
49726         * doc/functions/truncl.texi: Mention the 'truncl' module.
49727
49728 2007-10-04  Bruno Haible  <bruno@clisp.org>
49729
49730         * modules/truncf-tests: New file.
49731         * tests/test-truncf.c: New file.
49732
49733         * modules/truncf: New file.
49734         * lib/trunc.c: Make paramerizable through USE_* macros.
49735         * lib/truncf.c: New file.
49736         * m4/truncf.m4: New file.
49737         * lib/math.in.h (truncf): New declaration.
49738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49739         HAVE_DECL_TRUNCF.
49740         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49741         HAVE_DECL_TRUNCF.
49742         * doc/functions/truncf.texi: Mention the 'truncf' module.
49743
49744 2007-10-03  Bruno Haible  <bruno@clisp.org>
49745
49746         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49747         augmentation also for tests modules.
49748         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49749         * modules/atexit-tests (Makefile.am): Likewise.
49750         * modules/binary-io-tests (Makefile.am): Likewise.
49751         * modules/c-strcase-tests (Makefile.am): Likewise.
49752         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49753         * modules/canonicalize-tests (Makefile.am): Likewise.
49754         * modules/closein-tests (Makefile.am): Likewise.
49755         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49756         * modules/freadahead-tests (Makefile.am): Likewise.
49757         * modules/fseek-tests (Makefile.am): Likewise.
49758         * modules/fseeko-tests (Makefile.am): Likewise.
49759         * modules/ftell-tests (Makefile.am): Likewise.
49760         * modules/ftello-tests (Makefile.am): Likewise.
49761         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49762         * modules/isnanl-tests (Makefile.am): Likewise.
49763         * modules/lseek-tests (Makefile.am): Likewise.
49764         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49765         * modules/mbscasestr-tests (Makefile.am): Likewise.
49766         * modules/mbschr-tests (Makefile.am): Likewise.
49767         * modules/mbscspn-tests (Makefile.am): Likewise.
49768         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49769         * modules/mbspbrk-tests (Makefile.am): Likewise.
49770         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49771         * modules/mbsrchr-tests (Makefile.am): Likewise.
49772         * modules/mbsspn-tests (Makefile.am): Likewise.
49773         * modules/mbsstr-tests (Makefile.am): Likewise.
49774         * modules/printf-posix-tests (Makefile.am): Likewise.
49775         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49776         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49777         * modules/tsearch-tests (Makefile.am): Likewise.
49778         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49779         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49780         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49781         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49782         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49783         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49784         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49785         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49786         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49787         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49788         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49789         * modules/xstrtol-tests (Makefile.am): Likewise.
49790         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49791         * modules/yesno-tests (Makefile.am): Likewise.
49792
49793 2007-10-03  Bruno Haible  <bruno@clisp.org>
49794
49795         * modules/trunc-tests: New file.
49796         * tests/test-trunc.c: New file.
49797
49798         * modules/trunc: New file.
49799         * lib/trunc.c: New file.
49800         * m4/trunc.m4: New file.
49801         * lib/math.in.h (trunc): New declaration.
49802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49803         HAVE_DECL_TRUNC.
49804         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49805         HAVE_DECL_TRUNC.
49806         * doc/functions/trunc.texi: Mention the 'trunc' module.
49807
49808 2007-10-03  Bruno Haible  <bruno@clisp.org>
49809
49810         * tests/test-fpending.c: New file, mostly copied
49811         from coreutils/lib/t-fpending.c.
49812         * modules/fpending-tests: New file.
49813
49814 2007-10-03  Bruno Haible  <bruno@clisp.org>
49815
49816         Port the stdio extensions to QNX (untested).
49817         * lib/fseterr.c (fseterr): Add support for QNX.
49818         * lib/fbufmode.c (fbufmode): Likewise.
49819         * lib/freadable.c (freadable): Likewise.
49820         * lib/fwritable.c (fwritable): Likewise.
49821         * lib/freading.c (freading): Likewise.
49822         * lib/fwriting.c (fwriting): Likewise.
49823         * lib/freadahead.c (freadahed): Likewise.
49824         * lib/fpurge.c (fpurge): Likewise.
49825         * lib/fseeko.c (rpl_fseeko): Likewise.
49826
49827 2007-10-03  Bruno Haible  <bruno@clisp.org>
49828             Jim Meyering  <jim@meyering.net>
49829             Eric Blake  <ebb9@byu.net>
49830
49831         * doc/relocatable.texi: Use @command instead of @program.
49832
49833 2007-10-02  Jim Meyering  <jim@meyering.net>
49834
49835         Perform one more "_.h" -> ".in.h" substitution.
49836         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49837         instead of unistd_.h here, too.
49838
49839 2007-10-01  Bruno Haible  <bruno@clisp.org>
49840
49841         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49842         Needed for the alloca-opt module.
49843
49844 2007-09-30  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49847         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49848         alloca_.h.
49849         * lib/argz.in.h: Renamed from lib/argz_.h.
49850         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49851         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49852         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49853         byteswap_.h.
49854         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49855         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49856         dirent_.h.
49857         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49858         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49859         fcntl_.h.
49860         * lib/float.in.h: Renamed from lib/float_.h.
49861         * modules/float (Files, Makefile.am): Use float.in.h instead of
49862         float_.h.
49863         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49864         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49865         fnmatch_.h.
49866         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49867         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49868         getopt_.h.
49869         * lib/glob.in.h: Renamed from lib/glob_.h.
49870         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49871         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49872         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49873         iconv_.h.
49874         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49875         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49876         inttypes_.h.
49877         * lib/locale.in.h: Renamed from lib/locale_.h.
49878         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49879         locale_.h.
49880         * lib/math.in.h: Renamed from lib/math_.h.
49881         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49882         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49883         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49884         of netinet_in_.h. Add dependency.
49885         * lib/poll.in.h: Renamed from lib/poll_.h.
49886         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49887         * lib/search.in.h: Renamed from lib/search_.h.
49888         * modules/search (Files, Makefile.am): Use search.in.h instead of
49889         search_.h.
49890         * lib/signal.in.h: Renamed from lib/signal_.h.
49891         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49892         _signal.h.
49893         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49894         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49895         stdbool_.h.
49896         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49897         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49898         stdint_.h.
49899         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49900         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49901         stdio_.h.
49902         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49903         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49904         stdlib_.h.
49905         * lib/string.in.h: Renamed from lib/string_.h.
49906         * modules/string (Files, Makefile.am): Use string.in.h instead of
49907         string_.h.
49908         * doc/gnulib-tool.texi (Initial import): Update.
49909         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49910         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49911         of sys_select_.h. Add dependency.
49912         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49913         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49914         of sys_socket_.h.
49915         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49916         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49917         sys_stat_.h.
49918         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49919         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49920         sys_time_.h.
49921         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49922         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49923         sysexits_.h.
49924         * lib/time.in.h: Renamed from lib/time_.h.
49925         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49926         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49927         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49928         unistd_.h.
49929         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49930         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49931         wchar_.h.
49932         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49933         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49934         wctype_.h.
49935         * build-aux/bootstrap (slurp): Update.
49936         * lib/.cppi-disable: Update.
49937
49938 2007-09-30  Bruno Haible  <bruno@clisp.org>
49939
49940         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49941         Needed on BeOS.
49942
49943 2007-09-30  Bruno Haible  <bruno@clisp.org>
49944
49945         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49946
49947 2007-09-29  Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49950
49951 2007-09-29  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49954         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49955         * build-aux/install-reloc: Compile also areadlink.c.
49956         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49957
49958 2007-09-29  Bruno Haible  <bruno@clisp.org>
49959
49960         * gnulib-tool (func_emit_initmacro_done): Indentation.
49961
49962 2007-09-29  Bruno Haible  <bruno@clisp.org>
49963
49964         * README: Add CVS checkout update instructions.
49965         Info from Bob Proulx <bob@proulx.com>.
49966
49967 2007-09-28  Eric Blake  <ebb9@byu.net>
49968
49969         Provide move-if-change.
49970         * build-aux/move-if-change: New file, based on best practice
49971         rather than any canonical upstream location.
49972
49973 2007-09-28  Jim Meyering  <jim@meyering.net>
49974
49975         Fix canonicalize loop-detection corner case.
49976         Do not attempt to stat the symlink values stored via seen_triple.
49977         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49978         on linux-2.6.18, (but not 2.6.22).
49979         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49980         triple_compare.  The former compares dev,ino,filename, while the latter
49981         would actually stat dirname(filename) when dev and ino were equal.
49982         * lib/hash-triple.c: Install <string.h>.
49983         (STREQ): Define.
49984         (triple_compare_ino_str): New function.
49985         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49986
49987 2007-09-28  Eric Blake  <ebb9@byu.net>
49988
49989         Enforce that AC_REPLACE_FUNCS files exist.
49990         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49991         override check for typos.
49992
49993         Fix test-closein on Solaris 10.
49994         * tests/test-closein.c (main): Don't assume stdin can be inherited
49995         closed on all systems.
49996         * tests/test-closein.sh: Likewise.
49997         Reported by Piotr Tarnowski.
49998
49999 2007-09-28  Jim Meyering  <jim@meyering.net>
50000
50001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50002
50003 2007-09-27  Jim Meyering  <jim@meyering.net>
50004
50005         canonicalize: Avoid a false-positive cycle failure.
50006         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50007         Sort.  Remove cycle-check.
50008         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50009         not cycle-check.h.
50010         (seen_triple): New function.
50011         (canonicalize_filename_mode): Use it instead of cycle-check.
50012         * tests/test-canonicalize.c: Add a test for this bug.
50013         * tests/test-canonicalize.sh: Set up and run the test.
50014
50015         New module, file-set, from coreutils.
50016         * modules/file-set: Define it.
50017         * lib/file-set.c, lib/file-set.h: Implement.
50018
50019         New module, hash-triple, from coreutils.
50020         * modules/hash-triple: Define it.
50021         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50022
50023 2007-09-25  Eric Blake  <ebb9@byu.net>
50024
50025         Fix strerror on Interix.
50026         * lib/string_.h (strerror): Declare replacement.
50027         * doc/functions/strerror.texi (strerror): Document the Interix
50028         shortcoming.
50029         * modules/string (Makefile.am): Support new hooks.
50030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50031         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50032         gl_FUNC_STRERROR_SEPARATE.
50033         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50034         * lib/strerror.c (rpl_strerror): Provide replacement.
50035         * modules/strerror (Depends-on): Add string.
50036         (configure.ac): Detect use of module.
50037         * tests/test-strerror.c: New file.
50038         * modules/strerror-tests: New test module.
50039         * modules/argp (Depends-on): Add strerror.
50040         * modules/error (Depends-on): Likewise.
50041         Reported by Martin Koeppe.
50042
50043 2007-09-24  Bruno Haible  <bruno@clisp.org>
50044
50045         * README: Update git instructions.
50046
50047 2007-09-24  Eric Blake  <ebb9@byu.net>
50048
50049         Revert fpending breakage from 2007-09-08.
50050         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50051         __fpending.c.
50052
50053 2007-09-24  Jim Meyering  <jim@meyering.net>
50054
50055         filenamecat.c: Add a test.
50056         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50057         showing how the function works when DIR is the empty string.
50058
50059 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50060
50061         * tests/test-canonicalize.sh: Turn on executable bit.
50062
50063 2007-09-19  Eric Blake  <ebb9@byu.net>
50064
50065         * README: Update CVS instructions.
50066
50067 2007-09-18  Bruno Haible  <bruno@clisp.org>
50068
50069         * modules/areadlink: New file.
50070         * lib/areadlink.h (areadlink): New declaration.
50071         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50072
50073 2007-09-17  Jim Meyering  <jim@meyering.net>
50074
50075         * lib/savewd.c (ESTALE) [!defined]: Define.
50076         Reported to be required on Interix by Martin Koeppe.
50077
50078 2007-09-17  Bruno Haible  <bruno@clisp.org>
50079
50080         * gnulib-tool (func_version): Use $version.
50081
50082 2007-09-16  Bruno Haible  <bruno@clisp.org>
50083
50084         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50085         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50086         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50087         Reported by Greg Schafer <gschafer@zip.com.au>.
50088
50089 2007-09-15  Bruno Haible  <bruno@clisp.org>
50090
50091         * gnulib-tool (sed): Try a little harder to make bash understand the
50092         alias.
50093         Reported by Bruce Korb <bruce.korb@gmail.com>.
50094
50095 2007-09-13  Eric Blake  <ebb9@byu.net>
50096
50097         * ChangeLog: Remove conflict markers.
50098
50099 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50100
50101         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50102         Reported by Bruno Haible <bruno@clisp.org>.
50103
50104 2007-09-12  Bruno Haible  <bruno@clisp.org>
50105
50106         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50107         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50108         is not defined.
50109
50110 2007-09-12  Eric Blake  <ebb9@byu.net>
50111
50112         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50113         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50114         Autoconf definition.
50115         * modules/euidaccess (Depends-on): Add extensions, for
50116         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50117         * modules/fnmatch (Depends-on): Likewise.
50118         * modules/getaddrinfo (Depends-on): Likewise.
50119         * modules/getdelim (Depends-on): Likewise.
50120         * modules/getline (Depends-on): Likewise.
50121         * modules/getsubopt (Depends-on): Likewise.
50122         * modules/gettext (Depends-on): Likewise.
50123         * modules/group-member (Depends-on): Likewise.
50124         * modules/mbchar (Depends-on): Likewise.
50125         * modules/memmem (Depends-on): Likewise.
50126         * modules/mempcpy (Depends-on): Likewise.
50127         * modules/memrchr (Depends-on): Likewise.
50128         * modules/pagealign_alloc (Depends-on): Likewise.
50129         * modules/readutmp (Depends-on): Likewise.
50130         * modules/stpcpy (Depends-on): Likewise.
50131         * modules/stpncpy (Depends-on): Likewise.
50132         * modules/strchrnul (Depends-on): Likewise.
50133         * modules/strndup (Depends-on): Likewise.
50134         * modules/strsep (Depends-on): Likewise.
50135         * modules/strverscmp (Depends-on): Likewise.
50136         * modules/vasprintf (Depends-on): Likewise.
50137         * modules/wcwidth (Depends-on): Likewise.
50138         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50139         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50140         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50141         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50142         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50143         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50144         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50145         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50146         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50147         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50148         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50149         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50150         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50151         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50152         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50153         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50154         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50155         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50157         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50158         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50159         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50160         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50161         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50162         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50164         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50165         so that lock.m4 can be used in gettext without extensions module.
50166
50167 2007-09-11  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/isc-posix.m4: Remove file.
50170         Suggested by Eric Blake.
50171
50172 2007-09-11  Eric Blake  <ebb9@byu.net>
50173
50174         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50175
50176 2007-09-10  Bruno Haible  <bruno@clisp.org>
50177
50178         * posix-modules: Fix typo in error message.
50179         Reported by Matt <mkraai@beckman.com>.
50180
50181 2007-09-09  Bruno Haible  <bruno@clisp.org>
50182
50183         * doc/functions/getdelim.texi: Update list of platforms lacking the
50184         function.
50185         * doc/functions/getline.texi: Likewise.
50186
50187 2007-09-09  Jim Meyering  <jim@meyering.net>
50188
50189         * lib/hash.c (hash_initialize): Detect calloc failure.
50190         Reported by Bruno Haible.
50191
50192 2007-09-09  Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50195         malloc or realloc fails.
50196
50197 2007-09-09  Bruno Haible  <bruno@clisp.org>
50198
50199         * modules/getcwd (Depends-on): Add malloc-posix.
50200         * modules/glob (Depends-on): Likewise.
50201         * modules/putenv (Depends-on): Likewise.
50202         * modules/strdup (Depends-on): Likewise.
50203         * modules/getdelim (Depends-on): Add realloc-posix.
50204         * modules/read-file (Depends-on): Likewise.
50205
50206 2007-09-09  Bruno Haible  <bruno@clisp.org>
50207
50208         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50209         (gl_FUNC_MALLOC_POSIX): Require it.
50210         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50211         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50212         * modules/realloc (Files): Add m4/malloc.m4.
50213         * modules/calloc (Files): Likewise.
50214
50215 2007-09-09  Bruno Haible  <bruno@clisp.org>
50216
50217         * modules/malloc-posix: New file.
50218         * modules/malloc (Depends-on): Add malloc-posix.
50219         * lib/malloc.c: Include errno.h.
50220         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50221         and a POSIX-compatible malloc into a single function. Set ENOMEM
50222         when returning NULL.
50223         * m4/malloc.m4: New file.
50224         * doc/functions/malloc.texi: Mention the malloc-posix module.
50225         * lib/stdlib_.h (malloc): New declaration.
50226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50227         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50228         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50229         and HAVE_MALLOC_POSIX.
50230
50231 2007-09-09  Bruno Haible  <bruno@clisp.org>
50232
50233         * modules/realloc-posix: New file.
50234         * modules/realloc (Depends-on): Add realloc-posix.
50235         * lib/realloc.c: Include errno.h.
50236         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50237         and a POSIX-compatible realloc into a single function. Set ENOMEM
50238         when returning NULL.
50239         * m4/realloc.m4: New file.
50240         * doc/functions/realloc.texi: Mention the realloc-posix module.
50241         * lib/stdlib_.h (realloc): New declaration.
50242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50243         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50244         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50245         and HAVE_REALLOC_POSIX.
50246
50247 2007-09-09  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/calloc-posix: New file.
50250         * modules/calloc (Depends-on): Add calloc-posix.
50251         * lib/calloc.c: Include errno.h.
50252         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50253         and a POSIX-compatible calloc into a single function. Set ENOMEM
50254         when returning NULL.
50255         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50256         * doc/functions/calloc.texi: Mention the calloc-posix module.
50257         * lib/stdlib_.h (calloc): New declaration.
50258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50259         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50260         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50261         and HAVE_CALLOC_POSIX.
50262
50263 2007-09-09  Bruno Haible  <bruno@clisp.org>
50264
50265         Allow for modules to show an arbitrary notice.
50266         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50267         * gnulib-tool: New option --extract-notice.
50268         (func_usage): Document it.
50269         (sed_extract_prog): Update.
50270         (func_get_notice): New function.
50271         (func_modules_notice): New function.
50272         (func_import, func_create_testdir): Invoke it.
50273         Suggested by Jim Meyering.
50274
50275 2007-09-09  Bruno Haible  <bruno@clisp.org>
50276
50277         * gnulib-tool: New options --verbose, --quiet.
50278         (func_usage): Document them.
50279         (verbose): New variable.
50280         (func_execute_command): New function.
50281         (func_import): Don't show the module list and the file list if
50282         $verbose < 0.
50283         (func_create_testdir): Likewise. Use func_execute_command.
50284         (func_create_megatestdir): Use func_execute_command.
50285
50286 2007-09-08  Bruno Haible  <bruno@clisp.org>
50287
50288         * gnulib-tool (func_import): Prefer rsync over wget when available,
50289         for fetching the PO files.
50290
50291 2007-09-08  Bruno Haible  <bruno@clisp.org>
50292
50293         * posix-modules: New file. Portions copied from gnulib-tool.
50294         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50295
50296 2007-09-08  Jim Meyering  <jim@meyering.net>
50297
50298         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50299         * lib/fpending.h: Rename from __fpending.h.
50300         * lib/fpending.c: Rename from __fpending.c.
50301         Include "fpending.h", not "__fpending.h".
50302         * lib/__fpending.h, lib/__fpending.c: Remove files.
50303         * modules/fpending (Files): Reflect new file names.
50304         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50305
50306 2007-09-08  Bruno Haible  <bruno@clisp.org>
50307
50308         * m4/inttypes-h.m4: Remove stub file.
50309
50310 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50311
50312         * doc/headers/stdint.texi: Discuss #include_next issue.
50313
50314 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50315
50316         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50317
50318 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50319
50320         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50321         in variable name.
50322
50323 2007-09-03  Jim Meyering  <jim@meyering.net>
50324
50325         New module: git-version-gen.
50326         * modules/git-version-gen: New file.
50327
50328         Import changes from coreutils for bootstrap script.
50329
50330         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50331
50332         bootstrap: uses rsync to download the .po files
50333         * build-aux/bootstrap (po_download_command_format): New global.
50334         (download_po_files): Use rsync.
50335         (update_po_files): Don't remove .po files after download,
50336         so future rsync runs can take advantage of the copies.
50337
50338         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50339
50340         Solve the unnecessary-.po-file-regeneration problem once and for all.
50341         * build-aux/bootstrap (download_po_files): New function, renamed from
50342         get_translations.  Now, downloads, but doesn't update LINGUAS.
50343         (update_po_files): New function.
50344
50345         bootstrap: Ignore more.
50346         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50347         uniwidth to e.g., lib/.gitignore.
50348         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50349
50350         * build-aux/bootstrap: New setting: vc_ignore.
50351         (insert_sorted_if_absent): Create $file if absent.
50352         Adapt to new, possibly empty, list: $vc_ignore.
50353
50354         bootstrap: generate more ignorable names
50355         * build-aux/bootstrap (slurp): When generating ignorable names,
50356         also map .sin to .sed, .gperf to .c, and .y to .c.
50357
50358 2007-09-03  Jim Meyering  <jim@meyering.net>
50359
50360         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50361         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50362
50363 2007-09-02  Bruno Haible  <bruno@clisp.org>
50364
50365         Fix mis-recognition of 'mcs' on QNX 6.
50366         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50367         output contains the string "Mono".
50368         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50369         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50370
50371 2007-09-01  Bruno Haible  <bruno@clisp.org>
50372
50373         Fix collision between uniwidth/* and linebreak modules.
50374         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50375         u32_width): Remove declarations.
50376         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50377         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50378         streq3, streq2, streq1, streq0): Remove functions.
50379         (STREQ): Remove macro.
50380         (is_cjk_encoding): Remove function.
50381         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50382         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50383         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50384         * NEWS: Document the change.
50385
50386 2007-09-01  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/streq.h: Add double-inclusion guard.
50389
50390 2007-09-01  Karl Berry  <karl@gnu.org>
50391
50392         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50393
50394 2007-08-28  Jim Meyering  <jim@meyering.net>
50395
50396         Rename mreadlink_with_size to areadlink_with_size.
50397         * NEWS: Document the change.
50398         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50399         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50400         * lib/mreadlink.h: Rename this to...
50401         * lib/areadlink.h: ...this.
50402         * modules/mreadlink-with-size: Rename this to...
50403         * modules/areadlink-with-size: ...this.
50404         * lib/canonicalize.c: Reflect the renaming.
50405         * modules/canonicalize: Likewise.
50406
50407 2007-08-26  Bruno Haible  <bruno@clisp.org>
50408
50409         * gnulib-tool (func_import): When deciding which files to remove,
50410         consider also dangling symbolic links.
50411         Reported by Eric Blake.
50412
50413 2007-08-26  Bruno Haible  <bruno@clisp.org>
50414
50415         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50416
50417 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50418
50419         * lib/readline.c: Don't include getline.h, the prototype is now
50420         found in stdio.h.
50421
50422 2007-08-23  Jim Meyering  <jim@meyering.net>
50423
50424         Getdelim touchup.
50425         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50426         around the funlockfile call, since funlockfile never sets errno.
50427         Don't set errno upon failed realloc.
50428
50429 2007-08-22  Eric Blake  <ebb9@byu.net>
50430
50431         Getline touchups.
50432         * lib/getdelim.c (getdelim): Revert regression that required *n to
50433         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50435         getdelim, rather than whether implementation is missing.
50436         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50437         * lib/stdio_.h (getline): Also declare if replacement is
50438         required.
50439         * doc/functions/getdelim.texi: New file.
50440         * doc/functions/getline.texi: Likewise.
50441         * doc/gnulib.texi (Function Substitutes): Add new files.
50442         Reported by Bruno Haible.
50443
50444 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50445
50446         * users.txt: Add Guile.
50447
50448 2007-08-22  Eric Blake  <ebb9@byu.net>
50449
50450         * tests/test-getdelim.c (main): Use remove, not unlink.
50451         * tests/test-getline.c (main): Likewise.
50452
50453         Move getline and getdelim into stdio.h, per POSIX 200x.
50454         * modules/getline (Files): Remove getline.h.
50455         (Depends-on): Add stdio.
50456         (configure.ac): Add module indicator.
50457         * modules/getdelim (Files): Remove getdelim.h.
50458         (Depends-on): Add stdio.
50459         (configure.ac): Add module indicator.
50460         * modules/stdio (Makefile.am): Work with new indicators.
50461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50462         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50463         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50464         * lib/getdelim.h: Delete.
50465         * lib/getline.h: Delete.
50466         * lib/stdio_.h (getdelim, getline): Declare.
50467         * modules/getdelim-tests: New module.
50468         * modules/getline-tests: Likewise.
50469         * tests/test-getdelim.c: New file.
50470         * tests/test-getline.c: Likewise.
50471         * NEWS: Document the change.
50472         * lib/getline.c: Update choice of header.
50473         * lib/csharpcomp.c: Likewise.
50474         * lib/getpass.c: Likewise.
50475         * lib/javacomp.c: Likewise.
50476         * lib/javaversion.c: Likewise.
50477         * lib/yesno.c: Likewise.
50478         * lib/getdelim.c: Likewise.
50479         (getdelim): Set errno on failure, and avoid memory leak.
50480
50481 2007-08-19  Bruno Haible  <bruno@clisp.org>
50482
50483         * modules/closein (Depends-on): Add freadahead.
50484         * lib/closein.c: Include freadahead.h.
50485         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50486         is zero.
50487
50488 2007-08-19  Bruno Haible  <bruno@clisp.org>
50489
50490         * modules/freadahead-tests: New file.
50491         * tests/test-freadahead.sh: New file.
50492         * tests/test-freadahead.c: New file.
50493
50494         * modules/freadahead: New file.
50495         * lib/freadahead.h: New file.
50496         * lib/freadahead.c: New file.
50497         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50498         fbufmode, fpurge, freadable, fwritable.
50499
50500 2007-08-19  Eric Blake  <ebb9@byu.net>
50501
50502         Test yesno in combination with closein.
50503         * lib/yesno.c (yesno): Document use of stdin.
50504         * modules/yesno-tests (Files): New module.
50505         * tests/test-yesno.c (main): New file.
50506         * tests/test-yesno.sh: Likewise.
50507
50508 2007-08-19  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50511         * lib/fseeko.c (rpl_fseeko): Likewise.
50512         * lib/fseterr.c (fseterr): Likewise.
50513
50514 2007-08-19  Bruno Haible  <bruno@clisp.org>
50515
50516         * tests/test-lseek.c (main): Disable a test for BeOS.
50517         * doc/functions/lseek.texi: Document the BeOS bug.
50518
50519 2007-08-19  Bruno Haible  <bruno@clisp.org>
50520             Eric Blake  <ebb9@byu.net>
50521
50522         * lib/lseek.c: Include <sys/stat.h>.
50523         (rpl_lseek): Add workaround code also for Unix platforms.
50524         Needed for BeOS.
50525         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50526         * doc/functions/lseek.texi: Document BeOS definiency.
50527
50528 2007-08-18  Bruno Haible  <bruno@clisp.org>
50529
50530         * modules/fstrcmp-tests: New file.
50531         * tests/test-fstrcmp.c: New file.
50532
50533 2007-08-18  Bruno Haible  <bruno@clisp.org>
50534
50535         * modules/fstrcmp: New file, from GNU gettext with modifications.
50536         * lib/fstrcmp.h: New file, from GNU gettext.
50537         * lib/fstrcmp.c: New file, from GNU gettext.
50538         * MODULES.html.sh (String handling): Add fstrcmp.
50539
50540 2007-08-18  Bruno Haible  <bruno@clisp.org>
50541
50542         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50543         'bool'.
50544         (diag, compareseq): Remove const from the ctxt argument.
50545         (USE_HEURISTIC): Undefine at the end.
50546
50547 2007-08-18  Jim Meyering  <jim@meyering.net>
50548
50549         New file: lib/idcache.h
50550         * NEWS: Mention the addition.
50551         * modules/idcache (Files): Add lib/idcache.h
50552         * lib/idcache.c: Include "idcache.h".
50553         Don't include <sys/types.h>.
50554         Add a FIXME comment.
50555         Move file-scoped "static" declarations to the top.
50556         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50557
50558 2007-08-17  Bruno Haible  <bruno@clisp.org>
50559         and Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         * MODULES.html.sh: Add diffseq.
50562         * modules/diffseq: New file.
50563         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50564         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50565
50566 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50567
50568         Import changes from coreutils for bootstrap script.
50569
50570         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50571
50572         * build-aux/bootstrap (slurp): Work even in environments where
50573         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50574         current code does not slurp files whose names start with ".", and
50575         this looks like it might be a troublesome area.
50576
50577         2007-07-11  Jim Meyering  <jim@meyering.net>
50578
50579         If there's a GPL vN copyright comment, require that N == 3.
50580
50581         2007-07-08  Jim Meyering  <jim@meyering.net>
50582
50583         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50584         * build-aux/bootstrap (mam_template): Move definition out of loop.
50585
50586         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50587
50588         * build-aux/bootstrap (symlink_to_dir): Rename function from
50589         symlink_to_gnulib.  Add a directory parameter.  Update all
50590         callers.
50591         (cp_mark_as_generated): Also check for -- and link to -- files in
50592         gl/.
50593
50594         2007-07-08  Jim Meyering  <jim@meyering.net>
50595
50596         Adapt to deeper hierarchy in gnulib.
50597         * build-aux/bootstrap (symlink_to_dir): If the destination
50598         directory doesn't exist, create it. This is required at least for
50599         "lib/uniwidth/cjk.h".
50600
50601         2007-05-15  Jim Meyering  <jim@meyering.net>
50602
50603         * build-aux/bootstrap: Now that generated Makefile.am files
50604         are no longer under version control, they must be created at
50605         bootstrap time.
50606
50607 2007-08-14  Ben Pfaff  <blp@gnu.org>
50608
50609         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50610
50611 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50612
50613         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50614         given the changes below.
50615         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50616         even on hosts that have padding bits beyond the supported 64.
50617
50618 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50619
50620         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50621         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50622         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50623         depends on it.
50624         (xstrtol_error): Remove.
50625         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50626         but with a different signature.
50627         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50628         * lib/xstrtol-error.c: Include exitfail.h.
50629         (xstrtol_fatal): New function, with a different signature from the
50630         old xstrtol_error, so that the caller need not worry about passing
50631         in an exit status, or about storage management of the option argument.
50632         (xstrtol_error): Now a static function.  Redo signature to
50633         implement xstrtol_fatal.  Output the correct number of hyphens in
50634         front of the option so that the caller need not worry about
50635         storage management.
50636         (N_): New macro.
50637         (_): Remove; not used now.
50638         * modules/xstrtol: Depend on getopt.
50639         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50640         of old STRTOL_FATAL_ERROR macro.
50641         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50642         of test program.
50643         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50644         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50645
50646 2007-08-08  Eric Blake  <ebb9@byu.net>
50647
50648         * lib/xstrtol-error.c: Add missing include.
50649
50650         Move xstrtol messages into gnulib domain, when --pobase is used.
50651         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50652         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50653         * modules/xstrtol (Files): Distribute new file.
50654         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50655         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50656         * tests/test-xstrtol.c: ...into new file.
50657         * tests/test-xstrtoul.c: Also test xstrtoul.
50658         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50659         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50660         * tests/test-xstrtol.sh: Drive the tests.
50661         * tests/test-xstrtoimax.sh: Likewise.
50662         * tests/test-xstrtoumax.sh: Likewise.
50663         * modules/xstrtol-tests: New module.
50664         * modules/xstrtoimax-tests: Likewise.
50665         * modules/xstrtoumax-tests: Likewise.
50666
50667 2007-08-08  Jim Meyering  <jim@meyering.net>
50668
50669         New function: mfile_name_concat.
50670         * lib/filenamecat.c (mfile_name_concat): New function, just like
50671         file_name_concat, but return NULL upon failure rather than exiting
50672         with a diagnostic.
50673         * lib/filenamecat.h: Declare it.
50674
50675 2007-08-07  Bruno Haible  <bruno@clisp.org>
50676
50677         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50678         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50679         warning from gcc.
50680         Reported by Eric Blake.
50681
50682 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50683
50684         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50685         * modules/crypto/arcfour (License): Likewise.
50686         * modules/crypto/des-tests (License): Likewise.
50687         * modules/crypto/gc-arctwo-tests (License): Likewise.
50688         * modules/crypto/gc-des-tests (License): Likewise.
50689         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50690         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50691         * modules/crypto/gc-md2-tests (License): Likewise.
50692         * modules/crypto/gc-md4-tests (License): Likewise.
50693         * modules/crypto/gc-md5-tests (License): Likewise.
50694         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50695         * modules/crypto/gc-rijndael-tests (License): Likewise.
50696         * modules/crypto/gc-sha1-tests (License): Likewise.
50697         * modules/crypto/gc-tests (License): Likewise.
50698         * modules/crypto/hmac-md5 (License): Likewise.
50699         * modules/crypto/hmac-sha1 (License): Likewise.
50700         * modules/crypto/md2-tests (License): Likewise.
50701         * modules/crypto/md4-tests (License): Likewise.
50702         * modules/crypto/md5 (License): Likewise.
50703         * modules/crypto/rijndael (License): Likewise.
50704         * modules/crypto/sha1 (License): Likewise.
50705         * modules/memxor (License): Likewise.
50706
50707 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50708         and Bruno Haible  <bruno@clisp.org>
50709
50710         * NEWS: Describe interface changes to human, xstrtol.
50711         * lib/human.h: Include <xstrtol.h>.
50712         (human_options): Return enum strtol_error, not int.  Remove
50713         bool arg; take int * instead.
50714         * lib/human.c: Don't include "gettext.h".
50715         (_): Remove; no longer used.
50716         Don't include <xstrtol.h>, since human.h does it.
50717         (human_options): Adjust to abovementioned interface changes.
50718         Do not report error to stderr; that's now the caller's
50719         responsibility.
50720         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50721         interface change.
50722         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50723         Str, Argument_type_string.  All uses changed.  Put " argument"
50724         in diagnostics to make them clearer.  Change wording of suffix
50725         message for clarity.
50726         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50727         Argument_type_string.
50728         (STRTOL_FATAL_WARN): Remove; no longer used.
50729         * modules/human (Depends-on): Remove gettext-h.
50730
50731 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50732
50733         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50734
50735 2007-07-31  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50738         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50739         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50740
50741 2007-07-31  Bruno Haible  <bruno@clisp.org>
50742
50743         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50744         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50745
50746 2007-07-30  Bruno Haible  <bruno@clisp.org>
50747
50748         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50749         * modules/c-ctype (License): Likewise.
50750         * modules/c-strcase (License): Likewise.
50751         * modules/check-version (License): Likewise.
50752         * modules/iconv (License): Likewise.
50753         * modules/iconv_open (License): Likewise.
50754         * modules/read-file (License): Likewise.
50755         * modules/striconv (License): Likewise.
50756         * modules/strverscmp (License): Likewise.
50757         * modules/vasprintf (License): Likewise.
50758         * modules/crypto/des (License): Likewise.
50759         * modules/crypto/gc (License): Likewise.
50760         * modules/crypto/gc-arcfour (License): Likewise.
50761         * modules/crypto/gc-arctwo (License): Likewise.
50762         * modules/crypto/gc-des (License): Likewise.
50763         * modules/crypto/gc-hmac-md5 (License): Likewise.
50764         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50765         * modules/crypto/gc-md2 (License): Likewise.
50766         * modules/crypto/gc-md4 (License): Likewise.
50767         * modules/crypto/gc-md5 (License): Likewise.
50768         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50769         * modules/crypto/gc-random (License): Likewise.
50770         * modules/crypto/gc-rijndael (License): Likewise.
50771         * modules/crypto/gc-sha1 (License): Likewise.
50772         * modules/crypto/md2 (License): Likewise.
50773         * modules/crypto/md4 (License): Likewise.
50774
50775 2007-07-30  Jim Meyering  <jim@meyering.net>
50776
50777         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50778         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50779         it has valid stat data.  This bug would cause du not to count the
50780         sizes of inaccessible directories.
50781         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50782         in <http://bugzilla.redhat.com/250077>.
50783
50784 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50785             Bruno Haible  <bruno@clisp.org>
50786
50787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50788         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50789         #include_next, gives a diagnostic about it, but reports no error in
50790         the exit code.
50791         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50792
50793 2007-07-24  Ben Pfaff  <blp@gnu.org>
50794
50795         Improve name: "count-one-bits" is better than "popcount".
50796         * MODULES.html.sh: Update name.
50797         * lib/popcount.h: Renamed lib/count-one-bits.h.
50798         (popcount): Renamed count_one_bits.
50799         (popcountl): Renamed count_one_bits_l.
50800         (popcountll): Renamed count_one_bits_ll.
50801         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50802         * modules/popcount: Renamed module/count-one-bits.
50803         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50804         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50805
50806 2007-07-23  Ben Pfaff  <blp@gnu.org>
50807
50808         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50809         better code generation, and add U to large constants to avoid
50810         warnings, in non-GCC case.
50811         Suggested by Bruno Haible.
50812
50813 2007-07-23  Ben Pfaff  <blp@gnu.org>
50814
50815         * lib/popcount.h: Use verify_true instead of if...abort.
50816         * modules/popcount: Depend on verify module.
50817         Suggested by Jim Meyering.
50818
50819 2007-07-23  Bruno Haible  <bruno@clisp.org>
50820
50821         * gnulib-tool (func_import): Create a .cvsignore file also when the
50822         directory is not yet in CVS but the toplevel directory is. When
50823         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50824         Reported by Karl Berry.
50825
50826 2007-07-22  Ben Pfaff  <blp@gnu.org>
50827
50828         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50829         case.
50830         Suggested by Eric Blake.
50831
50832 2007-07-22  Ben Pfaff  <blp@gnu.org>
50833
50834         New module: popcount.
50835         * MODULES.html.sh: Add popcount.
50836         * modules/popcount: New file.
50837         * modules/popcount-tests: New file.
50838         * tests/test-popcount.c: New file.
50839         * lib/popcount.h: New file.
50840         * m4/popcount.m4: New file.
50841
50842 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50843
50844         * build-aux/announce-gen: Update to GPLv3.
50845
50846         * build-aux/config.guess: Update from config.
50847
50848 2007-07-21  Bruno Haible  <bruno@clisp.org>
50849
50850         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50851         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50852
50853 2007-07-20  Jim Meyering  <jim@meyering.net>
50854
50855         * check-module: Diagnose a self-dependency.
50856
50857 2007-07-19  Bruno Haible  <bruno@clisp.org>
50858
50859         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50860         empty.
50861         Reported by Eric Blake.
50862
50863 2007-07-18  Bruno Haible  <bruno@clisp.org>
50864
50865         * gnulib-tool: New options --po-base, --po-domain.
50866         (func_usage): Document them.
50867         (pobase, po_domain): New variables.
50868         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50869         DEFAULT_TEXT_DOMAIN.
50870         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50871         (func_import): Consider pobase and po_domain. Create a po/ directory.
50872         (func_create_testdir): Set pobase and po_domain to empty.
50873         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50874         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50875
50876 2007-07-18  Bruno Haible  <bruno@clisp.org>
50877
50878         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50879         EXTRA_DIST augmentation for files in build-aux/.
50880
50881 2007-07-16  Bruno Haible  <bruno@clisp.org>
50882
50883         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50884         * modules/getdelim (License): Likewise.
50885
50886 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50887
50888         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50889         * modules/d-type (License): Likewise.
50890         * modules/extensions (License): Likewise.
50891         * modules/fnmatch (License): Likewise.
50892         * modules/fseeko (License): Likewise.
50893         * modules/getaddrinfo (License): Likewise.
50894         * modules/getline (License): Likewise.
50895         * modules/getlogin_r (License): Likewise.
50896         * modules/getpass (License): Likewise.
50897         * modules/gettimeofday (License): Likewise.
50898         * modules/glob (License): Likewise.
50899         * modules/inet_ntop (License): Likewise.
50900         * modules/malloc (License): Likewise.
50901         * modules/malloca (License): Likewise.
50902         * modules/memmem (License): Likewise.
50903         * modules/mempcpy (License): Likewise.
50904         * modules/memset (License): Likewise.
50905         * modules/minmax (License): Likewise.
50906         * modules/mktime (License): Likewise.
50907         * modules/netinet_in (License): Likewise.
50908         * modules/pathmax (License): Likewise.
50909         * modules/poll (License): Likewise.
50910         * modules/regex (License): Likewise.
50911         * modules/snprintf (License): Likewise.
50912         * modules/stdbool (License): Likewise.
50913         * modules/stdint (License): Likewise.
50914         * modules/stdio (License): Likewise.
50915         * modules/strcase (License): Likewise.
50916         * modules/strcasestr (License): Likewise.
50917         * modules/strdup (License): Likewise.
50918         * modules/string (License): Likewise.
50919         * modules/strndup (License): Likewise.
50920         * modules/strnlen (License): Likewise.
50921         * modules/strpbrk (License): Likewise.
50922         * modules/strptime (License): Likewise.
50923         * modules/strsep (License): Likewise.
50924         * modules/sys_select (License): Likewise.
50925         * modules/sys_socket (License): Likewise.
50926         * modules/sys_stat (License): Likewise.
50927         * modules/sys_time (License): Likewise.
50928         * modules/time (License): Likewise.
50929         * modules/time_r (License): Likewise.
50930         * modules/timegm (License): Likewise.
50931         * modules/unistd (License): Likewise.
50932         * modules/vsnprintf (License): Likewise.
50933         * modules/wctype (License): Likewise.
50934
50935 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50936
50937         * modules/argz (License): LGPLv2+.
50938
50939 2007-07-15  Karl Berry  <karl@gnu.org>
50940
50941         * doc/gnulib.texi: revise node structure per new fdl.texi.
50942
50943 2007-07-14  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50946         the output file.
50947         * lib/uniname/uninames.h: Regenerated.
50948
50949 2007-07-14  Karl Berry  <karl@gnu.org>
50950
50951         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50952         omitting sectioning and index commands.
50953
50954 2007-07-13  Bruno Haible  <bruno@clisp.org>
50955
50956         New gnulib-tool option --more-symlinks.
50957         * gnulib-tool (func_usage): Document --more-symlinks.
50958         (do_copyrights): New variable.
50959         Recognize option --more-symlinks.
50960         (func_import): Don't add a copyright notice transform to
50961         sed_transform_lib_file if do_copyrights is empty.
50962
50963 2007-07-13  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/vasnprintf.c (decimal_point_char): Define also if
50966         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50967         && !NEED_PRINTF_DIRECTIVE_A.
50968         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50969         Gary V. Vaughan <gary@gnu.org>.
50970
50971 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50972
50973         * lib/inttypes_.h: Undo previous change, since it was fixed
50974         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50975
50976 2007-07-13  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50979         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50980
50981 2007-07-13  Jim Meyering  <jim@meyering.net>
50982
50983         df: Don't fail for Tru64's "file-on-file mount".
50984         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50985         so we fall through and use statfs instead.  Details here:
50986         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50987         Reported by Albert Chin.
50988
50989 2007-07-13  Bruno Haible  <bruno@clisp.org>
50990
50991         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50992         * modules/configmake (License): Likewise.
50993         * modules/gettext (License): Likewise.
50994         * modules/gettext-h (License): Likewise.
50995         * modules/include_next (License): Likewise.
50996         * modules/link-warning (License): Likewise.
50997         * modules/localcharset (License): Likewise.
50998         * modules/localename (License): Likewise.
50999         * modules/lock (License): Likewise.
51000         * modules/relocatable-lib-lgpl (License): Likewise.
51001         * modules/size_max (License): Likewise.
51002         * modules/vasnprintf (License): Likewise.
51003         * modules/wchar (License): Likewise.
51004         * modules/xsize (License): Likewise.
51005
51006 2007-07-13  Bruno Haible  <bruno@clisp.org>
51007
51008         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51009         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51010
51011 2007-07-12  Bruno Haible  <bruno@clisp.org>
51012
51013         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51014         in the modules files.
51015
51016 2007-07-11  Karl Berry  <karl@gnu.org>
51017
51018         * MODULES.html.sh (func_module): use
51019          sed -e '\|^'"${includefile}"'$|d'
51020          instead of /.../d, to avoid errors on $includefile's containing /.
51021
51022 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51023
51024         * gnulib-tool (func_import): Avoid duplication of --avoid
51025         statements
51026         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51027         names to `_' in variable names.
51028
51029 2007-07-10  Eric Blake  <ebb9@byu.net>
51030
51031         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51032         * NEWS: Document this change.
51033
51034 2007-07-08  Bruno Haible  <bruno@clisp.org>
51035
51036         Update to Unicode 5.0.
51037         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51038         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51039         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51040         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51041         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51042         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51043         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51044         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51045         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51046         U+10A3F, U+1D242..U+1D244.
51047         (nonspacing_table_ind): Update.
51048         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51049         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51050
51051 2007-07-08  Bruno Haible  <bruno@clisp.org>
51052
51053         Update to Unicode 5.0.
51054         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51055         code transform. Extend the name index field of unicode_name_to_code and
51056         unicode_code_to_name from 16 to 24 bits.
51057         * lib/uniname/uniname.c (unicode_character_name,
51058         unicode_name_character): Add the range 0x12xxx to the code transform.
51059         * lib/uniname/uninames.h: Regenerated.
51060         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51061
51062 2007-07-07  Bruno Haible  <bruno@clisp.org>
51063
51064         * modules/wcwidth-tests: New file.
51065         * tests/test-wcwidth.c: New file.
51066
51067         Work around MacOS X wcwidth() bug.
51068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51069         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51070         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51071         original wcwidth in non-UTF-8 locales.
51072         * modules/wcwidth (Depends-on): Add localcharset, streq,
51073         uniwidth/width.
51074         * doc/functions/wcwidth.texi: Update.
51075
51076 2007-07-07  Bruno Haible  <bruno@clisp.org>
51077
51078         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51079         (wcwidth): New declaration.
51080         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51081         macros.
51082         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51083         here. Prepare for creating <wchar.h> unconditionally.
51084         * modules/wchar (Depends-on): Add link-warning.
51085         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51086         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51087         * lib/wcwidth.h: Remove file.
51088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51089         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51090         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51091         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51092         (Include): Replace wcwidth.h with <wchar.h>.
51093         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51094         * lib/mbchar.h: Don't include wcwidth.h.
51095         * lib/mbswidth.c: Likewise.
51096         * NEWS: Mention the change.
51097
51098 2007-07-07  Bruno Haible  <bruno@clisp.org>
51099
51100         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51101         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51102         definition with an external declaration.
51103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51104         defined as a function. Remove AC_C_INLINE requirement.
51105         * modules/wcwidth (Files): Add lib/wcwidth.c.
51106         (Makefile.am): Remove redundant statement.
51107
51108 2007-07-07  Bruno Haible  <bruno@clisp.org>
51109
51110         * MODULES.html.sh (Unicode string functions): Add the new modules.
51111
51112         * tests/uniwidth/test-u32-strwidth.c: New file.
51113         * modules/uniwidth/u32-strwidth-tests: New file.
51114
51115         * lib/uniwidth/u32-strwidth.c: New file.
51116         * modules/uniwidth/u32-strwidth: New file.
51117
51118         * tests/uniwidth/test-u16-strwidth.c: New file.
51119         * modules/uniwidth/u16-strwidth-tests: New file.
51120
51121         * lib/uniwidth/u16-strwidth.c: New file.
51122         * modules/uniwidth/u16-strwidth: New file.
51123
51124         * tests/uniwidth/test-u8-strwidth.c: New file.
51125         * modules/uniwidth/u8-strwidth-tests: New file.
51126
51127         * lib/uniwidth/u8-strwidth.c: New file.
51128         * modules/uniwidth/u8-strwidth: New file.
51129
51130         * tests/uniwidth/test-u32-width.c: New file.
51131         * modules/uniwidth/u32-width-tests: New file.
51132
51133         * lib/uniwidth/u32-width.c: New file.
51134         * modules/uniwidth/u32-width: New file.
51135
51136         * tests/uniwidth/test-u16-width.c: New file.
51137         * modules/uniwidth/u16-width-tests: New file.
51138
51139         * lib/uniwidth/u16-width.c: New file.
51140         * modules/uniwidth/u16-width: New file.
51141
51142         * tests/uniwidth/test-u8-width.c: New file.
51143         * modules/uniwidth/u8-width-tests: New file.
51144
51145         * lib/uniwidth/u8-width.c: New file.
51146         * modules/uniwidth/u8-width: New file.
51147
51148         * tests/uniwidth/test-uc_width.c: New file.
51149         * modules/uniwidth/width-tests: New file.
51150
51151         * lib/uniwidth/width.c: New file, from GNU libiconv.
51152         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51153         * modules/uniwidth/width: New file.
51154
51155         * lib/uniwidth.h: New file, from GNU libiconv.
51156         * modules/uniwidth/base: New file.
51157
51158 2007-07-07  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/uniname.h: New file, from GNU gettext.
51161         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51162         * lib/uniname/uninames.h: New file, from GNU gettext.
51163         * lib/uniname/uniname.c: New file, from GNU gettext.
51164         * tests/uniname/test-uninames.sh: New file.
51165         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51166         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51167         * modules/uniname/base: New file.
51168         * modules/uniname/uniname: New file.
51169         * modules/uniname/uniname-tests: New file.
51170         * MODULES.html.sh (Unicode string functions): Add the new modules.
51171
51172 2007-07-06  Bruno Haible  <bruno@clisp.org>
51173
51174         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51175
51176 2007-07-06  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51179         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51180         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51181         include <sys/time.h>.
51182         Reported by Eric Blake.
51183
51184 2007-07-06  Eric Blake  <ebb9@byu.net>
51185
51186         Fix testing canonicalize on cygwin.
51187         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51188         Revert patch from 2007-06-19.
51189         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51190         canonicalize module is also in use.
51191         * tests/test-canonicalize.c: New file.
51192         * tests/test-canonicalize.sh: Likewise.
51193         * modules/canonicalize-tests: Likewise.
51194
51195 2007-07-06  Jim Meyering  <jim@meyering.net>
51196
51197         * lib/getugroups.c (getugroups): Detect getgrent failure.
51198         Adjust comment to reflect reality: this function may return -1.
51199
51200 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51201
51202         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51203         the new TP address.
51204         (usage): Fix typo
51205         (gnulib_mk): New variable.
51206
51207 2007-07-05  Jim Meyering  <jim@meyering.net>
51208
51209         Don't let endgrent clobber errno, no matter how improbable.
51210         * lib/getugroups.c (getugroups): Save and restore errno around
51211         endgrent call.
51212
51213         Close the group DB even when failing with 2^31 or more members.
51214         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51215
51216 2007-07-04  Jim Meyering  <jim@meyering.net>
51217
51218         * lib/getugroups.h: New file.
51219         * lib/getugroups.c: Include "getugroups.h".
51220         Remove uses of "register" keyword.
51221         Move local variable, "cp", down into scope where used.
51222         Give "username" parameter the "const" attribute.
51223         * modules/getugroups (Files): Add lib/getugroups.h
51224
51225 2007-07-04  Karl Berry  <karl@gnu.org>
51226
51227         * MODULES.html.sh (func_all_modules): Complete rename of
51228         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51229
51230 2007-07-02  Bruno Haible  <bruno@clisp.org>
51231
51232         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51233         mode, when inttypes.h comes from gnulib.
51234         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51235
51236 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51237
51238         * NEWS: Mention lgpl module name change.
51239
51240         * modules/lgpl-2.1: Renamed from lgpl.
51241
51242         * NEWS: Mention gpl module name change.
51243
51244         * modules/gpl-3.0: New file, based on gpl-2.0.
51245
51246         * modules/gpl-2.0: Renamed from gpl.
51247
51248         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51249         doc/gpl-2.0.texi.
51250
51251 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51254         #define __STDC_LIMIT_MACROS temporarily while including
51255         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51256         Problem reported by Joel E. Denny in
51257         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51258
51259 2007-07-01  Bruno Haible  <bruno@clisp.org>
51260
51261         * lib/unistdio.h: New file.
51262         * lib/unistdio/u-asnprintf.h: New file.
51263         * lib/unistdio/u-asprintf.h: New file.
51264         * lib/unistdio/u-printf-args.c: New file.
51265         * lib/unistdio/u-printf-args.h: New file.
51266         * lib/unistdio/u-printf-parse.h: New file.
51267         * lib/unistdio/u-snprintf.h: New file.
51268         * lib/unistdio/u-sprintf.h: New file.
51269         * lib/unistdio/u-vasprintf.h: New file.
51270         * lib/unistdio/u-vsnprintf.h: New file.
51271         * lib/unistdio/u-vsprintf.h: New file.
51272         * lib/unistdio/ulc-asnprintf.c: New file.
51273         * lib/unistdio/ulc-asprintf.c: New file.
51274         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51275         * lib/unistdio/ulc-printf-parse.c: New file.
51276         * lib/unistdio/ulc-snprintf.c: New file.
51277         * lib/unistdio/ulc-sprintf.c: New file.
51278         * lib/unistdio/ulc-vasnprintf.c: New file.
51279         * lib/unistdio/ulc-vasprintf.c: New file.
51280         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51281         * lib/unistdio/ulc-vsnprintf.c: New file.
51282         * lib/unistdio/ulc-vsprintf.c: New file.
51283         * lib/unistdio/u8-asnprintf.c: New file.
51284         * lib/unistdio/u8-asprintf.c: New file.
51285         * lib/unistdio/u8-printf-parse.c: New file.
51286         * lib/unistdio/u8-snprintf.c: New file.
51287         * lib/unistdio/u8-sprintf.c: New file.
51288         * lib/unistdio/u8-vasnprintf.c: New file.
51289         * lib/unistdio/u8-vasprintf.c: New file.
51290         * lib/unistdio/u8-vsnprintf.c: New file.
51291         * lib/unistdio/u8-vsprintf.c: New file.
51292         * lib/unistdio/u8-u8-asnprintf.c: New file.
51293         * lib/unistdio/u8-u8-asprintf.c: New file.
51294         * lib/unistdio/u8-u8-snprintf.c: New file.
51295         * lib/unistdio/u8-u8-sprintf.c: New file.
51296         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51297         * lib/unistdio/u8-u8-vasprintf.c: New file.
51298         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51299         * lib/unistdio/u8-u8-vsprintf.c: New file.
51300         * lib/unistdio/u16-asnprintf.c: New file.
51301         * lib/unistdio/u16-asprintf.c: New file.
51302         * lib/unistdio/u16-printf-parse.c: New file.
51303         * lib/unistdio/u16-snprintf.c: New file.
51304         * lib/unistdio/u16-sprintf.c: New file.
51305         * lib/unistdio/u16-vasnprintf.c: New file.
51306         * lib/unistdio/u16-vasprintf.c: New file.
51307         * lib/unistdio/u16-vsnprintf.c: New file.
51308         * lib/unistdio/u16-vsprintf.c: New file.
51309         * lib/unistdio/u16-u16-asnprintf.c: New file.
51310         * lib/unistdio/u16-u16-asprintf.c: New file.
51311         * lib/unistdio/u16-u16-snprintf.c: New file.
51312         * lib/unistdio/u16-u16-sprintf.c: New file.
51313         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51314         * lib/unistdio/u16-u16-vasprintf.c: New file.
51315         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51316         * lib/unistdio/u16-u16-vsprintf.c: New file.
51317         * lib/unistdio/u32-asnprintf.c: New file.
51318         * lib/unistdio/u32-asprintf.c: New file.
51319         * lib/unistdio/u32-printf-parse.c: New file.
51320         * lib/unistdio/u32-snprintf.c: New file.
51321         * lib/unistdio/u32-sprintf.c: New file.
51322         * lib/unistdio/u32-vasnprintf.c: New file.
51323         * lib/unistdio/u32-vasprintf.c: New file.
51324         * lib/unistdio/u32-vsnprintf.c: New file.
51325         * lib/unistdio/u32-vsprintf.c: New file.
51326         * lib/unistdio/u32-u32-asnprintf.c: New file.
51327         * lib/unistdio/u32-u32-asprintf.c: New file.
51328         * lib/unistdio/u32-u32-snprintf.c: New file.
51329         * lib/unistdio/u32-u32-sprintf.c: New file.
51330         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51331         * lib/unistdio/u32-u32-vasprintf.c: New file.
51332         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51333         * lib/unistdio/u32-u32-vsprintf.c: New file.
51334         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51335         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51336         * tests/unistdio/test-ulc-printf1.h: New file.
51337         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51338         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51339         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51340         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51341         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51342         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51343         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51344         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51345         * tests/unistdio/test-u8-asnprintf1.c: New file.
51346         * tests/unistdio/test-u8-asnprintf1.h: New file.
51347         * tests/unistdio/test-u8-printf1.h: New file.
51348         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51349         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51350         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51351         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51352         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51353         * tests/unistdio/test-u8-vasprintf1.c: New file.
51354         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51355         * tests/unistdio/test-u8-vsprintf1.c: New file.
51356         * tests/unistdio/test-u16-asnprintf1.c: New file.
51357         * tests/unistdio/test-u16-asnprintf1.h: New file.
51358         * tests/unistdio/test-u16-printf1.h: New file.
51359         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51360         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51361         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51362         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51363         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51364         * tests/unistdio/test-u16-vasprintf1.c: New file.
51365         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51366         * tests/unistdio/test-u16-vsprintf1.c: New file.
51367         * tests/unistdio/test-u32-asnprintf1.c: New file.
51368         * tests/unistdio/test-u32-asnprintf1.h: New file.
51369         * tests/unistdio/test-u32-printf1.h: New file.
51370         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51371         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51372         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51373         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51374         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51375         * tests/unistdio/test-u32-vasprintf1.c: New file.
51376         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51377         * tests/unistdio/test-u32-vsprintf1.c: New file.
51378         * modules/unistdio/base: New file.
51379         * modules/unistdio/u-printf-args: New file.
51380         * modules/unistdio/ulc-asnprintf: New file.
51381         * modules/unistdio/ulc-asprintf: New file.
51382         * modules/unistdio/ulc-fprintf: New file.
51383         * modules/unistdio/ulc-printf-parse: New file.
51384         * modules/unistdio/ulc-snprintf: New file.
51385         * modules/unistdio/ulc-sprintf: New file.
51386         * modules/unistdio/ulc-vasnprintf: New file.
51387         * modules/unistdio/ulc-vasprintf: New file.
51388         * modules/unistdio/ulc-vfprintf: New file.
51389         * modules/unistdio/ulc-vsnprintf: New file.
51390         * modules/unistdio/ulc-vsprintf: New file.
51391         * modules/unistdio/u8-asnprintf: New file.
51392         * modules/unistdio/u8-asprintf: New file.
51393         * modules/unistdio/u8-printf-parse: New file.
51394         * modules/unistdio/u8-snprintf: New file.
51395         * modules/unistdio/u8-sprintf: New file.
51396         * modules/unistdio/u8-vasnprintf: New file.
51397         * modules/unistdio/u8-vasprintf: New file.
51398         * modules/unistdio/u8-vsnprintf: New file.
51399         * modules/unistdio/u8-vsprintf: New file.
51400         * modules/unistdio/u8-u8-asnprintf: New file.
51401         * modules/unistdio/u8-u8-asprintf: New file.
51402         * modules/unistdio/u8-u8-snprintf: New file.
51403         * modules/unistdio/u8-u8-sprintf: New file.
51404         * modules/unistdio/u8-u8-vasnprintf: New file.
51405         * modules/unistdio/u8-u8-vasprintf: New file.
51406         * modules/unistdio/u8-u8-vsnprintf: New file.
51407         * modules/unistdio/u8-u8-vsprintf: New file.
51408         * modules/unistdio/u16-asnprintf: New file.
51409         * modules/unistdio/u16-asprintf: New file.
51410         * modules/unistdio/u16-printf-parse: New file.
51411         * modules/unistdio/u16-snprintf: New file.
51412         * modules/unistdio/u16-sprintf: New file.
51413         * modules/unistdio/u16-vasnprintf: New file.
51414         * modules/unistdio/u16-vasprintf: New file.
51415         * modules/unistdio/u16-vsnprintf: New file.
51416         * modules/unistdio/u16-vsprintf: New file.
51417         * modules/unistdio/u16-u16-asnprintf: New file.
51418         * modules/unistdio/u16-u16-asprintf: New file.
51419         * modules/unistdio/u16-u16-snprintf: New file.
51420         * modules/unistdio/u16-u16-sprintf: New file.
51421         * modules/unistdio/u16-u16-vasnprintf: New file.
51422         * modules/unistdio/u16-u16-vasprintf: New file.
51423         * modules/unistdio/u16-u16-vsnprintf: New file.
51424         * modules/unistdio/u16-u16-vsprintf: New file.
51425         * modules/unistdio/u32-asnprintf: New file.
51426         * modules/unistdio/u32-asprintf: New file.
51427         * modules/unistdio/u32-printf-parse: New file.
51428         * modules/unistdio/u32-snprintf: New file.
51429         * modules/unistdio/u32-sprintf: New file.
51430         * modules/unistdio/u32-vasnprintf: New file.
51431         * modules/unistdio/u32-vasprintf: New file.
51432         * modules/unistdio/u32-vsnprintf: New file.
51433         * modules/unistdio/u32-vsprintf: New file.
51434         * modules/unistdio/u32-u32-asnprintf: New file.
51435         * modules/unistdio/u32-u32-asprintf: New file.
51436         * modules/unistdio/u32-u32-snprintf: New file.
51437         * modules/unistdio/u32-u32-sprintf: New file.
51438         * modules/unistdio/u32-u32-vasnprintf: New file.
51439         * modules/unistdio/u32-u32-vasprintf: New file.
51440         * modules/unistdio/u32-u32-vsnprintf: New file.
51441         * modules/unistdio/u32-u32-vsprintf: New file.
51442         * modules/unistdio/ulc-asnprintf-tests: New file.
51443         * modules/unistdio/ulc-vasnprintf-tests: New file.
51444         * modules/unistdio/ulc-vasprintf-tests: New file.
51445         * modules/unistdio/ulc-vsnprintf-tests: New file.
51446         * modules/unistdio/ulc-vsprintf-tests: New file.
51447         * modules/unistdio/u8-asnprintf-tests: New file.
51448         * modules/unistdio/u8-vasnprintf-tests: New file.
51449         * modules/unistdio/u8-vasprintf-tests: New file.
51450         * modules/unistdio/u8-vsnprintf-tests: New file.
51451         * modules/unistdio/u8-vsprintf-tests: New file.
51452         * modules/unistdio/u16-asnprintf-tests: New file.
51453         * modules/unistdio/u16-vasnprintf-tests: New file.
51454         * modules/unistdio/u16-vasprintf-tests: New file.
51455         * modules/unistdio/u16-vsnprintf-tests: New file.
51456         * modules/unistdio/u16-vsprintf-tests: New file.
51457         * modules/unistdio/u32-asnprintf-tests: New file.
51458         * modules/unistdio/u32-vasnprintf-tests: New file.
51459         * modules/unistdio/u32-vasprintf-tests: New file.
51460         * modules/unistdio/u32-vsnprintf-tests: New file.
51461         * modules/unistdio/u32-vsprintf-tests: New file.
51462         * MODULES.html.sh (Unicode string functions): Add the new modules.
51463
51464 2007-07-01  Bruno Haible  <bruno@clisp.org>
51465
51466         * lib/sprintf.c (sprintf): Limit the available length estimation,
51467         to avoid address wraparound.
51468         * lib/vsprintf.c (vsprintf): Likewise.
51469         * modules/sprintf-posix (Dependencies): Add stdint.
51470         * modules/vsprintf-posix (Dependencies): Likewise.
51471
51472 2007-07-01  Bruno Haible  <bruno@clisp.org>
51473
51474         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51475         Windows PATH as well. Conservative double-quoting. Comments.
51476
51477 2007-07-01  Bruno Haible  <bruno@clisp.org>
51478             Eric Blake  <ebb9@byu.net>
51479             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51480
51481         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51482         empty components in $PATH, denoting '.'.
51483
51484 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51485
51486         * gnulib-tool: Fix indentation.
51487         (func_create_megatestdir): Likewise.
51488         Report by Bruno Haible.
51489
51490 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51491
51492         Sync from Automake.
51493         * build-aux/gnupload: Fix shell portability issues with for loops.
51494         Report by Karl Berry.
51495
51496 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51497
51498         * build-aux/maint.mk (POURL): Use translationproject.org.
51499
51500 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51501             Bruno Haible  <bruno@clisp.org>
51502
51503         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51504         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51505         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51506         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51507         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51508
51509 2007-06-27  Bruno Haible  <bruno@clisp.org>
51510
51511         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51512         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51513
51514 2007-06-26  Karl Berry  <karl@gnu.org>
51515
51516         * MODULES.html.sh: remove xreadlink-with-size.
51517
51518 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51521         method that I hope also handles the double-include problem noted
51522         by Bruno Haible in
51523         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51524
51525 2007-06-23  Bruno Haible  <bruno@clisp.org>
51526
51527         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51528         Don't let the 'mostlyclean' target fail if the last subdirectory could
51529         not be removed.
51530         Reported by Karl Berry.
51531
51532 2007-06-23  Bruno Haible  <bruno@clisp.org>
51533
51534         * gnulib-tool (echo): Add a speedier workaround for ksh.
51535         * tests/test-echo.sh: Likewise.
51536
51537 2007-06-23  Bruno Haible  <bruno@clisp.org>
51538
51539         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51540         * tests/test-echo.sh: Likewise.
51541
51542 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51543
51544         * gnulib-tool (IFS): Initialize early, so we don't set it to
51545         empty later.
51546         (self_abspathname): Rewrite algorithm to set it, reindent.
51547         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51548         (func_create_megatestdir): Merge some sed scripts.
51549
51550 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51551
51552         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51553         exposed by Sun Studio 11 cc on Solaris 8.
51554
51555 2007-06-22  Bruno Haible  <bruno@clisp.org>
51556
51557         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51558         backslashes.
51559         * tests/test-echo.sh: New file.
51560
51561 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51562
51563         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51564         simplify `sed_replace_build_aux' scripts, they are portable but
51565         echoing them with `echo' is not.
51566         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51567
51568 2007-06-21  Karl Berry  <karl@gnu.org>
51569
51570         * config/srclist.txt: guess we can't handle the licenses via
51571         srclist at the moment.
51572
51573 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51574
51575         * MODULES.html.sh: Add include_next.
51576         * modules/include_next: New file.
51577
51578 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51581         INCLUDE_NEXT.
51582         (gl_CHECK_NEXT_HEADERS): New macro.
51583         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51584         the obsolescent gl_ABSOLUTE_HEADER.
51585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51586         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51587         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51588         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51589         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51590         * m4/math_h.m4 (gl_MATH_H): Likewise.
51591         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51592         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51593         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51594         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51595         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51596         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51597         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51598         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51601         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51602         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51603         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51604         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51605         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51606         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51607         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51608         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51609         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51610         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51611         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51612         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51613         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51614         * lib/float_.h: Likewise.
51615         * lib/inttypes_.h: Likewise.
51616         * lib/math_.h: Likewise.
51617         * lib/search_.h: Likewise.
51618         * lib/signal_.h: Likewise.
51619         * lib/stdint_.h: Likewise.
51620         * lib/stdio_.h: Likewise.
51621         * lib/stdlib_.h: Likewise.
51622         * lib/string_.h: Likewise.
51623         * lib/sys_stat_.h: Likewise.
51624         * lib/sys_time_.h: Likewise.
51625         * lib/time_.h: Likewise.
51626         * lib/unistd_.h: Likewise.
51627         * lib/wchar_.h: Likewise.
51628         * lib/wctype_.h: Likewise.
51629         * lib/dirent_.h: Likewise.
51630         * lib/iconv_.h: Likewise.
51631         * lib/locale_.h: Likewise.
51632         * lib/netinet_in_.h: Likewise.
51633         * lib/sys_select_.h: Likewise.
51634         * lib/sys_socket_.h: Likewise.
51635         * lib/sysexits_.h: Likewise.
51636         * modules/fcntl (Depends-on): Depend on include_next, not
51637         absolute_header.
51638         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51639         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51640         * modules/fchdir: Likewise.
51641         * modules/float: Likewise.
51642         * modules/iconv_open: Likewise.
51643         * modules/inttypes: Likewise.
51644         * modules/locale: Likewise.
51645         * modules/math: Likewise.
51646         * modules/netinet_in: Likewise.
51647         * modules/search: Likewise.
51648         * modules/signal: Likewise.
51649         * modules/stdint: Likewise.
51650         * modules/stdio: Likewise.
51651         * modules/stdlib: Likewise.
51652         * modules/string: Likewise.
51653         * modules/sys_select: Likewise.
51654         * modules/sys_socket: Likewise.
51655         * modules/sys_stat: Likewise.
51656         * modules/sys_time: Likewise.
51657         * modules/sysexits: Likewise.
51658         * modules/time: Likewise.
51659         * modules/unistd: Likewise.
51660         * modules/wchar: Likewise.
51661         * modules/wctype: Likewise.
51662         * modules/sys_stat: Change maintainer to "all".
51663         * modules/unistd: Likewise.
51664
51665 2007-06-20  Karl Berry  <karl@gnu.org>
51666
51667         * config/srclist.txt: track www changes in license files.
51668
51669 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51670
51671         * build-aux/bootstrap: Remove stray dot.
51672         Make sure build_aux settings are honored when linking
51673         gnulib_extra_files.
51674
51675 2007-06-19  Eric Blake  <ebb9@byu.net>
51676
51677         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51678         Allow compilation on cygwin.
51679
51680 2007-06-19  Jim Meyering  <jim@meyering.net>
51681
51682         xreadlink-with-size: Remove module.  No longer used.
51683         Ex-callers now use xreadlink or mreadlink-with-size.
51684         * modules/xreadlink-with-size: Remove module.
51685         * lib/xreadlink-with-size.c: Remove file.
51686         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51687         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51688         just before the function definition *is* accurate.
51689
51690         Eliminate one way canonicalize_filename_mode could exit.
51691         * lib/canonicalize.c (canonicalize_filename_mode):
51692         Use mreadlink_with_size, not xreadlink_with_size.
51693
51694 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51695
51696         Detect porting problems to FreeBSD/arm, which has time_t wider than
51697         long int.  Original problem reported for GNU diff by Xin Li in
51698         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51699         * modules/getdate (Depends-on): Add intprops, verify.
51700         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51701         is an integer type no wider than long int.
51702
51703 2007-06-18  Jim Meyering  <jim@meyering.net>
51704
51705         New module: mreadlink-with-size.
51706         * MODULES.html.sh: Add mreadlink-with-size.
51707         * modules/mreadlink-with-size: New module
51708         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51709         not xreadlink-with-size.
51710         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51711
51712 2007-06-16  Bruno Haible  <bruno@clisp.org>
51713
51714         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51715         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51716         Reported by Gary V. Vaughan <gary@gnu.org>.
51717
51718 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51719
51720         Revamp lchown so that it lives in unistd.h where it belongs.
51721         * lib/lchown.h: Remove.
51722         * lib/dirchownmod.c: Don't include lib/lchown.h.
51723         * lib/fchownat.c: Likewise.
51724         * lib/openat.c: Likewise.
51725         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51726         does not follow symlinks.
51727         (EOPNOTSUPP): Define if not defined.
51728         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51729         is defined to 0.
51730         (lchown): New decl.
51731         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51732         Do not check for lchown decl.
51733         Set REPLACE_LCHOWN.
51734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51735         REPLACE_LCHOWN.
51736         * modules/chown: Make it clear it follows symlinks.
51737         * modules/lchown: Make it clear it doesn't follow symlinks.
51738         (Files): Remove lib/lchown.h
51739         (Depends-on): Add unistd.
51740         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51741         (Include): Include <unistd.h>, not "lchown.h".
51742         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51743         REPLACE_LCHOWN.
51744
51745 2007-06-15  Jim Meyering  <jim@meyering.net>
51746
51747         Change license (GPL to LGPL) of fsusage and dependents.
51748         * modules/fsusage (License): Change to LGPL.
51749         * modules/full-read (License): Likewise.
51750         * modules/full-write (License): Likewise.
51751         * modules/safe-read (License): Likewise.
51752         * modules/safe-write (License): Likewise.
51753
51754 2007-06-14  Ben Pfaff  <blp@gnu.org>
51755
51756         Missing part of allocsa -> malloca transition.
51757         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51758         gl_MALLOCA.
51759
51760 2007-06-12  Bruno Haible  <bruno@clisp.org>
51761
51762         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51763         to ia64, x86_64, i386.
51764         Reported by Eric Blake.
51765
51766 2007-06-12  Bruno Haible  <bruno@clisp.org>
51767
51768         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51769         cross-compiling to x86_64.
51770
51771 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51772
51773         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51774         glitch reported by Ralf Wildenhues in
51775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51776
51777         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51778         Vin Shelton.
51779
51780 2007-06-11  Bruno Haible  <bruno@clisp.org>
51781
51782         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51783         replacement string.
51784         Reported by Eric Blake.
51785
51786 2007-06-10  Bruno Haible  <bruno@clisp.org>
51787
51788         Prepare vasnprintf code for use with Unicode strings.
51789         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51790         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51791         TYPE_U32_STRING.
51792         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51793         a_u32_string variants.
51794         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51795         * lib/printf-args.c: Don't include config.h and the specification
51796         header if PRINTF_FETCHARGS is already defined.
51797         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51798         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51799         TYPE_U16_STRING, TYPE_U32_STRING.
51800         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51801         u16_directive, u16_directives, u32_directive, u32_directives): New
51802         types.
51803         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51804         New declarations.
51805         * lib/printf-parse.c: Don't include config.h and the specification
51806         header if PRINTF_PARSE is already defined. Eliminate the set of
51807         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51808         them now. Include c-ctype.h.
51809         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51810         directive and CHAR_T_ONLY_ASCII.
51811         * lib/vasnprintf.c: Don't include config.h and the specification header
51812         if VASNPRINTF is already defined.
51813         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51814         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51815         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51816         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51817         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51818         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51819         code accordingly.
51820         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51821         pad_ourselves also in this case, with the 'c' and 's' directives, and
51822         with a different notion of "width".
51823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51824
51825 2007-06-10  Bruno Haible  <bruno@clisp.org>
51826
51827         * modules/unistr/u32-mbsnlen: New file.
51828         * lib/unistr/u32-mbsnlen.c: New file.
51829
51830         * modules/unistr/u16-mbsnlen: New file.
51831         * lib/unistr/u16-mbsnlen.c: New file.
51832
51833         * modules/unistr/u8-mbsnlen: New file.
51834         * lib/unistr/u8-mbsnlen.c: New file.
51835
51836         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51837         declarations.
51838
51839 2007-06-10  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/string_.h (mbsnlen): New declaration.
51842         * lib/mbsnlen.c: New file.
51843         * m4/mbsnlen.m4: New file.
51844         * modules/mbsnlen: New file.
51845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51846         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51847         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51848
51849 2007-06-10  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51852
51853 2007-06-10  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51856         * lib/mbuiter.h: Likewise.
51857
51858 2007-06-10  Bruno Haible  <bruno@clisp.org>
51859
51860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51861         declaration.
51862
51863 2007-06-10  Karl Berry  <karl@gnu.org>
51864
51865         * config/srclist.txt: remove gettext entries, Bruno prefers
51866         to update individually.
51867
51868 2007-06-10  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51871         'maxlen'. Ensure only length + width bytes are allocated, not
51872         length + 1 + width.
51873
51874 2007-06-09  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51877         (CHAR_T): Remove macro.
51878         (VASNPRINTF): Update.
51879
51880 2007-06-09  Bruno Haible  <bruno@clisp.org>
51881
51882         * MODULES.html.sh (Unicode string functions): Add the new modules.
51883
51884         * modules/uniconv/u32-conv-to-enc: New file.
51885         * lib/uniconv/u32-conv-to-enc.c: New file.
51886         * modules/uniconv/u32-conv-to-enc-tests: New file.
51887         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51888
51889         * modules/uniconv/u16-conv-to-enc: New file.
51890         * lib/uniconv/u16-conv-to-enc.c: New file.
51891         * lib/uniconv/u-conv-to-enc.h: New file.
51892         * modules/uniconv/u16-conv-to-enc-tests: New file.
51893         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51894
51895         * modules/uniconv/u8-conv-to-enc: New file.
51896         * lib/uniconv/u8-conv-to-enc.c: New file.
51897         * modules/uniconv/u8-conv-to-enc-tests: New file.
51898         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51899
51900         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51901         u32_conv_to_encoding): New declarations.
51902
51903 2007-06-09  Bruno Haible  <bruno@clisp.org>
51904
51905         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51906
51907 2007-06-09  Bruno Haible  <bruno@clisp.org>
51908
51909         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51910         * modules/malloca: Renamed from modules/allocsa, updated.
51911         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51912         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51913         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51914         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51915         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51916         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51917         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51918         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51919         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51920         * modules/c-strcasestr (Depends-on): Update.
51921         * lib/c-strcasestr.c: Update.
51922         * modules/c-strstr (Depends-on): Update.
51923         * lib/c-strstr.c: Update.
51924         * modules/canonicalize-lgpl (Depends-on): Update.
51925         * lib/canonicalize-lgpl.c: Update.
51926         * modules/clean-temp (Depends-on): Update.
51927         * lib/clean-temp.c: Update.
51928         * modules/csharpcomp (Depends-on): Update.
51929         * lib/csharpcomp.c: Update.
51930         * modules/csharpexec (Depends-on): Update.
51931         * lib/csharpexec.c: Update.
51932         * modules/javacomp (Depends-on): Update.
51933         * lib/javacomp.c: Update.
51934         * modules/javaexec (Depends-on): Update.
51935         * lib/javaexec.c: Update.
51936         * modules/mbscasestr (Depends-on): Update.
51937         * lib/mbscasestr.c: Update.
51938         * modules/mbsstr (Depends-on): Update.
51939         * lib/mbsstr.c: Update.
51940         * modules/setenv (Depends-on): Update.
51941         * lib/setenv.c: Update.
51942         * modules/strcasestr (Depends-on): Update.
51943         * lib/strcasestr.c: Update.
51944         * modules/striconveha (Depends-on): Update.
51945         * lib/striconveha.c: Update.
51946         * modules/relocatable-prog-wrapper (Files): Update.
51947         * lib/relocwrapper.c: Update.
51948         * build-aux/install-reloc: Update.
51949         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51950
51951 2007-06-08  Bruno Haible  <bruno@clisp.org>
51952
51953         Port to uClibc.
51954         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51955         * lib/fpurge.c (fpurge): Likewise.
51956         * lib/freading.c (freading): Likewise.
51957         * lib/fseeko.c (rpl_fseeko): Likewise.
51958         * lib/fseterr.c (fseterr): Likewise.
51959         * lib/fwriting.c (fwriting): Likewise.
51960         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51961
51962 2007-06-08  Bruno Haible  <bruno@clisp.org>
51963
51964         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51965         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51966         * modules/gettext (Files): Add m4/intlmacosx.m4.
51967
51968 2007-06-07  Bruno Haible  <bruno@clisp.org>
51969
51970         * modules/localename-tests: New file.
51971         * tests/test-localename.c: New file.
51972
51973         New module 'localename'.
51974         * lib/localename.h: New file.
51975         * lib/localename.c: New file, from GNU gettext.
51976         * m4/localename.m4: New file.
51977         * modules/localename: New file.
51978
51979 2007-06-07  Bruno Haible  <bruno@clisp.org>
51980
51981         Work around the lack of <wchar.h> on some builds of uClibc.
51982         * doc/headers/wchar.texi: Update.
51983         * lib/wchar_.h: Include <wchar.h> only if it exists.
51984         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51985         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51986         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51987         doesn't exist.
51988         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51989         * modules/mbfile (Depends-on): Add wchar.
51990         * modules/mbiter (Depends-on): Likewise.
51991         * modules/mbuiter (Depends-on): Likewise.
51992         Reported by Simon Josefsson.
51993
51994 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         Work around problem reported by Steven M. Schweda in
51997         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51998         Tru64 5.1B with the Compaq compiler environment installed declares
51999         an 'isblank' function but does not define it in the C library.
52000         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52001         * lib/regex_internal.h (isblank): Likewise.
52002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52003         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52004
52005 2007-06-05  Bruno Haible  <bruno@clisp.org>
52006
52007         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52008         ia64.
52009         * modules/printf-safe: New file.
52010         * modules/fprintf-posix (Depends-on): Add printf-safe.
52011         * modules/printf-posix (Depends-on): Likewise.
52012         * modules/snprintf-posix (Depends-on): Likewise.
52013         * modules/sprintf-posix (Depends-on): Likewise.
52014         * modules/vasnprintf-posix (Depends-on): Likewise.
52015         * modules/vasprintf-posix (Depends-on): Likewise.
52016         * modules/vfprintf-posix (Depends-on): Likewise.
52017         * modules/vprintf-posix (Depends-on): Likewise.
52018         * modules/vsnprintf-posix (Depends-on): Likewise.
52019         * modules/vsprintf-posix (Depends-on): Likewise.
52020         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52021         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52022         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52023         "no" on i386, x86_64, ia64.
52024         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52025         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52026         on i386, x86_64, ia64.
52027         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52029         on i386, x86_64, ia64.
52030         * tests/test-vasnprintf-posix.c: Include float.h.
52031         (LDBL80_WORDS): New macro.
52032         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52033         on i386, x86_64, ia64.
52034         * tests/test-vasprintf-posix.c: Include float.h.
52035         (LDBL80_WORDS): New macro.
52036         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52037         on i386, x86_64, ia64.
52038         * tests/test-snprintf-posix.c: Include float.h.
52039         * tests/test-sprintf-posix.c: Likewise.
52040         * tests/test-vsnprintf-posix.c: Likewise.
52041         * tests/test-vsprintf-posix.c: Likewise.
52042
52043 2007-06-05  Bruno Haible  <bruno@clisp.org>
52044
52045         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52047         non-IEEE numbers on i386, x86_64, ia64.
52048         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52049         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52050         * tests/test-isnanl.h: Include float.h.
52051         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52052
52053 2007-06-05  Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52056         also the %a / %A. Handle the %a / %A code before this extra handling.
52057
52058 2007-06-05  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52061         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52062
52063 2007-06-05  Bruno Haible  <bruno@clisp.org>
52064
52065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52066         typo in variable name.
52067
52068 2007-06-05  Eric Blake  <ebb9@byu.net>
52069
52070         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52071         Reported by Simon Josefsson.
52072
52073 2007-06-04  Bruno Haible  <bruno@clisp.org>
52074
52075         Avoid test failures on some PowerPC platforms.
52076         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52077         Define differently for PowerPC.
52078         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52079         Reported by Gary V. Vaughan <gary@gnu.org>.
52080
52081 2007-06-02  Bruno Haible  <bruno@clisp.org>
52082
52083         Fix test-stdint failure on FreeBSD/ia64.
52084         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52085         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52086         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52087         * doc/headers/stdint.texi: Update.
52088
52089 2007-06-01  Bruno Haible  <bruno@clisp.org>
52090
52091         * tests/test-binary-io.c (main): Pass a third argument to open().
52092         Reported by Gary V. Vaughan <gary@gnu.org>.
52093
52094 2007-06-01  Bruno Haible  <bruno@clisp.org>
52095
52096         * doc/functions/frexpl.texi: Update for mingw.
52097
52098 2007-06-01  Bruno Haible  <bruno@clisp.org>
52099
52100         * tests/test-lseek.c (main): Disable test of errno for invalid third
52101         argument.
52102         * doc/functions/lseek.texi: Update.
52103         Reported by Gary V. Vaughan <gary@gnu.org>.
52104
52105 2007-05-28  Bruno Haible  <bruno@clisp.org>
52106
52107         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52108
52109 2007-05-31  Eric Blake  <ebb9@byu.net>
52110
52111         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52112         cross compiling.
52113
52114 2007-05-30  Eric Blake  <ebb9@byu.net>
52115         and Bruno Haible  <bruno@clisp.org>
52116
52117         Work around mingw test failures exposed by m4-1.4.9b.
52118         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52119         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52120         moment.
52121
52122 2007-05-30  Bruno Haible  <bruno@clisp.org>
52123
52124         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52125         assuming that they are closed. Needed on HP-UX 11.
52126
52127 2007-05-29  Bruno Haible  <bruno@clisp.org>
52128
52129         Fix a problem with #include_next.
52130         * lib/dirent_.h: Split the double-inclusion guard.
52131         * lib/fcntl_.h: Likewise.
52132         * lib/float_.h: Likewise.
52133         * lib/iconv_.h: Likewise.
52134         * lib/inttypes_.h: Likewise.
52135         * lib/locale_.h: Likewise.
52136         * lib/math_.h: Likewise.
52137         * lib/netinet_in_.h: Likewise.
52138         * lib/search_.h: Likewise.
52139         * lib/signal_.h: Likewise.
52140         * lib/stdint_.h: Likewise.
52141         * lib/stdio_.h: Likewise.
52142         * lib/stdlib_.h: Likewise.
52143         * lib/string_.h: Likewise.
52144         * lib/sys_select_.h: Likewise.
52145         * lib/sys_socket_.h: Likewise.
52146         * lib/sys_stat_.h: Likewise.
52147         * lib/sys_time_.h: Likewise.
52148         * lib/sysexits_.h: Likewise.
52149         * lib/time_.h: Likewise.
52150         * lib/unistd_.h: Likewise.
52151         * lib/wchar_.h: Likewise.
52152         * lib/wctype_.h: Likewise.
52153
52154 2007-05-29  Bruno Haible  <bruno@clisp.org>
52155
52156         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52157         for the moment.
52158
52159 2007-05-29  Bruno Haible  <bruno@clisp.org>
52160
52161         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52162         invocation.
52163         Reported by Eric Blake.
52164
52165 2007-05-29  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52168         compiling case.
52169
52170 2007-05-29  Eric Blake  <ebb9@byu.net>
52171             Bruno Haible  <bruno@clisp.org>
52172
52173         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52174         cross compiles.
52175
52176 2007-05-28  Eric Blake  <ebb9@byu.net>
52177
52178         * modules/closein-tests (test_closein_LDADD): Support test on
52179         cygwin with libtool.
52180
52181 2007-05-28  Bruno Haible  <bruno@clisp.org>
52182
52183         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52184         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52185         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52186         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52187         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52188         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52189         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52190         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52191         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52192
52193 2007-05-28  Eric Blake  <ebb9@byu.net>
52194
52195         Unconditionally include <config.h> in unit tests.
52196         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52197         * tests/test-allocsa.c, tests/test-arcfour.c,
52198         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52199         tests/test-array_list.c, tests/test-array_oset.c,
52200         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52201         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52202         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52203         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52204         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52205         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52206         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52207         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52208         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52209         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52210         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52211         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52212         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52213         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52214         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52215         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52216         test-md5.c, test-memmem.c, test-printf-posix.c,
52217         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52218         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52219         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52220         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52221         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52222         test-vasnprintf-posix2.c, test-vasnprintf.c,
52223         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52224         test-vfprintf-posix.c, test-vprintf-posix.c,
52225         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52226         test-xvasprintf.c: Likewise.
52227
52228 2007-05-28  Bruno Haible  <bruno@clisp.org>
52229
52230         * gnulib-tool (func_import): Remember the --with-tests command-line
52231         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52232         Reported by Eric Blake.
52233
52234 2007-05-28  Bruno Haible  <bruno@clisp.org>
52235
52236         * modules/ftell-tests: New file.
52237         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52238         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52239
52240         * lib/ftell.c: New file.
52241         * modules/ftell: New file.
52242         * m4/ftell.m4: New file.
52243         * doc/functions/ftell.texi: Update.
52244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52245         REPLACE_FTELL.
52246         * lib/stdio_.h (rpl_ftell): New declaration.
52247         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52248         REPLACE_FTELL.
52249
52250 2007-05-28  Eric Blake  <ebb9@byu.net>
52251
52252         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52253
52254 2007-05-28  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/fseek-tests: New file.
52257         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52258         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52259
52260         * lib/fseek.c: New file.
52261         * modules/fseek: New file.
52262         * m4/fseek.m4: New file.
52263         * doc/functions/fseek.texi: Update.
52264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52265         REPLACE_FSEEK.
52266         * lib/stdio_.h (rpl_fseek): New declaration.
52267         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52268         REPLACE_FSEEK.
52269
52270 2007-05-28  Bruno Haible  <bruno@clisp.org>
52271
52272         * lib/stdio_.h (fflush): More comments.
52273
52274 2007-05-28  Bruno Haible  <bruno@clisp.org>
52275
52276         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52277         runtime test.
52278
52279 2007-05-28  Eric Blake  <ebb9@byu.net>
52280
52281         Improve lseek module.
52282         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52283         * lib/unistd_.h (lseek): Scale back link warning message.
52284         * tests/test-lseek.c: Beef up test.
52285         * tests/test-lseek.sh: Exercise more facets of lseek.
52286         Reported by Bruno Haible.
52287
52288 2007-05-28  Bruno Haible  <bruno@clisp.org>
52289
52290         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52291         to define.
52292
52293 2007-05-27  Bruno Haible  <bruno@clisp.org>
52294
52295         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52296
52297 2007-05-27  Bruno Haible  <bruno@clisp.org>
52298
52299         * modules/openmp: New file.
52300         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52301         Noah Misch.
52302
52303 2007-05-26  Bruno Haible  <bruno@clisp.org>
52304
52305         * modules/chdir-long (Depends-on): Add fchdir.
52306         * modules/chdir-safer (Depends-on): Likewise.
52307         * modules/fts (Depends-on): Likewise.
52308         * modules/fts-lgpl (Depends-on): Likewise.
52309         * modules/openat (Depends-on): Likewise.
52310         * modules/savewd (Depends-on): Likewise.
52311
52312 2007-05-24  Eric Blake  <ebb9@byu.net>
52313
52314         Fix lseek on mingw.
52315         * modules/lseek: New module.
52316         * m4/lseek.m4: New file.
52317         * lib/lseek.c: New file.
52318         * modules/lseek-tests: New file.
52319         * tests/test-lseek.c: New file.
52320         * tests/test-lseek.sh: New file.
52321         * MODULES.html.sh: Document lseek module.
52322         * modules/fflush (Depends-on): Add lseek, fseeko.
52323         * modules/fseeko (Depends-on): Likewise.
52324         * modules/ftello (Depends-on): Likewise.
52325         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52326         broken.
52327         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52328         broken.
52329         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52330         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52331         * lib/ftello.c (rpl_ftello): Likewise.
52332         * tests/test-fseeko.c (main): Test this.
52333         * tests/test-fseeko.sh: Likewise.
52334         * tests/test-ftello.c (main): Likewise.
52335         * tests/test-ftello.sh: Likewise.
52336         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52337         implies replacing fseek.
52338         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52339         HAVE_FTELLO.
52340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52341         * modules/unistd (Makefile.am): Likewise.
52342         * lib/unistd_.h (lseek): Declare a replacement.
52343         * doc/functions/lseek.texi (lseek): Document this fix.
52344         * doc/functions/fseek.texi (fseek): Likewise.
52345         * doc/functions/ftell.texi (ftell): Likewise.
52346
52347 2007-05-24  Bruno Haible  <bruno@clisp.org>
52348
52349         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52350         in the printed representation of a NaN.
52351         * tests/test-vasprintf-posix.c (test_function): Likewise.
52352         * tests/test-snprintf-posix.h (test_function): Likewise.
52353         * tests/test-sprintf-posix.h (test_function): Likewise.
52354         Reported by Eric Blake.
52355
52356 2007-05-23  Eric Blake  <ebb9@byu.net>
52357
52358         Fix fseeko/ftello on cygwin 1.5.24.
52359         * doc/functions/fseeko.texi (fseeko): Document the fix.
52360         * doc/functions/ftello.texi (ftello): Document the fix.
52361         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52362         * doc/functions/stdout.text (stdout): New file.
52363         * doc/functions/stderr.text (stderr): New file.
52364         * doc/gnulib.texi (Function Substitutes): Use new files.
52365         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52366         prior to 1.7.0.
52367         * tests/test-ftello.c (main): Likewise for ftello.
52368         * tests/test-fseeko.sh: New file.
52369         * tests/test-ftello.sh: New file.
52370         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52371         with seekable stdin.
52372         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52373         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52374         (gl_REPLACE_FSEEKO): New macro.
52375         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52376         * modules/fseeko (Files): Distribute fseeko.c.
52377         * modules/ftello (Files): Distribute ftello.c.
52378         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52379         mode.
52380         * lib/ftello.c (rpl_ftello): New file.
52381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52382         fseeko, ftello.
52383         (gl_STDIN_LARGE_OFFSET): New macro.
52384         * modules/stdio (Makefile.am): Perform the replacement.
52385         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52386
52387 2007-05-23  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52390         GNULIB_POSIXCHECK is defined.
52391
52392 2007-05-21  Bruno Haible  <bruno@clisp.org>
52393
52394         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52395         Check also the output for NaN arguments. When cross-compiling, guess
52396         no on IRIX.
52397         * lib/vasnprintf.c: Update comments.
52398         * tests/test-vasnprintf-posix.c (strisnan): New function.
52399         (test_function): Use it.
52400         * tests/test-vasprintf-posix.c (strisnan): New function.
52401         (test_function): Use it.
52402         * tests/test-snprintf-posix.h (strisnan): New function.
52403         (test_function): Use it.
52404         * tests/test-sprintf-posix.h (strisnan): New function.
52405         (test_function): Use it.
52406         Reported by Eric Blake.
52407
52408 2007-05-20  Bruno Haible  <bruno@clisp.org>
52409
52410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52411         numbers that fails on BeOS.
52412         * doc/functions/frexpl.texi: Update.
52413
52414 2007-05-20  Jim Meyering  <jim@meyering.net>
52415
52416         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52417         forced upon us by glibc-2.6.
52418
52419 2007-05-20  Bruno Haible  <bruno@clisp.org>
52420
52421         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52422         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52423         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52424         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52425         NEED_PRINTF_INFINITE.
52426         (is_infinitel): New function.
52427         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52429         gl_PREREQ_VASNPRINTF_INFINITE.
52430         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52432         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52433         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52434         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52435         gl_PREREQ_VASNPRINTF_INFINITE.
52436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52443         * doc/functions/fprintf.texi: Update.
52444         * doc/functions/printf.texi: Update.
52445         * doc/functions/snprintf.texi: Update.
52446         * doc/functions/sprintf.texi: Update.
52447         * doc/functions/vfprintf.texi: Update.
52448         * doc/functions/vprintf.texi: Update.
52449         * doc/functions/vsnprintf.texi: Update.
52450         * doc/functions/vsprintf.texi: Update.
52451
52452 2007-05-20  Bruno Haible  <bruno@clisp.org>
52453
52454         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52455         was not found in libc.
52456         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52457
52458 2007-05-20  Bruno Haible  <bruno@clisp.org>
52459
52460         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52461         printed as "-nan" instead of "nan".
52462         * tests/test-vasprintf-posix.c (test_function): Likewise.
52463         * tests/test-snprintf-posix.h (test_function): Likewise.
52464         * tests/test-sprintf-posix.h (test_function): Likewise.
52465         Needed for HP-UX 11.
52466
52467 2007-05-20  Jim Meyering  <jim@meyering.net>
52468
52469         Fix buggy test for the fchownat-deref bug.
52470         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52471         symlink required for the run-test.  Without it, this test would
52472         always declare that fchownat doesn't work, and client code would
52473         unnecessarily use the replacement function with fixed libc.
52474         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52475         Reported by Greg Schafer.
52476
52477 2007-05-19  Bruno Haible  <bruno@clisp.org>
52478
52479         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52480         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52481         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52482         Needed for IRIX 6.5 and Solaris 2.5.1.
52483
52484 2007-05-19  Bruno Haible  <bruno@clisp.org>
52485
52486         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52487         (test_function): Skip tests involving -0.0 on platforms where
52488         -0.0 = 0.0.
52489         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52490         (test_function): Skip tests involving -0.0 on platforms where
52491         -0.0 = 0.0.
52492         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52493         (test_function): Skip tests involving -0.0 on platforms where
52494         -0.0 = 0.0.
52495         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52496         (test_function): Skip tests involving -0.0 on platforms where
52497         -0.0 = 0.0.
52498         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52499         tests.
52500         * tests/test-printf-posix.h (test_function): Likewise.
52501         * tests/test-printf-posix.output: Remove all -0.0 related results.
52502         Needed for IRIX 6.5.
52503
52504 2007-05-19  Bruno Haible  <bruno@clisp.org>
52505
52506         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52507         printed as "nan0x7fffffff" instead of "nan".
52508         * tests/test-vasprintf-posix.c (test_function): Likewise.
52509         * tests/test-snprintf-posix.h (test_function): Likewise.
52510         * tests/test-sprintf-posix.h (test_function): Likewise.
52511         * tests/test-fprintf-posix.h (NaN): Remove macro.
52512         (test_function): Remove all NaN related tests.
52513         * tests/test-printf-posix.h (NaN): Remove macro.
52514         (test_function): Remove all NaN related tests.
52515         * tests/test-printf-posix.output: Remove all NaN related results.
52516         Needed for IRIX 6.5.
52517
52518 2007-05-19  Bruno Haible  <bruno@clisp.org>
52519
52520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52522
52523 2007-05-19  Bruno Haible  <bruno@clisp.org>
52524
52525         * lib/float_.h: New file.
52526         * m4/float_h.m4: New file.
52527         * modules/float: New file.
52528         * modules/isnanl (Dependencies): Add float.
52529         * modules/isnanl-nolibm (Dependencies): Likewise.
52530         * modules/mathl (Dependencies): Likewise.
52531         * modules/printf-frexpl (Dependencies): Likewise.
52532         * modules/signbit (Dependencies): Likewise.
52533         * modules/vasnprintf (Dependencies): Likewise.
52534         * doc/headers/float.texi: Update.
52535
52536 2007-05-19  Jim Meyering  <jim@meyering.net>
52537
52538         * lib/utimens.c (gl_futimens): Rename from futimens,
52539         now that glibc-2.6 declares futimens.
52540         * lib/utimens.h: Likewise.
52541
52542 2007-05-19  Bruno Haible  <bruno@clisp.org>
52543
52544         Avoid test failures on mingw.
52545         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52546         * tests/test-printf-posix.sh: Likewise.
52547         * tests/test-vfprintf-posix.sh: Likewise.
52548         * tests/test-vprintf-posix.sh: Likewise.
52549
52550 2007-05-19  Bruno Haible  <bruno@clisp.org>
52551
52552         Fix *printf result for NaN, Inf, -0.0 on mingw.
52553         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52554         * lib/vasnprintf.c: Include math.h and isnan.h.
52555         (is_infinite_or_zero): New function.
52556         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52557         values in the %f, %F, %e, %E, %g, %G directives.
52558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52560         gl_PRINTF_INFINITE and test its result. Invoke
52561         gl_PREREQ_VASNPRINTF_INFINITE.
52562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52569         * doc/functions/fprintf.texi: Update.
52570         * doc/functions/printf.texi: Update.
52571         * doc/functions/snprintf.texi: Update.
52572         * doc/functions/sprintf.texi: Update.
52573         * doc/functions/vfprintf.texi: Update.
52574         * doc/functions/vprintf.texi: Update.
52575         * doc/functions/vsnprintf.texi: Update.
52576         * doc/functions/vsprintf.texi: Update.
52577
52578 2007-05-19  Bruno Haible  <bruno@clisp.org>
52579
52580         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52581         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52582         Instead of multiplying with 10^k, set extra_zeroes to k.
52583         (scale10_round_long_double): Remove function.
52584
52585 2007-05-18  Bruno Haible  <bruno@clisp.org>
52586
52587         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52588         introduced on 2007-05-06.
52589
52590 2007-05-18  Bruno Haible  <bruno@clisp.org>
52591
52592         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52593         %g directives.
52594         * tests/test-vasprintf-posix.c (test_function): Likewise.
52595         * tests/test-snprintf-posix.h (test_function): Likewise.
52596         * tests/test-sprintf-posix.h (test_function): Likewise.
52597
52598 2007-05-18  Bruno Haible  <bruno@clisp.org>
52599
52600         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52601         (strmatch): New function.
52602         (test_function): Test the %f directive on numbers of various exponents.
52603         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52604         (strmatch): New function.
52605         (test_function): Test the %f directive on numbers of various exponents.
52606         * tests/test-snprintf-posix.h (strmatch): New function.
52607         (test_function): Test the %f directive on numbers of various exponents.
52608         * tests/test-sprintf-posix.h (strmatch): New function.
52609         (test_function): Test the %f directive on numbers of various exponents.
52610         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52611         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52612         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52613         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52614
52615 2007-05-18  Bruno Haible  <bruno@clisp.org>
52616
52617         Add support for 'long double' number output.
52618         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52619         * lib/vasnprintf.c: Include math.h and float+.h.
52620         (mp_limb_t): New type.
52621         (GMP_LIMB_BITS): New macro.
52622         (mp_twolimb_t): New type.
52623         (GMP_TWOLIMB_BITS): New macro.
52624         (mpn_t): New type.
52625         (multiply, divide, convert_to_decimal, decode_long_double,
52626         scale10_round_long_double, scale10_round_decimal_long_double,
52627         floorlog10l): New functions.
52628         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52629         for the %f, %F, %e, %E, %g, %G directives.
52630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52632         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52633         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52641         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52642         * modules/snprintf-posix (Depends-on): Likewise.
52643         * modules/sprintf-posix (Depends-on): Likewise.
52644         * modules/vasnprintf-posix (Depends-on): Likewise.
52645         * modules/vasprintf-posix (Depends-on): Likewise.
52646         * modules/vfprintf-posix (Depends-on): Likewise.
52647         * modules/vsnprintf-posix (Depends-on): Likewise.
52648         * modules/vsprintf-posix (Depends-on): Likewise.
52649         * modules/vasnprintf (Files): Add lib/float+.h.
52650         * doc/functions/fprintf.texi: Update.
52651         * doc/functions/printf.texi: Update.
52652         * doc/functions/snprintf.texi: Update.
52653         * doc/functions/sprintf.texi: Update.
52654         * doc/functions/vfprintf.texi: Update.
52655         * doc/functions/vprintf.texi: Update.
52656         * doc/functions/vsnprintf.texi: Update.
52657         * doc/functions/vsprintf.texi: Update.
52658
52659 2007-05-18  Bruno Haible  <bruno@clisp.org>
52660
52661         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52662
52663 2007-05-18  Bruno Haible  <bruno@clisp.org>
52664
52665         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52666         for printing 64-bit integers. Needed for mingw.
52667
52668 2007-05-18  Bruno Haible  <bruno@clisp.org>
52669
52670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52671         gl_FUNC_FREXPL_WORKS.
52672         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52673
52674 2007-05-18  Bruno Haible  <bruno@clisp.org>
52675
52676         * modules/frexpl-nolibm-tests: New file.
52677
52678         * modules/frexpl-nolibm: New file.
52679         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52680
52681 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52684         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52685         GCC 4.2, which otherwise issues a lot of warnings.
52686         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52687         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52688         Likewise.
52689         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52690         * modules/iconv_open (iconv.h): Likewise.
52691         * modules/locale (locale.h): Likewise.
52692         * modules/netinet_in (netinet/in.h): Likewise.
52693         * modules/sys_select (sys_select.h): Likewise.
52694         * modules/sys_socket (sys/socket.h): Likewise.
52695         * modules/sys_stat (sys/stat.h): Likewise.
52696         * modules/sysexits (sysexits.h): Likewise.
52697         * modules/unistd (unistd.h): Likewise.
52698
52699 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52700
52701         * modules/closein-tests (Makefile.am): Distribute
52702         `test-closein.sh'.
52703
52704 2007-05-17  Bruno Haible  <bruno@clisp.org>
52705
52706         * tests/test-printf-posix.output: Renamed from
52707         tests/test-fprintf-posix.out.
52708         * modules/fprintf-posix-tests: Update.
52709         * modules/printf-posix-tests: Update.
52710         * modules/vfprintf-posix-tests: Update.
52711         * modules/vprintf-posix-tests: Update.
52712         * tests/test-fprintf-posix.sh: Update.
52713         * tests/test-printf-posix.sh: Update.
52714         * tests/test-vfprintf-posix.sh: Update.
52715         * tests/test-vprintf-posix.sh: Update.
52716         Reported by Ralf Wildenhues.
52717
52718 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52721         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52722         GCC 4.2, which otherwise issues a lot of warnings.
52723         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52724         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52725         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52726         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52727         it should no longer be needed.
52728         * lib/string_.h: Likewise.
52729         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52730         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52731         * modules/inttypes (inttypes.h): Likewise.
52732         * modules/math (math.h): Likewise.
52733         * modules/search (search.h): Likewise.
52734         * modules/signal (signal.h): Likewise.
52735         * modules/stdint (stdint.h): Likewise.
52736         * modules/stdio (stdio.h): Likewise.
52737         * modules/stdlib (stdlib.h): Likewise.
52738         * modules/string (string.h): Likewise.
52739         * modules/sys_time (sys/time.h): Likewise.
52740         * modules/time (time.h): Likewise.
52741         * modules/wchar (wchar.h): Likewise.
52742         * modules/wctype (wtype.h): Likewise.
52743
52744 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52745
52746         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52747
52748 2007-05-13  Bruno Haible  <bruno@clisp.org>
52749
52750         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52751         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52752         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52753         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52754         (gl_PREREQ_STRTOK_R): Don't require it here.
52755
52756 2007-05-13  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52759         when used in C++ mode.
52760
52761 2007-05-12  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/linebuffer.h: Tweak doc.
52764         * lib/linebuffer.c: Likewise.
52765
52766 2007-05-12  James Youngman  <jay@gnu.org>
52767
52768         * lib/linebuffer.c (readlinebuffer_delim): New function,
52769         like readlinebuffer, but use a caller-specified delimiter.
52770         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52771         as the delimiter.
52772         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52773
52774 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52775
52776         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52777         * modules/openat (Files): Remove openat-die.c.
52778         (Depends-on): Add openat-die.
52779         * modules/openat-die: New module.
52780
52781 2007-05-06  Bruno Haible  <bruno@clisp.org>
52782
52783         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52784         Update with info about Cygwin.
52785         * doc/functions/fprintf.texi: Update.
52786         * doc/functions/printf.texi: Update.
52787         * doc/functions/snprintf.texi: Update.
52788         * doc/functions/sprintf.texi: Update.
52789         * doc/functions/vfprintf.texi: Update.
52790         * doc/functions/vprintf.texi: Update.
52791         * doc/functions/vsnprintf.texi: Update.
52792         * doc/functions/vsprintf.texi: Update.
52793         Reported by Eric Blake.
52794
52795 2007-05-06  Bruno Haible  <bruno@clisp.org>
52796
52797         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52798         padding ourselves for the floating-point directives.
52799         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52801         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52802         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52803         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52804         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52808         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52810         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52811         * tests/test-snprintf-posix.h (test_function): Also check the width
52812         and some flags in the %f directive.
52813         * tests/test-sprintf-posix.h (test_function): Likewise.
52814         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52815         * tests/test-vasprintf-posix.c (test_function): Likewise.
52816         * doc/functions/fprintf.texi: Update.
52817         * doc/functions/printf.texi: Update.
52818         * doc/functions/snprintf.texi: Update.
52819         * doc/functions/sprintf.texi: Update.
52820         * doc/functions/vfprintf.texi: Update.
52821         * doc/functions/vprintf.texi: Update.
52822         * doc/functions/vsnprintf.texi: Update.
52823         * doc/functions/vsprintf.texi: Update.
52824
52825 2007-05-06  Bruno Haible  <bruno@clisp.org>
52826
52827         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52828         pass the ' flag character to sprintf or snprintf.
52829         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52832         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52833         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52841         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52842         flag.
52843         * tests/test-sprintf-posix.h (test_function): Likewise.
52844         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52845         * tests/test-vasprintf-posix.c (test_function): Likewise.
52846         * doc/functions/fprintf.texi: Update.
52847         * doc/functions/printf.texi: Update.
52848         * doc/functions/snprintf.texi: Update.
52849         * doc/functions/sprintf.texi: Update.
52850         * doc/functions/vfprintf.texi: Update.
52851         * doc/functions/vprintf.texi: Update.
52852         * doc/functions/vsnprintf.texi: Update.
52853         * doc/functions/vsprintf.texi: Update.
52854
52855 2007-05-01  Bruno Haible  <bruno@clisp.org>
52856
52857         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52858
52859 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52860
52861         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52862         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52863
52864 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52865
52866         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52867         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52868         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52869
52870 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52871
52872         * lib/argp-help.c (struct hol_entry): New member `ord'.
52873         (HOL_ENTRY_PTRCMP): Use ord for comparison
52874         (hol_sort): Initialize ord.
52875
52876 2007-05-01  Bruno Haible  <bruno@clisp.org>
52877
52878         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52879         Reported by Eric Blake.
52880         * doc/gnulib.texi (Function Substitutes): Update.
52881
52882 2007-05-01  Bruno Haible  <bruno@clisp.org>
52883
52884         * doc/functions.texi: Remove file, now redundant through
52885         doc/functions/*.texi.
52886
52887 2007-05-01  Bruno Haible  <bruno@clisp.org>
52888
52889         * modules/argp (Depends-on): Add sleep.
52890
52891 2007-05-01  Bruno Haible  <bruno@clisp.org>
52892
52893         * modules/sleep-tests: New file.
52894         * tests/test-sleep.c: New file.
52895
52896         * modules/sleep: New file.
52897         * lib/sleep.c: New file.
52898         * m4/sleep.m4: New file.
52899         * lib/unistd_.h (sleep): New declaration.
52900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52901         HAVE_SLEEP.
52902         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52903         * doc/functions/sleep.texi: Document the sleep module.
52904
52905 2007-05-01  Bruno Haible  <bruno@clisp.org>
52906
52907         * lib/sigprocmask.h: Remove file.
52908         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52909         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52910         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52911         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52912         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52913         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52914         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52915         HAVE_SIGSET_T as a shell variable.
52916         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52917         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52918         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52919         (Depends-on): Add signal. Remove verify.
52920         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52921         (Include): Mention <signal.h> instead of sigprocmask.h.
52922         * NEWS: Mention the change.
52923         * lib/fatal-signal.c: Don't include sigprocmask.h.
52924
52925 2007-05-01  Bruno Haible  <bruno@clisp.org>
52926
52927         * modules/signal: New file.
52928         * lib/signal_.h: New file.
52929         * m4/signal_h.m4: New file.
52930
52931 2007-05-01  Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52934         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52935         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52936         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52937
52938 2007-05-01  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52941         configure time.
52942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52943         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52944         * modules/sys_stat (Makefile.am): Substitute their values into
52945         sys/stat.h.
52946
52947 2007-05-01  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52950         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52951         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52952
52953 2007-05-01  Bruno Haible  <bruno@clisp.org>
52954
52955         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52956         'assert' module here.
52957
52958 2007-05-01  Bruno Haible  <bruno@clisp.org>
52959
52960         * doc/functions/*.texi: New files.
52961         * doc/functions/google-ranking.txt: New file.
52962         * doc/gnulib.texi (Function Substitutes): New chapter.
52963         (ctime, inet_ntoa): Remove sections.
52964         * doc/ctime.texi: Remove file.
52965         * doc/inet_ntoa.texi: Remove file.
52966         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52967         dependencies.
52968         (%.info): New rule, specifying a --reference-limit.
52969
52970 2007-05-01  Bruno Haible  <bruno@clisp.org>
52971
52972         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52973
52974 2007-05-01  Bruno Haible  <bruno@clisp.org>
52975
52976         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52977         the portability of 'mkdir' to mingw systems.
52978
52979 2007-05-01  Bruno Haible  <bruno@clisp.org>
52980
52981         * doc/headers/google-ranking.txt: New file.
52982
52983 2007-04-30  Eric Blake  <ebb9@byu.net>
52984
52985         Prefer fseeko to fseek.
52986         * modules/getpass (Depends-on): Add fseeko.
52987         * lib/getpass.c (getpass): Use fseeko, not fseek.
52988
52989 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52990
52991         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52992         assumes the sorting is stable, while most qsort implementations
52993         are not.  Use argument addresses to ensure they never compare as
52994         equal.
52995
52996         * tests/test-argp-2.sh (usage-indent test): Fix output
52997         (func_compare): Restore diff options
52998         * tests/test-argp.c: Restore #include "progname.h"
52999
53000 2007-04-29  Bruno Haible  <bruno@clisp.org>
53001
53002         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53003         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53004         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53006         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53007         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53008         (TESTS, check_PROGRAMS): Add test-snprintf.
53009         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53010         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53011         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53012         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53013         assertions that fail on HP-UX, OSF/1, or IRIX.
53014         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53015
53016 2007-04-29  Bruno Haible  <bruno@clisp.org>
53017
53018         * MODULES.html.sh (posix_functions): Remove 'contents'.
53019
53020 2007-04-29  Karl Berry  <karl@gnu.org>
53021
53022         * config/srclist.txt (gendocs_template_min): new entry.
53023
53024 2007-04-29  Bruno Haible  <bruno@clisp.org>
53025
53026         Work around fpurge bug on BSD systems.
53027         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53028         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53029         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53030         fpurge to rpl_fpurge if the system already has this function.
53031         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53032         the case where the system already has this function. Correct invariants
53033         on BSD systems.
53034         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53035         BSD systems.
53036
53037 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53038
53039         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53040         proposed by Sven Verdoolaege.
53041
53042         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53043         options.
53044         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53045         (usage and help tests): Update
53046
53047 2007-04-29  Bruno Haible  <bruno@clisp.org>
53048
53049         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53050         Print more information in case of failure. Disable a test on BeOS.
53051
53052 2007-04-29  Bruno Haible  <bruno@clisp.org>
53053
53054         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53055         This helps debugging on systems on which no gdb is available.
53056
53057 2007-04-29  Bruno Haible  <bruno@clisp.org>
53058
53059         * lib/freading.h: Improve comments.
53060         * lib/fwriting.h: Likewise.
53061         * tests/test-freading.c (main): Don't check freading immediately after
53062         repositioning. Needed for glibc.
53063
53064 2007-04-29  Bruno Haible  <bruno@clisp.org>
53065
53066         * lib/freading.c (freading): Trivial simplification.
53067
53068 2007-04-28  Bruno Haible  <bruno@clisp.org>
53069
53070         * tests/test-fwriting.c (main): Also test the interaction between
53071         fflush and fwriting.
53072         * modules/fwriting-tests (Depends-on): Add fflush.
53073
53074         * tests/test-freading.c (main): Also test the interaction between
53075         fflush and freading.
53076         * modules/freading-tests (Depends-on): Add fflush.
53077
53078 2007-04-28  Bruno Haible  <bruno@clisp.org>
53079
53080         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53081         fseeko and ftello.
53082         Suggested by Eric Blake.
53083
53084 2007-04-28  Jim Meyering  <jim@meyering.net>
53085
53086         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53087         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53088         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53089
53090 2007-04-27  Eric Blake  <ebb9@byu.net>
53091
53092         * doc/headers/assert.texi (assert.h): Document assert module use.
53093
53094 2007-04-27  Bruno Haible  <bruno@clisp.org>
53095
53096         * doc/headers/*.texi: New files.
53097         * doc/gnulib.texi (Header File Substitutes): New chapter.
53098         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53099         dependencies.
53100         (standards.info ,standards.html, standards.dvi): Update dependencies.
53101         (mostlyclean, clean): New targets.
53102
53103 2007-04-27  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53106         * modules/sysexits (Files, Makefile.am): Update.
53107
53108         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53109         * modules/sys_socket (Files, Makefile.am): Update.
53110
53111         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53112         * modules/sys_stat (Files, Makefile.am): Update.
53113
53114 2007-04-27  Eric Blake  <ebb9@byu.net>
53115
53116         * lib/freading.h: Improve comments.
53117         * lib/fwriting.h: Likewise.
53118         * lib/fflush.c: Likewise.
53119
53120         Fix closein for mingw.
53121         * modules/closein-tests: Add tests for closein.
53122         * tests/test-closein.c: New file.
53123         * tests/test-closein.sh: Likewise.
53124         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53125         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53126
53127 2007-04-27  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53130         version is < 6.
53131         * lib/math_.h [__DECC]: Likewise.
53132         * lib/stdio_.h [__DECC]: Likewise.
53133         * lib/stdlib_.h [__DECC]: Likewise.
53134         * lib/string_.h [__DECC]: Likewise.
53135         * lib/time_.h [__DECC]: Likewise.
53136         * lib/wchar_.h [__DECC]: Likewise.
53137         * lib/wctype_.h [__DECC]: Likewise.
53138
53139 2007-04-27  Bruno Haible  <bruno@clisp.org>
53140
53141         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53142
53143 2007-04-27  Bruno Haible  <bruno@clisp.org>
53144
53145         * lib/fflush.c: Add comments.
53146         * modules/fpurge-tests (Depends-on): Add fflush.
53147         * modules/freadable-tests (Depends-on): Likewise.
53148         * modules/fwritable-tests (Depends-on): Likewise.
53149
53150 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53151
53152         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53153         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53154         Report by Bruno Haible <bruno@clisp.org>.
53155
53156 2007-04-26  Eric Blake  <ebb9@byu.net>
53157
53158         Fix fflush on mingw.
53159         * modules/fflush (Depends-on): Add freading.
53160         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53161         but unread data.
53162
53163 2007-04-26  Eric Blake  <ebb9@byu.net>
53164         and Bruno Haible  <bruno@clisp.org>
53165
53166         Implement freading and fwriting.
53167         * lib/freading.c: New file.
53168         * lib/freading.h: Likewise.
53169         * m4/freading.m4: Likewise.
53170         * modules/freading: Likewise.
53171         * modules/freading-tests: Likewise.
53172         * tests/test-freading.c: Likewise.
53173         * lib/fwriting.c: New file.
53174         * lib/fwriting.h: Likewise.
53175         * m4/fwriting.m4: Likewise.
53176         * modules/fwriting: Likewise.
53177         * modules/fwriting-tests: Likewise.
53178         * tests/test-fwriting.c: Likewise.
53179         * MODULES.html.sh (File stream based Input/Output): Mention them.
53180
53181 2007-04-26  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53184         'long' when we assume it.
53185         Suggested by Eric Blake.
53186
53187 2007-04-26  Bruno Haible  <bruno@clisp.org>
53188
53189         Ensure fseeko, ftello are declared on glibc systems.
53190         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53191         * modules/fseeko (configure.ac-early): Likewise.
53192         * modules/ftello (configure.ac-early): Likewise.
53193         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53194         AC_FUNC_FSEEKO for this.
53195         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53196         (gl_CHECK_FSEEKO): Remove macro.
53197
53198 2007-04-26  Bruno Haible  <bruno@clisp.org>
53199
53200         * tests/test-fflush.c (main): Also check the ftell result after
53201         fflush and fseek/fseeko.
53202         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53203         file descriptor position cache in the stream.
53204         * lib/fseeko.c (rpl_fseeko): Likewise.
53205
53206 2007-04-26  Bruno Haible  <bruno@clisp.org>
53207
53208         * modules/fflush-tests (Depends-on): Add fseeko.
53209
53210 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53211             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53212
53213         * lib/argz_.h: ensure error_t definition is obtained in same
53214         mechanism system argz.h would have.
53215         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53216         argz facilities are known bad.  Err on the side of caution if
53217         cross-compiling.
53218
53219 2007-04-25  Eric Blake  <ebb9@byu.net>
53220
53221         * lib/fpurge.c (includes): Use stdlib.h for free.
53222         * tests/test-fflush.c (main): Also test fflush-fseeko.
53223
53224 2007-04-25  Bruno Haible  <bruno@clisp.org>
53225
53226         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53227         * lib/fseeko.c: New file.
53228         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53229         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53230         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53231         gl_FUNC_FSEEKO.
53232         (gl_FUNC_FSEEKO): Invoke it.
53233         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53234         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53235         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53236
53237 2007-04-25  Bruno Haible  <bruno@clisp.org>
53238
53239         * modules/fflush (Depends-on): Add ftello.
53240
53241 2007-04-25  Bruno Haible  <bruno@clisp.org>
53242
53243         * modules/ftello-tests: New file.
53244         * tests/test-ftello.c: New file.
53245
53246         * modules/ftello: New file.
53247         * m4/ftello.m4: New file.
53248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53249         HAVE_FTELLO.
53250         * lib/stdio_.h (ftello): New declaration.
53251         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53252         HAVE_FTELLO.
53253
53254 2007-04-25  Bruno Haible  <bruno@clisp.org>
53255
53256         * modules/fseeko-tests: New file.
53257         * tests/test-fseeko.c: New file.
53258
53259         * modules/fseeko: New file.
53260         * m4/fseeko.m4: New file.
53261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53262         HAVE_FSEEKO.
53263         * lib/stdio_.h (fseeko): New declaration.
53264         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53265         HAVE_FSEEKO.
53266
53267 2007-04-25  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53270
53271 2007-04-25  Bruno Haible  <bruno@clisp.org>
53272
53273         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53274         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53275         * tests/test-unistd.c: Likewise.
53276         * tests/test-fcntl.c: Likewise.
53277
53278 2007-04-23  Eric Blake  <ebb9@byu.net>
53279
53280         * lib/fflush.c: Fix missing include.
53281         Reported by Bruno Haible.
53282
53283 2007-04-23  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53286         Reported by Eric Blake.
53287
53288 2007-04-23  Bruno Haible  <bruno@clisp.org>
53289
53290         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53291
53292 2007-04-23  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53295
53296 2007-04-23  Bruno Haible  <bruno@clisp.org>
53297
53298         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53299         Needed on HP-UX 11.
53300
53301 2007-04-16  Eric Blake  <ebb9@byu.net>
53302
53303         Make fflush rely on fpurge.
53304         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53305         open coding all variants.
53306         * modules/fflush (Depends-on): Add fpurge and unistd.
53307         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53308         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53309
53310         Fix --with-tests compilation on cygwin.
53311         * modules/argmatch-tests (Makefile.am): List gnulib library first
53312         in LDADD.
53313         * modules/argp-tests (Makefile.am): Likewise.
53314         * modules/array-list-tests (Makefile.am): Likewise.
53315         * modules/array-oset-tests (Makefile.am): Likewise.
53316         * modules/avltree-list-tests (Makefile.am): Likewise.
53317         * modules/avltree-oset-tests (Makefile.am): Likewise.
53318         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53319         * modules/carray-list-tests (Makefile.am): Likewise.
53320         * modules/dirname-tests (Makefile.am): Likewise.
53321         * modules/frexp-tests (Makefile.am): Likewise.
53322         * modules/isnanl-tests (Makefile.am): Likewise.
53323         * modules/linked-list-tests (Makefile.am): Likewise.
53324         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53325         * modules/lock-tests (Makefile.am): Likewise.
53326         * modules/rbtree-list-tests (Makefile.am): Likewise.
53327         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53328         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53329         * modules/tls-tests (Makefile.am): Likewise.
53330         * modules/tsearch-tests (Makefile.am): Likewise.
53331         * modules/xvasprintf-tests (Makefile.am): Likewise.
53332
53333         Fix fpurge for cygwin.
53334         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53335         value.
53336         * modules/fpurge-tests (Depends-on): Clean up trash.
53337
53338 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53339
53340         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53341
53342         * m4/autobuild.m4: Re-indent.
53343
53344 2007-04-13  Bruno Haible  <bruno@clisp.org>
53345
53346         * modules/fpurge-tests: New file.
53347         * tests/test-fpurge.c: New file.
53348
53349         * modules/fpurge: New file.
53350         * lib/fpurge.h: New file.
53351         * lib/fpurge.c: New file.
53352         * m4/fpurge.m4: New file.
53353
53354 2007-04-13  Bruno Haible  <bruno@clisp.org>
53355
53356         * modules/fbufmode-tests: New file.
53357         * tests/test-fbufmode.c: New file.
53358
53359         * modules/fbufmode: New file.
53360         * lib/fbufmode.h: New file.
53361         * lib/fbufmode.c: New file.
53362         * m4/fbufmode.m4: New file.
53363
53364 2007-04-13  Bruno Haible  <bruno@clisp.org>
53365
53366         * modules/fwritable-tests: New file.
53367         * tests/test-fwritable.c: New file.
53368
53369         * modules/fwritable: New file.
53370         * lib/fwritable.h: New file.
53371         * lib/fwritable.c: New file.
53372         * m4/fwritable.m4: New file.
53373
53374 2007-04-13  Bruno Haible  <bruno@clisp.org>
53375
53376         * modules/freadable-tests: New file.
53377         * tests/test-freadable.c: New file.
53378
53379         * modules/freadable: New file.
53380         * lib/freadable.h: New file.
53381         * lib/freadable.c: New file.
53382         * m4/freadable.m4: New file.
53383
53384 2007-04-13  Bruno Haible  <bruno@clisp.org>
53385
53386         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53387         MOSTLYCLEANFILES.
53388
53389 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53390
53391         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53392         gzip bootstrap.conf to avoid dragging in i18n machinery.
53393         (gnulib_tool_option): Use it.
53394
53395 2007-04-13  Bruno Haible  <bruno@clisp.org>
53396
53397         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53398         %F directives.
53399         * tests/test-vasprintf-posix.c (test_function): Likewise.
53400         * tests/test-snprintf-posix.h (test_function): Likewise.
53401         * tests/test-sprintf-posix.h (test_function): Likewise.
53402         * tests/test-fprintf-posix.h (test_function): Likewise.
53403         * tests/test-printf-posix.h (test_function): Likewise.
53404         * tests/test-fprintf-posix.out: Likewise.
53405
53406 2007-04-13  Bruno Haible  <bruno@clisp.org>
53407
53408         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53409         * modules/tls-tests (configure.ac): Likewise.
53410         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53411
53412 2007-04-13  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/tls.c (glthread_tls_get): Fix return type.
53415         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53416
53417 2007-04-12  Eric Blake  <ebb9@byu.net>
53418
53419         * modules/gettime (Depends-on): Remove gettime.
53420         Reported by Dmitry V. Levin.
53421
53422 2007-04-12  Bruno Haible  <bruno@clisp.org>
53423
53424         * modules/fflush (Include): Mention <stdio.h>.
53425         * modules/strtoimax (Include): Mention <inttypes.h>.
53426         * modules/strtoumax (Include): Likewise.
53427
53428 2007-04-12  Eric Blake  <ebb9@byu.net>
53429
53430         * .cvsignore: New file.
53431         * .gitignore: Likewise.
53432
53433 2007-04-12  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53436         not before, since $(LDADD) often contains libgnu.a.
53437         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53438         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53439         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53440         Needed on Cygwin.
53441
53442 2007-04-12  Eric Blake  <ebb9@byu.net>
53443
53444         Work around glibc's failure to flush stdin on fclose.
53445         * lib/closein.c (close_stdin): Flush stdin before closing.
53446
53447         Work around glibc's failure to reset seekable stdin on exit.
53448         * modules/closein: New module.
53449         * lib/closein.c: New file.
53450         * lib/closein.h: Likewise.
53451         * m4/closein.m4: Likewise.
53452         * MODULES.html.sh (File stream based Input/Output): Document it.
53453
53454 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53455
53456         * gnulib-tool: Rename generated 'autobuild' script to
53457         'do-autobuild' in --create-megatestdir output.
53458
53459         * doc/gnulib.texi (Build robot for gnulib): Fix.
53460
53461 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53462
53463         * modules/sysexits (Depends-on): Add absolute-header.
53464
53465 2007-04-12  Eric Blake  <ebb9@byu.net>
53466
53467         No need to preserve errno on success.
53468         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53469         Reported by Bruno Haible.
53470
53471 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53472
53473         * MODULES.html.sh (Support for maintaining and releasing
53474         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53475
53476 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53477
53478         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53479
53480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53481
53482         * modules/autobuild: New module.
53483
53484         * m4/autobuild.m4: New file.
53485
53486 2007-04-11  Bruno Haible  <bruno@clisp.org>
53487
53488         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53489         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53493         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53494         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53496         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53497         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
53517
53518 2007-04-11  Bruno Haible  <bruno@clisp.org>
53519
53520         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53521
53522 2007-04-10  Bruno Haible  <bruno@clisp.org>
53523
53524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53525         for NaN and Infinity. Needed on FreeBSD 6.1.
53526         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53527         regarding results for "%010a" of Infinity and NaN.
53528         * tests/test-vasprintf-posix.c (test_function): Likewise.
53529         * tests/test-snprintf-posix.h (test_function): Likewise.
53530         * tests/test-sprintf-posix.h (test_function): Likewise.
53531         * tests/test-fprintf-posix.h (test_function): Likewise.
53532         * tests/test-printf-posix.h (test_function): Likewise.
53533         * tests/test-fprintf-posix.out: Likewise.
53534
53535 2007-04-10  Bruno Haible  <bruno@clisp.org>
53536
53537         * modules/locale-tests: New file.
53538         * tests/test-locale.c: New file.
53539
53540         * modules/locale: New file.
53541         * lib/locale_.h: New file.
53542         * m4/locale_h.m4: New file.
53543
53544 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53545             Bruno Haible  <bruno@clisp.org>
53546
53547         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53548         be determined, test for availability of the copysignf, copysign,
53549         copysignl functions.
53550         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53551         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53552         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53553
53554 2007-04-09  Eric Blake  <ebb9@byu.net>
53555
53556         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53557         * modules/stdio (Makefile.am): Support fflush.
53558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53559         * modules/fflush: New file.
53560         * lib/fflush.c: Likewise.
53561         * m4/fflush.m4: Likewise.
53562         * modules/fflush-tests: New test.
53563         * tests/test-fflush.c: Likewise.
53564         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53565
53566 2007-04-06  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53569         (VASNPRINTF): Use signbit for faster determination whether to print a
53570         minus sign.
53571         * modules/vasnprintf (Files): Remove lib/float+.h.
53572         * modules/fprintf-posix (Depends-on): Add signbit.
53573         * modules/snprintf-posix (Depends-on): Likewise.
53574         * modules/sprintf-posix (Depends-on): Likewise.
53575         * modules/vasnprintf-posix (Depends-on): Likewise.
53576         * modules/vasprintf-posix (Depends-on): Likewise.
53577         * modules/vfprintf-posix (Depends-on): Likewise.
53578         * modules/vsnprintf-posix (Depends-on): Likewise.
53579         * modules/vsprintf-posix (Depends-on): Likewise.
53580
53581 2007-04-06  Bruno Haible  <bruno@clisp.org>
53582
53583         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53584         * tests/test-frexpl.c (main): Likewise.
53585         * tests/test-ldexpl.c (main): Likewise.
53586         * modules/frexp-tests (Depends-on): Add signbit.
53587         * modules/frexpl-tests (Depdends-on): Likewise.
53588         * modules/ldexpl-tests (Depdends-on): Likewise.
53589
53590 2007-04-06  Bruno Haible  <bruno@clisp.org>
53591
53592         * modules/signbit-tests: New file.
53593         * tests/test-signbit.c: New file.
53594
53595         * modules/signbit: New file.
53596         * lib/signbitf.c: New file.
53597         * lib/signbitd.c: New file.
53598         * lib/signbitl.c: New file.
53599         * m4/signbit.m4: New file.
53600         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53601         (signbit): New macro.
53602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53603         REPLACE_SIGNBIT.
53604         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53605         REPLACE_FREXPL into math.h.
53606
53607 2007-04-06  Bruno Haible  <bruno@clisp.org>
53608
53609         * modules/isnanf-nolibm-tests: New file.
53610         * tests/test-isnanf.c: New file.
53611
53612         * modules/isnanf-nolibm: New file.
53613         * lib/isnanf.h: New file.
53614         * lib/isnanf.c: New file.
53615         * lib/isnan.c: Consider the USE_FLOAT macro.
53616         * m4/isnanf.m4: New file.
53617
53618 2007-04-06  Bruno Haible  <bruno@clisp.org>
53619
53620         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53621         (Link): New section.
53622
53623         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53624
53625 2007-04-06  Bruno Haible  <bruno@clisp.org>
53626
53627         Assume the 'long double' type.
53628         * m4/longdouble.m4: Remove file.
53629         * config/srclist.txt: Don't mention longdouble.m4.
53630         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53631         * lib/float+.h: Likewise.
53632         * lib/frexp.c: Likewise.
53633         * lib/printf-args.h: Likewise.
53634         * lib/printf-args.c: Likewise.
53635         * lib/printf-frexp.c: Likewise.
53636         * lib/printf-parse.c: Likewise.
53637         * lib/vasnprintf.c: Likewise.
53638         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53639         * m4/intl.m4: Likewise.
53640         * m4/isnanl.m4: Likewise.
53641         * m4/printf.m4: Likewise.
53642         * m4/printf-frexpl.m4: Likewise.
53643         * m4/vasnprintf.m4: Likewise.
53644         * modules/allocsa (Files): Remove m4/longdouble.m4.
53645         * modules/gettext (Files): Likewise.
53646         * modules/relocatable-prog-wrapper (Files): Likewise.
53647         * modules/vasnprintf (Files): Likewise.
53648         * modules/isnanl (Files): Likewise.
53649         (Include): Simplify.
53650         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53651         (Include): Simplify.
53652         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53653         (Include): Simplify.
53654         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53656         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53658         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53659         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53660         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53661         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53662         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53663         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53664         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53665         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53666         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53667         * tests/test-isnanl.c: Likewise.
53668         * tests/test-snprintf-posix.h: Likewise.
53669         * tests/test-sprintf-posix.h: Likewise.
53670         * tests/test-vasnprintf-posix.c: Likewise.
53671         * tests/test-vasnprintf-posix2.c: Likewise.
53672         * tests/test-vasprintf-posix.c: Likewise.
53673
53674 2007-04-06  Bruno Haible  <bruno@clisp.org>
53675
53676         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53677         * lib/math_.h [__DECC]: Include the overridden include file through
53678         #include_next, outside the double-inclusion guard.
53679         * lib/stdio_.h [__DECC]: Likewise.
53680         * lib/stdlib_.h [__DECC]: Likewise.
53681         * lib/string_.h [__DECC]: Likewise.
53682         * lib/time_.h [__DECC]: Likewise.
53683         * lib/wchar_.h [__DECC]: Likewise.
53684         * lib/wctype_.h [__DECC]: Likewise.
53685         * lib/inttypes_.h [__DECC]: Likewise.
53686         Reported by Albert Chin <china@thewrittenword.com> in
53687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53688
53689 2007-04-04  Eric Blake  <ebb9@byu.net>
53690
53691         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53692         1.5.x.
53693
53694 2007-04-04  Bruno Haible  <bruno@clisp.org>
53695
53696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53697         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53698
53699 2007-04-04  Bruno Haible  <bruno@clisp.org>
53700
53701         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53702         results for "%010a" of Infinity and NaN.
53703         * tests/test-vasprintf-posix.c (test_function): Likewise.
53704         * tests/test-snprintf-posix.h (test_function): Likewise.
53705         * tests/test-sprintf-posix.h (test_function): Likewise.
53706         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53707         * tests/test-printf-posix.h (test_function): Likewise.
53708         * tests/test-fprintf-posix.out: Update.
53709         Needed for FreeBSD 6.1.
53710
53711 2007-04-04  Bruno Haible  <bruno@clisp.org>
53712
53713         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53714         directly used by the gnulib modules nor by gnulib-tool.
53715
53716 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53717
53718         * DEPENDENCIES: Give overall description of version dependency
53719         desirability.  Use more-typical names for apps.
53720         Add shell, coreutils, diffutils, grep, tar, gzip.
53721
53722 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53723
53724         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53725
53726 2007-04-04  Karl Berry  <karl@gnu.org>
53727
53728         * MODULES.html.sh (func_module): missing '.
53729
53730 2007-04-03  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/argmatch-tests (Makefile.am): New variable
53733         test_argmatch_LDADD.
53734         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53735         * modules/array-list-tests (Makefile.am): New variable
53736         test_array_list_LDADD.
53737         * modules/array-oset-tests (Makefile.am): New variable
53738         test_array_oset_LDADD.
53739         * modules/avltree-list-tests (Makefile.am): New variable
53740         test_avltree_list_LDADD.
53741         * modules/avltree-oset-tests (Makefile.am): New variable
53742         test_avltree_oset_LDADD.
53743         * modules/avltreehash-list-tests (Makefile.am): New variable
53744         test_avltreehash_list_LDADD.
53745         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53746         test_canonicalize_lgpl_LDADD.
53747         * modules/carray-list-tests (Makefile.am): New variable
53748         test_carray_list_LDADD.
53749         * modules/dirname-tests (Makefile.am): New variable
53750         test_dirname_LDADD.
53751         * modules/linked-list-tests (Makefile.am): New variable
53752         test_linked_list_LDADD.
53753         * modules/linkedhash-list-tests (Makefile.am): New variable
53754         test_linkedhash_list_LDADD.
53755         * modules/rbtree-list-tests (Makefile.am): New variable
53756         test_rbtree_list_LDADD.
53757         * modules/rbtree-oset-tests (Makefile.am): New variable
53758         test_rbtree_oset_LDADD.
53759         * modules/rbtreehash-list-tests (Makefile.am): New variable
53760         test_rbtreehash_list_LDADD.
53761         * modules/xvasprintf-tests (Makefile.am): New variable
53762         test_xvasprintf_LDADD.
53763         Reported by Eric Blake.
53764
53765 2007-04-03  Eric Blake  <ebb9@byu.net>
53766
53767         * DEPENDENCIES: Weaken m4 requirements.
53768
53769 2007-04-03  Bruno Haible  <bruno@clisp.org>
53770
53771         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53772         * modules/isnanl-tests (configure.ac): Likewise.
53773
53774 2007-04-03  Ben Pfaff  <blp@gnu.org>
53775
53776         * modules/iconv_open: Add $(srcdir)/ to source directory
53777         references in Makefile fragments that call gperf, to fix VPATH
53778         builds.
53779
53780 2007-04-03  Bruno Haible  <bruno@clisp.org>
53781
53782         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53783         * lib/ldexpl.c: Undo last change.
53784
53785 2007-04-03  Bruno Haible  <bruno@clisp.org>
53786
53787         * modules/printf-frexpl (Depends-on): Undo last change.
53788         (Files): Add m4/ldexpl.m4.
53789
53790 2007-04-03  Bruno Haible  <bruno@clisp.org>
53791
53792         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53793         * modules/isnanl (Link): New section.
53794
53795         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53796         * modules/frexp (Link): New section.
53797
53798         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53799         * modules/frexpl (Link): New section.
53800
53801         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53802         * modules/ldexpl (Link): New section.
53803
53804 2007-04-03  Bruno Haible  <bruno@clisp.org>
53805
53806         * modules/TEMPLATE-EXTENDED: New file.
53807         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53808
53809 2007-04-03  Bruno Haible  <bruno@clisp.org>
53810
53811         * DEPENDENCIES: New file.
53812         Suggested by Simon Josefsson.
53813
53814 2007-04-03  Bruno Haible  <bruno@clisp.org>
53815
53816         * doc/gnulib.texi: Escape @.
53817
53818 2007-04-03  James Youngman  <jay@gnu.org>
53819         and Paul Eggert  <eggert@cs.ucla.edu>
53820
53821         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53822         birthtime on all systems that have birthtime, not just those which
53823         use st_birthtimensec rather than st_birthtim.  Putting zero in
53824         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53825         that the birth time is not available for files on an NFS mount.
53826
53827 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53828
53829         * modules/memxor: Move back from crypto/, suggested by Bruno.
53830         * modules/crypto/hmac-sha1: Fix memxor dependency.
53831
53832         * modules/crypto/gc: Moved from ../.
53833
53834 2007-04-02  Eric Blake  <ebb9@byu.net>
53835
53836         * lib/ldexpl.c (includes): Avoid libm.
53837
53838         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53839
53840 2007-04-02  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53843         on IRIX.
53844
53845 2007-04-02  Bruno Haible  <bruno@clisp.org>
53846
53847         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53848         x86 or x86_64 platforms running MacOS X.
53849         Reported by Ryan Schmidt <@ryandesign.com>.
53850
53851 2007-04-02  Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53854         i386.
53855
53856 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53857
53858         * modules/crypto/arcfour: Moved from ../.
53859         * modules/crypto/arcfour-tests: Moved from ../.
53860         * modules/crypto/arctwo: Moved from ../.
53861         * modules/crypto/arctwo-tests: Moved from ../.
53862         * modules/crypto/des: Moved from ../.
53863         * modules/crypto/des-tests: Moved from ../.
53864         * modules/crypto/gc-arcfour: Moved from ../.
53865         * modules/crypto/gc-arcfour-tests: Moved from ../.
53866         * modules/crypto/gc-arctwo: Moved from ../.
53867         * modules/crypto/gc-arctwo-tests: Moved from ../.
53868         * modules/crypto/gc-des: Moved from ../.
53869         * modules/crypto/gc-des-tests: Moved from ../.
53870         * modules/crypto/gc-hmac-md5: Moved from ../.
53871         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53872         * modules/crypto/gc-hmac-sha1: Moved from ../.
53873         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53874         * modules/crypto/gc-md2: Moved from ../.
53875         * modules/crypto/gc-md2-tests: Moved from ../.
53876         * modules/crypto/gc-md4: Moved from ../.
53877         * modules/crypto/gc-md4-tests: Moved from ../.
53878         * modules/crypto/gc-md5: Moved from ../.
53879         * modules/crypto/gc-md5-tests: Moved from ../.
53880         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53881         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53882         * modules/crypto/gc-random: Moved from ../.
53883         * modules/crypto/gc-rijndael: Moved from ../.
53884         * modules/crypto/gc-rijndael-tests: Moved from ../.
53885         * modules/crypto/gc-sha1: Moved from ../.
53886         * modules/crypto/gc-sha1-tests: Moved from ../.
53887         * modules/crypto/gc-tests: Moved from ../.
53888         * modules/crypto/hmac-md5: Moved from ../.
53889         * modules/crypto/hmac-md5-tests: Moved from ../.
53890         * modules/crypto/hmac-sha1: Moved from ../.
53891         * modules/crypto/hmac-sha1-tests: Moved from ../.
53892         * modules/crypto/md2: Moved from ../.
53893         * modules/crypto/md2-tests: Moved from ../.
53894         * modules/crypto/md4: Moved from ../.
53895         * modules/crypto/md4-tests: Moved from ../.
53896         * modules/crypto/md5: Moved from ../.
53897         * modules/crypto/md5-tests: Moved from ../.
53898         * modules/crypto/memxor: Moved from ../.
53899         * modules/crypto/rijndael: Moved from ../.
53900         * modules/crypto/rijndael-tests: Moved from ../.
53901         * modules/crypto/sha1: Moved from ../.
53902
53903 2007-03-30  James Youngman  <jay@gnu.org>
53904
53905         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53906         rename() to change the ctime of a file (because ctime is unaffected
53907         by rename on jfs2 on AIX 5.1).
53908         (main): Start by doing cleanup, in case a previous run failed leaving
53909         test files behind.
53910
53911 2007-03-31  Bruno Haible  <bruno@clisp.org>
53912
53913         Support old proprietary implementations of iconv.
53914         * modules/iconv_open: New file.
53915         * lib/iconv_.h: New file.
53916         * m4/iconv_h.m4: New file.
53917         * lib/iconv_open.c: New file.
53918         * lib/iconv_open-aix.gperf: New file.
53919         * lib/iconv_open-hpux.gperf: New file.
53920         * lib/iconv_open-irix.gperf: New file.
53921         * lib/iconv_open-osf.gperf: New file.
53922         * m4/iconv_open.m4: New file.
53923         * modules/linebreak (Depends-on): Add iconv_open.
53924         * modules/striconv (Depends-on): Likewise.
53925         * modules/striconveh (Depends-on): Likewise.
53926         * modules/unicodeio (Depends-on): Likewise.
53927         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53928         (iconv_t)(-1).
53929         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53930         conversion if cd is (iconv_t)(-1).
53931         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53932         is not possible.
53933
53934 2007-03-31  Bruno Haible  <bruno@clisp.org>
53935
53936         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53937         work on Solaris either. Protect also second use of "autodetect_jp".
53938
53939 2007-03-31  Bruno Haible  <bruno@clisp.org>
53940
53941         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53942         the function is not present.
53943
53944 2007-03-31  Bruno Haible  <bruno@clisp.org>
53945
53946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53947         the function is not present.
53948
53949 2007-03-31  Bruno Haible  <bruno@clisp.org>
53950
53951         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53952         a bug in HP-UX iconv_open().
53953
53954 2007-03-31  Bruno Haible  <bruno@clisp.org>
53955
53956         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53957         (Mathematics <math.h>): New section, add fpieee.
53958         (Input/output <stdio.h>): Add fseterr.
53959         (Mathematics <math.h>): New section, add printf-frexp.
53960         (Container data structures): Add sublist.
53961         (Core language properties): Add fpucw, inline.
53962         (Functions for greatest-width integer types <inttypes.h>): Add
53963         imaxabs, imaxdiv, inttypes.
53964         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53965         isnanl-nolibm, ldexp.
53966         (Mathematics <math.h>): New section, add printf-frexpl.
53967         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53968         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53969         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53970         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53971         (Unicode string functions): Add unistr/u*-mbtoucr.
53972         (Java): Add javacomp-script, javaexec-script.
53973         (C#): Add csharpcomp-script, csharpexec-script.
53974         (Support for building libraries and executables): Add havelib,
53975         relocatable-*.
53976         (Support for maintaining and releasing projects): Renamed from
53977         'Support for maintaining and release projects'. Add announce-gen.
53978
53979 2007-03-31  Bruno Haible  <bruno@clisp.org>
53980
53981         * README: Talk primarily about git.
53982         (git and CVS): Renamed from CVS.
53983         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53984         gnulib is available through git.
53985         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53986
53987 2007-03-30  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53990         * lib/poll_.h: Likewise.
53991         * lib/stat_.h: Likewise.
53992         * lib/sys_time_.h: Likewise.
53993         * lib/sysexit_.h: Likewise.
53994         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53995         * lib/stdbool_.h: Likewise.
53996         * lib/byteswap_.h: Add double-inclusion guard.
53997
53998 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53999
54000         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54001
54002 2007-03-30  Karl Berry  <karl@gnu.org>
54003
54004         * config/srclist-update: double space after USA in the license
54005         substitution, since that's how it's usually (?) written.
54006
54007 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54008
54009         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54010         reported by Bruno Haible.
54011
54012 2007-03-29  Bruno Haible  <bruno@clisp.org>
54013
54014         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54015         a bug in AIX iconv().
54016
54017 2007-03-29  Bruno Haible  <bruno@clisp.org>
54018
54019         * modules/ldexpl-tests: New file.
54020         * tests/test-ldexpl.c: New file.
54021
54022 2007-03-29  Bruno Haible  <bruno@clisp.org>
54023
54024         * lib/ldexpl.c: Include fpucw.h.
54025         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54026         multiplication.
54027         * modules/ldexpl (Depends-on): Add fpucw.
54028
54029 2007-03-29  Bruno Haible  <bruno@clisp.org>
54030
54031         * modules/ldexpl: New file.
54032         * m4/ldexpl.m4: New file.
54033         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54034         set.
54035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54036         REPLACE_LDEXPL.
54037         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54038         REPLACE_LDEXPL.
54039         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54040         gl_FUNC_LDEXPL_WORKS.
54041         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54042         * modules/mathl (Files): Remove lib/ldexpl.c.
54043         (Depends-on): Add ldexpl.
54044
54045 2007-03-29  Bruno Haible  <bruno@clisp.org>
54046
54047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54048
54049 2007-03-29  Bruno Haible  <bruno@clisp.org>
54050
54051         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54052         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54053         and possibly also HP-UX.
54054         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54055         work on AIX, IRIX, HP-UX, OSF/1.
54056         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54057         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54058         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54059         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54060         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54061         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54062
54063 2007-03-29  Bruno Haible  <bruno@clisp.org>
54064
54065         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54066
54067 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54070         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54071
54072 2007-03-29  Eric Blake  <ebb9@byu.net>
54073
54074         * lib/acl-internal.h: Remove redundant include.
54075         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54076         Cygwin when a file is locked.
54077
54078 2007-03-29  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54081         file.
54082         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54083
54084 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54085
54086         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54087         try to remove a parent directory if the child couldn't be removed
54088         (except for the first rmdir, which could fail because the child
54089         doesn't exist).  Problem reported by Jeff Blaine in
54090         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54091
54092 2007-03-28  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/striconveh.c (utf8conv_carefully): New function.
54095         (mem_cd_iconveh_internal): Invoke it.
54096
54097 2007-03-28  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54100         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54101         input.
54102         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54103         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54104         unistr/u8-uctomb.
54105
54106 2007-03-28  Bruno Haible  <bruno@clisp.org>
54107
54108         * modules/unistr/u8-mbtoucr: New file.
54109         * lib/unistr/u8-mbtoucr.c: New file.
54110         * modules/unistr/u16-mbtoucr: New file.
54111         * lib/unistr/u16-mbtoucr.c: New file.
54112         * modules/unistr/u16-mbtoucr: New file.
54113         * lib/unistr/u16-mbtoucr.c: New file.
54114         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54115
54116 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54117             Bruno Haible  <bruno@clisp.org>
54118
54119         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54120         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54121         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54122
54123         * m4/stdio_h.m4: Add stubs for vasprintf too.
54124
54125         * modules/stdio: Support vasprintf in sed command.
54126
54127         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54128         vasprintf.h.  Add stdio module indicator.
54129
54130         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54131         vasprintf.h.
54132
54133         * lib/vasprintf.h: File removed.
54134
54135         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54136         * lib/vasprintf.c: Ditto.
54137         * lib/xvasprintf.c: Ditto.
54138         * tests/test-vasprintf-posix.c: Ditto.
54139         * tests/test-vasprintf.c: Ditto.
54140
54141 2007-03-27  Bruno Haible  <bruno@clisp.org>
54142
54143         Make vasnprintf multithread-safe.
54144         * lib/vasnprintf.c (decimal_point_char): New function.
54145         (VASNPRINTF): Use it.
54146         Suggested by Simon Josefsson.
54147
54148 2007-03-27  Eric Blake  <ebb9@byu.net>
54149
54150         Support sub-second birthtime on cygwin.
54151         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54152         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54153         (get_stat_birthtime): Also work with st_birthtim.
54154
54155 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54156
54157         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54158         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54159         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54160         (get_stat_birthtime_ns): Simplify compile-time tests.
54161         (get_stat_birthtime): Change the API to look like
54162         get_stat_mtime etc., except return a negative tv_nsec on error.
54163         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54164         Don't check for "spare" fields.
54165         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54166         or for struct stat.st_birthtime, as these tests aren't used.
54167         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54168
54169 2007-03-27  Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/stat-time.h: Include <sys/stat.h>.
54172
54173 2007-03-27  James Youngman  <jay@gnu.org>
54174
54175         * lib/stat-time.h (get_stat_birthtime): New function for
54176           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54177         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54178           and its variants.
54179         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54180         * modules/stat-time-test: New file.
54181         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54182
54183 2007-03-26  Bruno Haible  <bruno@clisp.org>
54184
54185         Better support of signalling NaNs.
54186         * lib/atanl.c: Include isnanl.h.
54187         (atanl): Perform test for NaN at the beginning of the function and
54188         through a call to isnanl.
54189         * lib/cosl.c: Include isnanl.h.
54190         (cosl): Perform test for NaN at the beginning of the function and
54191         through a call to isnanl.
54192         * lib/ldexpl.c: Include isnanl.h.
54193         (ldexpl): Perform test for NaN through a call to isnanl.
54194         * lib/logl.c: Include isnanl.h.
54195         (logl): Perform test for NaN at the beginning of the function and
54196         through a call to isnanl.
54197         * lib/sinl.c: Include isnanl.h.
54198         (sinl): Perform test for NaN at the beginning of the function and
54199         through a call to isnanl.
54200         * lib/sqrtl.c: Include isnanl.h.
54201         (sqrtl): Perform test for NaN at the beginning of the function and
54202         through a call to isnanl.
54203         * lib/tanl.c: Include isnanl.h.
54204         (tanl): Perform test for NaN at the beginning of the function and
54205         through a call to isnanl.
54206         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54207         * modules/mathl (Depends-on): Add isnanl.
54208
54209 2007-03-26  Eric Blake  <ebb9@byu.net>
54210
54211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54212         regression in logic sense of previous patch.
54213
54214 2007-03-26  Bruno Haible  <bruno@clisp.org>
54215
54216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54217         unportable shell command "if ! ...".
54218         Reported by Ralf Wildenhues.
54219
54220 2007-03-25  Bruno Haible  <bruno@clisp.org>
54221
54222         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54223         <sysexits.h> file, and only add EX_CONFIG.
54224         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54225         absolute file name and whether it is sufficient. Substitute also
54226         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54227         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54228         ABSOLUTE_SYSEXITS_H into sysexits.h.
54229
54230 2007-03-25  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54233         hints is NULL.
54234
54235 2007-03-25  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54238         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54239
54240 2007-03-25  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/vasnprintf.c: Include langinfo.h.
54243         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54244         multithread-safe.
54245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54246         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54254         Reported by Simon Josefsson.
54255
54256 2007-03-25  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54259         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54260         * modules/vasnprintf (Depends-on): Add stdint.
54261
54262 2007-03-25  Bruno Haible  <bruno@clisp.org>
54263
54264         * modules/fpieee: New file.
54265         * m4/fpieee.m4: New file.
54266         * modules/isnan-nolibm (Depends-on): Add fpieee.
54267         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54268         * modules/isnanl (Depends-on): Add fpieee.
54269
54270 2007-03-25  Bruno Haible  <bruno@clisp.org>
54271
54272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54273
54274 2007-03-25  Bruno Haible  <bruno@clisp.org>
54275
54276         Avoid test failures on IRIX 6.5.
54277         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54278         (main): Use it.
54279         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54280         macros.
54281         (main): Use them.
54282
54283 2007-03-25  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54286         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54287         exists but doesn't work.
54288         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54289         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54291         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54292         math.h.
54293
54294 2007-03-25  Bruno Haible  <bruno@clisp.org>
54295
54296         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54297         returns inf. Needed on IRIX 6.5.
54298
54299 2007-03-25  Bruno Haible  <bruno@clisp.org>
54300
54301         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54302         (main): Use isnanl instead of x != x idiom.
54303         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54304
54305         * tests/test-frexp.c: Include isnan.h.
54306         (main): Use isnan instead of x != x idiom.
54307         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54308
54309 2007-03-25  Bruno Haible  <bruno@clisp.org>
54310
54311         * tests/test-frexp.c (NaN): New function/macro.
54312         (main): Use it instead of 0.0 / 0.0.
54313         * tests/test-isnan.c (NaN): New function/macro.
54314         (main): Use it instead of 0.0 / 0.0.
54315         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54316         (test_function): Use it instead of 0.0 / 0.0.
54317         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54318         (test_function): Use it instead of 0.0 / 0.0.
54319         * tests/test-snprintf-posix.h (NaN): New function/macro.
54320         (test_function): Use it instead of 0.0 / 0.0.
54321         * tests/test-sprintf-posix.h (NaN): New function/macro.
54322         (test_function): Use it instead of 0.0 / 0.0.
54323         * tests/test-fprintf-posix.h (NaN): New function/macro.
54324         (test_function): Use it instead of 0.0 / 0.0.
54325         * tests/test-printf-posix.h (NaN): New function/macro.
54326         (test_function): Use it instead of 0.0 / 0.0.
54327
54328         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54329
54330 2007-03-25  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54333
54334 2007-03-25  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/regexec.c (merge_state_with_log): Make static.
54337
54338 2007-03-25  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/trigl.c (kernel_rem_pio2): Make static.
54341
54342 2007-03-25  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/sincosl.c (sincosl_table): Make static.
54345
54346 2007-03-25  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54349         if the compiler does not support C99.
54350
54351 2007-03-25  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/time (Makefile.am): Ensure all rule action lines start with a
54354         tab.
54355
54356 2007-03-24  Bruno Haible  <bruno@clisp.org>
54357
54358         * modules/tsearch-tests: New file.
54359         * tests/test-tsearch.sh: New file.
54360         * tests/test-tsearch.c: New file, mostly copied from glibc.
54361
54362         * modules/search-tests: New file.
54363         * tests/test-search.c: New file.
54364
54365         * modules/search: New file.
54366         * lib/search_.h: New file, incorporating lib/tsearch.h.
54367         * m4/search_h.m4: New file.
54368         * lib/tsearch.h: Remove file.
54369         * lib/tsearch.c: Include search.h instead of tsearch.h.
54370         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54371         HAVE_TSEARCH.
54372         * modules/tsearch (Files): Remove lib/tsearch.h.
54373         (Depends-on): Add search.
54374         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54375         (Include): Change tsearch.h into search.h.
54376
54377 2007-03-24  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/fpucw: New file.
54380         * lib/fpucw.h: New file.
54381         * lib/frexp.c: Include fpucw.h.
54382         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54383         (FUNC): Use them.
54384         * lib/printf-frexp.c: Include fpucw.h.
54385         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54386         (FUNC): Use them.
54387         * lib/vasnprintf.c: Include fpucw.h.
54388         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54389         'long double' calculations.
54390         * tests/test-frexpl.c: Include fpucw.h.
54391         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54392         * tests/test-printf-frexpl.c: Include fpucw.h.
54393         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54394         * modules/frexpl (Depends-on): Add fpucw.
54395         * modules/printf-frexpl (Depends-on): Likewise.
54396         * modules/fprintf-posix (Depends-on): Likewise.
54397         * modules/snprintf-posix (Depends-on): Likewise.
54398         * modules/sprintf-posix (Depends-on): Likewise.
54399         * modules/vasnprintf-posix (Depends-on): Likewise.
54400         * modules/vasprintf-posix (Depends-on): Likewise.
54401         * modules/vfprintf-posix (Depends-on): Likewise.
54402         * modules/vsnprintf-posix (Depends-on): Likewise.
54403         * modules/vsprintf-posix (Depends-on): Likewise.
54404         * modules/frexpl-tests (Depends-on): Likewise.
54405         * modules/printf-frexpl-tests (Depends-on): Likewise.
54406
54407 2007-03-24  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/float+.h: New file.
54410         * lib/isnan.c: Include float+.h.
54411         (SIZE): New macro.
54412         (FUNC): Compare only SIZE bytes of the value.
54413         * lib/vasnprintf.c: Include float+.h.
54414         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54415         SIZEOF_LDBL or SIZEOF_DBL bytes.
54416         * modules/isnan-nolibm (Files): Add lib/float+.h.
54417         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54418         * modules/isnanl (Files): Add lib/float+.h.
54419         * modules/vasnprintf (Files): Add lib/float+.h.
54420
54421 2007-03-24  Bruno Haible  <bruno@clisp.org>
54422
54423         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54424         include isnanl-nolibm.h.
54425
54426 2007-03-24  Bruno Haible  <bruno@clisp.org>
54427
54428         * tests/test-read-file.c (main): Don't produce spurious output for
54429         expected situations. Make the test fail if it encountered unexpected
54430         results.
54431
54432 2007-03-24  Bruno Haible  <bruno@clisp.org>
54433
54434         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54435         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54436
54437 2007-03-24  Bruno Haible  <bruno@clisp.org>
54438
54439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54440
54441 2007-03-24  Bruno Haible  <bruno@clisp.org>
54442
54443         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54444         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54445
54446         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54447         * modules/utf8-ucs4: Turn into a symbolic link to module
54448         unistr/u8-mbtouc.
54449
54450         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54451         utf8-ucs4-unsafe.
54452         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54453         unistr/u8-mbtouc-unsafe.
54454
54455         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54456         * modules/utf16-ucs4: Turn into a symbolic link to module
54457         unistr/u16-mbtouc.
54458
54459         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54460         utf16-ucs4-unsafe.
54461         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54462         unistr/u16-mbtouc-unsafe.
54463
54464         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54465         * modules/ucs4-utf8: Turn into a symbolic link to module
54466         unistr/u8-ubtomb.
54467
54468         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54469         * modules/ucs4-utf16: Turn into a symbolic link to module
54470         unistr/u16-ubtomb.
54471
54472 2007-03-24  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54475         Enable the function only if HAVE_INLINE.
54476         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54477         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54478         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54479         Enable the function only if HAVE_INLINE.
54480         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54481         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54482         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54483         Enable the function only if HAVE_INLINE.
54484         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54485         Enable the function only if HAVE_INLINE.
54486         * modules/utf8-ucs4: Update.
54487         * modules/utf8-ucs4-unsafe: Update.
54488         * modules/utf16-ucs4: Update.
54489         * modules/utf16-ucs4-unsafe: Update.
54490         * modules/ucs4-utf8: Update.
54491         * modules/ucs4-utf16: Update.
54492
54493 2007-03-24  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/utf8-ucs4.h: Remove file.
54496         * lib/utf8-ucs4-unsafe.h: Remove file.
54497         * lib/utf16-ucs4.h: Remove file.
54498         * lib/utf16-ucs4-unsafe.h: Remove file.
54499         * lib/ucs4-utf8.h: Remove file.
54500         * lib/ucs4-utf16.h: Remove file.
54501         * lib/unistr.h: Include their previous contents.
54502         * m4/utf-ucs4.m4: Remove file.
54503         * m4/ucs4-utf.m4: Remove file.
54504         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54505         (Depends-on): Add unistr/base.
54506         (configure.ac): Remove gl_UTF_UCS4.
54507         (Makefile.am): Update.
54508         (Include): Change to unistr.h.
54509         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54510         (Depends-on): Add unistr/base.
54511         (configure.ac): Remove gl_UTF_UCS4.
54512         (Makefile.am): Update.
54513         (Include): Change to unistr.h.
54514         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54515         (Depends-on): Add unistr/base.
54516         (configure.ac): Remove gl_UTF_UCS4.
54517         (Makefile.am): Update.
54518         (Include): Change to unistr.h.
54519         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54520         (Depends-on): Add unistr/base.
54521         (configure.ac): Remove gl_UTF_UCS4.
54522         (Makefile.am): Update.
54523         (Include): Change to unistr.h.
54524         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54525         (Depends-on): Add unistr/base.
54526         (configure.ac): Remove gl_UCS4_UTF.
54527         (Makefile.am): Update.
54528         (Include): Change to unistr.h.
54529         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54530         (Depends-on): Add unistr/base.
54531         (configure.ac): Remove gl_UCS4_UTF.
54532         (Makefile.am): Update.
54533         (Include): Change to unistr.h.
54534         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54535         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54536         utf8-ucs4-unsafe.h.
54537         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54538         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54539         utf16-ucs4-unsafe.h.
54540         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54541         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54542         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54543         * lib/unistr/u8-strchr.c: Likewise.
54544         * lib/unistr/u8-strrchr.c: Likewise.
54545         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54546         * lib/unistr/u16-strchr.c: Likewise.
54547         * lib/unistr/u16-strrchr.c: Likewise.
54548         * lib/striconveh.c: Update.
54549         * lib/linebreak.c: Update.
54550
54551 2007-03-24  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54554         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54555
54556 2007-03-22  Bruno Haible  <bruno@clisp.org>
54557
54558         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54559
54560 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         * MODULES.html.sh (File system functions): New module write-any-file.
54563         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54564         * m4/write-any-file.m4: New files.
54565
54566 2007-03-23  Eric Blake  <ebb9@byu.net>
54567
54568         * gnulib-tool: Rearrange space-tab sequences, since some editors
54569         like to eat them.
54570
54571 2007-03-23  Eric Blake  <ebb9@byu.net>
54572
54573         * lib/version-etc.c (version_etc_va): Update license wording to
54574         be more concise.  Recommended by Richard Stallman.
54575
54576 2007-03-22  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/poll.c (MSG_PEEK): New fallback definition.
54579
54580 2007-03-22  Bruno Haible  <bruno@clisp.org>
54581
54582         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54583         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54584         (main): Update.
54585         Fixes a compilation error on BeOS.
54586
54587 2007-03-22  Bruno Haible  <bruno@clisp.org>
54588
54589         * modules/frexpl-tests: New file.
54590         * tests/test-frexpl.c: New file.
54591
54592         * modules/frexpl: New file.
54593         * m4/frexpl.m4: New file.
54594         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54595         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54597         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54598         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54599         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54600
54601 2007-03-22  Bruno Haible  <bruno@clisp.org>
54602
54603         * lib/frexpl.c: Share code with lib/frexp.c.
54604         * modules/mathl (Files): Add lib/frexp.c.
54605         (Depends-on): Add isnanl-nolibm.
54606
54607 2007-03-22  Bruno Haible  <bruno@clisp.org>
54608
54609         * modules/printf-frexp (Files): Add m4/frexp.m4.
54610         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54611         only if the found frexp function actually works.
54612
54613 2007-03-22  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/frexp.c: Remove older implementation that uses divisions.
54616
54617 2007-03-21  Bruno Haible  <bruno@clisp.org>
54618
54619         * modules/frexp-tests: New file.
54620         * tests/test-frexp.c: New file.
54621
54622         * modules/frexp: New file.
54623         * lib/frexp.c: New file.
54624         * m4/frexp.m4: New file.
54625         * lib/math_.h (frexp): New declaration.
54626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54627         REPLACE_FREXP.
54628         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54629
54630 2007-03-21  Bruno Haible  <bruno@clisp.org>
54631
54632         * modules/isnanl-tests: New file.
54633         * tests/test-isnanl.c: New file.
54634
54635         * modules/isnanl: New file.
54636         * lib/isnanl.h: New file.
54637         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54638         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54639         gl_FUNC_ISNANL_WORKS.
54640         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54641         New macros.
54642
54643 2007-03-21  Bruno Haible  <bruno@clisp.org>
54644
54645         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54646         lib/isnanl.h.
54647         (Include): Update.
54648         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54649         * lib/vasnprintf.c: Update.
54650         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54651         tests/test-isnanl.h, remove tests/test-isnanl.c.
54652         (Makefile.am): Update.
54653         * tests/test-isnanl-nolibm.c: New file.
54654         * tests/test-isnanl.h: New file.
54655         * tests/test-isnanl.c: Remove file.
54656
54657 2007-03-21  Jim Meyering  <jim@meyering.net>
54658
54659         When trying to open ".", treat ESTALE like EACCES.
54660         * lib/savewd.c (savewd_save): Resort to forking not just upon
54661         failure with EACCES, but also when errno is ESTALE.
54662
54663 2007-03-20  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54666         Needed on AIX 5.1. Reported by Matthew Woehlke.
54667
54668 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         Suggestions by Bruno Haible:
54671         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54672         our own.
54673         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54674         * modules/acl (Depends-on): Add gettext.
54675
54676 2007-03-19  Bruno Haible  <bruno@clisp.org>
54677
54678         * modules/iconvme: Remove file.
54679         * lib/iconvme.h: Remove file.
54680         * lib/iconvme.c: Remove file.
54681         * m4/iconvme.m4: Remove file.
54682
54683 2007-03-19  Bruno Haible  <bruno@clisp.org>
54684
54685         * doc/relocatable-maint.texi: Break long shell script line.
54686         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54687
54688 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54691         handle file_has_acl.
54692         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54693         * lib/acl.c: Move header inclusions and related macro defns into
54694         lib/acl-internal.h.
54695         (S_ISLNK): Remove defn, since that's now done for us.
54696         (file_has_acl): Move to lib/file-has-acl.c.
54697         Call acl_trivial if available.  This is the crucial part of the fix.
54698         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54699         shared within the library.  Rewrite a bit, partly to make it compatible
54700         with the GNU coding style.
54701         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54702         Remove unnecessary double-quotes.
54703         Don't test for acl_to_text; the build will catch that.
54704         Replace acl_entries if it doesn't exist and it is needed.
54705         Check for -lsec and acl_trivial (as used on Solaris 10).
54706         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54707         lib/file-has-acl.c.
54708         (Depends-on): Add sys_stat, for S_ISLNK.
54709
54710 2007-03-19  Ben Pfaff  <blp@gnu.org>
54711
54712         * doc/gnulib.texi: Fix typos.
54713         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54714
54715 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54716
54717         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54718         If size is zero here, buf must be zero.
54719
54720 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54721
54722         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54723         <bruno@clisp.org>.
54724
54725 2007-03-18  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54728         Suggested by Eric Blake.
54729
54730 2007-03-18  Ben Pfaff  <blp@gnu.org>
54731
54732         * doc/relocatable.texi: Recommend using as prefix a directory
54733         that does not exist and will never be created.  Based on
54734         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54735         and others.
54736
54737 2007-03-17  Bruno Haible  <bruno@clisp.org>
54738
54739         * lib/fchownat.c: Include lchown.h.
54740
54741 2007-03-17  Bruno Haible  <bruno@clisp.org>
54742
54743         Fix endless loop when the given allocated size was > INT_MAX.
54744         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54745         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54746         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54747         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54748         * lib/sprintf.c (sprintf): Likewise.
54749
54750 2007-03-17  Bruno Haible  <bruno@clisp.org>
54751
54752         * tests/test-argp-2.sh (func_compare): Output a context diff.
54753
54754 2007-03-17  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54757         locale's decimal-point character.
54758
54759 2007-03-17  Bruno Haible  <bruno@clisp.org>
54760
54761         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54762         before comparing it. Needed because on some platforms (e.g. x86) a
54763         'long double' occupies less bytes than sizeof (long double).
54764
54765 2007-03-17  Bruno Haible  <bruno@clisp.org>
54766
54767         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54768         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54769         * tests/test-getaddrinfo.c (simple): Likewise.
54770         * tests/test-read-file.c (main): Likewise.
54771
54772 2007-03-17  Bruno Haible  <bruno@clisp.org>
54773
54774         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54775
54776 2007-03-17  Bruno Haible  <bruno@clisp.org>
54777
54778         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54779         unused variable.
54780
54781 2007-03-17  Bruno Haible  <bruno@clisp.org>
54782
54783         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54784         * tests/test-c-strncasecmp.c: Likewise.
54785
54786 2007-03-17  Bruno Haible  <bruno@clisp.org>
54787
54788         * modules/stdlib (Depends-on): Add unistd.
54789         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54790         Needed for MacOS X 10.3.
54791
54792 2007-03-17  Bruno Haible  <bruno@clisp.org>
54793
54794         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54795
54796 2007-03-17  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54799
54800 2007-03-17  Bruno Haible  <bruno@clisp.org>
54801
54802         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54803         to reflect files copied from gnulib (with or without modifications).
54804         Suggested by Jim Meyering.
54805
54806 2007-03-17  Eric Blake  <ebb9@byu.net>
54807
54808         * NEWS: Document stdlib change from 2007-02-18.
54809
54810 2007-03-17  Jim Meyering  <jim@meyering.net>
54811
54812         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54813         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54814         someone uses a name containing shell meta-characters.
54815         Reported by Alfred M. Szmidt.
54816
54817         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54818
54819 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54820
54821         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54822         and copy gettext configuration files only if configure.ac contains
54823         a use of AM_GNU_GETTEXT_VERSION.
54824
54825 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54826
54827         * build-aux/bootstrap (gnulib_name): New variable.
54828         (gnulib_tool_options): Use it.
54829
54830 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54831
54832         * tests/test-des.c: Use new namespace.
54833
54834 2007-03-15  Bruno Haible  <bruno@clisp.org>
54835
54836         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54837         Reported by James Youngman <jay@gnu.org>.
54838
54839 2007-03-15  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54842         declared prototype. Needed with cc on OSF/1 5.1.
54843
54844 2007-03-15  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54847         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54848         (struct gl_list_implementation): Add dispose_fn argument to the
54849         'create_empty', 'create' methods.
54850         (struct gl_list_impl_base): Add field 'dispose_fn'.
54851         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54852         argument.
54853         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54854         dispose_fn argument.
54855         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54856         dispose_fn on the dropped values.
54857         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54858         dispose_fn argument.
54859         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54860         dropped values.
54861         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54862         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54863         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54864         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54865         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54866         argument.
54867         (gl_tree_list_free): Call dispose_fn on the dropped values.
54868         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54869         the dropped values.
54870         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54871         Add dispose_fn argument.
54872         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54873         Call dispose_fn on the dropped values.
54874         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54875         Add dispose_fn argument.
54876         (gl_sublist_create): Initialize the 'dispose_fn' field.
54877         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54878         * tests/test-array_list.c (main): Update.
54879         * tests/test-carray_list.c (main): Update.
54880         * tests/test-avltree_list.c (main): Update.
54881         * tests/test-rbtree_list.c (main): Update.
54882         * tests/test-avltreehash_list.c (main): Update.
54883         * tests/test-rbtreehash_list.c (main): Update.
54884         * tests/test-linked_list.c (main): Update.
54885         * tests/test-linkedhash_list.c (main): Update.
54886         * tests/test-array_oset.c (main): Update.
54887
54888 2007-03-15  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54891         (gl_oset_create_empty): Add dispose_fn argument.
54892         (struct gl_oset_implementation): Add dispose_fn argument to
54893         'create_empty' method.
54894         (struct gl_oset_impl_base): Add dispose_fn field.
54895         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54896         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54897         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54898         values.
54899         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54900         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54901         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54902         dropped value.
54903         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54904         dropped value.
54905         * tests/test-array_oset.c (main): Update.
54906         * tests/test-avltree_oset.c (main): Update.
54907         * tests/test-rbtree_oset.c (main): Update.
54908         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54909
54910 2007-03-13  Bruno Haible  <bruno@clisp.org>
54911
54912         * tests/test-stdbool.c (i): Update after last patch.
54913
54914 2007-03-12  Bruno Haible  <bruno@clisp.org>
54915
54916         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54917         the iswprint macro. Needed on Solaris 2.5.1.
54918
54919 2007-03-12  Bruno Haible  <bruno@clisp.org>
54920
54921         * tests/test-printf-frexp.c (main): Declare x as volatile.
54922
54923 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54924
54925         * doc/gnulib.texi (Build robot for gnulib): New section.
54926
54927 2007-03-12  Jim Meyering  <jim@meyering.net>
54928
54929         * build-aux/bootstrap: New file.
54930         * build-aux/bootstrap.conf: New file, from coreutils.
54931
54932 2007-03-11  Bruno Haible  <bruno@clisp.org>
54933
54934         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54935
54936 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54937
54938         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54939         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54940         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54941
54942 2007-03-11  Bruno Haible  <bruno@clisp.org>
54943
54944         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54945         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54946
54947 2007-03-11  Bruno Haible  <bruno@clisp.org>
54948
54949         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54950         formula. Needed for SunPRO C 5.0.
54951
54952 2007-03-11  Bruno Haible  <bruno@clisp.org>
54953
54954         * modules/long-options (Depends-on): Add getopt.
54955
54956 2007-03-11  Bruno Haible  <bruno@clisp.org>
54957
54958         * modules/modechange (Depends-on): Add stdbool.
54959
54960 2007-03-11  Bruno Haible  <bruno@clisp.org>
54961
54962         * modules/i-ring (Depends-on): Add stdbool.
54963
54964 2007-03-11  Bruno Haible  <bruno@clisp.org>
54965
54966         * modules/gc-des (Depends-on): Add stdbool.
54967
54968 2007-03-11  Bruno Haible  <bruno@clisp.org>
54969
54970         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54971
54972 2007-03-11  Bruno Haible  <bruno@clisp.org>
54973
54974         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54975
54976 2007-03-11  Bruno Haible  <bruno@clisp.org>
54977
54978         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54979
54980 2007-03-11  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/vasnprintf.c (sprintf): Undefine.
54983
54984 2007-03-11  Bruno Haible  <bruno@clisp.org>
54985
54986         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54987         initializers in SunPRO C and Compaq C compilers.
54988
54989 2007-03-11  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54992         decrementing code ANSI C compliant.
54993
54994 2007-03-11  Bruno Haible  <bruno@clisp.org>
54995
54996         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54997         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54998
54999 2007-03-11  Bruno Haible  <bruno@clisp.org>
55000
55001         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55002         <stdbool.h> substitute doesn't pass.
55003
55004 2007-03-11  Bruno Haible  <bruno@clisp.org>
55005
55006         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55007
55008 2007-03-11  Bruno Haible  <bruno@clisp.org>
55009
55010         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55011         script, for submission to autobuild.josefsson.org.
55012
55013 2007-03-10  Bruno Haible  <bruno@clisp.org>
55014
55015         * modules/canonicalize-lgpl-tests: New file.
55016         * tests/test-canonicalize-lgpl.sh: New file.
55017         * tests/test-canonicalize-lgpl.c: New file.
55018
55019         * modules/c-strcase-tests: New file.
55020         * tests/test-c-strcase.sh: New file.
55021         * tests/test-c-strcasecmp.c: New file.
55022         * tests/test-c-strncasecmp.c: New file.
55023
55024         * modules/atexit-tests: New file.
55025         * tests/test-atexit.sh: New file.
55026         * tests/test-atexit.c: New file.
55027
55028 2007-03-10  Bruno Haible  <bruno@clisp.org>
55029
55030         * tests/test-binary-io.sh: Use temporary filenames that are not so
55031         likely to clash with those of other tests (in a parallel make).
55032         * tests/test-binary-io.c: Likewise.
55033
55034 2007-03-10  Bruno Haible  <bruno@clisp.org>
55035
55036         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55037         fallback; use #error instead.
55038         Suggested by Simon Josefsson.
55039
55040 2007-03-10  Bruno Haible  <bruno@clisp.org>
55041
55042         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55043         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55044         first and the last.
55045
55046 2007-03-10  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55049
55050 2007-03-10  Bruno Haible  <bruno@clisp.org>
55051
55052         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55053         "make distcheck".
55054         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55055         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55056         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55057
55058 2007-03-10  Bruno Haible  <bruno@clisp.org>
55059
55060         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55061         variable.
55062         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55063         variable.
55064
55065 2007-03-09  Eric Blake  <ebb9@byu.net>
55066         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55067
55068         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55069         types are not being provided by gnulib.
55070         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55071         types are supported.
55072
55073 2007-03-10  Bruno Haible  <bruno@clisp.org>
55074
55075         * lib/stdio_.h (__attribute__): New macro.
55076         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55077         vsprintf): Specify __attribute__ __format__ for GCC.
55078         Suggested by Eric Blake.
55079
55080 2007-03-09  Bruno Haible  <bruno@clisp.org>
55081
55082         * modules/printf-posix-tests: New file.
55083         * tests/test-printf-posix.sh: New file.
55084         * tests/test-printf-posix.c: New file.
55085
55086         * modules/printf-posix: New file.
55087         * lib/printf.c: New file.
55088         * m4/printf-posix-rpl.m4: New file.
55089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55090         REPLACE_PRINTF.
55091         * lib/stdio_.h (printf): New declaration.
55092         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55093         ____strfmon____): New macros.
55094         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55095         REPLACE_PRINTF.
55096
55097 2007-03-09  Bruno Haible  <bruno@clisp.org>
55098
55099         * tests/test-vasnprintf-posix2.sh: New file.
55100         * tests/test-vasnprintf-posix2.c: New file.
55101         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55102         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55103         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55104
55105         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55106         a locale dependent decimal point, rather than always '.'.
55107
55108 2007-03-09  Eric Blake  <ebb9@byu.net>
55109
55110         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55111         spite of platforms like Tandem/NSK that define it to -1.
55112
55113 2007-03-08  Bruno Haible  <bruno@clisp.org>
55114
55115         * modules/vprintf-posix-tests: New file.
55116         * tests/test-vprintf-posix.sh: New file.
55117         * tests/test-vprintf-posix.c: New file.
55118         * tests/test-printf-posix.h: New file.
55119
55120         * modules/vprintf-posix: New file.
55121         * lib/vprintf.c: New file.
55122         * m4/vprintf-posix.m4: New file.
55123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55124         REPLACE_VPRINTF.
55125         * lib/stdio_.h (vprintf): New declaration.
55126         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55127         REPLACE_VPRINTF.
55128
55129 2007-03-08  Bruno Haible  <bruno@clisp.org>
55130
55131         * modules/fprintf-posix-tests: New file.
55132         * tests/test-fprintf-posix.sh: New file.
55133         * tests/test-fprintf-posix.c: New file.
55134
55135         * modules/fprintf-posix: New file.
55136         * lib/fprintf.c: New file.
55137         * m4/fprintf-posix.m4: New file.
55138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55139         REPLACE_FPRINTF.
55140         * lib/stdio_.h (fprintf): New declaration.
55141         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55142         REPLACE_FPRINTF.
55143
55144 2007-03-08  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/vfprintf-posix-tests: New file.
55147         * tests/test-vfprintf-posix.sh: New file.
55148         * tests/test-vfprintf-posix.c: New file.
55149         * tests/test-fprintf-posix.h: New file.
55150         * tests/test-fprintf-posix.out: New file.
55151
55152         * modules/vfprintf-posix: New file.
55153         * lib/vfprintf.c: New file.
55154         * m4/vfprintf-posix.m4: New file.
55155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55156         REPLACE_VFPRINTF.
55157         * lib/stdio_.h (vfprintf): New declaration.
55158         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55159         REPLACE_VFPRINTF.
55160
55161 2007-03-08  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55164
55165 2007-03-08  Bruno Haible  <bruno@clisp.org>
55166
55167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55168         instead of 'expr' invocations.
55169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55174         Suggested by Paul Eggert.
55175
55176 2007-03-08  Bruno Haible  <bruno@clisp.org>
55177
55178         * modules/fseterr-tests: New file.
55179         * tests/test-fseterr.c: New file.
55180
55181         * modules/fseterr: New file.
55182         * lib/fseterr.h: New file.
55183         * lib/fseterr.c: New file.
55184
55185 2007-03-08  Bruno Haible  <bruno@clisp.org>
55186
55187         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55188         * lib/getopt_.h: Likewise.
55189         * lib/mbswidth.h: Likewise.
55190         * lib/setenv.h: Likewise.
55191         * lib/vasnprintf.h: Likewise.
55192         * lib/vasprintf.h: Likewise.
55193         * lib/verror.h: Likewise.
55194         * lib/xsetenv.h: Likewise.
55195         * lib/xvasprintf.h: Likewise.
55196
55197 2007-03-08  Jim Meyering  <jim@meyering.net>
55198
55199         * users.txt: Add parted.
55200
55201         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55202
55203 2007-03-07  Bruno Haible  <bruno@clisp.org>
55204
55205         * m4/printf.m4: Make the shell script snippets copy&pastable.
55206
55207 2007-03-02  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/netinet_in_.h: New file.
55210         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55211         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55212         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55213         (Depends-on): Add absolute-header.
55214         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55215         into netinet/in.h.
55216
55217 2007-03-03  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/sys_select_.h: New file.
55220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55221         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55222         * modules/sys_select (Files): Add lib/sys_select_.h.
55223         (Depends-on): Add absolute-header.
55224         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55225         into sys/select.h.
55226
55227 2007-03-02  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55230         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55231         values.
55232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55233         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55234         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55235         * modules/sys_socket (Depends-on): Add absolute-header.
55236         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55237         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55238         (Include): Remove requirement of inclusion of <sys/types.h>.
55239
55240 2007-03-02  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/byteswap_.h (bswap_32): Fix formula.
55243
55244 2007-03-06  Bruno Haible  <bruno@clisp.org>
55245
55246         * modules/sprintf-posix-tests: New file.
55247         * tests/test-sprintf-posix.c: New file.
55248
55249         * modules/sprintf-posix: New file.
55250         * lib/sprintf.c: New file.
55251         * m4/sprintf-posix.m4: New file.
55252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55253         REPLACE_SPRINTF.
55254         * lib/stdio_.h (sprintf): New declaration.
55255         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55256         REPLACE_SPRINTF.
55257
55258 2007-03-06  Bruno Haible  <bruno@clisp.org>
55259
55260         * modules/vsprintf-posix-tests: New file.
55261         * tests/test-vsprintf-posix.c: New file.
55262         * tests/test-sprintf-posix.h: New file.
55263
55264         * modules/vsprintf-posix: New file.
55265         * lib/vsprintf.c: New file.
55266         * m4/vsprintf-posix.m4: New file.
55267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55268         REPLACE_VSPRINTF.
55269         * lib/stdio_.h (vsprintf): New declaration.
55270         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55271         REPLACE_VSPRINTF.
55272
55273 2007-03-06  Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/vsnprintf (Depend-on): Remove minmax.
55276
55277 2007-03-06  Bruno Haible  <bruno@clisp.org>
55278
55279         * modules/snprintf-posix-tests: New file.
55280         * tests/test-snprintf-posix.c: New file.
55281
55282         * modules/snprintf-posix: New file.
55283         * m4/snprintf-posix.m4: New file.
55284         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55285         gl_FUNC_SNPRINTF.
55286         (gl_FUNC_SNPRINTF): Invoke it.
55287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55288         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55289         is set.
55290         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55291
55292 2007-03-06  Bruno Haible  <bruno@clisp.org>
55293
55294         * modules/vsnprintf-posix-tests: New file.
55295         * tests/test-vsnprintf-posix.c: New file.
55296         * tests/test-snprintf-posix.h: New file.
55297
55298         * modules/vsnprintf-posix: New file.
55299         * m4/vsnprintf-posix.m4: New file.
55300         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55301         gl_FUNC_VSNPRINTF.
55302         (gl_FUNC_VSNPRINTF): Invoke it.
55303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55304         * lib/stdio_.h (vsnprintf): Define as a replacement if
55305         REPLACE_VSNPRINTF is set.
55306         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55307
55308 2007-03-06  Bruno Haible  <bruno@clisp.org>
55309
55310         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55311         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55312
55313 2007-03-06  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55316         (asinl): Declare also if HAVE_DECL_ASINL is set.
55317         (atanl): Declare also if HAVE_DECL_ATANL is set.
55318         (ceill): Declare also if HAVE_DECL_CEILL is set.
55319         (cosl): Declare also if HAVE_DECL_COSL is set.
55320         (expl): Declare also if HAVE_DECL_EXPL is set.
55321         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55322         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55323         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55324         (logl): Declare also if HAVE_DECL_LOGL is set.
55325         (sinl): Declare also if HAVE_DECL_SINL is set.
55326         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55327         (tanl): Declare also if HAVE_DECL_TANL is set.
55328         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55330         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55331         declaration of frexpl, ldexpl.
55332         * modules/printf-frexpl (Depends-on): Add math.
55333         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55334
55335 2007-03-05  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55338         frexpl and ldexpl are declared.
55339         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55340
55341 2007-03-05  Bruno Haible  <bruno@clisp.org>
55342
55343         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55344         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55345
55346 2007-03-05  Bruno Haible  <bruno@clisp.org>
55347
55348         * lib/stdio_.h: Include <stddef.h>.
55349
55350 2007-03-05  Bruno Haible  <bruno@clisp.org>
55351
55352         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55353
55354 2007-03-05  Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55357         NetBSD 4, from Ralf Wildenhues.
55358
55359 2007-03-04  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/vasprintf.h: Update #if logic for the case when the functions
55362         exist but are overridden.
55363
55364 2007-03-04  Bruno Haible  <bruno@clisp.org>
55365
55366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55367         implementations: glibc-2.4 and MacOS X 10.3.
55368         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55369         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55370         * tests/test-vasprintf-posix.c (test_function): Likewise.
55371
55372 2007-03-04  Bruno Haible  <bruno@clisp.org>
55373
55374         * modules/vasprintf-posix-tests: New file.
55375         * tests/test-vasprintf-posix.c: New file.
55376
55377         * modules/vasprintf-posix: New file.
55378         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55379         defined.
55380         * m4/vasprintf-posix.m4: New file.
55381         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55382         gl_FUNC_VASPRINTF.
55383         (gl_FUNC_VASPRINTF): Invoke it.
55384         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55385         here.
55386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55387
55388 2007-03-04  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55391         REPLACE_GETTIMEOFDAY.
55392         * modules/sys_time (Makefile.am): Likewise.
55393         * m4/sys_time_h.m4: Likewise.
55394         * m4/gettimeofday.m4: Likewise.
55395
55396 2007-03-04  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/vasnprintf-posix-tests: New file.
55399         * tests/test-vasnprintf-posix.c: New file.
55400
55401         * modules/vasnprintf-posix: New file.
55402         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55403         printf-frexpl.h.
55404         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55405         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55406         REPLACE_VASNPRINTF is defined.
55407         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55408         gl_FUNC_VASNPRINTF.
55409         (gl_FUNC_VASNPRINTF): Invoke it.
55410         * m4/vasnprintf-posix.m4: New file.
55411         * m4/printf.m4: New file.
55412
55413 2007-03-04  Bruno Haible  <bruno@clisp.org>
55414
55415         Compile progreloc.c only if --enable-relocatable is specified.
55416         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55417         if --enable-relocatable was specified.
55418         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55419         lib_SOURCES.
55420
55421 2007-03-04  Jim Meyering  <jim@meyering.net>
55422
55423         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55424         Use it consistently, rather than enumerating errno constants.
55425
55426 2007-03-04  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/xvasprintf-tests: New file.
55429         * tests/test-xvasprintf.c: New file.
55430
55431         * modules/vasprintf-tests: New file.
55432         * tests/test-vasprintf.c: New file.
55433
55434         * modules/vasnprintf-tests: New file.
55435         * tests/test-vasnprintf.c: New file.
55436
55437         * modules/vsnprintf-tests: New file.
55438         * tests/test-vsnprintf.c: New file.
55439
55440         * modules/snprintf-tests: New file.
55441         * tests/test-snprintf.c: New file.
55442
55443 2007-03-04  Bruno Haible  <bruno@clisp.org>
55444
55445         Compile relocatable.c only if --enable-relocatable is specified.
55446         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55447         gl_RELOCATABLE_LIBRARY.
55448         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55449         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55450         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55451         gl_RELOCATABLE_LIBRARY.
55452         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55453         (Makefile.am): Remove lib_SOURCES.
55454         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55455         gl_RELOCATABLE_LIBRARY.
55456         (Makefile.am): Remove lib_SOURCES.
55457         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55458         always.
55459         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55460         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55461
55462 2007-03-04  Bruno Haible  <bruno@clisp.org>
55463
55464         * modules/argmatch-tests: New file.
55465         * tests/test-argmatch.c: New file.
55466
55467         * tests/test-allocsa.c (main): Halve the number of loop runs.
55468
55469         * modules/alloca-opt-tests: New file.
55470         * tests/test-alloca-opt.c: New file.
55471
55472 2007-03-04  Jim Meyering  <jim@meyering.net>
55473
55474         Work around difference between Linux ACLs and Solaris 10 ZFS.
55475         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55476         for EINVAL.
55477
55478 2007-03-03  Bruno Haible  <bruno@clisp.org>
55479
55480         * modules/relocatable-prog (Depends-on): Add back progreloc's
55481         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55482
55483 2007-03-03  Bruno Haible  <bruno@clisp.org>
55484
55485         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55486         * modules/relocatable-lib: New file.
55487
55488 2007-03-03  Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/relocatable-prog: Renamed from modules/relocatable.
55491         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55492
55493 2007-03-03  Bruno Haible  <bruno@clisp.org>
55494
55495         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55496         m4/relocatable-lib.m4.
55497         (Depends-on): Remove 'relocatable'.
55498         (configure.ac): Add gl_RELOCATABLE_NOP.
55499
55500 2007-03-03  Bruno Haible  <bruno@clisp.org>
55501
55502         * modules/relocatable-prog-wrapper: New file.
55503         * modules/relocatable (Depends-on): Add it. Remove all other
55504         dependencies except progname.
55505         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55506
55507         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55508         (gl_FUNC_STRERROR): Nop.
55509         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55510
55511         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55512         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55513
55514         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55515         (gl_FUNC_READLINK): Update.
55516
55517         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55518
55519 2007-03-03  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55522         * modules/xreadlink (Depends-on): Add unistd.
55523         * modules/xreadlink-with-size (Depends-on): Likewise.
55524
55525 2007-03-03  Bruno Haible  <bruno@clisp.org>
55526
55527         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55528         extracted from gt_FUNC_SETENV.
55529         (gt_FUNC_SETENV): Remove macro.
55530         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55531         remove gt_FUNC_SETENV.
55532
55533 2007-03-03  Bruno Haible  <bruno@clisp.org>
55534
55535         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55536         ENABLE_RELOCATABLE here.
55537         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55538
55539 2007-03-03  Bruno Haible  <bruno@clisp.org>
55540
55541         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55542         * tests/test-rbtreehash_list.c: Include progname.h.
55543         (main): Call set_program_name.
55544
55545         * modules/rbtree-oset-tests (Depends-on): Add progname.
55546         * tests/test-rbtree_oset.c: Include progname.h.
55547         (main): Call set_program_name.
55548
55549         * modules/rbtree-list-tests (Depends-on): Add progname.
55550         * tests/test-rbtree_list.c: Include progname.h.
55551         (main): Call set_program_name.
55552
55553         * modules/linked-list-tests (Depends-on): Add progname.
55554         * tests/test-linked_list.c: Include progname.h.
55555         (main): Call set_program_name.
55556
55557 2007-03-03  Bruno Haible  <bruno@clisp.org>
55558
55559         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55560         All uses of __restrict changed to _Restrict_.
55561         * lib/glob_.h (__restrict): Remove macro.
55562
55563 2007-03-02  Bruno Haible  <bruno@clisp.org>
55564
55565         * modules/gettext (configure.ac): Require gettext infrastructure
55566         from version 0.16.1.
55567
55568 2007-03-02  Bruno Haible  <bruno@clisp.org>
55569
55570         * modules/linkedhash-list-tests (Depends-on): Add progname.
55571         * tests/test-linkedhash_list.c: Include progname.h.
55572         (main): Call set_program_name.
55573
55574         * modules/carray-list-tests (Depends-on): Add progname.
55575         * tests/test-carray_list.c: Include progname.h.
55576         (main): Call set_program_name.
55577
55578         * modules/avltreehash-list-tests (Depends-on): Add progname.
55579         * tests/test-avltreehash_list.c: Include progname.h.
55580         (main): Call set_program_name.
55581
55582         * modules/avltree-oset-tests (Depends-on): Add progname.
55583         * tests/test-avltree_oset.c: Include progname.h.
55584         (main): Call set_program_name.
55585
55586         * modules/avltree-list-tests (Depends-on): Add progname.
55587         * tests/test-avltree_list.c: Include progname.h.
55588         (main): Call set_program_name.
55589
55590         * modules/array-oset-tests (Depends-on): Add progname.
55591         * tests/test-array_oset.c: Include progname.h.
55592         (main): Call set_program_name.
55593
55594         * modules/array-list-tests (Depends-on): Add progname.
55595         * tests/test-array_list.c: Include progname.h.
55596         (main): Call set_program_name.
55597
55598         * modules/argp-tests (Depends-on): Add progname.
55599         * tests/test-argp.c: Include argp.h first. Include progname.h.
55600         (main): Call set_program_name.
55601
55602 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         * doc/gnulib-tool.texi (Initial import): Reword description of
55605         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55606         limited effect even if defined after the first system include.
55607
55608 2007-03-01  Bruno Haible  <bruno@clisp.org>
55609
55610         * build-aux/config.libpath: Update to libtool-1.5.22.
55611         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55612
55613 2007-03-01  Bruno Haible  <bruno@clisp.org>
55614
55615         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55616         foo_CFLAGS.
55617         Reported by Ralf Wildenhues.
55618
55619 2007-03-01  Bruno Haible  <bruno@clisp.org>
55620
55621         * build-aux/install-reloc: Remove object files left over by some
55622         compilers.
55623         Reported by Ralf Wildenhues.
55624
55625 2007-03-01  Bruno Haible  <bruno@clisp.org>
55626
55627         * build-aux/install-reloc: Break long lines.
55628
55629 2007-03-01  Bruno Haible  <bruno@clisp.org>
55630
55631         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55632         Reported by Ralf Wildenhues.
55633
55634 2007-03-01  Bruno Haible  <bruno@clisp.org>
55635
55636         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55637         include ordering constraints.
55638
55639 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55640
55641         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55643         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55644         as another example.
55645         * lib/time_.h: Fix misspelling.
55646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55647         Require gl_HEADER_TIME_H_DEFAULTS.
55648         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55649         * m4/time_r.m4 (gl_TIME_R): Likewise.
55650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55651
55652 2007-03-01  Bruno Haible  <bruno@clisp.org>
55653
55654         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55655         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55656
55657 2007-03-01  Jim Meyering  <jim@meyering.net>
55658
55659         * modules/xreadlink (Maintainer): Add my name.
55660         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55661
55662 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55663             Bruno Haible  <bruno@clisp.org>
55664
55665         * build-aux/install-reloc: Compile also c-ctype.c.
55666         * build-aux/relocatable.sh.in: New file.
55667         * doc/relocatable.texi: New file.
55668         * doc/relocatable-maint.texi: New file.
55669         * doc/gnulib.texi: Include relocatable-maint.texi.
55670         * lib/progreloc.c: Include unistd.h unconditionally.
55671         * lib/relocwrapper.c: Include unistd.h unconditionally.
55672         Include c-ctype.h.
55673         (add_dotbin): Use c_tolower.
55674         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55675         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55676         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55677         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55678         to m4/relocatable-lib.m4.
55679         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55680         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55681         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55682         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55683         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55684         * modules/relocatable: New file.
55685         * modules/relocatable-lib: New file.
55686         * modules/relocatable-script: New file.
55687
55688 2007-02-28  Bruno Haible  <bruno@clisp.org>
55689
55690         Import --enable-relocatable infrastructure.
55691         * build-aux/config.libpath: New file, from GNU gettext.
55692         * build-aux/install-reloc: New file, from GNU gettext.
55693         * build-aux/reloc-ldflags: New file, from GNU gettext.
55694         * lib/relocatable.h: New file, from GNU gettext.
55695         * lib/relocatable.c: New file, from GNU gettext.
55696         * lib/relocwrapper.c: New file, from GNU gettext.
55697         * m4/relocatable.m4: New file, from GNU gettext.
55698
55699 2007-02-28  Bruno Haible  <bruno@clisp.org>
55700
55701         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55702
55703         * modules/xreadlink: New file, from GNU gettext with modifications.
55704         * lib/xreadlink.c: New file, from GNU gettext.
55705         * lib/xreadlink.h: Add comments.
55706         (xreadlink): New declaration.
55707
55708         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55709         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55710         lib/xreadlink-with-size.c.
55711         (configure.ac): Remove gl_XREADLINK invocation.
55712         (Makefile.am): Augment lib_SOURCES.
55713         * m4/xreadlink.m4: Remove file.
55714         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55715         (xreadlink_with_size): Renamed from xreadink.
55716         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55717         * modules/canonicalize (Depends-on): Replace xreadlink with
55718         xreadlink-with-size.
55719         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55720
55721 2007-02-25  Jim Meyering  <jim@meyering.net>
55722
55723         * build-aux/announce-gen: When complaining about excess arguments,
55724         list them.
55725
55726 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55727
55728         * README: Document signed integer overflow situation more
55729         accurately.
55730
55731 2007-02-25  Bruno Haible  <bruno@clisp.org>
55732
55733         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55734         'a' or 'A' conversion.
55735
55736 2007-02-25  Bruno Haible  <bruno@clisp.org>
55737
55738         * modules/filename: Renamed from modules/pathname.
55739         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55740         lib/concatpath.c with lib/concat-filename.c.
55741         (Makefile.am): Update.
55742         (Include): Replace pathname.h with filename.h.
55743         * lib/filename.h: Renamed from lib/pathname.h.
55744         (concatenated_filename): Renamed from concatenated_pathname.
55745         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55746         (concatenated_filename): Renamed from concatenated_pathname.
55747         * lib/findprog.c: Include filename.h instead of pathname.h.
55748         (find_in_path): Update.
55749         * lib/javacomp.c: Include filename.h instead of pathname.h.
55750         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55751         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55752         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55753         is_oldgcj_14_13_usable, is_javac_usable): Update.
55754         * lib/javaexec.c: Include filename.h instead of pathname.h.
55755         (execute_java_class): Update.
55756         * modules/findprog: Update.
55757         * modules/javacomp: Update.
55758         * modules/javaexec: Update.
55759         * MODULES.html.sh (File system functions): Add 'filename', remove
55760         'pathname'.
55761
55762 2007-02-25  Bruno Haible  <bruno@clisp.org>
55763
55764         * modules/printf-frexpl-tests: New file.
55765         * tests/test-printf-frexpl.c: New file.
55766
55767         * modules/printf-frexpl: New file.
55768         * lib/printf-frexpl.h: New file.
55769         * lib/printf-frexpl.c: New file.
55770         * m4/printf-frexpl.m4: New file.
55771
55772 2007-02-25  Bruno Haible  <bruno@clisp.org>
55773
55774         * modules/printf-frexp-tests: New file.
55775         * tests/test-printf-frexp.c: New file.
55776
55777         * modules/printf-frexp: New file.
55778         * lib/printf-frexp.h: New file.
55779         * lib/printf-frexp.c: New file.
55780         * m4/printf-frexp.m4: New file.
55781
55782 2007-02-25  Bruno Haible  <bruno@clisp.org>
55783
55784         Assume automake >= 1.10 for the tests.
55785         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55786         * modules/arctwo-tests: Likewise.
55787         * modules/argp-tests: Likewise.
55788         * modules/avltree-list-tests: Likewise.
55789         * modules/avltree-oset-tests: Likewise.
55790         * modules/avltreehash-list-tests: Likewise.
55791         * modules/carray-list-tests: Likewise.
55792         * modules/crc-tests: Likewise.
55793         * modules/des-tests: Likewise.
55794         * modules/gc-arcfour-tests: Likewise.
55795         * modules/gc-arctwo-tests: Likewise.
55796         * modules/gc-des-tests: Likewise.
55797         * modules/gc-hmac-md5-tests: Likewise.
55798         * modules/gc-hmac-sha1-tests: Likewise.
55799         * modules/gc-md2-tests: Likewise.
55800         * modules/gc-md4-tests: Likewise.
55801         * modules/gc-md5-tests: Likewise.
55802         * modules/gc-pbkdf2-sha1-tests: Likewise.
55803         * modules/gc-rijndael-tests: Likewise.
55804         * modules/gc-sha1-tests: Likewise.
55805         * modules/gc-tests: Likewise.
55806         * modules/getaddrinfo-tests: Likewise.
55807         * modules/hmac-md5-tests: Likewise.
55808         * modules/hmac-sha1-tests: Likewise.
55809         * modules/linked-list-tests: Likewise.
55810         * modules/linkedhash-list-tests: Likewise.
55811         * modules/lock-tests: Likewise.
55812         * modules/md2-tests: Likewise.
55813         * modules/md4-tests: Likewise.
55814         * modules/md5-tests: Likewise.
55815         * modules/rbtree-list-tests: Likewise.
55816         * modules/rbtree-oset-tests: Likewise.
55817         * modules/rbtreehash-list-tests: Likewise.
55818         * modules/read-file-tests: Likewise.
55819         * modules/rijndael-tests: Likewise.
55820         * modules/stdint-tests: Likewise.
55821         * modules/tls-tests: Likewise.
55822
55823 2007-02-24  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55826         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55827         function; instead check whether isnan with a double argument links.
55828         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55829         function; instead check whether isnan with a 'long double' argument
55830         links.
55831         Reported by Eric Blake <ebb9@byu.net>.
55832
55833 2007-02-24  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55836         defined.
55837         * lib/isnanl.c: Remove all code. Just include isnan.c.
55838         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55839
55840 2007-02-25  Jim Meyering  <jim@meyering.net>
55841
55842         Avoid conflicting types for 'unsetenv' on FreeBSD.
55843         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55844         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55845         in stdlib.h.
55846
55847 2007-02-24  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/isnanl-nolibm-tests: New file.
55850         * tests/test-isnanl.c: New file.
55851
55852         * modules/isnanl-nolibm: New file.
55853         * lib/isnanl.h: New file.
55854         * lib/isnanl.c: New file.
55855         * m4/isnanl.m4: New file.
55856
55857 2007-02-24  Bruno Haible  <bruno@clisp.org>
55858
55859         * modules/isnan-nolibm-tests: New file.
55860         * tests/test-isnan.c: New file.
55861
55862         * modules/isnan-nolibm: New file.
55863         * lib/isnan.h: New file.
55864         * lib/isnan.c: New file.
55865         * m4/isnan.m4: New file.
55866
55867 2007-02-24  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55870         assume that an exponent fits in 20 bits.
55871
55872 2007-02-24  Jim Meyering  <jim@meyering.net>
55873
55874         * m4/regex.m4: Update the description of the configure-time option,
55875         --without-included-regex, to state accurately what the defaults are,
55876         and perhaps to give people an idea why using this option is risky.
55877
55878 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55881         loops on small arguments.  This attempts to avoid the problem
55882         Bruno Haible reported for AIX 4.3.2 in
55883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55884
55885 2007-02-23  Bruno Haible  <bruno@clisp.org>
55886
55887         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55888         Needed for help2man.
55889
55890 2007-02-23  Karl Berry  <karl@gnu.org>
55891
55892         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55893         exists, foo.h should be cvs-ignored, not committed.
55894
55895 2007-02-23  Eric Blake  <ebb9@byu.net>
55896
55897         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55898         * lib/stat-time.h (includes): Likewise.
55899         * lib/utimecmp.c (includes): Likewise.
55900         * lib/utimens.h (includes): Likewise.
55901         * lib/getdate.y (includes): Also include "timespec.h" for use
55902         internal to the module.
55903         * modules/utimens (Depends-on): Revert yesterday's patch.
55904         * modules/nanosleep (Depends-on): Add missing dependency.
55905
55906 2007-02-22  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/glob.c: Don't include getlogin_r.h.
55909
55910 2007-02-22  Jim Meyering  <jim@meyering.net>
55911
55912         * modules/utimens (Depends-on): Add timespec, required for
55913         utimens.h's inclusion of timespec.h.
55914
55915 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55918         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55919         Schwab in
55920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55921         I'll try to think of a better way to fix the Solaris problem.
55922
55923         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55924         like glibc; on Solaris 10, it fails with errno == EINVAL.
55925         POSIX says the behavior is unspecified if the first argument is NULL,
55926         so play it safe and never pass NULL to the system getcwd.
55927
55928 2007-02-21  Jim Meyering  <jim@meyering.net>
55929
55930         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55931         of gettimeofday.  It would conflict with the one now always
55932         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55933         an IRIX 6.5 build failure.
55934
55935 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55936
55937         Minor fixups to port to Solaris 10 with Sun C 5.8.
55938         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55939         * modules/getcwd (Depends-on): Add dirfd.
55940         * lib/putenv.c (putenv): #undef it.
55941         (rpl_putenv): New decl.
55942         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55943
55944 2007-02-20  Bruno Haible  <bruno@clisp.org>
55945
55946         * modules/stdio-tests: New file.
55947         * tests/test-stdio.c: New file.
55948
55949         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55950         (Depends-on): Add stdio.
55951         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55952         (Include): Use <stdio.h> instead of vsnprintf.h.
55953         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55954         HAVE_DECL_VSNPRINTF.
55955         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55956
55957         * modules/snprintf (Files): Remove lib/snprintf.h.
55958         (Depends-on): Add stdio.
55959         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55960         (Include): Use <stdio.h> instead of snprintf.h.
55961         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55962         HAVE_DECL_SNPRINTF.
55963         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55964         * lib/getaddrinfo.c: Likewise.
55965
55966         * modules/stdio: New file.
55967         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55968         * lib/snprintf.h: Remove file.
55969         * lib/vsnprintf.h: Remove file.
55970         * lib/.cppi-disable: Remove snprintf.h.
55971         * m4/stdio_h.m4: New file.
55972         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55973
55974 2007-02-20  Jim Meyering  <jim@meyering.net>
55975
55976         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55977         used by e.g., mingw.  From Bruno Haible.
55978
55979 2007-02-19  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55982         warnings.
55983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55984
55985 2007-02-19  Bruno Haible  <bruno@clisp.org>
55986
55987         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55988         from mingw users.
55989
55990 2007-02-19  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55993         warnings.
55994         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55995
55996 2007-02-19  Jim Meyering  <jim@meyering.net>
55997
55998         Don't use FD after a successful "fdopendir (fd)".
55999         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56000         Reset it by calling dirfd on the just-obtained DIR*.
56001
56002         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56003         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56004
56005 2007-02-18  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/readlink.c: Include <unistd.h>.
56008         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56009         HAVE_READLINK.
56010         * modules/readlink (Depends-on): Add unistd.
56011         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56012         (Include): Add <unistd.h>.
56013
56014         * lib/getlogin_r.h: Remove file.
56015         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56016         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56017         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56018         HAVE_DECL_GETLOGIN_R.
56019         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56021         (Include): Use <unistd.h> instead of getlogin_r.h.
56022
56023         * lib/getcwd.h: Remove file.
56024         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56025         * lib/xgetcwd.c: Likewise.
56026         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56027         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56028         * modules/getcwd (Files): Remove lib/getcwd.h.
56029         (Depends-on): Add unistd.
56030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56031         (Include): Use <unistd.h> instad of getcwd.h.
56032
56033         * lib/ftruncate.c: Include <unistd.h> first.
56034         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56035         Set HAVE_FTRUNCATE.
56036         * modules/ftruncate (Depends-on): Add unistd.
56037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56038
56039         * lib/fchdir.c: Include <unistd.h> first.
56040         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56042         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56043         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56044         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56045
56046         * lib/dup2.c: Include <unistd.h> first.
56047         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56048         HAVE_DUP2.
56049         * modules/dup2 (Depends-on): Add unistd.
56050         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56051
56052         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56053         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56054         REPLACE_CHOWN. Don't define chown as a macro here.
56055         * modules/chown (Depends-on): Add unistd.
56056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56057
56058         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56059         Add definition for GL_LINK_WARNING.
56060         (chown, dup2): New declarations.
56061         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56062         link warning.
56063         (ftruncate): New declaration.
56064         (getcwd): New declaration, taken from old getcwd.h.
56065         (getlogin_r): New declaration, taken from old getlogin_r.h.
56066         (readlink): New declaration.
56067         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56068         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56069         (gl_PREREQ_UNISTD): Remove macro.
56070         (gl_UNISTD_MODULE_INDICATOR): New macro.
56071         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56072         many new variables. Don't set UNISTD_H.
56073         * modules/unistd (Description): Change.
56074         (Depends-on): Add link-warning.
56075         (configure.ac): Update.
56076         (Makefile.am): Create unistd.h always. Substitute many new variables
56077         into it.
56078
56079 2007-02-18  Bruno Haible  <bruno@clisp.org>
56080
56081         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56082         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56083         HAVE_GETSUBOPT.
56084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56085         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56086         * lib/getsubopt.h: Remove file.
56087         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56088         (Depends-on): Add stdlib.
56089         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56090         (Includes): Use <stdlib.h> instead of getsubopt.h.
56091         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56092         Set HAVE_GETSUBOPT.
56093         * lib/getsubopt.c: Don't include getsubopt.h.
56094
56095 2007-02-18  Bruno Haible  <bruno@clisp.org>
56096
56097         * modules/fchdir (Depends-on): Add dup2.
56098
56099 2007-02-18  Bruno Haible  <bruno@clisp.org>
56100
56101         * lib/stdlib_.h: Handle glibc's special invocation convention
56102         specially.
56103
56104 2007-02-18  Bruno Haible  <bruno@clisp.org>
56105
56106         * modules/stdlib-tests: New file.
56107         * tests/test-stdlib.c: New file.
56108
56109         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56110         (Depends-on): Add stdlib.
56111         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56112         (Includes): Use <stdlib.h> instead of mkstemp.h.
56113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56114         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56115         * lib/mkstemp.c: Don't include mkstemp.h.
56116         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56117         * lib/stdlib--.h: Don't include mkstemp.h.
56118
56119         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56120         (Depends-on): Add stdlib.
56121         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56122         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56123         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56124         HAVE_MKDTEMP.
56125         * lib/mkdtemp.c: Don't include mkdtemp.h.
56126         * lib/clean-temp.c: Don't include mkdtemp.h.
56127
56128         * modules/exit (Files): Remove lib/exit.h.
56129         (Depends-on): Add stdlib.
56130         (Makefile.am): Remove lib_SOURCES.
56131         (Include): Use <stdlib.h> instead of exit.h.
56132         * lib/argmatch.c: Don't include exit.h.
56133         * lib/execute.c: Likewise.
56134         * lib/pagealign_alloc.c: Likewise.
56135         * lib/pipe.c: Likewise.
56136         * lib/wait-process.c: Likewise.
56137         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56138         * lib/exitfail.c: Likewise.
56139         * lib/savewd.c: Likewise.
56140         * lib/xsetenv.c: Likewise.
56141
56142         * modules/stdlib: New file.
56143         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56144         and extra comments about mkstemp().
56145         * lib/exit.h: Remove file.
56146         * lib/mkdtemp.h: Remove file.
56147         * lib/mkstemp.h: Remove file.
56148         * m4/stdlib_h.m4: New file.
56149         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56150
56151 2007-02-18  Bruno Haible  <bruno@clisp.org>
56152
56153         * modules/math-tests: New file.
56154         * tests/test-math.c: New file.
56155
56156         * modules/math: New file.
56157         * modules/mathl (Files): Remove lib/mathl.h.
56158         (Depends-on): Add math.
56159         (Makefile.am): Don't mention mathl.h.
56160         (Include): Use <math.h> instead of mathl.h.
56161         * lib/math_.h: New file.
56162         * lib/mathl.h: Remove file.
56163         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56164         mathl.h.
56165         * lib/asinl.c: Likewise.
56166         * lib/atanl.c: Likewise.
56167         * lib/ceill.c: Likewise.
56168         * lib/cosl.c: Likewise.
56169         * lib/expl.c: Likewise.
56170         * lib/floorl.c: Likewise.
56171         * lib/frexpl.c: Likewise.
56172         * lib/ldexpl.c: Likewise.
56173         * lib/logl.c: Likewise.
56174         * lib/sincosl.c: Likewise.
56175         * lib/sinl.c: Likewise.
56176         * lib/sqrtl.c: Likewise.
56177         * lib/tanl.c: Likewise.
56178         * lib/trigl.c: Likewise.
56179         * m4/math_h.m4: New file.
56180         * MODULES.html.sh (Mathematics): Add math.
56181
56182 2007-02-17  Bruno Haible  <bruno@clisp.org>
56183
56184         * modules/wctype-tests: New file.
56185         * tests/test-wctype.c: New file.
56186
56187         * modules/wchar-tests: New file.
56188         * tests/test-wchar.c: New file.
56189
56190         * modules/unistd-tests: New file.
56191         * tests/test-unistd.c: New file.
56192
56193         * modules/time-tests: New file.
56194         * tests/test-time.c: New file.
56195
56196         * modules/sysexits-tests: New file.
56197         * tests/test-sysexits.c: New file.
56198
56199         * modules/sys_time-tests: New file.
56200         * tests/test-sys_time.c: New file.
56201
56202         * modules/sys_stat-tests: New file.
56203         * tests/test-sys_stat.c: New file.
56204
56205         * modules/sys_socket-tests: New file.
56206         * tests/test-sys_socket.c: New file.
56207
56208         * modules/sys_select-tests: New file.
56209         * tests/test-sys_select.c: New file.
56210
56211         * modules/string-tests: New file.
56212         * tests/test-string.c: New file.
56213
56214         * modules/stdbool-tests: New file.
56215         * tests/test-stdbool.c: New file.
56216
56217         * modules/netinet_in-tests: New file.
56218         * tests/test-netinet_in.c: New file.
56219
56220         * modules/inttypes-tests: New file.
56221         * tests/test-inttypes.c: New file.
56222
56223         * modules/fcntl-tests: New file.
56224         * tests/test-fcntl.c: New file.
56225
56226         * modules/byteswap-tests: New file.
56227         * tests/test-byteswap.c: New file.
56228
56229         * modules/arpa_inet-tests: New file.
56230         * tests/test-arpa_inet.c: New file.
56231
56232 2007-02-17  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56235         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56236         if the corresponding module is not enabled. Emit link warnings if
56237         the function is used nevertheless.
56238         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56239         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56240         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56241         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56242         * modules/inttypes (Depends-on): Add link-warning.
56243         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56244         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56245         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56246         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56247         * modules/imaxdiv (configure.ac): Likewise.
56248         * modules/strtoimax (configure.ac): Likewise.
56249         * modules/strtoumax (configure.ac): Likewise.
56250
56251 2007-02-17  Bruno Haible  <bruno@clisp.org>
56252
56253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56254         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56255         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56256         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56257
56258 2007-02-17  Bruno Haible  <bruno@clisp.org>
56259
56260         * modules/link-warning: New file.
56261         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56262         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56263         * modules/string (Depends-on): Add link-warning.
56264         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56265         string.h.
56266         * MODULES.html.sh (Support for building libraries and executables): Add
56267         link-warning.
56268
56269 2007-02-17  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56272         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56273         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56274         long lines.
56275
56276 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56277             Bruno Haible  <bruno@clisp.org>
56278
56279         * modules/tmpfile: New file.
56280         * lib/tmpfile.c: New file.
56281         * m4/tmpfile.m4: New file.
56282         * MODULES.html.sh (func_all_modules): New section "Input/output".
56283
56284 2007-02-15  Bruno Haible  <bruno@clisp.org>
56285
56286         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56287         (supports_delete_on_close): New function.
56288         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56289
56290 2007-02-14  Bruno Haible  <bruno@clisp.org>
56291
56292         * modules/mbspcasecmp-tests: New file.
56293         * tests/test-mbspcasecmp.sh: New file.
56294         * tests/test-mbspcasecmp.c: New file.
56295
56296         New module mbspcasecmp.
56297         * modules/mbspcasecmp: New file.
56298         * lib/mbspcasecmp.c: New file.
56299         * lib/string_.h (strncasecmp): Change warning message.
56300         (mbspcasecmp): New declaration.
56301         * m4/mbspcasecmp.m4: New file.
56302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56303         GNULIB_MBSPCASECMP.
56304         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56305         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56306
56307 2007-02-14  Bruno Haible  <bruno@clisp.org>
56308
56309         * modules/mbsncasecmp-tests: New file.
56310         * tests/test-mbsncasecmp.sh: New file.
56311         * tests/test-mbsncasecmp.c: New file.
56312
56313         New module mbsncasecmp.
56314         * modules/mbsncasecmp: New file.
56315         * lib/mbsncasecmp.c: New file.
56316         * lib/string_.h (mbsncasecmp): New declaration.
56317         * m4/mbsncasecmp.m4: New file.
56318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56319         GNULIB_MBSNCASECMP.
56320         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56321         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56322
56323 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56324
56325         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56326         Verify that it doesn't overlap with our flags.
56327         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56328         do not have the desired effect in multibyte locales; instead, use
56329         mbscasecmp.
56330         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56331         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56332         we don't require GNU fnmatch ourselves (if our users require it, they
56333         should do so explicitly).
56334
56335         Fix regex code so it doesn't rely on strcasecmp.
56336         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56337         Otherwise, include gnulib's langinfo.h.
56338         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56339         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56340         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56341         * modules/regex (FILES): Remove m4/codeset.m4.
56342         (Depends-on): Add localcharset.  Remove strcase.
56343
56344 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56345
56346         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56347         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56348
56349 2007-02-13  Bruno Haible  <bruno@clisp.org>
56350
56351         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56353
56354 2007-02-12  Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56357         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56358         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56359         time warning rather than a link error.
56360
56361 2007-02-12  Bruno Haible  <bruno@clisp.org>
56362
56363         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56364         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56366
56367 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56368
56369         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56370         args, not 2.
56371
56372 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56373
56374         New module 'time', so that apps can include <time.h> as per
56375         POSIX and GNU instead of separate include files like time_r.h
56376         and timegm.h.  This implementation tries out a simpler approach
56377         for replacing decls in standard include files (as compared to
56378         the string module), somewhat as an experiment.
56379
56380         * config/srclist.txt: Comment out mktime.c for now.
56381         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56382         since it doesn't apply any more.  Use generic wording instead.
56383         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56384         'time'.
56385         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56386         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56387         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56388         Don't include <sys/types.h>; no longer needed since we assume C89.
56389         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56390         * lib/strftime.c: Likewise.
56391         * lib/time_r.c: Likewise.
56392         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56393         * lib/nanosleep.c: Include <time.h> first, to check interface.
56394         * lib/strptime.c: Likewise.
56395         * lib/time_r.c: Likewise.
56396         * lib/timegm.c: Likewise.
56397         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56398         needed.
56399         * lib/timegm.c: Don't include timegm.h; no longer needed.
56400         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56401         time.h now handles any problems in that area.
56402         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56403         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56404         that time.h defines struct timespec.
56405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56406         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56407         handles that.
56408         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56409         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56410         needed.  Set REPLACE_LOCALTIME.
56411         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56412         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56413         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56414         nanosleep; time_h.m4 now does that.  Don't require
56415         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56416         module handles this now.
56417         * modules/getdate (Depends-on): Remove timespec.  Add time.
56418         * modules/nanosleep (Depends-on): Likewise.
56419         * modules/stat-time (Depends-on): Likewise.
56420         * modules/nanosleep (Include): Include time.h, not timespec.h.
56421         * modules/strptime (Files): Remove lib/strptime.h.
56422         (Depends-on): Add extensions, time.
56423         (Include): Include time.h, not strptime.h.
56424         * modules/time_r (Files): Remove lib/time_r.h.
56425         (Depends-on): Add time.
56426         (Include): Include time.h, not time_r.h.
56427         * modules/timegm: Likewise.
56428         * modules/timespec (Description): Now does timespec-related decls
56429         of our own, instead of struct timespec itself.
56430         (Depends-on): Add time; remove extensions.
56431         (Maintainer): Add self.
56432         * modules/utimecmp (Depends-on): Add time; remove timespec.
56433         * modules/utimens (Depends-on): Likewise.
56434         * modules/xnanosleep (Depends-on): Likewise.
56435
56436 2007-02-11  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/c-strstr.c: Include allocsa.h.
56439         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56440         * lib/c-strcasestr.c: Include allocsa.h.
56441         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56442         * lib/strcasestr.c: Include allocsa.h.
56443         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56444         * lib/mbsstr.c: Include allocsa.h.
56445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56446         allocsa/freesa instead of malloc/free.
56447         * lib/mbscasestr.c: Include allocsa.h.
56448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56449         allocsa/freesa instead of malloc/free.
56450         * modules/c-strstr (Depends-on): Add allocsa.
56451         * modules/c-strcasestr (Depends-on): Likewise.
56452         * modules/strcasestr (Depends-on): Likewise.
56453         * modules/mbsstr (Depends-on): Likewise.
56454         * modules/mbscasestr (Depends-on): Likewise.
56455
56456 2007-02-11  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56459
56460         * modules/mbsspn-tests: New file.
56461         * tests/test-mbsspn.sh: New file.
56462         * tests/test-mbsspn.c: New file.
56463
56464 2007-02-11  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56467
56468         * modules/mbspbrk-tests: New file.
56469         * tests/test-mbspbrk.sh: New file.
56470         * tests/test-mbspbrk.c: New file.
56471
56472 2007-02-11  Bruno Haible  <bruno@clisp.org>
56473
56474         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56475         unneeded cast.
56476
56477         * modules/mbscspn-tests: New file.
56478         * tests/test-mbscspn.sh: New file.
56479         * tests/test-mbscspn.c: New file.
56480
56481 2007-02-11  Bruno Haible  <bruno@clisp.org>
56482
56483         * modules/mbscasecmp-tests: New file.
56484         * tests/test-mbscasecmp.sh: New file.
56485         * tests/test-mbscasecmp.c: New file.
56486
56487 2007-02-11  Bruno Haible  <bruno@clisp.org>
56488
56489         Ensure O(n) worst-case complexity of mbscasestr.
56490         * lib/mbscasestr.c: Include stdbool.h.
56491         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56492         functions.
56493         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56494         the bookkeeping indicates that it's worth it.
56495         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56496
56497         * modules/mbscasestr-tests: New file.
56498         * tests/test-mbscasestr1.c: New file.
56499         * tests/test-mbscasestr2.sh: New file.
56500         * tests/test-mbscasestr2.c: New file.
56501         * tests/test-mbscasestr3.sh: New file.
56502         * tests/test-mbscasestr3.c: New file.
56503         * tests/test-mbscasestr4.sh: New file.
56504         * tests/test-mbscasestr4.c: New file.
56505         * m4/locale-tr.m4: New file.
56506
56507 2007-02-11  Bruno Haible  <bruno@clisp.org>
56508
56509         Ensure O(n) worst-case complexity of mbsstr.
56510         * lib/mbsstr.c: Include stdbool.h.
56511         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56512         functions.
56513         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56514         bookkeeping indicates that it's worth it.
56515         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56516
56517         * modules/mbsstr-tests: New file.
56518         * tests/test-mbsstr1.c: New file.
56519         * tests/test-mbsstr2.sh: New file.
56520         * tests/test-mbsstr2.c: New file.
56521         * tests/test-mbsstr3.sh: New file.
56522         * tests/test-mbsstr3.c: New file.
56523         * m4/locale-fr.m4: New file.
56524
56525 2007-02-11  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/mbsrchr.c (mbsrchr): Fix bug.
56528
56529         * modules/mbsrchr-tests: New file.
56530         * tests/test-mbsrchr.sh: New file.
56531         * tests/test-mbsrchr.c: New file.
56532
56533 2007-02-11  Bruno Haible  <bruno@clisp.org>
56534
56535         * lib/mbschr.c (mbschr): Fix bug.
56536
56537         * modules/mbschr-tests: New file.
56538         * tests/test-mbschr.sh: New file.
56539         * tests/test-mbschr.c: New file.
56540         * m4/locale-zh.m4: New file.
56541
56542 2007-02-11  Bruno Haible  <bruno@clisp.org>
56543
56544         Support for copying multibyte string iterators.
56545         * lib/mbiter.h: Include <string.h>.
56546         (mbiter_multi_copy): New function.
56547         (mbi_copy): New macro.
56548         * lib/mbuiter.h: Include <string.h>.
56549         (mbuiter_multi_copy): New function.
56550         (mbui_copy): New macro.
56551
56552 2007-02-11  Bruno Haible  <bruno@clisp.org>
56553
56554         New module mbslen.
56555         * modules/mbslen: New file.
56556         * lib/mbslen.c: New file.
56557         * lib/string_.h (mbslen): New declaration.
56558         * m4/mbslen.m4: New file.
56559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56560         GNULIB_MBSLEN.
56561         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56562         * MODULES.html.sh (Internationalization functions): Add mbslen.
56563
56564 2007-02-11  Bruno Haible  <bruno@clisp.org>
56565
56566         Ensure O(n) worst-case complexity of strcasestr substitute.
56567         * lib/strcasestr.c: Include stdbool.h.
56568         (knuth_morris_pratt): New function.
56569         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56570         bookkeeping indicates that it's worth it.
56571         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56572
56573         * modules/strcasestr-tests: New file.
56574         * tests/test-strcasestr.c: New file.
56575
56576 2007-02-11  Bruno Haible  <bruno@clisp.org>
56577
56578         Ensure O(n) worst-case complexity of c_strcasestr.
56579         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56580         (knuth_morris_pratt): New function.
56581         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56582         the bookkeeping indicates that it's worth it.
56583         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56584
56585         * modules/c-strcasestr-tests: New file.
56586         * tests/test-c-strcasestr.c: New file.
56587
56588 2007-02-11  Bruno Haible  <bruno@clisp.org>
56589
56590         Ensure O(n) worst-case complexity of c_strstr.
56591         * lib/c-strstr.c: Include stdbool.h, string.h.
56592         (knuth_morris_pratt): New function.
56593         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56594         bookkeeping indicates that it's worth it.
56595         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56596
56597         * lib/c-strstr.c: Complete rewrite for maintainability.
56598
56599         * modules/c-strstr-tests: New file.
56600         * tests/test-c-strstr.c: New file.
56601
56602 2007-02-11  Bruno Haible  <bruno@clisp.org>
56603
56604         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56605         5.2.1 and earlier, whereby \055 was treated just like the range
56606         delimiter '-'.
56607         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56608
56609 2007-02-08  Bruno Haible  <bruno@clisp.org>
56610
56611         * modules/regex (Depends-on): Add stdbool.
56612         Reported by Dalibor Topic <robilad@kaffe.org>.
56613
56614 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56615
56616         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56617         Prefer returning from main to exiting from it.
56618         Remove unnecessary parens after sizeof.
56619
56620 2007-02-05  Bruno Haible  <bruno@clisp.org>
56621
56622         New module mbssep.
56623         * modules/mbssep: New file.
56624         * lib/mbssep.c: New file.
56625         * lib/string_.h (strsep): Add a conditional link warning.
56626         (mbssep): New declaration.
56627         * m4/mbssep.m4: New file.
56628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56629         GNULIB_MBSSEP.
56630         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56631         * MODULES.html.sh (Internationalization functions): Add mbssep.
56632
56633 2007-02-05  Bruno Haible  <bruno@clisp.org>
56634
56635         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56636         Optimize search in case of 1 delimiter.
56637
56638 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56639
56640         * lib/acl.h: Include sys/types.h before sys/acl.h.
56641
56642 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56643
56644         Merge upstream fix for glibc bugzilla #3957:
56645
56646         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56647
56648         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56649         bit for RE_HAT_LISTS_NOT_NEWLINE.
56650         (build_charclass_op): Remove bogus comment.
56651
56652 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56653
56654         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56655
56656 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56657
56658         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56659         * lib/memmem.c [!defined _LIBC]: Include config.h.
56660
56661 2007-02-04  Bruno Haible  <bruno@clisp.org>
56662
56663         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56664         warning message.
56665
56666 2007-02-04  Bruno Haible  <bruno@clisp.org>
56667
56668         New module mbstok_r.
56669         * modules/mbstok_r: New file.
56670         * lib/mbstok_r.c: New file.
56671         * lib/string_.h (strtok_r): Change argument names to match the
56672         comments. Add a conditional link warning.
56673         (mbstok_r): New declaration.
56674         * m4/mbstok_r.m4: New file.
56675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56676         GNULIB_MBSTOK_R.
56677         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56678         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56679
56680 2007-02-04  Bruno Haible  <bruno@clisp.org>
56681
56682         New module mbsspn.
56683         * modules/mbsspn: New file.
56684         * lib/mbsspn.c: New file.
56685         * lib/string_.h (strspn): Add a conditional link warning.
56686         (mbsspn): New declaration.
56687         * m4/mbsspn.m4: New file.
56688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56689         GNULIB_MBSSPN.
56690         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56691         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56692
56693 2007-02-04  Bruno Haible  <bruno@clisp.org>
56694
56695         New module mbspbrk.
56696         * modules/mbspbrk: New file.
56697         * lib/mbspbrk.c: New file.
56698         * lib/string_.h (strpbrk): Add a conditional link warning.
56699         (mbspbrk): New declaration.
56700         * m4/mbspbrk.m4: New file.
56701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56702         GNULIB_MBSPBRK.
56703         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56704         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56705
56706 2007-02-04  Bruno Haible  <bruno@clisp.org>
56707
56708         New module mbscspn.
56709         * modules/mbscspn: New file.
56710         * lib/mbscspn.c: New file.
56711         * lib/string_.h (strcspn): Add a conditional link warning.
56712         (mbscspn): New declaration.
56713         * m4/mbscspn.m4: New file.
56714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56715         GNULIB_MBSCSPN.
56716         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56717         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56718
56719 2007-02-04  Bruno Haible  <bruno@clisp.org>
56720
56721         New module mbscasestr, reduced goal of strcasestr.
56722         * modules/mbscasestr: New file.
56723         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56724         (mbscasestr): Renamed from strcasestr.
56725         * lib/strcasestr.c: Don't include mbuiter.h.
56726         (strcasestr): Remove support for multibyte locales.
56727         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56728         Change the conditional link warning.
56729         (mbscasestr): New declaration.
56730         * m4/mbscasestr.m4: New file.
56731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56732         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56733         REPLACE_STRCASESTR.
56734         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56736         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56737         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56738         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56739         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56740         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56741         (Depends-on): Remove mbuiter.
56742         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56743
56744 2007-02-04  Bruno Haible  <bruno@clisp.org>
56745
56746         Simplify handling of strncasecmp.
56747         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56748         the conditional link warning.
56749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56750         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56751         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56752         * modules/strcase (configure.ac): Don't invoke
56753         gl_STRING_MODULE_INDICATOR.
56754         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56755
56756 2007-02-04  Bruno Haible  <bruno@clisp.org>
56757
56758         New module mbscasecmp, reduced goal of strcasecmp.
56759         * modules/mbscasecmp: New file.
56760         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56761         (mbscasecmp): Renamed from strcasecmp.
56762         * lib/strcasecmp.c: Don't include mbuiter.h.
56763         (strcasecmp): Remove support for multibyte locales.
56764         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56765         Change the conditional link warning.
56766         (mbscasecmp): New declaration.
56767         * m4/mbscasecmp.m4: New file.
56768         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56769         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56770         REPLACE_STRCASECMP.
56771         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56773         GNULIB_MBSCASECMP.
56774         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56775         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56776         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56777         (Depends-on): Remove mbuiter.
56778         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56779
56780 2007-02-04  Bruno Haible  <bruno@clisp.org>
56781
56782         New module mbsstr. Remove module strstr.
56783         * modules/mbsstr: New file.
56784         * modules/strstr: Remove file.
56785         * lib/mbsstr.c: Renamed from lib/strstr.c.
56786         (mbsstr): Renamed from strstr.
56787         * lib/string_.h (strstr): Remove declaration. Change the conditional
56788         link warning.
56789         (mbsstr): New declaration.
56790         * m4/mbsstr.m4: New file.
56791         * m4/strstr.m4: Remove file.
56792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56793         REPLACE_STRSTR.
56794         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56795         Don't initialize GNULIB_STRSTR.
56796         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56797         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56798         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56799         (Support for systems lacking ANSI C 89): Remove strstr.
56800
56801 2007-02-04  Bruno Haible  <bruno@clisp.org>
56802
56803         New module mbsrchr.
56804         * modules/mbsrchr: New file.
56805         * lib/mbsrchr.c: New file.
56806         * lib/string_.h (strrchr): Add a conditional link warning.
56807         (mbsrchr): New declaration.
56808         * m4/mbsrchr.m4: New file.
56809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56810         GNULIB_MBSRCHR.
56811         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56812         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56813
56814 2007-02-04  Bruno Haible  <bruno@clisp.org>
56815
56816         New module mbschr.
56817         * modules/mbschr: New file.
56818         * lib/mbschr.c: New file.
56819         * lib/string_.h (strchr): Add a conditional link warning.
56820         (mbschr): New declaration.
56821         * m4/mbschr.m4: New file.
56822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56823         GNULIB_MBSCHR.
56824         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56825         * MODULES.html.sh (Internationalization functions): Add mbschr.
56826
56827 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56830
56831         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56832
56833 2007-02-04  Bruno Haible  <bruno@clisp.org>
56834
56835         New module description section 'configure.ac-early'.
56836         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56837         (func_get_autoconf_early_snippet): New function.
56838         (func_import, func_create_testdir): Use it. Remove special cases for
56839         modules 'extensions' and 'lock'.
56840         * modules/extensions (configure.ac-early): Require
56841         gl_USE_SYSTEM_EXTENSIONS.
56842         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56843
56844 2007-02-04  Bruno Haible  <bruno@clisp.org>
56845
56846         Make use of gcj-4.3's -fsource and -ftarget option.
56847         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56848         and if so try the options -fsource and -ftarget.
56849         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56850         source_version, ftarget_option, target_version arguments.
56851         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56852         (is_envjavac_oldgcj_14_14_usable): Renamed from
56853         is_envjavac_gcj_14_14_usable.
56854         (is_envjavac_oldgcj_14_13_usable): Renamed from
56855         is_envjavac_gcj_14_13_usable.
56856         (is_gcj_present): Update.
56857         (is_gcj_43, is_gcj43_usable): New functions.
56858         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56859         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56860         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56861         try the options -fsource and -ftarget.
56862
56863 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56866         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56867         larger value.
56868
56869 2007-02-03  Jim Meyering  <jim@meyering.net>
56870
56871         Give tools a better chance to allocate space for very large buffers.
56872         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56873
56874         Make pwd and readlink work also when run with an unreadable parent dir
56875         on systems with openat support.
56876         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56877         provided getcwd function, even when we have openat support.
56878         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56879
56880 2007-02-02  Bruno Haible  <bruno@clisp.org>
56881
56882         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56883         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56884         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56885         portability problems if one of these functions is only used on specific
56886         platforms.
56887         Reported by Paul Eggert.
56888
56889 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56890
56891         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56892         is causing more trouble than it's curing.
56893         * lib/regex_internal.h (__mempcpy): Remove.
56894         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56895         (and make the code a tad smaller to boot).
56896         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56897
56898 2007-02-02  Jim Meyering  <jim@meyering.net>
56899
56900         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56901         section, not in the Makefile.am: one.
56902
56903 2007-02-02  Eric Blake  <ebb9@byu.net>
56904
56905         * lib/strchrnul.c: Always include config.h first.
56906
56907         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56908         gnulib strstr is not necessary here.
56909
56910 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56911
56912         * m4/socklen.m4: Fix typo.
56913
56914 2007-02-02  Eric Blake  <ebb9@byu.net>
56915
56916         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56917         * modules/netinet_in (Makefile.am): Likewise.
56918
56919 2007-02-01  Bruno Haible  <bruno@clisp.org>
56920
56921         * lib/string_.h (GL_LINK_WARNING): New macro.
56922         (strcasecmp, strstr, strcasestr): If provided by the system,
56923         conditionally define as a macro that leads to a warning instead of to
56924         an error.
56925         (strncasecmp): Conditionally define as a macro that leads to a warning.
56926
56927 2007-02-01  Karl Berry  <karl@gnu.org>
56928
56929         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56930
56931 2007-02-01  Bruno Haible  <bruno@clisp.org>
56932
56933         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56934         renamings.
56935
56936 2007-02-01  Eric Blake  <ebb9@byu.net>
56937
56938         * modules/regex (Depends-on): Revert dependence on mempcpy.
56939         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56940         module's definition of mempcpy.
56941         Reported by Paul Eggert.
56942
56943 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56944
56945         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56946         the symbol XYZ before redefining it.  This fixes a problem with
56947         programs that don't use XYZ, when compiled on systems that define
56948         XYZ to something else.
56949
56950 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56951
56952         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56953         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56954         writeable to group or other and (2) is intended to have a special
56955         mode bit that is set or cleared.  In such a case, the directory
56956         should be neither group- nor other-writeable until the special
56957         mode bits are right.
56958
56959 2007-01-31  Eric Blake  <ebb9@byu.net>
56960
56961         * modules/mountlist (Depends-on): Add strstr.
56962
56963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56964         bug.
56965         * modules/string (Makefile.am): Remove redundant replacement.
56966         * modules/regex (Depends-on): Add mempcpy.
56967
56968 2007-01-31  Bruno Haible  <bruno@clisp.org>
56969
56970         New module description field 'Link'.
56971         * gnulib-tool (func_usage): Document --extract-link-directive.
56972         (sed_extract_prog): Recognize 'Link' directive.
56973         (func_get_link_directive): New function.
56974         (func_import): Show summary of link directives.
56975         Handle --extract-link-directive option.
56976         * modules/acl (Link): New section.
56977         * modules/clock-time (Link): New section.
56978         * modules/euidaccess (Link): New section.
56979         * modules/gettext (Link): New section.
56980         * modules/iconv (Link): New section.
56981         * modules/lock (Link): New section.
56982         * modules/nanosleep (Link): New section.
56983         * modules/readline (Link): New section.
56984
56985 2007-01-27  Bruno Haible  <bruno@clisp.org>
56986
56987         Enforce the use of gnulib modules for unportable <string.h> functions.
56988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56989         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56990         (gl_HEADER_STRING_H_BODY): Require it.
56991         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56992         the symbol XYZ to one that gives a link error.
56993         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56994         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56995         * modules/mempcpy (configure.ac): Likewise.
56996         * modules/memrchr (configure.ac): Likewise.
56997         * modules/stpcpy (configure.ac): Likewise.
56998         * modules/stpncpy (configure.ac): Likewise.
56999         * modules/strcase (configure.ac): Likewise.
57000         * modules/strcasestr (configure.ac): Likewise.
57001         * modules/strchrnul (configure.ac): Likewise.
57002         * modules/strdup (configure.ac): Likewise.
57003         * modules/strndup (configure.ac): Likewise.
57004         * modules/strnlen (configure.ac): Likewise.
57005         * modules/strpbrk (configure.ac): Likewise.
57006         * modules/strsep (configure.ac): Likewise.
57007         * modules/strstr (configure.ac): Likewise.
57008         * modules/strtok_r (configure.ac): Likewise.
57009
57010 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57011
57012         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57013
57014 2007-01-30  Jim Meyering  <jim@meyering.net>
57015
57016         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57017
57018 2007-01-29  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57021         * lib/execute.c: Likewise.
57022         * lib/pipe.c: Likewise.
57023         * lib/printf-args.h: Likewise.
57024         * lib/printf-args.c: Likewise.
57025         * lib/printf-parse.c: Likewise.
57026         * lib/vasnprintf.c: Likewise.
57027
57028 2007-01-29  Eric Blake  <ebb9@byu.net>
57029
57030         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57031         declaration.
57032
57033 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57034
57035         * lib/strptime.h (strptime): Use 'restrict' for args where
57036         POSIX requires this.
57037         * lib/strptime.c (strptime): Likewise.
57038         Change license notice from LGPL to GPL, since gnulib-tool will
57039         change this as needed.
57040         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57041         defined.
57042         Include "strptime.h" first, to check interface.
57043         Do not #undef _LIBC and _NL_CURRENT.
57044         Do not include <stdlib.h>; no longer needed.
57045         Include "time_r.h" and declare ptime_locale_status
57046         only if _LIBC is not defined.
57047         (__P): Remove unused macro.
57048         (match_string): Bring back glibc version, but use it only if _LIBC
57049         is defined.
57050         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57051         Remove unnecessary assertion and abort() call.
57052         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57053         * m4/strptime.m4: Fix serial number comment.
57054         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57055         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57056         (Depends-on): Add time_r.
57057
57058 2007-01-29  Bruno Haible  <bruno@clisp.org>
57059
57060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57061         strptime.
57062         * modules/strptime (Depends-on): Add stdbool.
57063         * lib/strptime.h: Include <time.h> always. Add comments.
57064
57065 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57066
57067         * modules/strptime: New file.
57068         * lib/strptime.h: New file.
57069         * lib/strptime.c: New file.
57070         * m4/strptime.m4: New file.
57071
57072 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57073
57074         * MODULES.html.sh: New module mpsort.
57075         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57076
57077         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57078         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57080         All uses changed.
57081         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57082         All uses changed.
57083         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57084         to _Restrict_.
57085         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57086         the parameter matches the prototype.
57087
57088 2007-01-28  Jim Meyering  <jim@meyering.net>
57089
57090         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57091         sys/time.h here, reverting that part of the previous patch:
57092         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57093
57094 2007-01-28  Bruno Haible  <bruno@clisp.org>
57095
57096         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57097         value of $(SYS_TIME_H).
57098         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57099         remove it conditionally, too. [added by Jim Meyering]
57100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57102         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57103         GETTIMEOFDAY_REPLACEMENT to 1.
57104
57105 2007-01-28  Bruno Haible  <bruno@clisp.org>
57106
57107         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57108         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57110         Set UNISTD_H instead of UNISTD_H2.
57111         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57112
57113 2007-01-28  Bruno Haible  <bruno@clisp.org>
57114
57115         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57116         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57117
57118 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57119
57120         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57121         (func_create_testdir): Ensure C locale for `grep' and `tr'
57122         character ranges.
57123         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57124         ACLOCAL_AMFLAGS parsing state machine.
57125
57126 2007-01-27  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/unistr/base: Update.
57129
57130 2007-01-27  Bruno Haible  <bruno@clisp.org>
57131
57132         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57133         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57134         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57135         modules/unistr/u32-mbtouc.
57136         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57137         * lib/unistr.h: Update.
57138         * lib/linebreak.c: Update.
57139         * modules/unistr/u32-mbtouc: Renamed from
57140         modules/unistr/u32-mbtouc-safe.
57141         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57142         * lib/unistr.h: Update.
57143         * lib/unistr/u32-to-u8.c: Update.
57144         * lib/unistr/u32-to-u16.c: Update.
57145
57146 2007-01-27  Bruno Haible  <bruno@clisp.org>
57147
57148         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57149         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57150         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57151         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57152         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57153         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57154         modules/unistr/u16-mbtouc.
57155         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57156         * lib/unistr.h: Update.
57157         * lib/linebreak.c: Update.
57158         * modules/linebreak: Update.
57159         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57160         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57161         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57162         * modules/unistr/u16-mbtouc: Renamed from
57163         modules/unistr/u16-mbtouc-safe.
57164         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57165         * lib/unistr.h: Update.
57166         * lib/unistr/u16-to-u8.c: Update.
57167         * modules/unistr/u16-to-u8: Update.
57168         * lib/unistr/u16-to-u32.c: Update.
57169         * modules/unistr/u16-to-u32: Update.
57170
57171 2007-01-27  Bruno Haible  <bruno@clisp.org>
57172
57173         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57174         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57175         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57176         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57177         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57178         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57179         modules/unistr/u8-mbtouc.
57180         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57181         * lib/unistr.h: Update.
57182         * lib/striconveh.c: Update.
57183         * modules/striconveh: Update.
57184         * lib/linebreak.c: Update.
57185         * modules/linebreak: Update.
57186         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57187         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57188         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57189         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57190         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57191         * lib/unistr.h: Update.
57192         * lib/striconveh.c: Update.
57193         * modules/striconveh: Update.
57194         * lib/unistr/u8-to-u16.c: Update.
57195         * modules/unistr/u8-to-u16: Update.
57196         * lib/unistr/u8-to-u32.c: Update.
57197         * modules/unistr/u8-to-u32: Update.
57198
57199 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57200
57201         Sync from Libtool.
57202         * lib/argz.c: Do not include strings.h nor memory.h, include
57203         string.h unconditionally.  Patch by Simon Josefsson.
57204
57205 2007-01-27  Bruno Haible  <bruno@clisp.org>
57206
57207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57208         from gl_HEADER_STRING_H_BODY.
57209         (gl_HEADER_STRING_H_BODY): Require it.
57210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57211         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57212         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57213         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57215         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57217         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57218         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57219         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57221         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57222         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57224         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57225
57226 2007-01-27  Bruno Haible  <bruno@clisp.org>
57227
57228         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57229         check_PROGRAMS into noinst_PROGRAMS.
57230         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57231         check_PROGRAMS in this case.
57232         (func_import): Set for_test to false.
57233         (func_create_testdir): Set for_test to true.
57234
57235 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57236             Bruno Haible  <bruno@clisp.org>
57237
57238         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57239         (Depends-on): Add string.
57240         (Includes): Use <string.h> instead of strcasestr.h.
57241         * modules/string (Makefile.am): Also substitute the value of
57242         REPLACE_STRCASESTR.
57243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57244         assume strcasestr is declared in <string.h> not <strings.h>. Also
57245         set REPLACE_STRCASESTR.
57246         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57247         REPLACE_STRCASESTR.
57248         * lib/strcasestr.h: Remove file.
57249         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57250         * lib/string_.h (strcasestr): New declaration.
57251
57252 2007-01-27  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/string_.h: Use 'extern'.
57255
57256 2007-01-27  Jim Meyering  <jim@meyering.net>
57257
57258         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57259         of set-but-not-used local, "q".
57260
57261         * lib/mempcpy.c: Include <config.h> before <string.h>.
57262         This fixes a compilation error on HP-UX, due to the system's
57263         "restrict"-using mempcpy prototype.
57264
57265 2007-01-26  Bruno Haible  <bruno@clisp.org>
57266
57267         Small optimization.
57268         * lib/javacomp.c: Include c-strstr.h.
57269          (is_envjavac_gcj): Use c_strstr instead of strstr.
57270         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57271
57272 2007-01-26  Bruno Haible  <bruno@clisp.org>
57273
57274         * MODULES.html.sh (Unicode string functions): Add the new modules.
57275
57276         * modules/uniconv/u32-strconv-to-locale: New file.
57277         * lib/uniconv/u32-strconv-to-locale.c: New file.
57278
57279         * modules/uniconv/u16-strconv-to-locale: New file.
57280         * lib/uniconv/u16-strconv-to-locale.c: New file.
57281
57282         * modules/uniconv/u8-strconv-to-locale: New file.
57283         * lib/uniconv/u8-strconv-to-locale.c: New file.
57284
57285         * modules/uniconv/u32-strconv-from-locale: New file.
57286         * lib/uniconv/u32-strconv-from-locale.c: New file.
57287
57288         * modules/uniconv/u16-strconv-from-locale: New file.
57289         * lib/uniconv/u16-strconv-from-locale.c: New file.
57290
57291         * modules/uniconv/u8-strconv-from-locale: New file.
57292         * lib/uniconv/u8-strconv-from-locale.c: New file.
57293
57294         * modules/uniconv/u32-strconv-to-enc: New file.
57295         * lib/uniconv/u32-strconv-to-enc.c: New file.
57296         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57297         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57298
57299         * modules/uniconv/u16-strconv-to-enc: New file.
57300         * lib/uniconv/u16-strconv-to-enc.c: New file.
57301         * lib/uniconv/u-strconv-to-enc.h: New file.
57302         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57303         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57304
57305         * modules/uniconv/u8-strconv-to-enc: New file.
57306         * lib/uniconv/u8-strconv-to-enc.c: New file.
57307         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57308         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57309
57310         * modules/uniconv/u32-strconv-from-enc: New file.
57311         * lib/uniconv/u32-strconv-from-enc.c: New file.
57312         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57313         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57314
57315         * modules/uniconv/u16-strconv-from-enc: New file.
57316         * lib/uniconv/u16-strconv-from-enc.c: New file.
57317         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57318         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57319
57320         * modules/uniconv/u8-strconv-from-enc: New file.
57321         * lib/uniconv/u8-strconv-from-enc.c: New file.
57322         * lib/uniconv/u-strconv-from-enc.h: New file.
57323         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57324         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57325
57326         * modules/uniconv/u32-conv-from-enc: New file.
57327         * lib/uniconv/u32-conv-from-enc.c: New file.
57328         * modules/uniconv/u32-conv-from-enc-tests: New file.
57329         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57330
57331         * modules/uniconv/u16-conv-from-enc: New file.
57332         * lib/uniconv/u16-conv-from-enc.c: New file.
57333         * lib/uniconv/u-conv-from-enc.h: New file.
57334         * modules/uniconv/u16-conv-from-enc-tests: New file.
57335         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57336
57337         * modules/uniconv/u8-conv-from-enc: New file.
57338         * lib/uniconv/u8-conv-from-enc.c: New file.
57339         * modules/uniconv/u8-conv-from-enc-tests: New file.
57340         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57341
57342         * modules/uniconv/base: New file.
57343         * lib/uniconv.h: New file.
57344
57345 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * doc/gnulib-tool.texi (Initial import): Update to match current
57348         behavior with strdup module.
57349         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57350         * lib/memmem.h: Remove; all uses removed.  This is now done
57351         by <string.h>.
57352         * lib/mempcpy.h: Likewise.
57353         * lib/memrchr.h: Likewise.
57354         * lib/stpcpy.h: Likewise.
57355         * lib/stpncpy.h: Likewise.
57356         * lib/strcase.h: Likewise.
57357         * lib/strchrnul.h: Likewise.
57358         * lib/strdup.h: Likewise.
57359         * lib/strndup.h: Likewise.
57360         * lib/strnlen.h: Likewise.
57361         * lib/strpbrk.h: Likewise.
57362         * lib/strsep.h: Likewise.
57363         * lib/strstr.h: Likewise.
57364         * lib/strtok_r.h: Likewise.
57365         * lib/string_.h: New file.
57366         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57367         Rely on <string.h> instead.
57368         * lib/canon-host.c: Likewise.
57369         * lib/chdir-long.c: Likewise.
57370         * lib/concatpath.c: Likewise.
57371         * lib/exclude.c: Likewise.
57372         * lib/fchdir.c: Likewise.
57373         * lib/getaddrinfo.c: Likewise.
57374         * lib/getcwd.c: Likewise.
57375         * lib/getsubopt.c: Likewise.
57376         * lib/glob.c: Likewise.
57377         * lib/hard-locale.c: Likewise.
57378         * lib/iconvme.c: Likewise.
57379         * lib/javacomp.c: Likewise.
57380         * lib/mempcpy.c: Likewise.
57381         * lib/memrchr.c: Likewise.
57382         * lib/regex_internal.h: Likewise.
57383         * lib/stpncpy.c: Likewise.
57384         * lib/strcasecmp.c: Likewise.
57385         * lib/strchrnul.c: Likewise.
57386         * lib/strdup.c: Likewise.
57387         * lib/striconv.c: Likewise.
57388         * lib/striconveh.c: Likewise.
57389         * lib/striconveha.c: Likewise.
57390         * lib/strncasecmp.c: Likewise.
57391         * lib/strndup.c: Likewise.
57392         * lib/strnlen.c: Likewise.
57393         * lib/strsep.c: Likewise.
57394         * lib/strstr.c: Likewise.
57395         * lib/strtok_r.c: Likewise.
57396         * lib/userspec.c: Likewise.
57397         * lib/w32spawn.h: Likewise.
57398         * lib/xstrndup.c: Likewise.
57399         * lib/mountlist.c (strstr): Remove decl.
57400         * m4/string_h.m4: New file.
57401         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57402         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57403         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57404         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57405         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57406         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57407         Set REPLACE_STRCASECMP if necessary.
57408         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57409         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57410         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57411         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57412         HAVE_DECL_STRDUP if necessary.
57413         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57414         since gl_FUNC_STRNDUP does that now.
57415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57416         Check for decl here...
57417         (gl_PREREQ_STRNLEN): ... not here.
57418         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57419         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57420         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57421         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57422         necessary.
57423         * modules/string: New file.
57424         * modules/memmem (Files): Remove special-purpose include file.
57425         (Depends-on): Add string.
57426         (Include): Include <string.h>, not the removed file.
57427         * modules/mempcpy: Likewise.
57428         * modules/memrchr: Likewise.
57429         * modules/stpcpy: Likewise.
57430         * modules/stpncpy: Likewise.
57431         * modules/strcase: Likewise.
57432         * modules/strchrnul: Likewise.
57433         * modules/strdup: Likewise.
57434         * modules/strndup: Likewise.
57435         * modules/strnlen: Likewise.
57436         * modules/strpbrk: Likewise.
57437         * modules/strsep: Likewise.
57438         * modules/strstr: Likewise.
57439         * modules/strtok_r: Likewise.
57440         * tests/test-dirname.c: Don't include "strdup.h", since
57441         <string.h> now suffices.
57442         * tests/test-memmem.c: Don't include "memmem.h", since
57443         <string.h> now suffices.
57444
57445 2007-01-25  Bruno Haible  <bruno@clisp.org>
57446
57447         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57448         *resultp is 0.
57449
57450         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57451         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57452         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57453         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57454
57455         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57456         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57457         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57458         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57459         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57460         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57461
57462 2007-01-24  Bruno Haible  <bruno@clisp.org>
57463
57464         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57466         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57467         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57468         gl_FUNC_FTS_CORE.
57469         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57470         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57471         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57472         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57473         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57474         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57475         gl_FUNC_FCHOWNAT.
57476         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57477         gl_FUNC_STRFTIME.
57478         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57479         Reported by Ralf Wildenhues.
57480
57481 2007-01-24  Bruno Haible  <bruno@clisp.org>
57482
57483         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57484         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57485         gl_GETADDRINFO.
57486         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57487         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57488         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57489
57490 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57491
57492         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57493         Don't use 'exit'; just return from 'main'.
57494         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57495
57496         * lib/fnmatch_.h: Readjust white space and comments to match
57497         glibc, to avoid spurious diffs.
57498
57499 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57500
57501         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57502         2004-12-01 change by Jakub Jelinek, since this code won't compile
57503         if !LIBC.  Problem reported by Bob Proulx.
57504
57505 2007-01-23  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/striconveh.c: Include c-strcaseeq.h.
57508         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57509         * modules/striconveh (Depends-on): Add c-strcaseeq.
57510
57511 2007-01-23  Bruno Haible  <bruno@clisp.org>
57512
57513         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57514
57515         * modules/c-strcaseeq: New file.
57516         * lib/c-strcaseeq.h: New file.
57517
57518         * modules/streq: New file.
57519         * lib/streq.h: New file.
57520
57521 2007-01-23  Bruno Haible  <bruno@clisp.org>
57522
57523         * modules/striconveha-tests: New file.
57524         * tests/test-striconveha.c: New file.
57525
57526         * lib/striconveha.h: Include <stdbool.h>.
57527         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57528         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57529         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57530         (mem_iconveha): New function.
57531         (str_iconveha_notranslit): Renamed from str_iconveha.
57532         (str_iconveha): New function.
57533         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57534         c-strcase.
57535
57536 2007-01-23  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57539         encodings without forgiving before trying any encoding with handler.
57540         (str_iconveha): Try all encodings without forgiving before trying any
57541         encoding with handler.
57542
57543 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57544
57545         Import the following changes from libc.
57546
57547         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57548
57549         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57550
57551         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57552
57553         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57554         normal_bracket label.
57555
57556         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57557
57558         [BZ #361]
57559         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57560         to normal_bracket after fetching the next character.
57561
57562 2007-01-22  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57565         argument.
57566         * lib/striconveh.c (iconv_carefully_1): New function.
57567         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57568         argument.
57569         (str_cd_iconveh): Update.
57570         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57571         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57572         * tests/test-striconveh.c (MAGIC): New macro.
57573         (new_offsets): New function.
57574         (main): Test call with and without offsets.
57575
57576 2007-01-22  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57579         * modules/sys_select (Makefile.am): Likewise.
57580         * modules/sys_socket (Makefile.am): Likewise.
57581         * modules/sys_time (Makefile.am): Likewise.
57582
57583 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57584
57585         * modules/gettimeofday (License): Change from GPL to LGPL, since
57586         gettimeofday is a library function.
57587
57588 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57589
57590         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57591
57592 2007-01-21  Bruno Haible  <bruno@clisp.org>
57593
57594         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57595
57596 2007-01-21  Bruno Haible  <bruno@clisp.org>
57597
57598         * modules/striconveha: New file.
57599         * lib/striconveha.h: New file.
57600         * lib/striconveha.c: New file.
57601         * MODULES.html.sh (Internationalization functions): Add striconveha.
57602         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57603         string.
57604         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57605
57606 2007-01-21  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57609         * lib/striconveh.c (str_iconveh): Likewise.
57610
57611 2007-01-21  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/striconveh.h (mem_iconveh): New declaration.
57614         * lib/striconveh.c (mem_iconveh): New function.
57615         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57616
57617 2007-01-21  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57620
57621         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57622         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57623         original result buffer.
57624         (str_cd_iconveh): Update.
57625         * tests/test-striconveh.c (main): Update.
57626
57627         * lib/striconv.h (mem_cd_iconv): Change specification.
57628         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57629         result buffer.
57630         (str_cd_iconv): Update.
57631         * tests/test-striconv.c (main): Update.
57632
57633 2007-01-21  Bruno Haible  <bruno@clisp.org>
57634
57635         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57636
57637 2007-01-20  Jim Meyering  <jim@meyering.net>
57638
57639         * lib/userspec.c (parse_with_separator): If a user or group string
57640         starts with "+", skip the corresponding name-to-ID look-up, since
57641         such a look-up must fail: user and group names may not include "+".
57642
57643 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57646         since we now assume the sys_time module.
57647         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57648         check for sys/time.h; no longer needed.
57649         * modules/poll (Depends-on): Depend on sys_time.
57650
57651 2007-01-18  Bruno Haible  <bruno@clisp.org>
57652
57653         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57654         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57655
57656         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57657         gettimeofday.
57658
57659         * tests/test-gettimeofday.c: Include <time.h>.
57660         (dummy): Remove variable.
57661
57662         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57663         gl_HEADER_SYS_TIME_H.
57664         (gl_HEADER_SYS_TIME_H): New macro.
57665
57666         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57667         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57669         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57670         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57672         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57673         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57674         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57675         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57676         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57677
57678         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57679         last change; it caused a compilation error when cross-compiling to
57680         Cygwin.
57681
57682 2007-01-18  Jim Meyering  <jim@meyering.net>
57683
57684         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57685         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57686         than the race-prone "test -d sys || mkdir sys".
57687         (configure.ac): Use AC_PROG_MKDIR_P.
57688         * modules/sys_select: Likewise.
57689         * modules/sys_socket: Likewise.
57690         * modules/sys_time: Likewise.
57691
57692 2007-01-18  Eric Blake  <ebb9@byu.net>
57693
57694         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57695         replace gettimeofday.
57696         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57697         name, to avoid infinite recursion.
57698
57699 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57700
57701         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57702         module sys_time.
57703         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57704         assume timespec.h defines struct timeval.
57705         * lib/settime.c: Likewise.
57706         * lib/utimens.c: Likewise.
57707         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57708         since we now assume the gettimeofday module.
57709         * lib/tempname.c (__gen_tempname): Likewise.
57710         * lib/gettimeofday.h: Remove.
57711         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57712         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57713         Include <time.h>, for 'time()'.
57714         (localtime_buffer_addr): Also use this workaround if
57715         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57716         to simplify the uses.  All uses changed.
57717         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57718         that #undef is inside {}, and 'const' follows type name consistently.
57719         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57720         (gettimeofday): Do not use the maximum possible value for
57721         tv->tv_usec, since that might break usages other than ls.c.
57722         Instead, we'll leave ls.c alone.  This undoes today's patch
57723         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57724         we've never observed the problem but might as well keep the
57725         canary.
57726         * lib/nanosleep.c: Include timespec.h first, for interface check.
57727         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57728         now assume the sys_time module.
57729         * lib/tempname.c: Likewise.
57730         * lib/timespec.h: Likewise.
57731         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57732         needed.
57733         * lib/strftime.c: Likewise.
57734         * lib/timespec.h: Likewise.
57735         * lib/posixtm.c: Include posixtm.h first, for interface check.
57736         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57737         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57738         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57739         * lib/sys_time_.h: New file.
57740         * lib/timespec.h (struct timespec): Use long int, not long.
57741         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57742         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57743         Remove obsolescent call to AC_HEADER_TIME.
57744         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57747         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57748         Likewise.
57749         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57750         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57752         into the sys_time module.  Check for gettimeofday just once.
57753         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57754         for gettimeofday signature to just check the signature.  Merely
57755         compile it, since linking doesn't test signature.  Improve test for
57756         whether gettimeofday.o is actually needed.
57757         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57758         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57759         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57760         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57761         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57762         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57763         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57764         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57765         than worrying about sys/time.h.
57766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57767         Don't bother worrying about TIME_WITH_SYS_TIME.
57768         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57769         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57770         * m4/sys_time_h.m4: New file.
57771         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57772         Don't include sys/time.h.  Return from main rather than exiting.
57773         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57774         all uses changed.
57775         * modules/gethrxtime (Depends-on): Add sys_time.
57776         * modules/gettime (Depends-on): Likewise.
57777         * modules/gettimeofday (Depends-on): Likewise.
57778         * modules/nanosleep (Depends-on): Likewise.
57779         * modules/settime (Depends-on): Likewise.
57780         * modules/tempname (Depends-on): Likewise.
57781         * modules/utimens (Depends-on): Likewise.
57782         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57783         (Include): Change back to <sys/time.h>.
57784         (Maintainer): Add self.
57785         * modules/sys_time: New file.
57786         * modules/tempname (Depends-on): Add gettimeofday.
57787         * tests/test-gettimeofday.c: Include <sys/time.h>
57788         rather than gettimeofday.h.
57789
57790 2007-01-17  Bruno Haible  <bruno@clisp.org>
57791
57792         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57793         the license default to GPL.
57794         (func_create_testdir): Don't complain if a module is LGPL and its
57795         tests module depends on GPLed modules.
57796
57797 2007-01-17  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/gettimeofday.c (gettimeofday): Add code for the case
57800         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57801         maximum possible value for tv->tv_usec, rather than the minimum one.
57802
57803 2005-10-08  Martin Lambers  <marlam@marlam.de>
57804 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57805 2007-01-16  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57808         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57809         gl_FUNC_GETTIMEOFDAY.
57810         (Include): Add gettimeofday.h.
57811         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57812         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57813         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57814         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57815         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57816         * lib/gettimeofday.h: New file.
57817         * lib/gettimeofday.c: Include <sys/timeb.h>.
57818         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57819         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57820         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57821         fall back on time().
57822
57823         * tests/test-gettimeofday.c: New file.
57824         * modules/gettimeofday-tests: New file.
57825
57826 2007-01-16  Eric Blake  <ebb9@byu.net>
57827
57828         * modules/fnmatch (Depends-on): Depend on wchar.
57829         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57830         * m4/fnmatch.m4: Likewise.
57831         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57832         * m4/mbchar.m4: Likewise.
57833         * modules/mbswidth (Depends-on): Depend on wchar.
57834         * lib/mbswidth.c: Assume <wchar.h>.
57835         * m4/mbswidth.m4: Likewise.
57836         * modules/quotearg (Depends-on): Depend on wchar.
57837         * lib/quotearg.c: Assume <wchar.h>.
57838         * m4/quotearg.m4: Likewise.
57839         * modules/regex (Depends-on): Depend on wchar.
57840         * lib/regex_internal.h: Assume <wchar.h>.
57841         * m4/regex.m4: Likewise.
57842         * modules/stdint (Depends-on): Depend on wchar.
57843         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57844         * m4/stdint.m4: Likewise.
57845         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57846         * modules/strftime (Depends-on): Depend on wchar.
57847         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57848         * modules/strtol (Depends-on): Depend on wchar.
57849         * lib/strtol.c: Assume <wchar.h>.
57850         * modules/wcwidth (Depends-on): Depend on wchar.
57851         * lib/wcwidth.h: Assume <wchar.h>.
57852         * m4/wcwidth.m4: Likewise.
57853
57854 2007-01-16  Bruno Haible  <bruno@clisp.org>
57855
57856         * modules/csharpexec-script: New, created from...
57857         * modules/csharpexec: ... this.
57858
57859 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57860
57861         * modules/javaexec-script: New, created from...
57862         * modules/javaexec: ... this.
57863
57864 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57865
57866         * modules/poll (Dependencies): Add sys_select.
57867
57868 2007-01-15  Jim Meyering  <jim@meyering.net>
57869
57870         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57871         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57872         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57873         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57874
57875 2007-01-15  Bruno Haible  <bruno@clisp.org>
57876
57877         * modules/striconveh: New file.
57878         * lib/striconveh.h: New file.
57879         * lib/striconveh.c: New file.
57880         * MODULES.html.sh (Internationalization functions): Add striconveh.
57881
57882         * modules/striconveh-tests: New file.
57883         * tests/test-striconveh.c: New file.
57884
57885 2007-01-15  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57888         not from GNU libiconv or GNU libc.
57889
57890 2007-01-15  Bruno Haible  <bruno@clisp.org>
57891
57892         * doc/gnulib-intro.texi (Copyright): Explain the different license
57893         terms for module descriptions, autoconf macros, tests, documentation.
57894
57895 2007-01-14  Bruno Haible  <bruno@clisp.org>
57896
57897         * modules/striconv-tests: New file.
57898         * tests/test-striconv.c: New file.
57899
57900 2007-01-14  Bruno Haible  <bruno@clisp.org>
57901
57902         * modules/iconv-tests: New file.
57903         * tests/test-iconv.c: New file.
57904
57905 2007-01-14  Bruno Haible  <bruno@clisp.org>
57906
57907         * gnulib-tool (func_get_license): For test modules, use the license of
57908         the main module.
57909
57910 2007-01-14  Bruno Haible  <bruno@clisp.org>
57911
57912         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57913         if iconv is found to exist.
57914
57915 2007-01-14  Bruno Haible  <bruno@clisp.org>
57916
57917         * modules/c-ctype-tests: New file.
57918         * tests/test-c-ctype.c: New file.
57919
57920 2007-01-14  Bruno Haible  <bruno@clisp.org>
57921
57922         * modules/binary-io-tests: New file.
57923         * tests/test-binary-io.sh: New file.
57924         * tests/test-binary-io.c: New file.
57925
57926 2007-01-14  Bruno Haible  <bruno@clisp.org>
57927
57928         * modules/array-oset-tests: New file.
57929         * tests/test-array_oset.c: New file.
57930
57931 2007-01-14  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/array-list-tests: New file.
57934         * tests/test-array_list.c: New file.
57935
57936 2007-01-14  Bruno Haible  <bruno@clisp.org>
57937
57938         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57939         and make.
57940         Reported by Simon Josefsson in
57941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57942
57943 2007-01-14  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/allocsa-tests: New file.
57946         * tests/test-allocsa.c: New file.
57947
57948 2007-01-14  Bruno Haible  <bruno@clisp.org>
57949
57950         * modules/fchdir (Depends-on): Add absolute-header.
57951         * modules/unistd (Depends-on): Likewise.
57952
57953 2006-12-30  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/fchdir: New file.
57956         * modules/unistd (Files): Add lib/unistd_.h.
57957         (Makefile.am): Generate unistd.h from unistd_.h.
57958         * lib/fchdir.c: New file.
57959         * lib/dirent_.h: New file.
57960         * lib/unistd_.h: New file.
57961         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57962         * m4/fchdir.m4: New file.
57963         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57964         (gl_HEADER_UNISTD): Invoke it.
57965         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57966         function.
57967         * lib/backupfile.c (opendir, closedir): Undefine.
57968         * lib/chown.c (open, close): Undefine.
57969         * lib/clean-temp.c (open, close): Undefine.
57970         * lib/copy-file.c (open, close): Undefine.
57971         * lib/execute.c (open, close): Undefine.
57972         * lib/fsusage.c (open, close): Undefine.
57973         * lib/gc-gnulib.c (open, close): Undefine.
57974         * lib/getcwd.c (opendir, closedir): Undefine.
57975         * lib/glob.c (opendir, closedir): Undefine.
57976         * lib/javacomp.c (open, close): Undefine.
57977         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57978         * lib/openat-proc.c (open, close): Undefine.
57979         * lib/pagealign_alloc.c (open, close): Undefine.
57980         * lib/pipe.c (open, close): Undefine.
57981         * lib/progreloc.c (open, close): Undefine.
57982         * lib/savedir.c (opendir, closedir): Undefine.
57983         * lib/utime.c (open, close): Undefine.
57984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57985
57986 2007-01-10  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57989
57990 2007-01-12  Eric Blake  <ebb9@byu.net>
57991
57992         Provide a robust <wchar.h>.  Further simplifications are now
57993         possible in other modules, but not included here.
57994         * modules/wchar: New module.
57995         * m4/wchar.m4: New file.
57996         * lib/wchar_.h: Likewise.
57997         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57998         of the new module.
57999         * MODULES.html.sh (Extended multibyte and wide character utilities):
58000         New section.
58001
58002 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58005         to a reasonable default for memory allocation.
58006         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58007         file system that reports garbage st_size values for symlinks.
58008         Problem reported by Liyang Hu.
58009
58010 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58011
58012         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58013         Emacs .#* auto-save files).
58014
58015 2007-01-11  Bruno Haible  <bruno@clisp.org>
58016
58017         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58018         directory.
58019
58020 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58021
58022         Use @...@ consistently in lib/wctype_.h.
58023         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58024         on it being set to 1 or 0.
58025         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58026         go back to AC_SUBSTing it.
58027         * modules/wctype (Makefile.am): Undo previous change.
58028
58029 2007-01-10  Eric Blake  <ebb9@byu.net>
58030
58031         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58032         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58033         * modules/wctype (Makefile.am): Likewise.
58034         Reported by Chris McGuire.
58035
58036 2007-01-10  Jim Meyering  <jim@meyering.net>
58037
58038         fts.c: a small readability/maintainability improvement
58039         * lib/fts.c (fts_read): Make this code slightly more readable and
58040         maintainable by hoisting the "sp->fts_cur = p" assignments to
58041         immediately follow the statements that set P.  Derived from
58042         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58043
58044 2007-01-10  Eric Blake  <ebb9@byu.net>
58045
58046         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58047         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58049         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58050         Reported by Chris McGuire.
58051
58052 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58053
58054         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58055         in sed script.
58056
58057 2007-01-09  Bruno Haible  <bruno@clisp.org>
58058
58059         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58060         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58061         variables.
58062         (func_module): Use them.
58063
58064 2007-01-09  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/unistr/base: New file.
58067         * lib/unistr.h: New file.
58068
58069         * modules/unistr/u8-to-u16: New file.
58070         * lib/unistr/u8-to-u16.c: New file.
58071
58072         * modules/unistr/u8-to-u32: New file.
58073         * lib/unistr/u8-to-u32.c: New file.
58074
58075         * modules/unistr/u16-to-u8: New file.
58076         * lib/unistr/u16-to-u8.c: New file.
58077
58078         * modules/unistr/u16-to-u32: New file.
58079         * lib/unistr/u16-to-u32.c: New file.
58080
58081         * modules/unistr/u32-to-u8: New file.
58082         * lib/unistr/u32-to-u8.c: New file.
58083
58084         * modules/unistr/u32-to-u16: New file.
58085         * lib/unistr/u32-to-u16.c: New file.
58086
58087         * modules/unistr/u8-check: New file.
58088         * modules/unistr/u16-check: New file.
58089         * modules/unistr/u32-check: New file.
58090         * lib/unistr/u8-check.c: New file.
58091         * lib/unistr/u16-check.c: New file.
58092         * lib/unistr/u32-check.c: New file.
58093
58094         * modules/unistr/u8-chr: New file.
58095         * modules/unistr/u16-chr: New file.
58096         * modules/unistr/u32-chr: New file.
58097         * lib/unistr/u8-chr.c: New file.
58098         * lib/unistr/u16-chr.c: New file.
58099         * lib/unistr/u32-chr.c: New file.
58100
58101         * modules/unistr/u8-cmp: New file.
58102         * modules/unistr/u16-cmp: New file.
58103         * modules/unistr/u32-cmp: New file.
58104         * lib/unistr/u8-cmp.c: New file.
58105         * lib/unistr/u16-cmp.c: New file.
58106         * lib/unistr/u32-cmp.c: New file.
58107
58108         * modules/unistr/u8-cpy: New file.
58109         * modules/unistr/u16-cpy: New file.
58110         * modules/unistr/u32-cpy: New file.
58111         * lib/unistr/u8-cpy.c: New file.
58112         * lib/unistr/u16-cpy.c: New file.
58113         * lib/unistr/u32-cpy.c: New file.
58114         * lib/unistr/u-cpy.h: New file.
58115
58116         * modules/unistr/u8-cpy-alloc: New file.
58117         * modules/unistr/u16-cpy-alloc: New file.
58118         * modules/unistr/u32-cpy-alloc: New file.
58119         * lib/unistr/u8-cpy-alloc.c: New file.
58120         * lib/unistr/u16-cpy-alloc.c: New file.
58121         * lib/unistr/u32-cpy-alloc.c: New file.
58122         * lib/unistr/u-cpy-alloc.h: New file.
58123
58124         * modules/unistr/u8-endswith: New file.
58125         * modules/unistr/u16-endswith: New file.
58126         * modules/unistr/u32-endswith: New file.
58127         * lib/unistr/u8-endswith.c: New file.
58128         * lib/unistr/u16-endswith.c: New file.
58129         * lib/unistr/u32-endswith.c: New file.
58130         * lib/unistr/u-endswith.h: New file.
58131
58132         * modules/unistr/u8-mblen: New file.
58133         * modules/unistr/u16-mblen: New file.
58134         * modules/unistr/u32-mblen: New file.
58135         * lib/unistr/u8-mblen.c: New file.
58136         * lib/unistr/u16-mblen.c: New file.
58137         * lib/unistr/u32-mblen.c: New file.
58138
58139         * modules/unistr/u8-mbtouc: New file.
58140         * modules/unistr/u16-mbtouc: New file.
58141         * modules/unistr/u32-mbtouc: New file.
58142         * lib/unistr/u8-mbtouc.c: New file.
58143         * lib/unistr/u16-mbtouc.c: New file.
58144         * lib/unistr/u32-mbtouc.c: New file.
58145
58146         * modules/unistr/u8-mbtouc-safe: New file.
58147         * modules/unistr/u16-mbtouc-safe: New file.
58148         * modules/unistr/u32-mbtouc-safe: New file.
58149         * lib/unistr/u8-mbtouc-safe.c: New file.
58150         * lib/unistr/u16-mbtouc-safe.c: New file.
58151         * lib/unistr/u32-mbtouc-safe.c: New file.
58152
58153         * modules/unistr/u8-move: New file.
58154         * modules/unistr/u16-move: New file.
58155         * modules/unistr/u32-move: New file.
58156         * lib/unistr/u8-move.c: New file.
58157         * lib/unistr/u16-move.c: New file.
58158         * lib/unistr/u32-move.c: New file.
58159         * lib/unistr/u-move.h: New file.
58160
58161         * modules/unistr/u8-next: New file.
58162         * modules/unistr/u16-next: New file.
58163         * modules/unistr/u32-next: New file.
58164         * lib/unistr/u8-next.c: New file.
58165         * lib/unistr/u16-next.c: New file.
58166         * lib/unistr/u32-next.c: New file.
58167
58168         * modules/unistr/u8-prev: New file.
58169         * modules/unistr/u16-prev: New file.
58170         * modules/unistr/u32-prev: New file.
58171         * lib/unistr/u8-prev.c: New file.
58172         * lib/unistr/u16-prev.c: New file.
58173         * lib/unistr/u32-prev.c: New file.
58174
58175         * modules/unistr/u8-set: New file.
58176         * modules/unistr/u16-set: New file.
58177         * modules/unistr/u32-set: New file.
58178         * lib/unistr/u8-set.c: New file.
58179         * lib/unistr/u16-set.c: New file.
58180         * lib/unistr/u32-set.c: New file.
58181         * lib/unistr/u-set.h: New file.
58182
58183         * modules/unistr/u8-startswith: New file.
58184         * modules/unistr/u16-startswith: New file.
58185         * modules/unistr/u32-startswith: New file.
58186         * lib/unistr/u8-startswith.c: New file.
58187         * lib/unistr/u16-startswith.c: New file.
58188         * lib/unistr/u32-startswith.c: New file.
58189         * lib/unistr/u-startswith.h: New file.
58190
58191         * modules/unistr/u8-stpcpy: New file.
58192         * modules/unistr/u16-stpcpy: New file.
58193         * modules/unistr/u32-stpcpy: New file.
58194         * lib/unistr/u8-stpcpy.c: New file.
58195         * lib/unistr/u16-stpcpy.c: New file.
58196         * lib/unistr/u32-stpcpy.c: New file.
58197         * lib/unistr/u-stpcpy.h: New file.
58198
58199         * modules/unistr/u8-stpncpy: New file.
58200         * modules/unistr/u16-stpncpy: New file.
58201         * modules/unistr/u32-stpncpy: New file.
58202         * lib/unistr/u8-stpncpy.c: New file.
58203         * lib/unistr/u16-stpncpy.c: New file.
58204         * lib/unistr/u32-stpncpy.c: New file.
58205         * lib/unistr/u-stpncpy.h: New file.
58206
58207         * modules/unistr/u8-strcat: New file.
58208         * modules/unistr/u16-strcat: New file.
58209         * modules/unistr/u32-strcat: New file.
58210         * lib/unistr/u8-strcat.c: New file.
58211         * lib/unistr/u16-strcat.c: New file.
58212         * lib/unistr/u32-strcat.c: New file.
58213         * lib/unistr/u-strcat.h: New file.
58214
58215         * modules/unistr/u8-strchr: New file.
58216         * modules/unistr/u16-strchr: New file.
58217         * modules/unistr/u32-strchr: New file.
58218         * lib/unistr/u8-strchr.c: New file.
58219         * lib/unistr/u16-strchr.c: New file.
58220         * lib/unistr/u32-strchr.c: New file.
58221
58222         * modules/unistr/u8-strcmp: New file.
58223         * modules/unistr/u16-strcmp: New file.
58224         * modules/unistr/u32-strcmp: New file.
58225         * lib/unistr/u8-strcmp.c: New file.
58226         * lib/unistr/u16-strcmp.c: New file.
58227         * lib/unistr/u32-strcmp.c: New file.
58228
58229         * modules/unistr/u8-strcpy: New file.
58230         * modules/unistr/u16-strcpy: New file.
58231         * modules/unistr/u32-strcpy: New file.
58232         * lib/unistr/u8-strcpy.c: New file.
58233         * lib/unistr/u16-strcpy.c: New file.
58234         * lib/unistr/u32-strcpy.c: New file.
58235         * lib/unistr/u-strcpy.h: New file.
58236
58237         * modules/unistr/u8-strcspn: New file.
58238         * modules/unistr/u16-strcspn: New file.
58239         * modules/unistr/u32-strcspn: New file.
58240         * lib/unistr/u8-strcspn.c: New file.
58241         * lib/unistr/u16-strcspn.c: New file.
58242         * lib/unistr/u32-strcspn.c: New file.
58243         * lib/unistr/u-strcspn.h: New file.
58244
58245         * modules/unistr/u8-strdup: New file.
58246         * modules/unistr/u16-strdup: New file.
58247         * modules/unistr/u32-strdup: New file.
58248         * lib/unistr/u8-strdup.c: New file.
58249         * lib/unistr/u16-strdup.c: New file.
58250         * lib/unistr/u32-strdup.c: New file.
58251         * lib/unistr/u-strdup.h: New file.
58252
58253         * modules/unistr/u8-strlen: New file.
58254         * modules/unistr/u16-strlen: New file.
58255         * modules/unistr/u32-strlen: New file.
58256         * lib/unistr/u8-strlen.c: New file.
58257         * lib/unistr/u16-strlen.c: New file.
58258         * lib/unistr/u32-strlen.c: New file.
58259         * lib/unistr/u-strlen.h: New file.
58260
58261         * modules/unistr/u8-strmblen: New file.
58262         * modules/unistr/u16-strmblen: New file.
58263         * modules/unistr/u32-strmblen: New file.
58264         * lib/unistr/u8-strmblen.c: New file.
58265         * lib/unistr/u16-strmblen.c: New file.
58266         * lib/unistr/u32-strmblen.c: New file.
58267
58268         * modules/unistr/u8-strmbtouc: New file.
58269         * modules/unistr/u16-strmbtouc: New file.
58270         * modules/unistr/u32-strmbtouc: New file.
58271         * lib/unistr/u8-strmbtouc.c: New file.
58272         * lib/unistr/u16-strmbtouc.c: New file.
58273         * lib/unistr/u32-strmbtouc.c: New file.
58274
58275         * modules/unistr/u8-strncat: New file.
58276         * modules/unistr/u16-strncat: New file.
58277         * modules/unistr/u32-strncat: New file.
58278         * lib/unistr/u8-strncat.c: New file.
58279         * lib/unistr/u16-strncat.c: New file.
58280         * lib/unistr/u32-strncat.c: New file.
58281         * lib/unistr/u-strncat.h: New file.
58282
58283         * modules/unistr/u8-strncmp: New file.
58284         * modules/unistr/u16-strncmp: New file.
58285         * modules/unistr/u32-strncmp: New file.
58286         * lib/unistr/u8-strncmp.c: New file.
58287         * lib/unistr/u16-strncmp.c: New file.
58288         * lib/unistr/u32-strncmp.c: New file.
58289
58290         * modules/unistr/u8-strncpy: New file.
58291         * modules/unistr/u16-strncpy: New file.
58292         * modules/unistr/u32-strncpy: New file.
58293         * lib/unistr/u8-strncpy.c: New file.
58294         * lib/unistr/u16-strncpy.c: New file.
58295         * lib/unistr/u32-strncpy.c: New file.
58296         * lib/unistr/u-strncpy.h: New file.
58297
58298         * modules/unistr/u8-strnlen: New file.
58299         * modules/unistr/u16-strnlen: New file.
58300         * modules/unistr/u32-strnlen: New file.
58301         * lib/unistr/u8-strnlen.c: New file.
58302         * lib/unistr/u16-strnlen.c: New file.
58303         * lib/unistr/u32-strnlen.c: New file.
58304         * lib/unistr/u-strnlen.h: New file.
58305
58306         * modules/unistr/u8-strpbrk: New file.
58307         * modules/unistr/u16-strpbrk: New file.
58308         * modules/unistr/u32-strpbrk: New file.
58309         * lib/unistr/u8-strpbrk.c: New file.
58310         * lib/unistr/u16-strpbrk.c: New file.
58311         * lib/unistr/u32-strpbrk.c: New file.
58312         * lib/unistr/u-strpbrk.h: New file.
58313
58314         * modules/unistr/u8-strrchr: New file.
58315         * modules/unistr/u16-strrchr: New file.
58316         * modules/unistr/u32-strrchr: New file.
58317         * lib/unistr/u8-strrchr.c: New file.
58318         * lib/unistr/u16-strrchr.c: New file.
58319         * lib/unistr/u32-strrchr.c: New file.
58320
58321         * modules/unistr/u8-strspn: New file.
58322         * modules/unistr/u16-strspn: New file.
58323         * modules/unistr/u32-strspn: New file.
58324         * lib/unistr/u8-strspn.c: New file.
58325         * lib/unistr/u16-strspn.c: New file.
58326         * lib/unistr/u32-strspn.c: New file.
58327         * lib/unistr/u-strspn.h: New file.
58328
58329         * modules/unistr/u8-strstr: New file.
58330         * modules/unistr/u16-strstr: New file.
58331         * modules/unistr/u32-strstr: New file.
58332         * lib/unistr/u8-strstr.c: New file.
58333         * lib/unistr/u16-strstr.c: New file.
58334         * lib/unistr/u32-strstr.c: New file.
58335         * lib/unistr/u-strstr.h: New file.
58336
58337         * modules/unistr/u8-strtok: New file.
58338         * modules/unistr/u16-strtok: New file.
58339         * modules/unistr/u32-strtok: New file.
58340         * lib/unistr/u8-strtok.c: New file.
58341         * lib/unistr/u16-strtok.c: New file.
58342         * lib/unistr/u32-strtok.c: New file.
58343         * lib/unistr/u-strtok.h: New file.
58344
58345         * modules/unistr/u8-uctomb: New file.
58346         * modules/unistr/u16-uctomb: New file.
58347         * modules/unistr/u32-uctomb: New file.
58348         * lib/unistr/u8-uctomb.c: New file.
58349         * lib/unistr/u16-uctomb.c: New file.
58350         * lib/unistr/u32-uctomb.c: New file.
58351
58352         * MODULES.html.sh (Unicode string functions): Add the new modules.
58353
58354 2007-01-08  Bruno Haible  <bruno@clisp.org>
58355
58356         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58357         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58358         subdirectories.
58359
58360 2007-01-08  Karl Berry  <karl@gnu.org>
58361
58362         * doc/error.texi: mention that main() fns must set program_name
58363         when progname is used.
58364
58365 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58366
58367         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58368         WCTYPE_H is empty, for the benefit of builds from non-distclean
58369         directories.  Problem reported by Eric Blake in
58370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58371
58372 2007-01-08  Bruno Haible  <bruno@clisp.org>
58373
58374         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58375         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58376         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58377         PROVIDE_CANONICALIZE_FILENAME_MODE.
58378         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58379
58380 2007-01-08  Bruno Haible  <bruno@clisp.org>
58381
58382         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58383         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58384         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58385         * lib/fts.c: Likewise.
58386         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58387
58388 2006-12-25  Bruno Haible  <bruno@clisp.org>
58389
58390         * modules/utf8-ucs4-safe: New file.
58391         * lib/utf8-ucs4-safe.h: New file.
58392         * lib/unistr/utf8-ucs4-safe.c: New file.
58393
58394         * modules/utf16-ucs4-safe: New file.
58395         * lib/utf16-ucs4-safe.h: New file.
58396         * lib/unistr/utf16-ucs4-safe.c: New file.
58397
58398         * MODULES.html.sh (Unicode string functions): Add the new modules.
58399
58400 2007-01-08  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58403         (Depends-on): Add unitypes.
58404         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58405         (u8_mbtouc_aux): Move out to separate file.
58406         (u8_mbtouc): Use ucs4_t, uint8_t types.
58407         * lib/unistr/utf8-ucs4.c: New file.
58408
58409         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58410         (Depends-on): Add unitypes.
58411         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58412         (u16_mbtouc_aux): Move out to separate file.
58413         (u16_mbtouc): Use ucs4_t, uint16_t types.
58414         * lib/unistr/utf16-ucs4.c: New file.
58415
58416         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58417         (Depends-on): Add unitypes.
58418         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58419         (u8_uctomb_aux): Move out to separate file.
58420         (u8_uctomb): Use ucs4_t, uint8_t types.
58421         * lib/unistr/ucs4-utf8.c: New file.
58422
58423         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58424         (Depends-on): Add unitypes.
58425         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58426         (u16_uctomb_aux): Move out to separate file.
58427         (u16_uctomb): Use ucs4_t, uint16_t types.
58428         * lib/unistr/ucs4-utf16.c: New file.
58429
58430 2006-12-25  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/unitypes: New file.
58433         * lib/unitypes.h: New file.
58434         * MODULES.html.sh (func_all_modules): New section "Unicode string
58435         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58436         this section. Add unitypes.
58437
58438 2007-01-08  Bruno Haible  <bruno@clisp.org>
58439
58440         Avoid variable names that conflict with those from libtool.
58441         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58442         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58443         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58444         library_names_spec to acl_library_names_spec, hardcode_* to
58445         acl_hardcode_*.
58446         Reported by Ralf Wildenhues.
58447
58448 2007-01-08  Bruno Haible  <bruno@clisp.org>
58449
58450         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58451         definition.
58452         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58453         definition.
58454         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58455         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58456         definition.
58457         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58458         definition.
58459         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58460         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58461         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58462         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58463         definition.
58464         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58465         definition.
58466         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58467         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58468         GC_USE_<algorithm>.
58469         * lib/gc-libgcrypt.c: Likewise.
58470         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58471         * modules/gc-arctwo (configure.ac): Likewise.
58472         * modules/gc-des (configure.ac): Likewise.
58473         * modules/gc-hmac-md5 (configure.ac): Likewise.
58474         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58475         * modules/gc-md2 (configure.ac): Likewise.
58476         * modules/gc-md4 (configure.ac): Likewise.
58477         * modules/gc-md5 (configure.ac): Likewise.
58478         * modules/gc-random (configure.ac): Likewise.
58479         * modules/gc-rijndael (configure.ac): Likewise.
58480         * modules/gc-sha1 (configure.ac): Likewise.
58481
58482 2007-01-08  Bruno Haible  <bruno@clisp.org>
58483
58484         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58485         macro definition.
58486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58487         definition.
58488         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58489         definition.
58490         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58491         * modules/fcntl-safer (configure.ac): Likewise.
58492         * modules/fopen-safer (configure.ac): Likewise.
58493         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58494         GNULIB_FWRITEERROR macro definition.
58495
58496 2007-01-08  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/gnulib-common.m4: New file.
58499         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58500         (func_get_filelist): Add m4/gnulib-common.m4.
58501
58502 2007-01-08  Bruno Haible  <bruno@clisp.org>
58503
58504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58505         command.
58506
58507 2007-01-08  Jim Meyering  <jim@meyering.net>
58508
58509         Use a more robust test for a "can't happen" condition.
58510         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58511         narrowed the st_size value.  Presuming the "can't happen" condition
58512         is true, that narrowing could conceivably convert an invalid st_size
58513         value into a valid one.  Instead, use a change based on Matthew
58514         Woehlke's original patch.
58515
58516         Slight readability improvement: use an assert-like macro
58517         in place of literal "abort ()" uses.
58518         * lib/fts.c (fts_assert): Define.
58519         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58520         Use this macro instead of a bare 'abort'.
58521
58522 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58523
58524         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58525         simply work around them.
58526         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58527         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58528         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58529         declaring.
58530         Don't bother to define as macros, since the standard doesn't require it.
58531         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58532         longer worry about IRIX 5.3.
58533         (HAVE_WCTYPE_CTMP_BUG): Remove.
58534
58535 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58538         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58539         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58540         Problems reported by Georg Schwarz for IRIX 5.3.
58541
58542         * gnulib-tool (autoconf_minversion): Take the maximum version number
58543         found, not the minimum.  Problem reported by James Youngman.
58544
58545 2007-01-03  Karl Berry  <karl@gnu.org>
58546
58547         * doc/error.texi: new file, explaining interaction with progname.
58548         * doc/gnulib.texi: include it.  Update copyright.
58549
58550 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58551
58552         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58553         AC_CANONICAL_HOST, to improve autobuild outputs.
58554
58555 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58556             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58557
58558         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58559         sockets, server sockets, and other file descriptors.  Count errors
58560         to compute the return value.  Reorder the code a bit to be easier
58561         to follow.  Don't set event bits that were not requested (except
58562         POLLERR and POLLHUP).
58563
58564 2007-01-01  Bruno Haible  <bruno@clisp.org>
58565
58566         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58567
58568 2007-01-03  Jim Meyering  <jim@meyering.net>
58569
58570         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58571
58572 2007-01-02  Bruno Haible  <bruno@clisp.org>
58573
58574         * modules/settime (Include): Require timespec.h.
58575         * modules/nanosleep (Include): Likewise.
58576
58577 2007-01-01  Bruno Haible  <bruno@clisp.org>
58578
58579         * gnulib-tool (func_emit_copyright_notice): Bump year.
58580         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58581
58582 2007-01-01  Bruno Haible  <bruno@clisp.org>
58583
58584         Improve support for OpenBSD.
58585         * build-aux/config.rpath (libname_spec): Export.
58586         (library_names_spec): New variable. Export.
58587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58588         library_names_spec from the config.rpath output. Locate shared library
58589         through the name pattern in library_names_spec.
58590
58591 2007-01-01  Eric Blake  <ebb9@byu.net>
58592
58593         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58594
58595 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58598         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58599         assume the C locale, and avoid an "eval" that could cause trouble.
58600         Problem with SORT reported by Bob Proulx.
58601
58602         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58603         Define.  Trivial patch from Henning Nielsen Lund, originally
58604         sent to bug-grep@gnu.org today.
58605
58606 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58609         struct stat.  Problem reported by Henning Nielsen Lund.
58610         * lib/acl.c: Include acl.h first, to check interface.  Don't
58611         bother to include sys/types.h and sys/stat.h again.
58612
58613 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         Import the following change from libc; problem reported by
58616         Sven Verdoolaege.
58617
58618         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58619
58620         [BZ #1373]
58621         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58622
58623 2006-12-28  Jim Meyering  <jim@meyering.net>
58624
58625         * build-aux/announce-gen: Do not assume that the package
58626         builds any of tar.gz, tar.bz2, and .xdelta files.
58627         Suggestion from Simon Josefsson.
58628
58629 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58630
58631         * modules/announce-gen: New file.
58632
58633 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58634
58635         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58636         handles its gotchas now.
58637         * lib/mbswidth.c: Likewise.
58638         * lib/wcwidth.h: Likewise.
58639         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58640         and iswcntrl; the wctype module does this stuff now.
58641         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58643         * modules/mbchar (Depends-on): Add wctype.
58644         * modules/mbswidth (Depends-on): Likewise.
58645         * modules/wcwidth (Depends-on): Likewise.
58646
58647 2006-12-27  Eric Blake  <ebb9@byu.net>
58648
58649         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58650         module uses more than what <wctype.h> is required to provide.
58651
58652 2006-12-26  Eric Blake  <ebb9@byu.net>
58653
58654         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58655
58656 2006-12-26  Eric Blake  <ebb9@byu.net>
58657
58658         * modules/absolute-header: New module.
58659         * modules/fcntl (Depends-on): Depend on it.
58660         * modules/inttypes (Depends-on): Likewise.
58661         * modules/stdint (Depends-on): Likewise.
58662         * modules/sys_stat (Depends-on): Likewise.
58663         * modules/wctype (Depends-on): Likewise.
58664         * MODULES.html.sh (Support for building libraries and
58665         executables): Document it.
58666
58667 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * gnulib-tool (SED): Remove, undoing previous change.
58670         The problem was that it broke coreutils on Solaris, because
58671         "sed --posix" leaked into a makefile.
58672         (sed): New alias, if 'alias' and GNU sed.
58673
58674 2006-12-24  Jim Meyering  <jim@meyering.net>
58675
58676         Work around an fchownat bug in glibc-2.4:
58677         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58678         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58679         in spite of the -P option.
58680         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58681         New macros.
58682         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58683         * modules/openat (Files): Add lib/fchownat.c.
58684         * lib/openat.c (fchownat): Don't define here.  Move to...
58685         * lib/fchownat.c: ...this new file.
58686
58687 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         Fix bug reported by Bruno Haible in
58690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58691         where quotearg.c didn't compile on Mac OS X 10.2 because it
58692         lacks <wchar.h> and wint_t.
58693         * lib/wctype_.h (__wctype_wint_t): New type.
58694         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58695         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58696         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58697         Arg is now of type __wctype_wint_t, not wint_t.
58698         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58699         substitute HAVE_WINT_T.
58700         * modules/wctype (Files): Add m4/wint_t.m4.
58701         (wctype.h): Substitute HAVE_WINT_T.
58702
58703 2006-12-23  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58706
58707 2006-12-23  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58710         S_ISLNK.
58711         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58712         mingw.
58713
58714 2006-12-22  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/copy-file.c: Include acl.h.
58717         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58718         Close the file descriptors only after being done with copy_acl.
58719         * modules/copy-file (Depends-on): Add acl.
58720
58721 2006-12-22  Bruno Haible  <bruno@clisp.org>
58722
58723         * gnulib-tool (SED): New variable.
58724         Use $SED instead of sed everywhere.
58725
58726 2006-12-22  Bruno Haible  <bruno@clisp.org>
58727
58728         * modules/no-c++: New file.
58729         * m4/no-c++.m4: New file.
58730         * MODULES.html.sh (Support for building libraries and executables):
58731         Add no-c++.
58732
58733 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58734
58735         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58736         Include <limits.h>, and use its INT_MAX to rewrite the
58737         j loop so that it does not overflow 'int'.  Problem reported by
58738         Ralf Wildenhues in
58739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58740         Play it safe by shifting left by 1 rather than multiplying by 2,
58741         as GCC is less likely to optimize this away when the value
58742         is signed (when it assumes overflow leads to undefined behavior).
58743         Also, don't assume time_t uses two's complement.
58744
58745 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58746
58747         * MODULES.html.sh: New module wctype.
58748         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58749         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58750         <wctype.h>, since the new wctype module should fix this.
58751         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58752         the wctype module should arrange for it.
58753         * lib/regex_internal.h: Likewise.
58754         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58755         since the wctype module should handle this now.
58756         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58757         * modules/fnmatch (Depends-on): Add wctype.
58758         * modules/quotearg (Depends-on): Likewise.
58759         * modules/regex (Depends-on): Likewise.
58760
58761 2006-12-19  Bruno Haible  <bruno@clisp.org>
58762
58763         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58764         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58765
58766 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58767
58768         * modules/savewd (Depends-on): Fix dependency on fcntl.
58769
58770 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58771
58772         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58773         conforms to C99, rather than relying on the user's environment
58774         setting of STDINT_H.
58775
58776 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58777         and Eric Blake  <ebb9@byu.net>
58778
58779         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58780         This is more consistent with the other defines here.
58781         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58782         Port to z/OS.  Problem reported by Paul Gilmartin.
58783         Change local vars to use gl_ prefix rather than ac_.
58784         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58785         with other defines.
58786         * modules/double-slash-root: New module.
58787         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58788         (Depends-on): Add double-slash-root.
58789         * MODULES.html.sh (File system functions): Mention new module.
58790
58791 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58794         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58795         This is for the benefit of gzip, which doesn't do i18n.
58796
58797 2006-12-12  Jim Meyering  <jim@meyering.net>
58798
58799         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58800         Reported by Andreas Schwab <schwab@suse.de>.
58801
58802 2006-12-12  Bruno Haible  <bruno@clisp.org>
58803
58804         Merge these changes.
58805         2006-09-05  Bruno Haible  <bruno@clisp.org>
58806         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58807         iconv_alloc succeeded.
58808         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58809         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58810         test for " && dest " at the end - dest is always != NULL there. Call
58811         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58812         with 2xNULL arguments, also to flush the state storage. Handle the
58813         IRIX iconv behaviour. Realloc the final result, to throw away unused
58814         memory.
58815
58816 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58817
58818         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58819         and fchmodat unconditionally, since glibc 2.4 has them.
58820         Problem reported by Arkadiusz Miskiewicz.
58821
58822 2006-12-10  Bruno Haible  <bruno@clisp.org>
58823
58824         * gnulib-tool (func_import): Show the include files only for those
58825         modules that are copied and specified.
58826         Reported by Karl Berry.
58827
58828 2006-12-08  Jim Meyering  <jim@meyering.net>
58829
58830         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58831         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58832
58833         * build-aux/announce-gen: Add two new options, both optional:
58834         --bootstrap-tools=TOOL_LIST
58835               a comma-separated list of tools, e.g.,
58836               autoconf,automake,bison,gnulib
58837         --gnulib-snapshot-date=DATE
58838               if gnulib is in the bootstrap tool list,
58839               then report this as the snapshot date.
58840               If not specified, use the current date/time.
58841               If you specify a date here, be sure it's UTC.
58842
58843 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58844
58845         * tests/test-argp-2.sh: Fix test to match actual output.
58846         (func_compare): Fix sed script to be portable.
58847
58848 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58849
58850         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58851         workaround for this case.  It is not autoconfigured now; offhand
58852         it's hard to see how to autoconfigure it.
58853
58854 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58857         a directory that is about to be chowned.  Such a directory's
58858         initial file permissions should permit the owner only and this
58859         should not be changed until after the chown, since the group and
58860         other bits would be incorrect if they granted permission before
58861         the chown.
58862
58863         Fix porting problem for iswctype reported by Georg Schwarz in:
58864         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58865         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58866         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58867         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58868         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58869
58870 2006-12-03  Jim Meyering  <jim@meyering.net>
58871
58872         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58873         p->fts_statp may not yet be defined.
58874         (fts_read): Instead, set it in the caller, once p->fts_statp is
58875         sure to be defined, and corresponds to a top-level directory.
58876         This bug made du -x fail.  Here's the coreutils test case:
58877         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58878         Reported by Mike Frysinger.
58879
58880 2006-12-01  Jim Meyering  <jim@meyering.net>
58881
58882         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58883         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58884         Reported by Simon Josefsson.
58885
58886 2006-11-30  Jim Meyering  <jim@meyering.net>
58887
58888         * m4/warning.m4: Use the all-permissive copyright notice
58889         recommended by RMS (rather than LGPL).
58890         * m4/vararrays.m4: Likewise.
58891         * m4/flexmember.m4: Likewise.
58892
58893 2006-11-29  Bruno Haible  <bruno@clisp.org>
58894
58895         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58896         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58897         using +=.
58898         Reported by Simon Josefsson <simon@josefsson.org>.
58899
58900 2006-11-28  James Youngman <jay@gnu.org>
58901
58902         * README: Advise users that they might find the bug-gnulib@gnu.org
58903         and autotools-announce@gnu.org mailing lists useful.
58904
58905 2006-11-28  Bruno Haible  <bruno@clisp.org>
58906
58907         * m4/ptrdiff_max.m4: Remove file.
58908
58909 2006-11-21  Bruno Haible  <bruno@clisp.org>
58910
58911         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58912         _AC_COMPUTE_INT.
58913         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58914         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58915         _AC_COMPUTE_INT.
58916         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58917         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58918         _AC_COMPUTE_INT.
58919         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58920
58921 2006-11-28  Jim Meyering  <jim@meyering.net>
58922
58923         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58924         warning from "gcc -Wshadow" about shadowing the builtin.
58925
58926 2006-11-27  Bruno Haible  <bruno@clisp.org>
58927
58928         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58929         _AC_COMPUTE_INT.
58930         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58931
58932 2006-11-27  Bruno Haible  <bruno@clisp.org>
58933             Paul Eggert  <eggert@cs.ucla.edu>
58934
58935         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58936
58937 2006-11-26  Bruno Haible  <bruno@clisp.org>
58938
58939         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58940         noinst_LTLIBRARIES.
58941
58942 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58943             Bruno Haible  <bruno@clisp.org>
58944
58945         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58946         if compiling with "gcc -ansi".
58947
58948 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         Fix some incompatibilities with gcc -ansi -pedantic.
58951         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58952         if compiling pedantically with GCC, unless it's C99 or later.
58953         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58954         it mishandles gcc -ansi -pedantic as well.
58955         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58956         if gcc -pedantic.
58957         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58958         initializers for struct if -pedantic, unless it's C99 or later.
58959
58960 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58961
58962         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58963         Don't close an fd more than once. Identical atimes indicate
58964         success, not failure.
58965
58966 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58967
58968         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58969
58970 2006-11-23  Jim Meyering  <jim@meyering.net>
58971
58972         * build-aux/announce-gen: New file.  From coreutils.
58973
58974 2006-11-22  Jim Meyering  <jim@meyering.net>
58975
58976         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58977         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58978         (fts_read): Use a temporary to narrow the overused st_size member
58979         before using it in a switch statement.  Reported by Matthew Woehlke.
58980
58981         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58982         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58983
58984 2006-11-20  Bruno Haible  <bruno@clisp.org>
58985
58986         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58987         changequote instead of pairs of brackets.
58988         Reported by Andreas Schwab <schwab@suse.de>.
58989
58990 2006-11-21  Jim Meyering  <jim@meyering.net>
58991
58992         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58993         so as to remain compatible with older compilers.
58994         Patch from Michael Deutschmann.
58995
58996 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         * MODULES.html.sh (File system functions): Add openat.
58999
59000         * lib/openat.h (rpl_fstatat): New macro, if
59001         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59002         (fstatat): Define to rpl_fstatat under the same conditions,
59003         unless COMPILING_FSTATAT.
59004         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59005         seems to have the bug.
59006         * lib/fstatat.c: New file.
59007         * modules/openat (Files): Add it.
59008
59009 2006-11-20  Bruno Haible  <bruno@clisp.org>
59010
59011         * Makefile: New file.
59012
59013 2006-11-20  Jim Meyering  <jim@meyering.net>
59014
59015         The beginnings of syntax-related checks for gnulib.
59016         * lib/Makefile: New file.
59017         * lib/t-idcache: New script.  Ensure that the two halves of
59018         idcache.c stay in sync.
59019
59020         * lib/idcache.c: Adjust comments in user- and group- portions to
59021         be more accurate, and to be consistent with one another.
59022
59023 2006-11-20  Jim Meyering  <jim@meyering.net>
59024
59025         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59026         continue using the flexible array member (thus, this module performs
59027         half as many malloc calls), with the addition that...
59028         (getgroup, getuser): Consistently record a non-match via an empty
59029         "name" string, and map an empty string match to a NULL return value.
59030         * modules/idcache (Depends-on): Re-add flexmember.
59031
59032         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59033         (getuidbyname, getgroup, getgidbyname): Likewise.
59034
59035         Use cleaner syntax: NULL rather than 0.
59036         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59037
59038 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59041         It mishandled the case where the group was missing.
59042         Problem reported by Greg Schafer.
59043         * modules/idcache: Likewise.
59044
59045 2006-11-18  Jim Meyering  <jim@meyering.net>
59046
59047         * check-module (%exempt_header): Add exception for some
59048         conditionally-included headers.
59049
59050         * modules/i-ring (Depends-on): Add verify.
59051         (License): Change to LGPL.
59052
59053 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59054
59055         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59056         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59057         and inttostr.h.  Use snprintf rather than uinttostr, so that
59058         LGPLed code doesn't depend on GPLed.
59059
59060 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         * modules/inline (License): Change from GPL to LGPL.
59063
59064 2006-11-17  Jim Meyering  <jim@meyering.net>
59065
59066         * modules/d-type (License): Switch to LGPL.
59067
59068 2006-11-15  Bruno Haible  <bruno@clisp.org>
59069
59070         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59071
59072 2006-11-15  Eric Blake  <ebb9@byu.net>
59073
59074         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59075         the module dependency.
59076
59077 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59078             Bruno Haible  <bruno@clisp.org>
59079
59080         * gnulib-tool (func_create_testdir): Add license consistency check.
59081
59082 2006-11-15  Eric Blake  <ebb9@byu.net>
59083
59084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59085         random "(cached)" in configure output.
59086
59087 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59088
59089         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59090         test for conforming inttypes.h is both announced and cached.
59091
59092         * MODULES.html.sh (seen_modules, seen_files): New variables.
59093         (func_module): Rewrite to use a few less gnulib-tool and sed
59094         invocations.  Avoid a couple of quadratic algorithms for ...
59095         (missed_modules, missed_files): ... these, with ...
59096         (func_append, func_tmpdir): ... these new functions, from
59097         gnulib-tool.  Analogously, install traps for cleanup.
59098
59099         * tests/test-gc.c (main): Remove unused variables.
59100         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59101
59102 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59103
59104         * modules/inttostr (License): Change to LGPL.
59105
59106 2006-11-14  Eric Blake  <ebb9@byu.net>
59107
59108         * modules/tempname (License): Change to LGPL.
59109
59110 2006-11-14  Eric Blake  <ebb9@byu.net>
59111
59112         * doc/functions.texi (Function Portability): *printf functions on
59113         Cygwin now understand all POSIX size specifiers.
59114
59115 2006-11-14  Bruno Haible  <bruno@clisp.org>
59116
59117         * modules/c-ctype (License): Change to LGPL.
59118
59119 2006-11-12  Bruno Haible  <bruno@clisp.org>
59120
59121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59122         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59123         for GNOME libraries, for which the include files are installed in
59124         subdirectories of $prefix/include.
59125
59126 2006-11-12  Bruno Haible  <bruno@clisp.org>
59127
59128         * m4/lib-link.m4: Require at least autoconf-2.54.
59129         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59130         name to underscores for the --with option.
59131
59132 2006-11-13  Bruno Haible  <bruno@clisp.org>
59133
59134         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59135         the tests directory.
59136         Reported by Ralf Wildenhues.
59137
59138 2006-11-13  Bruno Haible  <bruno@clisp.org>
59139
59140         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59141         (func_emit_initmacro_end): Undo the override here.
59142         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59143         Works around the famous automake error in coreutils.
59144
59145 2006-11-13  Eric Blake  <ebb9@byu.net>
59146
59147         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59148         element, not its node.
59149
59150 2006-11-12  Bruno Haible  <bruno@clisp.org>
59151
59152         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59153         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59154
59155 2006-11-12  Bruno Haible  <bruno@clisp.org>
59156
59157         * gnulib-tool: New option --local-symlink.
59158         (func_usage): Document it.
59159         (lsymbolic): New variable.
59160         (func_import, func_create_testdir): If --symlink was not specified,
59161         test whether --local-symlink was specified and the file comes from
59162         the local_gnulib_dir.
59163
59164 2006-11-12  Bruno Haible  <bruno@clisp.org>
59165
59166         * gnulib-tool (func_ln): New function.
59167         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59168
59169 2006-11-12  Bruno Haible  <bruno@clisp.org>
59170
59171         Finish support for source files in subdirectories.
59172         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59173         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59174         AUTOMAKE_OPTIONS.
59175         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59176
59177 2006-11-12  Bruno Haible  <bruno@clisp.org>
59178
59179         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59180         EXTRA_lib_SOURCES augmentation.
59181         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59182
59183 2006-11-12  Jim Meyering  <jim@meyering.net>
59184
59185         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59186         file descriptors.  This also averts a failure on systems with
59187         native openat support when a traversed directory lacks "x" access.
59188         * lib/fts_.h: Include "i-ring.h"
59189         (struct FTS) [fts_fd_ring]: New member.
59190         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59191         (FCHDIR): Add parentheses.
59192         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59193         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59194         When descending, rather than simply closing the previous
59195         fts_cwd_fd value, push that file descriptor onto the ring.
59196         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59197         (fts_open): Initialize the new fd_ring member.
59198         (fts_close): Clear the ring.
59199         (fts_safe_changedir): When possible, use our new fd_ring to skip
59200         the diropen and fstat and dev/ino comparison that would normally
59201         accompany a virtual `chdir ("..")'.
59202
59203         * modules/fts (Depends-on): Add i-ring.
59204         * modules/i-ring: New module.
59205         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59206         * m4/i-ring.m4: New file.
59207
59208 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59209
59210         * gnulib-tool (func_create_testdir): Fix replacement of
59211         `build-aux' in configure.ac.  Run autotools in gltests
59212         subdirectory.
59213         (func_create_testdir, func_create_megatestdir, test): There is
59214         no need for '--force' in most autotool invocations in a new
59215         tree.  Actually fail the whole test if any of the tools, or the
59216         configure or make stages fail.
59217
59218         Sync from Automake.
59219         * build-aux/gnupload: Revert last change.  Add pointer to upload
59220         instructions of the GNU Maintenance Instructions.
59221         Suggestion by Karl Berry.
59222
59223 2006-11-10  Jim Meyering  <jim@meyering.net>
59224
59225         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59226
59227 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59230         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59231         (bind_textdomain_codeset) [! ENABLE_NLS]:
59232         Evaluate all the arguments.  That way, callers get compatible behavior
59233         if the arguments have side effects.  Also, it avoids some GCC
59234         diagnostics in some cases; Joel E. Denny reported problems when Bison
59235         was configured with --enable-gcc-warnigs.
59236
59237 2006-11-10  Jim Meyering  <jim@meyering.net>
59238
59239         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59240         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59241         account.
59242
59243 2006-11-10  Jim Meyering  <jim@meyering.net>
59244
59245         * modules/inline: New file/module.
59246         * modules/xalloc (Files): Remove m4/inline.m4.
59247         (Depends-on): Add inline, instead.
59248         * modules/oset: Likewise.
59249         * modules/list: Likewise.
59250
59251 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59252
59253         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59254         Problem reported by Matthew Woehlke.
59255
59256 2006-11-09  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/tempname.c (gen_tempname): Remove variant that invokes
59259         __gen_tempname.
59260         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59261         __gen_tempname.
59262
59263 2006-11-08  Bruno Haible  <bruno@clisp.org>
59264
59265         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59266         to 'yes' instead of 'cross-compiling'.
59267
59268 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59269
59270         * lib/quotearg.h (quotearg_free): New decl.
59271         * lib/quotearg.c (quotearg_free): New function.
59272         (slot0, nslots, slotvec0, slotvec):
59273         Now file-scope so that quotearg_free can get at them.
59274
59275 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59276
59277         Sync from Automake.
59278         * build-aux/gnupload: Add missing 'gnu' to example URL.
59279         Report by Karl Berry.
59280
59281 2006-11-08  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59284         Suggested by Paul Eggert.
59285
59286 2006-11-08  Jim Meyering  <jim@meyering.net>
59287
59288         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59289         It's already included if !_LIBC.
59290         (fts_safe_changedir): Add a comment.
59291
59292 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59293
59294         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59295         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59296         Matthew Woehlke.
59297
59298         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59299         definitions up, to avoid colliding with change below.
59300         (static_inline) [HAVE_INLINE]: New macro.
59301         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59302         Provide extern decls when !HAVE_INLINE.  Do not define unless
59303         static_inline is defined, either by us or by xmalloc.c.  Use
59304         static_inline rather than static inline.
59305         (XCALLOC): Optimize sizeof(T) = 1 case.
59306         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59307
59308 2006-11-07  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59311         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59312         AC_C_INLINE.
59313         * modules/xalloc (Files): Add m4/inline.m4.
59314
59315 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59316
59317         * README: Fix typo.
59318         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59319         (Miscellanous Notes): ...from this.
59320
59321 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59324         Mention that offsetof should be used instead of sizeof.
59325         From Bruno Haible.
59326
59327 2006-11-07  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59330
59331 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59332
59333         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59334         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59335         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59336         (gl_tree_add_before, gl_tree_add_after):
59337         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59338         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59339         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59340         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59341         (gl_linked_add_after, gl_linked_add_at): Likewise.
59342         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59343         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59344         (gl_tree_add_before, gl_tree_add_after): Likewise.
59345         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59346         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59347         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59348
59349 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59350
59351         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59352
59353 2006-11-06  Bruno Haible  <bruno@clisp.org>
59354
59355         * m4/inline.m4: New file.
59356         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59357         * modules/list (Files): Add m4/inline.m4.
59358         * modules/oset (Files): Likewise.
59359
59360 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59361
59362         * lib/idcache.c: Include <stddef.h>, for offsetof.
59363         (struct userid.name): Change from char * to a flexible array member.
59364         All uses changed.
59365         * modules/idcache (Depends-on): Add flexmember.
59366
59367         * MODULES.html.sh (Core language properties): New module flexmember.
59368         * modules/flexmember, m4/flexmember.m4: New files.
59369
59370         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59371         inline functions that are identical with the old xnmalloc_inline,
59372         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59373         that we can avoid some unnecessary integer multiplications and
59374         divisions in the common case where the element size is known at
59375         compile time.
59376         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59377         needed.
59378         (xnboundedmalloc): Remove.
59379         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59380         arguments, for consistency with rest of this header.
59381         (xcharalloc): Rewrite using XNMALLOC.
59382         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59383         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59384         versions have been moved to lib/xalloc.h and renamed to be the
59385         non-*_inline versions.
59386         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59387         and xnrealloc functions, since those functions are now inline and
59388         now call us.
59389         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59390         renaming described above.
59391         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59392         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59393         captures the dependency in AC_C_INLINE.
59394
59395         New module canonicalize-lgpl, proposed by Charles Wilson in
59396         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59397         with a few small changes afterwards.
59398         * MODULES.html.sh (File system functions): New module
59399         canonicalize-lgpl.
59400         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59401         and canonicalize_file_name.
59402         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59403         * modules/canonicalize-lgpl: New files.
59404
59405 2006-11-05  Bruno Haible  <bruno@clisp.org>
59406
59407         * gnulib-tool (func_import, func_create_testdir): Create directories
59408         also for files in subdirectories of lib/.
59409
59410 2006-11-05  Bruno Haible  <bruno@clisp.org>
59411
59412         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59413         ANSI C compliant.
59414
59415 2006-11-03  Bruno Haible  <bruno@clisp.org>
59416
59417         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59418         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59419         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59420         (xnboundedmalloc): New inline function.
59421         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59422         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59423         xmalloc.
59424         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59425         xmalloc.
59426         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59427         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59428         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59429         xmalloc.
59430         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59431         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59432         xmalloc.
59433         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59434         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59435         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59436         xmalloc.
59437         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59438         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59439         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59440         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59441         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59442         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59443         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59444
59445 2006-11-03  Bruno Haible  <bruno@clisp.org>
59446
59447         * lib/c-ctype.h [C++]: Define functions without name mangling.
59448         * lib/fwriteerror.h [C++]: Likewise.
59449         * lib/gcd.h [C++]: Likewise.
59450         * lib/linebreak.h [C++]: Likewise.
59451
59452 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59455         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59456         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59458         Check for functions and headers just once.
59459         Check for declaration of canonicalize_file_name.
59460         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59461
59462 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59463
59464         * gnulib-tool (func_import): Fix typo in actioncmd.
59465
59466 2006-11-02  Bruno Haible  <bruno@clisp.org>
59467
59468         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59469         newline sequence in the Makefile.am snippet as a space, like "make"
59470         does.
59471         Reported by Roger Persson <perrog@gmail.com>.
59472
59473 2006-11-01  Bruno Haible  <bruno@clisp.org>
59474
59475         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59476         already declared in <string.h>.
59477         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59478
59479 2006-11-01  Bruno Haible  <bruno@clisp.org>
59480
59481         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59482         * lib/strcase.h: Include <string.h>.
59483         (strcasecmp): Define to rpl_strcasecmp here.
59484
59485 2006-11-01  Bruno Haible  <bruno@clisp.org>
59486
59487         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59488
59489 2006-11-01  Eric Blake  <ebb9@byu.net>
59490
59491         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59492
59493         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59494
59495 2006-10-29  Bruno Haible  <bruno@clisp.org>
59496
59497         Make it compile in C++ mode.
59498         * lib/full-write.c (full_rw): Add a cast.
59499
59500 2006-11-01  Bruno Haible  <bruno@clisp.org>
59501
59502         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59503         be POSIX compliant.
59504         Reported by Roger Persson <perrog@gmail.com>.
59505
59506 2006-11-01  Eric Blake  <ebb9@byu.net>
59507
59508         * lib/getopt_.h: Fix comments.
59509
59510 2006-10-31  Eric Blake  <ebb9@byu.net>
59511
59512         * modules/tmpdir (Depends-on): Add sys_stat.
59513         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59514         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59515         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59516         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59517         tempname.
59518
59519 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         Avoid some C++ diagnostics reported by Bruno Haible.
59522         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59523         xmalloc.
59524         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59525         (struct slotvec): Move to top level.
59526         (quotearg_n_options): Rewrite to avoid xmalloc.
59527         * lib/xalloc.h (xcharalloc): New function.
59528         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59529         [defined __cplusplus]: Add function template that provides result
59530         type propagation.  This part of the change is from Bruno Haible.
59531
59532 2006-10-29  Bruno Haible  <bruno@clisp.org>
59533
59534         Make it compile in C++ mode.
59535         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59536         * lib/strnlen1.c (strnlen1): Cast memchr result.
59537         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59538         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59539         (create_temp_dir): Rename local variable 'template'.
59540         (compile_csharp_using_sscli): Add cast.
59541         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59542         * lib/findprog.c (find_in_path): Likewise.
59543         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59544         * lib/wait-process.c (register_slave_subprocess): Likewise.
59545
59546 2006-10-22  Bruno Haible  <bruno@clisp.org>
59547
59548         * modules/tsearch: New file.
59549         * lib/tsearch.h: New file.
59550         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59551         * m4/tsearch.m4: New file.
59552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59553
59554 2006-10-29  Eric Blake  <ebb9@byu.net>
59555
59556         * lib/arcfour.c: Assume config.h.
59557         * lib/arctwo.c: Likewise.
59558         * lib/base64.c: Likewise.
59559         * lib/check-version.c: Likewise.
59560         * lib/crc.c: Likewise.
59561         * lib/des.c: Likewise.
59562         * lib/gc-gnulib.c: Likewise.
59563         * lib/gc-libgcrypt.c: Likewise.
59564         * lib/gc-pbkdf2-sha1.c: Likewise.
59565         * lib/getaddrinfo.c: Likewise.
59566         * lib/getdelim.c: Likewise.
59567         * lib/getline.c: Likewise.
59568         * lib/hmac-md5.c: Likewise.
59569         * lib/hmac-sha1.c: Likewise.
59570         * lib/iconvme.c: Likewise.
59571         * lib/md2.c: Likewise.
59572         * lib/md4.c: Likewise.
59573         * lib/memxor.c: Likewise.
59574         * lib/read-file.c: Likewise.
59575         * lib/readline.c: Likewise.
59576         * lib/rijndael-alg-fst.c: Likewise.
59577         * lib/rijndael-api-fst.c: Likewise.
59578         * lib/xgetdomainname.c: Likewise.
59579
59580 2006-10-28  Eric Blake  <ebb9@byu.net>
59581
59582         * lib/xstrndup.c: Assume config.h.
59583
59584 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59587         stat-macros.h is now for our own macros, whereas stat_h is for
59588         macros in the <sys/stat.h> name space.
59589         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59590         (STAT_MACROS_H): Remove.
59591         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59592         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59593         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59594         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59595         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59596         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59597         Move these macros to ...
59598         * lib/stat_.h: here.  Don't include stat-macros.h.
59599         * lib/canonicalize.c: Don't include stat-macros.h.
59600         * lib/chown.c: Likewise.
59601         * lib/euidaccess.c: Likewise.
59602         * lib/file-type.c: Likewise.
59603         * lib/filemode.c: Likewise.
59604         * lib/glob.c: Likewise.
59605         * lib/isapipe.c: Likewise.
59606         * lib/lchown.c: Likewise.
59607         * lib/lstat.c: Likewise.
59608         * lib/mkdir-p.c: Likewise.
59609         * lib/rmdir.c: Likewise.
59610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59612         unless mkdir isn't declared, to speed up 'configure'.
59613         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59614         would define all the S_* symbols.
59615         * modules/canonicalize (Depends-on):
59616         Depend on sys_stat, not stat-macros.
59617         * modules/chown: Likewise.
59618         * modules/euidaccess: Likewise.
59619         * modules/filemode: Likewise.
59620         * modules/file-type: Likewise.
59621         * modules/glob: Likewise.
59622         * modules/isapipe: Likewise.
59623         * modules/lchown: Likewise.
59624         * modules/lstat: Likewise.
59625         * modules/mkancesdirs: Likewise.
59626         * modules/rmdir: Likewise.
59627         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59628         * modules/modechange: Likewise.
59629         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59630         (configure.ac): Remove gl_STAT_MACROS.
59631         * modules/sys_stat (Depends-on): Remove stat-macros.
59632
59633 2006-10-27  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/signed.m4: Remove file.
59636         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59637         invocation.
59638         * modules/vasnprintf (Files): Remove m4/signed.m4.
59639
59640 2006-10-27  Bruno Haible  <bruno@clisp.org>
59641
59642         Update to GNU gettext 0.16.
59643         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59644         m4/inttypes-h.m4, m4/signed.m4.
59645         * m4/gettext.m4: Update to GNU gettext 0.16.
59646         * m4/intl.m4: New file, from GNU gettext.
59647         * m4/intldir.m4: New file, from GNU gettext.
59648         * config/srclist.txt: Update
59649
59650 2006-10-27  Eric Blake  <ebb9@byu.net>
59651
59652         * MODULES.html.sh: Document tempname.
59653         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59654         dependencies.
59655         (Files): Move lib/tempname.c...
59656         * modules/tempname: ...to this new module.
59657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59658         (gl_PREREQ_TEMPNAME): Move...
59659         * m4/tempname.m4: ...to this new file.
59660         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59661         * modules/sys_stat (Depends-on): Add stat-macros.
59662         * lib/stat_.h (includes): Pick up stat macros.
59663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59664         if stat macros are broken.
59665         * lib/tempname.c (includes): No need to include "stat-macros.h".
59666         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59667         (direxists, __path_search) [!_LIBC]: Don't compile these in
59668         gnulib; the tmpdir module covers that.
59669         * lib/tempname.h: New file.
59670
59671 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59672
59673         * COPYING: Explain how gnulib-tool converts licence headers.
59674         Almost all wording by Eric Blake.
59675
59676 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59677
59678         * lib/mbchar.h (is_basic_table): Make read-only.
59679         * lib/mbchar.c (is_basic_table): Likewise.
59680         Reported by John Darrington.
59681
59682 2006-10-25  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/progname.h (set_program_name): Undefine before defining.
59685
59686 2006-10-25  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59689         false for non-gcc C++ compilers.
59690         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59691
59692 2006-10-24  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59695         iconv implementations like Irix iconv.
59696
59697 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         * modules/vararrays: New file.
59700         * m4/vararrays.m4: New file, taken from diffutils.
59701         * MODULES.html.sh: New module vararrays.
59702
59703 2006-10-24  Karl Berry  <karl@gnu.org>
59704
59705         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59706         Don't call GNU Unix.
59707
59708 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59709
59710         * users.txt: Add Libtool.
59711
59712         Sync from Libtool:
59713
59714         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59717         to gnulib's policy of including config.h unconditionally.
59718
59719 2006-10-24  Bruno Haible  <bruno@clisp.org>
59720
59721         * modules/wcwidth (Files): Add m4/wint_t.m4.
59722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59723         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59724
59725 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59728         to pacify GCC with some -W flags enabled.  Problem reported by
59729         Bruno Haible.
59730
59731 2006-10-24  Jim Meyering  <jim@meyering.net>
59732
59733         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59734         Reported by Karl Berry.
59735
59736 2006-10-23  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59739
59740 2006-10-24  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/gl_list.h: Use C comment style, not C++ comment style.
59743
59744 2006-10-23  Eric Blake  <ebb9@byu.net>
59745
59746         * lib/getaddrinfo.c (includes): Add missing include.
59747
59748 2006-10-23  Bruno Haible  <bruno@clisp.org>
59749             Paul Eggert  <eggert@cs.ucla.edu>
59750
59751         Ability to rename obstack_free.
59752         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59753         obstack_free.
59754         (obstack_free): Invoke the __obstack_free macro.
59755         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59756
59757 2006-10-23  Bruno Haible  <bruno@clisp.org>
59758             Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59761         __argc, __argv from the declaration. (They are defined as macros on
59762         mingw.)
59763
59764 2006-10-22  Bruno Haible  <bruno@clisp.org>
59765
59766         * doc/gnulib-intro.texi: New file.
59767         * doc/gnulib.texi: Include it.
59768
59769 2006-10-21  Bruno Haible  <bruno@clisp.org>
59770
59771         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59772         "Introduction", "Miscellanous Notes", "Particular Modules".
59773
59774 2006-10-21  Bruno Haible  <bruno@clisp.org>
59775
59776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59777         Change mostlyclean-local rule to avoid sh syntax error from bash
59778         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59779
59780 2006-10-23  Jim Meyering  <jim@meyering.net>
59781
59782         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59783         in place of snprintf.
59784
59785         * modules/inttostr (Files): Add lib/uinttostr.c.
59786         * lib/uinttostr.c (inttostr): New file/function.
59787         * lib/inttostr.h (uinttostr): Declare.
59788         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59789         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59790         Add uinttostr.
59791         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59792
59793 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59794
59795         * lib/canonicalize.c (ELOOP): Define if not already defined.
59796         Problem reported by Bruno Haible in
59797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59798
59799 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59802         Problem reported by Perry Smith and Ville Laurikari.
59803
59804         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59805         uses.
59806
59807 2006-10-19  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59810         for mingw.
59811
59812 2006-10-19  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59815         Needed for mingw.
59816
59817 2006-10-19  Bruno Haible  <bruno@clisp.org>
59818
59819         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59820
59821 2006-10-19  Bruno Haible  <bruno@clisp.org>
59822
59823         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59824         it.
59825
59826 2006-10-19  Bruno Haible  <bruno@clisp.org>
59827
59828         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59829         invocation.
59830
59831 2006-10-19  Bruno Haible  <bruno@clisp.org>
59832
59833         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59834         mountlist by default.
59835
59836 2006-10-16  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/c-strstr.c: Include c-strstr.h.
59839
59840 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59841
59842         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59843         in a slash.
59844
59845 2006-10-18  Bruno Haible  <bruno@clisp.org>
59846
59847         * lib/lock.h [C++]: Wrap definitions in extern "C".
59848
59849 2006-10-18  Bruno Haible  <bruno@clisp.org>
59850
59851         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59852         gl_LIBOBJS list.
59853
59854 2006-10-18  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59857
59858 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59859
59860         * lib/xstrtol.h: Include gettext.h.
59861         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59862         Problem reported by Eric Blake.
59863         * modules/xstrtol (Depends-on): Add gettext-h.
59864
59865 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59866
59867         * lib/strftime.c (advance): New macro.
59868         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59869         incomplete type, so you can't add 0 to it.  Problem and patch
59870         reported by Eelco Dolstra for dietlibc.
59871
59872 2006-10-18  Jim Meyering  <jim@meyering.net>
59873
59874         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59875         type for a local, and rename it: s/up/user_proc/.
59876
59877 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59878
59879         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59880         READ_UTMP_USER_PROCESS.
59881         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59882
59883 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59886         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59887
59888 2006-10-17  Eric Blake  <ebb9@byu.net>
59889
59890         * lib/sigprocmask.c (sigprocmask): Fix typo.
59891
59892         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59893
59894         * modules/clean-temp (Makefile.am): Don't add to make output...
59895         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59896         config.h.
59897
59898 2006-10-17  Bruno Haible  <bruno@clisp.org>
59899
59900         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59901         differently if DEFAULT_TEXT_DOMAIN is set.
59902
59903 2006-10-16  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/clean-temp.c: Include fwriteerror.h.
59906
59907 2006-10-16  Bruno Haible  <bruno@clisp.org>
59908
59909         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59910
59911 2006-10-16  Bruno Haible  <bruno@clisp.org>
59912
59913         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59914         * lib/sigprocmask.h: Include <sys/types.h>.
59915         (sigset_t): Use the system's definition if present.
59916
59917 2006-10-17  Eric Blake  <ebb9@byu.net>
59918
59919         * lib/xvasprintf.c (includes): Assume config.h.
59920         * lib/xasprintf.c (includes): Likewise.
59921
59922 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59925         at least as wide as intmax_t.
59926
59927 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59928
59929         (Imported from Automake.)
59930         * build-aux/gnupload: Update to version 1.1 of directive file.
59931
59932 2006-10-16  Eric Blake  <ebb9@byu.net>
59933
59934         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59935         match Automake 1.10a.
59936
59937 2006-10-14  Bruno Haible  <bruno@clisp.org>
59938
59939         * modules/sigprocmask: New file.
59940         * lib/sigprocmask.h: New file.
59941         * lib/sigprocmask.c: New file.
59942         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59943         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59944         request sigprocmask.o.
59945         (gl_PREREQ_SIGPROCMASK): New macro.
59946         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59947         (Depends-on): Add sigprocmask.
59948         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59949         gt_SIGNALBLOCKING. Test for 'raise' only once.
59950         * lib/fatal-signal.c: Include sigprocmask.h.
59951         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59952         unblock_fatal_signals): Define always.
59953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59954         sigprocmask.
59955
59956 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         Sync from Automake.
59959         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59960         which incorrectly sets the mode of an existing destination
59961         directory.  In some cases the unpatched install-sh could do the
59962         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59963         system.  We hope this is rare in practice, but it's clearly worth
59964         fixing.  Problem reported by Alex Unleashed in
59965         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59966         Also, don't bother to check for -m bugs unless we're using -m;
59967         suggested by Stepan Kasal.
59968
59969 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59970
59971         Sync from Automake.
59972         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59973         `-c' flag, so they appear at the same position as in %FASTDEP%
59974         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59975         which ignores unknown options only after the first non-option.
59976         Bug report against M4 by Nelson H. F. Beebe.
59977
59978 2006-10-13  Jim Meyering  <jim@meyering.net>
59979
59980         Fix a bug in yesterday's change.
59981         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59982         p->fts_statp->st_dev would be used uninitialized.
59983         Ensures that we always call fts_stat on the very first entry.
59984         Miklos Szeredi reported that find -xdev stopped working.
59985
59986 2006-10-12  Bruno Haible  <bruno@clisp.org>
59987
59988         * gnulib-tool (func_get_automake_snippet): Append an automatically
59989         computed EXTRA_DIST augmentation.
59990         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59991         * modules/alloca-opt (Makefile.am): Likewise.
59992         * modules/allocsa (Makefile.am): Likewise.
59993         * modules/arcfour (Makefile.am): Likewise.
59994         * modules/arctwo (Makefile.am): Likewise.
59995         * modules/argmatch (Makefile.am): Likewise.
59996         * modules/argz (Makefile.am): Likewise.
59997         * modules/atexit (Makefile.am): Likewise.
59998         * modules/backupfile (Makefile.am): Likewise.
59999         * modules/byteswap (Makefile.am): Likewise.
60000         * modules/c-strtod (Makefile.am): Likewise.
60001         * modules/c-strtold (Makefile.am): Likewise.
60002         * modules/calloc (Makefile.am): Likewise.
60003         * modules/canon-host (Makefile.am): Likewise.
60004         * modules/canonicalize (Makefile.am): Likewise.
60005         * modules/chdir-long (Makefile.am): Likewise.
60006         * modules/chdir-safer (Makefile.am): Likewise.
60007         * modules/check-version (Makefile.am): Likewise.
60008         * modules/chown (Makefile.am): Likewise.
60009         * modules/cloexec (Makefile.am): Likewise.
60010         * modules/close-stream (Makefile.am): Likewise.
60011         * modules/closeout (Makefile.am): Likewise.
60012         * modules/crc (Makefile.am): Likewise.
60013         * modules/csharpexec (Makefile.am): Likewise.
60014         * modules/cycle-check (Makefile.am): Likewise.
60015         * modules/des (Makefile.am): Likewise.
60016         * modules/dev-ino (Makefile.am): Likewise.
60017         * modules/dirfd (Makefile.am): Likewise.
60018         * modules/dirname (Makefile.am): Likewise.
60019         * modules/dup2 (Makefile.am): Likewise.
60020         * modules/eealloc (Makefile.am): Likewise.
60021         * modules/error (Makefile.am): Likewise.
60022         * modules/euidaccess (Makefile.am): Likewise.
60023         * modules/exclude (Makefile.am): Likewise.
60024         * modules/exitfail (Makefile.am): Likewise.
60025         * modules/fcntl-safer (Makefile.am): Likewise.
60026         * modules/fcntl (Makefile.am): Likewise.
60027         * modules/file-type (Makefile.am): Likewise.
60028         * modules/fileblocks (Makefile.am): Likewise.
60029         * modules/filemode (Makefile.am): Likewise.
60030         * modules/filenamecat (Makefile.am): Likewise.
60031         * modules/fnmatch (Makefile.am): Likewise.
60032         * modules/fopen-safer (Makefile.am): Likewise.
60033         * modules/fpending (Makefile.am): Likewise.
60034         * modules/fprintftime (Makefile.am): Likewise.
60035         * modules/free (Makefile.am): Likewise.
60036         * modules/fsusage (Makefile.am): Likewise.
60037         * modules/ftruncate (Makefile.am): Likewise.
60038         * modules/fts (Makefile.am): Likewise.
60039         * modules/gc-arcfour (Makefile.am): Likewise.
60040         * modules/gc-des (Makefile.am): Likewise.
60041         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60042         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60043         * modules/gc-md4 (Makefile.am): Likewise.
60044         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60045         * modules/gc-sha1 (Makefile.am): Likewise.
60046         * modules/gc (Makefile.am): Likewise.
60047         * modules/getaddrinfo (Makefile.am): Likewise.
60048         * modules/getcwd (Makefile.am): Likewise.
60049         * modules/getdelim (Makefile.am): Likewise.
60050         * modules/getdomainname (Makefile.am): Likewise.
60051         * modules/getgroups (Makefile.am): Likewise.
60052         * modules/gethostname (Makefile.am): Likewise.
60053         * modules/gethrxtime (Makefile.am): Likewise.
60054         * modules/getline (Makefile.am): Likewise.
60055         * modules/getloadavg (Makefile.am): Likewise.
60056         * modules/getlogin_r (Makefile.am): Likewise.
60057         * modules/getndelim2 (Makefile.am): Likewise.
60058         * modules/getopt (Makefile.am): Likewise.
60059         * modules/getpagesize (Makefile.am): Likewise.
60060         * modules/getpass-gnu (Makefile.am): Likewise.
60061         * modules/getpass (Makefile.am): Likewise.
60062         * modules/getsubopt (Makefile.am): Likewise.
60063         * modules/gettime (Makefile.am): Likewise.
60064         * modules/gettimeofday (Makefile.am): Likewise.
60065         * modules/getugroups (Makefile.am): Likewise.
60066         * modules/getusershell (Makefile.am): Likewise.
60067         * modules/glob (Makefile.am): Likewise.
60068         * modules/group-member (Makefile.am): Likewise.
60069         * modules/hard-locale (Makefile.am): Likewise.
60070         * modules/hash (Makefile.am): Likewise.
60071         * modules/hmac-md5 (Makefile.am): Likewise.
60072         * modules/hmac-sha1 (Makefile.am): Likewise.
60073         * modules/human (Makefile.am): Likewise.
60074         * modules/idcache (Makefile.am): Likewise.
60075         * modules/imaxabs (Makefile.am): Likewise.
60076         * modules/imaxdiv (Makefile.am): Likewise.
60077         * modules/inet_ntop (Makefile.am): Likewise.
60078         * modules/inet_pton (Makefile.am): Likewise.
60079         * modules/intprops (Makefile.am): Likewise.
60080         * modules/inttostr (Makefile.am): Likewise.
60081         * modules/inttypes (Makefile.am): Likewise.
60082         * modules/isapipe (Makefile.am): Likewise.
60083         * modules/javaversion (Makefile.am): Likewise.
60084         * modules/lchmod (Makefile.am): Likewise.
60085         * modules/lchown (Makefile.am): Likewise.
60086         * modules/localcharset (Makefile.am): Likewise.
60087         * modules/long-options (Makefile.am): Likewise.
60088         * modules/lstat (Makefile.am): Likewise.
60089         * modules/malloc (Makefile.am): Likewise.
60090         * modules/mathl (Makefile.am): Likewise.
60091         * modules/mbchar (Makefile.am): Likewise.
60092         * modules/md2 (Makefile.am): Likewise.
60093         * modules/md4 (Makefile.am): Likewise.
60094         * modules/md5 (Makefile.am): Likewise.
60095         * modules/memcasecmp (Makefile.am): Likewise.
60096         * modules/memchr (Makefile.am): Likewise.
60097         * modules/memcmp (Makefile.am): Likewise.
60098         * modules/memcoll (Makefile.am): Likewise.
60099         * modules/memcpy (Makefile.am): Likewise.
60100         * modules/memmem (Makefile.am): Likewise.
60101         * modules/memmove (Makefile.am): Likewise.
60102         * modules/mempcpy (Makefile.am): Likewise.
60103         * modules/memrchr (Makefile.am): Likewise.
60104         * modules/memset (Makefile.am): Likewise.
60105         * modules/memxor (Makefile.am): Likewise.
60106         * modules/mkancesdirs (Makefile.am): Likewise.
60107         * modules/mkdir-p (Makefile.am): Likewise.
60108         * modules/mkdir (Makefile.am): Likewise.
60109         * modules/mkdtemp (Makefile.am): Likewise.
60110         * modules/mkstemp (Makefile.am): Likewise.
60111         * modules/mktime (Makefile.am): Likewise.
60112         * modules/modechange (Makefile.am): Likewise.
60113         * modules/mountlist (Makefile.am): Likewise.
60114         * modules/nanosleep (Makefile.am): Likewise.
60115         * modules/obstack (Makefile.am): Likewise.
60116         * modules/openat (Makefile.am): Likewise.
60117         * modules/pagealign_alloc (Makefile.am): Likewise.
60118         * modules/pathmax (Makefile.am): Likewise.
60119         * modules/physmem (Makefile.am): Likewise.
60120         * modules/poll (Makefile.am): Likewise.
60121         * modules/posixtm (Makefile.am): Likewise.
60122         * modules/posixver (Makefile.am): Likewise.
60123         * modules/putenv (Makefile.am): Likewise.
60124         * modules/quote (Makefile.am): Likewise.
60125         * modules/quotearg (Makefile.am): Likewise.
60126         * modules/raise (Makefile.am): Likewise.
60127         * modules/read-file (Makefile.am): Likewise.
60128         * modules/readline (Makefile.am): Likewise.
60129         * modules/readlink (Makefile.am): Likewise.
60130         * modules/readtokens (Makefile.am): Likewise.
60131         * modules/readutmp (Makefile.am): Likewise.
60132         * modules/realloc (Makefile.am): Likewise.
60133         * modules/regex (Makefile.am): Likewise.
60134         * modules/rename-dest-slash (Makefile.am): Likewise.
60135         * modules/rename (Makefile.am): Likewise.
60136         * modules/rijndael (Makefile.am): Likewise.
60137         * modules/rmdir (Makefile.am): Likewise.
60138         * modules/rpmatch (Makefile.am): Likewise.
60139         * modules/safe-read (Makefile.am): Likewise.
60140         * modules/safe-write (Makefile.am): Likewise.
60141         * modules/same-inode (Makefile.am): Likewise.
60142         * modules/same (Makefile.am): Likewise.
60143         * modules/save-cwd (Makefile.am): Likewise.
60144         * modules/savedir (Makefile.am): Likewise.
60145         * modules/setenv (Makefile.am): Likewise.
60146         * modules/settime (Makefile.am): Likewise.
60147         * modules/sha1 (Makefile.am): Likewise.
60148         * modules/sig2str (Makefile.am): Likewise.
60149         * modules/snprintf (Makefile.am): Likewise.
60150         * modules/stat-macros (Makefile.am): Likewise.
60151         * modules/stat-time (Makefile.am): Likewise.
60152         * modules/stdbool (Makefile.am): Likewise.
60153         * modules/stdint (Makefile.am): Likewise.
60154         * modules/stdlib-safer (Makefile.am): Likewise.
60155         * modules/stpcpy (Makefile.am): Likewise.
60156         * modules/stpncpy (Makefile.am): Likewise.
60157         * modules/strcase (Makefile.am): Likewise.
60158         * modules/strcasestr (Makefile.am): Likewise.
60159         * modules/strchrnul (Makefile.am): Likewise.
60160         * modules/strcspn (Makefile.am): Likewise.
60161         * modules/strdup (Makefile.am): Likewise.
60162         * modules/strerror (Makefile.am): Likewise.
60163         * modules/strftime (Makefile.am): Likewise.
60164         * modules/strndup (Makefile.am): Likewise.
60165         * modules/strnlen (Makefile.am): Likewise.
60166         * modules/strpbrk (Makefile.am): Likewise.
60167         * modules/strsep (Makefile.am): Likewise.
60168         * modules/strstr (Makefile.am): Likewise.
60169         * modules/strtod (Makefile.am): Likewise.
60170         * modules/strtoimax (Makefile.am): Likewise.
60171         * modules/strtok_r (Makefile.am): Likewise.
60172         * modules/strtol (Makefile.am): Likewise.
60173         * modules/strtoll (Makefile.am): Likewise.
60174         * modules/strtoul (Makefile.am): Likewise.
60175         * modules/strtoull (Makefile.am): Likewise.
60176         * modules/strtoumax (Makefile.am): Likewise.
60177         * modules/strverscmp (Makefile.am): Likewise.
60178         * modules/sys_socket (Makefile.am): Likewise.
60179         * modules/sys_stat (Makefile.am): Likewise.
60180         * modules/sysexits (Makefile.am): Likewise.
60181         * modules/time_r (Makefile.am): Likewise.
60182         * modules/timegm (Makefile.am): Likewise.
60183         * modules/timespec (Makefile.am): Likewise.
60184         * modules/tmpfile-safer (Makefile.am): Likewise.
60185         * modules/trim (Makefile.am): Likewise.
60186         * modules/unistd-safer (Makefile.am): Likewise.
60187         * modules/unlinkdir (Makefile.am): Likewise.
60188         * modules/unlocked-io (Makefile.am): Likewise.
60189         * modules/userspec (Makefile.am): Likewise.
60190         * modules/utime (Makefile.am): Likewise.
60191         * modules/utimecmp (Makefile.am): Likewise.
60192         * modules/utimens (Makefile.am): Likewise.
60193         * modules/vasnprintf (Makefile.am): Likewise.
60194         * modules/vasprintf (Makefile.am): Likewise.
60195         * modules/vsnprintf (Makefile.am): Likewise.
60196         * modules/xalloc (Makefile.am): Likewise.
60197         * modules/xgetcwd (Makefile.am): Likewise.
60198         * modules/xnanosleep (Makefile.am): Likewise.
60199         * modules/xreadlink (Makefile.am): Likewise.
60200         * modules/xstrtod (Makefile.am): Likewise.
60201         * modules/xstrtol (Makefile.am): Likewise.
60202         * modules/xstrtold (Makefile.am): Likewise.
60203         * modules/yesno (Makefile.am): Likewise.
60204         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60205
60206 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60207
60208         * modules/error (Makefile.am): Distribute files through
60209         EXTRA_DIST, not lib_SOURCES.
60210
60211 2006-10-12  Eric Blake  <ebb9@byu.net>
60212
60213         * modules/error (Makefile.am): Distribute files in /lib.
60214         * modules/obstack (Makefile.am): Likewise.
60215
60216 2006-10-12  Bruno Haible  <bruno@clisp.org>
60217
60218         * modules/acl (Makefile.am): Distribute all files in lib/ through
60219         EXTRA_DIST.
60220         * modules/arcfour (Makefile.am): Likewise.
60221         * modules/arctwo (Makefile.am): Likewise.
60222         * modules/argmatch (Makefile.am): Likewise.
60223         * modules/argz (Makefile.am): Likewise.
60224         * modules/atexit (Makefile.am): Likewise.
60225         * modules/backupfile (Makefile.am): Likewise.
60226         * modules/c-strtod (Makefile.am): Likewise.
60227         * modules/c-strtold (Makefile.am): Likewise.
60228         * modules/calloc (Makefile.am): Likewise.
60229         * modules/canon-host (Makefile.am): Likewise.
60230         * modules/canonicalize (Makefile.am): Likewise.
60231         * modules/chdir-long (Makefile.am): Likewise.
60232         * modules/chdir-safer (Makefile.am): Likewise.
60233         * modules/check-version (Makefile.am): Likewise.
60234         * modules/chown (Makefile.am): Likewise.
60235         * modules/cloexec (Makefile.am): Likewise.
60236         * modules/close-stream (Makefile.am): Likewise.
60237         * modules/closeout (Makefile.am): Likewise.
60238         * modules/crc (Makefile.am): Likewise.
60239         * modules/cycle-check (Makefile.am): Likewise.
60240         * modules/des (Makefile.am): Likewise.
60241         * modules/dirfd (Makefile.am): Likewise.
60242         * modules/dirname (Makefile.am): Likewise.
60243         * modules/dup2 (Makefile.am): Likewise.
60244         * modules/euidaccess (Makefile.am): Likewise.
60245         * modules/exclude (Makefile.am): Likewise.
60246         * modules/exitfail (Makefile.am): Likewise.
60247         * modules/fcntl-safer (Makefile.am): Likewise.
60248         * modules/file-type (Makefile.am): Likewise.
60249         * modules/fileblocks (Makefile.am): Likewise.
60250         * modules/filemode (Makefile.am): Likewise.
60251         * modules/filenamecat (Makefile.am): Likewise.
60252         * modules/fnmatch (Makefile.am): Likewise.
60253         * modules/fopen-safer (Makefile.am): Likewise.
60254         * modules/fpending (Makefile.am): Likewise.
60255         * modules/fprintftime (Makefile.am): Likewise.
60256         * modules/free (Makefile.am): Likewise.
60257         * modules/fsusage (Makefile.am): Likewise.
60258         * modules/ftruncate (Makefile.am): Likewise.
60259         * modules/fts (Makefile.am): Likewise.
60260         * modules/gc (Makefile.am): Likewise.
60261         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60262         * modules/getaddrinfo (Makefile.am): Likewise.
60263         * modules/getcwd (Makefile.am): Likewise.
60264         * modules/getdelim (Makefile.am): Likewise.
60265         * modules/getdomainname (Makefile.am): Likewise.
60266         * modules/getgroups (Makefile.am): Likewise.
60267         * modules/gethostname (Makefile.am): Likewise.
60268         * modules/gethrxtime (Makefile.am): Likewise.
60269         * modules/getline (Makefile.am): Likewise.
60270         * modules/getloadavg (Makefile.am): Likewise.
60271         * modules/getlogin_r (Makefile.am): Likewise.
60272         * modules/getopt (Makefile.am): Likewise.
60273         * modules/getpass (Makefile.am): Likewise.
60274         * modules/getpass-gnu (Makefile.am): Likewise.
60275         * modules/getsubopt (Makefile.am): Likewise.
60276         * modules/gettime (Makefile.am): Likewise.
60277         * modules/gettimeofday (Makefile.am): Likewise.
60278         * modules/getugroups (Makefile.am): Likewise.
60279         * modules/getusershell (Makefile.am): Likewise.
60280         * modules/glob (Makefile.am): Likewise.
60281         * modules/group-member (Makefile.am): Likewise.
60282         * modules/hard-locale (Makefile.am): Likewise.
60283         * modules/hash (Makefile.am): Likewise.
60284         * modules/hmac-md5 (Makefile.am): Likewise.
60285         * modules/hmac-sha1 (Makefile.am): Likewise.
60286         * modules/human (Makefile.am): Likewise.
60287         * modules/idcache (Makefile.am): Likewise.
60288         * modules/imaxabs (Makefile.am): Likewise.
60289         * modules/imaxdiv (Makefile.am): Likewise.
60290         * modules/inet_ntop (Makefile.am): Likewise.
60291         * modules/inet_pton (Makefile.am): Likewise.
60292         * modules/inttostr (Makefile.am): Likewise.
60293         * modules/isapipe (Makefile.am): Likewise.
60294         * modules/lchown (Makefile.am): Likewise.
60295         * modules/long-options (Makefile.am): Likewise.
60296         * modules/lstat (Makefile.am): Likewise.
60297         * modules/malloc (Makefile.am): Likewise.
60298         * modules/mathl (Makefile.am): Likewise.
60299         * modules/mbchar (Makefile.am): Likewise.
60300         * modules/md2 (Makefile.am): Likewise.
60301         * modules/md4 (Makefile.am): Likewise.
60302         * modules/md5 (Makefile.am): Likewise.
60303         * modules/memcasecmp (Makefile.am): Likewise.
60304         * modules/memchr (Makefile.am): Likewise.
60305         * modules/memcmp (Makefile.am): Likewise.
60306         * modules/memcoll (Makefile.am): Likewise.
60307         * modules/memcpy (Makefile.am): Likewise.
60308         * modules/memmem (Makefile.am): Likewise.
60309         * modules/memmove (Makefile.am): Likewise.
60310         * modules/mempcpy (Makefile.am): Likewise.
60311         * modules/memrchr (Makefile.am): Likewise.
60312         * modules/memset (Makefile.am): Likewise.
60313         * modules/memxor (Makefile.am): Likewise.
60314         * modules/mkancesdirs (Makefile.am): Likewise.
60315         * modules/mkdir (Makefile.am): Likewise.
60316         * modules/mkdir-p (Makefile.am): Likewise.
60317         * modules/mkdtemp (Makefile.am): Likewise.
60318         * modules/mkstemp (Makefile.am): Likewise.
60319         * modules/mktime (Makefile.am): Likewise.
60320         * modules/modechange (Makefile.am): Likewise.
60321         * modules/mountlist (Makefile.am): Likewise.
60322         * modules/nanosleep (Makefile.am): Likewise.
60323         * modules/openat (Makefile.am): Likewise.
60324         * modules/pagealign_alloc (Makefile.am): Likewise.
60325         * modules/physmem (Makefile.am): Likewise.
60326         * modules/poll (Makefile.am): Likewise.
60327         * modules/posixtm (Makefile.am): Likewise.
60328         * modules/posixver (Makefile.am): Likewise.
60329         * modules/putenv (Makefile.am): Likewise.
60330         * modules/quote (Makefile.am): Likewise.
60331         * modules/quotearg (Makefile.am): Likewise.
60332         * modules/raise (Makefile.am): Likewise.
60333         * modules/read-file (Makefile.am): Likewise.
60334         * modules/readline (Makefile.am): Likewise.
60335         * modules/readlink (Makefile.am): Likewise.
60336         * modules/readtokens (Makefile.am): Likewise.
60337         * modules/readutmp (Makefile.am): Likewise.
60338         * modules/realloc (Makefile.am): Likewise.
60339         * modules/regex (Makefile.am): Likewise.
60340         * modules/rename (Makefile.am): Likewise.
60341         * modules/rename-dest-slash (Makefile.am): Likewise.
60342         * modules/rijndael (Makefile.am): Likewise.
60343         * modules/rmdir (Makefile.am): Likewise.
60344         * modules/rpmatch (Makefile.am): Likewise.
60345         * modules/safe-read (Makefile.am): Likewise.
60346         * modules/safe-write (Makefile.am): Likewise.
60347         * modules/same (Makefile.am): Likewise.
60348         * modules/save-cwd (Makefile.am): Likewise.
60349         * modules/savedir (Makefile.am): Likewise.
60350         * modules/setenv (Makefile.am): Likewise.
60351         * modules/settime (Makefile.am): Likewise.
60352         * modules/sha1 (Makefile.am): Likewise.
60353         * modules/sig2str (Makefile.am): Likewise.
60354         * modules/snprintf (Makefile.am): Likewise.
60355         * modules/stdlib-safer (Makefile.am): Likewise.
60356         * modules/stpcpy (Makefile.am): Likewise.
60357         * modules/stpncpy (Makefile.am): Likewise.
60358         * modules/strcase (Makefile.am): Likewise.
60359         * modules/strcasestr (Makefile.am): Likewise.
60360         * modules/strchrnul (Makefile.am): Likewise.
60361         * modules/strcspn (Makefile.am): Likewise.
60362         * modules/strdup (Makefile.am): Likewise.
60363         * modules/strerror (Makefile.am): Likewise.
60364         * modules/strftime (Makefile.am): Likewise.
60365         * modules/strndup (Makefile.am): Likewise.
60366         * modules/strnlen (Makefile.am): Likewise.
60367         * modules/strpbrk (Makefile.am): Likewise.
60368         * modules/strsep (Makefile.am): Likewise.
60369         * modules/strstr (Makefile.am): Likewise.
60370         * modules/strtod (Makefile.am): Likewise.
60371         * modules/strtoimax (Makefile.am): Likewise.
60372         * modules/strtok_r (Makefile.am): Likewise.
60373         * modules/strtol (Makefile.am): Likewise.
60374         * modules/strtoll (Makefile.am): Likewise.
60375         * modules/strtoul (Makefile.am): Likewise.
60376         * modules/strtoull (Makefile.am): Likewise.
60377         * modules/strtoumax (Makefile.am): Likewise.
60378         * modules/strverscmp (Makefile.am): Likewise.
60379         * modules/time_r (Makefile.am): Likewise.
60380         * modules/timegm (Makefile.am): Likewise.
60381         * modules/tmpfile-safer (Makefile.am): Likewise.
60382         * modules/unistd-safer (Makefile.am): Likewise.
60383         * modules/unlinkdir (Makefile.am): Likewise.
60384         * modules/userspec (Makefile.am): Likewise.
60385         * modules/utime (Makefile.am): Likewise.
60386         * modules/utimecmp (Makefile.am): Likewise.
60387         * modules/utimens (Makefile.am): Likewise.
60388         * modules/vasnprintf (Makefile.am): Likewise.
60389         * modules/vasprintf (Makefile.am): Likewise.
60390         * modules/vsnprintf (Makefile.am): Likewise.
60391         * modules/xalloc (Makefile.am): Likewise.
60392         * modules/xgetcwd (Makefile.am): Likewise.
60393         * modules/xnanosleep (Makefile.am): Likewise.
60394         * modules/xreadlink (Makefile.am): Likewise.
60395         * modules/xstrtod (Makefile.am): Likewise.
60396         * modules/xstrtol (Makefile.am): Likewise.
60397         * modules/xstrtold (Makefile.am): Likewise.
60398         * modules/yesno (Makefile.am): Likewise.
60399
60400 2006-10-12  Jim Meyering  <jim@meyering.net>
60401
60402         * m4/getloadavg.m4: Revert the change below.
60403
60404         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60405         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60406         fail with a symlink, which is what coreutils' ./bootstrap now
60407         creates by default.
60408
60409 2006-10-12  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60412         mingw.
60413         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60414         MSVC and mingw explicitly.
60415
60416 2006-10-11  Simon Josefsson  <jas@extundo.com>
60417             Bruno Haible  <bruno@clisp.org>
60418
60419         Add support for multiple gnulib-tool invocations in the scope of a
60420         single configure.ac file.
60421         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60422         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60423         with the same contents as the _LIBADD variable.
60424         (func_emit_initmacro_start, func_emit_initmacro_end,
60425         func_emit_initmacro_done): New functions.
60426         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60427         gl_LIBOBJS and gl_LTLIBOBJS.
60428
60429 2006-10-11  Bruno Haible  <bruno@clisp.org>
60430
60431         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60432         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60433         autoreconf. Instead, invoke autopoint explicitly but move back the
60434         *.m4 files from gnulib.
60435
60436 2006-10-11  Bruno Haible  <bruno@clisp.org>
60437
60438         * gnulib-tool (func_usage): Make module names after --create-testdir
60439         optional.
60440         (func_create_testdir): If no module was specified, use nearly all
60441         modules.
60442
60443 2006-10-12  Jim Meyering  <jim@meyering.net>
60444
60445         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60446         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60447         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60448         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60449         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60450         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60451         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60452         (fts_set_stat_required): New function.
60453         (fts_open): Defer the calls to fts_stat, if possible or requested.
60454         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60455         into fts_stat itself.
60456         (fts_read): Perform any required (deferred) fts_stat call.
60457         (fts_build): Likewise, for the directory we're about to open and read.
60458         In the readdir loop, carefully decide whether each entry will require
60459         an eventual call to fts_stat, using dirent.d_type info if available.
60460         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60461         a command line argument into this function.  Update all callers.
60462         Map a return value of FTS_DOT to FTS_D for a command line argument.
60463         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60464         Thanks to Miklos Szeredi for his tenacity and for the initial
60465         bug report about "find" failing on a FUSE-based file system.
60466
60467         * lib/fts.c (fts_open): Use consistent indentation.
60468
60469 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60470
60471         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60472         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60473         reported by Jim Meyering.  All uses of cache variables renamed
60474         to match Autoconf's.
60475         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60476         the other one.
60477
60478         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60479         Fix misspelling in diagnostic.
60480
60481 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60484         defined.  Problem reported by Matthew Woehlke.
60485
60486         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60487         Add support for Tandem NonStop R series.
60488         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60489         Use new macro.
60490
60491         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60492         (has_trailing_slash): Omit size arg; all callers changed.
60493         Omit 'inline', since it doesn't help performance and we'd
60494         need to configure it.
60495         Don't count //, ///, etc. as having a trailing slash.
60496         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60497         (rpl_rename_dest_slash): On failure, use rename's errno rather
60498         than (in some cases) an incorrect or junk errno.
60499         Simplify code by removing need to compute length; this does
60500         cause it to make two passes instead of one over the file name,
60501         but it's worth it.
60502
60503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60504         change, since Autoconf's version may no longer be appropriate now
60505         that we are using CVS Autoconf's version.  Add support for Tandem.
60506
60507 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60508             Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60511         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60512         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60513         gl_AC_TYPE_LONG_LONG.
60514
60515         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60516         instead of HAVE_LONG_LONG.
60517         * lib/printf-args.c (printf_fetchargs): Likewise.
60518         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60519         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60520         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60521         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60522         gl_AC_TYPE_LONG_LONG.
60523
60524 2006-10-11  Bruno Haible  <bruno@clisp.org>
60525
60526         * m4/longlong.m4: Add comments.
60527         * m4/ulonglong.m4: Likewise.
60528
60529 2006-10-10  Bruno Haible  <bruno@clisp.org>
60530
60531         Make it possible to #define stpcpy, strdup to aliases.
60532         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60533         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60534
60535 2006-10-10  Bruno Haible  <bruno@clisp.org>
60536
60537         Make it possible to #define gcd to an alias.
60538         * lib/gcd.c: Include config.h.
60539
60540 2006-10-10  Bruno Haible  <bruno@clisp.org>
60541
60542         Make it possible to #define c_isascii to an alias.
60543         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60544         defined. Undefine the macros before defining them, to avoid gcc
60545         warnings.
60546         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60547         define NO_C_CTYPE_MACROS early.
60548
60549 2006-10-10  Bruno Haible  <bruno@clisp.org>
60550
60551         Make it possible to #define set_program_name to an alias.
60552         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60553         ENABLE_RELOCATABLE early.
60554
60555 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60558         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60559         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60560         More generally, don't assume that 64-bit signed int is available
60561         if unsigned int is, and vice versa.
60562         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60563         unsigned symbols, not on their signed counterparts.
60564         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60565         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60566         (UINT64_C, UINTMAX_C):
60567         Likewise.
60568         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60569         unsigned counterparts.
60570         (Have_long_long, Unsigned): New macros.
60571         (Int): Renamed from INT.
60572         (strtoimax): Use the new macros.
60573         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60574         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60575         * modules/inttypes (inttypes.h): Substitute
60576         HAVE_UNSIGNED_LONG_LONG_INT.
60577         * modules/stdint (stdint.h): Likewise.
60578         (Files): Add m4/ulonglong.m4.
60579
60580 2006-10-10  Bruno Haible  <bruno@clisp.org>
60581
60582         Fix a gcc -Wshadow warning.
60583         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60584         to 'bucket'.
60585         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60586         gl_linked_indexof_from_to): Likewise.
60587         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60588         Likewise.
60589         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60590         Likewise.
60591         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60592         Reported by Eric Blake.
60593
60594 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60595
60596         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60597         for NetBSD.  Problem reported by Bruno Haible.
60598
60599 2006-10-09  Jim Meyering  <jim@meyering.net>
60600
60601         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60602         Patch from Bruno Haible.
60603
60604 2006-10-09  Jim Meyering  <jim@meyering.net>
60605
60606         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60607         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60608         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60609
60610 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         Don't include <config.h> twice; this doesn't work in some cases,
60613         e.g., when config.h has "#define intmax_t long long int" and
60614         we include <config.h>, <inttypes.h>, <config.h> in that order.
60615         Problem reported by Matthew Woehlke in:
60616         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60617         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60618         * lib/fts-cycle.c: Don't include config.h.
60619         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60620         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60621         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60622         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60623         inttypes.h.
60624         * lib/xstrtoumax.c: Likewise.
60625         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60626         __strtol and the like, so that this module is more like its siblings.
60627         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60628         Remove; no longer needed now that we assume gnulib inttypes.h.
60629
60630 2006-10-08  Bruno Haible  <bruno@clisp.org>
60631
60632         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60633         option.
60634
60635 2006-10-07  Jim Meyering  <jim@meyering.net>
60636
60637         * modules/inttypes (inttypes.h): Revert what seems to have been
60638         an inadvertent part of today's change: use "|", not "/" in the
60639         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60640
60641 2006-10-07  Bruno Haible  <bruno@clisp.org>
60642
60643         * modules/sublist: New file.
60644
60645 2006-10-07  Bruno Haible  <bruno@clisp.org>
60646
60647         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60648         * modules/argz (argz.h): Likewise.
60649         * modules/arpa_inet (arpa/inet.h): Likewise.
60650         * modules/byteswap (byteswap.h): Likewise.
60651         * modules/configmake (configmake.h): Likewise.
60652         * modules/fcntl (fcntl.h): Likewise.
60653         * modules/fnmatch (fnmatch.h): Likewise.
60654         * modules/getopt (getopt.h): Likewise.
60655         * modules/glob (glob.h): Likewise.
60656         * modules/inttypes (inttypes.h): Likewise.
60657         * modules/netinet_in (netinet/in.h): Likewise.
60658         * modules/poll (poll.h): Likewise.
60659         * modules/stdbool (stdbool.h): Likewise.
60660         * modules/stdint (stdint.h): Likewise.
60661         * modules/sys_select (sys/select.h): Likewise.
60662         * modules/sys_socket (sys/socket.h): Likewise.
60663         * modules/sys_stat (sys/stat.h): Likewise.
60664         * modules/sysexits (sysexits.h): Likewise.
60665         * modules/unistd (unistd.h): Likewise.
60666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60667         Add a "DO NOT EDIT" comment to the generated file.
60668         (func_import): Likewise for gnulib-comp.m4.
60669
60670 2006-10-07  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/gl_sublist.h: New file.
60673         * lib/gl_sublist.c: New file.
60674
60675 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60676
60677         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60678         name (relative to the original working directory) and the file
60679         name component (relative to the temporary working directory).  All
60680         callers changed.
60681         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60682         * lib/mkdir-p.c (make_dir_parents): Likewise.
60683         * lib/mkdir-p.h (make_dir_parents): Likewise.
60684
60685 2006-10-06  Eric Blake  <ebb9@byu.net>
60686
60687         Define several macros for use by the clean-temp module.
60688         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60690         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60691
60692         * lib/clean-temp.h (close_stream_temp): New declaration.
60693         * lib/clean-temp.c (includes): Pull in headers according to what
60694         other modules are in use.
60695         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60696
60697 2006-10-06  Bruno Haible  <bruno@clisp.org>
60698
60699         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60700         instead of fopen, fwriteerror.
60701
60702 2006-10-06  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60705         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60706         int.
60707         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60708         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60709         Return an error indicator.
60710         Suggested by Eric Blake.
60711
60712 2006-10-06  Bruno Haible  <bruno@clisp.org>
60713
60714         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60715         Reported by Eric Blake.
60716
60717 2006-10-06  Bruno Haible  <bruno@clisp.org>
60718
60719         * modules/closeout (Description): Mention stderr too.
60720
60721 2006-10-06  Bruno Haible  <bruno@clisp.org>
60722         and Paul Eggert  <eggert@cs.ucla.edu>
60723
60724         * lib/closeout.c (close_stdout): Also close stderr.
60725         * lib/closeout.h: Update comment.
60726
60727 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60731         * lib/dirchownmod.c: Include lchown.h.
60732         * lib/lchown.c: Don't include files that lchown.h now includes.
60733         Don't declare chown, since lchown.h now does that.
60734         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60735         (lchown): Define to rpl_chown if lchown is declared but
60736         does not exist.  Declare using a prototype if lchown is not
60737         declared.  Add a copyright notice.
60738         * lib/mkstemp.h: Include <unistd.h>.
60739         * lib/openat.c: Include lchown.h.
60740
60741         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60742         we now test for that separately.
60743         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60744         rather than O_NOFOLLOW, when testing whether it's possible to
60745         avoid a race condition reliably.
60746         * lib/savewd.c (savewd_chdir): Likewise.
60747
60748         Remove macros that are no longer needed now that stdint.h is
60749         reliable.
60750         * lib/fsusage.c (UINTMAX_MAX): Remove.
60751         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60752         * lib/utimecmp.c (SIZE_MAX): Remove.
60753
60754         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60755
60756         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60757         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60758         O_NOATIME works.
60759
60760 2006-10-05  Bruno Haible  <bruno@clisp.org>
60761
60762         * lib/gl_list.h (gl_sortedlist_search_from_to,
60763         gl_sortedlist_indexof_from_to): New declarations.
60764         (gl_list_implementation): New fields sortedlist_search_from_to,
60765         sortedlist_indexof_from_to.
60766         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60767         inline functions.
60768         * lib/gl_list.c (gl_sortedlist_search_from_to,
60769         gl_sortedlist_indexof_from_to): New functions.
60770         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60771         function.
60772         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60773         (gl_array_sortedlist_search_from_to): New function.
60774         (gl_array_list_implementation): Update.
60775         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60776         function.
60777         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60778         (gl_carray_sortedlist_search_from_to): New function.
60779         (gl_carray_list_implementation): Update.
60780         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60781         gl_linked_sortedlist_indexof_from_to): New functions.
60782         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60783         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60784         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60785         gl_tree_sortedlist_indexof_from_to): New functions.
60786         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60787         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60788         Update.
60789         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60790         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60791         Update.
60792
60793 2006-10-05  Bruno Haible  <bruno@clisp.org>
60794
60795         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60796         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60797         (struct gl_list_implementation): Add fields search_from_to,
60798         indexof_from_to. Remove fields search, indexof.
60799         (gl_list_search): Use the search_from_to method.
60800         (gl_list_search_from, gl_list_search_from_to): New functions.
60801         (gl_list_indexof): Use the indexof_from_to method.
60802         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60803         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60804         (gl_list_search_from, gl_list_search_from_to): New functions.
60805         (gl_list_indexof): Use the indexof_from_to method.
60806         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60807         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60808         gl_array_indexof. Add start_index, end_index arguments.
60809         (gl_array_search_from_to): Renamed from gl_array_search. Add
60810         start_index, end_index arguments.
60811         (gl_array_remove, gl_array_list_implementation): Update.
60812         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60813         gl_carray_indexof. Add start_index, end_index arguments.
60814         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60815         start_index, end_index arguments.
60816         (gl_carray_remove, gl_carray_list_implementation): Update.
60817         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60818         gl_linked_search. Add start_index, end_index arguments.
60819         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60820         start_index, end_index arguments.
60821         (gl_linked_remove): Update.
60822         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60823         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60824         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60825         field to 'size_t'.
60826         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60827         gl_tree_search. Add start_index, end_index arguments.
60828         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60829         start_index, end_index arguments.
60830         (gl_tree_remove): Update.
60831         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60832         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60833         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60834         function.
60835         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60836         gl_tree_search. Add start_index, end_index arguments.
60837         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60838         start_index, end_index arguments.
60839         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60840         Update.
60841         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60842
60843 2006-10-05  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60846
60847         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60848         fwriteerror_temp): New declarations.
60849         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60850         (descriptors): New variable.
60851         (cleanup): First, close the descriptors.
60852         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60853         fclose_temp, fwriteerror_temp): New functions.
60854
60855 2006-10-04  Jim Meyering  <jim@meyering.net>
60856
60857         * lib/fts.c (fts_open): Tiny comment change.
60858
60859 2006-10-04  Bruno Haible  <bruno@clisp.org>
60860
60861         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60862         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60863         gl_LOCK_BODY.
60864         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60865         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60866         gl_LOCK_EARLY_BODY.
60867         (gl_LOCK): Require gl_LOCK_BODY.
60868
60869 2006-10-04  Bruno Haible  <bruno@clisp.org>
60870
60871         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60872         (gl_oset_search_atleast): New declaration.
60873         (struct gl_oset_implementation): Add field 'search_atleast'.
60874         (gl_oset_search_atleast): New inline function.
60875         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60876         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60877         (gl_array_oset_implementation): Update.
60878         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60879         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60880         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60881
60882 2006-10-04  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60885
60886 2006-10-03  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60889         from gl_avltreehash_list_implementation.
60890
60891 2006-10-03  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/gl_oset.c (gl_oset_add): Fix return type.
60894
60895 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60896
60897         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60898
60899 2006-10-02  Eric Blake  <ebb9@byu.net>
60900
60901         * modules/strnlen (Depends-on): Add extensions.
60902
60903 2006-10-02  Eric Blake  <ebb9@byu.net>
60904
60905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60906         definition in 2.60+.
60907
60908 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60909
60910         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60911         checks.
60912
60913 2006-10-02  Bruno Haible  <bruno@clisp.org>
60914
60915         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60916         to the AUTOMAKE_OPTIONS.
60917         Reported by Jim Meyering.
60918
60919 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60920
60921         Work around bug in Solaris 10 /proc file system:
60922         /proc/self/fd/NNN/.. isn't the parent directory of
60923         the directory whose file descriptor is NNN.  This needs to
60924         be worked around at run time, not compile time, since a
60925         program might be built on Solaris 8, where things work, and
60926         run on Solaris 10.
60927         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60928         to use the following interface instead:
60929         (OPENAT_BUFFER_SIZE): New macro.
60930         (openat_proc_name): New function.
60931         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60932         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60933         Likewise.
60934         * lib/openat-proc.c: New file.
60935         * modules/openat (Files): Add lib/openat-proc.c.
60936         (Depends-on): Add same-inode, stdbool.
60937         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60938
60939 2006-09-29  Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60942         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60943         argument. Set stdout_closed before testing for ferror, not after.
60944         (fwriteerror, fwriteerror_no_ebadf): New functions.
60945
60946 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60947
60948         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60949
60950 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60951
60952         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60953         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60954
60955 2006-09-28  Jim Meyering  <jim@meyering.net>
60956
60957         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60958         Include <unistd.h>.
60959
60960 2006-09-28  Bruno Haible  <bruno@clisp.org>
60961
60962         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60963         * modules/linkedhash-list (Depends-on): Likewise.
60964         * modules/rbtreehash-list (Depends-on): Likewise.
60965
60966 2006-09-28  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/strndup.h: Simplify the redefinition of strndup.
60969         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60970         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60971
60972 2006-09-28  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60975         * lib/gl_linkedhash_list.c: Likewise.
60976         * lib/gl_rbtreehash_list.c: Likewise.
60977
60978 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60981         getaddrinfo.
60982
60983         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60984         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60985         it causes <stdio_ext.h> to cause a compile-time error.
60986         Problem reported by Nelson H. F. Beebe.
60987         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60988         of HAVE_DECL___PENDING.
60989
60990         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60991         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60992         declaration.
60993
60994 2006-09-27  Jim Meyering  <jim@meyering.net>
60995
60996         This file could end up with a definition for a function
60997         named __strndup, rather than rpl_strndup on a system with
60998         incomplete weak_alias support.
60999         * lib/strndup.c (strndup): Rename from __strndup.
61000         Remove #defines that used to map __strndup to strndup.
61001         Don't use K&R prototypes.
61002         Remove LIBC-related code, since this file is not sync'd with glibc.
61003         * lib/strndup.h: Revamp, accordingly.
61004         * m4/strndup.m4: Modernize.
61005
61006 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * modules/savewd (Depends-on): Add 'raise'.
61009         * lib/savewd.c: Include <signal.h>, for 'raise'.
61010
61011 2006-09-26  Jim Meyering  <jim@meyering.net>
61012
61013         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61014         when we detect Darwin 8.7.0's acl_get_file bug.
61015         Rearrange to perform the new (below) run-test while $LIBS
61016         contains any acl-related library.  Set USE_ACL at the end.
61017         (gl_ACL_GET_FILE): New function.
61018
61019 2006-09-26  Eric Blake  <ebb9@byu.net>
61020
61021         * lib/verror.c: Include <config.h> unconditionally.
61022
61023 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61024
61025         * modules/clock-time (Maintainer): Add self.
61026         * modules/getlogin_r (Depends-on): Add extensions.
61027
61028 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61029
61030         * modules/clock-time: New module.
61031         * modules/nanosleep (Depends-on): Add clock-time.
61032         * modules/gethrxtime (Depends-on): Likewise.
61033         * modules/gettime (Depends-on): Likewise.
61034         * modules/settime (Depends-on): Likewise.
61035
61036         * modules/fts-lgpl: Depend on openat.
61037         * modules/mkancesdirs: Depend on savewd.
61038         * modules/mkdir-p: Likewise.
61039
61040 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61041
61042         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61043
61044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61045         `gl_have_arbitrary_file_name_length_limit' to
61046         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61047         actually works between configure runs.
61048
61049 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61050             Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61053
61054 2006-09-25  Jim Meyering  <jim@meyering.net>
61055
61056         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61057         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61058
61059 2006-09-25  Eric Blake  <ebb9@byu.net>
61060
61061         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61062         exec's in 2006-09-18 patch when shuffling fds.
61063
61064 2006-09-25  Bruno Haible  <bruno@clisp.org>
61065
61066         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61067         Reported by Jim Meyering.
61068
61069 2006-09-24  Jim Meyering  <jim@meyering.net>
61070
61071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61072         compare a pointer against a literal "0".  That caused failures with
61073         at least HP-UX's hpcc.
61074
61075 2006-09-22  Simon Josefsson  <jas@extundo.com>
61076
61077         * modules/gc-sha1:
61078         * modules/gc-md4:
61079         * modules/gc-hmac-sha1:
61080         * modules/gc-hmac-md5:
61081         * modules/gc-des:
61082         * modules/gc-arcfour: Distribute more files.
61083
61084 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61085
61086         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61087         (gl_linked_iterator_from_to): Initialize struct completely.
61088         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61089         (gl_tree_iterator_from_to): Likewise
61090         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61091         * lib/gl_array_list.c [lint] (gl_array_iterator)
61092         (gl_array_iterator_from_to): Likewise.
61093         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61094         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61095         (gl_carray_iterator_from_to): Likewise.
61096
61097         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61098         * lib/md4.c (md4_process_block): Remove unused variable.
61099         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61100         parentheses for clarity.
61101
61102 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61103
61104         * modules/bison-i18n (Depends-on): Add gettext.
61105
61106 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61107
61108         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61109         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61110         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61111         also add missing comma that caused broken test.
61112         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61113         stdlib.h, for `abort'.
61114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61115         variables.
61116         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61117         include unistd.h if present, for `rmdir'.
61118         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61119         variables.
61120         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61121         in the process include standard headers for prototypes.
61122         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61123         gets declared on GNU/Linux.
61124         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61125         unistd.h, for `rmdir'.
61126         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61127
61128         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61129         always true.
61130         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61131
61132         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61133
61134 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61135
61136         * gnulib-tool (func_version): Create output all at once.  This
61137         may help avoid triggering unnecessary SIGPIPEs, and at any
61138         rate it doesn't hurt.
61139
61140 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61141             Bruno Haible  <bruno@clisp.org>
61142
61143         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61144         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61145         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61146
61147         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61148         (gl_FUNC_VASPRINTF): Invoke it.
61149
61150 2006-09-22  Bruno Haible  <bruno@clisp.org>
61151
61152         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61153         getloadavg.c as first argument.
61154
61155 2006-09-22  Bruno Haible  <bruno@clisp.org>
61156
61157         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61158         at the beginning of the gl_INIT macro.
61159         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61160         gl_GETLOADAVG.
61161
61162 2006-09-22  Bruno Haible  <bruno@clisp.org>
61163
61164         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61165         module.
61166         Suggested by Ralf Wildenhues.
61167
61168 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61169
61170         Import this patch from libc:
61171
61172         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61173
61174         * lib/regex_internal.c (re_string_reconstruct): Handle
61175         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61176         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61177         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61178         re_string_context_at.
61179
61180         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61181         now requires it.
61182         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61183         gl_REGEX now does it for us.
61184         (gl_REGEX): Add test taken from
61185         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61186
61187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61188         Check that large offsets work.  Modernize Autoconf usages.
61189         Prefer "yes" to mean a good thing rather than a bad.
61190         Don't put "#define mkstemp" in config.h, as this might interfere
61191         with standard system headers that "#define mkstemp mkstemp64".
61192
61193         * modules/mkstemp (Depends-on): Add extensions, so that
61194         mkstemp is visible on some platforms.
61195         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61196         (Include): Change to "mkstemp.h" from <stdlib.h>.
61197         (Files): Add mkstemp.h.
61198
61199         * lib/mkstemp.h: New file, since some standard headers
61200         #define mkstemp.
61201         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61202         Include "mkstemp.h".
61203         Make the _LIBC code resemble glibc original more,
61204         e.g., use K&R style.
61205         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61206         (mkstemp): Remove, since mkstemp.h does this for us.
61207         * lib/stdlib--.h: Include mkstemp.h.
61208
61209         Import this patch from libc:
61210
61211         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61212
61213         * lib/tempname.c (__gen_tempname): Change attempts_min
61214         into a macro.  Use preprocessor to decide how to initialize
61215         attempts [Coverity CID 67].
61216
61217 2006-09-20  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/mkdtemp.c: Import from libc.
61220         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61221                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61222                 attempts_min into a macro.  Use preprocessor to decide how to
61223                 initialize attempts [Coverity CID 67].
61224         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61225                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61226                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61227
61228 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61229
61230         * gnulib-tool (func_exit): New function, to allow to pass the
61231         exit status portably through the trap.  Use everywhere.
61232         (--help, --version): Signal a write error.
61233         (trap): catch SIGPIPE, for write errors.
61234         Exit at the end of the trap, with the correct exit status.
61235
61236 2006-09-19  Karl Berry  <karl@gnu.org>
61237
61238         * doc/gnulib.texi: note about the license texinfo files.
61239
61240 2006-09-19  Eric Blake  <ebb9@byu.net>
61241
61242         * gnulib-tool: Avoid space-tab.
61243
61244 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61247         that prevented coreutils 6.1 from building.  Problem reported
61248         by Petter Reinholdtsen.
61249
61250 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * gnulib-tool (avoidlist): Fix typo that broke options like
61253         --avoid=lock that are used by coreutils bootstrap.
61254
61255 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61256
61257         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61258         more systematically.
61259
61260 2006-09-18  Jim Meyering  <jim@meyering.net>
61261
61262         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61263
61264 2006-09-18  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61267
61268 2006-09-18  Bruno Haible  <bruno@clisp.org>
61269
61270         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61271         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61272         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61273         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61274         * m4/gettext.m4: Require autoconf >= 2.52.
61275         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61276         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61277         of gl_cv_header_inttypes_h.
61278
61279 2006-09-18  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/javaversion.c: Include configmake.h.
61282
61283 2006-09-18  Bruno Haible  <bruno@clisp.org>
61284
61285         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61286         avoid that the while loops be executed in a subshell.
61287
61288 2006-09-18  Bruno Haible  <bruno@clisp.org>
61289
61290         * MODULES.html.sh (func_module): Break long lines.
61291         Suggested by Bruce Korb <bkorb@gnu.org>.
61292
61293 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61294
61295         Speed up by a factor of 1.12.
61296         * gnulib-tool (nl): New variable.
61297         (func_import): Rewrite include directive extraction to only read each
61298         directive once.
61299
61300 2006-09-17  Bruno Haible  <bruno@clisp.org>
61301
61302         * modules/javaversion (Makefile.am): Remove DEFS setting.
61303         (Depends-on): Add configmake, for PKGDATADIR definition.
61304
61305 2006-09-17  Bruno Haible  <bruno@clisp.org>
61306
61307         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61308
61309 2006-09-17  Bruno Haible  <bruno@clisp.org>
61310
61311         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61312         (func_modules_transitive_closure, func_modules_add_dummy,
61313         func_modules_to_filelist, func_import, func_create_testdir,
61314         func_create_megatestdir, ...): Use it wherever possible.
61315         Suggested by Ralf Wildenhues.
61316
61317 2006-09-16  Karl Berry  <karl@gnu.org>
61318
61319         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61320         to avoid sectioning errors.
61321         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61322         [ifinfo]: blank line after @center-ed titles.
61323         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61324         Spell FSF address consistently with others.
61325         (These changes approved by rms.)
61326
61327 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61328
61329         Speed up by a factor of 1.61.
61330         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61331         already checked module names again.
61332
61333 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61334
61335         Speed up by a factor of 1.13.
61336         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61337         for new_files, and the input to func_add_or_update.
61338
61339 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61340
61341         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61342         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61343
61344 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         * modules/mkancesdirs (Depends-on): Add fcntl.
61347         * modules/savewd: New file.
61348         * MODULES.html.sh (File system functions): Add savewd.
61349
61350         * modules/configmake (Makefile.am): Add support for the
61351         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61352
61353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61354
61355         * m4/savewd.m4: New file.
61356
61357 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61360         (dirchownmod): New arg FD.  All callers changed.
61361         Use FD rather than opening the directory ourself, as opening is
61362         now the caller's responsibility.
61363         * lib/dirchownmod.h: Likewise.
61364         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61365         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61366         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61367         (test_dir): Remove.
61368         (mkancesdirs): Return length of prefix of FILE that has already
61369         been made, or -2 if there is a child doing the work.  Redo
61370         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61371         ".", and treat ".." specially since it might stray back into
61372         already-created areas.  Use a subprocess if necessary.  New arg
61373         WD; all users changed.  MAKE_DIR function should now return 1
61374         if it creates a directory that is not readable.  Return -2 if
61375         a child process is spun off.
61376         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61377         Adjust signature to match code.
61378         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61379         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61380         all users changed.
61381         * lib/savewd.c, lib/savewd.h: New files.
61382
61383 2006-09-15  Jim Meyering  <jim@meyering.net>
61384
61385         * modules/rename-dest-slash: New module.
61386         * MODULES.html.sh (posix_compat): Add it here.
61387
61388         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61389
61390 2006-09-15  Jim Meyering  <jim@meyering.net>
61391
61392         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61393         file.
61394
61395         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61396
61397 2006-09-15  Jim Meyering  <jim@meyering.net>
61398
61399         * lib/rename-dest-slash.c (has_trailing_slash): Use
61400         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61401         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61402         test before testing whether SRC is a directory.
61403         Suggestions from Bruno Haible.
61404
61405         Avoid a warning about an unused variable.
61406         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61407         into the #ifdef block where it's used.
61408
61409         * lib/rename-dest-slash.c: New file.
61410
61411 2006-09-14  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/allocsa.c: Include <config.h> unconditionally.
61414         * lib/asnprintf.c: Likewise.
61415         * lib/asprintf.c: Likewise.
61416         * lib/c-strcasecmp.c: Likewise.
61417         * lib/c-strcasestr.c: Likewise.
61418         * lib/c-strncasecmp.c: Likewise.
61419         * lib/c-strstr.c: Likewise.
61420         * lib/classpath.c: Likewise.
61421         * lib/clean-temp.c: Likewise.
61422         * lib/concatpath.c: Likewise.
61423         * lib/copy-file.c: Likewise.
61424         * lib/csharpcomp.c: Likewise.
61425         * lib/csharpexec.c: Likewise.
61426         * lib/execute.c: Likewise.
61427         * lib/fatal-signal.c: Likewise.
61428         * lib/findprog.c: Likewise.
61429         * lib/fwriteerror.c: Likewise.
61430         * lib/gl_array_list.c: Likewise.
61431         * lib/gl_array_oset.c: Likewise.
61432         * lib/gl_avltree_list.c: Likewise.
61433         * lib/gl_avltree_oset.c: Likewise.
61434         * lib/gl_avltreehash_list.c: Likewise.
61435         * lib/gl_carray_list.c: Likewise.
61436         * lib/gl_linked_list.c: Likewise.
61437         * lib/gl_linkedhash_list.c: Likewise.
61438         * lib/gl_list.c: Likewise.
61439         * lib/gl_oset.c: Likewise.
61440         * lib/gl_rbtree_list.c: Likewise.
61441         * lib/gl_rbtree_oset.c: Likewise.
61442         * lib/gl_rbtreehash_list.c: Likewise.
61443         * lib/imaxabs.c: Likewise.
61444         * lib/imaxdiv.c: Likewise.
61445         * lib/javacomp.c: Likewise.
61446         * lib/javaexec.c: Likewise.
61447         * lib/javaversion.c: Likewise.
61448         * lib/linebreak.c: Likewise.
61449         * lib/localcharset.c: Likewise.
61450         * lib/lock.c: Likewise.
61451         * lib/mbchar.c: Likewise.
61452         * lib/mbswidth.c: Likewise.
61453         * lib/mkdtemp.c: Likewise.
61454         * lib/pipe.c: Likewise.
61455         * lib/printf-args.c: Likewise.
61456         * lib/printf-parse.c: Likewise.
61457         * lib/progname.c: Likewise.
61458         * lib/progreloc.c: Likewise.
61459         * lib/readlink.c: Likewise.
61460         * lib/sh-quote.c: Likewise.
61461         * lib/stpcpy.c: Likewise.
61462         * lib/stpncpy.c: Likewise.
61463         * lib/strcasecmp.c: Likewise.
61464         * lib/strcasestr.c: Likewise.
61465         * lib/strcspn.c: Likewise.
61466         * lib/striconv.c: Likewise.
61467         * lib/strncasecmp.c: Likewise.
61468         * lib/strnlen1.c: Likewise.
61469         * lib/strstr.c: Likewise.
61470         * lib/strtok_r.c: Likewise.
61471         * lib/tls.c: Likewise.
61472         * lib/tmpdir.c: Likewise.
61473         * lib/unicodeio.c: Likewise.
61474         * lib/unsetenv.c: Likewise.
61475         * lib/vasnprintf.c: Likewise.
61476         * lib/vasprintf.c: Likewise.
61477         * lib/wait-process.c: Likewise.
61478         * lib/xallocsa.c: Likewise.
61479         * lib/xsetenv.c: Likewise.
61480         * lib/xstriconv.c: Likewise.
61481
61482 2006-09-13  Simon Josefsson  <jas@extundo.com>
61483
61484         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61485         that internally, suggested by Ralf Wildenhues
61486         <Ralf.Wildenhues@gmx.de>.
61487
61488 2006-09-13  Simon Josefsson  <jas@extundo.com>
61489
61490         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61491         @LIBOBJS@.
61492         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61493
61494 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61497         longer worry about uses that don't define HAVE_CONFIG_H.
61498         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61499         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61500         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61501         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61502         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61503         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61504         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61505         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61506         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61507         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61508         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61509         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61510         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61511         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61512         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61513         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61514         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61515         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61516         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61517         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61518         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61519         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61520         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61521         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61522         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61523         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61524         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61525         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61526         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61527         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61528         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61529         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61530         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61531         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61532         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61533         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61534         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61535         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61536         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61537         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61538         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61539         Likewise.
61540
61541 2006-09-13  Eric Blake  <ebb9@byu.net>
61542
61543         * lib/getopt.c: Fix typo in last commit.
61544
61545 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61546
61547         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61548         dgettext.
61549
61550 2006-09-12  Jim Meyering  <jim@meyering.net>
61551
61552         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61553         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61554         Reported by Nelson H. F. Beebe.
61555
61556 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61557
61558         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61559         program_invocation_name and program_invocation_short_name are
61560         initialized.
61561         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61562         and program_invocation_short_name to argp.h, so they are visible
61563         to user programs.
61564         * lib/argp.h: Likewise
61565
61566 2006-09-10  Bruno Haible  <bruno@clisp.org>
61567
61568         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61569         m4/inttypes_h.m4, m4/uintmax_t.m4.
61570
61571 2006-09-10  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61574         gl_AC_TYPE_UINTMAX_T.
61575
61576 2006-09-10  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61579
61580 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61581
61582         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61583         convention.  Text proposed by Bruno Haible.
61584         (struct argp_option): Document the use of N_() wrappers.
61585
61586         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61587         '\v', and translate the two parts separately, instead of feeding
61588         the whole string to gettext.  This allows to exclude
61589         '\v' from the strings visible to the translator by writing doc
61590         strings as N_("..") "\v" N_("..").
61591
61592 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61593
61594         * config/srclist.txt: Undo latest change; the bug was fixed.
61595
61596 2006-09-09  Bruno Haible  <bruno@clisp.org>
61597
61598         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61599         assignments if building a library without libtool.
61600         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61601         in func_emit_lib_Makefile_am.
61602         (func_import): When building a static library libfoo.a, arrange to
61603         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61604         (func_create_testdir): Likewise.
61605         * modules/gc (configure.ac, Makefile.am): If building statically,
61606         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61607         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61608         * modules/striconv (configure.ac, Makefile.am): Likewise.
61609         Based on a suggestion by Ralf Wildenhues.
61610
61611 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61614         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61615         Also:
61616
61617         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61618         Add year_2050_test to catch glibc bug 2821
61619         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61620
61621         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61622         Prefer #ifdef to #if.
61623
61624         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61625         Return from 'main' instead of calling 'exit'.
61626
61627 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61630         returned the maximum time_t value rather than (time_t) -1.
61631         Problem originally reported by William Bardwell
61632         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61633
61634         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61635         Moved to here ...
61636         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61637         ... from here.
61638
61639 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61642         2821 is fixed.
61643
61644 2006-09-08  Jim Meyering  <jim@meyering.net>
61645
61646         Don't make generated files read-only.  That would bother too many
61647         people.  However, do retain the ability to work when targets are
61648         read-only: remove the destination and temporary files before writing
61649         them (when generated via sed or echo), or by using the -f option for
61650         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61651         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61652         * modules/byteswap, modules/configmake, modules/fcntl:
61653         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61654         * modules/localcharset, modules/netinet_in, modules/poll:
61655         * modules/stdbool, modules/stdint, modules/sys_select:
61656         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61657
61658 2006-09-08  Jim Meyering  <jim@meyering.net>
61659
61660         Avoid new build failure on FreeBSD 6.0.
61661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61662         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61663         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61664
61665 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61666
61667         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61668
61669 2006-09-07  Jim Meyering  <jim@meyering.net>
61670
61671         Fix global typo in last change: use chmod u-w, not chmod u-x.
61672         Spotted by Paul Eggert and Bruce Korb.
61673         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61674         * modules/byteswap, modules/configmake, modules/fcntl:
61675         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61676         * modules/localcharset, modules/netinet_in, modules/poll:
61677         * modules/stdbool, modules/stdint, modules/sys_select:
61678         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61679
61680 2006-09-06  Jim Meyering  <jim@meyering.net>
61681
61682         Make generated files be read-only.
61683         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61684         Ensure that each generated file is now read-only.
61685         * modules/argz: Likewise.
61686         * modules/arpa_inet: Likewise.
61687         * modules/byteswap: Likewise.
61688         * modules/configmake: Likewise.
61689         * modules/fcntl: Likewise.
61690         * modules/fnmatch: Likewise.
61691         * modules/getopt: Likewise.
61692         * modules/glob: Likewise.
61693         * modules/inttypes: Likewise.
61694         * modules/netinet_in: Likewise.
61695         * modules/poll: Likewise.
61696         * modules/stdbool: Likewise.
61697         * modules/stdint: Likewise.
61698         * modules/sys_select: Likewise.
61699         * modules/sys_socket: Likewise.
61700         * modules/sys_stat: Likewise.
61701         * modules/sysexits: Likewise.
61702         * modules/localcharset: Same as above, but continue using temporary
61703         file named "t-$@" (why different?) rather than the "$@-t" used
61704         everywhere else.
61705
61706         * modules/sysexits (Makefile.am): Replace literal occurrences
61707         of "sysexit.h" more readable, and more consistent, "$@".
61708
61709 2006-09-06  Bruno Haible  <bruno@clisp.org>
61710
61711         * modules/striconv: New file.
61712         * modules/xstriconv: New file.
61713         * MODULES.html.sh (Internationalization functions): Add striconv,
61714         xstriconv.
61715
61716 2006-09-06  Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61719         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61720         not using libtool correctly.
61721
61722 2006-09-06  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/striconv.h: New file.
61725         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61726         iconvstring.c.
61727         * lib/xstriconv.h: New file.
61728         * lib/xstriconv.c: New file.
61729
61730 2006-09-06  Bruno Haible  <bruno@clisp.org>
61731
61732         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61733         lib_..._LDFLAGS.
61734
61735 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61736
61737         * lib/argz_.h: Sync from Libtool.
61738
61739         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61740                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61741
61742         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61743
61744 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61745
61746         * modules/trim: New file.
61747
61748 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61749
61750         * lib/trim.h: New file.
61751         * lib/trim.c: New file.
61752
61753 2006-09-05  Bruno Haible  <bruno@clisp.org>
61754
61755         * MODULES.html.sh (String handling): Add trim.
61756
61757 2006-09-04  Karl Berry  <karl@gnu.org>
61758
61759         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61760         until next release.
61761
61762 2006-09-03  Bruno Haible  <bruno@clisp.org>
61763
61764         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61765         correctly.
61766
61767 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61770         not gl_GETLOADAVG.  Omit unneeded semicolons.
61771         Problems reported by Ralf Wildenhues in
61772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61773         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61774         at the end, which is the usual gnulib style.
61775
61776         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61777         of doing all the work ourselves.
61778         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61779         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61780
61781 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61784         Problem reported by Ralf Wildenhues in
61785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61786
61787         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61788         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61789
61790 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61793         yesterday's patch by changing test -n to test -z.
61794
61795 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61798         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61799         the former is now obsolescent.
61800
61801         * modules/chdir-long (Depends-on): Add fcntl.
61802
61803 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61804
61805         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61806         obsolescent, and programs should use gnulib instead.
61807         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61808         but with prefixes changed.
61809
61810 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61811
61812         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61813         or stdbool.h, because they might not exist while configuring.
61814
61815         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61816         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61817         does that for us.
61818         (O_DIRECTORY): Remove.
61819
61820 2006-08-31  Eric Blake  <ebb9@byu.net>
61821
61822         * gnulib-tool: Don't let emacs change spaces to TAB.
61823
61824 2006-08-31  Bruno Haible  <bruno@clisp.org>
61825
61826         * gnulib-tool: When calling func_import more than once, do it in a
61827         subshell.
61828         Reported by Eric Blake <ebb9@byu.net>.
61829
61830 2006-08-31  Bruno Haible  <bruno@clisp.org>
61831
61832         * gnulib-tool (nl): Remove variable.
61833         (sed_transform_lib_file): Use more robust test for config-h module.
61834         (func_import): Fix typo in 2006-08-25 patch.
61835
61836 2006-08-31  Bruno Haible  <bruno@clisp.org>
61837
61838         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61839         specified, augment Makefile.am variables instead of assigning them.
61840
61841 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61842
61843         Work around a bug in both the Linux and SunOS 64-bit kernels:
61844         nanosleep mishandles sleeps for longer than 2**31 seconds.
61845         Problem reported by Frank v Waveren in
61846         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61848         Check for nanosleep bug.
61849         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61850
61851 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         Work around a bug in both the Linux and SunOS 64-bit kernels:
61854         nanosleep mishandles sleeps for longer than 2**31 seconds.
61855         Problem reported by Frank v Waveren in
61856         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61857         * lib/nanosleep.c (BILLION): New constant.
61858         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61859         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61860         implementation.
61861
61862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         * modules/nanosleep (Depends-on): Add gettime.
61865
61866 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61867         and Simon Josefsson  <jas@extundo.com>
61868         and Oskar Liljeblad  <oskar@osk.mine.nu>
61869
61870         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61871         * gnulib-tool (func_import): New license type 'unmodifiable license
61872         text'.
61873         * modules/fdl: Use it.  Longer description.
61874         * module/gpl, module/lgpl: New files.
61875
61876 2006-08-30  Jim Meyering  <jim@meyering.net>
61877
61878         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61879         shadowing the parameter.
61880
61881 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61882
61883         Sync from Libtool:
61884
61885         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61886
61887         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61888         sharing with gnulib.  Report by Eric Blake.
61889
61890 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61891
61892         * modules/isapipe: New file.
61893         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61894
61895 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * modules/configmake (Makefile.am): Add a comment, and omit
61898         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61899         by Bruno Haible.
61900
61901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * m4/isapipe.m4: New file.
61904
61905 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61906
61907         * lib/isapipe.c, lib/isapipe.h: New files.
61908
61909 2006-08-29  Jim Meyering  <jim@meyering.net>
61910
61911         * modules/configmake (Makefile.am): Make configmake.h depend on
61912         Makefile.  Otherwise, a stale configmake.h could hang around.
61913
61914 2006-08-29  Eric Blake  <ebb9@byu.net>
61915
61916         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61917         resolution of upstream bug 3044.
61918
61919 2006-08-29  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/localcharset (Depends-on): Add configmake.
61922         (Makefile.am): Remove setting of LIBDIR through DEFS.
61923
61924 2006-08-29  Bruno Haible  <bruno@clisp.org>
61925
61926         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61927         defined.
61928
61929 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * modules/fcntl: New file.
61932         * modules/chdir-safer (Depends-on): Add fcntl.
61933         * modules/fts: Likewise.
61934         * modules/mkdir-p: Likewise.
61935
61936         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61937         This undoes the most recent change, since we're now addressing the
61938         problem in a different way.
61939
61940         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61941         into output, since the output might be called Makefile.am even
61942         if $makefile_name is something different.
61943         (func_import): Use $makefile_am rather than
61944         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61945         empty.
61946
61947         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61948
61949 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61952         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61953         recent change to stdint.m4, since we're now addressing the problem in a
61954         different way.
61955
61956 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * m4/fcntl_h.m4: New file.
61959
61960 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61961
61962         * lib/fcntl_.h: New file.
61963         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61964         the fcntl module.
61965         * lib/dirchownmod.c: Likewise.
61966         * lib/fts.c: Likewise.
61967
61968         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61969         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61970         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61971         just before including <inttypes.h>, to avoid circular inclusion.
61972
61973 2006-08-28  Jim Meyering  <jim@meyering.net>
61974
61975         * doc/visibility.texi: Actually read and correct the grammar of the
61976         sentence affected by yesterday's change.
61977
61978 2006-08-28  Eric Blake  <ebb9@byu.net>
61979
61980         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61981         needs wrapper.
61982
61983 2006-08-28  Eric Blake  <ebb9@byu.net>
61984
61985         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61986
61987 2006-08-28  Eric Blake  <ebb9@byu.net>
61988
61989         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61990
61991 2006-08-28  Bruno Haible  <bruno@clisp.org>
61992
61993         * modules/c-strstr: New file, from GNU gettext.
61994         * MODULES.html.sh (String handling): Add c-strstr.
61995
61996 2006-08-28  Bruno Haible  <bruno@clisp.org>
61997
61998         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61999         macros.
62000         Reported by Eric Blake.
62001
62002 2006-08-28  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62005         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62006         * lib/vasprintf.c: Include errno.h, limits.h.
62007         (EOVERFLOW): New fallback definition.
62008         (vasprintf): Test here whether the string length is > INT_MAX.
62009         * lib/vsnprintf.c: Include errno.h, limits.h.
62010         (EOVERFLOW): New fallback definition.
62011         (vsnprintf): Fix bug when generated string was too long for the buffer.
62012         Test here whether the string length is > INT_MAX.
62013
62014 2006-08-28  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/inttypes_.h (SCNX*): Remove definitions.
62017         Reported by Eric Blake.
62018
62019 2006-08-28  Bruno Haible  <bruno@clisp.org>
62020
62021         * lib/c-strstr.h: New file, from GNU gettext.
62022         * lib/c-strstr.c: New file, from GNU gettext.
62023
62024 2006-08-28  Bruno Haible  <bruno@clisp.org>
62025
62026         * gnulib-tool: Reorder some statements.
62027
62028 2006-08-28  Bruno Haible  <bruno@clisp.org>
62029
62030         * gnulib-tool: New option --makefile-name.
62031         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62032         $makefile_name.
62033         (func_import): Write $makefile_name to the cache file, and read it from
62034         there unless explicitly specified. Use $makefile_name as file name
62035         instead of Makefile.am. Adjust the recommendations accordingly.
62036
62037 2006-08-28  Bruno Haible  <bruno@clisp.org>
62038
62039         * gnulib-tool (func_verify_module): Check against misapplying patch.
62040
62041 2006-08-28  Bruno Haible  <bruno@clisp.org>
62042
62043         * gnulib-tool (func_relativize, func_relconcat): New functions.
62044         Give an error if --local-dir is given with --update.
62045         Remove trailing slashes from $local_gnulib_dir.
62046         (func_import): Store the relativized $local_gnulib_dir in
62047         gnulib-cache.m4, and read it from there if not specified explicitly.
62048
62049 2006-08-28  Bruno Haible  <bruno@clisp.org>
62050
62051         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62052         is the current directory. Respect also $local_gnulib_dir.
62053
62054 2006-08-28  Bruno Haible  <bruno@clisp.org>
62055             Simon Josefsson  <jas@extundo.com>
62056
62057         BeOS portability.
62058         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62059
62060 2006-08-27  Jim Meyering  <jim@meyering.net>
62061
62062         * doc/visibility.texi: Remove duplicate word: "pointer".
62063
62064 2006-08-26  Bruno Haible  <bruno@clisp.org>
62065
62066         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62067         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62068         (Makefile.am): Create inttypes.h from inttypes_.h.
62069         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62070
62071         * modules/imaxabs: New file.
62072
62073         * modules/imaxdiv: New file.
62074
62075 2006-08-26  Bruno Haible  <bruno@clisp.org>
62076
62077         * m4/inttypes.m4: New file.
62078         * m4/_inttypes_h.m4: Remove file.
62079         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62080         PRI_MACROS_BROKEN.
62081         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62082
62083         * m4/imaxabs.m4: New file.
62084
62085         * m4/imaxdiv.m4: New file.
62086
62087 2006-08-26  Bruno Haible  <bruno@clisp.org>
62088
62089         * lib/inttypes_.h: New file.
62090         * lib/inttypes.h: Remove file.
62091         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62092
62093         * lib/imaxabs.c: New file.
62094
62095         * lib/imaxdiv.c: New file.
62096
62097 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         New config-h module, so that "make" output needn't be cluttered
62100         by -DHAVE_CONFIG_H.
62101         * MODULES.html.sh (Support for building libraries and executables):
62102         Add config-h.
62103         * modules/config-h: New file.
62104         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62105         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62106         the config-h module is used.
62107
62108         New configmake module, so that "make" output needn't be cluttered
62109         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62110         * MODULES.html.sh (Support for building libraries and executables):
62111         Add configmake.
62112         * modules/configmake: New file.
62113
62114 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62115
62116         * m4/config-h.m4: New file.
62117
62118 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * config/srclist.txt: Add elisp-comp.
62121
62122 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62123
62124         * MODULES.html.sh (Support for building libraries and executables):
62125         Add elisp-comp.
62126         * build-aux/elisp-comp: New file.
62127         * modules/elisp-comp: New file.
62128
62129 2006-08-24  Bruno Haible  <bruno@clisp.org>
62130
62131         * gnulib-tool (func_create_testdir): Use non-default values of
62132         sourcebase and m4base.
62133
62134 2006-08-24  Bruno Haible  <bruno@clisp.org>
62135
62136         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62137         HTML structure.
62138
62139 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         * modules/openat (Depends-on): Add lchown.
62142
62143 2006-08-23  Bruno Haible  <bruno@clisp.org>
62144
62145         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62146         of gl_LOCK_EARLY instead of gl_LOCK.
62147
62148 2006-08-23  Bruno Haible  <bruno@clisp.org>
62149
62150         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62151         on OSF/1 to no.
62152         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62153
62154 2006-08-23  Bruno Haible  <bruno@clisp.org>
62155
62156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62157         as unusable.
62158
62159         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62160         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62161         (gl_LOCK): New macro.
62162
62163 2006-08-22  Simon Josefsson  <jas@extundo.com>
62164
62165         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62166         to md5 module.
62167
62168 2006-08-22  Simon Josefsson  <jas@extundo.com>
62169
62170         * MODULES.html.sh: Add "Support for maintaining and release
62171         projects".
62172
62173         * build-aux/gnupload: New file, from coreutils.
62174
62175 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62176
62177         Avoid the need for AC_LIBSOURCES in m4 macros.
62178         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62179         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62180         * modules/check-version (EXTRA_DIST): Add check-version.h.
62181         * modules/crc (EXTRA_DIST): Add crc.h.
62182         * modules/des (EXTRA_DIST): Add des.h.
62183         * modules/gc (EXTRA_DIST): Add gc.h.
62184         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62185         * modules/getline (EXTRA_DIST): Add getline.h.
62186         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62187         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62188         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62189         * modules/md2 (EXTRA_DIST): Add md2.h.
62190         * modules/md4 (EXTRA_DIST): Add md4.h.
62191         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62192         * modules/read-file (EXTRA_DIST): Add read-file.h.
62193         * modules/readline (EXTRA_DIST): Add readline.h.
62194         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62195         rijndael-api-fst.h.
62196
62197 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         * m4/rijndael.m4 (gl_ARCFOUR):
62200         * m4/arctwo.m4 (gl_ARCTWO):
62201         * m4/check-version.m4 (gl_CHECK_VERSION):
62202         * m4/crc.m4 (gl_CRC):
62203         * m4/des.m4 (gl_DES):
62204         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62205         * m4/gc.m4 (gl_GC):
62206         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62207         * m4/getline.m4 (gl_FUNC_GETLINE):
62208         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62209         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62210         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62211         * m4/md2.m4 (gl_MD2):
62212         * m4/md4.m4 (gl_MD4):
62213         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62214         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62215         * m4/readline.m4 (gl_FUNC_READLINE):
62216         * m4/rijndael.m4 (gl_RIJNDAEL):
62217         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62218         to get the necessary .h files and whatnot.
62219
62220 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62221
62222         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62223         gnulib rather than the other way around.
62224         * config/srclistvars.sh (COREUTILS): Remove.
62225
62226 2006-08-22  Jim Meyering  <jim@meyering.net>
62227
62228         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62229
62230         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62231
62232 2006-08-22  Eric Blake  <ebb9@byu.net>
62233
62234         * modules/regexprops-generic: New file.
62235         * MODULES.html.sh (Support for building documentation): List it.
62236
62237 2006-08-22  Eric Blake  <ebb9@byu.net>
62238
62239         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62240         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62241         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62242         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62243
62244 2006-08-22  Bruno Haible  <bruno@clisp.org>
62245
62246         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62247         and lib_LTLIBRARIES like the other lib_* variables.
62248
62249 2006-08-22  Bruno Haible  <bruno@clisp.org>
62250
62251         * build-aux/x-to-1.in: New file, from GNU gettext.
62252
62253 2006-08-22  Bruno Haible  <bruno@clisp.org>
62254
62255         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62256         <utmpx.h> exists.
62257
62258 2006-08-22  Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62261         <utmpx.h> exists.
62262
62263 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62264
62265         BeOS portability.
62266         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62267         exist.
62268         Problem reported by Bruno Haible.
62269
62270 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         Avoid the need for AC_LIBSOURCES in m4 macros.
62273         * modules/acl (EXTRA_DIST): Add acl.h.
62274         * modules/argmatch (Files): Add m4/argmatch.m4.
62275         (configure.ac): Add gl_ARGMATCH.
62276         (EXTRA_DIST): Renamed from lib_SOURCES, for
62277         consistency with the other modules.  Remove argmatch.c.
62278         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62279         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62280         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62281         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62282         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62283         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62284         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62285         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62286         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62287         * modules/closeout (EXTRA_DIST): Add closeout.h.
62288         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62289         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62290         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62291         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62292         dirname.h; remove basename.c and stripslash.c.
62293         * modules/exclude (EXTRA_DIST): Add exclude.h.
62294         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62295         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62296         * modules/file-type (EXTRA_DIST): Add file-type.h.
62297         * modules/filemode (EXTRA_DIST): Add filemode.h.
62298         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62299         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62300         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62301         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62302         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62303         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62304         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62305         * modules/getdate (EXTRA_DIST): Add getdate.c.
62306         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62307         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62308         * modules/getpass (EXTRA_DIST): Add getpass.h.
62309         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62310         * modules/group-member (EXTRA_DIST): Add group-member.h.
62311         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62312         * modules/hash (EXTRA_DIST): Add hash.h.
62313         * modules/human (EXTRA_DIST): Add human.h.
62314         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62315         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62316         * modules/lchown (EXTRA_DIST): Add lchown.h.
62317         * modules/long-options (EXTRA_DIST): Add long-options.h.
62318         * modules/lstat (EXTRA_DIST): Add lstat.h.
62319         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62320         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62321         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62322         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62323         * modules/memxor (EXTRA_DIST): Add memxor.h.
62324         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62325         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62326         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62327         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62328         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62329         * modules/physmem (EXTRA_DIST): Add physmem.h.
62330         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62331         * modules/posixver (EXTRA_DIST): Add posixver.h.
62332         * modules/quote (EXTRA_DIST): Add quote.h.
62333         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62334         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62335         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62336         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62337         regex_internal.h regexec.c.
62338         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62339         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62340         * modules/same (EXTRA_DIST): Add same.h.
62341         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62342         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62343         * modules/savedir (EXTRA_DIST): Add savedir.h.
62344         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62345         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62346         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62347         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62348         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62349         * modules/strdup (EXTRA_DIST): Add strdup.h.
62350         * modules/strftime (EXTRA_DIST): Add strftime.h.
62351         * modules/strndup (EXTRA_DIST): Add strndup.h.
62352         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62353         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62354         * modules/time_r (EXTRA_DIST): Add time_r.h.
62355         * modules/timespec (EXTRA_DIST): Add timespec.h.
62356         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62357         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62358         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62359         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62360         * modules/userspec (EXTRA_DIST): Add userspec.h.
62361         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62362         * modules/utimens (EXTRA_DIST): Add utimens.h.
62363         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62364         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62365         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62366         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62367         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62368         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62369         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62370         * modules/yesno (EXTRA_DIST): Add yesno.h.
62371
62372 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62375
62376         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62377         * m4/dev-ino.m4, same-inode.m4: Remove.
62378
62379         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62380         * m4/acl.m4 (AC_FUNC_ACL):
62381         * m4/backupfile.m4 (gl_BACKUPFILE):
62382         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62383         * m4/canon-host.m4 (gl_CANON_HOST):
62384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62385         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62386         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62387         * m4/cloexec.m4 (gl_CLOEXEC):
62388         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62389         * m4/closeout.m4 (gl_CLOSEOUT):
62390         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62391         * m4/dirname.m4 (gl_DIRNAME):
62392         * m4/exclude.m4 (gl_EXCLUDE):
62393         * m4/exitfail.m4 (gl_EXITFAIL):
62394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62395         * m4/file-type.m4 (gl_FILE_TYPE):
62396         * m4/filemode.m4 (gl_FILEMODE):
62397         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62398         * m4/fpending.m4 (gl_FUNC_FPENDING):
62399         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62400         * m4/fts.m4 (gl_FUNC_FTS):
62401         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62402         * m4/getdate.m4 (gl_GETDATE):
62403         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62404         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62405         * m4/getpass.m4 (gl_FUNC_GETPASS):
62406         * m4/gettime.m4 (gl_GETTIME):
62407         * m4/getugroups.m4 (gl_GETUGROUPS):
62408         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62409         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62410         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62411         * m4/hash.m4 (gl_HASH):
62412         * m4/idcache.m4 (gl_IDCACHE):
62413         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62414         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62415         * m4/long-options.m4 (gl_LONG_OPTIONS):
62416         * m4/lstat.m4 (gl_FUNC_LSTAT):
62417         * m4/md5.m4 (gl_MD5):
62418         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62419         * m4/memcoll.m4 (gl_MEMCOLL):
62420         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62421         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62422         * m4/memxor.m4 (gl_MEMXOR):
62423         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62424         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62425         * m4/modechange.m4 (gl_MODECHANGE):
62426         * m4/mountlist.m4 (gl_MOUNTLIST):
62427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62428         * m4/openat.m4 (gl_FUNC_OPENAT):
62429         * m4/pathmax.m4 (gl_PATHMAX):
62430         * m4/physmem.m4 (gl_PHYSMEM):
62431         * m4/posixtm.m4 (gl_POSIXTM):
62432         * m4/posixver.m4 (gl_POSIXVER):
62433         * m4/quote.m4 (gl_QUOTE):
62434         * m4/quotearg.m4 (gl_QUOTEARG):
62435         * m4/readtokens.m4 (gl_READTOKENS):
62436         * m4/readutmp.m4 (gl_READUTMP):
62437         * m4/regex.m4 (gl_REGEX):
62438         * m4/safe-read.m4 (gl_SAFE_READ):
62439         * m4/safe-write.m4 (gl_SAFE_WRITE):
62440         * m4/same.m4 (gl_SAME):
62441         * m4/save-cwd.m4 (gl_SAVE_CWD):
62442         * m4/savedir.m4 (gl_SAVEDIR):
62443         * m4/settime.m4 (gl_SETTIME):
62444         * m4/sha1.m4 (gl_SHA1):
62445         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62446         * m4/stat-macros.m4 (gl_STAT_MACROS):
62447         * m4/stat-time.m4 (gl_STAT_TIME):
62448         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62449         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62450         * m4/strdup.m4 (gl_FUNC_STRDUP):
62451         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62452         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62453         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62454         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62455         * m4/time_r.m4 (gl_TIME_R):
62456         * m4/timespec.m4 (gl_TIMESPEC):
62457         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62458         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62459         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62460         * m4/userspec.m4 (gl_USERSPEC):
62461         * m4/utimecmp.m4 (gl_UTIMECMP):
62462         * m4/utimens.m4 (gl_UTIMENS):
62463         * m4/xalloc.m4 (gl_XALLOC):
62464         * m4/xgetcwd.m4 (gl_XGETCWD):
62465         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62466         * m4/xreadlink.m4 (gl_XREADLINK):
62467         * m4/xstrtod.m4 (gl_XSTRTOD):
62468         * m4/yesno.m4 (gl_YESNO):
62469         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62470         to get the necessary .h files and whatnot.
62471
62472 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62473             Bruno Haible  <bruno@clisp.org>
62474
62475         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62476         /bin/sh understanding of '!' conditional negation.
62477
62478 2006-08-21  Jim Meyering  <jim@meyering.net>
62479
62480         * modules/openat (Depends-on): Really alphabetize.
62481
62482         * modules/acl (Depends-on): Add error and quote.
62483
62484         * check-module (find_included_lib_files): Add at-func.c to the
62485         ok-to-include-more-than-once white list.
62486
62487         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62488
62489 2006-08-21  Bruno Haible  <bruno@clisp.org>
62490
62491         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62492         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62493         Reported by Martin Lambers <marlam@marlam.de>.
62494
62495 2006-08-21  Bruno Haible  <bruno@clisp.org>
62496
62497         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62498         specify an installation location, don't emit a noinst_LIBRARIES or
62499         noinst_LTLIBRARIES assignment.
62500
62501 2006-08-21  Bruno Haible  <bruno@clisp.org>
62502
62503         BeOS portability.
62504         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62505         BeOS has mbrtowc() but no <wctype.h>.
62506
62507 2006-08-21  Bruno Haible  <bruno@clisp.org>
62508
62509         BeOS portability.
62510         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62511         exist.
62512
62513 2006-08-21  Bruno Haible  <bruno@clisp.org>
62514
62515         BeOS portability.
62516         * lib/mbchar.h: Include <wctype.h> only if it exists.
62517
62518 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62519
62520         Remove files that are no longer needed by their respective modules.
62521         * m4/obstack.m4: Remove.
62522         * m4/strerror_r.m4: Remove.
62523         * m4/uint32_t.m4: Remove.
62524         * m4/uintptr_t.m4: Remove.
62525         * m4/ullong_max.m4: Remove.
62526         * m4/xstrtoimax.m4: Remove.
62527         * m4/xstrtoumax.m4: Remove.
62528
62529         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62530         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62531         dependencies now capture this.
62532
62533         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62534         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62535         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62536         * m4/human.m4 (gl_HUMAN): Likewise.
62537         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62538         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62539
62540         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62541
62542         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62543         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62544         stdint.
62545         * m4/human.m4 (gl_HUMAN): Likewise.
62546         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62547         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62548         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62549         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62550         * m4/xstrtol (gl_XSTRTOL): Likewise.
62551
62552         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62553         AC_TYPE_LONG_LONG_INT.
62554         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62555         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62556         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62557         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62558
62559         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62560         on stdbool.
62561
62562         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62563         (gl_PREREQ_XSTRTOUL): Remove.
62564
62565         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62566
62567         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62568         mode.
62569
62570 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62571
62572         Add and change modules to make it easier for coreutils to use
62573         gnulib-tool.
62574         * modules/backupfile (Files): Remove m4/d-ino.m4.
62575         (Depends-on): Add d-ino.
62576         * modules/cycle-check (Depends-on): Add stdint.
62577         (lib_SOURCES): Add cycle-check.h.
62578         * modules/d-ino: New module.
62579         * modules/d-type: New module.
62580         * modules/error (Files): Remove m4/strerror_r.m4.
62581         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62582         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62583         m4/inttypes_h.m4, m4/uintmax_t.m4.
62584         (Depends-on): Add stdint.
62585         (lib_SOURCES): Add fsusage.h.
62586         * modules/getcwd (Files): Remove d-ino.m4.
62587         (Depends-on): Add d-ino.
62588         * modules/getndelim2 (Depends-on): Add stdint.
62589         * modules/glob (Files): Remove m4/d-type.m4.
62590         (Depends-on): Add d-type.
62591         * modules/host-os: New module.
62592         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62593         m4/inttypes_h.m4, m4/uintmax_t.m4.
62594         * Depends-on: Add stdint.
62595         (lib_SOURCES): Add human.h.
62596         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62597         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62598         m4/uintmax_t.m4, m4/ulonglong.m4.
62599         (Depends-on): Add stdint.
62600         (EXTRA_DIST): Add inttostr.h.
62601         * modules/lchmod: New module.
62602         * modules/link-follow: New module.
62603         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62604         (Depends-on): Add lchmod.
62605         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62606         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62607         (Depends-on): Add stdint.
62608         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62609         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62610         (Depends-on): Add stdint.
62611         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62612         * modules/perl: New module.
62613         * modules/regex (Depends-on): Add stdint.
62614         * modules/rmdir-errno: New module.
62615         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62616         m4/intmax_t.m4.
62617         (Depends-on): Add stdint.
62618         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62619         m4/uintmax_t.m4.
62620         (Depends-on): Add stdint.
62621         * modules/unlink-busy: New module.
62622         * modules/utimecmp (Depends-on): Add stdint.
62623         * modules/uptime: New module.
62624         * modules/winsz-ioctl: New module.
62625         * modules/winsz-termios: New module.
62626         * modules/xnanosleep (Depends-on): Add nanosleep.
62627         * modules/ullong_max: Remove.
62628         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62629         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62630         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62631         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62632         (Depends-on): Add inttypes.
62633         (lib_SOURCES): Add xstrtol.h.
62634         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62635         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62636         * MODULES.html.sh: Move 'assert' into the assert section.
62637         Move 'dummy' into the linking section.
62638         Remove ullong_max.
62639         Add section for compatibility checks for POSIX:2001 functions,
62640         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62641         winsz-ioctl, and winsz-termios into it.
62642         Add lchmod.
62643         Add top-level Misc section and put host-os, perl, and uptime
62644         into it.
62645
62646 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62649         now assume the stdint module.  Do not include inttypes.h.
62650         * lib/fsusage.h: Likewise.
62651         * lib/getndelim2.c: Likewise.
62652         * lib/human.h: Likewise.
62653         * lib/inttostr.h: Likewise.
62654         * lib/obstack.c: Likewise.
62655         * lib/regex_internal.h: Likewise.
62656         * lib/tempname.c: Likewise.
62657         * lib/utimecmp.c: Likewise.
62658         * lib/xstrtol.h: Likewise.
62659
62660         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62661
62662         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62663         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62664         * lib/xtime.h: Likewise.
62665
62666 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * modules/openat (Files): Add lib/fchmodat.c.
62669         Fixes problem reported by Jay Youngman.
62670
62671 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62674         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62675
62676 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62677             Bruno Haible  <bruno@clisp.org>
62678
62679         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62680         and is a script that invokes bison. Tighten the code. Add comments.
62681
62682 2006-08-18  Jim Meyering  <jim@meyering.net>
62683
62684         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62685         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62686         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62687         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62688
62689 2006-08-18  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/bison-i18n: New file.
62692         * MODULES.html.sh (Internationalization functions): Add it.
62693
62694 2006-08-18  Bruno Haible  <bruno@clisp.org>
62695
62696         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62697         sys/statvfs.h. When getmntinfo was found, check its declaration and
62698         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62699
62700 2006-08-18  Bruno Haible  <bruno@clisp.org>
62701
62702         * m4/bison-i18n.m4: New file, from bison.
62703
62704 2006-08-18  Bruno Haible  <bruno@clisp.org>
62705
62706         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62707         (ME_DUMMY): Treat "kernfs" as a dummy.
62708         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62709
62710 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62711
62712         Update from coreutils.
62713
62714         2006-08-15  Jim Meyering  <jim@meyering.net>
62715
62716         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62717
62718         2006-01-17  Jim Meyering  <jim@meyering.net>
62719
62720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62721
62722         2006-01-11  Jim Meyering  <jim@meyering.net>
62723
62724         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62725         Check for the lchmod function.
62726
62727 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         Update from coreutils.
62730
62731         * lib/__fpending.h: Add copyright notice.
62732         * lib/fprintftime.h: Likewise.
62733         * lib/savedir.c: Use (C) in copyright notice.
62734         * lib/savedir.h: Likewise.
62735
62736         2006-08-15  Jim Meyering  <jim@meyering.net>
62737
62738         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62739         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62740         in support of the EXPECTED_ERRNO macro.
62741         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62742         definitions.  Instead, define the appropriate symbols and include
62743         "at-func.c".
62744         * lib/mkdirat.c (mkdirat): Likewise.
62745         * lib/fchmodat.c (fchmodat): Likewise.
62746         (ENOSYS): Remove definition.
62747         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62748         it.  Don't include "unistd--.h" -- it wasn't ever used.
62749
62750         2006-01-17  Jim Meyering  <jim@meyering.net>
62751
62752         Rewrite fts.c not to change the current working directory,
62753         by using openat, fstatat, fdopendir, etc..
62754
62755         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62756         (HAVE_OPENAT_SUPPORT): Define.
62757         [_LIBC] (fchdir): Don't undef or define; no longer used.
62758         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62759         Now, this `function' always succeeds, and consumes its file descriptor
62760         parameter -- so callers must not close such FDs.  Update callers.
62761         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62762         (diropen): Add parameter, SP.  Adjust all callers.
62763         Implement using diropen_fd, rather than open.
62764         (fts_open): Initialize new member, fts_cwd_fd.
62765         Remove fts_rft-setting code.
62766         (fts_close): Close fts_cwd_fd, if necessary.
62767         (__opendir2): Define in terms of opendir or opendirat,
62768         depending on whether the FST_NOCHDIR flag is set.
62769         (fts_build): Since fts_safe_changedir consumes its FD, and since
62770         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62771         and close the dup'd file descriptor upon failure.
62772         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62773         (fts_safe_changedir): Tweak semantics to reflect that this function
62774         now calls cwd_advance_fd and hence consumes its FD argument.
62775         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62776         [struct FTS] (fts_rft): Remove now-unused member.
62777         [struct FTS] (fts_cycle.state): Improve comment.
62778
62779         * lib/openat.c (openat_needs_fchdir): New function.
62780         * lib/openat.h (openat_needs_fchdir): Declare it.
62781
62782 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62785         Problem and fix reported by Pádraig Brady in
62786         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62787
62788 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62789
62790         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62791
62792 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * lib/memcoll.c (memcoll): Optimize for the common case where the
62795         arguments are bytewise equal.
62796
62797 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62798
62799         * doc/regexprops-generic.texi: Add a copyright notice.
62800
62801 2006-08-15  Bruno Haible  <bruno@clisp.org>
62802
62803         * modules/tmpdir (License): Change to LGPL.
62804
62805 2006-08-15  Bruno Haible  <bruno@clisp.org>
62806
62807         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62808         module.
62809
62810 2006-08-14  Simon Josefsson  <jas@extundo.com>
62811
62812         * config/srclist.txt: Add gnupload.
62813
62814 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62815
62816         Change copyright notice from LGPL 2 to GPL 2, since that's the
62817         standard form used in the gnulib repository.
62818         * tests/test-lock.c: Likewise.
62819         * tests/test-stdint.c: Likewise.
62820         * tests/test-tls.c: Likewise.
62821
62822         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62823         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62824         Add copyright notice.
62825
62826         * check-module: Add copyright notice.  Output a copyright
62827         notice if "--version" is specified.
62828         * modules/COPYING: New file.
62829         * tests/test-getaddrinfo.c: Add copyright notice.
62830         * tests/test-verify.c: Likewise.
62831
62832 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         Change copyright notice from LGPL 2 to GPL 2, since that's the
62835         standard form used in the gnulib repository.
62836         * lib/lock.c: LGPL -> GPL.
62837         * lib/lock.h: Likewise.
62838         * lib/strnlen1.c: Likewise.
62839         * lib/strnlen1.h: Likewise.
62840         * lib/tls.c: Likewise.
62841         * lib/tls.h: Likewise.
62842         * lib/tmpdir.c: Likewise.
62843
62844         * lib/TODO: Remove; this belongs only in coreutils.
62845
62846 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         Add copyright notices to long-enough files that lack them, since
62849         otherwise the files aren't clearly free.  Use the same notice that
62850         getdate.texi already uses.
62851         * doc/alloca-opt.texi: Add copyright notice.
62852         * doc/alloca.texi: Likewise.
62853         * doc/ctime.texi: Likewise.
62854         * doc/functions.texi: Likewise.
62855         * doc/gcd.texi: Likewise.
62856         * doc/gnulib-tool.texi: Likewise.
62857         * doc/inet_ntoa.texi: Likewise.
62858         * doc/visibility.texi: Likewise.
62859
62860         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62861         * doc/quote.texi: Add copyright notice.
62862
62863         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62864         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62865         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62866         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62867         is now obsolete, and give a pointer to the Sun list.
62868         Add copyright notice.
62869
62870 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62871
62872         * config/srclistvars.sh: Add copyright notice.
62873
62874 2006-08-14  Eric Blake  <ebb9@byu.net>
62875
62876         Import the following change from libc:
62877
62878         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62879
62880         Upstream bug 2997.
62881         * lib/misc/error.c: Add space between program name and message if file
62882         name is missing.
62883
62884 2006-08-12  Karl Berry  <karl@gnu.org>
62885
62886         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62887         remove, these originate in gnulib now.
62888
62889 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62890
62891         * doc/Makefile (standards.info standards.html standards.dvi):
62892         Also depend on make-stds.texi.
62893
62894 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62895
62896         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62897         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62898
62899         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62900         in wchar_t.  Problem reported by Eric Blake.
62901
62902         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62903         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62904         Also, help the compiler to keep LEN in a register.
62905
62906 2006-08-11  Eric Blake  <ebb9@byu.net>
62907
62908         * users.txt: Sort.  Add tar.
62909
62910 2006-08-11  Bruno Haible  <bruno@clisp.org>
62911
62912         * users.txt: New file.
62913
62914 2006-08-11  Bruno Haible  <bruno@clisp.org>
62915
62916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62917         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62918
62919 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62920
62921         * modules/snprintf (Depends-on): Remove minmax.
62922         (Maintainer): Add self and Bruno.
62923
62924 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62925
62926         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62927         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62928         (EOVERFLOW): Define if the system does not.
62929         Do not include "minmax.h"; it wasn't used.
62930         (snprintf): Don't assume size_t promotes to an unsigned type.
62931         Fix bug when generated string was too long for the buffer: the
62932         buffer's contents are supposed to be the initial prefix of the
62933         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62934         exceeds INT_MAX; do the check ourselves.
62935
62936         Import the following changes from libc:
62937
62938         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62939
62940         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62941         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62942         set wc to the byte which couldn't be converted.
62943         (re_string_reconstruct): Don't clear valid_raw_len before calling
62944         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62945         tip_context using re_string_context_at.
62946
62947         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62948
62949         * lib/posix/regex.h: g++ still cannot handled [restrict].
62950
62951         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62952
62953         * lib/posix/regex.h: Remove special handling for VMS.
62954
62955 2006-08-10  Jim Meyering  <jim@meyering.net>
62956
62957         * modules/same-inode: New module.
62958         * modules/dev-ino: New module.
62959         * modules/cycle-check: Depend on these modules, rather than simply
62960         including their .h files.
62961         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62962         required via m4/cycle-check.m4.
62963         * modules/same: Depend on new same-inode module, rather than
62964         including same-inode.h.
62965         * modules/chdir-safer: New file.
62966
62967         * modules/chown (Depends-on): Add stat-macros.
62968
62969 2006-08-10  Jim Meyering  <jim@meyering.net>
62970
62971         * m4/cycle-check.m4: New file.
62972         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62973         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62974
62975 2006-08-10  Eric Blake  <ebb9@byu.net>
62976
62977         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62978         in from original proposal.
62979
62980 2006-08-10  Eric Blake  <ebb9@byu.net>
62981         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62982
62983         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62984         namespace.
62985
62986 2006-08-10  Bruno Haible  <bruno@clisp.org>
62987
62988         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62989         as well.
62990
62991 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62992
62993         Sync from coreutils.
62994
62995         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62996
62997         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62998         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62999
63000 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63001
63002         * modules/restrict: Remove; no longer needed now that we assume
63003         Autoconf 2.59 or later.
63004         * MODULES.html.sh: Remove 'restrict'.
63005         * modules/argp (Depends-on): Remove 'restrict'.
63006         * modules/base64 (Depends-on): Likewise.
63007         * modules/gc (Depends-on): Likewise.
63008         * modules/getaddrinfo (Depends-on): Likewise.
63009         * modules/glob (Depends-on): Likewise.
63010         * modules/inet_ntop (Depends-on): Likewise.
63011         * modules/inet_pton (Depends-on): Likewise.
63012         * modules/memxor (Depends-on): Likewise.
63013         * modules/regex (Depends-on): Likewise.
63014         * modules/strtok_r (Depends-on): Likewise.
63015         * modules/time_r (Depends-on): Likewise.
63016
63017 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63020         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63021         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63022         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63023         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63024         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63025         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63026         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63027
63028         Merge from coreutils.
63029         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63030         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63031         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63032         * m4/time_r.m4 (gl_TIME_R): Likewise.
63033
63034 2006-08-09  Karl Berry  <karl@gnu.org>
63035
63036         * config/srclist.txt: no more gettext-tools, per Bruno.
63037
63038 2006-08-08  Eric Blake  <ebb9@byu.net>
63039
63040         * modules/verror: New module.
63041         * MODULES.html.sh: Document it.
63042
63043 2006-08-08  Eric Blake  <ebb9@byu.net>
63044
63045         * lib/verror.h, lib/verror.c: New files.
63046
63047 2006-08-08  Eric Blake  <ebb9@byu.net>
63048
63049         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63050         verror_at_line output complies with GNU Coding Standards even when
63051         file is NULL.
63052
63053 2006-08-07  Bruno Haible  <bruno@clisp.org>
63054
63055         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63056         versions of AIX.
63057         Reported by Ralf Wildenhues.
63058
63059 2006-08-07  Bruno Haible  <bruno@clisp.org>
63060
63061         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63062         in an AC_DEFUN. Needed so that the autoconf snippets can use
63063         AC_REQUIRE.
63064
63065 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63066
63067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63068         Initialize pkgdata_DATA.
63069         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63070         overriding it.
63071
63072 2006-08-06  Eric Blake  <ebb9@byu.net>
63073
63074         * lib/error.h: Fold in some upstream changes from glibc.
63075         * lib/error.c: Likewise.
63076
63077 2006-08-04  Bruno Haible  <bruno@clisp.org>
63078
63079         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63080         Make the mostlyclean-local rule depend on mostlyclean-generic.
63081         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63082
63083 2006-07-31  Bruno Haible  <bruno@clisp.org>
63084
63085         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63086         <stdlib.h>, <string.h>.
63087
63088 2006-07-30  Bruno Haible  <bruno@clisp.org>
63089
63090         * modules/readlink (License): Change to LGPL.
63091
63092 2006-07-30  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63095         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63096         set PKGDATADIR to point to it.
63097
63098 2006-07-30  Bruno Haible  <bruno@clisp.org>
63099
63100         * modules/csharpexec (configure.ac): Comment out macro invocation.
63101         * modules/javaexec (configure.ac): Likewise.
63102         * modules/javacomp-script (configure.ac): Likewise.
63103
63104         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63105
63106 2006-07-30  Bruno Haible  <bruno@clisp.org>
63107
63108         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63109         linked-list.
63110
63111 2006-07-30  Bruno Haible  <bruno@clisp.org>
63112
63113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63114
63115 2006-07-30  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63118         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63119         get removed.
63120
63121 2006-07-29  Bruno Haible  <bruno@clisp.org>
63122
63123         Make it possible for gnulib-tool to work with locally modified or
63124         augmented gnulib repositories.
63125         * gnulib-tool (func_usage): Document --local-dir option.
63126         (local_gnulib_dir): New variable.
63127         Handle --local-dir option.
63128         (func_lookup_file): New function.
63129         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63130         (func_get_description, func_get_filelist, func_get_description,
63131         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63132         func_get_automake_snippet, func_get_include_directive,
63133         func_get_license, func_get_maintainer): Use func_lookup_file.
63134         (func_import, func_create_testdir): Use func_lookup_file.
63135
63136 2006-07-29  Bruno Haible  <bruno@clisp.org>
63137
63138         * modules/setenv (Depends-on): Add unistd.
63139
63140 2006-07-29  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63143
63144 2006-07-29  Bruno Haible  <bruno@clisp.org>
63145
63146         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63147
63148 2006-07-29  Bruno Haible  <bruno@clisp.org>
63149
63150         * gnulib-tool (import, update): If there is no Makefile.am, look at
63151         aclocal.m4, instead of bailing out.
63152
63153 2006-07-29  Bruno Haible  <bruno@clisp.org>
63154
63155         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63156         Categorize the options by when they are useful.
63157
63158 2006-07-29  Bruno Haible  <bruno@clisp.org>
63159
63160         * gnulib-tool (func_usage): Document option --no-libtool.
63161         Handle option --no-libtool.
63162         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63163         for changed semantics of $libtool variable.
63164         (func_import): Likewise. If libtool is not used, show this through
63165         an option --no-libtool.
63166         (func_create_testdir): Update.
63167
63168 2006-07-29  Bruno Haible  <bruno@clisp.org>
63169
63170         * gnulib-tool (func_import): Extend error message about missing
63171         --doc-base.
63172
63173 2006-07-29  Bruno Haible  <bruno@clisp.org>
63174
63175         * gnulib-tool (func_import): Don't create the $docbase directory if
63176         there is no file to store there.
63177
63178 2006-07-29  Bruno Haible  <bruno@clisp.org>
63179
63180         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63181         relevant, look for configure.ac there, not in the current directory.
63182         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63183
63184 2006-07-29  Bruno Haible  <bruno@clisp.org>
63185
63186         * gnulib-tool (SORT): New variable.
63187         (func_usage): Undocument --assume-autoconf option.
63188         Remove --assume-autoconf option handling.
63189         (autoconf_minversion): Determine from the contents of configure.ac.
63190         (func_import): Remove autoconf_minversion handling.
63191         Suggested by Eric Blake.
63192
63193 2006-07-29  Bruno Haible  <bruno@clisp.org>
63194
63195         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63196
63197 2006-07-29  Bruno Haible  <bruno@clisp.org>
63198
63199         * config/srclist.txt (*setenv.[ch]): Remove rules.
63200
63201 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63202
63203         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63204
63205 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63206
63207         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63208         arpa/inet.h.
63209
63210 2006-07-28  Simon Josefsson  <jas@extundo.com>
63211
63212         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63213         * modules/inet_pton (Depends-on): Likewise.
63214
63215 2006-07-28  Simon Josefsson  <jas@extundo.com>
63216
63217         * m4/netinet_in_h.m4: New file.
63218
63219 2006-07-28  Simon Josefsson  <jas@extundo.com>
63220
63221         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63222         #include's.
63223
63224 2006-07-28  Simon Josefsson  <jas@extundo.com>
63225
63226         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63227         #include's.
63228
63229 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63232         setgid on directories only if they set these bits.
63233         * lib/modechange.h: Remove obsolete comment about masks.
63234
63235 2006-07-28  Eric Blake  <ebb9@byu.net>
63236
63237         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63238         macro expansion.
63239
63240 2006-07-28  Bruno Haible  <bruno@clisp.org>
63241
63242         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63243
63244 2006-07-28  Bruno Haible  <bruno@clisp.org>
63245
63246         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63247
63248 2006-07-28  Bruno Haible  <bruno@clisp.org>
63249
63250         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63251         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63252         Define fallbacks.
63253         Avoids link error on FreeBSD 4.x.
63254         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63255
63256         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63257         encoding.
63258         * lib/mbswidth.c (iswcntrl): Likewise.
63259
63260 2006-07-27  Bruno Haible  <bruno@clisp.org>
63261
63262         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63263         test.
63264
63265 2006-07-27  Bruno Haible  <bruno@clisp.org>
63266
63267         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63268         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63269         defined.
63270
63271 2006-07-26  Eric Blake  <ebb9@byu.net>
63272
63273         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63274
63275 2006-07-26  Eric Blake  <ebb9@byu.net>
63276
63277         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63278         like mingw that lack mkstemp.
63279         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63280         avoid compilation warning on mingw.
63281
63282 2006-07-26  Bruno Haible  <bruno@clisp.org>
63283
63284         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63285         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63286         INT_FAST*_MIN, INTPTR_MIN.
63287
63288 2006-07-25  Bruno Haible  <bruno@clisp.org>
63289
63290         * modules/version-etc (Depends-on): Add stdarg.
63291
63292 2006-07-25  Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63295         complex commands.
63296
63297 2006-07-25  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63300         defined in <stdarg.h> or config.h.
63301
63302 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63305         (gl_STDIO_SAFER): Remove.
63306
63307 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63308
63309         * MODULES.html.sh (File stream based Input/Output):
63310         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63311         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63312         * modules/fopen-safer, modules/tmpfile-safer: New files.
63313         * modules/stdio-safer: Remove.
63314
63315 2006-07-24  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/tmpdir: New file.
63318         * MODULES.html.sh (File system functions): Add it.
63319
63320 2006-07-24  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63323         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63324
63325 2006-07-24  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/clean-temp: New file.
63328
63329 2006-07-24  Bruno Haible  <bruno@clisp.org>
63330
63331         * m4/tmpdir.m4: New file, from GNU gettext.
63332
63333 2006-07-24  Bruno Haible  <bruno@clisp.org>
63334
63335         * lib/tmpdir.h: New file, from GNU gettext.
63336         * lib/tmpdir.c: New file, from GNU gettext.
63337
63338 2006-07-24  Bruno Haible  <bruno@clisp.org>
63339
63340         * lib/clean-temp.h: New file, from GNU gettext.
63341         * lib/clean-temp.c: New file, from GNU gettext.
63342
63343 2006-07-23  Eric Blake  <ebb9@byu.net>
63344
63345         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63346         (Depends-on): Add binary-io.
63347
63348 2006-07-23  Eric Blake  <ebb9@byu.net>
63349
63350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63351
63352 2006-07-23  Eric Blake  <ebb9@byu.net>
63353
63354         * lib/tmpfile-safer.c: New file.
63355         * lib/stdio-safer.h (fopen_safer): Add prototype.
63356         * lib/stdio--.h (tmpfile): Make safer.
63357
63358 2006-07-23  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63361         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63362         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63363         gl_linked_remove_at): Use it.
63364
63365 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63366         and Simon Josefsson <jas@extundo.com>
63367
63368         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63369
63370         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63371
63372 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         * modules/close-stream: New file.
63375         * modules/closeout (Description): Make it clear that it exits
63376         with a diagnostic on error.
63377         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63378         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63379
63380 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         * m4/close-stream.m4: New file.
63383
63384 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * lib/close-stream.c, lib/close-stream.h: New files.
63387
63388 2006-07-22  Bruno Haible  <bruno@clisp.org>
63389
63390         Merge from GNU gettext 0.15.
63391
63392         2006-05-01  Bruno Haible  <bruno@clisp.org>
63393
63394                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63395
63396         2006-07-22  Bruno Haible  <bruno@clisp.org>
63397
63398                 * modules/javaversion: New file.
63399                 * MODULES.html.sh (Java): Add javaversion.
63400
63401         2006-03-12  Bruno Haible  <bruno@clisp.org>
63402
63403                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63404
63405         2005-12-04  Bruno Haible  <bruno@clisp.org>
63406
63407                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63408                 (untested).
63409
63410         2006-06-21  Bruno Haible  <bruno@clisp.org>
63411
63412                 Avoid warnings from recent versions of mcs.
63413                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63414                 -o, -L, -r any more. Use options documented since mcs-1.0
63415                 instead. Similarly for -g.
63416
63417         2005-12-04  Bruno Haible  <bruno@clisp.org>
63418
63419                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63420                 .resources, not .resource.
63421
63422         2005-07-09  Bruno Haible  <bruno@clisp.org>
63423
63424                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63425                 add a .dll suffix.
63426                 Reported by Mark Junker <mjscod@gmx.de>.
63427
63428         2006-07-22  Bruno Haible  <bruno@clisp.org>
63429
63430                 * modules/gettext: Upgrade to gettext-0.15.
63431                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63432                 m4/visibility.m4.
63433                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63434
63435 2006-07-22  Bruno Haible  <bruno@clisp.org>
63436
63437         Merge from GNU gettext 0.15.
63438
63439         2006-03-25  Bruno Haible  <bruno@clisp.org>
63440
63441                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63442
63443         2006-07-21  Bruno Haible  <bruno@clisp.org>
63444
63445                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63446                 "1.1".
63447
63448         2006-05-09  Bruno Haible  <bruno@clisp.org>
63449
63450                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63451                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63452                 for the conftestver execution.
63453
63454         2006-05-01  Bruno Haible  <bruno@clisp.org>
63455
63456                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63457                 optional target-version argument. Verify that the compiler
63458                 groks source of the specified source-version, or add -source
63459                 option as necessary. Verify that the compiler produces
63460                 bytecode in the specified target-version, or add -target and
63461                 -source options as necessary. Make the result of the test
63462                 available as variable CONF_JAVAC. Also log error output in
63463                 config.log.
63464
63465         2006-03-11  Bruno Haible  <bruno@clisp.org>
63466
63467                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63468
63469         2006-05-09  Bruno Haible  <bruno@clisp.org>
63470
63471                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63472                 CLASSPATH_SEPARATOR to a semicolon.
63473
63474         2006-03-12  Bruno Haible  <bruno@clisp.org>
63475
63476                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63477                 available as variable CONF_JAVA, for subsequent autoconf
63478                 tests. Also log error output in config.log.
63479
63480         2006-07-19  Bruno Haible  <bruno@clisp.org>
63481
63482                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63483                 that getline works on glibc2 systems. Needed to avoid trouble
63484                 in relocatable.c.
63485                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63486
63487         2005-12-04  Bruno Haible  <bruno@clisp.org>
63488
63489                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63490                 launcher (untested).
63491
63492         2005-12-04  Bruno Haible  <bruno@clisp.org>
63493
63494                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63495
63496         2006-07-22  Bruno Haible  <bruno@clisp.org>
63497
63498                 * gettext.m4: Update from GNU gettext-0.15.
63499                 * nls.m4: Likewise.
63500                 * po.m4: Likewise.
63501                 * inttypes-pri.m4: Likewise.
63502                 * inttypes-h.m4: Renamed from inttypes.m4.
63503                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63504
63505 2006-07-22  Bruno Haible  <bruno@clisp.org>
63506
63507         Merge from GNU gettext 0.15.
63508
63509         2005-07-05  Bruno Haible  <bruno@clisp.org>
63510
63511                 * printf-args.c (printf_fetchargs): Work around broken
63512                 definition of wint_t on mingw.
63513
63514         2005-02-12  Bruno Haible  <bruno@clisp.org>
63515
63516                 * xallocsa.h: Add extern "C" for C++.
63517
63518         2006-05-17  Bruno Haible  <bruno@clisp.org>
63519
63520                 Cygwin portability.
63521                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63522
63523         2006-04-30  Bruno Haible  <bruno@clisp.org>
63524
63525                 * progreloc.c: Include <mach-o/dyld.h> if available.
63526                 (find_executable): Use _NSGetExecutablePath when possible.
63527
63528         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63529
63530                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63531                 function.
63532
63533         2005-12-29  Bruno Haible  <bruno@clisp.org>
63534
63535                 * progreloc.c (set_program_name_and_installdir): Fix
63536                 compilation error.
63537
63538         2005-12-04  Bruno Haible  <bruno@clisp.org>
63539
63540                 Cygwin portability.
63541                 * progreloc.c: Include <windows.h> also on Cygwin.
63542                 (find_executable): Add support for Cygwin.
63543                 (set_program_name_and_installdir): Handle also platforms with
63544                 nonempty EXEEXT.
63545
63546         2006-07-11  Bruno Haible  <bruno@clisp.org>
63547
63548                 * javacomp.c: Fix a comment.
63549                 Reported by Jim Meyering.
63550
63551         2006-04-30  Bruno Haible  <bruno@clisp.org>
63552
63553                 * javacomp.h (compile_java_class): Add source_version,
63554                 target_version arguments.
63555                 * javacomp.c: Rewritten to choose only a compiler that
63556                 respects the specified source_version and target_version.
63557
63558         2006-06-27  Bruno Haible  <bruno@clisp.org>
63559
63560                 Assume correct S_ISDIR macro.
63561                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63562
63563         2006-07-22  Bruno Haible  <bruno@clisp.org>
63564
63565                 * javaversion.h: New file, from GNU gettext.
63566                 * javaversion.c: New file, from GNU gettext.
63567                 * javaversion.java: New file, from GNU gettext.
63568                 * javaversion.class: New file, from GNU gettext.
63569
63570         2006-05-17  Bruno Haible  <bruno@clisp.org>
63571
63572                 Cygwin portability.
63573                 * javaexec.c (execute_java_class): Test for jview program
63574                 also on Cygwin.
63575
63576         2006-04-09  Bruno Haible  <bruno@clisp.org>
63577
63578                 * fatal-signal.c: Don't include string.h.
63579                 (at_fatal_signal): Use a copying loop instead of memcpy.
63580
63581         2005-12-04  Bruno Haible  <bruno@clisp.org>
63582
63583                 * csharpexec.c: Add support for 'clix' launcher (untested).
63584                 (execute_csharp_using_sscli): New function.
63585                 (execute_csharp_program): Call it.
63586
63587         2006-06-21  Bruno Haible  <bruno@clisp.org>
63588
63589                 Avoid warnings from recent versions of mcs.
63590                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63591                 -o, -L, -r any more. Use options documented since mcs-1.0
63592                 instead. Similarly for -g.
63593
63594         2005-07-09  Bruno Haible  <bruno@clisp.org>
63595
63596                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63597                 add a .dll suffix.
63598                 Reported by Mark Junker <mjscod@gmx.de>.
63599
63600         2006-06-17  Bruno Haible  <bruno@clisp.org>
63601
63602                 * config.charset: Update for NetBSD 3.0.
63603
63604         2006-05-17  Bruno Haible  <bruno@clisp.org>
63605
63606                 Cygwin portability.
63607                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63608
63609         2006-05-16  Bruno Haible  <bruno@clisp.org>
63610
63611                 * localcharset.c [CYGWIN]: Include <windows.h>.
63612                 (get_charset_aliases): For Cygwin, return the same CPxxx
63613                 aliases list as under WIN32.
63614                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63615                 the environment variables. Fall back to GetACP().
63616
63617         2006-04-05  Bruno Haible  <bruno@clisp.org>
63618
63619                 * config.charset: Update Juan Manuel Guerrero's address.
63620
63621         2005-02-12  Bruno Haible  <bruno@clisp.org>
63622
63623                 * allocsa.h: Add extern "C" for C++.
63624
63625         2005-02-10  Bruno Haible  <bruno@clisp.org>
63626
63627                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63628                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63629
63630         2006-07-22  Bruno Haible  <bruno@clisp.org>
63631
63632                 * gettext.h: Update to GNU gettext-0.15.
63633
63634 2006-07-22  Bruno Haible  <bruno@clisp.org>
63635
63636         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63637         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63638         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63639
63640 2006-07-21  Eric Blake  <ebb9@byu.net>
63641
63642         * modules/stdlib-safer: New file.
63643         * MODULES.html.sh (File stream based Input/Output): Add
63644         stdlib-safer.
63645
63646 2006-07-21  Eric Blake  <ebb9@byu.net>
63647
63648         * lib/stdlib-safer.h: New file from coreutils, required by
63649         stdlib--.h.
63650
63651 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63654
63655 2006-07-20  Bruno Haible  <bruno@clisp.org>
63656
63657         * gnulib-tool: Recognize new option --assume-autoconf.
63658         (autoconf_minversion): New variable.
63659         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63660
63661 2006-07-20  Bruno Haible  <bruno@clisp.org>
63662
63663         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63664
63665 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63666
63667         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63668         Reindent and repaginate.
63669
63670 2006-07-19  Derek Price  <derek@ximbiot.com>
63671
63672         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63673         Correct grammar.
63674
63675 2006-07-17  Bruno Haible  <bruno@clisp.org>
63676
63677         * modules/list: New file.
63678         * modules/array-list: New file.
63679         * modules/carray-list, modules/carray-list-tests: New files.
63680         * modules/linked-list, modules/linked-list-tests: New files.
63681         * modules/avltree-list, modules/avltree-list-tests: New files.
63682         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63683         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63684         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63685         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63686         * modules/oset: New file.
63687         * modules/array-oset: New file.
63688         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63689         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63690         * tests/test-carray_list.c: New file.
63691         * tests/test-linked_list.c: New file.
63692         * tests/test-avltree_list.c: New file.
63693         * tests/test-rbtree_list.c: New file.
63694         * tests/test-linkedhash_list.c: New file.
63695         * tests/test-avltreehash_list.c: New file.
63696         * tests/test-rbtreehash_list.c: New file.
63697         * tests/test-avltree_oset.c: New file.
63698         * tests/test-rbtree_oset.c: New file.
63699         * MODULES.html.sh (Container data structures): New section.
63700
63701 2006-07-17  Bruno Haible  <bruno@clisp.org>
63702
63703         * m4/gl_list.m4: New file.
63704
63705 2006-07-17  Bruno Haible  <bruno@clisp.org>
63706
63707         * lib/gl_list.h: New file.
63708         * lib/gl_list.c: New file.
63709         * lib/gl_array_list.h: New file.
63710         * lib/gl_array_list.c: New file.
63711         * lib/gl_carray_list.h: New file.
63712         * lib/gl_carray_list.c: New file.
63713         * lib/gl_linked_list.h: New file.
63714         * lib/gl_linked_list.c: New file.
63715         * lib/gl_anylinked_list1.h: New file.
63716         * lib/gl_anylinked_list2.h: New file.
63717         * lib/gl_avltree_list.h: New file.
63718         * lib/gl_avltree_list.c: New file.
63719         * lib/gl_anyavltree_list1.h: New file.
63720         * lib/gl_anyavltree_list2.h: New file.
63721         * lib/gl_rbtree_list.h: New file.
63722         * lib/gl_rbtree_list.c: New file.
63723         * lib/gl_anyrbtree_list1.h: New file.
63724         * lib/gl_anyrbtree_list2.h: New file.
63725         * lib/gl_anytree_list1.h: New file.
63726         * lib/gl_anytree_list2.h: New file.
63727         * lib/gl_linkedhash_list.h: New file.
63728         * lib/gl_linkedhash_list.c: New file.
63729         * lib/gl_anyhash_list1.h: New file.
63730         * lib/gl_anyhash_list2.h: New file.
63731         * lib/gl_avltreehash_list.h: New file.
63732         * lib/gl_avltreehash_list.c: New file.
63733         * lib/gl_rbtreehash_list.h: New file.
63734         * lib/gl_rbtreehash_list.c: New file.
63735         * lib/gl_anytreehash_list1.h: New file.
63736         * lib/gl_anytreehash_list2.h: New file.
63737
63738         * lib/gl_oset.h: New file.
63739         * lib/gl_oset.c: New file.
63740         * lib/gl_array_oset.h: New file.
63741         * lib/gl_array_oset.c: New file.
63742         * lib/gl_avltree_oset.h: New file.
63743         * lib/gl_avltree_oset.c: New file.
63744         * lib/gl_rbtree_oset.h: New file.
63745         * lib/gl_rbtree_oset.c: New file.
63746         * lib/gl_anytree_oset.h: New file.
63747
63748 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * m4/mkancesdirs.m4: New file.
63751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63752         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63753         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63754         it.
63755
63756 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63759         * lib/mkancesdirs.h: New files.
63760         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63761         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63762         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63763         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63764         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63765         callers changed.  Revamp internals significantly, by not
63766         attempting to create directories that are temporarily more
63767         permissive than the final results.  Do not attempt to use
63768         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63769         This removes some race conditions, fixes some bugs, and simplifies
63770         things.  Use new dirchownmod function to do owner and mode changes.
63771         * lib/mkdir-p.h: Likewise.
63772         * lib/modechange.c (octal_to_mode): New function.
63773         (struct mode_change): New member mentioned.
63774         (make_node_op_equals): New arg mentioned.  All callers changed.
63775         (mode_compile): Keep track of which mode bits the user has explicitly
63776         mentioned.
63777         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63778         New arg PMODE_BITS, to keep track of which mode bits the user
63779         mentioned; it treats S_ISUID and S_ISGID speciall.
63780         All callers changed.
63781         * lib/modechange.h: Likewise.
63782
63783 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * MODULES.html.sh: Add mkancestors.
63786         * modules/mkancesdirs: New module.
63787         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63788         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63789         The chdir-safer and afs files are now orphans; I'll remove them
63790         unless someone speaks up.
63791         Add lib/dirchownmod.c, lib/dirchownmod.h.
63792         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63793         Add lchown, mkancesdirs.
63794         (Maintainer): Add self.
63795
63796 2006-07-15  Karl Berry  <karl@gnu.org>
63797
63798         * gnulib-tool: help message wording/arrangement.
63799
63800 2006-07-14  Simon Josefsson  <jas@extundo.com>
63801
63802         * doc/gnulib.texi (Libtool and Windows): New section.
63803
63804 2006-07-12  Simon Josefsson  <jas@extundo.com>
63805
63806         * modules/gendocs (License): Fix license, approved by Karl.
63807
63808 2006-07-12  Eric Blake  <ebb9@byu.net>
63809
63810         * MODULES.html.sh: Add gendocs.
63811
63812 2006-07-11  Eric Blake  <ebb9@byu.net>
63813
63814         * modules/fdl: New module, to install doc/fdl.texi.
63815         * MODULES.html.sh: Add new section for documentation modules.
63816         * gnulib-tool: Avoid space-tab.
63817         (--doc-base): New option, to manage files from doc.
63818
63819 2006-07-11  Eric Blake  <ebb9@byu.net>
63820
63821         * m4/absolute-header.m4: Fix comments to match recent change.
63822
63823 2006-07-11  Eric Blake  <ebb9@byu.net>
63824
63825         * gnulib-tool: List --doc-base before --tests-base.
63826
63827 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63828
63829         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63830
63831 2006-07-11  Bruno Haible  <bruno@clisp.org>
63832
63833         * README: Mention where to put documentation.
63834
63835 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63836
63837         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63838
63839 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63842         to stdint.m4.
63843
63844 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63847         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63848         "no/such/file/stdint.h" when there is no such file, so that
63849         the resulting C code can be parsed by dodgy compilers.
63850         Problems reported by Bob Proulx.
63851
63852 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63853
63854         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63855         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63856         macros into the GNU _D_EXACT_NAMLEN.
63857         * lib/savedir.c:  Likewise.
63858         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63859
63860 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63861         and Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63864         * m4/savedir.m4:
63865         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63866         macros into the GNU _D_EXACT_NAMLEN.
63867
63868 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63869
63870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63871         around the absolute name, to work around a problem with the HP-UX
63872         11.23 native C compiler, reported by Bob Proulx.
63873
63874 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * doc/maintain.texi, make-stds.texi: Sync from
63877         <http://savannah.gnu.org/projects/gnustandards>.
63878
63879 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63880
63881         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63882
63883 2006-07-09  Jim Meyering  <jim@meyering.net>
63884
63885         * m4/glob.m4: Remove a doubled word in a comment.
63886
63887 2006-07-09  Jim Meyering  <jim@meyering.net>
63888
63889         * lib/argp-pv.c: Remove a doubled word in a comment.
63890         * lib/check-version.c (check_version): Likewise.
63891         * lib/javacomp.c (compile_java_class): Likewise.
63892
63893 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63894
63895         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63896         for the benefit of people using Autoconf 2.60.  If you want to
63897         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63898         (or m4/onceonly.m4, if pre-2.57) manually.
63899
63900 2006-07-08  Jim Meyering  <jim@meyering.net>
63901
63902         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63903         comment.
63904         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63905         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63906         comment.
63907
63908 2006-07-08  Jim Meyering  <jim@meyering.net>
63909
63910         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63911
63912 2006-07-07  Simon Josefsson  <jas@extundo.com>
63913
63914         * tests/test-crc.c: Change expected crc value, the test vector
63915         were probably computed using the old broken crc.c?
63916
63917 2006-07-06  Simon Josefsson  <jas@extundo.com>
63918
63919         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63920         now the canonical place for the M4 file).
63921
63922         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63923         from the sys_socket dependency now.
63924
63925         * modules/inet_pton (Files): Ditto.
63926
63927         * modules/inet_ntop (Files): Ditto.
63928
63929 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63930
63931         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63932         not gl_PREREQ_GETUSERSHELL.
63933
63934 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63935
63936         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63937         with only one argument, for Autoconf 2.60.
63938         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63939         expand to nothing, so add a shell command to avoid syntax error.
63940         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63941
63942 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63943
63944         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63945
63946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63947
63948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63949         no longer needed.  Check for isblank decl.
63950         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63951         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63952         of existence.
63953
63954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63955
63956         * lib/getloadavg.c: Use __VMS, not VMS.
63957         * lib/getopt.c: Likewise.
63958         * lib/getpagesize.h: Likewise.
63959         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63960         and probably does not work.
63961
63962 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63963
63964         * lib/.cppi-disable: Add wcwidth.
63965         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63966         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63967         (ISGRAPH): Remove.  All uses changed to isgraph.
63968         (FOLD) [!defined _LIBC]: Remove special case.
63969         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63970         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63971         HAVE_ISBLANK.
63972         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63973         case.
63974
63975 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63976
63977         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63978         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63979         brackets.  Other minor changes to suppress some compiler
63980         warnings.
63981
63982 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63983         and Paul Eggert  <eggert@cs.ucla.edu>
63984
63985         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63986         of invoking obsolescent AC_HEADER_DIRENT macro.
63987         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63988         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63989         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63991         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63992         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63993         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63994         * m4/readdir.m4: Remove; no longer needed.
63995
63996 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63997         and Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64000         Don't worry about this obsolete case any more.
64001         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64002         directories.
64003         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64004         worry about this obsolete case any more.
64005         * lib/fts.c: Likewise.
64006         * lib/getcwd.c: Likewise.
64007         * lib/glob.h: Likewise.
64008         * lib/savedir.c: Likewise.
64009
64010 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64011
64012         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64013         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64014         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64015         needed.
64016         All uses removed.
64017         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64018         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64019         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64020         needed.
64021         * m4/getdate.m4 (gl_GETDATE): Likewise.
64022         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64023         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64024         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64025         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64026         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64028         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64029         needed.
64030
64031 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64032
64033         * lib/memcasecmp.c: Include <limits.h>.
64034         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64035         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64036         Don't assume isdigit succeeds only on '0' through '9'.
64037
64038 2006-07-05  Eric Blake  <ebb9@byu.net>
64039
64040         * modules/getaddrinfo (Depends-on): Add snprintf.
64041
64042 2006-07-05  Eric Blake  <ebb9@byu.net>
64043
64044         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64045         to avoid 'header present but could not be compiled' on cygwin.
64046
64047 2006-07-05  Eric Blake  <ebb9@byu.net>
64048
64049         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64050         missing from netdb.h.
64051         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64052
64053 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64054
64055         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64056         no longer needed.
64057         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64058         * m4/getdate.m4 (gl_GETDATE): Likewise.
64059         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64060         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64061         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64062         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64063         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64064
64065 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64066
64067         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64068         All uses of is_space replaced by isspace.
64069         * lib/exit.h: Don't talk about STDC_HEADERS.
64070         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64071         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64072         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64073         replaced by isprint etc.
64074         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64075         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64076         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64077         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64078         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64079         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64080
64081 2006-07-05  Bruno Haible  <bruno@clisp.org>
64082
64083         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64084         the function exists, before testing against AIX.
64085         Reported by Martin Lambers <marlam@marlam.de>.
64086
64087 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64088
64089         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64090         From Mark D. Baushke.
64091
64092 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64093
64094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64095         to the absolute name, not just one, to bypass Sun C 5.8's
64096         "warning: #include of /usr/include/... may be non-portable".
64097
64098 2006-07-04  Eric Blake  <ebb9@byu.net>
64099
64100         * modules/dirname-tests: New test module.
64101         * tests/test-dirname.c: New file, replacing dirname.c
64102         TEST_DIRNAME section that was recently deleted.
64103
64104 2006-07-04  Bruno Haible  <bruno@clisp.org>
64105
64106         Assume ANSI C header files and <ctype.h> functions.
64107         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64108         (mbsnwidth): Use isprint, iscntrl instead.
64109
64110 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64111
64112         Merge from coreutils.
64113         * MODULES.html.sh: Add xstrtold.
64114         * modules/xstrtold: New file.
64115         * modules/cycle-check (Files): Add lib/same-inode.h.
64116         * modules/dirname (Files): Add m4/double-slash-root.m4.
64117         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64118         * modules/mkdir-p (Files): Add lib/same-inode.h.
64119         * modules/same (Files): Add lib/same-inode.h.
64120
64121 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64122
64123         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64124         This is to keep the terminology clean; POSIX talks about
64125         "absolute pathnames", not "full pathnames", but the GNU
64126         Coding Standards say to use "path" for something else;
64127         so use "absolute" to keep both sides happy.
64128         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64129         Set gl_absolute_header, not gl_full_header_path.
64130         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64131         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64132         All uses changed.
64133
64134         Merge from coreutils.
64135
64136         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64137
64138         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64139         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64140         want to require the building of c-strtod.o.
64141         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64142         needs -lm directly.
64143         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64144
64145         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64148         --as-needed option if available.  Problem reported by Albert Chin in
64149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64150         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64151         cc merely issues a bunch of annoying warnings for --as-needed
64152         (this problem was reported by Bob Proulx).  Also, try linking with
64153         -lm to detect a bug in binutils 2.16 (this problem was reported
64154         by Ralf Wildenhues).
64155
64156         2006-06-18  Jim Meyering  <jim@meyering.net>
64157
64158         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64160         macro.
64161         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64162         also check for glibc-2.4's abort-inducing bug.
64163
64164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64165         Low-probability clean-up should be to use rmdir to get rid of
64166         the just-created directory, not unlink.
64167
64168         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64169         configure fail, and request a bug report to inform us about it.
64170         Add a comment that, barring reports to the contrary, in 2007 we'll
64171         assume ftruncate is universally available.
64172
64173         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64174
64175         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64176
64177         2006-03-12  Jim Meyering  <jim@meyering.net>
64178
64179         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64180         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64181         * m4/same.m4 (gl_SAME): Likewise.
64182         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64183
64184         2006-03-11  Eric Blake  <ebb9@byu.net>
64185
64186         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64187         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64188         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64189         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64190
64191 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64194         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64195         reported by Mark D. Baushke, one in
64196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64197
64198         Merge from coreutils.
64199
64200         * lib/.cppi-disable: Add stdint_.h.
64201         * lib/.cvsignore: Add stdint.h.
64202
64203         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64204
64205         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64206         both double and long double versions.
64207         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64208         * lib/xstrtold.c: New file.
64209         * lib/xstrtod.h (xstrtold): New decl.
64210
64211         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         * lib/filemode.c (setst): Remove.
64214         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64215         (arguably) clearer, and the generated code is a bit smaller on my
64216         Debian GNU/Linux stable x86 host.
64217
64218         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64221         Assume that filemode.h includes sys/types.h and sys/stat.h.
64222         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64223         (ftypelet): Reorder to put common cases first, for efficiency.
64224         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64225         to do 'M'.
64226         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64227         of 10, for compatibility with FreeBSD.  All callers changed.
64228         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64229         types that can't be deduced solely from st_mode.  First arg is now a
64230         const pointer.
64231         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64232         (strmode): Renamed from mode_string.
64233         (filemodestring): New decl.
64234         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64235         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64236         needed.
64237         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64238
64239         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64242         fsusage.h now does that.  Include fsusage.h first, to test interface.
64243         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64244         at most one method (the old code could have generated decls that
64245         didn't conform to C89, not that this was ever exercised).
64246         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64247
64248         2006-03-19  Jim Meyering  <jim@meyering.net>
64249
64250         Work even in a chroot where d_ino values for entries in "/"
64251         don't match the stat.st_ino values for the same names.
64252         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64253         number, iterate through all entries again, using lstat instead.
64254         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64255         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64256
64257         * lib/getcwd.c (__getcwd): Clarify a comment.
64258         Use memcpy in place of a call to strcpy.
64259
64260         2006-03-12  Jim Meyering  <jim@meyering.net>
64261
64262         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64263         matches that of the current directory (which we're about to chdir ".."
64264         out of), then save the dev-ino of the parent, instead.
64265
64266         * lib/same-inode.h (SAME_INODE): New file/macro.
64267         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64268         Include "same-inode.h", instead.
64269         * lib/same.c: Likewise.
64270         * lib/cycle-check.h: Include "same-inode.h".
64271         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64272         * lib/cycle-check.c (SAME_INODE): Remove definition.
64273         * lib/root-dev-ino.h: Include "same-inode.h".
64274
64275         2006-03-11  Eric Blake  <ebb9@byu.net>
64276
64277         * lib/same.c (same_name): s/base_name/last_component/
64278         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64279         * lib/filenamecat.c (file_name_concat): Likewise.
64280
64281         2006-03-11  Eric Blake  <ebb9@byu.net>,
64282                     Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64285         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64286         drive prefix.
64287         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64288         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64289         (last_component): New method.
64290         * lib/dirname.c (dir_len): Determine when drive letters need a
64291         subsequent slash.  Preserve // when it is special.
64292         (dir_name): Don't append dot when drive letter is absolute.
64293         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64294         * lib/basename.c (base_name): New semantics - malloc the result.
64295         Preserve // when it is special.  Preserve relative files that look
64296         like drive letters.
64297         (base_len): Preserve // when it is special.
64298         (last_component): New method, similar to old base_name semantics.
64299         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64300         base_name.  Strip redundant slashes from ///.
64301
64302 2006-07-03  Jim Meyering  <jim@meyering.net>
64303
64304         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64305         macro is used before the first cycle_check call.
64306
64307 2006-07-03  Eric Blake  <ebb9@byu.net>
64308
64309         * modules/dirname (Depends-on): Add xstrndup.
64310
64311 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64314         test cases, so that config.log is a bit easier to follow.
64315
64316 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64319         both are 64 bits, since this seems to be the tradition, and this
64320         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64321         we ever run into a host that prefers long long to long in this
64322         case, we'll need another configure-time test.  Problem reported by
64323         Jim Meyering.
64324
64325 2006-07-02  Eric Blake  <ebb9@byu.net>
64326
64327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64328
64329 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64330
64331         * modules/inttypes (Depends-on): No longer depends on stdint.
64332         * modules/stdint (Description): Say more about assumptions.
64333         Say that the fast types might differ.  Say macros are used.
64334         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64335         (Makefile.am): Revise list of substituted symbols to match
64336         new stdint.m4.
64337         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64338         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64339         * tests/test-stdint.c (verify_same_types)
64340         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64341         the code conforms to C99/C89.
64342         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64343         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64344
64345 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64346
64347         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64348         but fix a bug, by requiring at least 64 bits.
64349         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64350         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64351         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64352         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64353
64354         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64355         changes.  Make 2.59 a prerequisite.  Check and substitute for
64356         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64357         inttypes.h.  Do not use special include files; just use the
64358         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64359         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64360         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64361         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64362         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64363         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64364         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64365         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64366         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64367         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64368         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64369         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64370         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64371         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64372         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64373         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64374         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64375         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64376         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64377         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64378         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64379         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64380         not check for things that C99 does not require, e.g., int8_t.  If
64381         a test isn't needed unless <stdint.h> isn't working, and is
64382         unlikely to be needed for any other reason, then don't do it
64383         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64384         size_t, since we assume C89 freestanding at least.  Do not check
64385         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64386         the right thing even if the types are not defined.  Instead use:
64387         (gl_STDINT_TYPE_PROPERTIES): New macro.
64388         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64389         testing whether <sys/types.h> clashes, as Autoconf does this for
64390         us now.  All uses removed.
64391         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64392         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64393         (gl_CHECK_TYPE_SAME):
64394         Remove; no longer needed.
64395         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64396         exists, since we'll return 0 anyway in that case.
64397         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64398
64399 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64400
64401         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64402         possible collision with system files.
64403         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64404         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64405         WCHAR_MIN and WCHAR_MAX in this case.
64406         (<stddef.h>): Do not include; no longer needed.
64407         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64408         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64409         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64410         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64411         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64412         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64413         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64414         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64415         !defined(__c99))]: Include in this case too, since it's harmless
64416         now.
64417         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64418         dangerous to do so.
64419         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64420         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64421         (_STDINT_MIN, _STDINT_MAX): New macros.
64422         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64423         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64424         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64425         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64426         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64427         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64428         macros, not typedefs; this simplifies things quite a bit.
64429         Use long int for all types narrower than int64_t.
64430         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64431         Define in terms of long long int or int64_t or long int,
64432         not int64_t or int32_t.  This saves some compile-time testing.
64433         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64434         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64435         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64436         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64437         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64438         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64439         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64440         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64441         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64442         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64443         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64444         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64445         undef any previous version and define our own version, for
64446         simplicity and consistency with the new macros for types.
64447         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64448         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64449         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64450         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64451         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64452         @WINT_T_SUFFIX@ to keep things simple here.
64453         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64454         Simplify by assuming typical 8/16/32/64 host, since we're
64455         already doing that elsewhere anyway.
64456         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64457         and assume long long int is 64 bits if available.  This
64458         speeds up 'configure'.
64459
64460 2006-07-01  Eric Blake  <ebb9@byu.net>
64461
64462         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64463         Reported by Andreas Buening.
64464
64465 2006-07-01  Eric Blake  <ebb9@byu.net>
64466
64467         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64468
64469 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64470
64471         * lib/getaddrinfo.c: fixed typo
64472
64473 2006-06-29  Jim Meyering  <jim@meyering.net>
64474
64475         * modules/strftime (Maintainer): Add my name, since with the
64476         FPRINTFTIME changes strftime.c has forked from glibc.
64477
64478 2006-06-29  Eric Blake  <ebb9@byu.net>
64479
64480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64481
64482 2006-06-29  Eric Blake  <ebb9@byu.net>
64483
64484         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64485
64486 2006-06-29  Eric Blake  <ebb9@byu.net>
64487
64488         * lib/stat_.h: New file.
64489
64490 2006-06-29  Eric Blake  <ebb9@byu.net>
64491
64492         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64493         unused static function.
64494
64495 2006-06-29  Eric Blake  <ebb9@byu.net>
64496
64497         * doc/functions.texi (Function Portability): Document missing lstat
64498         on mingw.
64499
64500 2006-06-29  Eric Blake  <ebb9@byu.net>
64501
64502         * MODULES.html.sh: Add sys_stat.
64503         * modules/sys_stat: New module.
64504         * modules/mkstemp (Depends-on): Add sys_stat.
64505
64506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64507
64508         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64509
64510 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64511
64512         * m4/c-bs-a.m4: Removed.
64513
64514 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64515
64516         * lib/strftime.c: Assume strftime() exists.
64517
64518 2006-06-29  Derek Price  <derek@ximbiot.com>
64519
64520         * modules/c-bs-a: Removed - \a is C89.
64521         * MODULES.html.sh: Remove c-bs-a.
64522
64523 2006-06-29  Bruno Haible  <bruno@clisp.org>
64524
64525         * modules/wcwidth (License): Change to LGPL.
64526
64527 2006-06-28  Simon Josefsson  <jas@extundo.com>
64528
64529         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64530         on _WIN32.
64531
64532         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64533         getnameinfo.
64534
64535 2006-06-28  Simon Josefsson  <jas@extundo.com>
64536
64537         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64538
64539 2006-06-28  Simon Josefsson  <jas@extundo.com>
64540
64541         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64542         functions there.  It will succeed on Windows XP, but on Windows
64543         2000 and (presumably) earlier, it will fail, and use the internal
64544         re-implementation.
64545         (use_win32_p): New function.
64546         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64547         Support AI_NUMERICSERV to disable getservbyname.
64548         (getnameinfo): New function, only supports
64549         NI_NUMERICHOST|NI_NUMERICSERV for now.
64550
64551         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64552         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64553         getnameinfo.
64554
64555 2006-06-28  Eric Blake  <ebb9@byu.net>
64556
64557         * modules/wcwidth: New file.
64558         * modules/mbchar (Depends-on): Add wcwidth.
64559         * modules/mbswidth (Depends-on): Add wcwidth.
64560         * MODULES.html.sh: Add wcwidth.
64561
64562 2006-06-28  Eric Blake  <ebb9@byu.net>
64563
64564         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64565         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64566
64567 2006-06-28  Eric Blake  <ebb9@byu.net>
64568
64569         * lib/xvasprintf.h: Fix comments.
64570
64571 2006-06-28  Eric Blake  <ebb9@byu.net>
64572
64573         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64574         * lib/mbswidth.c (wcwidth): Move from here...
64575         * lib/wcwidth.h: ...to this new file.
64576
64577 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64578
64579         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64580
64581         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64582         it's obsolete.
64583         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64584
64585 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64586
64587         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64588         Autoconf 2.60 says this stuff was obsolete.
64589
64590 2006-06-28  Bruno Haible  <bruno@clisp.org>
64591
64592         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64593
64594 2006-06-28  Bruno Haible  <bruno@clisp.org>
64595
64596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64597         gt_TYPE_WCHAR_T.
64598
64599 2006-06-28  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64602         declaration for wcwidth.
64603         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64604
64605 2006-06-28  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64608         (mkdir): Define using _mkdir.
64609
64610 2006-06-28  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/getaddrinfo.h: Fix POSIX URL.
64613         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64614         _WIN32.
64615         (use_win32_p): Make static.
64616         (getaddrinfo): Reject service name if it is empty or does not consist
64617         solely of decimal digits, or if its value is > 65535.
64618         (getnameinfo): Remove useless casts.
64619
64620 2006-06-27  Simon Josefsson  <jas@extundo.com>
64621
64622         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64623         Eggert and Martin Lambers.
64624
64625 2006-06-27  Simon Josefsson  <jas@extundo.com>
64626
64627         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64628         Eggert and Martin Lambers.
64629
64630 2006-06-27  Bruno Haible  <bruno@clisp.org>
64631
64632         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64633         result to 0, not to empty.
64634         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64635
64636 2006-06-27  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64639
64640 2006-06-26  Simon Josefsson  <jas@extundo.com>
64641
64642         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64643         present.
64644
64645 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64648         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64650
64651 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64652
64653         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64654
64655 2006-06-26  Bruno Haible  <bruno@clisp.org>
64656
64657         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64658
64659 2006-06-26  Bruno Haible  <bruno@clisp.org>
64660
64661         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64662
64663 2006-06-26  Bruno Haible  <bruno@clisp.org>
64664
64665         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64666         SGI C compiler in pre-C99 mode.
64667         Suggested by Mark D. Baushke and Larry Jones.
64668
64669 2006-06-26  Bruno Haible  <bruno@clisp.org>
64670
64671         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64672         WCHAR_MAX.
64673         Reported by Mark D. Baushke and Larry Jones.
64674
64675 2006-06-26  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64678         in pre-C99 mode.
64679         Suggested by Mark D. Baushke and Larry Jones.
64680
64681 2006-06-23  Simon Josefsson  <jas@extundo.com>
64682             Bruno Haible  <bruno@clisp.org>
64683
64684         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64685         Emit mostlyclean-local rule.
64686         (func_emit_tests_Makefile_am): Likewise.
64687         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64688
64689 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64690
64691         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64692
64693 2006-06-23  Bruno Haible  <bruno@clisp.org>
64694
64695         * tests/test-stdint.c: Update to match ISO C 99 Technical
64696         Corrigendum 1.
64697
64698 2006-06-23  Bruno Haible  <bruno@clisp.org>
64699
64700         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64701
64702 2006-06-23  Bruno Haible  <bruno@clisp.org>
64703
64704         * lib/stdint_.h: Treat IRIX like OpenBSD.
64705
64706 2006-06-23  Bruno Haible  <bruno@clisp.org>
64707
64708         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64709         ISO C 99 Technical Corrigendum 1.
64710
64711 2006-06-22  Simon Josefsson  <jas@extundo.com>
64712
64713         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64714         MinGW.
64715
64716 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64719         needed.  Some compiler complained about some of them.  Problem reported
64720         by Larry Jones in
64721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64722
64723 2006-06-21  Simon Josefsson  <jas@extundo.com>
64724
64725         * tests/test-getaddrinfo.c: New file.
64726
64727         * modules/getaddrinfo-tests: New file.
64728
64729         * MODULES.html.sh: Add inet_pton.
64730
64731         * modules/inet_pton: New file.
64732
64733 2006-06-21  Simon Josefsson  <jas@extundo.com>
64734
64735         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64736         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64737         of using the (limited) gnulib implementation on Windows XP.
64738
64739         * m4/inet_pton.m4: New file.
64740
64741 2006-06-21  Simon Josefsson  <jas@extundo.com>
64742
64743         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64744         variable.
64745
64746         * lib/socket_.h: Don't define WINVER.
64747
64748         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64749         slightly modified to work in gnulib.
64750
64751 2006-06-21  Simon Josefsson  <jas@extundo.com>
64752
64753         * doc/gnulib.texi (Windows sockets): Add.
64754
64755 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * lib/read-file.c (fread_file): Start with buffer allocation of
64758         0 bytes rather than 1 byte; this simplifies the code.
64759         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64760         code to free buffer and save/restore errno.
64761         (internal_read_file): Remove unused local.
64762
64763 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64766         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64767         Problem reported by Denis Excoffier in
64768         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64769
64770 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64771
64772         * modules/sys_socket, modules/socklen: Include sys/types since
64773         FreeBSD 4.x's sys/socket.h needs it.
64774
64775 2006-06-19  Simon Josefsson  <jas@extundo.com>
64776
64777         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64778
64779 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64782
64783 2006-06-19  Bruno Haible  <bruno@clisp.org>
64784
64785         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64786         and FULL_PATH_INTTYPES_H in angle brackets.
64787         Reported by Mark D. Baushke <mdb@gnu.org>.
64788
64789 2006-06-17  Eric Blake  <ebb9@byu.net>
64790
64791         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64792         errno.
64793
64794 2006-06-17  Bruno Haible  <bruno@clisp.org>
64795
64796         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64797         <sys/inttypes.h>.
64798
64799 2006-06-17  Bruno Haible  <bruno@clisp.org>
64800
64801         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64802         whether errno is declared. Assume <errno.h> declares errno.
64803
64804 2006-06-17  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64807
64808 2006-06-17  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64811         problem on Solaris 2.5.1.
64812
64813 2006-06-16  Eric Blake  <ebb9@byu.net>
64814
64815         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64816         * lib/unicodeio.c [!defined errno]: Likewise.
64817         * lib/strtol.c [!defined errno]: Likewise.
64818         * lib/strtod.c [!defined errno]: Likewise.
64819
64820 2006-06-15  Eric Blake  <ebb9@byu.net>
64821
64822         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64823
64824 2006-06-15  Eric Blake  <ebb9@byu.net>
64825
64826         * config/srclist.txt (ssize_t.m4): Lose sync.
64827
64828 2006-06-15  Bruno Haible  <bruno@clisp.org>
64829
64830         * modules/stdint (Files): Include m4/full-header-path.m4,
64831         m4/size_max.m4, m4/wchar_t.m4.
64832         (Makefile.am): Many more substitutions.
64833         * modules/stdint-tests: New file.
64834         * tests/test-stdint.c: New file.
64835
64836 2006-06-15  Bruno Haible  <bruno@clisp.org>
64837
64838         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64839         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64840         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64841         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64842         gl_CHECK_TYPE_SAME): New macros.
64843
64844 2006-06-15  Bruno Haible  <bruno@clisp.org>
64845
64846         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64847
64848 2006-06-15  Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/stdint_.h: Rewritten to be fully auto-configured.
64851         Fixes bug on HP-UX/IA64.
64852
64853 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * lib/getdate.y (__attribute__): Don't define if already defined.
64856         Problem reported by Larry Jones.
64857         * lib/utimens.c (__attribute__): Likewise.
64858
64859 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64862         reported by Andreas Schwab.
64863
64864 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64865             Bruno Haible  <bruno@clisp.org>
64866
64867         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64868         check for the declaration of strnlen and a run test that exposes the
64869         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64870         rpl_strndup.
64871
64872 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64873             Bruno Haible  <bruno@clisp.org>
64874
64875         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64876
64877 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64878
64879         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64880         compile test, for Tru64 4.0D.
64881
64882 2006-05-28  Karl Berry  <karl@gnu.org>
64883
64884         * config/srclist.txt (printf-args.c): lose sync.
64885
64886 2006-05-26  Martin Lambers  <marlam@marlam.de>
64887
64888         * lib/getpass.c: Updates the test for the native W32 API, and adds
64889         missing includes, thus fixing compilation warnings.
64890
64891 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64892
64893         * lib/exclude.c (exclude_fnmatch): New function.
64894         (excluded_file_name): Call exclude_fnmatch.
64895         * lib/exclude.h (excluded_file_name): New prototype
64896
64897 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64898
64899         * lib/tempname.c (small_open, large_open): New macros.
64900         (__open, __open64) [!_LIBC]: Remove.
64901         (__gen_tempname): Use small_open and large_open instead of __open
64902         and __open64.  This fixes a portability bug on HP-UX 11.11i
64903         reported by Simon Wing-Tang in
64904         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64905
64906 2006-05-24  Bruno Haible  <bruno@clisp.org>
64907
64908         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64909         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64910         Reported by Thorsten Maerz <torte@netztorte.de> via
64911         Aaron Stone <aaron@serendipity.cx>.
64912
64913 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64914
64915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64916         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64917         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64918         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64919         not really conditional on the cache.
64920         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64921
64922 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64925         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64926         (my_usleep): Don't mishandle maximum value.
64927
64928 2006-05-19  Jim Meyering  <jim@meyering.net>
64929
64930         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64931
64932 2006-05-17  Bruno Haible  <bruno@clisp.org>
64933
64934         Cygwin portability.
64935         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64936
64937 2006-05-17  Bruno Haible  <bruno@clisp.org>
64938
64939         * lib/stdint_.h: Fix recognition of Cygwin.
64940
64941 2006-05-15  Bruno Haible  <bruno@clisp.org>
64942
64943         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64944         on libtool patch by Ralf Wildenhues.
64945
64946 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64949         test for C99 conformance; (bool) 0.5 is an integer constant
64950         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64951         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64952
64953 2006-05-11  Simon Josefsson  <jas@extundo.com>
64954
64955         * m4/xvasprintf.m4: Fix obvious typo.
64956
64957 2006-05-11  Jim Meyering  <jim@meyering.net>
64958
64959         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64960         James Lemley.
64961
64962 2006-05-10  Simon Josefsson  <jas@extundo.com>
64963
64964         * lib/md4.c: Typo fix, update copyright years.
64965         (K1, K2): Don't use L because it turn computations into 64-bit on
64966         64-bit platforms.
64967
64968 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64971         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64972         unwanted sign propagation, e.g., on hosts with 64-bit int.
64973         There still are some problems with reeelly weird theoretical hosts
64974         (e.g., 33-bit int) but it's not worth worrying about now.
64975         * lib/sha1.c (rol): Likewise.
64976         (K1, K2, K3, K4): Remove unnecessary L suffix.
64977
64978 2006-05-10  Bruno Haible  <bruno@clisp.org>
64979
64980         * lib/des.c: Cast to avoid warnings.
64981
64982 2006-05-09  Bruno Haible  <bruno@clisp.org>
64983
64984         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64985         (Depends-on): Depend also on xsize, stdarg.
64986         (configure.ac): Add gl_XVASPRINTF.
64987
64988 2006-05-09  Bruno Haible  <bruno@clisp.org>
64989
64990         * m4/xvasprintf.m4: New file.
64991
64992 2006-05-09  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64995         (EOVERFLOW): Define fallback value.
64996         (xstrcat): New function.
64997         (xvasprintf): Recognize the special case of a string concatenation.
64998
64999 2006-05-08  Eric Blake  <ebb9@byu.net>
65000
65001         * gnulib-tool (func_version): Base copyright year on CVS date.
65002         (func_emit_copyright_notice): New function.
65003         (func_emit_lib_Makefile_am): Use it.
65004         (func_emit_tests_Makefile_am): Likewise.
65005         (func_import): Likewise.
65006
65007 2006-05-08  Bruno Haible  <bruno@clisp.org>
65008
65009         * modules/stdarg: New file.
65010         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65011
65012 2006-05-08  Bruno Haible  <bruno@clisp.org>
65013
65014         * m4/stdarg.m4: New file, from GNU gettext.
65015
65016 2006-05-08  Bruno Haible  <bruno@clisp.org>
65017
65018         * config/srclist.txt (build-aux/config.rpath): different from latest
65019         release.
65020
65021 2006-05-08  Bruno Haible  <bruno@clisp.org>
65022
65023         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65024
65025 2006-05-05  Jim Meyering  <jim@meyering.net>
65026
65027         * m4/warning.m4: New file, derived from bison's file by the same name.
65028
65029 2006-05-03  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/stdint_.h: Shorter URL.
65032         * lib/inttypes.h: Likewise.
65033
65034 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65037
65038 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         * lib/verify.h: Document the internals better.  Most of this change
65041         was written by Bruno Haible.
65042
65043 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65044
65045         * doc/verify.texi: New file, partly based on a proposal by
65046         Bruno Haible.
65047
65048 2006-05-02  Bruno Haible  <bruno@clisp.org>
65049
65050         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65051         test from here...
65052         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65053
65054 2006-04-29  Bruno Haible  <bruno@clisp.org>
65055
65056         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65057         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65058
65059 2006-04-29  Bruno Haible  <bruno@clisp.org>
65060
65061         * gnulib-tool: Make --update option actually work.
65062
65063 2006-04-29  Bruno Haible  <bruno@clisp.org>
65064
65065         * doc/gcd.texi: New file.
65066         * doc/gnulib.texi: Include it.
65067
65068 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         * lib/getdate.y (get_date): When adding relative date, start with the
65071         initial time, not with the result of the first mktime call.
65072
65073 2006-04-25  Bruno Haible  <bruno@clisp.org>
65074
65075         * gnulib-tool (func_import): Output the include directives in three
65076         blocks, sorted separately.
65077         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65078
65079 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65082         to define main with arguments, for C++.  Reported by Eric Blake.
65083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65084         Prefer 'int main ()' to 'int main (void)', for C++.
65085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65086         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65087         for 'main', for C99 and C++.
65088
65089 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65092         Don't assume that exit status -1 is valid.
65093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65094         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65095         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65096         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65097         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65098         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65099         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65100         functions can be used without declaring them, or that you can
65101         exit with status -1.
65102         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65103
65104 2006-04-24  Karl Berry  <karl@gnu.org>
65105
65106         * config/srclist.txt (longdouble.m4): sync lost.
65107
65108 2006-04-24  Eric Blake  <ebb9@byu.net>
65109
65110         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65111
65112 2006-04-24  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65115         poll() implementation in AIX.
65116         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65117
65118 2006-04-24  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65121         assigned exactly once.
65122
65123 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65124             Bruno Haible  <bruno@clisp.org>
65125
65126         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65127         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65128         for AM_CPPFLAGS.
65129
65130 2006-04-23  Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/copy-file: Depend on unistd.
65133         * modules/execute: Likewise.
65134         * modules/fatal-signal: Likewise.
65135         * modules/findprog: Likewise.
65136         * modules/mkdtemp : Likewise.
65137         * modules/pipe: Likewise.
65138         * modules/wait-process: Likewise.
65139
65140 2006-04-23  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65143         condition was already detected.
65144         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65145
65146 2006-04-23  Bruno Haible  <bruno@clisp.org>
65147
65148         * lib/copy-file.c: Include <unistd.h> unconditionally.
65149         * lib/execute.c: Likewise.
65150         * lib/fatal-signal.c: Likewise.
65151         * lib/findprog.c: Likewise.
65152         * lib/mkdtemp.c: Likewise.
65153         * lib/pipe.h: Likewise.
65154         * lib/pipe.c: Likewise.
65155         * lib/wait-process.h: Likewise.
65156
65157 2006-04-23  Bruno Haible  <bruno@clisp.org>
65158
65159         * gnulib-tool (func_usage): Fix --import description. Document
65160         --update.
65161         (func_import): Create temporary file in a temporary directory, if
65162         --dry-run is specified. Silence errors from 'grep' when there are no
65163         m4 files in $m4dir.
65164         (func_create_testdir): Silence errors from 'grep' when there are no
65165         m4 files in $m4dir.
65166         Reported by Karl Berry <karl@freefriends.org>.
65167
65168 2006-04-20  Bruno Haible  <bruno@clisp.org>
65169
65170         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65171         one argument, so that the code will be portable to Autoconf 2.60.
65172         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65174         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65175
65176 2006-04-19  Derek Price  <derek@ximbiot.com>
65177             Eric Blake  <ebb9@byu.net>
65178
65179         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65180         rather than "/full/path.h".  Update comment to match.  Shorten &
65181         generalize m4_translit call via AS_TR_CPP.
65182
65183 2006-04-19  Derek Price  <derek@ximbiot.com>
65184             Eric Blake  <ebb9@byu.net>
65185
65186         * lib/inttypes.h: Correct grammar in comment.
65187
65188 2006-04-18  Derek Price  <derek@ximbiot.com>
65189             Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * modules/inttypes: New file.
65192         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65193
65194 2006-04-18  Derek Price  <derek@ximbiot.com>
65195             Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65198         New files.
65199
65200 2006-04-18  Derek Price  <derek@ximbiot.com>
65201             Paul Eggert  <eggert@cs.ucla.edu>
65202
65203         * lib/inttypes.h: New file.
65204         * lib/strtoimax.c: Assume <inttypes.h>.
65205
65206 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65207
65208         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65209         isn't mounted.  Problem reported by Kir Kolyshkin.
65210
65211 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65214         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65215         Derek R. Price.
65216         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65217         implementation.
65218
65219 2006-04-12  Eric Blake  <ebb9@byu.net>
65220
65221         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65222         is now done automatically by the corresponding Autoconf macro.
65223
65224 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65225
65226         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65227         time_r.h.
65228
65229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65230
65231         Merge regex changes from libc, removing some of our
65232         POSIX-conformance changes that were rejected and redoing them in a
65233         less-intrusive way.
65234
65235         * lib/regcomp.c (re_compile_internal, init_dfa):
65236         Length arg is now size_t, not Idx.  All uses changed.
65237         (peek_token): Forward decl now says internal_function.
65238         (__re_error_msgid, __re_error_msgid_idx):
65239         Now static rather than extern with attribute_hidden.
65240         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65241         For some reason libc prefers K&R style defns for external functions.
65242         (regerror) [!defined _LIBC]: Likewise.
65243         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65244         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65245         (build_range_exp, build_collating_symbol):
65246         Use K&R-style defn.
65247         (re_compile_fastmap): Use '\0' to memset, not 0.
65248         (utf8_sb_map): Make the calculations more obvious.
65249         (init_dfa, parse_bracket_exp, build_charclass_op):
65250         Call calloc and cast result, as glibc does.
65251         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65252         (build_range_exp, build_collating_symbol):
65253         Now internal functions.
65254
65255         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65256
65257         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65258         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65259         Don't depend on VMS; depend on __VMS instead, for POSIX
65260         namespace cleanness.
65261         (regoff_t): Define to ssize_t, not long int.
65262
65263         Remove the REG_ macros named below.  Instead, make the old names
65264         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65265         __USE_GNU_REGEX.
65266         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65267         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65268         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65269         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65270         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65271         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65272         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65273         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65274         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65275         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65276         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65277         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65278         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65279         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65280         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65281         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65282         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65283         (REG_NREGS):
65284         Remove.  All uses replaced by the old RE_* names.
65285         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65286         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65287         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65288         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65289         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65290         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65291         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65292         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65293         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65294         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65295         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65296         Don't bother having these macros be independent of each others'
65297         values, since they no longer exist in the POSIX name space.
65298
65299         Rename the following member names back to their old names,
65300         unless !__USE_GNU_REGEX.  All uses changed back.
65301         (buffer): Renamed from re_buffer.
65302         (allocated): Renamed from re_allocated.
65303         (used): Renamed from re_used.
65304         (syntax): Renamed from re_syntax.
65305         (fastmap): Renamed from re_fastmap.
65306         (translate): Renamed from re_translate.
65307         (can_be_null): Renamed from re_can_be_null.
65308         (regs_allocated): Renamed from re_regs_allocated.
65309         (fastmap_accurate): Renamed from re_fastmap_accurate.
65310         (no_sub): Renamed from re_no_sub.
65311         (not_bol): Renamed from re_not_bol.
65312         (not_eol): Renamed from re_not_eol.
65313         (newline_anchor): Renamed from re_newline_anchor.
65314         (num_regs): Renamed from rm_num_regs.
65315         (start): Renamed from rm_start.
65316         (end): Renamed from rm_end.
65317
65318         (free_state): Move up a bit.
65319
65320         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65321         #define to be empty.
65322         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65323         when that is what is intended.
65324         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65325         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65326         (MAX): New macro.
65327         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65328         All uses changed back to re_malloc, etc.  It's now the caller's
65329         responsibility to check for overflow; all callers changed.
65330         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65331         (re_x2nrealloc): Remove.
65332         (free_state): Remove decl.
65333
65334         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65335         (re_set_registers, re_exec):
65336         Use K&R-style defn.
65337
65338         2006-01-31  Roland McGrath  <roland@redhat.com>
65339
65340         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65341         Reported by Mike Frysinger <vapier@gentoo.org>.
65342
65343         2006-01-15  Andreas Jaeger  <aj@suse.de>
65344
65345         [BZ #1950]
65346         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65347         build_wcs_upper_buffer change.
65348         (build_wcs_upper_buffer): Change return type.
65349
65350         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65351
65352         * lib/regex_internal.h: Include <stdint.h> if available.
65353
65354         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65355
65356         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65357
65358         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65359
65360         * lib/regcomp.c: Adjust for changed secondary hash function.
65361
65362         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65363
65364         * lib/regex.h: Pretty printing.
65365         Clean up namespace a bit.
65366
65367         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65368
65369         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65370         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65371
65372         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65373                     Ulrich Drepper  <drepper@redhat.com>
65374
65375         [BZ #1302]
65376         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65377         changed.
65378         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65379
65380         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65381
65382         [BZ #281]
65383         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65384         * lib/regcomp.c: Remove unnecessary uses of
65385         unsigned RE_TRANSLATE_TYPE.
65386         * lib/regex_internal.h: Likewise.
65387         * lib/regex_internal.c: Likewise.
65388         * lib/regexec.c: Likewise.
65389         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65390
65391         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65392
65393         * lib/regexec.c (find_recover_state): Remove unnecessary
65394         initialization.
65395         (transit_state_bkref): Make DFA a const pointer.
65396         (get_subexp): Likewise.
65397         (check_arrival): Likewise.
65398         (update_cur_sifted_state): Likewise.
65399         (re_search_internal): Likewise.
65400         (prune_impossible_nodes): Likewise.
65401         (acquire_init_state_context): Likewise.
65402         (proceed_next_node): Likewise.
65403         (set_regs): Likewise.
65404         (free_fail_stack_return): Likewise.
65405         (check_arrival_expand_ecl): Mark DFA parameter as const.
65406         (check_arrival_expand_ecl_sub): Likewise.
65407         (check_subexp_limits): Likewise.
65408         (sub_epsilon_src_nodes):  Likewise.
65409         (add_epsilon_src_nodes):  Likewise.
65410         (merge_state_array): Likewise.
65411         (update_regs): Likewise.
65412         (build_trtable): Likewise.
65413         (sift_states_backward): Mark MCTX parameter as const.
65414         (build_sifted_states): Likewise.
65415         (update_cur_sifted_state): Likewise.
65416         (sift_states_mkref): Likewise.
65417         (check_arrival_expand_ecl): Mark eclosure as const.
65418         (check_dst_limits_calc_pos_1): Likewise.
65419         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65420         pointer.
65421
65422         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65423
65424         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65425         (transit_state_sb): Likewise.
65426         (transit_state_mb): Likewise.
65427         (sift_states_iter_mb): Likewise.
65428         (check_arrival_add_next_nodes): Likewise.
65429         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65430         [_LIBC] (re_search_2_stub): Use mempcpy.
65431
65432         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65433         mbrtowc for very simple UTF-8 case.
65434
65435         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65436         a pointer-to-const.
65437         (re_acquire_state_context): Likewise.
65438         * lib/regex_internal.h: Adjust prototypes.
65439
65440         * lib/regex.c: Prevent using C++ compilers.
65441
65442         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65443         (re_acquire_state_context): Likewise.
65444
65445 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65446
65447         * modules/regex (Depends-on): Add ssize_t.
65448
65449 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65452         translation table.
65453
65454 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65457
65458 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65459             Bruno Haible  <bruno@clisp.org>
65460
65461         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65462         <sys/types.h> and <inttypes.h>.
65463
65464 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65465
65466         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65467         `__error_t_defined', so argp.h will not typedef the former.
65468
65469 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65472         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65473         glibc names.  Even if glibc is changed to conform to POSIX, the
65474         traditional names will be available anyway, since regex depends on
65475         the extensions module.  Also, fix a longstanding typo in the
65476         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65477         reported by Emanuele Giaquinta.  Also, change sense of cached
65478         variable, so that the message makes sense.
65479
65480 2006-03-24  Simon Josefsson  <jas@extundo.com>
65481
65482         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65483         including some doc fixes.
65484         (base64_encode_alloc): Fix +1 bug on allocation failures.
65485
65486 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65487
65488         * lib/base64.c (base64_encode): Do not read past end of array with
65489         unsanitized input on systems with CHAR_BIT > 8.
65490
65491 2006-03-24  Eric Blake  <ebb9@byu.net>
65492
65493         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65494
65495 2006-03-22  Karl Berry  <karl@gnu.org>
65496
65497         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65498         * config/srclistvars.sh (COREUTILS): new var.
65499
65500 2006-03-17  Jim Meyering  <jim@meyering.net>
65501
65502         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65503         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65504
65505 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65508         no longer needs it.  Instead, check that regoff_t is as least
65509         as wide as ptrdiff_t.
65510
65511         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65512         so that our regex.h stays compatible with the installed regex.
65513         This is helpful for installers who configure --without-included-regex.
65514         Problem reported by Emanuele Giaquinta.
65515
65516 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65519         Typedef to long int, not to off_, as POSIX will likely change
65520         in that direction.
65521
65522 2006-03-15  Eric Blake  <ebb9@byu.net>
65523
65524         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65525
65526 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65527
65528         * lib/argp-help.c (validate_uparams): Fix typo
65529         * lib/argp-parse.c (argp_default_options): Consistently begin help
65530         messages with a lowercase letter.
65531
65532 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65533
65534         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65535         overrun buffers and shouldn't be used (much as gets shouldn't be
65536         used).
65537         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65538
65539 2006-03-08  Simon Josefsson  <jas@extundo.com>
65540
65541         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65542         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65543
65544 2006-03-08  Simon Josefsson  <jas@extundo.com>
65545
65546         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65547         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65548
65549 2006-03-08  Simon Josefsson  <jas@extundo.com>
65550
65551         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65552         signal that configure disabled the device.
65553
65554 2006-03-08  Simon Josefsson  <jas@extundo.com>
65555
65556         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65557         languages.
65558
65559 2006-03-07  Simon Josefsson  <jas@extundo.com>
65560
65561         * modules/getopt (Depends-on): Add unistd.
65562
65563         * modules/unistd: New file.
65564
65565 2006-03-07  Simon Josefsson  <jas@extundo.com>
65566
65567         * modules/gc-random: New file.
65568
65569 2006-03-07  Simon Josefsson  <jas@extundo.com>
65570
65571         * m4/unistd_h.m4: New file.
65572
65573 2006-03-07  Simon Josefsson  <jas@extundo.com>
65574
65575         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65576         test to be side-effect free by storing the result in the cache
65577         variable gl_cv_lib_readline, and moving the assignment of
65578         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65579         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65580
65581 2006-03-07  Simon Josefsson  <jas@extundo.com>
65582
65583         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65584         error on missing devices (the functions will return an error).
65585
65586         * m4/gc.m4: Move random stuff to gc-random.m4
65587
65588 2006-03-07  Simon Josefsson  <jas@extundo.com>
65589
65590         * lib/unistd_.h: New file.
65591
65592 2006-03-07  Simon Josefsson  <jas@extundo.com>
65593
65594         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65595
65596 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65599         Problem reported by Juan Manuel Guerrero.
65600
65601 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65602
65603         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65604         the unistd module.
65605         * lib/getlogin_r.c: Likewise.
65606         * lib/getlogin_r.h: Likewise.
65607         * lib/glob.c: Likewise.
65608         * lib/pagealign_alloc.c: Likewise.
65609         * lib/unistd_.h: Remove; no longer needed.
65610
65611 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65614         Add unistd.
65615         * modules/c-stack (Depends-on): Add unistd.
65616         * modules/getlogin_r: Likewise.
65617         * modules/glob: Likewise.
65618         * modules/pagealign_alloc: Likewise.
65619         * modules/unistd (Files): Remove lib/unistd_.h.
65620         (EXTRA_DIST): Remove.
65621         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65622         need unistd_.h.
65623         (MOSTLYCLEANFILES): Remove unistd.h-t.
65624
65625 2006-03-03  Simon Josefsson  <jas@extundo.com>
65626
65627         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65628
65629 2006-03-03  Simon Josefsson  <jas@extundo.com>
65630
65631         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65632         libidn and bison.
65633
65634 2006-03-03  Simon Josefsson  <jas@extundo.com>
65635
65636         * build-aux/maint.mk: Add indent target.
65637
65638 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65639
65640         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65641         our replacement poll.h in any case, to avoid a differing
65642         declaration from a system header.  Seen on AIX.
65643
65644 2006-03-01  Simon Josefsson  <jas@extundo.com>
65645
65646         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65647         <kasal@ucw.cz>.
65648
65649 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * modules/gettime (Depends-on): Add extensions module.
65652         * modules/nanosleep (Depends-on): Likewise.
65653         * modules/settime (Depends-on): Likewise.
65654
65655 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65658         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65659         pedantically.
65660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65661         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65662
65663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65664         not "==".  Reported by Ralf Wildenhues.
65665
65666 2006-03-01  Karl Berry  <karl@gnu.org>
65667
65668         * doc/Copyright/request-*: new files, synced from gnuorg.
65669
65670 2006-03-01  Karl Berry  <karl@gnu.org>
65671
65672         * config/srclist.txt (Copyright/*): new entries.
65673
65674 2006-02-28  Simon Josefsson  <jas@extundo.com>
65675
65676         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65677
65678 2006-02-27  Simon Josefsson  <jas@extundo.com>
65679
65680         * lib/base64.h: Indent #define's.  From Jim Meyering
65681         <jim@meyering.net>.
65682
65683 2006-02-27  Jim Meyering  <jim@meyering.net>
65684
65685         Revert the change of 2006-02-24, so these files can continue
65686         to be sync'd from gettext.
65687         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65688         of `config.h'.
65689
65690 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * modules/intprops: New file.
65693         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65694         Add intprops.
65695         * modules/getloadavg (Files): Remove lib/intprops.h.
65696         (Depends-on): Add intprops.
65697         * modules/human: Likewise.
65698         * modules/inttostr: Likewise.
65699         * modules/openat: Likewise.
65700         * modules/sig2str: Likewise.
65701         * modules/userspec: Likewise.
65702         * modules/utimecmp: Likewise.
65703         * modules/xnanosleep: Likewise.
65704         * modules/xstrtol: Likewise.
65705
65706 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65707
65708         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65709         * modules/lock-tests (TESTS): Use $(EXEEXT).
65710         * modules/tls-tests: Likewise.
65711         * modules/argp-tests: Likewise.
65712         (check_PROGRAMS): New var, replacing...
65713         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65714
65715 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65716
65717         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65718         `config.h'.
65719
65720 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65721
65722         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65723
65724 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65725
65726         Sync from coreutils.
65727         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65728         gl_CHDIR_SAFER.
65729
65730 2006-02-22  Jim Meyering  <jim@meyering.net>
65731
65732         Sync from coreutils.
65733         * m4/chdir-safer.m4: New file.
65734
65735 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65738         AT_FDCWD exceeds INT_MAX.
65739         * lib/openat.h (AT_FDCWD): Likewise.
65740
65741 2006-02-17  Eric Blake  <address@hidden>
65742
65743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65744
65745 2006-02-16  Simon Josefsson  <jas@extundo.com>
65746
65747         * modules/getaddrinfo (Depends-on): Add sys_socket.
65748
65749 2006-02-15  Simon Josefsson  <jas@extundo.com>
65750
65751         * build-aux/maint.mk: Add dsyntax-check rule.
65752
65753 2006-02-15  Eric Blake  <ebb9@byu.net>
65754
65755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65756         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65757         'present but cannot compile' warnings on cygwin.
65758         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65759         use ws2tcpip.h if sys/socket.h works.
65760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65761         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65762
65763 2006-02-14  Simon Josefsson  <jas@extundo.com>
65764
65765         * modules/maintainer-makefile (Files): Rename.
65766
65767         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65768         and (the local) Makefile.cfg to maint-cfg.mk.
65769
65770         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65771         to the latter.
65772
65773         * modules/maintainer-makefile: New module.
65774
65775         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65776         severaly stripped to make it possible to build it up from scratch
65777         with reliable tests.
65778
65779         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65780         fixes to permit overriding the default actions when configure and
65781         makefile are not available.
65782
65783 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65784
65785         Sync from coreutils.
65786         * modules/lstat (Depends-on): Don't depend on xalloc.
65787         (License): Change from GPL to LGPL, since this is now simply a
65788         replacement for a libc function.
65789
65790 2006-02-14  Jim Meyering  <jim@meyering.net>
65791
65792         Sync from coreutils.
65793
65794         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65795         failure on deficient systems, and simplify gnulib lgpl dependencies.
65796         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65797         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65798
65799         * lib/xalloc-die.c: Remove unused definition of N_.
65800
65801 2006-02-14  Jim Meyering  <jim@meyering.net>
65802
65803         Sync from coreutils.
65804         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65805         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65806         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65807         double-quote uses of that variable, to accommodate the rare case in
65808         which getmntent is available in none of the libraries checked.  This
65809         happens at least on FreeBSD 5.0.
65810
65811 2006-02-13  Simon Josefsson  <jas@extundo.com>
65812
65813         * gnulib-tool (Usage): Fix --import, from
65814         karl@freefriends.org (Karl Berry).
65815
65816 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65817
65818         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65819
65820 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65821
65822         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65823         "autoupdate" on 2005-12-12.
65824
65825 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * modules/closeout (Depends-on): Remove atexit.
65828
65829 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65832         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65833
65834 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65837         __EXTENSIONS__ if this causes compilation to fail.  Problem
65838         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65839         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65840
65841 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65844         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65845         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65846         All uses changed.
65847
65848 2006-01-26  Simon Josefsson  <jas@extundo.com>
65849
65850         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65851         prototype is visible on mingw32.
65852
65853         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65854         for mingw32.
65855
65856         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65857         mingw32).
65858
65859 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65862         attempt to open for write; this always fails, at least on POSIX
65863         hosts.  This reinstates the 2006-01-09 change, which was
65864         inadvertently removed.
65865
65866 2006-01-26  Bruno Haible  <bruno@clisp.org>
65867
65868         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65869         Reported by Paul Eggert.
65870
65871 2006-01-26  Bruno Haible  <bruno@clisp.org>
65872             Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * lib/stdbool_.h (_Bool)
65875         [(! (defined __cplusplus || defined __BEOS__)
65876           && !defined __GNUC__
65877           && !(defined __HP_cc || defined __xlc__
65878                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65879                || defined __sgi))]:
65880         #define to signed char in these cases too; this simplifies
65881         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65882         etc., separately) and makes it more conservative.
65883
65884 2006-01-25  Simon Josefsson  <jas@extundo.com>
65885
65886         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65887         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65888         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65889
65890 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65891
65892         * lib/argp-namefrob.h: Bugfix. Remove stray #
65893
65894 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65895
65896         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65897         so that we test the test.
65898         Check for yet another HP-UX cc bug involving *bool |= bool.
65899
65900 2006-01-25  Karl Berry  <karl@gnu.org>
65901
65902         * config/srclist.txt (vasnprintf.c): sync lost.
65903
65904 2006-01-25  Jim Meyering  <jim@meyering.net>
65905
65906         Sync from the stable (b5) branch of coreutils:
65907
65908         * lib/fts.c (fts_children): Don't let close() clobber errno from
65909         failed fchdir().
65910
65911         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65912         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65913         a dangling symlink.  That can also happen at least for ELOOP.
65914         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65915         FYI, this bug predates the inclusion of fts.c in coreutils.
65916
65917         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65918         in their own block, so pre-c99 compilers don't object.
65919
65920         Avoid the double-free (first in fts_read, second in fts_close) that
65921         would occur when an `active' directory is made inaccessible (e.g.,
65922         via chmod a-x) during a traversal.
65923         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65924         before returning.  Reproduce this failure by
65925         mkdir -p a/b; cd a; chmod a-x . b
65926         Reported by Stavros Passas.
65927
65928 2006-01-25  Jim Meyering  <jim@meyering.net>
65929
65930         * lib/fileblocks.c: Remove more useless parentheses.
65931         * lib/readutmp.h: Likewise.
65932
65933 2006-01-25  Bruno Haible  <bruno@clisp.org>
65934
65935         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65936         warnings.
65937         Reported by Paul Eggert.
65938
65939 2006-01-25  Bruno Haible  <bruno@clisp.org>
65940
65941         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65942         rid of a trap command. For Solaris sh.
65943         Reported by Mark D. Baushke <mdb@gnu.org>.
65944
65945 2006-01-24  Simon Josefsson  <jas@extundo.com>
65946
65947         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65948         Bruno.
65949
65950 2006-01-24  Karl Berry  <karl@gnu.org>
65951
65952         * config/srclist.txt (argp-namefrob.h): sync lost.
65953
65954 2006-01-24  Jim Meyering  <jim@meyering.net>
65955
65956         * modules/openat (Files): Add lib/intprops.h.
65957         From Mark D. Baushke.
65958
65959 2006-01-24  Jim Meyering  <jim@meyering.net>
65960
65961         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65962         Reported by Mark D. Baushke.
65963
65964 2006-01-24  Jim Meyering  <jim@meyering.net>
65965
65966         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65967
65968 2006-01-24  Bruno Haible  <bruno@clisp.org>
65969
65970         * modules/strnlen (Maintainer): Change from glibc to all.
65971
65972 2006-01-24  Bruno Haible  <bruno@clisp.org>
65973
65974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65975         Patch by Paul Eggert.
65976
65977 2006-01-24  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65980         already has it.
65981         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65982         2005-11-26.
65983
65984         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65985         'signed char' to avoid problems with the built-in _Bool type.
65986         Reported by Paul Eggert on 2005-11-26.
65987
65988 2006-01-24  Bruno Haible  <bruno@clisp.org>
65989
65990         * gnulib-tool (func_import): Avoid constructing complicated sed
65991         expressions inside backquote.
65992         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65993
65994 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65995
65996         These changes imported from libc.
65997         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65998         test and two separate function calls.
65999         * lib/strndup.c (__strndup): Add libc_hidden_def.
66000
66001 2006-01-23  Simon Josefsson  <jas@extundo.com>
66002
66003         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66004         Remove the test_*_SOURCES variable: automake infers it by default.
66005         * modules/tls-tests: Likewise.
66006
66007 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         Work around porting bugs reported by Dieter in
66010         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66011         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66012         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66013         Include "getopt.h" first, to check interface.
66014         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66015         !HAVE_DECL_GETENV.
66016         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66017         (__strndup): Revert to K&R-style function dfns, the glibc style.
66018         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66019         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66020         Include strnlen.h first, to get prototype properly.
66021         (strnlen): Renamed from __strnlen.
66022         Remove weak alias.
66023
66024 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66025
66026         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66027
66028 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * config/srclist.txt: Adjust to reflect glibc reorganization.
66031         This affects only comments.
66032
66033 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66034
66035          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66036          Reported by Bruce Korb <bkorb@gnu.org>.
66037
66038 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66041         to pacify gcc -Wswitch-default.
66042
66043 2006-01-22  Bruno Haible  <bruno@clisp.org>
66044
66045         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66046         temporary buffer for sprintf, take into account the precision also
66047         for 'd', 'i', 'u', 'o', 'x', 'X'.
66048
66049 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66050
66051         * modules/argp-tests: New module
66052         * tests/test-argp.c: New file
66053         * tests/test-argp-2.sh: New file
66054
66055 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66056
66057         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66058         (__argp_base_name): Removed
66059         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66060         typo.
66061         (__argp_base_name): Provide macro definition or extern declaration
66062         depending on the configuration
66063
66064 2006-01-20  Simon Josefsson  <jas@extundo.com>
66065
66066         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66067
66068 2006-01-20  Simon Josefsson  <jas@extundo.com>
66069
66070         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66071
66072 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66075         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66076         Suggested by Bruno Haible.
66077
66078 2006-01-20  Karl Berry  <karl@gnu.org>
66079
66080         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66081         until changes propagate, I guess.
66082
66083 2006-01-19  Simon Josefsson  <jas@extundo.com>
66084
66085         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66086
66087 2006-01-19  Simon Josefsson  <jas@extundo.com>
66088
66089         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66090
66091 2006-01-19  Simon Josefsson  <jas@extundo.com>
66092
66093         * gnulib-tool: Set check_PROGRAMS.
66094
66095         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66096         modules/des-tests, modules/gc-arcfour-tests,
66097         modules/gc-arctwo-tests, modules/gc-des-tests,
66098         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66099         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66100         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66101         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66102         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66103         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66104         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66105         test_*_SOURCES.
66106
66107 2006-01-18  Simon Josefsson  <jas@extundo.com>
66108
66109         * modules/socklen (Depends-on): Depend on sys_socket.
66110
66111 2006-01-18  Simon Josefsson  <jas@extundo.com>
66112
66113         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66114         modules/des-tests, modules/gc-arcfour-tests,
66115         modules/gc-arctwo-tests, modules/gc-des-tests,
66116         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66117         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66118         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66119         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66120         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66121         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66122         $(EXEEXT) to automake TESTS variable, for mingw32.
66123
66124 2006-01-17  Simon Josefsson  <jas@extundo.com>
66125
66126         * modules/socklen (Include): Need sys/socket.h.
66127
66128 2006-01-17  Bruno Haible  <bruno@clisp.org>
66129
66130         * modules/ssize_t (Include): Add <sys/types.h>.
66131
66132 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66133
66134         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66135         it's not portable and it doesn't work with cross-compiles.
66136         Problem reported by Bruno Haible.  Fix missing-$ typo in
66137         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66138         -zignore from being used with Sun's C compiler.
66139
66140 2006-01-12  Simon Josefsson  <jas@extundo.com>
66141
66142         * lib/base64.c: Fix warning, reported by Bruno Haible
66143         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66144
66145 2006-01-12  Bruno Haible  <bruno@clisp.org>
66146
66147         * modules/ldd: New file.
66148         * build-aux/ldd.sh.in: New file.
66149         * MODULES.html.sh (Support for building libraries and executables): Add
66150         ldd.
66151
66152 2006-01-12  Bruno Haible  <bruno@clisp.org>
66153
66154         * m4/ldd.m4: New file.
66155
66156 2006-01-12  Bruno Haible  <bruno@clisp.org>
66157
66158         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66159         endless loop while replacing $auxdir with build-aux.
66160
66161 2006-01-11  Simon Josefsson  <jas@extundo.com>
66162
66163         * lib/stdint_.h (SIZE_MAX): Add missing (.
66164
66165 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         Sync from coreutils.
66168         * lib/md5.c: Fix commentary typos.
66169         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66170         * lib/md5.h (__attribute__): Remove; unused.
66171         * lib/sha1.c: Fix commentary to match md5 better.
66172         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66173         so that we don't need to worry about alignment.  All uses changed.
66174         This merges the 2005-10-28 md5 change into sha1.
66175
66176 2006-01-11  Jim Meyering  <jim@meyering.net>
66177
66178         Sync from coreutils.
66179         * lib/md5.c (OP): Fix spacing.
66180
66181 2006-01-11  Bruno Haible  <bruno@clisp.org>
66182
66183         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66184         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66185         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66186
66187 2006-01-11  Bruno Haible  <bruno@clisp.org>
66188
66189         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66190         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66191         the "early" section as well.
66192
66193 2006-01-11  Bruno Haible  <bruno@clisp.org>
66194
66195         Avoid "ar: no archive members specified" error on MacOS X.
66196         * gnulib-tool (func_modules_add_dummy): New function.
66197         (func_import, func_create_testdir): Invoke it.
66198
66199 2006-01-11  Bruno Haible  <bruno@clisp.org>
66200
66201         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66202         with $auxdir in AC_CONFIG_FILES statements.
66203
66204 2006-01-11  Bruno Haible  <bruno@clisp.org>
66205
66206         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66207         Initialize also noinst_HEADERS to empty.
66208
66209 2006-01-11  Bruno Haible  <bruno@clisp.org>
66210
66211         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66212         variables.
66213         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66214         autoreconf.
66215
66216 2006-01-11  Bruno Haible  <bruno@clisp.org>
66217
66218         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66219         overridable by the user.
66220         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66221
66222 2006-01-10  Simon Josefsson  <jas@extundo.com>
66223
66224         * modules/sys_socket: New file.
66225
66226 2006-01-10  Simon Josefsson  <jas@extundo.com>
66227
66228         * m4/sys_socket_h.m4: New file.
66229
66230 2006-01-10  Simon Josefsson  <jas@extundo.com>
66231
66232         * lib/socket_.h: New file.
66233
66234 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * modules/readutmp (Maintainer): Add myself.
66237
66238 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66241         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66242         People who are still concerned with buggy memcmp implementations
66243         can invoke gl_FUNC_MEMCMP themselves.
66244
66245 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * lib/regex_internal.h (BITSET_WORD_BITS):
66248         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66249         preprocessor mishandles large unsigned values as if they were signed.
66250         Problem reported by Claudio Fontana in
66251         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66252
66253 2006-01-10  Jim Meyering  <jim@meyering.net>
66254
66255         Avoid the double-free (first in fts_read, second in fts_close) that
66256         would occur when an `active' directory is made inaccessible (e.g.,
66257         via chmod a-x) during a traversal.
66258         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66259         before returning.  Reproduce this failure by
66260         mkdir -p a/b; cd a; chmod a-x . b
66261         Reported by Stavros Passas.
66262
66263         Sync from coreutils.
66264         * lib/sha1.c: Tweak grammar in a comment.
66265
66266 2006-01-10  Jim Meyering  <jim@meyering.net>
66267
66268         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66269         Patch by Joerg Sonnenberger.
66270
66271 2006-01-10  Bruno Haible  <bruno@clisp.org>
66272
66273         * modules/readutmp: Depend on module free.
66274         * modules/strtok_r: Depend on module restrict.
66275
66276 2006-01-10  Bruno Haible  <bruno@clisp.org>
66277
66278         * modules/gettext (configure.ac): Add an invocation of
66279         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66280
66281 2006-01-10  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66284         Reported by Werner Lemberg <wl@gnu.org>.
66285
66286 2006-01-10  Bruno Haible  <bruno@clisp.org>
66287
66288         * lib/localcharset.c: Update from GNU gettext.
66289
66290 2006-01-10  Bruno Haible  <bruno@clisp.org>
66291
66292         * lib/argp.h (__const): Remove macro. Use const instead.
66293         * lib/argp-fmtstream.h (__const): Likewise.
66294         * lib/glob_.h (__const): Remove macro.
66295         * lib/glob-libc.h: Use const instead of __const.
66296
66297 2006-01-10  Bruno Haible  <bruno@clisp.org>
66298
66299         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66300         variable.
66301         Needed to avoid an automake error regarding the 'gettext' module.
66302
66303 2006-01-09  Simon Josefsson  <jas@extundo.com>
66304
66305         * modules/inet_ntop (Depends-on): Add restrict.
66306
66307 2006-01-09  Simon Josefsson  <jas@extundo.com>
66308
66309         * modules/gc-rijndael-tests (License): Put under LGPL.
66310
66311         * modules/gc-des-tests (License): Likewise.
66312
66313         * modules/gc-arcfour-tests (License): Likewise.
66314
66315         * modules/gc-arctwo-tests (License): Likewise.
66316
66317         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66318
66319         * modules/gc-hmac-sha1-tests (Files): Likewise.
66320
66321         * modules/gc-hmac-md5-tests (License): Likewise.
66322
66323         * modules/gc-sha1-tests (License): Likewise.
66324
66325         * modules/gc-md5-tests (License): Likewise.
66326
66327         * modules/gc-md4-tests (License): Likewise.
66328
66329         * modules/gc-md2-tests (License): Likewise.
66330
66331         * modules/gc-tests (License): Likewise.
66332
66333         * modules/des-tests (License): Likewise.
66334
66335         * modules/md4-tests (License): Likewise.
66336
66337         * modules/md2-tests (License): Likewise.
66338
66339 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         Sync from coreutils:
66342
66343         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66344         * modules/lib-ignore: New file.
66345         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66346         chdir-safer.m4, lchmod.m4.
66347         * modules/openat: Add mkdirat.c, openat-priv.h.
66348
66349 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         Sync from coreutils.
66352         * m4/lib-ignore.m4: New file.
66353         * m4/lchmod.m4: New file.
66354
66355 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         Sync from coreutils.
66358         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66359         for write access: POSIX says that must fail.
66360         * lib/fts.c (diropen): Likewise.
66361         * lib/save-cwd.c (save_cwd): Likewise.
66362         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66363         well, for minor improvements on hosts that lack O_DIRECTORY.
66364         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66365         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66366         Fall back on chown if open failed with EACCES.
66367
66368         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66369         Report an error at compile-time if only a 1-second nominal clock
66370         resolution is found.
66371
66372         * lib/lchmod.h: New file.
66373         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66374         (make_dir_parents): Use lchown rather than chown, and
66375         lchmod rather than chmod.
66376
66377         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66378         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66379         "proc" reported by n0dalus.
66380
66381         * lib/mountlist.c: Include <limits.h>.
66382         (dev_from_mount_options)
66383         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66384         New function.  It no longer assumes "dev=" has the System V meaning
66385         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66386         (read_file_system_list)
66387         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66388         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66389         dev= in that case.
66390
66391         * lib/posixtm.h (PDS_PRE_2000): New macro.
66392         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66393         allow_century.  All usages changed.  Reject dates outside the range
66394         1969-1999 if PDS_PRE_2000 is used.
66395
66396 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         Sync from coreutils.
66399         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66400         (Time of day items): Mention the possibility of leap seconds.
66401         Problem reported by Dr. David Alan Gilbert.
66402
66403 2006-01-09  Jim Meyering  <jim@meyering.net>
66404
66405         Sync from coreutils.
66406
66407         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66408
66409         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66410
66411         * lib/modechange.c (mode_compile): Reject an invalid mode string
66412         that starts with an octal digit.  From Andreas Gruenbacher.
66413
66414         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66415         and dup to open_safer and dup_safer, respectively.
66416         (openat_permissive): Fix typo in comment.
66417
66418         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66419         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66420         (_): Remove; no longer needed.
66421         (openat): Renamed from rpl_openat; no need for rpl_openat
66422         since openat.h renames openat for us.
66423         Replace most of the body with a call to openat_permissive,
66424         to avoid duplicate code.
66425         Port to (probably hypothetical) environments were mode_t is
66426         wider than int.
66427         (openat_permissive): Require mode arg, so that we can check
66428         types better.  Put it just after flags.  Change cwd failure
66429         indicator from pointer-to-bool to pointer-to-errno-value.
66430         All callers changed.
66431         Invoke openat_save_fail and/or openat_restore_fail if
66432         cwd_errno is null, so that openat can call us.
66433         (openat_permissive, fdopendir, fstatat, unlinkat):
66434         Simplify errno handling to avoid some duplicate code,
66435         as it's OK to set errno on success.
66436         * lib/openat.h: Revamp code so that function macros depend on
66437         __OPENAT_PREFIX only, not also on AT_FDCWD.
66438         (openat_ro): Remove.  Caller changed to use openat_permissive.
66439         (openat_permissive): Now a macro, if not a function.
66440         (openat_restore_fail, openat_save_fail): Now always functions,
66441         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66442
66443         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66444         and openat.c.
66445         * lib/mkdirat.c: Include openat-priv.h.
66446         Remove definitions of macros defined therein.
66447         * lib/openat.c: Likewise.
66448
66449         * lib/mkdirat.c (mkdirat): New file and function.
66450         * lib/openat.h (mkdirat): Declare.
66451
66452         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66453
66454         * lib/openat.h (openat_permissive): Declare.
66455         (openat_ro): Define.
66456
66457         * lib/openat.c (EXPECTED_ERRNO): New macro.
66458         (openat_permissive): New function -- used in remove.c rewrite.
66459         (all functions): Set errno just before returning, only if there
66460         was an actual failure.
66461         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66462
66463         Emulate openat-family functions using Linux's procfs, if possible.
66464         Idea and some code based on Ulrich Drepper's glibc changes.
66465
66466         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66467         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66468         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66469         before falling back on save_cwd and restore_cwd.
66470         (fdopendir, fstatat, unlinkat): Likewise.
66471
66472         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66473         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66474
66475         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66476         as second argument to va_arg.  Otherwise, some versions of gcc
66477         warn that `if this code is reached, the program will abort'.
66478
66479 2006-01-09  Jim Meyering  <jim@meyering.net>
66480
66481         Sync from coreutils.
66482         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66483         Require openat-priv.h.
66484
66485 2006-01-09  Bruno Haible  <bruno@clisp.org>
66486
66487         * modules/strnlen (Include): Use strnlen.h.
66488
66489 2006-01-09  Bruno Haible  <bruno@clisp.org>
66490
66491         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66492
66493 2006-01-09  Bruno Haible  <bruno@clisp.org>
66494
66495         * lib/sysexit_.h (EX_OK): New macro.
66496         Suggested by Martin Lambers <marlam@marlam.de>.
66497
66498 2006-01-09  Bruno Haible  <bruno@clisp.org>
66499
66500         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66501         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66502
66503 2006-01-09  Bruno Haible  <bruno@clisp.org>
66504
66505         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66506         numbers.
66507
66508 2006-01-09  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66511         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66512         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66513         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66514
66515 2006-01-09  Bruno Haible  <bruno@clisp.org>
66516
66517         * build-aux/javacomp.sh.in: New file, moved from lib/.
66518         * modules/javacomp-script (Files): Update.
66519         (configure.ac): Add AC_CONFIG_FILES invocation.
66520         (EXTRA_DIST): Remove variable.
66521
66522         * build-aux/javaexec.sh.in: New file, moved from lib/.
66523         * modules/javaexec (Files): Update.
66524         (configure.ac): Add AC_CONFIG_FILES invocation.
66525         (EXTRA_DIST): Remove javaexec.sh.in.
66526
66527         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66528         * modules/csharpcomp-script (Files): Update.
66529         (configure.ac): Add AC_CONFIG_FILES invocation.
66530         (EXTRA_DIST): Remove variable.
66531
66532         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66533         * modules/csharpexec (Files): Update.
66534         (configure.ac): Add AC_CONFIG_FILES invocation.
66535         (EXTRA_DIST): Remove csharpexec.sh.in.
66536
66537 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66538
66539         Sync from coreutils.
66540
66541         Add POSIX ACL support
66542         * lib/acl.h (copy_acl, set_acl): Add declarations.
66543         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66544         systems other than Linux.
66545         (chmod_or_fchmod): New function: use fchmod when possible,
66546         and chmod otherwise.
66547         (file_has_acl): Add a POSIX ACL implementation, with a
66548         Linux-specific subcase.
66549         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66550         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66551         acls are unsupported.
66552         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66553         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66554         are unsupported.
66555
66556 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66557
66558         Sync from coreutils.
66559         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66560
66561 2006-01-07  Bruno Haible  <bruno@clisp.org>
66562
66563         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66564         gl_EARLY.
66565
66566 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66569         Problem reported for Mingw by Mark Junker.
66570
66571 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * README: Gnulib normally doesn't generate a tarball.
66574
66575 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66578         long int, not int, for nanosecond counts, so that people who are
66579         used to POSIX struct timespec won't be surprised.  Reported by Jim
66580         Meyering.
66581
66582 2005-12-28  Bruno Haible  <bruno@clisp.org>
66583
66584         * build-aux/config.rpath: Update from GNU gettext.
66585
66586 2005-12-16  Jim Meyering  <jim@meyering.net>
66587
66588         * modules/fprintftime: New module.
66589         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66590
66591 2005-12-16  Jim Meyering  <jim@meyering.net>
66592
66593         * m4/fprintftime.m4: New file.
66594
66595 2005-12-16  Jim Meyering  <jim@meyering.net>
66596
66597         * lib/fprintftime.c, lib/fprintftime.h: New files.
66598
66599 2005-12-15  Simon Josefsson  <jas@extundo.com>
66600
66601         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66602         new m4/socklen.m4.
66603
66604 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66605
66606         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66607         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66608
66609 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66610
66611         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66612         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66613         struct uparams is valid. Fall back to the default values if it is
66614         not.
66615
66616 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66617
66618         * modules/argp (Files): Add argp-pin.c
66619         (Depends-on): dirname
66620         (lib_SOURCES): Add argp-pin.c
66621
66622 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66623
66624         * m4/argp.m4:  Check if program_invocation_name and
66625         program_invocation_short_name are declared and define appropriate
66626         macros if they are not.
66627
66628 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66629
66630         * lib/argp-help.c (__argp_base_name): New function
66631         (__argp_short_program_name): Rewrite using __argp_base_name
66632         * lib/argp-namefrob.h: Define program_invocation_name and
66633         program_invocation_short_name if requested
66634         (__argp_base_name): Add prototype
66635         * lib/argp-parse.c (argp_def): Use gettext wrappers
66636         (argp_default_parser): Use __argp_base_name
66637         * lib/argp-pin.c: New file. Defines program_invocation_name and
66638         program_invocation_short_name on systems that lack them.
66639
66640 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66641
66642         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66643         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66644         porting problem reported by Georg Schwarz in
66645         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66646
66647 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66650         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66651         porting problem reported by Georg Schwarz in
66652         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66653
66654 2005-12-05  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66657         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66658         Reported by Mark Junker <mjscod@gmx.de>.
66659
66660 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66661
66662         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66663         Use implementation from Albert Chin, with some
66664         comments/corrections by Stepan Kasal and myself.
66665
66666 2005-12-02  Bruno Haible  <bruno@clisp.org>
66667
66668         * gnulib-tool (func_import): Accept GPLed build tool modules when
66669         --lgpl is given.
66670         * modules/csharpcomp-script: New file.
66671         * modules/csharpcomp: Depend on it.
66672         * modules/javacomp-script: New file.
66673         * modules/javacomp: Depend on it.
66674         Suggested by Simon Josefsson.
66675
66676 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66679         statement, to work around an HP-UX 10.20 compiler bug reported by
66680         Peter O'Gorman.
66681
66682 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * modules/savedir (Depends-on): Add openat.
66685
66686 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66687
66688         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66689         (uintmax_t) [defined uintmax_t]: Do not declare.
66690         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66691         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66692         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66693         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66694         sake of portability to weird hosts that C allows (though we don't
66695         know of any practical examples).
66696
66697         * lib/savedir.h (fdsavedir): New decl.
66698         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66699         contains most of the former guts of savedir.
66700         (savedir): Use savedirstream.
66701         Include "openat.h".
66702
66703 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * modules/obstack (Files): Add m4/ulonglong.m4.
66706         Problem reported by Davide Angelocola.
66707
66708 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66709
66710         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66711         coreutils no longer futzes with rounding modes.
66712
66713 2005-11-14  Jim Meyering  <jim@meyering.net>
66714
66715         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66716         replacement of mkstemp.
66717
66718 2005-11-10  Simon Josefsson  <jas@extundo.com>
66719
66720         * lib/readline.c: Remove EOL.
66721
66722 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * modules/gethrxtime (Depends-on): Add gettime.
66725
66726 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66729         or gettimeofday; no longer needed.
66730
66731 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66734         time business.
66735         (gethrxtime) [! (HAVE_NANOUPTIME
66736         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66737         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66738         our own approximation.
66739
66740 2005-11-08  Eric Blake  <ebb9@byu.net>
66741
66742         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66743
66744 2005-11-08  Eric Blake  <ebb9@byu.net>
66745
66746         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66747
66748 2005-11-04  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool: Implement --update mode.
66751
66752 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         Fix porting problem reported by Theodoros V. Kalamatianos.
66755         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66756         Don't assume that futimes failing means we must fail.
66757
66758 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66761         variables to suggest the intended function of the PATH_MAX check.
66762
66763 2005-10-30  Kean Johnston  <jkj@sco.com>
66764
66765         Trivial changes to support SCO systems.
66766         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66767         as PATH_MAX.
66768         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66769         where __ptr is null when no I/O is pending.
66770
66771 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66774         leave errno alone.  Problem reported by Dmitry V. Levin.
66775
66776 2005-10-28  Simon Josefsson  <jas@extundo.com>
66777
66778         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66779         Test more.
66780
66781         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66782
66783         * modules/md2, modules/md2-tests: New files.
66784
66785 2005-10-28  Simon Josefsson  <jas@extundo.com>
66786
66787         * m4/inet_ntop.m4: More tests.
66788
66789         * m4/gc-md2.m4, md2.m4: New file.
66790
66791 2005-10-28  Simon Josefsson  <jas@extundo.com>
66792
66793         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66794         "restrict" keywords, as per POSIX.  Protect the function
66795         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66796         Don't use K&R prototypes.  Check the sprintf return values.
66797         Re-define EAFNOSUPPORT if not present.  Indent.
66798
66799         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66800         suggested by Bruno Haible <bruno@clisp.org>.
66801
66802         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66803
66804         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66805
66806         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66807         libgcrypt).
66808
66809         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66810
66811         * lib/md2.h, lib/md2.c: New files.
66812
66813 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66814
66815         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66816         errno alone.  Problem reported by Frederic Jolliton.
66817
66818 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * modules/verify (License): Change from GPL to LGPL.  This is a
66821         tiny module and there are apparently near-equivalents that are
66822         under the BSD license.
66823
66824 2005-10-24  Simon Josefsson  <jas@extundo.com>
66825
66826         * modules/sha1: Relicense to LGPL.
66827
66828 2005-10-24  Simon Josefsson  <jas@extundo.com>
66829
66830         * lib/md4.h: Shrink buffer size, now that we changed the type.
66831
66832 2005-10-23  Simon Josefsson  <jas@extundo.com>
66833
66834         * gnulib-tool (func_import): Fix --tests-base.
66835
66836 2005-10-22  Simon Josefsson  <jas@extundo.com>
66837
66838         * modules/arcfour (Depends-on): Need stdint.
66839
66840 2005-10-22  Simon Josefsson  <jas@extundo.com>
66841
66842         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66843         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66844
66845 2005-10-22  Simon Josefsson  <jas@extundo.com>
66846
66847         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66848         suggested by Bruno Haible <bruno@clisp.org>.
66849
66850 2005-10-22  Simon Josefsson  <jas@extundo.com>
66851
66852         * lib/crc.h: Include stddef.h, for size_t.
66853
66854 2005-10-22  Simon Josefsson  <jas@extundo.com>
66855
66856         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66857         arcfour_context struct (simplify test vector testing in GNU
66858         Shishi).
66859
66860 2005-10-21  Simon Josefsson  <jas@extundo.com>
66861
66862         * modules/des, modules/des-tests: New files.
66863
66864         * modules/gc-des, modules/gc-des-tests: New files.
66865
66866         * tests/test-des.c, tests/test-gc-des.c: New file.
66867
66868 2005-10-21  Simon Josefsson  <jas@extundo.com>
66869
66870         * modules/arctwo, modules/arctwo-tests: New files.
66871
66872         * tests/test-arctwo.c: New file.
66873
66874         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66875
66876         * tests/test-gc-arctwo.c: New file.
66877
66878 2005-10-21  Simon Josefsson  <jas@extundo.com>
66879
66880         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66881         Bruno Haible <bruno@clisp.org>.
66882
66883         * m4/gc-des.m4: New file.
66884
66885 2005-10-21  Simon Josefsson  <jas@extundo.com>
66886
66887         * m4/arctwo.m4: New file.
66888
66889         * m4/gc-arctwo.m4: New file.
66890
66891 2005-10-21  Simon Josefsson  <jas@extundo.com>
66892
66893         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66894         block.
66895
66896 2005-10-21  Simon Josefsson  <jas@extundo.com>
66897
66898         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66899         <bruno@clisp.org>.
66900
66901         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66902
66903         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66904         Bruno Haible <bruno@clisp.org>.
66905
66906         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66907         <bruno@clisp.org>.
66908
66909 2005-10-21  Simon Josefsson  <jas@extundo.com>
66910
66911         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66912
66913 2005-10-21  Simon Josefsson  <jas@extundo.com>
66914
66915         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66916
66917 2005-10-21  Simon Josefsson  <jas@extundo.com>
66918
66919         * lib/des.h, lib/des.c: New files.
66920
66921         * lib/gc-gnulib.c: Support DES.c
66922
66923 2005-10-21  Simon Josefsson  <jas@extundo.com>
66924
66925         * lib/arctwo.h, lib/arctwo.c: New files.
66926
66927         * lib/gc-gnulib.c: Support ARCTWO.
66928
66929 2005-10-21  Simon Josefsson  <jas@extundo.com>
66930
66931         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66932         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66933
66934 2005-10-21  Simon Josefsson  <jas@extundo.com>
66935
66936         * gnulib-tool (func_import, func_create_testdir): Define automake
66937         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66938         Makefile.am snippet),
66939         suggested by Bruno Haible <bruno@clisp.org>.
66940
66941         * modules/gc (Makefile.am): Use it.
66942
66943 2005-10-21  Bruno Haible  <bruno@clisp.org>
66944
66945         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66946         patch.
66947
66948 2005-10-19  Simon Josefsson  <jas@extundo.com>
66949
66950         * tests/test-gc-rijndael.c: New file.
66951
66952         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66953
66954 2005-10-19  Simon Josefsson  <jas@extundo.com>
66955
66956         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66957         interface too.
66958
66959 2005-10-19  Simon Josefsson  <jas@extundo.com>
66960
66961         * tests/test-gc-arcfour.c: New file.
66962
66963         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66964
66965 2005-10-19  Simon Josefsson  <jas@extundo.com>
66966
66967         * modules/gc-md4, modules/gc-md4-tests: New file.
66968
66969         * tests/test-gc-md4.c: New file.
66970
66971 2005-10-19  Simon Josefsson  <jas@extundo.com>
66972
66973         * m4/gc-md4.m4: New file.
66974
66975 2005-10-19  Simon Josefsson  <jas@extundo.com>
66976
66977         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66978         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66979         <kasal@ucw.cz>.
66980
66981 2005-10-19  Simon Josefsson  <jas@extundo.com>
66982
66983         * m4/gc-arcfour.m4: New file.
66984
66985         * m4/gc-rijndael.m4: New file.
66986
66987 2005-10-19  Simon Josefsson  <jas@extundo.com>
66988
66989         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66990
66991 2005-10-19  Simon Josefsson  <jas@extundo.com>
66992
66993         * lib/gc-gnulib.c: Support ARCFOUR.
66994
66995 2005-10-19  Simon Josefsson  <jas@extundo.com>
66996
66997         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66998         support.
66999
67000         * lib/gc.h: Add ECB enum type.
67001
67002         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67003
67004 2005-10-18  Simon Josefsson  <jas@extundo.com>
67005
67006         * tests/test-md5.c: New file.
67007
67008         * modules/md5-tests: New file.
67009
67010 2005-10-18  Simon Josefsson  <jas@extundo.com>
67011
67012         * tests/test-md4.c: New file.
67013
67014         * modules/md4, modules/md4-tests: New files.
67015
67016 2005-10-18  Simon Josefsson  <jas@extundo.com>
67017
67018         * m4/md4.m4: New file.
67019
67020 2005-10-18  Simon Josefsson  <jas@extundo.com>
67021
67022         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67023
67024 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67025
67026         * gnulib-tool (func_create_testdir): Omit the second check whether
67027         BUILT_SOURCES in nonempty.
67028
67029 2005-10-17  Simon Josefsson  <jas@extundo.com>
67030
67031         * tests/test-rijndael.c: New file.
67032
67033 2005-10-17  Simon Josefsson  <jas@extundo.com>
67034
67035         * modules/sha1: Depend on stdint instead of md5.
67036
67037         * modules/md5: Depend on stdint, remove uint32_t.
67038
67039 2005-10-17  Simon Josefsson  <jas@extundo.com>
67040
67041         * modules/gc-sha1-tests: New file.
67042
67043         * tests/test-gc-sha1.c: New file.
67044
67045 2005-10-17  Simon Josefsson  <jas@extundo.com>
67046
67047         * m4/md5.m4: Remove call to uint32_t.m4.
67048
67049 2005-10-17  Simon Josefsson  <jas@extundo.com>
67050
67051         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67052
67053         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67054         md5.h.
67055
67056         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67057
67058         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67059
67060 2005-10-17  Simon Josefsson  <jas@extundo.com>
67061
67062         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67063
67064 2005-10-17  Simon Josefsson  <jas@extundo.com>
67065
67066         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67067
67068 2005-10-17  Simon Josefsson  <jas@extundo.com>
67069
67070         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67071
67072         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67073
67074 2005-10-17  Bruno Haible  <bruno@clisp.org>
67075
67076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67077         that it can also be used in a test.
67078
67079 2005-10-16  Bruno Haible  <bruno@clisp.org>
67080
67081         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67082         TESTS_ENVIRONMENT, so that individual tests can augment it.
67083
67084         * gnulib-tool (func_create_testdir): Use an intermediate target for
67085         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67086         macros, like $(ALLOCA_H), which cannot be passed through the command
67087         line.
67088
67089 2005-10-15  Simon Josefsson  <jas@extundo.com>
67090
67091         * modules/rijndael-tests: New file.
67092
67093         * modules/rijndael: New file.
67094
67095 2005-10-15  Simon Josefsson  <jas@extundo.com>
67096
67097         * m4/rijndael.m4: New file.
67098
67099 2005-10-15  Simon Josefsson  <jas@extundo.com>
67100
67101         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67102
67103         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67104
67105 2005-10-14  Simon Josefsson  <jas@extundo.com>
67106
67107         * tests/test-arcfour.c: New file.
67108
67109         * modules/arcfour, modules/arcfour-tests: New files.
67110
67111 2005-10-14  Simon Josefsson  <jas@extundo.com>
67112
67113         * m4/arcfour.m4: New file.
67114
67115 2005-10-14  Simon Josefsson  <jas@extundo.com>
67116
67117         * lib/arcfour.h, lib/arcfour.c: New files.
67118
67119 2005-10-14  Roland McGrath  <roland@redhat.com>
67120
67121         Import from libc.  [BZ #1331]
67122         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67123         macro argument.
67124         Reported by Matej Vela <vela@debian.org>.
67125
67126 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67127
67128         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67129         include <wchar.h>; no longer needed.
67130
67131 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67132
67133         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67134
67135 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67136         and  Ulrich Drepper  <drepper@redhat.com>
67137
67138         Import from libc.
67139         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67140         instead of inline stream orientation test and two separate
67141         function calls.  Pay no attention to USE_IN_LIBIO.
67142
67143 2005-10-13  Simon Josefsson  <jas@extundo.com>
67144
67145         * modules/gc-hmac-md5-tests: New file.
67146
67147         * tests/test-gc-hmac-sha1.c: New file.
67148
67149         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67150
67151         * modules/gc-hmac-md5-tests: New file.
67152
67153         * tests/test-gc-md5.c: New file.
67154
67155         * modules/gc-md5-tests: New file.
67156
67157 2005-10-13  Simon Josefsson  <jas@extundo.com>
67158
67159         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67160         Move memory allocation outside of loop.
67161
67162 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67165         intermediate directory is in a read-only file system.  Problem
67166         reported by Eric Blake.
67167
67168 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67169
67170         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67171
67172 2005-10-12  Simon Josefsson  <jas@extundo.com>
67173
67174         * tests/test-hmac-sha1.c: New file.
67175
67176         * modules/hmac-sha1-tests: New file.
67177
67178         * modules/hmac-sha1: New file.
67179
67180 2005-10-12  Simon Josefsson  <jas@extundo.com>
67181
67182         * modules/gc-sha1: New file.
67183
67184 2005-10-12  Simon Josefsson  <jas@extundo.com>
67185
67186         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67187
67188         * tests/test-gc-pbkdf2-sha1.c: New file.
67189
67190 2005-10-12  Simon Josefsson  <jas@extundo.com>
67191
67192         * modules/gc-md5, modules/gc-hmac-md5: New files.
67193
67194         * modules/gc (Files): Remove md5, memxor and hmac files.
67195
67196 2005-10-12  Simon Josefsson  <jas@extundo.com>
67197
67198         * m4/gc-pbkdf2-sha1.m4: New file.
67199
67200         * m4/gc-hmac-sha1.m4: New file.
67201
67202         * m4/gc-sha1: New file.
67203
67204         * m4/hmac-sha1.m4: New file.
67205
67206 2005-10-12  Simon Josefsson  <jas@extundo.com>
67207
67208         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67209
67210         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67211
67212 2005-10-12  Simon Josefsson  <jas@extundo.com>
67213
67214         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67215         suggested by Bruno Haible <bruno@clisp.org>.
67216
67217 2005-10-12  Simon Josefsson  <jas@extundo.com>
67218
67219         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67220
67221 2005-10-12  Simon Josefsson  <jas@extundo.com>
67222
67223         * lib/gc-pbkdf2-sha1.c: New file.
67224
67225         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67226
67227 2005-10-12  Simon Josefsson  <jas@extundo.com>
67228
67229         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67230
67231         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67232
67233 2005-10-12  Simon Josefsson  <jas@extundo.com>
67234
67235         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67236         GC_USE_HMAC_MD5, respectively.
67237
67238         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67239         (gc_md5): Fix typo.
67240
67241         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67242
67243         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67244
67245         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67246
67247 2005-10-12  Bruno Haible  <bruno@clisp.org>
67248
67249         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67250         Reported by Stepan Kasal <kasal@ucw.cz>.
67251
67252 2005-10-11  Simon Josefsson  <jas@extundo.com>
67253
67254         * tests/test-crc.c: New file.
67255
67256         * modules/crc, modules/crc-tests: New files.
67257
67258 2005-10-11  Simon Josefsson  <jas@extundo.com>
67259
67260         * m4/crc.m4: New file.
67261
67262 2005-10-11  Simon Josefsson  <jas@extundo.com>
67263
67264         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67265
67266         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67267
67268         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67269
67270 2005-10-11  Simon Josefsson  <jas@extundo.com>
67271
67272         * lib/crc.h, lib/crc.c: New files.
67273
67274         * lib/gc.h (gc_hash_buffer): Add doc.
67275
67276 2005-10-11  Bruno Haible  <bruno@clisp.org>
67277
67278         * modules/c-strcasestr: New file.
67279         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67280
67281 2005-10-11  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/c-strcase: New file.
67284         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67285
67286 2005-10-11  Bruno Haible  <bruno@clisp.org>
67287
67288         * lib/strcasecmp.c: Include limits.h.
67289         (strcasecmp): Avoid integer overflow on exotic platforms.
67290         * lib/strncasecmp.c: Include limits.h.
67291         (strncasecmp): Avoid integer overflow on exotic platforms.
67292         Reported by Paul Eggert.
67293
67294 2005-10-11  Bruno Haible  <bruno@clisp.org>
67295
67296         * lib/c-strcasestr.h: New file, from GNU gettext.
67297         * lib/c-strcasestr.c: New file, from GNU gettext.
67298
67299 2005-10-11  Bruno Haible  <bruno@clisp.org>
67300
67301         * lib/c-strcase.h: New file, from GNU gettext.
67302         * lib/c-strcasecmp.c: New file, from GNU gettext.
67303         * lib/c-strncasecmp.c: New file, from GNU gettext.
67304
67305 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         * modules/mempcpy (License): GPL -> LGPL.
67308         * modules/strchrnul (License): Likewise.
67309         * modules/sysexits (License): Likewise.
67310
67311 2005-10-08  Simon Josefsson  <jas@extundo.com>
67312
67313         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67314
67315 2005-10-07  Simon Josefsson  <jas@extundo.com>
67316
67317         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67318
67319 2005-10-06  Simon Josefsson  <jas@extundo.com>
67320
67321         * tests/test-hmac-md5.c: New file.
67322
67323         * modules/hmac-md5-tests: New file.
67324
67325         * modules/hmac-md5: New file.
67326
67327 2005-10-06  Simon Josefsson  <jas@extundo.com>
67328
67329         * m4/hmac-md5.m4: New file.
67330
67331         * m4/memxor.m4: Require gl_C_RESTRICT.
67332
67333 2005-10-06  Simon Josefsson  <jas@extundo.com>
67334
67335         * lib/memxor.c (memxor): Avoid casts and warnings.
67336
67337 2005-10-06  Simon Josefsson  <jas@extundo.com>
67338
67339         * lib/hmac-md5.c: New file.
67340
67341         * lib/hmac.h: New file.
67342
67343 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67346         promotes to int, not unsigned int, to catch the AIX 5.3
67347         compiler bug.
67348
67349 2005-10-05  Simon Josefsson  <jas@extundo.com>
67350
67351         * modules/memxor: New file.
67352
67353         * modules/iconv (Files): Move config.rpath to havelib, it is used
67354         there.
67355
67356         * modules/havelib (Files): Add config.rpath.
67357
67358 2005-10-05  Simon Josefsson  <jas@extundo.com>
67359
67360         * m4/memxor.m4: New file.
67361
67362 2005-10-05  Simon Josefsson  <jas@extundo.com>
67363
67364         * lib/memxor.c (memxor): Fix compiler error.
67365
67366         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67367         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67368
67369         * lib/memxor.h, lib/memxor.c: New files.
67370
67371         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67372         we assume all systems have it, suggested by Jim Meyering
67373         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67374         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67375         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67376         same reasons.
67377
67378 2005-10-05  Simon Josefsson  <jas@extundo.com>
67379
67380         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67381
67382 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67385         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67386         needed, since the source code now assumes these .h files.
67387
67388 2005-10-05  Derek Price  <derek@ximbiot.com>
67389
67390         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67391
67392 2005-10-05  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/stdint (License): Change to LGPL.
67395
67396 2005-10-04  Simon Josefsson  <jas@extundo.com>
67397
67398         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67399         D. Baushke" <mdb@gnu.org>.
67400
67401 2005-10-04  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/verify.h (verify_true): Provide alternative definition for C++.
67404
67405 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67408         (SSIZE_MAX): New macro, if not already defined.
67409         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67410         than 2 GiB.
67411
67412 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67413
67414         Sync from coreutils.
67415         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67416         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67417         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67418         ULLONG_MAX doesn't work with 2.7.2.1.
67419
67420 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67421
67422         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67423         From Ben Pfaff.
67424
67425         * modules/exclude (Depends-on): Depend on verify.
67426         * modules/strtoimax (Depends-on): Likewise.
67427         * modules/utimecmp (Depends-on): Likewise.
67428
67429 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         * lib/exclude.c: Include verify.h.
67432         (verify): Remove.  All callers changed to use verify.h's version.
67433         * lib/strtoimax.c: Likewise.
67434         * lib/utimecmp.c: Likewis.e
67435
67436         Sync from coreutils.
67437         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67438         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67439         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67440         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67441         bother returning ENOSYS if settimeofday or stime fails; just let
67442         them return whatever errno they want to return.
67443         * lib/utimens.c: Include unistd.h, for dup2.
67444         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67445         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67446
67447 2005-10-02  Jim Meyering  <jim@meyering.net>
67448
67449         Sync from coreutils.
67450         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67451         from glibc-2.2.5 that fails for read-only files.
67452
67453 2005-10-02  Jim Meyering  <jim@meyering.net>
67454
67455         Sync from coreutils.
67456         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67457         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67458         `#if HAVE_CONFIG_H'.
67459         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67460         Remove AT_FDCWD test.
67461         Do not consume the fd unless successful.
67462         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67463         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67464         block, so that we don't even try to compile it if settimeofday is
67465         available.  This works around a compilation failure on OSF1 V5.1,
67466         due to stime requiring a `long int*' while tv_sec is `int'.
67467
67468 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67469
67470         Sync from coreutils.
67471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67472         against `yes', rather than just testing for nonempty.
67473
67474 2005-10-01  Simon Josefsson  <jas@extundo.com>
67475
67476         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67477         and Darwin.
67478
67479         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67480         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67481         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67482         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67483         Check if struct addrinfo is declared.
67484
67485 2005-10-01  Simon Josefsson  <jas@extundo.com>
67486
67487         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67488         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67489         AI_* and EAI_* definitions.  Protect function declarations.
67490
67491 2005-10-01  Jim Meyering  <jim@meyering.net>
67492
67493         Sync from coreutils.
67494
67495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67496         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67497         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67499         in the inet and nsl libraries.  Required on Solaris 5.7.
67500
67501 2005-10-01  Jim Meyering  <jim@meyering.net>
67502
67503         Sync from coreutils.
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  Eric Blake  <ebb9@byu.net>  (tiny change)
67508
67509         * lib/getdelim.c (getdelim): Remove unused variables.
67510
67511 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67514         so that the code works even with ancient cpp.  Portability problem
67515         with GCC 2.7.2.1 reported by Thomas M.Ott.
67516
67517 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * modules/regex (Depends-on): Add strcase.
67520
67521         * modules/gethostname (Licence): Change from GPL to LGPL, since
67522         gethostname.c is a trivial implementation of a standard library
67523         function.
67524         * modules/poll (License): Change from GPL to LGPL, since it's
67525         derived from LGPL code.
67526
67527 2005-09-27  Jim Meyering  <jim@meyering.net>
67528
67529         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67530         HAVE_CONFIG_H.
67531
67532         * lib/intprops.h (signed_type_or_expr__): Define.
67533         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67534         for unsigned types.
67535
67536 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * lib/verify.h (verify_expr): Remove, replacing with:
67539         (verify_true): New macro that returns true instead of void.
67540         (verify_type__): Remove.
67541         (verify): Use verify_true rather than verify_type__.
67542
67543 2005-09-26  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67546         is necessary.
67547         (lib_SOURCES): Remove mbchar.c.
67548         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67549         (Files): Add m4/mbrtowc.m4.
67550         * modules/mbiter: Likewise.
67551         * modules/mbuiter: Likewise.
67552
67553 2005-09-26  Bruno Haible  <bruno@clisp.org>
67554
67555         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67556         compile mbchar.c if they are not both present.
67557         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67558         * m4/mbiter.m4 (gl_MBITER): Likewise.
67559         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67560         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67561         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67562
67563 2005-09-25  Jim Meyering  <jim@meyering.net>
67564
67565         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67566         also uses socklen_t.
67567
67568 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67569
67570         * lib/utimens.c (ENOSYS): Define if not already defined.
67571         (futimens): Support having a null PATH if the file descriptor
67572         is nonnegative.
67573
67574         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67575         Remove.
67576         (__attribute): Define to empty unless GCC 3.1 or later.
67577         This works around a core dump on OpenBSD 3.4, which has GCC
67578         2.95.3, which dumps core when given __attribute__(()).  It also
67579         simplifies other tests, since we really don't want to bother with
67580         worrying about which ancient version of GCC supported what.
67581         Original problem reported by Yoann Vandoorselaere, with part of
67582         the fix suggested by Derek Price.
67583
67584 2005-09-24  Jim Meyering  <jim@meyering.net>
67585
67586         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67587         so we can once again use a positive bitfield width of 1 -- now we
67588         don't have to explain why we were using a bitfield width of 2.
67589
67590 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67591
67592         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67593         and similarly for the other external symbols.  Problem reported
67594         by James Gallager.
67595
67596         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67597         bug reported by Jim Meyering.
67598
67599         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67600         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67601         not needed, since socklen is a prerequisite module.
67602
67603 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67606         Problem reported by Eric Blake.
67607         (getaddrinfo): Initialize se so that it's not garbage.
67608         Redo internal storage allocation so that it doesn't make unportable
67609         assumptions about alignment.
67610         Fix a memory leak.
67611
67612         * lib/utimens.c (futimens): Use futimesat if available.
67613         Prefer it to futimes since it doesn't have the futimes bug.
67614
67615         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67616         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67617         Instead, declare a function that returns a pointer to an array,
67618         and use verify_type__ to declare the size of the array.
67619         Problem and germ of a solution reported by Bruno Haible.
67620         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67621         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67622
67623 2005-09-23  Jim Meyering  <jim@meyering.net>
67624
67625         Sync from coreutils.
67626         Correct build failure (socklen_t not defined) on at least
67627         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67628         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67629
67630 2005-09-23  Jim Meyering  <jim@meyering.net>
67631
67632         * modules/getaddrinfo (Depends-on): Add socklen.
67633
67634 2005-09-23  Bruno Haible  <bruno@clisp.org>
67635
67636         * tests/test-verify.c: New file.
67637
67638 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         Sync from coreutils.
67641
67642         * modules/argmatch (Depends-on): Add verify.
67643         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67644         unistd-safer.
67645         * modules/save-cwd (Depends-on): Likewise.
67646
67647         * modules/openat (Files): Add lib/openat-die.c.
67648         (Depends-on): Remove error, exitfail.
67649         Add dirname.
67650
67651         * modules/verify: New file.
67652         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67653         with "verify" module.
67654
67655 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         Sync from coreutils.
67658
67659         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67660         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67661         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67662         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67663         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67664         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67665         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67666         Don't bother checking for string.h, stdlib.h, unistd.h.
67667         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67668         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67669         module's job.
67670         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67671         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67672
67673         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67674         (gl_GETDATE): Use it.
67675
67676         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67677
67678 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         Sync from coreutils.
67681
67682         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67683         stat-time.h.
67684         * lib/argmatch.h: Include verify.h
67685         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67686         (ARGMATCH_ASSERT): Remove; unused.
67687         * lib/canonicalize.c: Assume STDC_HEADERS.
67688         * lib/exclude.c: Include "strcase.h".
67689         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67690         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67691         and stdio-safer.h.
67692         (getusershell): Call fopen, not fopen_safer.
67693         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67694         Do not include unistd-safer.h.
67695         (save_cwd): Don't call fd_safer; no longer needed
67696         now that we include fcntl--.h.
67697
67698         * lib/getdate.y (relative_time): New type.
67699         (RELATIVE_TIME_0): New constant.
67700         (parser_control): Use relative_time instead of doing it ourselves.
67701         (%union): Add new relative_time rel member.
67702         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67703         Now typeless.
67704         (relunit, relunit_snumber): Now of type rel.
67705         (zone, rel, relunit, get_date): Adjust to above changes.
67706
67707         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67708         Do not include unistd-safer.h.
67709         (getloadavg): Don't call fd_safer; no longer needed
67710         now that we include fcntl--.h.
67711
67712         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67713         (make_dir_parents): Treat ENOSYS like EEXIST.
67714
67715         Improve quality of diagnostics on restore_cwd failure.
67716         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67717         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67718         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67719         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67720         each time through the loop.  Do not diagnose restore_cwd failure;
67721         that is the caller's job (and perhaps the caller does not care).
67722
67723         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67724         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67725         If the file already exists but is not a directory, don't bother
67726         to try to make its parents.
67727         Close potential file descriptor leak if we can't chdir("/") (!).
67728         Don't always return true if chdir($PWD) fails; return true only
67729         if the requested action was done successfully (except for the
67730         chdir($PWD)).
67731         Don't log final directory unless we actually made it.
67732         Refactor to avoid duplicate code to fix up permissions.
67733         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67734
67735         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67736         to make it a bit faster and (I hope) clearer.
67737         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67738         Fix bug in formats like %2N.
67739
67740         * lib/verify.h: New file.
67741
67742 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         Sync from coreutils.
67745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67746
67747 2005-09-22  Jim Meyering  <jim@meyering.net>
67748
67749         Sync from coreutils.
67750
67751         * m4/lstat.m4 (gl_FUNC_LSTAT):
67752         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67753         Remove obsolete comment.
67754         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67755         * m4/xstrtod.m4: Likewise.
67756
67757         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67758
67759 2005-09-22  Jim Meyering  <jim@meyering.net>
67760
67761         Sync from coreutils.
67762
67763         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67764
67765         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67766         the .tm_year member, since otherwise gcc-4.0 would now warn about
67767         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67768
67769         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67770         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67771
67772         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67773         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67774         when run in a time zone for which daylight savings time is in effect
67775         for the starting date.
67776
67777         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67778         stop us from restricting permissions of just-created absolute-named
67779         directories.
67780         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67781         to restore initial working directory.
67782         * lib/mkdir-p.c (make_dir_parents): New parameter:
67783         different_working_dir, to tell caller if/when we change the working
67784         directory and are unable to return to the initial one.
67785         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67786         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67787         `return false'.  This fixes a bug introduced on 2004-07-30.
67788
67789         * lib/openat.c (fdopendir): Be sure to close the supplied
67790         file descriptor before returning.  This makes our replacement
67791         implementation a little closer to Solaris's, where fdopendir
67792         ties the file descriptor to the returned DIR* pointer.
67793         * lib/openat.c (unlinkat): New function.
67794         * lib/openat.h (unlinkat): Add prototype.
67795         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67796         (openat_restore_fail): Rename from openat_restore_die.
67797         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67798
67799         Provide an alternative to exiting immediately upon save_cwd or
67800         restore_cwd failure.  Now, an application can arrange e.g.,
67801         to perform a longjump in that case.
67802         * lib/openat.c: Include dirname.h.
67803         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67804         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67805         and openat_restore_die rather than calling error directly.
67806         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67807
67808         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67809         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67810         define.
67811
67812         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67813         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67814                             int utc, int nanoseconds);
67815         Background:
67816         date should not have to allocate a megabyte of virtual memory to
67817         handle a format argument like +%1048575T.  When implemented with
67818         strftime, it must allocate such a buffer, use strftime to fill it
67819         in, print it, then free it.
67820         With fprintftime, it simply prints everything and exits.
67821         With no need for memory allocation, that's one fewer way to fail.
67822         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67823         optional field width, not before, so we accept %9:z, not %:9z.
67824         (my_strftime): Be sure to use L_('x') for literals.
67825
67826         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67827         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67828         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67829         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67830         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67831         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67832         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67833         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67834         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67835         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67836         * lib/xgethostname.c, lib/xreadlink.c:
67837         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67838
67839         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67840         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67841         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67842         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67843         and don't include <sys/file.h>).
67844
67845 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67846
67847         Sync from coreutils.
67848
67849         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67850         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67851         [!LDAV_DONE]: Avoid unused variable warning.
67852
67853 2005-09-21  Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/unicodeio.h (unicode_to_mb): New declaration.
67856
67857 2005-09-20  Derek Price  <derek@ximbiot.com>
67858
67859         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67860         getaddrinfo.h.
67861
67862 2005-09-20  Bruno Haible  <bruno@clisp.org>
67863
67864         * gnulib-tool: Remove trailing slashes from the values specified for
67865         --source-base, --m4-base, --tests-base, --aux-dir.
67866         Suggested by Simon Josefsson <jas@extundo.com>.
67867
67868 2005-09-20  Bruno Haible  <bruno@clisp.org>
67869
67870         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67871         func_modules_to_filelist, func_import, func_create_testdir): Make all
67872         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67873         change when gnulib-tool is invoked in a different locale.
67874
67875 2005-09-19  Simon Josefsson  <jas@extundo.com>
67876
67877         * m4/socklen.m4: Fix typo.
67878
67879 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67880
67881         Use a consistent style for including <config.h>.
67882         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67883         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67884         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67885         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67886         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67887         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67888         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67889         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67890         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67891         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67892         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67893         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67894         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67895         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67896         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67897         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67898         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67899         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67900         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67901         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67902         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67903         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67904         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67905         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67906         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67907         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67908         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67909         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67910         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67911         lib/xstrtoumax.c, lib/yesno.c:
67912         Standardize inclusion of config.h.
67913         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67914         lib/inttostr.h:  Removed inclusion of config.h from header files.
67915         * lib/inttostr.c:  Adjusted in-tree users.
67916         * lib/timespec.h: Remove superfluous warning to include config.h.
67917         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67918         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67919         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67920         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67921         config.h with HAVE_CONFIG_H.
67922
67923 2005-09-19  Jim Meyering  <jim@meyering.net>
67924
67925         * modules/pathmax (License): Change to LGPL.
67926
67927 2005-09-19  Derek Price  <derek@ximbiot.com>
67928
67929         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67930
67931 2005-09-19  Bruno Haible  <bruno@clisp.org>
67932
67933         * gnulib-tool (import): Provide default for --tests-base.
67934
67935 2005-09-19  Bruno Haible  <bruno@clisp.org>
67936
67937         * doc/quote.texi: New file, extracted from gnulib.texi.
67938         * doc/ctime.texi: New file, extracted from gnulib.texi.
67939         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67940         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67941         * doc/gnulib.texi: Include them.
67942
67943 2005-09-18  Bruno Haible  <bruno@clisp.org>
67944
67945         Portability fix.
67946         * gnulib-tool (func_readlink): New function.
67947         (func_ln_if_changed): Use it.
67948
67949 2005-09-18  Bruno Haible  <bruno@clisp.org>
67950
67951         * gnulib-tool: Support --with-tests also with --import.
67952         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67953         (func_import): Use variables $testsbase and $inctests. Emit a
67954         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67955         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67956         SUBDIRS += $testsdir.
67957         (func_create_testdir): Update.
67958
67959 2005-09-18  Bruno Haible  <bruno@clisp.org>
67960
67961         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67962         instead of $dry_run.
67963         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67964         (func_ln_if_changed): Don't handle dry-run here.
67965         (func_import): In dry-run mode, detect more precisely which actions
67966         would be performed, and don't use "...ing" verbs.
67967
67968 2005-09-18  Bruno Haible  <bruno@clisp.org>
67969
67970         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67971         (func_import): Use join on two temporary files instead of three nested
67972         loops, in order to determine which files are new or old.
67973
67974 2005-09-18  Bruno Haible  <bruno@clisp.org>
67975
67976         * gnulib-tool (func_import): Comment out code that spits out the
67977         new files with --dry-run.
67978
67979 2005-09-18  Bruno Haible  <bruno@clisp.org>
67980
67981         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67982
67983 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * lib/stat-time.h: New file.
67986         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67987         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67988         in a different way.
67989         (timespec_cmp): New function.
67990         * lib/utimecmp.c: Include stat-time.h.
67991         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67992         members exist, not on the obsolescent ST_MTIM_NSEC.
67993         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67994
67995 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67998
67999 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * MODULES.html.sh (File system functions): Add stat-time.
68002         * modules/stat-time: New file.
68003         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68004         is now done in a different way, by the stat-time module.
68005         * modules/utimecmp (Depends-on): Add stat-time.
68006
68007 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * m4/st_mtim.m4: Remove.  Superseded by...
68010         * m4/stat-time.m4: New file.
68011         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68012         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68013
68014 2005-09-15  Derek Price  <derek@ximbiot.com>
68015
68016         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68017
68018 2005-09-15  Derek Price  <derek@ximbiot.com>
68019
68020         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68021         * lib/regex_internal.c: Ditto, using this...
68022         (__GNUC_PREREQ): ...new macro.
68023         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68024         using...
68025         (__GNUC_PREREQ): ...this new macro.
68026
68027         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68028
68029 2005-09-15  Derek Price  <derek@ximbiot.com>
68030             Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68033         changes, consolidating in...
68034         * lib/regex_internal.h: ...this file.
68035
68036 2005-09-13  Jim Meyering  <jim@meyering.net>
68037
68038         * lib/canon-host.c: Filter through gnu indent and reword comments
68039         slightly.
68040         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68041
68042 2005-09-13  Derek Price  <derek@ximbiot.com>
68043
68044         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68045         failure.
68046         Reported by Jim Meyering  <jim@meyering.net>.
68047
68048 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68049
68050         * lib/base64.c: Typo.
68051         (base64_encode): Put b64str in initialized data section.
68052
68053 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68054
68055         Merge glibc and coreutils changes into gnulib, plus a few
68056         extra fixes.
68057         * lib/md5.c: Use #error rather than a string.
68058         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68059         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68060         (__attribute__): Define to empty for non recent-GCC.
68061         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68062         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68063         Renamed from their non-__ counterparts, with new macros replacing
68064         them if not _LIBC.  Add __THROW attribute.
68065         (rol): Remove.
68066         (struct md5_ctx): Align buffer if using GCC.
68067         * lib/sha1.h (struct sha1_ctx): Likewise.
68068         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68069         The old name was backwards.
68070         (NOTSWAP): Remove; not used.
68071         (rol): New macro, moved here from md5.h.
68072         (sha1_process_block): Remove a FIXME that doesn't make sense.
68073
68074 2005-09-12  Derek Price  <derek@ximbiot.com>
68075
68076         Return usable errors from canon-host.
68077         * lib/canon-host.h: New file.
68078         * lib/canon-host.c (canon_host): Wrap...
68079         (canon_host_r): ...this new function, which now relies exclusively on
68080         getaddrinfo.
68081         (ch_strerror): New function.
68082         (last_cherror): New global.
68083         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68084         interface.
68085         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68086         void *.
68087         (freeaddrinfo): Free ai->ai_canonname when set.
68088
68089 2005-09-12  Derek Price  <derek@ximbiot.com>
68090
68091         Make canon-host require getaddrinfo.
68092         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68093         AC_LIBSOURCE canon-host.h.  Call...
68094         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68095         gl_GETADDRINFO.
68096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68097
68098 2005-09-12  Derek Price  <derek@ximbiot.com>
68099
68100         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68101         LGPL.
68102         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68103
68104 2005-09-12  Derek Price  <derek@ximbiot.com>
68105
68106         * lib/gai_strerror.c: Include config.h when available.  Include
68107         getaddrinfo.h before other headers to test interface.
68108         Reported by Larry Jones <lawrence.jones@ugs.com>.
68109
68110 2005-09-12  Derek Price  <derek@ximbiot.com>
68111             Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * modules/glob (Files): Add glob-libc.h.
68114
68115 2005-09-12  Derek Price  <derek@ximbiot.com>
68116             Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68119         glob_.h, glob-libc.h.
68120         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68121
68122 2005-09-12  Derek Price  <derek@ximbiot.com>
68123             Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68126         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68127         protecting things that should be done only in gnulib contexts.
68128         * lib/glob_.h: New file, containing only the glob things needed for
68129         gnulib.
68130         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68131         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68132         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68133         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68134         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68135         and to respect the namespace rules better.
68136
68137 2005-09-08  Simon Josefsson  <jas@extundo.com>
68138
68139         * modules/socklen: New file.
68140
68141 2005-09-08  Simon Josefsson  <jas@extundo.com>
68142
68143         * m4/socklen.m4: New file.
68144
68145 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * modules/utimens (Files): Add m4/utimbuf.m4, since
68148         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68149         Reported by Sergey Poznyakoff.
68150
68151 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68154         definitions, since that's the preferred style in glibc.
68155         Fix a minor spacing issue, and update copyright notice to match
68156         glibc's.
68157
68158 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68159
68160         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68161
68162 2005-09-06  Simon Josefsson  <jas@extundo.com>
68163
68164         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68165         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68166
68167 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68170         warning.
68171
68172 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * config/srclist.txt: Add glibc bug 1302.
68175
68176 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         Change bitset word type from unsigned int to unsigned long int,
68179         as this has better performance on typical 64-bit hosts.
68180         Port bitset code to hosts with unusual word sizes.
68181         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68182         (build_collating_symbol):
68183         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68184         argument is a bitset.  This is merely a style issue, but it makes
68185         it clearer that an entire array is expected.
68186         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68187         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68188         Port to the case where bitset_word is not the same as unsigned int.
68189         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68190         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68191         Likewise.
68192         * lib/regexec.c (check_dst_limits_calc_pos_1,
68193         check_subexp_matching_top):
68194         (build_trtable, group_nodes_into_DFAstates):
68195         Likewise.
68196         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68197         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68198         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68199         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68200         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68201         * lib/regcomp.c (optimize_subexps, lower_subexp):
68202         Work even if bitset_word has holes in its bitwise representation.
68203         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68204         * lib/regexec.c (check_dst_limits_calc_pos_1,
68205         check_subexp_matching_top):
68206         Likewise.
68207         * lib/regex_internal.c (re_string_reconstruct):
68208         Don't assume UCHAR_MAX == 255.
68209         * lib/regex_internal.h (bitset_set_all): Likewise.
68210         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68211         All uses changed.
68212         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68213         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68214         All uses changed.
68215         (BITSET_WORD_MAX): New macro.
68216         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68217         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68218         (bitset_empty, bitset_copy):
68219         Prefer sizeof (bitset) to multiplying it out ourselves.
68220         (bitset_not_merge): Remove; unused.
68221         (bitset_contain): Return bool, not unsigned int with one bit on.
68222         All callers changed.
68223         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68224         alignment than re_node_set; do this by defining a new internal
68225         type struct dests_alloc and using it to allocate memory.
68226
68227 2005-09-05  Bruno Haible  <bruno@clisp.org>
68228
68229         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68230         links.
68231
68232 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68233
68234         * modules/size_max (Makefile.am): Add size_max.h
68235
68236 2005-09-04  Derek Price  <derek@ximbiot.com>
68237
68238         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68239
68240 2005-09-03  Simon Josefsson  <jas@extundo.com>
68241
68242         * gnulib-tool: Fix typo.
68243
68244 2005-09-03  Simon Josefsson  <jas@extundo.com>
68245
68246         * config/srclist.txt: Add glibc bug 1293.
68247
68248 2005-09-03  Derek Price  <derek@ximbiot.com>
68249
68250         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68251         From Larry Jones <lawrence.jones@ugs.com>.
68252
68253 2005-09-02  Simon Josefsson  <jas@extundo.com>
68254
68255         * modules/socklen: New file.
68256
68257 2005-09-02  Simon Josefsson  <jas@extundo.com>
68258
68259         * modules/havelib: New module.
68260
68261         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68262         Use havelib.
68263
68264 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         Check for arithmetic overflow when calculating sizes, to prevent
68267         some buffer-overflow issues.  These patches are conservative, in the
68268         sense that when I couldn't determine whether an overflow was possible,
68269         I inserted a run-time check.
68270         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68271         macros.
68272         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68273         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68274         (re_xnrealloc, re_x2nrealloc): New inline functions.
68275         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68276         parse_bracket_exp):
68277         (build_equiv_class, build_charclass): Check for arithmetic overflow
68278         in size expression calculations.
68279         * lib/regex_internal.c (re_string_realloc_buffers):
68280         (build_wcs_upper_buffer, re_node_set_add_intersect):
68281         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68282         (re_dfa_add_node, register_state): Likewise.
68283         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68284         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68285         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68286         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68287
68288 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68289
68290         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68291         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68292
68293 2005-09-02  Bruno Haible  <bruno@clisp.org>
68294
68295         Support for lib vs. lib64 distinction on biarch platforms.
68296         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68297         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68298         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68299
68300 2005-09-02  Bruno Haible  <bruno@clisp.org>
68301
68302         * gnulib-tool (import): In the other first-use case, provide defaults
68303         as well.
68304
68305 2005-09-02  Bruno Haible  <bruno@clisp.org>
68306
68307         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68308         patches not yet found in the latest gettext release.
68309
68310 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68313         to avoid a collision with bits/local_lim.h in glibc.
68314         All uses changed.  Problem reported by Dmitry V. Levin in
68315         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68316
68317         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68318         bugs in int versus size_t comparisons.
68319         (re_string_context_at): Fix bug where the code assumed that
68320         Idx is signed.
68321
68322         Use bool where appropriate.
68323         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68324         All callers changed.
68325         (calc_eclosure_iter): Likewise, for ROOT arg.
68326         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68327         (build_charclass_op): Likewise, for NON_MATCH arg.
68328         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68329         (re_string_construct_common): Likewise, for ICASE arg.
68330         * lib/regexec.c (re_search_2_stub, re_search_stub):
68331         Likewise, for RET_LEN arg.
68332         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68333         (set_regs): Likewise, for FL_BACKTRACK arg.
68334         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68335         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68336         (calc_eclosure_iter, parse_bracket_exp):
68337         Use bool for internal variables that are booleans.
68338         * lib/regexec.c (re_search_internal, check_matching,
68339         proceed_next_node):
68340         (set_regs, build_sifted_states, sift_states_bkref):
68341         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68342         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68343         (find_collation_sequence_value):
68344         Likewise.
68345         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68346         (re_node_set_compare):
68347         Return bool, not int. All callers changed.
68348         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68349         (build_trtable, check_node_accept): Likewise.
68350         * lib/regex_internal.h: Include stdbool.h.
68351
68352         Fix bugs uncovered when converting to bool.
68353         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68354         failure instead of charging ahead blindly.
68355         * lib/regex_internal.c (register_state): Likewise.
68356         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68357         for freeing internal storage.
68358         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68359         bitset pieces used as boolean, to avoid undefined behavior
68360         on hosts that do int overflow checking.
68361
68362 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * config/srclist.txt: Add glibc bugs 1285-1287.
68365
68366 2005-09-01  Jim Meyering  <jim@meyering.net>
68367
68368         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68369         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68370         Require gl_STAT_MACROS, too.
68371
68372 2005-09-01  Bruno Haible  <bruno@clisp.org>
68373
68374         * gnulib-tool (import): In the first-use case, provide defaults.
68375
68376 2005-09-01  Bruno Haible  <bruno@clisp.org>
68377
68378         * gnulib-tool (func_import): Remove the .tmp files.
68379
68380 2005-09-01  Bruno Haible  <bruno@clisp.org>
68381
68382         * gnulib-tool (func_import): Fix handling of symbolic links.
68383
68384 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68387         old glibc regex code mishandles strings longer than 2**31 bytes.
68388         This patch fixes this when the regex code is used in gnulib
68389         (i.e., outside glibc).
68390
68391         This patch should not affect the use of the regex code inside
68392         glibc.  No doubt this problem also needs to be handled for glibc
68393         as well, but the result will be an incompatible change to the
68394         glibc ABI, and the old ABI will have to be supported too.  That
68395         can be the the subject for another patch.
68396
68397         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68398         governing whether the rest of this patch is active.  By default,
68399         the macro is disabled and the patch has no effect.
68400         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68401         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68402         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68403         (re_match_2, re_set_registers): Use the new types.
68404         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68405         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68406         New macros.
68407         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68408         (re_string_context_at, bin_tree_t, re_dfastate_t):
68409         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68410         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68411         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68412         (re_string_char_size_at, re_string_wchar_at):
68413         (re_string_elem_size_at):
68414         Use the new types and macros to port to 64-bit hosts.
68415         Use unsigned types for internal values, so that the code
68416         mostly works even for arrays larger than SSIZE_MAX.
68417         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68418         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68419         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68420         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68421         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68422         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68423         (calc_inveclosure, parse_dup_op, build_range_exp):
68424         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68425         (fetch_number, create_token_tree, mark_opt_subexp):
68426         Likewise.
68427         * lib/regex_internal.c (re_string_construct_common,
68428         create_ci_newstate):
68429         (create_cd_newstate, re_string_allocate, re_string_construct):
68430         (re_string_realloc_buffers, build_wcs_upper_buffer):
68431         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68432         (re_string_reconstruct, re_string_peek_byte_case):
68433         (re_string_fetch_byte_case, re_string_context_at):
68434         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68435         (re_node_set_init_copy, re_node_set_add_intersect):
68436         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68437         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68438         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68439         (re_acquire_state, re_acquire_state_context, register_state):
68440         Likewise.
68441         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68442         search_cur_bkref_entry):
68443         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68444         (re_search_internal, re_search_2_stub, re_search_stub)
68445         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68446         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68447         (update_cur_sifted_state, check_dst_limits):
68448         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68449         (check_subexp_limits, sift_states_bkref, merge_state_array):
68450         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68451         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68452         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68453         (expand_bkref_cache, check_node_accept_bytes):
68454         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68455         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68456         (acquire_init_state_context, check_halt_node_context):
68457         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68458         (sift_states_backward, clean_state_log_if_needed):
68459         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68460         (find_recover_state, transit_state_sb, transit_state_mb):
68461         (transit_state_bkref, build_trtable, match_ctx_clean):
68462         Likewise.
68463         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68464         to work around an assumption that REG_MISSING is negative.
68465
68466         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68467         (seek_collating_symbol_entry) [defined _LIBC]:
68468         (lookup_collation_sequence_value) [defined _LIBC]:
68469         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68470         Use prototypes rather than old-style function definitions.
68471         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68472         (transit_state_sb) [0]:
68473         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68474
68475         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68476         rm_eo.
68477
68478         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68479         (optimize_subexps, lower_subexp):
68480         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68481         since the signed shift might overflow.  Use 1u<<31 instead.
68482         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68483         Likewise.
68484         * lib/regexec.c (check_dst_limits_calc_pos_1,
68485         check_subexp_matching_top): Likewise.
68486
68487         * lib/regcomp.c (optimize_subexps, lower_subexp):
68488         Use CHAR_BIT rather than 8, for clarity.
68489         * lib/regexec.c (check_dst_limits_calc_pos_1):
68490         (check_subexp_matching_top): Likewise.
68491         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68492         have to worry about portability issues when shifting it left.
68493         Remove no-longer-needed test for table_size > 0.
68494         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68495         in a word, as the resulting behavior is undefined.
68496         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68497         in one case, a <= should have been an <, and in another case the
68498         whole test was missing.
68499         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68500         the standard name CHAR_BIT.
68501         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68502         this is not true on one's complement and signed-magnitude hosts.
68503
68504         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68505         next_last_offset.
68506         (struct re_dfa_t): Remove unused member states_alloc.
68507         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68508
68509 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68512         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68513         and large-file glibc and in 32-bit large-file Solaris.
68514
68515 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68518         lengths fit in regoff_t; this isn't true if regoff_t is the same
68519         width as size_t.
68520         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68521         (= START + RANGE) instead of RANGE.  This avoids overflow
68522         problems when regoff_t is the same width as size_t.
68523         All callers changed.
68524         (re_search_2_stub): Check for overflow when adding the
68525         sizes of the two strings.
68526         (re_search_stub): Check for overflow when adding START
68527         to RANGE; if it occurs, substitute the extreme value.
68528
68529 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68532
68533 2005-08-31  Jim Meyering  <jim@meyering.net>
68534
68535         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68536         a pointer-to-const.
68537         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68538         (register_state): Likewise.
68539         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68540         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68541         (group_nodes_into_DFAstates): Likewise.
68542
68543 2005-08-31  Jim Meyering  <jim@meyering.net>
68544
68545         * check-module: Add a FIXME comment.
68546
68547 2005-08-31  Eric Blake  <ebb9@byu.net>
68548
68549         * modules/unistd-safer (Files): Add unistd--.h.
68550         * modules/stdio-safer (Files): Add stdio--.h.
68551
68552 2005-08-31  Derek Price  <derek@ximbiot.com>
68553
68554         * lib/getdelim.c (getdelim): Return EOF on EOF.
68555         Reported by Larry Jones <lawrence.jones@ugs.com>.
68556
68557 2005-08-31  Bruno Haible  <bruno@clisp.org>
68558
68559         Avoid unnecessary diffs in the generated lib/Makefile.am.
68560         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68561         the generated files.
68562         (func_import): Don't set cmd.
68563
68564 2005-08-31  Bruno Haible  <bruno@clisp.org>
68565
68566         * lib/strstr.c: Include <stddef.h>, for NULL.
68567         * lib/strcasestr.c: Likewise.
68568         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68569
68570 2005-08-31  Bruno Haible  <bruno@clisp.org>
68571
68572         * gnulib-tool: New option --macro-prefix.
68573         (func_import): Use macro_prefix.
68574         (import): Handle option --macro-prefix.
68575
68576 2005-08-31  Bruno Haible  <bruno@clisp.org>
68577
68578         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68579         Also use new variables cached_lgpl, cached_libtool.
68580
68581 2005-08-31  Bruno Haible  <bruno@clisp.org>
68582
68583         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68584         always instantiating them.
68585
68586 2005-08-31  Bruno Haible  <bruno@clisp.org>
68587
68588         * gnulib-tool (func_import): Read the previous cached settings
68589         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68590         earlier added by gnulib but are now dropped. Warn when a gnulib file
68591         overwrites a non-gnulib file.
68592
68593 2005-08-31  Bruno Haible  <bruno@clisp.org>
68594
68595         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68596         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68597         projects that don't keep autogenerated files in CVS. Put into
68598         actioncmd only the specified modules, not the transitive closure.
68599
68600 2005-08-31  Bruno Haible  <bruno@clisp.org>
68601
68602         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68603         Create directories that shall be filled.
68604         (import): Don't look for gl_* macros in configure.ac. Recurse across
68605         all directories containing a gnulib-cache.m4 files, if meaningful.
68606
68607 2005-08-31  Bruno Haible  <bruno@clisp.org>
68608
68609         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68610         (import): Set seen_libtool when we see gl_LIBTOOL.
68611
68612 2005-08-31  Bruno Haible  <bruno@clisp.org>
68613
68614         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68615         declaration macro definitions from generated gnulib.m4.
68616
68617 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68618
68619         * lib/iconvme.h: Add prototype for iconv_alloc.
68620
68621 2005-08-29  Simon Josefsson  <jas@extundo.com>
68622
68623         * lib/iconvme.c: Fix errno.
68624
68625 2005-08-29  Bruno Haible  <bruno@clisp.org>
68626
68627         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68628         that it works when the directory contains spaces.
68629
68630 2005-08-29  Bruno Haible  <bruno@clisp.org>
68631
68632         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68633
68634 2005-08-29  Bruno Haible  <bruno@clisp.org>
68635
68636         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68637         Emit more advice.
68638
68639 2005-08-29  Bruno Haible  <bruno@clisp.org>
68640         and Stepan Kasal  <kasal@ucw.cz>
68641
68642         * check-module: If more parameters are given, check each of them
68643         separately; add more exceptions, as noted by Jim Meyering.
68644         (check_module): New procedure.
68645         (%exempt_header): Now contains all exceptions.
68646
68647 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68648
68649         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68650
68651 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68652
68653         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68654
68655 2005-08-28  Bruno Haible  <bruno@clisp.org>
68656
68657         * m4/gnulib-tool.m4: New file.
68658
68659 2005-08-27  Jim Meyering  <jim@meyering.net>
68660
68661         * modules/unistd-safer (Files): Add pipe-safer.c.
68662         * modules/fcntl-safer (Files): Add creat-safer.c.
68663
68664 2005-08-27  Jim Meyering  <jim@meyering.net>
68665
68666         * m4/stdlib-safer.m4: New file.  From coreutils.
68667         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68668         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68669         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68670         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68671         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68672
68673 2005-08-27  Jim Meyering  <jim@meyering.net>
68674
68675         * lib/fopen-safer.c: Merge minor changes from coreutils.
68676         * lib/dup-safer.c: Likewise.
68677         * lib/fd-safer.c: Likewise.
68678
68679         Merge from coreutils.
68680         * lib/stdio--.h: New file.
68681         * lib/stdlib--.h: New file.
68682         * lib/mkstemp-safer.c: New file.
68683
68684         GNU tar needs these.
68685         * lib/pipe-safer.c: New file.
68686         * lib/creat-safer.c: New file.
68687         * lib/fcntl--.h (creat): Define to creat_safer.
68688         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68689         * lib/unistd--.h (pipe): Define to pipe_safer.
68690         * lib/unistd-safer.h: Declare pipe_safer.
68691
68692 2005-08-26  Simon Josefsson  <jas@extundo.com>
68693
68694         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68695         Haible <bruno@clisp.org>.
68696
68697 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * lib/regex_internal.h: Remove all references to
68700         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68701         or better.
68702         (bitset_not, bitset_merge, bitset_not_merge):
68703         (bitset_mask, re_string_allocate, re_string_construct):
68704         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68705         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68706         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68707         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68708         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68709         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68710         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68711         (re_acquire_state_context):
68712         Remove unnecessary forward decls.
68713         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68714         Put __attribute at function definition,
68715         now that the function decl has been removed.
68716         * lib/regex_internal.c (re_string_peek_byte_case):
68717         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68718         Likewise.
68719
68720 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68721
68722         * m4/regex.m4: Add AC_PREREQ(2.50).
68723         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68724
68725 2005-08-25  Simon Josefsson  <jas@extundo.com>
68726
68727         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68728         __fsetlocking.
68729
68730 2005-08-25  Simon Josefsson  <jas@extundo.com>
68731
68732         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68733         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68734         GLIBC specific code.
68735
68736 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         Make regex safe for g++.  This fixes one real bug (an "err"
68739         that should have been "*err").  g++ problem reported by
68740         Sam Steingold.
68741         * lib/regex_internal.h (re_calloc): New macro, consistent with
68742         re_malloc etc.  All callers of calloc changed to use re_calloc.
68743         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68744         not int.  All callers changed.
68745         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68746         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68747         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68748         (find_recover_state): Change "err" to "*err"; this fixes what
68749         appears to be a real bug.
68750         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68751         versus int.
68752
68753 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * modules/regex (Depends-on): Add malloc, since the code
68756         assumes that !malloc(0) means failure.
68757
68758 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68761
68762         alloca modernization/simplification for regex.
68763         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68764         needs to be at the start of the file, and can be moved into
68765         regex_internal.h and simplified.
68766         * lib/regex_internal.h: Include <alloca.h>.
68767         (__libc_use_alloca) [!defined _LIBC]: New macro.
68768         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68769         now works outside glibc.
68770
68771 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         * config/srclist.txt: Add glibc bugs 1241, 1245.
68774
68775 2005-08-25  Jim Meyering  <jim@meyering.net>
68776
68777         * lib/open-safer.c: Include <config.h>.
68778         Otherwise, we'd lose LARGEFILE support in any file using
68779         e.g. "fcntl--.h"
68780
68781 2005-08-25  Bruno Haible  <bruno@clisp.org>
68782
68783         * m4/minmax.m4: Require autoconf 2.52.
68784         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68785         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68786         alternatives of translit over the alphabet.
68787         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68788
68789 2005-08-24  Simon Josefsson  <jas@extundo.com>
68790
68791         * tests/test-getpass.c: New file.
68792
68793 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68796         for GNU regex features.
68797
68798 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68801         * lib/regex.h (regerror): Likewise.
68802
68803         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68804         requires this.  (The code never needed it.)
68805
68806         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68807         All uses of recently-renamed identifiers changed to use the new,
68808         POSIX-compliant names.  The code will build and run just fine
68809         without these changes, but it's better to eat our own dog food
68810         and use the standard-conforming names.
68811
68812         * lib/regex.h: Fix a multitude of POSIX name space violations.
68813         These changes have an effect only for programs that define
68814         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68815         do not change anything for programs compiled in the normal way.
68816         Also, there is no effect on the ABI.
68817
68818         (_REGEX_SOURCE): New macro.
68819         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68820         defined and _GNU_SOURCE is not; this fixes a name space violation.
68821
68822         Rename the following macros to obey POSIX requirements.
68823         The old names are still visible as macros if _REGEX_SOURCE is defined.
68824         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68825         RE_BACKSLASH_ESCAPE_IN_LISTS.
68826         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68827         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68828         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68829         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68830         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68831         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68832         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68833         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68834         (REG_INTERVALS): renamed from RE_INTERVALS.
68835         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68836         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68837         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68838         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68839         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68840         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68841         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68842         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68843         RE_UNMATCHED_RIGHT_PAREN_ORD.
68844         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68845         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68846         (REG_DEBUG): renamed from RE_DEBUG.
68847         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68848         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68849         unusual, since we can't clash with the POSIX REG_ICASE.
68850         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68851         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68852         (REG_NO_SUB): renamed from RE_NO_SUB.
68853         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68854         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68855         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68856         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68857         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68858         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68859         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68860         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68861         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68862         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68863         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68864         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68865         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68866         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68867         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68868         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68869         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68870         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68871         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68872         (REG_FIXED): Renamed from REGS_FIXED.
68873         (REG_NREGS): Renamed from RE_NREGS.
68874
68875         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68876         of other REG_* macros, since POSIX says the user is allowed to
68877         #undef these macros selectively.
68878
68879         (reg_errcode_t): Update comment stating what other tables need
68880         to be consistent.
68881
68882         Rename the following enum values to obey POSIX requirements.
68883         The old names are still visible as macros.
68884         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68885         is not defined, since GNU is supposed to be a superset of POSIX as
68886         much as possible, and since we want reg_errcode_t to be a signed
68887         type for implementation consistency.
68888         (_REG_NOERROR): Renamed from REG_NOERROR.
68889         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68890         (_REG_BADPAT): Renamed from REG_BADPAT.
68891         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68892         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68893         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68894         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68895         (_REG_EBRACK): Renamed from REG_EBRACK.
68896         (_REG_EPAREN): Renamed from REG_EPAREN.
68897         (_REG_EBRACE): Renamed from REG_EBRACE.
68898         (_REG_BADBR): Renamed from REG_BADBR.
68899         (_REG_ERANGE): Renamed from REG_ERANGE.
68900         (_REG_ESPACE): Renamed from REG_ESPACE.
68901         (_REG_BADRPT): Renamed from REG_BADRPT.
68902         (_REG_EEND): Renamed from REG_EEND.
68903         (_REG_ESIZE): Renamed from REG_ESIZE.
68904         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68905         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68906         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68907         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68908         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68909
68910         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68911         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68912         changed.  But support the old name if the new one is not defined
68913         and if _REGEX_SOURCE.
68914
68915         Change the following member names in struct re_pattern_buffer.
68916         The old names are still supported if !_REGEX_SOURCE.
68917         The new names are always supported, regardless of _REGEX_SOURCE.
68918         (re_buffer): Renamed from buffer.
68919         (re_allocated): Renamed from allocated.
68920         (re_used): Renamed from used.
68921         (re_syntax): Renamed from syntax.
68922         (re_fastmap): Renamed from fastmap.
68923         (re_translate): Renamed from translate.
68924         (re_can_be_null): Renamed from can_be_null.
68925         (re_regs_allocated): Renamed from regs_allocated.
68926         (re_fastmap_accurate): Renamed from fastmap_accurate.
68927         (re_no_sub): Renamed from no_sub.
68928         (re_not_bol): Renamed from not_bol.
68929         (re_not_eol): Renamed from not_eol.
68930         (re_newline_anchor): Renamed from newline_anchor.
68931
68932         Change the following member names in struct re_registers.
68933         The old names are still supported if !_REGEX_SOURCE.
68934         The new names are always supported, regardless of _REGEX_SOURCE.
68935         (rm_num_regs): Renamed from num_regs.
68936         (rm_start): Renamed from start.
68937         (rm_end): Renamed from end.
68938
68939         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68940         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68941         Prepend __ to parameter names.
68942
68943         Undo yesterday's changes.
68944
68945 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68948         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68949         lib/regex.c.
68950
68951 2005-08-24  Jim Meyering  <jim@meyering.net>
68952
68953         Sync from coreutils.
68954         * m4/fcntl-safer.m4: New file.
68955
68956         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68957         and object files for this module.
68958
68959 2005-08-24  Jim Meyering  <jim@meyering.net>
68960
68961         Sync from coreutils.
68962         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68963
68964 2005-08-24  Jim Meyering  <jim@meyering.net>
68965
68966         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68967         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68968
68969 2005-08-24  Jim Meyering  <jim@meyering.net>
68970
68971         * modules/fcntl-safer: New module.
68972         * modules/fts (Depends-on): Add fcntl-safer.
68973         * MODULES.html.sh (File descriptor based Input/Output):
68974         Add fcntl-safer.
68975
68976 2005-08-24  Bruno Haible  <bruno@clisp.org>
68977
68978         Support for unit test modules.
68979         * modules/README: Mention tests modules.
68980         * modules/TEMPLATE-TESTS: New file.
68981         * gnulib-tool: New options --extract-tests-module, --with-tests and
68982         --tests-base (unused for the moment).
68983         (testsbase, inctests): New variables.
68984         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68985         (func_verify_module): Exclude TEMPLATE-TESTS.
68986         (func_verify_nontests_module, func_verify_tests_module): New functions.
68987         (func_get_dependencies): Add implicit dependency for tests modules.
68988         (func_get_tests_module): New function.
68989         (func_modules_transitive_closure): When --with-tests was specified,
68990         include the unit tests as well, unless explicitly avoided.
68991         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68992         (func_emit_tests_Makefile_am): New function.
68993         (func_create_testdir): When --with-tests was specified, emit a
68994         tests/ directory.
68995         * MODULES.html.sh (Future developments): Update.
68996
68997 2005-08-24  Bruno Haible  <bruno@clisp.org>
68998
68999         * modules/tls-tests: New file.
69000         * tests/test-tls.c: New file, from GNU gettext.
69001
69002 2005-08-24  Bruno Haible  <bruno@clisp.org>
69003
69004         * modules/lock-tests: New file.
69005         * tests/test-lock.c: New file, from GNU gettext.
69006
69007 2005-08-24  Bruno Haible  <bruno@clisp.org>
69008
69009         * lib/lock.h: Add multiple inclusion guard.
69010         * lib/tls.h: Add multiple inclusion guard.
69011
69012 2005-08-24  Bruno Haible  <bruno@clisp.org>
69013
69014         * gnulib-tool: Add support for the --aux-dir option to
69015         --create-testdir, --create-megatestdir, --test, --megatest.
69016         (func_create_testdir, func_create_megatestdir): Optionally emit a
69017         AC_CONFIG_AUX_DIR directive.
69018         (create-testdir, create-megatestdir, test, megatest): Provide a
69019         default value for $auxdir.
69020
69021 2005-08-24  Bruno Haible  <bruno@clisp.org>
69022
69023         * gnulib-tool (import): Use compound statement instead of subshell
69024         where possible.
69025
69026 2005-08-24  Bruno Haible  <bruno@clisp.org>
69027
69028         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69029
69030 2005-08-24  Bruno Haible  <bruno@clisp.org>
69031
69032         * gnulib-tool (func_version): Update.
69033
69034 2005-08-24  Bruno Haible  <bruno@clisp.org>
69035
69036         * gnulib-tool (func_import, func_create_testdir,
69037         func_create_megatestdir): Quote all autoconf macro arguments.
69038
69039 2005-08-24  Bruno Haible  <bruno@clisp.org>
69040
69041         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69042         option --force, because --force causes the aclocal.m4 of each
69043         subdirectory to be newer than the corresponding config.h.in.
69044
69045 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69048         All contents moved to gl_REGEX.
69049         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69050         assume that it does.
69051
69052 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * lib/regex.h (REG_NOSYS)
69055         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69056         Define, since POSIX requires it as of 2001.
69057         (_REG_ENOSYS)
69058         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69059         New private symbol, used to keep the enum signed in all cases.
69060         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69061         Youngman in
69062         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69063
69064         * lib/regex_internal.c (re_string_skip_chars, register_state):
69065         (calc_state_hash):
69066         Remove forward decls; no longer needed now that we use prototypes.
69067         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69068         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69069         (clean_state_log_if_needed): Likewise.
69070
69071 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69072
69073         * config/srclist.txt: Add glibc bugs 1231-1233.
69074
69075 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         Fix problems reported by Sam Steingold in
69078         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69079         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69080         assumed that reg_errcode_t is a signed type, which is not
69081         necessarily true if _XOPEN_SOURCE is not defined.
69082         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69083         since some compilers warn about it otherwise.
69084
69085 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69088         (init_word_char, create_initial_state, duplicate_node_closure):
69089         (fetch_token, peek_token_bracket, build_range_exp):
69090         (build_collating_symbol): Remove forward decls; no longer needed
69091         now that we use prototypes.
69092
69093         * lib/regcomp.c:
69094         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69095         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69096         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69097         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69098         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69099         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69100         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69101         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69102         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69103         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69104         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69105         (build_charclass, build_charclass_op, fetch_number, create_tree):
69106         (create_token_tree, mark_opt_subexp, duplicate_tree):
69107         Use prototypes rather than old-style definitions.
69108
69109         * lib/regex_internal.c:
69110         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69111         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69112         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69113         (re_string_reconstruct, re_string_peek_byte_case):
69114         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69115         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69116         (re_node_set_init_copy, re_node_set_add_intersect):
69117         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69118         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69119         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69120         (re_acquire_state, re_acquire_state_context, register_state):
69121         (create_ci_newstate, create_cd_newstate, free_state):
69122         Likewise.
69123         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69124         re_search_2):
69125         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69126         (re_search_internal, prune_impossible_nodes):
69127         (acquire_init_state_context, check_matching, static):
69128         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69129         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69130         (update_regs, sift_states_backward, build_sifted_states):
69131         (clean_state_log_if_needed, merge_state_array):
69132         (update_cur_sifted_state, add_epsilon_src_nodes):
69133         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69134         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69135         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69136         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69137         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69138         (check_arrival, check_arrival_add_next_nodes):
69139         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69140         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69141         (check_node_accept_bytes, check_node_accept, extend_buffers):
69142         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69143         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69144         (sift_ctx_init):
69145         Likewise.
69146
69147         * lib/regex_internal.h:
69148         (re_string_allocate, re_string_construct, re_string_reconstruct):
69149         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69150         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69151         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69152         (re_string_context_at, re_string_peek_byte_case):
69153         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69154         is defined, since we now use prototypes always.
69155
69156         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69157         C89 or better.  All uses removed.
69158
69159 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * config/srclist.txt: Add glibc bugs 1220-1227.
69162
69163 2005-08-20  Jim Meyering  <jim@meyering.net>
69164
69165         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69166         of unused local, dfa.
69167
69168 2005-08-20  Bruno Haible  <bruno@clisp.org>
69169
69170         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69171
69172 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69175         (re_node_set_insert_last, re_dfa_add_node):
69176         Rename local variables to avoid GCC shadowing warnings.
69177
69178 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69181         [defined lint]: Suppress bogus uninitialized-variable warnings.
69182
69183         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69184         and let the caller return REG_ESPACE if out of space.  This
69185         removes an uninitialied-variable warning with GCC 4.0.1, and also
69186         avoids taking the address of a local variable.  All callers
69187         changed.
69188
69189 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69190
69191         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69192         $LIBCSRC/posix/regexec.c.
69193         Add glibc bug 1217 for regcomp.c.
69194
69195 2005-08-19  Jim Meyering  <jim@meyering.net>
69196
69197         * lib/regexec.c (proceed_next_node): Redo local variables to
69198         avoid GCC shadowing warnings.
69199
69200 2005-08-18  Bruno Haible  <bruno@clisp.org>
69201
69202         * lib/strstr.c (strstr): Fix return value in multibyte case.
69203         * lib/strcasestr.c (strcasestr): Likewise.
69204
69205 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69208
69209 2005-08-17  Jim Meyering  <jim@meyering.net>
69210
69211         Make the %s format (seconds since the epoch) work for a negative
69212         number and when used with a zero-padded field width, e.g. %015s.
69213
69214         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69215         label so that it precedes the code to set `digits'.  Otherwise,
69216         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69217         print `00-22'.  Now, it prints `-0022', as it should.
69218
69219 2005-08-17  Bruno Haible  <bruno@clisp.org>
69220
69221         * modules/strstr (Files): Add m4/mbrtowc.m4.
69222         (Depends-on): Add mbuiter.
69223
69224 2005-08-17  Bruno Haible  <bruno@clisp.org>
69225
69226         * modules/strcasestr: New file.
69227         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69228         strcasestr.
69229
69230 2005-08-17  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69233
69234 2005-08-17  Bruno Haible  <bruno@clisp.org>
69235
69236         * modules/mbuiter: New file.
69237         * MODULES.html.sh (Extended multibyte and wide character utilities):
69238         Add mbuiter.
69239
69240 2005-08-17  Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69243         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69244
69245 2005-08-17  Bruno Haible  <bruno@clisp.org>
69246
69247         * m4/strcasestr.m4: New file.
69248
69249 2005-08-17  Bruno Haible  <bruno@clisp.org>
69250
69251         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69252         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69253
69254 2005-08-17  Bruno Haible  <bruno@clisp.org>
69255
69256         * lib/strcasestr.h: New file.
69257         * lib/strcasestr.c: New file.
69258
69259 2005-08-17  Bruno Haible  <bruno@clisp.org>
69260
69261         * lib/strcasecmp.c: Use mbuiter.h.
69262
69263 2005-08-17  Bruno Haible  <bruno@clisp.org>
69264
69265         * lib/mbuiter.h: New file.
69266
69267 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69268
69269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69270         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69271         and gl_GETOPT are both invoked via different paths (as happens
69272         with GNU tar CVS because it uses both argp and getopt), the former
69273         wins.
69274
69275 2005-08-16  Bruno Haible  <bruno@clisp.org>
69276
69277         * modules/tls: New file.
69278         * MODULES.html.sh (Multithreading): Add tls.
69279
69280 2005-08-16  Bruno Haible  <bruno@clisp.org>
69281
69282         * modules/strnlen1: New file.
69283         * MODULES.html.sh (String handling): Add strnlen1.
69284
69285 2005-08-16  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/strcase (Files): Add m4/mbrtowc.m4.
69288         (Depends-on): Add strnlen1, mbchar.
69289
69290 2005-08-16  Bruno Haible  <bruno@clisp.org>
69291
69292         * modules/mbiter: New file.
69293         * MODULES.html.sh (Extended multibyte and wide character utilities):
69294         Add mbiter.
69295
69296 2005-08-16  Bruno Haible  <bruno@clisp.org>
69297
69298         * modules/mbfile: New file.
69299         * MODULES.html.sh (Extended multibyte and wide character utilities):
69300         Add mbfile.
69301
69302 2005-08-16  Bruno Haible  <bruno@clisp.org>
69303
69304         * modules/mbchar: New file.
69305         * MODULES.html.sh (Extended multibyte and wide character utilities):
69306         New section.
69307
69308 2005-08-16  Bruno Haible  <bruno@clisp.org>
69309
69310         * m4/tls.m4: New file, from GNU gettext.
69311
69312 2005-08-16  Bruno Haible  <bruno@clisp.org>
69313
69314         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69315         always.
69316         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69317
69318 2005-08-16  Bruno Haible  <bruno@clisp.org>
69319
69320         * m4/mbiter.m4: New file.
69321
69322 2005-08-16  Bruno Haible  <bruno@clisp.org>
69323
69324         * m4/mbfile.m4: New file.
69325
69326 2005-08-16  Bruno Haible  <bruno@clisp.org>
69327
69328         * m4/mbchar.m4: New file.
69329
69330 2005-08-16  Bruno Haible  <bruno@clisp.org>
69331
69332         * lib/tls.h: New file, from GNU gettext.
69333         * lib/tls.c: New file, from GNU gettext.
69334
69335 2005-08-16  Bruno Haible  <bruno@clisp.org>
69336
69337         * lib/strnlen1.h: New file.
69338         * lib/strnlen1.c: New file.
69339
69340 2005-08-16  Bruno Haible  <bruno@clisp.org>
69341
69342         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69343         (mbi_init): Update.
69344         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69345         NUL byte, not after it.
69346
69347 2005-08-16  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/strcase.h (strcasecmp): Add note in comments.
69350         * lib/strncasecmp.c: Use code from strcasecmp.c.
69351         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69352         (strcasecmp): Work correctly in multibyte locales.
69353
69354 2005-08-16  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/mbiter.h: New file.
69357
69358 2005-08-16  Bruno Haible  <bruno@clisp.org>
69359
69360         * lib/mbfile.h: New file.
69361
69362 2005-08-16  Bruno Haible  <bruno@clisp.org>
69363
69364         * lib/mbchar.h: New file.
69365         * lib/mbchar.c: New file.
69366
69367 2005-08-16  Bruno Haible  <bruno@clisp.org>
69368
69369         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69370         the valid ones. Makes the comparison operations transitive:
69371         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69372         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69373
69374 2005-08-15  Simon Josefsson  <jas@extundo.com>
69375
69376         * modules/ssize_t (License): Change to 'unlimited'.
69377
69378         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69379
69380 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69383         Add comments for each pending glibc patch.
69384
69385 2005-08-15  Bruno Haible  <bruno@clisp.org>
69386
69387         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69388         __cplusplus is defined.
69389
69390 2005-08-14  Jim Meyering  <jim@meyering.net>
69391
69392         Sync from coreutils.
69393
69394         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69395         Use the hash-table-based cycle-detection code not just when
69396         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69397         Reported by James Youngman in
69398         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69399         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69400         FTS_TIGHT_CYCLE_CHECK.
69401         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69402         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69403         once again.
69404         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69405         * lib/fts.c (fd_safer): Remove decl.
69406         Include fcntl--.h rather than unistd-safer.h
69407         (fts_safe_changedir): Don't call fd_safer; no longer needed
69408         now that we include fcntl--.h.
69409
69410 2005-08-12  Simon Josefsson  <jas@extundo.com>
69411
69412         * modules/getndelim2: Use ssize_t module.
69413         * modules/getnline: Likewise.
69414         * modules/safe-read: Likewise.
69415         * modules/xreadlink: Likewise.
69416
69417         * modules/ssize_t: New file.
69418
69419 2005-08-12  Simon Josefsson  <jas@extundo.com>
69420
69421         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69422
69423 2005-08-12  Simon Josefsson  <jas@extundo.com>
69424
69425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69426         ssize_t.
69427
69428 2005-08-12  Simon Josefsson  <jas@extundo.com>
69429
69430         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69431         readline, getdelim and check_version.
69432         (Support for systems lacking ISO C 99: Sizes of integer types):
69433         Add size_max.
69434
69435 2005-08-12  Bruno Haible  <bruno@clisp.org>
69436
69437         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69438
69439 2005-08-11  Simon Josefsson  <jas@extundo.com>
69440
69441         * modules/readline: New file.
69442
69443         * modules/strnlen (Files): Add strnlen.h.
69444
69445 2005-08-11  Simon Josefsson  <jas@extundo.com>
69446
69447         * m4/readline.m4: New file.
69448
69449 2005-08-11  Simon Josefsson  <jas@extundo.com>
69450
69451         * lib/readline.h, readline.c: New file.
69452
69453 2005-08-11  Simon Josefsson  <jas@extundo.com>
69454
69455         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69456         gl_AVOID.
69457
69458 2005-08-11  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69461
69462 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69463
69464         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69465
69466 2005-08-10  Simon Josefsson  <jas@extundo.com>
69467
69468         * tests/test-iconvme.c: New file.
69469
69470 2005-08-10  Simon Josefsson  <jas@extundo.com>
69471
69472         * m4/strnlen.m4: New file.
69473
69474         * m4/strndup.m4: Don't check for strnlen declaration, done in
69475         strnlen.m4.
69476
69477 2005-08-10  Simon Josefsson  <jas@extundo.com>
69478
69479         * lib/strndup.c: Use strnlen.h.
69480
69481         * lib/strnlen.h: New file.
69482
69483 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69484
69485         * README: Typos.
69486
69487 2005-08-02  Simon Josefsson  <jas@extundo.com>
69488
69489         * modules/readline: New file.
69490
69491 2005-08-02  Simon Josefsson  <jas@extundo.com>
69492
69493         * modules/getdelim: New file.
69494
69495         * modules/getline: Rewrite, don't use getndelim2.
69496
69497 2005-08-02  Simon Josefsson  <jas@extundo.com>
69498
69499         * m4/getline.m4: Separate out getdelim stuff into separate module.
69500
69501         * m4/getdelim.m4: New file.
69502
69503 2005-08-02  Simon Josefsson  <jas@extundo.com>
69504
69505         * lib/getline.h, getline.c: Rewrite.
69506
69507         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69508
69509 2005-07-31  Bruno Haible  <bruno@clisp.org>
69510
69511         * lib/lock.h (gl_lock_initializer): New macro.
69512         (gl_lock_define_initialized): Use it.
69513         (gl_rwlock_initializer): New macro.
69514         (gl_rwlock_define_initialized): Use it.
69515         (gl_recursive_lock_initializer): New macro.
69516         (gl_recursive_lock_define_initialized): Use it.
69517
69518 2005-07-30  Karl Berry  <karl@gnu.org>
69519
69520         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69521         Report from Ben Pfaff, regarding getopt.
69522
69523 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69526         normal way.
69527         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69528         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69529         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69530         (gl_GETOPT): Use the new macros.  Most of the implementation
69531         is moved to the new macros.  This is for programs like Emacs
69532         that don't want all the functionality of gl_GETOPT.
69533
69534 2005-07-26  Bruno Haible  <bruno@clisp.org>
69535
69536         * m4/lock.m4: Update from GNU gettext.
69537
69538 2005-07-26  Bruno Haible  <bruno@clisp.org>
69539
69540         * lib/lock.h: Update from GNU gettext.
69541         * lib/lock.c: Update from GNU gettext.
69542
69543 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69546         obsolescent AC_TRY_RUN.  Include the default includes files, for
69547         'exit'.
69548
69549 2005-07-24  Bruno Haible  <bruno@clisp.org>
69550
69551         * modules/visibility: New file.
69552         * MODULES.html.sh (Misc): Add visibility.
69553
69554 2005-07-24  Bruno Haible  <bruno@clisp.org>
69555
69556         * m4/visibility.m4: New file.
69557
69558 2005-07-24  Bruno Haible  <bruno@clisp.org>
69559
69560         * doc/visibility.texi: New file.
69561
69562 2005-07-22  Bruno Haible  <bruno@clisp.org>
69563
69564         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69565         $(ALLOCA_H), redundant through BUILT_SOURCES.
69566         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69567         redundant through BUILT_SOURCES.
69568         * modules/byteswap (Makefile.am): Remove explicit dependency on
69569         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69570         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69571         $(FNMATCH_H), redundant through BUILT_SOURCES.
69572         * modules/getopt (Makefile.am): Remove explicit dependency on
69573         $(GETOPT_H), redundant through BUILT_SOURCES.
69574         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69575         redundant through BUILT_SOURCES.
69576         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69577         redundant through BUILT_SOURCES.
69578         * modules/stdbool (Makefile.am): Remove explicit dependency on
69579         $(STDBOOL_H), redundant through BUILT_SOURCES.
69580         * modules/stdint (Makefile.am): Remove explicit dependency on
69581         $(STDINT_H), redundant through BUILT_SOURCES.
69582         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69583         Remove explicit dependency on $(SYSEXITS_H).
69584         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69585
69586 2005-07-18  Simon Josefsson  <jas@extundo.com>
69587
69588         * lib/check-version.c (check_version): Accept identical versions too.
69589
69590 2005-07-18  Bruno Haible  <bruno@clisp.org>
69591
69592         * modules/lock: New file.
69593         * MODULES.html.sh (Multithreading): New section.
69594
69595 2005-07-18  Bruno Haible  <bruno@clisp.org>
69596
69597         * m4/lock.m4: New file, from GNU gettext.
69598
69599 2005-07-18  Bruno Haible  <bruno@clisp.org>
69600
69601         * lib/lock.h: New file, from GNU gettext.
69602         * lib/lock.c: New file, from GNU gettext.
69603
69604 2005-07-18  Bruno Haible  <bruno@clisp.org>
69605
69606         * lib/lock.h (gl_once_t): New type.
69607         (gl_once_define, gl_once): New macros.
69608         * lib/lock.c (fresh_once): New variable.
69609         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69610         functions.
69611
69612 2005-07-16  Simon Josefsson  <jas@extundo.com>
69613
69614         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69615         workaround, suggested by Bruno.
69616
69617 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         * modules/xalloc (Depends-on): Add xalloc-die.
69620         * modules/xvasprintf (Depends-on): Add xalloc-die.
69621
69622 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69625         with a minor change.
69626
69627 2005-07-15  Bruno Haible  <bruno@clisp.org>
69628
69629         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69630         When using lib/poll.c, define poll as rpl_poll.
69631
69632 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * modules/argp (Depends-on): Remove unlocked-io.
69635
69636 2005-07-14  Derek Price  <derek@ximbiot.com>
69637
69638         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69639         for glob symlink bug.
69640
69641 2005-07-14  Bruno Haible  <bruno@clisp.org>
69642
69643         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69644         Instead, test for *_unlocked function declarations directly.
69645
69646 2005-07-11  Simon Josefsson  <jas@extundo.com>
69647
69648         * modules/size_max: New file.
69649
69650         * modules/xsize: Depend on size_max module for size_max.m4.
69651
69652 2005-07-11  Simon Josefsson  <jas@extundo.com>
69653
69654         * lib/size_max.h: New file.
69655
69656 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69659         copyright symbol and the year.
69660         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69661         (version_etc_va): Use parameterized copyright notice.
69662         Reword to conform to the current GNU coding standards.
69663
69664 2005-07-11  Karl Berry  <karl@gnu.org>
69665
69666         * doc/gnulib.texi (Quoting): new node.
69667         (Initial import): more info, from Patrice.
69668
69669 2005-07-11  Bruno Haible  <bruno@clisp.org>
69670
69671         * gnulib-tool (func_usage): Document option --avoid.
69672         (Command line options): Handle --avoid.
69673         (func_acceptable): New function.
69674         (func_modules_transitive_closure): Use it.
69675
69676 2005-07-11  Bruno Haible  <bruno@clisp.org>
69677
69678         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69679         Reported by Jim Meyering.
69680
69681 2005-07-10  Bruno Haible  <bruno@clisp.org>
69682
69683         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69684         Needed when size_t is smaller than 'unsigned int'.
69685         Reported by Paul Eggert.
69686
69687 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69688
69689         * modules/argp (Depends-on): Add unlocked-io
69690
69691 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69692
69693         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69694         block of defines.
69695
69696 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69699         fix now.
69700
69701 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69702         and Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69705         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69706
69707 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * modules/regex (Files): Add lib/regex_internal.c,
69710         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69711         (Depends-on): Add extensions.
69712         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69713
69714 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69717         pathconf.
69718         * m4/same.m4 (gl_SAME): Likewise.
69719         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69720
69721         * m4/regex.m4: Adjust to new libc regex implementation.
69722         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69723         all the .c and .h parts of (the new) regex.
69724         Quote the m4 stuff better.
69725         Check for RE_ICASE bug of old gnulib.
69726         Check for REG_STARTEND of recent libc.
69727         Rename local variables from jm_* to gl_*.
69728         Quote operand of "test -f".
69729         Say "recent enough" version of libc, not "version 2".
69730         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69731         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69732         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69733         Remove check for btowc, isascii.
69734         Require AM_LANGINFO_CODESET.
69735
69736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * lib/regex.c, regex.h: Sync from libc.
69739         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69740         * lib/regexec.c:
69741         New files, synced from libc, except that regex_internal.h
69742         currently has a small porting fix.
69743
69744 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69747         regex_internal.c, regexec.c.
69748         Add regex_internal.h too, but as a comment, since the libc version
69749         is currently broken in gnulib mode.
69750
69751 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         Support programs like Emacs that use gnulib but not gettext.
69754         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69755         * modules/gettext-h: New file.
69756         * modules/gettext (Files): Remove lib/gettext.h.
69757         (Depends-on): Add gettext-h.
69758         (Makefile.am): Remove lib_SOURCES.
69759         * modules/argmatch, modules/c-stack, modules/closeout:
69760         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69761         * modules/execute, modules/file-type, modules/getaddrinfo:
69762         * modules/getopt, modules/human, modules/javacomp:
69763         * modules/javaexec, modules/mkdir-p, modules/obstack:
69764         * modules/openat, modules/pagealign_alloc, modules/pipe:
69765         * modules/quotearg, modules/regex, modules/rpmatch:
69766         * modules/unicodeio, modules/userspec, modules/version-etc:
69767         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69768         * modules/xsetenv:
69769         Depend on gettext-h, not gettext.
69770
69771 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         * gnulib-tool (func_import): Add support for 'public domain' license.
69774         * modules/alloca, modules/atexit, modules/memmove:
69775         Now public domain, not GPL.
69776         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69777         * modules/realloc, modules/strerror, modules/strtod:
69778         Now LGPL, not GPL.
69779
69780 2005-07-05  Bruno Haible  <bruno@clisp.org>
69781
69782         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69783         autoconf CVS. Needed for mingw.
69784
69785 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         Remove the dependency of the strftime module on the tzset module.
69788         * modules/strftime (Depends-on): Remove dependency on tzset.
69789
69790 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         Remove the dependency of the strftime module on the tzset module.
69793         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69794         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
69800         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69801         Copy the input structure, to work around some of the bug with
69802         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69803         Solaris releases, you should also use the tzset module, but we won't
69804         require it as a dependency any more since we don't want LGPLed code
69805         to depend on GPLed code.
69806
69807 2005-07-02  Jim Meyering  <jim@meyering.net>
69808
69809         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69810         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69811         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69812         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69813
69814 2005-07-02  Jim Meyering  <jim@meyering.net>
69815
69816         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69817
69818 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69821         declares only 'struct timespec;' (!).
69822
69823 2005-07-01  Jim Meyering  <jim@meyering.net>
69824
69825         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69826         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69827         * lib/save-cwd.c, tempname.c:
69828         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69829         and don't include <sys/file.h>).
69830
69831 2005-06-29  Jim Meyering  <jim@meyering.net>
69832
69833         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69834         type name.  Use the variable name instead.
69835         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69836         Likewise.
69837
69838 2005-06-28  Simon Josefsson  <jas@extundo.com>
69839
69840         * modules/check-version (Files): Add check-version.m4.
69841
69842 2005-06-28  Simon Josefsson  <jas@extundo.com>
69843
69844         * m4/check-version.m4: New file, suggested by Jim Meyering
69845         <jim@meyering.net>.
69846
69847 2005-06-28  Simon Josefsson  <jas@extundo.com>
69848
69849         * lib/check-version.h, lib/check-version.c: New files.
69850
69851 2005-06-28  Simon Josefsson  <jas@extundo.com>
69852
69853         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69854         collision with global variable.  Better indentation.  Don't
69855         increment buffer pointer beyond buffer end.  Based on comments
69856         from Paul Eggert <eggert@cs.ucla.edu>.
69857
69858         * lib/base64.h: Indent.
69859
69860 2005-06-28  Simon Josefsson  <jas@extundo.com>
69861
69862         * doc/gnulib.texi (Library version handling): New section.
69863
69864 2005-06-28  Jim Meyering  <jim@meyering.net>
69865
69866         * check-module (find_included_lib_files): Hard-code another
69867         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69868         but modules/fts-lgpl (correctly) does not list those files.
69869
69870         * modules/canonicalize (Files): Add lib/pathmax.h.
69871
69872 2005-06-25  Simon Josefsson  <jas@extundo.com>
69873
69874         * modules/check-version: New file.
69875
69876 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69879         initializer of struct addrinfo, as an indication that we don't
69880         care how many members the structure has.
69881
69882 2005-06-24  Derek Price  <derek@ximbiot.com>
69883         and Bruno Haible  <bruno@clisp.org>
69884
69885         Remove stat module & update lstat.
69886         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69887         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69888         * m4/stat.m4: Remove this file.
69889
69890 2005-06-24  Derek Price  <derek@ximbiot.com>
69891         and Bruno Haible  <bruno@clisp.org>
69892
69893         Remove stat module & update lstat.
69894         * lib/stat.c: Remove this file...
69895         (slash_aware_lstat): ...moving this content and its support...
69896         * lib/lstat.c (rpl_lstat): ...into here.
69897         * lib/lstat.h: New file.
69898
69899 2005-06-24  Derek Price  <derek@ximbiot.com>
69900         and Bruno Haible  <bruno@clisp.org>
69901
69902         Remove stat module & update lstat.
69903         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
69910         * MODULES.html: Regenerated.
69911         * modules/lstat (Description): Correct function name.
69912         (Files): Add "lstat.h".
69913         (Depends-on): Remove stat, add xalloc, stat-macros.
69914         * modules/stat: Remove this file.
69915         (Include): Add "lstat.h", remove <sys/stat.h>.
69916
69917 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69920         (ranged_convert): Don't save conversion in a temporary struct.
69921         This causes a warning with GCC 4.0.0, and anyway in the typical
69922         case it's not worth the extra 100 bytes or so of code.
69923         (ranged_convert, __mktime_internal): When calling a function via a
69924         pointer P, use P () rather than (*P) (), as we now assume C89 or
69925         better.
69926
69927 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69930         "who -r" failed to give output.  Problem reported by Tim Waugh.
69931
69932         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69933         (xcalloc): Use it to avoid needless tests.
69934         Problem reported by Jim Meyering.
69935
69936 2005-06-20  Derek Price  <derek@ximbiot.com>
69937
69938         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69939         unnecessary for Autoconfs > 2.59c.
69940
69941 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69942
69943         * lib/argp.h (__option_is_short): Check upper limit of
69944         __key. Isprint() requires its argument to have the value
69945         of an unsigned char or EOF.
69946
69947 2005-06-16  Jim Meyering  <jim@meyering.net>
69948
69949         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69950         when either N or S is zero.
69951
69952 2005-06-16  Derek Price  <derek@ximbiot.com>
69953
69954         * m4/bison.m4: Declare YACC & YFLAGS precious.
69955
69956 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69959         multibyte string or pattern, fall back on unibyte matching.
69960         Problem reported by James Youngman.
69961
69962 2005-06-08  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/csharpcomp: New file.
69965         * MODULES.html.sh (C#): Add csharpcomp.
69966
69967 2005-06-08  Bruno Haible  <bruno@clisp.org>
69968
69969         * m4/csharpcomp.m4: New file, from GNU gettext.
69970
69971 2005-06-08  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/csharpcomp.h: New file, from GNU gettext.
69974         * lib/csharpcomp.c: New file, from GNU gettext.
69975         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69976
69977 2005-06-08  Bruno Haible  <bruno@clisp.org>
69978
69979         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69980         warning on mingw.
69981
69982 2005-06-07  Derek Price  <derek@ximbiot.com>
69983
69984         Sync from CVS.
69985         * lib/glob_.h: Indent nested #ifdef.
69986
69987 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         Sync from coreutils.
69990         Use "file name" when talking about file names, instead of "filename"
69991         or "path", as per the GNU coding standards.
69992         * lib/mkdir-p.c: Renamed from makepath.c.
69993         (make_dir_parents): Renamed from make_path.  All callers changed.
69994         * lib/mkdir-p.h: Likewise.  All includers changed.
69995         * lib/filenamecat.c: Renamed from path-concat.c.
69996         (file_name_concat): Renamed from path_concat.  All callers changed.
69997         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69998         * lib/filenamecat.h: Likewise.  All includers changed.
69999         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70000         in comments or local variable names.
70001         * lib/basename.c: Likewise.
70002         * lib/canonicalize.c, canonicalize.h: Likewise.
70003         * lib/dirname.c, dirname.h: Likewise.
70004         * lib/euidaccess.c: Likewise.
70005         * lib/exclude.c: Likewise
70006         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70007         * lib/fsusage.c, fsuage.h: Likewise.
70008         * lib/fts.c, fts_.h: Likewise.
70009         * lib/getcwd.c: Likewise.
70010         * lib/getloadavg.c: Likewise.
70011         * lib/mkstemp.c: Likewise.
70012         * lib/mountlist.c, mountlist.h: Likewise.
70013         * lib/openat.c, openat.h: Likewise.
70014         * lib/readlink-stub.c: Likewise.
70015         * lib/readutmp.c, readutmp.h: Likewise.
70016         * lib/rename.c: Likewise.
70017         * lib/rmdir.c: Likewise.
70018         * lib/same.c: Likewise.
70019         * lib/savedir.c: Likewise.
70020         * lib/stripslash.c: Likewise.
70021         * lib/tempname.c: Likewise.
70022         * lib/xreadlink.c: Likewise.
70023         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70024         All uses changed.
70025         * lib/exclude.h: Likewise.
70026
70027         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70028         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70029         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70030         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70031         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70032         files have been getting away with it for years (MORE/BSD 4.3
70033         is extinct now).
70034         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70035         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70036
70037         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70038         Define to 256, not 255, as per modern POSIX.
70039
70040 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         Sync from coreutils.
70043         Use "file name" when talking about file names, instead of "filename"
70044         or "path", as per the GNU coding standards.
70045         * MODULES.html.sh: mkdir-p renamed from makepath.
70046         filenamecat renamed from path-concat.
70047         * modules/filenamecat: Renamed from modules/path-concat.
70048         (Files): filenamecat.h and filenamecat.c renamed from
70049         path-concat.h and path-concat.c.
70050         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70051         (Include): filenamecat.h, not path-concat.h.
70052         * modules/mkdir-p: Renamed from modules/makepath.
70053         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70054         makepath.c.
70055         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70056         (Include): mkdir-p.h, not makepath.h.
70057
70058 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70059
70060         Sync from coreutils.
70061         * m4/mkdir-p.m4: Renamed from makepath.m4.
70062         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70063         Rename files from makepath.c to mkdir-p.c, and from
70064         makepath.h to mkdir-p.h.
70065         * m4/filenamecat.m4: Renamed from path-concat.m4.
70066         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70067         Rename files from path-concat.c to filenamecat.c,
70068         and from path-concat.h to filenamecat.h.
70069         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70070         "file name" in local variables or comments.
70071         * m4/rename.m4: Likewise.
70072
70073 2005-06-01  Bruno Haible  <bruno@clisp.org>
70074
70075         * modules/csharpexec: New file.
70076         * MODULES.html.sh (C#): New section.
70077
70078 2005-06-01  Bruno Haible  <bruno@clisp.org>
70079
70080         * m4/csharp.m4: New file, from GNU gettext.
70081         * m4/csharpexec.m4: New file, from GNU gettext.
70082
70083 2005-06-01  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/csharpexec.h: New file, from GNU gettext.
70086         * lib/csharpexec.c: New file, from GNU gettext.
70087         * lib/csharpexec.sh.in: New file, from GNU gettext.
70088
70089 2005-05-31  Derek Price  <derek@ximbiot.com>
70090             Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         Sync from cvs.
70093         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70094
70095 2005-05-31  Derek Price  <derek@ximbiot.com>
70096             Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         Sync from cvs.
70099         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70100
70101 2005-05-29  Derek Price  <derek@ximbiot.com>
70102
70103         * config/srclist.txt (glob_.h, glob.c): Add these files.
70104
70105 2005-05-29  Derek Price  <derek@ximbiot.com>
70106
70107         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70108         * modules/glob: New file.
70109         * modules/getlogin_r: Add link to POSIX spec in description.
70110
70111 2005-05-29  Derek Price  <derek@ximbiot.com>
70112             Paul Eggert  <eggert@cs.ucla.edu>
70113
70114         * m4/glob.m4: New file.
70115
70116 2005-05-29  Derek Price  <derek@ximbiot.com>
70117             Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * lib/glob_.h, lib/glob.c: New files.
70120
70121 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70124         * modules/fts-lgpl (Depends-on): Remove gettext.
70125
70126 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70129         and don't require gt_INTTYPES_PRI.
70130
70131 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70134
70135         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70136         the configuration hassle isn't worth it.
70137         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70138         (LONGEST_MODIFIER, PRIuMAX): Remove.
70139
70140 2005-05-27  Bruno Haible  <bruno@clisp.org>
70141
70142         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70143
70144 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70147         _POSIX_PTHREAD_SEMANTICS for Solaris.
70148
70149 2005-05-25  Derek Price  <derek@ximbiot.com>
70150
70151         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70152
70153 2005-05-25  Derek Price  <derek@ximbiot.com>
70154             Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70157         * lib/getlogin_r.c, getlogin_r.h: New files.
70158
70159 2005-05-25  Bruno Haible  <bruno@clisp.org>
70160             Derek Price  <derek@ximbiot.com>
70161
70162         * lib/getlogin_r.h: Simplify API documentation.
70163
70164 2005-05-23  Derek Price  <derek@ximbiot.com>
70165
70166         * modules/minmax (Files): Add m4/minmax.m4.
70167         (configure.ac): Add gl_MINMAX.
70168
70169 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70170
70171         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70172         so that unistd-safer.h (GPL'ed code) need not be included.
70173
70174 2005-05-22  Bruno Haible  <bruno@clisp.org>
70175
70176         * m4/minmax.m4: New file.
70177         Based on a patch by Derek Price <derek@ximbiot.com>.
70178
70179 2005-05-22  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70182         (INT64_MIN): Fix definition.
70183         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70184
70185         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70186         NEED_SIGNED_INT_TYPES.
70187
70188         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70189         HAVE_SYSTEM_INTTYPES.
70190
70191 2005-05-22  Bruno Haible  <bruno@clisp.org>
70192
70193         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70194         Also include <sys/param.h> if it defines MIN, MAX.
70195         Based on a patch by Derek Price <derek@ximbiot.com>.
70196
70197 2005-05-21  Jim Meyering  <jim@meyering.net>
70198
70199         * modules/fts (Files): Add m4/inttypes-pri.m4.
70200         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70201
70202 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         New fts module.
70205         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70206         (setup_dir, free_dir): New functions.
70207         (enter_dir, leave_dir): Define trivial
70208         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70209         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70210         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70211         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70212         Move to fts-cycle.c.
70213         (fts_open): Use setup_dir.
70214         (fts_close): Use free_dir.
70215         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70216         This adds a label and some gotos, but the alternatives were messier.
70217         Check for memory allocation failure when entering a dir.
70218         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70219         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70220         (FTS): New member fts_cycle, that is a union that contains the
70221         old active_dir_ht and cycle_state.  All uses changed to mention
70222         fts_cycle.ht and fts_cycle.state.
70223         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70224         fts.c, with the following changes:
70225         (setup_dir, free_dir): New functions.
70226         (enter_dir): Now returns bool.  Return true if successful, false
70227         if memory exhausted.  All callers changed.
70228         Do not bother partly cleaning up on
70229         memory allocation failure; that is free_dir's job.
70230         However, free ad if hash_insert fails, to avoid memory leak.
70231         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70232         fts->fts_options to see which union member to use.
70233
70234 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70237         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70238
70239 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70242
70243 2005-05-20  Jim Meyering  <jim@meyering.net>
70244
70245         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70246         Now a macro, to pacify GCC.
70247
70248 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70249
70250         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70251         of -1.
70252
70253 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70254
70255         * lib/chown.c (rpl_chown): Return -1 on failure.
70256
70257 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70258
70259         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70260         Don't check for stddef.h.
70261         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70262         don't use its results.
70263         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70264         since we include them unconditionally.  Don't require
70265         AM_STDBOOL_H, since stdbool is a prerequisite.
70266         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70267         since we assume C89 or better.
70268         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70269         as we don't use their results.
70270         Don't check for fchdir, memmove, memset, strrchr, as we use
70271         them unconditionally.
70272         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70273         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70274
70275 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70278         Include <stddef.h> unconditionally, since we assume C89 now.
70279         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70280         * lib/fts.c: Include fts_.h first, to check interface.
70281         Do not include intprops.h; no longer needed.
70282         Include cycle-check.h and hash.h, since fts_.h no longer does.
70283         Remove unnecessary casts of closedir to void.
70284         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70285         decide whether to decrement nlinks.
70286         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70287         (FTS): Use struct hash_table * instead of Hash_table, so that
70288         we no longer need to include hash.h here.
70289
70290 2005-05-18  Jim Meyering  <jim@meyering.net>
70291
70292         * modules/dirfd (License): Change to LGPL.  Most of the code
70293         is already in the public domain.
70294
70295 2005-05-18  Jim Meyering  <jim@meyering.net>
70296
70297         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70298         Reported by Yoann Vandoorselaere.
70299
70300 2005-05-17  Jim Meyering  <jim@meyering.net>
70301
70302         * m4/fts.m4: New file, from coreutils.
70303
70304 2005-05-17  Jim Meyering  <jim@meyering.net>
70305
70306         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70307
70308 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70309
70310         Sync from coreutils.
70311         * m4/unlinkdir.m4: New file.
70312
70313 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70314
70315         Sync from coreutils.
70316         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70317         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70318         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70319         White space changes only.
70320         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70321         special.
70322         * lib/yesno.c: Include getline.h, not ctype.h.
70323         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70324         Use getline to remove arbitrary restriction on response length.
70325
70326 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * config/srclist-update: Spell out "Street" in FSF postal
70329         mail address; this is the style the FSF seems to prefer.
70330
70331         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70332         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70333         this updates FSF postal mail address.
70334
70335         Sync from coreutils.
70336         * modules/unlinkdir: New file.
70337         * modules/yesno (Depends-on): Add getline.
70338         * MODULES.html.sh (File system functions): Add unlinkdir.
70339
70340 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70343         lib/strsep.h:
70344         Change the initial comment to refer to GPL, not LGPL.
70345         gnulib-tool will change it to LGPL as needed.
70346
70347         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70348         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70349         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70350         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70351         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70352         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70353         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70354         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70355         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70356         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70357         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70358         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70359         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70360         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70361         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70362         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70363         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70364         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70365         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70366         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70367         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70368         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70369         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70370         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70371         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70372         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70373         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70374         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70375         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70376         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70377         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70378         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70379         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70380         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70381         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70382         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70383         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70384         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70385         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70386         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70387         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70388         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70389         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70390         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70391         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70392         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70393         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70394         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70395         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70396         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70397         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70398         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70399         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70400         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70401         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70402         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70403         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70404         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70405         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70406         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70407         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70408         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70409         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70410         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70411         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70412         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70413         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70414         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70415         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70416         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70417         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70418         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70419         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70420         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70421         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70422         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70423         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70424         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70425         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70426         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70427         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70428         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70429         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70430         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70431         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70432         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70433         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70434         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70435         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70436         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70437         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70438         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70439         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70440         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70441         lib/yesno.c, lib/yesno.h:
70442         Update FSF postal mail address.
70443
70444 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70445
70446         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70447         tests/test-memmem.c, tests/test-stpncpy.c:
70448         Update FSF postal mail address.
70449
70450 2005-05-13  Bruno Haible  <bruno@clisp.org>
70451
70452         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70453         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70454         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70455         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70456         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70457         Add support for 64-bit integers in the MSVC compiler.
70458
70459 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70460
70461         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70462
70463 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70464
70465         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70466
70467 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * doc/getdate.texi (General date syntax): Don't say that date
70470         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70471         Problem reported by Nic Ferrier.
70472
70473 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70474
70475         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70476         specified in ai_socktype. Fix invalid ai_protocol
70477         check. ai_protocol is usually set to 0 or depending on
70478         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70479         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70480         ai_socktype / ai_protocol in the returned addrinfo structure.
70481
70482 2005-05-10  Simon Josefsson  <jas@extundo.com>
70483
70484         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70485         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70486
70487 2005-05-10  Karl Berry  <karl@gnu.org>
70488
70489         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70490         (from http://www.gnu.org/licenses).
70491         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70492         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70493         fdl.texi suffices.
70494
70495 2005-05-10  Karl Berry  <karl@gnu.org>
70496
70497         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70498         (COPYING.DOC): remove.
70499
70500         * config/srclist-update: new FSF address.
70501
70502 2005-05-10  Derek Price  <derek@ximbiot.com>
70503
70504         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70505         possible.
70506
70507 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70508             Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/inet_ntop: New file.
70511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70512         inet_ntop.
70513
70514 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70515             Bruno Haible  <bruno@clisp.org>
70516
70517         * m4/inet_ntop.m4: New file.
70518
70519 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70520             Bruno Haible  <bruno@clisp.org>
70521
70522         * lib/inet_ntop.h: New file.
70523         * lib/inet_ntop.c: New file, from glibc with modifications.
70524
70525 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70526
70527         * modules/time_r (License): Change to LGPL.
70528         * modules/extensions (License): Change to LGPL.  Actually,
70529         the license is more permissive than that, but currently gnulib-tool
70530         doesn't know how to handle more-permissive licenses.
70531
70532         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70533         Problem reported by Dave Love.
70534
70535 2005-05-08  Jim Meyering  <jim@meyering.net>
70536
70537         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70538         blank.
70539
70540 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * modules/argmatch (Depends-on): Add stdbool.
70543         * modules/backupfile (Depends-on): Likewise.
70544         * modules/chdir-long (Depends-on): Likewise.
70545         * modules/closeout (Depends-on): Likewise.
70546         * modules/cycle-check (Depends-on): Likewise.
70547         * modules/dirname (Depends-on): Likewise.
70548         * modules/fnmatch (Depends-on): Likewise.
70549         * modules/fsusage (Depends-on): Likewise.
70550         * modules/fwriteerror (Depends-on): Likewise.
70551         * modules/getcwd (Depends-on): Likewise.
70552         * modules/getloadavg (Depends-on): Likewise.
70553         * modules/hard-locale (Depends-on): Likewise.
70554         * modules/makepath (Depends-on): Likewise.
70555         * modules/mountlist (Depends-on): Likewise.
70556         * modules/nanosleep (Depends-on): Likewise.
70557         * modules/posixtm (Depends-on): Likewise.
70558         * modules/quotearg (Depends-on): Likewise.
70559         * modules/readtokens (Depends-on): Likewise.
70560         * modules/readtokens0 (Depends-on): Likewise.
70561         * modules/readutmp (Depends-on): Likewise.
70562         * modules/save-cwd (Depends-on): Likewise.
70563         * modules/strftime (Depends-on): Likewise.
70564         * modules/userspec (Depends-on): Likewise.
70565         * modules/utimecmp (Depends-on): Likewise.
70566         * modules/xgetcwd (Depends-on): Likewise.
70567         * modules/xnanosleep (Depends-on): Likewise.
70568         * modules/xstrtod (Depends-on): Likewise.
70569         * modules/yesno (Depends-on): Likewise.
70570
70571 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70574         needless checks.
70575
70576 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70577
70578         Merge from coreutils.  Among other things,
70579         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70580         * lib/fd-safer.c: New file.
70581         * lib/fcntl-safer.h, open-safer.c: Remove.
70582         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70583         * lib/dup-safer.c: Include unistd-safer.h first.
70584         Don't include errno.h.
70585         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70586         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70587         * lib/file-type.c: Rely on file-type.h change.
70588         * lib/getloadavg.c: Include unistd-safer.h.
70589         (getloadavg): Use safer open.
70590         * lib/getusershell.c: Include "stdio-safer.h".
70591         (getusershell): Use safer fopen.
70592         * lib/long-options.c (long_options): Use NULL rather than 0.
70593         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70594         'free'.
70595         * lib/modechange.c: Likewise.
70596         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70597         (MODE_DONE): New constant.
70598         (struct mode_change): Remove 'next' member.
70599         (make_node_op_equals): New function; like the old one of the
70600         same name, except it allocates an array.
70601         (mode_compile, mode_create_from_ref): Use it.
70602         (mode_compile): Allocate result as an array, not a linked list.
70603         Parse octal string ourself, so that we catch mistakes like "+0".
70604         (mode_adjust): Arg is an array, not a linked list.
70605         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70606         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70607         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70608         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70609         Remove.  This is now stat-macros.h's job.
70610         (talloc): Remove.  All callers replaced by xalloc, so that
70611         our invokers don't have to worry about reporting memory failures.
70612         (make_node_op_equals): Remove.
70613         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70614         New constants.
70615         (struct mode_change): Moved here from modechange.h.
70616         (mode_append_entry): Remove.
70617         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70618         apps to have incorrect behavior.  Use simpler algorithm for head
70619         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70620         Detect more invalid usages rather than having somewhat-random behavior.
70621         Don't insert an "a=" action, as that leads to incorrect behavior.
70622         (mode_compile, mode_create_from_ref): Return NULL on error instead
70623         of an enum, since now there's only one way to have an error.  All
70624         callers changed.
70625         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70626         at the correct time.  Simplify calculation of "+u" and its ilk.
70627         Don't mishandle "+X".
70628         (mode_free): Remove "register" and localize decls.
70629         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70630         (struct mode_change): Move to modechange.c; callers don't
70631         need to see this stuff.
70632         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70633         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70634         (mode_change, mode_adjust): Reflect the new signatures noted above.
70635         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70636         that might redefine system include files.
70637         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70638         (my_usleep): Use NULL rather than (void *) 0.
70639         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70640         Use siginterrupt to specify that system calls should be interrupted.
70641         (rpl_nanosleep): Move initialization of suspended closer to call of
70642         my_usleep.
70643         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70644         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70645         (desirable_utmp_entry): New function.
70646         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70647         using x2nrealloc, to simplify logic.
70648         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70649         size calculation.  Do not assume utmp file is a regular file.
70650         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70651         (READ_UTMP_CHECK_PIDS): New constant.
70652         * lib/save-cwd.c: Include unistd-safer.h.
70653         (save_cwd): Use fd_safer.
70654         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70655         [!_LIBC] Include "stat-macros.h" instead.
70656         * lib/unistd-safer.h (fd_safer): New decl.
70657
70658 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         * modules/getloadavg (Depends-on): Add unistd-safer.
70661         * modules/getusershell (Depends-on): Add stdio-safer.
70662         * modules/lstat (Depends-on): Remove xalloc.
70663         * modules/mkstemp (Depends-on): Add stat-macros.
70664         * modules/modechange (Depends-on): Remove xstrtol.
70665         Add stat-macros, xalloc.
70666         * modules/save-cwd (Depends-on): Add unistd-safer.
70667         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70668         * modules/unistd-safer (Files): Add lib/fd-safer.c
70669         (Makefile.am): Remove lib_SOURCES.
70670
70671         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70672         Remove fcntl-safer; unistd-safer supersedes it.
70673
70674 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70677         AC_HEADER_STAT.
70678         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70679         (gl_PREREQ_CHOWN): Remove.
70680         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70681         it.  Don't require AC_HEADER_STAT.
70682         (gl_PREREQ_LSTAT): Remove.
70683         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70684         Don't require AC_HEADER_STAT.
70685         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70686         (gl_PREREQ_RMDIR): Remove.
70687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70688         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70689         the stat-macros module a prerequisite.
70690         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70691         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70692         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70693         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70694         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70695         variable names.
70696         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70697         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70698         variable prefixes.
70699         * m4/fcntl-safer.m4: Remove.
70700         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70701         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70702         Invoke gl_PREREQ_FD_SAFER.
70703         (gl_PREREQ_FD_SAFER): New macro.
70704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70705         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70706         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70707         Remove duplicate call to AC_LIBOBJ(readutmp).
70708         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70709
70710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70711         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70712
70713 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         * MODULES.html.sh (Misc): Add byteswap.
70716
70717 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70718
70719         * modules/getcwd (Depends-on): Add extensions.
70720         * modules/openat (Depends-on): Likewise.
70721
70722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70723
70724         * modules/byteswap: New file.
70725
70726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70727
70728         * m4/byteswap.m4: New file.
70729
70730 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70731
70732         * lib/byteswap_.h: New file.
70733
70734 2005-04-25  Karl Berry  <karl@gnu.org>
70735
70736         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70737
70738 2005-04-25  Albert Chin  <china@thewrittenword.com>
70739
70740         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70741         Toolkit C bug.
70742
70743 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70744
70745         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70746         (func_ln_if_changed): Remove forcibly for no error message
70747         in case file does not exist.
70748
70749 2005-04-19  Simon Josefsson  <jas@extundo.com>
70750
70751         * gnulib-tool (Options): Make --symlink mean --symbolic.
70752
70753 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70754
70755         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70756
70757 2005-04-16  Simon Josefsson  <jas@extundo.com>
70758
70759         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70760
70761 2005-04-15  Simon Josefsson  <jas@extundo.com>
70762
70763         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70764
70765 2005-04-15  Simon Josefsson  <jas@extundo.com>
70766
70767         * gnulib-tool: Rename --symlink to --symbolic.
70768
70769 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70770
70771         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70772         symbolic links to files instead of copying/moving.  Add --aux-dir,
70773         specifying directory relative --dir where auxiliary build tools
70774         are placed.
70775
70776 2005-04-14  Bruno Haible  <bruno@clisp.org>
70777
70778         * modules/allocsa (License): Change to LGPL.
70779         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70780
70781 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70784         that "UTC +1 second" continues to work.  Problem reported
70785         by Dmitry V. Levin.
70786         (relunit_snumber): New rule.
70787         (relunit): Use it.
70788
70789 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70790
70791         * lib/getdate.y (universal_time_zone_table): New constant.
70792         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70793         universal_time_zone_table.
70794         (lookup_zone): Prefer universal_time_zone_table to
70795         local_time_zone_table, so that "GMT" time stamps are allowed in
70796         London during the summer.  Problem reported by Ian Abbott.
70797
70798 2005-04-12  Jim Meyering  <jim@meyering.net>
70799
70800         * lib/human.c (humblock): Set *options even when returning due to
70801         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70802         warning from gcc-4.
70803
70804 2005-04-09  Jim Meyering  <jim@meyering.net>
70805
70806         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70807         -Wuninitialized: initialize tm0.tm_year.
70808
70809 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70812         count, since there's no maximum.  All uses changed.
70813         Add member dsts_seen.
70814         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70815         not being INT_MAX.
70816         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70817         Use pc_rels_seen to decide whther a date is absolute.
70818
70819         * lib/getdate.y (number): Don't overwrite year.
70820         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70821         check.
70822
70823 2005-04-02  Simon Josefsson  <jas@extundo.com>
70824
70825         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70826         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70827
70828 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70829
70830         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70831         where no absolute path name can be longer than PATH_MAX.
70832
70833 2005-03-27  Jim Meyering  <jim@meyering.net>
70834
70835         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70836
70837 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70840         "one's complement" -> "ones' complement" in comment, as per Knuth.
70841         "value of type" -> "type or expression" in comment.
70842         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70843
70844 2005-03-26  Jim Meyering  <jim@meyering.net>
70845
70846         Comment nits.
70847         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70848         Correct typos: s/or/of/.
70849
70850 2005-03-26  Jim Meyering  <jim@meyering.net>
70851
70852         * modules/check-include-files: Move to ../ and rename to...
70853         * check-module: ...this.
70854
70855 2005-03-25  Jim Meyering  <jim@meyering.net>
70856
70857         * modules/xvasprintf (Files): Add xalloc.h.
70858
70859 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * modules/gettext (Files): config/config.rpath ->
70862         build-aux/config.rpath
70863         * modules/iconv (Files): Likewise.
70864         Problem reported by Oskar Liljeblad.
70865
70866 2005-03-23  Jim Meyering  <jim@meyering.net>
70867
70868         * modules/check-include-files: New script to check for
70869         missing dependencies, multiple includes, etc.
70870
70871         * modules/c-strtold (Depends-on): Add xalloc.
70872         * modules/c-strtod (Depends-on): Add xalloc.
70873         * modules/hash (Depends-on): Add xalloc.
70874         (Files): Remove lib/xalloc.h.
70875
70876         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70877         * modules/userspec (Files): Add lib/inttostr.h.
70878
70879 2005-03-23  Jim Meyering  <jim@meyering.net>
70880
70881         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70882
70883 2005-03-22  Jim Meyering  <jim@meyering.net>
70884
70885         * modules/stat-macros: New module.
70886         * modules/canonicalize, modules/euidaccess, modules/file-type,
70887         * modules/filemode, modules/lchown, modules/makepath,
70888         * modules/rmdir, modules/stat: Depend on new stat-macros module
70889         rather than listing lib/stat-macros.h manually.
70890         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70891
70892 2005-03-22  Jim Meyering  <jim@meyering.net>
70893
70894         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70895
70896 2005-03-22  Bruno Haible  <bruno@clisp.org>
70897
70898         * config/srclist.txt: Replace target directory 'config' with
70899         'build-aux'.
70900         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70901         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70902         ../build-aux/.
70903
70904 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * modules/chdir-long (Depends-on): Add mempcpy.
70907
70908         * modules/acl, modules/backupfile, modules/c-strtod,
70909         modules/c-strtold, modules/canon-host, modules/canonicalize,
70910         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70911         modules/exclude, modules/exitfail, modules/file-type,
70912         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70913         modules/getdate, modules/getline, modules/getpagesize,
70914         modules/getpass, modules/getugroups, modules/group-member,
70915         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70916         modules/inttostr, modules/long-options, modules/makepath,
70917         modules/md5, modules/memcasecmp, modules/memcoll,
70918         modules/modechange, modules/mountlist, modules/path-concat,
70919         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70920         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70921         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70922         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70923         modules/strftime, modules/strndup, modules/strverscmp,
70924         modules/timespec, modules/unlocked-io, modules/userspec,
70925         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70926         modules/yesno:
70927         Remove lib_SOURCES line from Makefile.am section, as this is now
70928         done automatically by the corresponding Autoconf macro.
70929
70930 2005-03-21  Jim Meyering  <jim@meyering.net>
70931
70932         Changes imported from coreutils.
70933
70934         * lib/cycle-check.c: Don't include xalloc.h.
70935
70936         * lib/path-concat.c: Don't include assert.h.
70937         (path_concat): Remove assertion that would have triggered
70938         for ABASE starting with more than one slash.
70939         Reported by Andreas Schwab.
70940
70941         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70942         properly when ABASE is an absolute file name.
70943         Correct the description of this function.
70944         Include <assert.h>.
70945         Add an assertion and a test driver.
70946         This fixes a bug introduced on 2004-07-02.
70947         Andreas Schwab reported the resulting failure of cp --parents:
70948         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70949
70950 2005-03-21  Jim Meyering  <jim@meyering.net>
70951
70952         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70953         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70954
70955 2005-03-21  Jim Meyering  <jim@meyering.net>
70956         and  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70959         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70960         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70961         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70962         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70963         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70964         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70965         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70966         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70967         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70968         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70969         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70970         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70971         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70972         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70973         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70974         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70975         for these modules.
70976
70977 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70980         (which shouldn't happen), generate nothing instead of returning 0
70981         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70982
70983 2005-03-16  Bruno Haible  <bruno@clisp.org>
70984
70985         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70986         HAVE_LONGLONG_64BIT.
70987
70988 2005-03-16  Bruno Haible  <bruno@clisp.org>
70989
70990         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70991         HAVE_LONGLONG_64BIT.
70992
70993 2005-03-16  Bruno Haible  <bruno@clisp.org>
70994
70995         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70996         HAVE_LONGLONG_64BIT.
70997
70998 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71001         reliably distinguish strftime failure from empty output on POSIX
71002         hosts.
71003
71004 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71007         (iconv_string): Don't guess a size-zero buffer, as that might cause
71008         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71009         result would be 'too large', where 'too large' is (heuristically)
71010         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71011         overflow concerns.  This will prevent some unwanted malloc failures
71012         when the inputs are very large.
71013
71014 2005-03-15  Karl Berry  <karl@gnu.org>
71015
71016         * config/srclist.txt (config.rpath): from gettext.
71017         * config/config.rpath: update.
71018
71019 2005-03-15  Bruno Haible  <bruno@clisp.org>
71020
71021         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71022         to 'negate'.
71023
71024         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71025         variable.
71026
71027         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71028         results.
71029
71030 2005-03-14  Simon Josefsson  <jas@extundo.com>
71031
71032         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71033         <fx@gnu.org>.
71034
71035 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71038         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71039         intprops.h.
71040         * lib/strtol.c: Likewise.
71041
71042 2005-03-14  Jim Meyering  <jim@meyering.net>
71043
71044         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71045         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71046         to be nonzero so that we (and caller) can detect the difference
71047         between a valid zero-length expansion and an error return, even
71048         when the underlying strftime fails before writing anything into
71049         that location.
71050
71051 2005-03-14  Bruno Haible  <bruno@clisp.org>
71052
71053         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71054         Update from GNU gettext 0.14.3.
71055
71056 2005-03-10  Jim Meyering  <jim@meyering.net>
71057
71058         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71059
71060 2005-03-10  Jim Meyering  <jim@meyering.net>
71061
71062         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71063         so that this module works on systems without fchdir.
71064
71065 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         Factor int-properties macros into a single file, except for
71068         glibc-related files.
71069         * lib/intprops.h: New file.
71070         * lib/getloadavg.c: Include it instead of limits.h.
71071         (INT_STRLEN_BOUND): Remove.
71072         * lib/human.c: Include intprops.h.
71073         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71074         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71075         302/1000.
71076         * lib/inttostr.h: Include intprops.h instead of limits.h.
71077         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71078         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71079         for consistency with intprops.h.
71080         (time_t_is_integer, twos_complement_arithmetic): Use them.
71081         * lib/sig2str.h: Include <signal.h>, intprops.h.
71082         (INT_STRLEN_BOUND): Remove.
71083         * lib/strftime.c (TYPE_SIGNED): Remove.
71084         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71085         * lib/strtol.c: Adjust comments to match intprops.h.
71086         * lib/userspec.c: Include intprops.h.
71087         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71088         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71089         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71090         instead of rolling our own expressions.
71091         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71092
71093         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71094         instead of int.
71095         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71096         the right thing even if adding 1900 would overflow.  Similarly
71097         for tm_mon + 1 and tm_yday + 1.
71098         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71099         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71100         (DO_SIGNED_NUMBER): New macro.
71101         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71102
71103 2005-03-07  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71106
71107 2005-03-07  Bruno Haible  <bruno@clisp.org>
71108
71109         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71110
71111 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71112
71113         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71114         (func_import): Only replace files via --import when they have actually
71115         changed.
71116
71117 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71118
71119         * m4/mmap-anon.m4: New file.
71120         * m4/pagealign_alloc.m4: New file.
71121
71122 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71123             Bruno Haible  <bruno@clisp.org>
71124
71125         * modules/pagealign_alloc: New file.
71126         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71127
71128 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71129             Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/pagealign_alloc.h: New file.
71132         * lib/pagealign_alloc.c: New file.
71133
71134 2005-03-03  Bruno Haible  <bruno@clisp.org>
71135
71136         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71137         Use an all-permissive copyright notice, recommended by RMS.
71138
71139 2005-03-02  Bruno Haible  <bruno@clisp.org>
71140
71141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71142         of AIX, the replacement has to be done only after <string.h> is
71143         included, therefore not in config.h. stpncpy.h does the replacement,
71144         and stpncpy.c uses it.
71145
71146 2005-03-02  Bruno Haible  <bruno@clisp.org>
71147
71148         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71149         stpncpy.c uses it.
71150
71151 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71152
71153         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71154         The workaround isn't strictly needed for POSIX conformance, and
71155         it's too much of a pain to configure and maintain.  We'll ask
71156         people to fix their kernels instead.
71157         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71158         (NANOSLEEP_BUG_WORKAROUND): Remove.
71159         (xnanosleep): Remove the workaround.
71160
71161 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71164         Reported by Derek Price.
71165         (Include): Add "timespec.h".
71166
71167         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71168
71169 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71172         to detect nanosleep bug.
71173
71174 2005-03-01  Bruno Haible  <bruno@clisp.org>
71175
71176         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71177
71178 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * modules/gethrxtime: New file.
71181         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71182         (Depends-on): Add gethrxtime.
71183         (configure.ac): Add gl_XNANOSLEEP.
71184         (Makefile.am): Remove lib_SOURCES line.
71185
71186 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71189         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71190
71191 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71194         * lib/timespec.h (gettime): Return void, since it always
71195         succeeds now.  All uses changed.
71196         * lib/gettime.c (gettime): Likewise.
71197         [HAVE_NANOTIME]: Prefer nanotime.
71198         Assume gettimeofday succeeds, as POSIX requires.
71199         Assime time () succeeds, since other code already does.
71200         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71201         (timespec_subtract): Remove.
71202         (NANOSLEEP_BUG_WORKAROUND): New constant.
71203         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71204         things considerably.  Use it only on GNU/Linux hosts, since the
71205         workaround shouldn't be needed elsewhere.
71206
71207 2005-02-24  Bruno Haible  <bruno@clisp.org>
71208
71209         * modules/gettext (Files): Add m4/glibc2.m4.
71210
71211 2005-02-24  Bruno Haible  <bruno@clisp.org>
71212
71213         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71214         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71215         * m4/progtest.m4:
71216         Update from GNU gettext 0.14.2.
71217         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71218
71219 2005-02-24  Bruno Haible  <bruno@clisp.org>
71220
71221         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71222         * lib/config.charset: Update from GNU gettext 0.14.2.
71223
71224 2005-02-24  Bruno Haible  <bruno@clisp.org>
71225
71226         * lib/gettext.h: Update from GNU gettext 0.14.2.
71227
71228 2005-02-23  Simon Josefsson  <jas@extundo.com>
71229
71230         * m4/iconvme.m4: New file.
71231
71232 2005-02-23  Jim Meyering  <jim@meyering.net>
71233
71234         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71235         change.
71236         Thanks to Bruno Haible for catching it.
71237
71238 2005-02-22  Simon Josefsson  <jas@extundo.com>
71239
71240         * modules/iconvme: New file.
71241
71242         * MODULES.html.sh: Add iconvme.
71243
71244 2005-02-22  Simon Josefsson  <jas@extundo.com>
71245
71246         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71247
71248 2005-02-22  Simon Josefsson  <jas@extundo.com>
71249
71250         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71251
71252 2005-02-22  Jim Meyering  <jim@meyering.net>
71253
71254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71255         s/ifndef/ifdef/.
71256
71257 2005-02-20  Neil Conway  <neilc@samurai.com>
71258
71259         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71260         returned by OSX/Darwin if the specified buffer is not large
71261         enough for the hostname.
71262
71263 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71264
71265         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71266         pass it to _help, otherwise the latter coredumps trying to
71267         dereference state.root_argp.
71268
71269 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71270
71271         * modules/chdir-long (Depends-on): Add memrchr.
71272         * modules/memrchr (Files): Add lib/memrchr.h.
71273         (Include): "memrchr.h".
71274
71275 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71278
71279 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         * lib/memrchr.h: New file.
71282         * lib/chdir-long.c: Include it.
71283         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71284         Don't bother including stddef.h.
71285
71286 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71287
71288         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71289         inclusion.
71290         Include <sys/types.h>, for dev_t.
71291         (ME_DUMMY, ME_REMOTE): Move from here....
71292         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71293         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71294         Dmitry V. Levin.
71295         Include mountlist.h first, to test the interface.
71296
71297 2005-01-29  Bruno Haible  <bruno@clisp.org>
71298
71299         * lib/progname.c (program_name): Initialize.
71300         Needed when linking statically on MacOS X.
71301
71302 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71303
71304         Sync from coreutils.
71305         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71306         (Depends-on): Add c-strtod.
71307         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71308
71309 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         Sync from coreutils.
71312         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71313
71314         Remove files that are specific to coreutils.
71315         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71316
71317 2005-01-28  Bruno Haible  <bruno@clisp.org>
71318
71319         * modules/javacomp: New file.
71320         * MODULES.html.sh (Java): Add javacomp.
71321
71322 2005-01-28  Bruno Haible  <bruno@clisp.org>
71323
71324         * m4/javacomp.m4: New file, from GNU gettext.
71325
71326 2005-01-28  Bruno Haible  <bruno@clisp.org>
71327
71328         * lib/javacomp.sh.in: New file, from GNU gettext.
71329         * lib/javacomp.h: New file, from GNU gettext.
71330         * lib/javacomp.c: New file, from GNU gettext.
71331
71332 2005-01-26  Simon Josefsson  <jas@extundo.com>
71333
71334         * lib/gai_strerror.c: Use GPL in header.
71335
71336 2005-01-26  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/javaexec: New file.
71339         * MODULES.html.sh (Java): Add javaexec.
71340
71341 2005-01-26  Bruno Haible  <bruno@clisp.org>
71342
71343         * m4/javaexec.m4: New file, from GNU gettext.
71344
71345 2005-01-26  Bruno Haible  <bruno@clisp.org>
71346
71347         * lib/javaexec.sh.in: New file, from GNU gettext.
71348         * lib/javaexec.h: New file, from GNU gettext.
71349         * lib/javaexec.c: New file, from GNU gettext.
71350
71351 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71352
71353         * modules/lchown (Depends-on): Remove lchown.h
71354
71355 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71356
71357         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71358         must be defined if the header file was not found, in order
71359         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71360
71361 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71362
71363         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71364         initializers for struct pentry_state.
71365         (__argp_error): Check return value of __asprintf
71366         (__argp_failure): Translate error message
71367
71368         * lib/argp-parse.c: Removed braces around the expansion of N_()
71369
71370 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71371
71372         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71373         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71374         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71375         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71376         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71377         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71378         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71379         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71380         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71381         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71382         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71383         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71384         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71385         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71386         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71387         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71388         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71389         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71390         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71391         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71392         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71393         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71394         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71395         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71396         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71397         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71398         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71399         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71400         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71401         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71402         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71403         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71404         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71405         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71406         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71407         Use an all-permissive copyright notice, recommended by RMS.
71408
71409 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * modules/chdir-long (Depends-on): Remove mempcpy.
71412
71413 2005-01-21  Jim Meyering  <jim@meyering.net>
71414
71415         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71416         same value as for Solaris 9.
71417
71418         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71419         component length.  This included changing the parameter to be
71420         of type `char *' rather than `char const *'.
71421         * lib/chdir-long.h (chdir_long): Update prototype.
71422
71423         * lib/openat.c (fdopendir, fstatat): New functions.
71424         * lib/openat.h: Include headers required for use of DIR and struct
71425         stat.
71426         [AT_SYMLINK_NOFOLLOW]: Define.
71427         (fdopendir, fstatat): Add prototypes.
71428
71429 2005-01-21  Bruno Haible  <bruno@clisp.org>
71430
71431         * modules/classpath: New file.
71432         * MODULES.html.sh (Java): Add classpath.
71433
71434 2005-01-21  Bruno Haible  <bruno@clisp.org>
71435
71436         * lib/classpath.h: New file, from GNU gettext.
71437         * lib/classpath.c: New file, from GNU gettext.
71438
71439 2005-01-20  Simon Josefsson  <jas@extundo.com>
71440
71441         * modules/version-etc-fsf: New file.
71442
71443 2005-01-20  Simon Josefsson  <jas@extundo.com>
71444
71445         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71446         * lib/version-etc.c: Remove version_etc_copyright.
71447         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71448         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71449
71450 2005-01-20  Simon Josefsson  <jas@extundo.com>
71451
71452         * lib/base64.h (isbase64): Add.
71453
71454         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71455         using a unsigned prototype, don't inline.
71456         (base64_decode): Use it.
71457
71458 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71459
71460         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71461         it.
71462
71463 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * lib/save-cwd.c (save_cwd): Remove code to support the case
71466         where fchdir is missing or flaky.
71467
71468 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71471
71472 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71473
71474         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71475         AC_LIBSOURCES now does this.
71476         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71477         with new ullong_max module.
71478
71479 2005-01-19  Bruno Haible  <bruno@clisp.org>
71480
71481         * modules/sh-quote: New file.
71482         * MODULES.html.sh (Executing programs): Add sh-quote.
71483
71484 2005-01-19  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/sh-quote.h: New file, from GNU gettext.
71487         * lib/sh-quote.c: New file, from GNU gettext.
71488
71489 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71490
71491         Merge from coreutils.
71492         * m4/ullong_max.m4: New file.
71493         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71494         (gl_MACROS): Assume localeconv exists.
71495
71496 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         Merge changes from coreutils, as described below in several
71499         changelogs dated today.
71500
71501         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71502         (O_DIRECTORY): Remove; not needed here, since "." must be
71503         a directory.  All uses removed.
71504         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71505         universal on Suns, and we also need to test for IRIX.
71506         Revamp code to use 'if' rather than '#if'.
71507         Avoid unnecessary comparison of cwd->desc to 0.
71508
71509         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71510         for known valid error numbers rather than observed invalid ones.
71511
71512 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * modules/ullong_max: New file.
71515
71516         * modules/chdir-long, modules/openat: New files.
71517         * modules/save-cwd (Depends-on): Depend on chdir-long.
71518         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71519
71520 2005-01-18  Jim Meyering  <jim@meyering.net>
71521
71522         Merge from coreutils.
71523         * m4/chdir-long.m4, m4/openat.m4: New files.
71524         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71525         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71526         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71527         is sane and DOES follow symlinks.  Besides, testing 20 different
71528         systems found no broken chown implementations.
71529         Prompted by a change in rsync's copy of this macro.
71530         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71531
71532         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71533
71534         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71535         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71536         NULL-means-set-to-current-time semantics.
71537         Remove temporary file immediately, rather than waiting
71538         for configure's at-exit trap code to do it.
71539
71540 2005-01-18  Jim Meyering  <jim@meyering.net>
71541
71542         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71543
71544         * lib/utimens.c (futimens): Account for the fact that futimes
71545         can also fail with errno == ENOSYS or errno == ENOENT.
71546         Patch from Dmitry V. Levin.
71547
71548         Change the name of the robust chdir function from chdir to chdir_long.
71549         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71550         (restore_cwd): Use chdir_long, not chdir.
71551         * lib/chdir-long.c: Renamed from chdir.c.
71552         * lib/chdir-long.h: Renamed from chdir.h.
71553         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71554         Hurd.
71555
71556 2005-01-18  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71559         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71560         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71561         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71562         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71563         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71564         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71565         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71566         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71567         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71568         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71569         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71570         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71571         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71572         Use an all-permissive copyright notice, recommended by RMS.
71573
71574 2005-01-18  Bob Proulx  <bob@proulx.com>
71575
71576         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71577         simplify offsetof() macro construct to avoid compile failure with
71578         native HP-UX 11.0 ANSI C compiler.
71579
71580 2005-01-17  Bruno Haible  <bruno@clisp.org>
71581
71582         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71583         redundant because stpncpy.m4 takes care of it.
71584
71585 2005-01-17  Bruno Haible  <bruno@clisp.org>
71586
71587         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71588
71589 2005-01-17  Bruno Haible  <bruno@clisp.org>
71590
71591         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71592         used.
71593
71594 2005-01-17  Bruno Haible  <bruno@clisp.org>
71595
71596         * lib/fwriteerror.h (fwriteerror): Change specification to include
71597         fclose.
71598         * lib/fwriteerror.c: Include <stdbool.h>.
71599         (fwriteerror): At the end, close the file stream. Record whether
71600         stdout was already closed.
71601
71602 2005-01-17  Bruno Haible  <bruno@clisp.org>
71603
71604         * lib/execute.c (environ): Declare if needed.
71605         * lib/pipe.c (environ): Likewise.
71606         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71607
71608 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71609
71610         * modules/argp: Depend on vsnprintf
71611
71612 2005-01-10  Jim Meyering  <jim@meyering.net>
71613
71614         * modules/closeout (Depends-on): Add atexit.
71615
71616 2005-01-06  Bruno Haible  <bruno@clisp.org>
71617
71618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71619
71620 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71623         definitions to be after all include files, to avoid collisions.
71624         Problem reported by Bob Proulx.
71625
71626 2005-01-04  Jim Meyering  <jim@meyering.net>
71627
71628         Changes imported from coreutils.
71629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71630         as the mkstemp template, use a temporary directory and an
71631         8.3-friendly template to avoid trouble on systems like DJGPP.
71632         Reported by Juan M. Guerrero via Stepan Kasal.
71633         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71634         close. Remove the temporary directory right away, rather than waiting
71635         for configure's at-exit trap code to do it.
71636         Suggestion from Stepan Kasal.
71637
71638 2005-01-01  Simon Josefsson  <jas@extundo.com>
71639
71640         * gnulib-tool: Print #include directives when --import'ing.
71641
71642 2004-12-28  Simon Josefsson  <jas@extundo.com>
71643
71644         * tests/test-base64.c: Include required header files.  Remove
71645         unused variables.
71646
71647 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71648
71649         * modules/error (Depends-on): Remove gettext.
71650
71651 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71654         not needed.  This removes a dependency on the gettext module.
71655         [defined _LIBC]: Do not include <libintl.h>; not needed.
71656
71657 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71660         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71661
71662 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71665         HAVE_DECL_STRTOLD.
71666
71667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * modules/getdate (Depends-on): Remove alloca-opt.
71670
71671 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71674
71675 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * lib/argp-parse.c: Include <stddef.h>.
71678         (alignof, alignto): New macros.
71679         (parser_init): Don't assume that void * is aligned sufficiently
71680         for struct option.
71681
71682         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71683         need to extend the stack.
71684         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71685         large.
71686
71687 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71688
71689         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71690
71691 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71692
71693         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71694         (2004-10-24) change.  Apparently this was a false alarm.
71695
71696         * modules/getdate: Depend on alloca-opt, not alloca.
71697
71698 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71701         Remove now-obsolete comment about AIX.
71702         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71703         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71704         (YYMAXDEPTH): New macro.
71705
71706 2004-12-18  Simon Josefsson  <jas@extundo.com>
71707
71708         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71709
71710 2004-12-18  Bruno Haible  <bruno@clisp.org>
71711
71712         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71713
71714 2004-12-18  Bruno Haible  <bruno@clisp.org>
71715
71716         * lib/fatal-signal.c (fatal_signals): Make non-const.
71717         (init_fatal_signals): New function.
71718         (uninstall_handlers, install_handlers): Ignore signals that were set to
71719         SIG_IGN.
71720         (at_fatal_signal): Call init_fatal_signals.
71721         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71722         SIG_IGN.
71723         Reported by Paul Eggert.
71724
71725 2004-12-18  Bruno Haible  <bruno@clisp.org>
71726
71727         * doc/alloca.texi: New file.
71728         * doc/alloca-opt.texi: New file.
71729
71730 2004-12-17  Jim Meyering  <jim@meyering.net>
71731
71732         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71733         Otherwise, install-sh could exit with improper exit status when
71734         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71735
71736 2004-12-16  Simon Josefsson  <jas@extundo.com>
71737
71738         * tests/test-base64.c: Add license.
71739
71740 2004-12-15  Stepan Kasal  <address@hidden>
71741
71742         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71743
71744 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * modules/getcwd (Files): Add m4/d-ino.m4.
71747         Suggested by Mark D. Baushke.
71748
71749 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * lib/getdate.y (textint): New member "negative".
71752         (time_zone_hhmm): New function.
71753         Expect 14 shift-reduce conflicts, not 13.
71754         (o_colon_minutes): New rule.
71755         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71756         (yylex): Set the "negative" member of signed numbers.
71757
71758 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         * doc/getdate.texi (Time of day items, Time zone items):
71761         Describe new formats +00:00, UTC+00:00.
71762
71763 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71764
71765         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71766         spurious "-l"s.  Problem reported by Stepan Kasal.
71767
71768 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71771         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71772
71773 2004-12-04  Simon Josefsson  <jas@extundo.com>
71774
71775         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71776         Vandoorselaere <yoann@prelude-ids.org>.
71777
71778 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71779
71780         Changes imported from coreutils.
71781         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71782         exist.
71783         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71784
71785 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         Changes imported from coreutils.
71788         * lib/hard-locale.c: Assume <locale.h> exists.
71789         Include "strdup.h".
71790         (GLIBC_VERSION): New macro.
71791         (hard_locale): Assume setlocale exists.
71792         Rewrite to avoid #ifdef.
71793         Use strdup rather than malloc + strcpy.
71794         * lib/human.c: Assume <locale.h> exists.
71795         (human_readable): Assume localeconv exists.
71796
71797 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * modules/hard-locale (Depends-on): Add strdup.
71800
71801 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71802
71803         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71804         convert T2, not T.  (Imported from libc.)
71805
71806 2004-11-30  Simon Josefsson  <jas@extundo.com>
71807
71808         * modules/restrict (License): Change to LGPL.
71809
71810 2004-11-30  Simon Josefsson  <jas@extundo.com>
71811
71812         * m4/restrict.m4: Add copyright and copying conditions.
71813
71814 2004-11-30  Simon Josefsson  <jas@extundo.com>
71815
71816         * m4/base64.m4: New file.
71817
71818 2004-11-30  Simon Josefsson  <jas@extundo.com>
71819
71820         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71821         base64.
71822
71823         * tests/test-base64.c: New file.
71824
71825         * modules/base64: New file.
71826
71827 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71830         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71831
71832         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71833
71834 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71837         (__getcwd.c): Don't restore errno; glibc doesn't.
71838         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71839         first, falling back to our code only if its results look suspicious.
71840         Ensure that the resulting buffer is only as large as necessary.
71841
71842         * lib/readutmp.c: Include readutmp.h first.
71843         Include <errno.h>, since readutmp.h no longer does that.
71844         * lib/readutmp.h: Don't include <errno.h>,
71845         <sys/param.h>, <time.h>; not needed to establish interface.
71846         (errno): Remove decl.
71847         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71848         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71849         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71850
71851 2004-11-28  Simon Josefsson  <jas@extundo.com>
71852
71853         * lib/base64.h, base64.c: New file.
71854
71855 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71858
71859 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71860
71861         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71862         (Depends-on): Remove pathmax, same.  Add mempcpy.
71863         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71864         (Makefile.am): Append getcwd.h to lib_SOURCES.
71865         (Include): Add getcwd.h.
71866         (Maintainer): Change from Jim Meyering to "all, glibc",
71867         since getdate now uses intended-for-glibc code.
71868         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71869         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71870
71871 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71874         HP's ANSI C compiler.
71875         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71876         Declaring int functions causes warnings on some modern systems and
71877         shouldn't be needed to compile on ancient ones.
71878         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71879         defined.
71880
71881         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71882         with the following changes.
71883         (__set_errno): Parenthesize properly.
71884         Include <stdbool.h>.
71885         (MIN, MAX, MATCHING_INO): New macros.
71886         (__getcwd): Define with prototype, not K&R form.
71887         Use heuristics to allocate default buffer on stack if possible.
71888         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71889         behavior, and to avoid the PATH_MAX limit when computing
71890         ../../../../...
71891         Use MATCHING_INO to compare inode number to file.
71892         Check for arithmetic overflow in size calculations.
71893         Fix bug in reallocation of dot array that caused getcwd to fail
71894         on directories nested deeper than 75.
71895         Be more careful about saving errno on error.
71896         Do not use realloc; use only free+malloc, as this is a bit
71897         more flexible and avoids a needless copy operation.
71898         Do not inspect st_dev and st_ino for symbolic links; POSIX
71899         doesn't specify the latter.
71900         Check for closedir errors.
71901         Avoid needless casts.
71902         Use "#ifdef weak_alias" around weak_alias, to be like other
71903         glibc code.
71904         The following changes to getcwd.c have effect only when used in
71905         gnulib; they have no effect inside glibc proper.
71906         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71907         as alloca isn't used.
71908         (alloca, __alloca): Likewise.
71909         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71910         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71911         unconditionally, as gnulib assumes C89 or better.
71912         Do not include <sys/param.h>.
71913         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71914         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71915         better.
71916         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71917         Include <dirent.h> in a way that is compatible with modern Autoconf.
71918         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71919         New macros, if not already defined.
71920         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71921         Use "_LIBC", not "defined _LIBC", for consistency.
71922         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71923         a mempcpy module.
71924         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71925         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71926         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71927         credit only to Jim Meyering and adjust the copyright dates.
71928         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71929         <stdlib.h>, <unistd.h>, "pathmax.h".
71930         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71931         (INITIAL_BUFFER_SIZE): Remove.
71932         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71933
71934 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71937         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71938         Use the _ONCE methods, for efficiency.
71939         Check for fcntl.h.  In test program, include <errno.h>
71940         and <fcntl.h> if available.  Remove old K&R cruft from
71941         test program.  Check for common errors in GNU/Linux,
71942         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71943         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71944         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71945         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71946         name accordingly.
71947         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71948         accommodate new getcwd.c.
71949         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71950         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71951         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71952         that's all we need now.
71953
71954 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71955
71956         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71957         argp-parse.c depends on getopt internals, that means we should
71958         always use our getopt, to be on the safe side.
71959         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71960         order not to spoil the result of an eventual previous invocation
71961         of gl_GETOPT_SUBSTITUTE.
71962
71963 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71964
71965         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71966         redefinition warnings. To avoid them, include the defines
71967         in `#if !defined __need_getopt ... #endif'. The only place
71968         where __getopt_argv_const is used is in definitions
71969         of getopt_long and getopt_long_only below, which are as well
71970         protected by `#ifndef __need_getopt'.
71971         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71972         __need_getopt after including <stdio.h> and <unistd.h> These
71973         headers might have defined it.
71974
71975 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71978
71979 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71982         (futimens): New function, which uses futimes if available.
71983         (futimens, utimens): Support timespec==NULL, with same semantics
71984         as utime and utimens.
71985         * lib/utimens.h (futimens): New decl.
71986
71987 2004-11-23  Jim Meyering  <jim@meyering.net>
71988
71989         * lib/getopt_.h: Remove trailing blanks.
71990
71991 2004-11-23  Jim Meyering  <jim@meyering.net>
71992
71993         * lib/__fpending.c: Add comment.
71994
71995 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * modules/canonicalize (Depends-on): Add xreadlink.
71998         Problem reported by James Youngman.
71999
72000 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72003         New macros.
72004         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72005         optopt): Use them instead of invoking ## directly; otherwise, the
72006         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72007
72008 2004-11-19  Bruno Haible  <bruno@clisp.org>
72009
72010         * lib/strtok_r.c: Move comments from here...
72011         * lib/strtok_r.h: ... to here.
72012
72013 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72014
72015         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72016         implementations that mishandle size_t overflow.
72017
72018 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72021         might fail.  Problem reported by Yoann Vandoorselaere.
72022         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72023         implementations that mishandle size_t overflow.
72024
72025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * modules/canon-host (Depends-on): Add strdup.
72028
72029 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72032
72033 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * lib/canon-host.c: Include "strdup.h".
72036         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72037         Use strdup instead of malloc/strcpy to duplicate strings.
72038
72039         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72040         (human_space_before_unit): New constant.
72041         * lib/human.c (human_readable): Support it.
72042
72043         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72044         (xgetcwd): Set errno correctly when failing.
72045         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72046         the failure is actually due to a PATH_MAX problem.
72047
72048         Further getopt changes to make it more likely that glibc will
72049         buy the changes back.
72050         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72051         (getopt): Use it, so to preserve glibc semantic
72052         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72053         when compiling for libc.
72054         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72055         (getopt_long, getopt_long_only): Use it.
72056
72057         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72058         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72059         (getopt): Argv is now char * const *, as per standard.
72060         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72061         not char *__getopt_argv_const *.
72062         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72063         _getopt_long_only_r): Likewise.
72064         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72065         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72066         _getopt_long_r, _getopt_long_only_r): Likewise.
72067         * lib/getopt_.h (__getopt_argv_const): Remove.
72068         (getopt): Argv is now char * const *, as per standard.
72069
72070         * lib/getdate.y (tORDINAL): New token.
72071         (day, relunit): Allow it for relative times.
72072         (relative_time_table): Use tORDINAL for ordinals.
72073
72074 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72075
72076         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72077         Document that "second" isn't allowed as an ordinal number.
72078
72079 2004-11-16  Jim Meyering  <jim@meyering.net>
72080
72081         * modules/closeout (Depends-on): Add fpending.
72082
72083 2004-11-15  Jim Meyering  <jim@meyering.net>
72084
72085         * lib/closeout.c: Include "__fpending.h" once again.
72086         Include <stdbool.h>.
72087         (close_stdout): Don't fail just because stdout was closed initially,
72088         since some programs don't write to stdout in the normal course of
72089         operation (other than --version and --help), and we don't want this
72090         function to make e.g. `touch file >&-' fail.
72091         But do fail if it was closed and someone has tried to write to it.
72092         E.g., `printf foo >&-' must fail.
72093
72094 2004-11-13  Jim Meyering  <jim@meyering.net>
72095
72096         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72097
72098 2004-11-12  Simon Josefsson  <jas@extundo.com>
72099
72100         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72101         small doc fix is still pending.
72102
72103 2004-11-11  Simon Josefsson  <jas@extundo.com>
72104
72105         * modules/strtok_r: New file.
72106
72107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72108         strtok_r.
72109
72110 2004-11-11  Simon Josefsson  <jas@extundo.com>
72111
72112         * m4/strtok_r.m4: New file.
72113
72114         * m4/getopt.m4: Replace opterr.
72115
72116 2004-11-11  Simon Josefsson  <jas@extundo.com>
72117
72118         * lib/strtok_r.h, strtok_r.c: New file.
72119
72120 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72123         of replacing opterr, getopt, etc.  This should handle the
72124         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72125
72126 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72129         we can stop lying to compilers about the constness of argv when we
72130         are compiled outside glibc.
72131         (getopt, getopt_long, getopt_long_only): Use it.
72132         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72133         _getopt_internal, getopt): Likewise.
72134         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72135         _getopt_long_only_r): Likewise.
72136         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72137         _getopt_long_r, _getopt_long_only_r): Likewise.
72138
72139         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72140         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72141         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72142         the other external symbols.
72143         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72144         declaration, since the above renaming now works around collisions.
72145
72146 2004-11-11  Jim Meyering  <jim@meyering.net>
72147
72148         * lib/linebreak.c: Remove trailing blanks.
72149         * lib/alloca_.h: Likewise.
72150         * lib/acosl.c: Likewise.
72151         * lib/euidaccess.c: Likewise.
72152         * lib/allocsa.h: Likewise.
72153
72154 2004-11-10  Simon Josefsson  <jas@extundo.com>
72155
72156         * m4/getaddrinfo.m4: New file.
72157
72158 2004-11-10  Simon Josefsson  <jas@extundo.com>
72159
72160         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72161
72162 2004-11-10  Simon Josefsson  <jas@extundo.com>
72163
72164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72165         getaddrinfo.
72166
72167         * modules/getaddrinfo: New file.
72168
72169 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72170
72171         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72172
72173 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * lib/mktime.c (SHR): New macro, which is a portable
72176         substitute for >> that should work even on Crays.
72177         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72178         Problem reported by Mark D. Baushke in
72179         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72180         * lib/getdate.y (SHR): Likewise.
72181         (tm_diff): Use it.
72182         * lib/strftime.c (SHR): Likewise.
72183         (tm_diff): Use it.
72184         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72185         quote_these_too, so that right shifts are well defined.  All uses
72186         changed.
72187
72188 2004-11-10  Jim Meyering  <jim@meyering.net>
72189
72190         Ensure that no close failure goes unreported.
72191         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72192         return early when it seems there's nothing to flush.
72193         Don't include __fpending.h.
72194
72195 2004-11-10  Jim Meyering  <jim@meyering.net>
72196
72197         * modules/closeout (Depends-on): Remove fpending.
72198
72199 2004-11-10  Jim Meyering  <jim@meyering.net>
72200
72201         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72202
72203 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72204
72205         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72206         gl_FUNC_STRFTIME.
72207         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72208         and AC_REQUIRE when possible, to avoid duplicate checks.
72209         Check for <wchar.h>.
72210
72211 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72212
72213         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72214
72215 2004-11-09  Bruno Haible  <bruno@clisp.org>
72216
72217         * m4/sockpfaf.m4: New file.
72218
72219 2004-11-05  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72222         Reported by Mark D. Baushke <mdb@cvshome.org>.
72223
72224 2004-11-04  Bruno Haible  <bruno@clisp.org>
72225
72226         2004-09-11  Bruno Haible  <bruno@clisp.org>
72227                 * allocsa.valgrind: New file.
72228         2004-02-06  Bruno Haible  <bruno@clisp.org>
72229                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72230                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72231                 Reported by Christopher Seip <chris.seip@hp.com>.
72232
72233 2004-11-04  Bruno Haible  <bruno@clisp.org>
72234
72235         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72236         (Makefile.am): Distribute it.
72237
72238 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72239
72240         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72241         with errno == ERANGE if the buffer is too small.
72242         Problem reported by Mark D. Baushke.
72243
72244 2004-11-03  Albert Chin  <china@thewrittenword.com>
72245             Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72248         equivalent, substitute $ac_type for equivalent type rather than
72249         blindly using uint32_t *always* which won't work if uint32_t is not
72250         available.  Define _UINT32_T to work around typedef of uint32_t if
72251         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72252         2.5.1.
72253
72254 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * m4/jm-macros.m4: Sync from coreutils.
72257         (gl_MACROS): Check for mbrlen, for pathchk.
72258         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72259
72260 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72261
72262         * lib/xreadlink.c (MAXSIZE): New macro.
72263         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72264         size does not exceed MAXSIZE.  Avoid cast.
72265         As suggested by Mark D. Baushke in
72266         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72267         if readlink fails with buffer size just under MAXSIZE, try again
72268         with MAXSIZE.
72269
72270 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72273
72274 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72275         and  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72278         (get_date): Overparenthesize to avoid GCC warning.
72279
72280 2004-11-02  Bruno Haible  <bruno@clisp.org>
72281
72282         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72283         returns void.
72284
72285 2004-11-02  Bruno Haible  <bruno@clisp.org>
72286
72287         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72288         function returns void.
72289
72290 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72293         fflush_unlocked, flockfile, funlockfile, funlockfile,
72294         fputs_unlocked, putc_unlocked.
72295
72296 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72299         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72300         already declared.
72301
72302 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * modules/getdate (Files): Add doc/getdate.texi.
72305         (Depends-on): Add setenv, xalloc.
72306
72307 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * lib/getdate.y: Add support for TZ="foo" within a date string.
72310         Fix some bugs near time_t boundaries.  Reject dates with
72311         out-of-range components, e.g., "Sept 31".
72312         Include <stdlib.h>, "setenv.h", "xalloc.h".
72313         (ISDIGIT_LOCALE): Remove; unused.
72314         Note that the TZ and time functions used here are not reentrant.
72315         (mktime_ok, get_tz): New functions.
72316         (TZBUFSIZE): New constant.
72317         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72318         This requires that we sometimes generate our own TZ="XXX..." setting.
72319
72320 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * doc/getdate.texi: New file, from coreutils with modifications for
72323         the new TZ parsing.
72324
72325 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72326
72327         * lib/mktime.c (not_equal_tm): Remove redundant check.
72328
72329 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72330
72331         * modules/regex (lib_SOURCES): Add regex.c.
72332         Reported by James Youngman in
72333         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72334
72335 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * lib/getdate.y: Use Bison 1.875 features, and some minor
72338         code cleanups.  This change does not affect semantics.
72339         Don't include <stdlib.h>; no longer needed.
72340         Don't include unlocked-io.h; only the "#if TEST" code uses
72341         stdio, and performance isn't crucial there.
72342         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72343         Bison 1.875 features as described below.
72344         All uses of "PC." replaced by "pc->".
72345         (YYSTYPE): Add a forward declaration.
72346         (yylex, yyerror): Use full prototypes in forward decls.
72347         Use "%pure-parser" rather than obsolescent "%pure_parser".
72348         Use %parse-param and %lex-param instead of obsolescent
72349         YYPARSE_PARAM and YYLEX_PARAM.
72350         (meridian_table, month_and_day_table, time_units_table,
72351         relative_time_table, time_zone_table, military_table,
72352         lookup_zone, lookup_word, get_date):
72353         Use NULL instead of 0 where appropriate.
72354         (to_hour): Avoid abort (), to avoid a dependency on
72355         stdlib.h.
72356         (yyerror, yylex): Now accepts parser_control * arg.
72357         (main) [TEST]: Use '\0' rather than 0 for char.
72358
72359 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72360
72361         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72362
72363 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72366         It's now the caller's responsibility to handle the case where
72367         !HAVE_GETPAGESIZE && !defined getpagesize.
72368
72369         * lib/mktime.c (leapyear): Arg is long int, not int.
72370
72371 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72374
72375 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72378         missing.  Problem reported by James Youngman.
72379
72380 2004-10-16  Simon Josefsson  <jas@extundo.com>
72381
72382         * gnulib-tool: Fix comments.  Fix parse problem.
72383         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72384
72385 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72388         implementation of getopt_long.  Problem reported by Alexander Taler in:
72389         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72390
72391 2004-10-15  Bruno Haible  <bruno@clisp.org>
72392
72393         * gnulib-tool: Untabify. Initialize supplied_libname.
72394         (func_usage): More homogenous output.
72395         (func_modules_transitive_closure, func_modules_to_filelist,
72396         func_emit_lib_Makefile_am): New functions.
72397         (func_import): New function, extracted from big case statement. Use
72398         func_get_license, func_modules_transitive_closure,
72399         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72400         opt_lgpl. Don't use test -a, as it's not portable.
72401         (func_create_testdir): Use func_modules_transitive_closure,
72402         func_modules_to_filelist, func_emit_lib_Makefile_am.
72403
72404 2004-10-15  Bruno Haible  <bruno@clisp.org>
72405
72406         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72407
72408 2004-10-15  Bruno Haible  <bruno@clisp.org>
72409
72410         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72411         the portions belonging to each module.
72412         Suggested by Derek Robert Price <derek@ximbiot.com>.
72413
72414 2004-10-12  Simon Josefsson  <jas@extundo.com>
72415
72416         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72417         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72418         to real functions.
72419
72420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72421
72422         * modules/vsnprintf: New file.
72423
72424 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72425
72426         * m4/vsnprintf.m4: New file.
72427
72428 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72429
72430         * lib/vsnprintf.h: New file.
72431         * lib/vsnprintf.c: New file.
72432
72433 2004-10-11  Bruno Haible  <bruno@clisp.org>
72434
72435         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72436         vsnprintf.
72437
72438 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72441
72442 2004-10-07  Bruno Haible  <bruno@clisp.org>
72443
72444         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72445         fits into the provided buffer.
72446
72447 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72448
72449         * lib/diacrit.c, diacrit.h: Add GPL notice.
72450
72451         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72452         notice.
72453         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72454         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72455         This avoids a potential constant-folding bug.
72456
72457 2004-10-05  Bruno Haible  <bruno@clisp.org>
72458
72459         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72460         for the declaration of strsep.
72461
72462 2004-10-05  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72465
72466 2004-10-04  Simon Josefsson  <jas@extundo.com>
72467
72468         * modules/memmem: New file.
72469         * tests/test-memmem.c: New file.
72470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72471
72472 2004-10-04  Simon Josefsson  <jas@extundo.com>
72473
72474         * m4/memmem.m4: New file.
72475
72476 2004-10-04  Simon Josefsson  <jas@extundo.com>
72477
72478         * lib/memmem.h: New file.
72479         * lib/memmem.c: New file, taken from glibc.
72480
72481 2004-10-04  Simon Josefsson  <jas@extundo.com>
72482
72483         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72484         '#ifdef USE_UNLOCKED_IO'.
72485
72486 2004-10-04  Simon Josefsson  <jas@extundo.com>
72487
72488         * config/srclist.txt: Add memmem from glibc.
72489
72490 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72493
72494         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72495         modules/exclude, modules/getdate, modules/getline,
72496         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72497         modules/getusershell, modules/linebuffer, modules/md5,
72498         modules/mountlist, modules/posixtm, modules/readtokens,
72499         modules/readutmp, modules/regex, modules/sha1,
72500         modules/version-etc, modules/yesno:
72501         Remove dependency on unlocked-io.
72502
72503 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72506
72507         * m4/unlocked-io.m4: Add copyright notice.
72508         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72509
72510 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72513         * lib/xmalloc.c (xmemdup): Likewise.
72514         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72515         XFREE): Remove these long-obsolescent macros.
72516         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72517         * lib/xstrdup.c: Remove.
72518
72519         * lib/regex.c (re_comp): Cast gettext return value to char *,
72520         Problem reported by Martin Neitzel via Mark D. Baushke.
72521
72522 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72523
72524         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72525         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72526         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72527         regex.c, sha1.c, version-etc.c, yesno.c:
72528         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72529         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72530         the includer's responsibility.
72531
72532         Sync from coreutils.
72533
72534         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72535         points to the start of a string, as the C Standard says the
72536         resulting behavior is undefined.
72537
72538         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72539         simple -> simple_backups, numbered_existing ->
72540         numbered_existing_backups, numbered -> numbered_backups
72541         to avoid shadowing problems.  All uses changed.
72542         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72543         * lib/backupfile.c (check_extension, numbered_backup):
72544         Rename locals to avoid shadowing 'basename'.
72545         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72546         once.
72547
72548         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72549         * lib/.cvsignore: Add getopt.h.
72550
72551 2004-10-04  Bruno Haible  <bruno@clisp.org>
72552
72553         * modules/README: New file.
72554         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72555         not a module.
72556
72557 2004-10-02  Jim Meyering  <jim@meyering.net>
72558
72559         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72560
72561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72562
72563         * modules/strsep: New file.
72564
72565 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72566
72567         * m4/strsep.m4: New file.
72568
72569 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72570
72571         * lib/strsep.h: New file.
72572         * lib/strsep.c: New file.
72573
72574 2004-10-01  Simon Josefsson  <jas@extundo.com>
72575
72576         * lib/snprintf.c (snprintf): Handle size==0.
72577
72578 2004-10-01  Simon Josefsson  <jas@extundo.com>
72579             Bruno Haible  <bruno@clisp.org>
72580
72581         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72582         (snprintf): Declare 'args'.
72583
72584 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * lib/snprintf.c: Remove comments as to why each header is needed.
72587
72588 2004-10-01  Bruno Haible  <bruno@clisp.org>
72589
72590         * MODULES.html.sh: Add strsep.
72591
72592 2004-09-30  Simon Josefsson  <jas@extundo.com>
72593
72594         * modules/snprintf: New file.
72595
72596 2004-09-30  Simon Josefsson  <jas@extundo.com>
72597
72598         * m4/snprintf.m4: New file.
72599
72600 2004-09-30  Simon Josefsson  <jas@extundo.com>
72601
72602         * lib/snprintf.h, lib/snprintf.c: New files.
72603
72604 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72605
72606         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72607         (hol_entry_help): Never translate an empty string.
72608         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72609         * lib/argp.h (OPTION_NO_TRANS): New option.
72610
72611 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72612
72613         * modules/argp (Maintainer): Replace Simon Josefsson
72614         by Sergey Poznyakoff.
72615
72616 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72617
72618         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72619         changes merged back into glibc.
72620
72621 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72624
72625 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72626
72627         * lib/xvasprintf.c: Include xalloc.h.
72628         (xvasprintf): Use xalloc_die, not xmalloc_die.
72629
72630 2004-09-29  Bruno Haible  <bruno@clisp.org>
72631
72632         * modules/alloca-opt: New file, derived from modules/alloca.
72633         * modules/allocsa: Depend on alloca-opt instead of alloca.
72634         * modules/setenv: Likewise.
72635         * modules/vasnprintf: Likewise.
72636         * MODULES.html.sh: Add alloca-opt.
72637
72638 2004-09-28  Simon Josefsson  <jas@extundo.com>
72639
72640         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72641         LGPL, and to replace license template from GPL to LGPL.
72642
72643 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * modules/dummy: Change license to LGPL.
72646
72647 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72650
72651 2004-09-24  Simon Josefsson  <jas@extundo.com>
72652
72653         * modules/minmax (License): Change from GPL to LGPL.
72654
72655 2004-09-23  Simon Josefsson  <jas@extundo.com>
72656
72657         * gnulib-tool (--import): Typo.
72658
72659 2004-09-23  Simon Josefsson  <jas@extundo.com>
72660
72661         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72662
72663 2004-09-22  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/*: Add 'License' field.
72666         * gnulib-tool: Accept --extract-license option.
72667         (func_get_license): New function.
72668
72669 2004-09-21  Bruno Haible  <bruno@clisp.org>
72670
72671         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72672         Reported by Simon Josefsson.
72673
72674 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72677         gl_AC_TYPE_LONG_LONG.
72678
72679 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72682
72683 2004-09-18  Simon Josefsson  <jas@extundo.com>
72684         and  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72687         calls with autoreconf.  Define GL_LIB.
72688
72689 2004-09-14  Karl Berry  <karl@gnu.org>
72690
72691         * config/srclist.txt: unsync setenv.c, sigh.
72692
72693 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72696         Problem reported by Bruno Haible in:
72697         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72698
72699 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * config/srclist.txt: Comment out argp-pvh.c.
72702
72703 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72706         in case some system header has #define'd it.  Problem reported by
72707         Soeren D. Schulze in
72708         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72709
72710 2004-09-09  Karl Berry  <karl@gnu.org>
72711
72712         * regex.[ch]: delete from the root.  These were supposed to be
72713                 synced with emacs cvs, but this has not happened for about
72714                 a year, and anyway nothing else uses emacs regex.[ch].
72715                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72716                 lib/regex[.ch] is untouched.
72717
72718 2004-09-09  Bruno Haible  <bruno@clisp.org>
72719
72720         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72721
72722 2004-09-09  Bruno Haible  <bruno@clisp.org>
72723
72724         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72725         modifications.
72726         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72727
72728 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72729
72730         * modules/xvasprintf: New file.
72731         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72732
72733 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72734
72735         * lib/xvasprintf.h: New file.
72736         * lib/xvasprintf.c: New file.
72737         * lib/xasprintf.c: New file.
72738
72739 2004-09-08  Bruno Haible  <bruno@clisp.org>
72740
72741         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72742
72743 2004-09-08  Bruno Haible  <bruno@clisp.org>
72744
72745         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72746         length is > INT_MAX.
72747         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72748         more.
72749
72750 2004-09-08  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/stdint_.h: New file, taken from GNU clisp.
72753
72754 2004-09-08  Bruno Haible  <bruno@clisp.org>
72755             Oskar Liljeblad  <oskar@osk.mine.nu>
72756
72757         * modules/stdint: New file.
72758         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72759
72760 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         Import from coreutils.
72763         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72764         strings on unbounded length.  alloca's performance benefits aren't
72765         that important here.
72766         (V_STRDUP): Remove.
72767         (parse_with_separator): New function, with most of the internals
72768         of the old parse_user_spec.  Allow user to omit both user and group,
72769         for compatibility with FreeBSD.
72770         Clone only the user name, not the entire spec.
72771         Do not set *uid, *gid unless entirely successful.
72772         Avoid memory leak in some failing cases.
72773         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72774         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72775         (parse_user_spec): Rewrite to use parse_with_separator.
72776
72777 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * modules/userspec: Don't depend on alloca.
72780
72781 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72782
72783         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72784
72785 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72788         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72789         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72790
72791 2004-08-16  Simon Josefsson  <jas@extundo.com>
72792
72793         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72794         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72795         Add --dry-run for --import.
72796         Let user provided command line parameters override configure.ac
72797         settings.
72798
72799 2004-08-12  Simon Josefsson  <jas@extundo.com>
72800
72801         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72802         as discussed with Paul Eggert in threads rooted at
72803         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72804         and
72805         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72806         Before, the test was empty, and relied on ELIDE_CODE in source
72807         code.)
72808         (gl_PREREQ_GETOPT): New macro.
72809         (gl_GETOPT): Use them.
72810
72811 2004-08-12  Simon Josefsson  <jas@extundo.com>
72812
72813         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72814         * lib/getopt_.h: Renamed from getopt.h.
72815
72816 2004-08-12  Simon Josefsson  <jas@extundo.com>
72817
72818         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72819         Change default library name from libfoo to libgnu.
72820         Now, if you have a configure.ac that says:
72821                 gl_SOURCE_BASE(gl)
72822                 gl_M4_BASE(gl/m4)
72823                 gl_MODULES(error getopt etcetera)
72824                 gl_INIT
72825         you can import all you need by running:
72826                 ../gnulib/gnulib-tool --import
72827
72828         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72829         (Makefile.am): Rewrite, use logic from argz.
72830         (Include): Use <getopt.h> instead of "getopt.h".
72831
72832 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72833
72834         * modules/argp (Files): Add m4/unlocked-io.m4.
72835         (Depends-on): Add extensions.
72836
72837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72838
72839         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72840         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72841         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72842         Check for program_invocation_name, program_invocation_short_name,
72843         flockfile, funlockfile, features.h, _getopt_long_only_r.
72844
72845 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72846
72847         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72848         its complicated substitute.
72849         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72850         and program_invocation_name.
72851         (__argp_basename) [!_LIBC]: Remove; the only use was
72852         replaced by its body.
72853         (__argp_short_program_name): Change condition from
72854         !defined __argp_short_program_name to
72855         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72856         to match argp-namefrob.h.
72857         (__argp_failure): Don't assume strerror_r returns char *.
72858         * lib/argp-parse.c (N_): Define unconditionally.
72859         (argp_default_options): Fill out initializers with 0 to avoid
72860         gcc warnings.
72861
72862 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72865         getopt1.c.
72866
72867 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72868
72869         Merge from coreutils.
72870
72871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72872
72873         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72874         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72875
72876 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         Merge from coreutils.
72879
72880         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72881         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72882         for Reliant Unix 5.43.
72883
72884         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72885         (union fooround): Use uintmax_t, not long int.
72886         The rest is a merge from libc:
72887         [defined _LIBC]: Include <shlib-compat.h>.
72888         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72889
72890         * lib/settime.c (settime): Recode to avoid warning with
72891         Sun Forte C 6U2.
72892
72893         * lib/strverscmp.c: Convert to UTF-8.
72894
72895 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72898         m4/uintmax_t.m4.
72899
72900 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * modules/xalloc-die: New file.
72903         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72904
72905         * modules/md5 (Files): Add m4/uint32_t.m4.
72906         * modules/sha1: Renamed from modules/sha.
72907         (Files):
72908         Rename lib/sha.h to lib/sha1.h.
72909         Rename lib/sha.c to lib/sha1.c.
72910         Rename m4/sha.m4 to m4/sha1.m4.
72911         (lib_SOURCES): Likewise.
72912         (configure.ac): Rename gl_SHA to gl_SHA1.
72913         (Include): sha.h -> sha1.h.
72914
72915 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72918         * m4/sha1.m4: Renamed from sha.m4.
72919         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72920
72921 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * lib/obstack.h (obstack_empty_p):
72924         Don't assume that chunk->contents is suitably aligned.
72925         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72926         Likewise. Problem reported by Benno in
72927         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72928
72929         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72930         readable.  This could be improved further but it'd take some work.
72931
72932 2004-08-08  Simon Josefsson  <jas@extundo.com>
72933
72934         * modules/xgethostname (Depends-on): Remove exit and error (not
72935         used).
72936
72937         * modules/getpass-gnu: Add getpass.h.
72938         (Depends-on): Add stdbool.
72939         * modules/getpass: Add getpass.h.
72940
72941 2004-08-08  Simon Josefsson  <jas@extundo.com>
72942
72943         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72944         Check getpass declaration.
72945
72946 2004-08-08  Simon Josefsson  <jas@extundo.com>
72947
72948         * lib/xgethostname.c: Don't include error.h (not used).
72949
72950         * lib/getpass.h: Add.
72951         * lib/getpass.c: Include getpass.h first.
72952
72953 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * lib/xalloc-die.c: New file.
72956         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72957         All uses removed.
72958         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72959         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72960         xalloc-die.c.
72961         (_, N_, xalloc_die): Move to xalloc-die.c.
72962         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72963         so that we needn't mess with xalloc_msg_memory_exhausted.
72964
72965         * lib/sha1.h: Renamed from sha.h.
72966         (SHA1_H): Renamed from _SHA_H.
72967         (sha1_ctx): Renamed from sha_ctx.
72968         (sha1_init_ctx): Renamed from sha_init_ctx.
72969         (sha1_process_block): Renamed from sha_process_block.
72970         (sha1_process_bytes): Renamed from sha_process_bytes.
72971         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72972         (sha1_read_ctx): Renamed from sha_read_ctx.
72973         (sha1_stream): Renamed from sha_stream.
72974         (sha1_buffer): Renamed from sha_buffer.
72975         * lib/sha1.c: Likewise; renamed from sha.c.
72976         Do not include <sys/types.h>.
72977         Include <stddef.h> rather than <stdlib.h>.
72978
72979 2004-08-08  Bruno Haible  <bruno@clisp.org>
72980
72981         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72982         FILESYSTEM_PREFIX_LEN.
72983         * lib/progreloc.c: Likewise.
72984         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72985
72986 2004-08-06  Simon Josefsson  <jas@extundo.com>
72987
72988         * modules/progname (Depends-on): Don't depend on stdbool.
72989
72990 2004-08-06  Simon Josefsson  <jas@extundo.com>
72991
72992         * modules/getsubopt: New file.
72993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72994         getsubopt.
72995
72996 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         More merge from coreutils.
72999
73000         * m4/utimens.m4, m4/utimecmp.m4: New files.
73001         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73002         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73003         prereq.m4, sha.m4: Import changes from coreutils.
73004
73005 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         More merge from coreutils.
73008         * modules/raise, modules/readtokens0, modules/utimens:
73009         * modules/utimecmp, module/xnanosleep: New files.
73010         * modules/strftime: Add lib/strftime.h.
73011         Change include from <time.h> to "strftime.h".
73012         * modules/yesno: Add lib/yesno.h.
73013         * modules/backupfile: Remove lib/addext.c.
73014         * modules/euidaccess: Add stat-macros.h.
73015         * modules/canonicalize, modules/euidaccess,
73016         modules/filemode, modules/lchown, modules/makepath,
73017         modules/rmdir, modules/stat: Likewise.
73018
73019 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         Merge from tar.
73022         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73023         SIZE_MAX is a valid preprocessor constant.
73024         (__argp_basename): Change from "#ifndef _LIBC"
73025         to "#ifndef __argp_short_program_name", so that
73026         we don't compile these functions for tar.
73027
73028         More merges from coreutils.
73029         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73030         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73031         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73032         * lib/addext.c: Remove; no longer needed.
73033         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73034         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73035         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73036         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73037         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73038         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73039         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73040         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73041         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73042         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73043         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73044         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73045         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73046         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73047         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73048         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73049         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73050         Import changes from coreutils.
73051
73052 2004-08-05  Simon Josefsson  <jas@extundo.com>
73053
73054         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73055
73056 2004-08-05  Simon Josefsson  <jas@extundo.com>
73057
73058         * m4/getsubopt.m4: New file.
73059
73060 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         Merge from coreutils.
73063
73064         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73065         * m4/getcwd-path-max.m4: New files.
73066
73067         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73068         FILESYSTEM_PREFIX_LEN ->
73069         FILE_SYSTEM_PREFIX_LEN.
73070         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73071         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73072         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73073         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73074
73075         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73076         prerequisite modules now handle the DOS stuff.
73077         Don't check for unistd.h.
73078
73079 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         Merge from coreutils.
73082
73083         * lib/.gdb-history: Remove; this doesn't belong here.
73084
73085         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73086         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73087         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73088         * lib/getcwd.c: New files.
73089
73090         * lib/dirname.h: Include <stdbool.h>.
73091         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73092         for consistency with POSIX terminology.  All uses changed.
73093         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73094         (strip_trailing_slashes): Use bool for booleans.
73095         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73096
73097         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73098         sometimes returns a positive errno value even when it succeeds.
73099         (print_errno_message) [!LIBC]: Fall back on strerror if
73100         __strerror_r fails.
73101
73102         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73103         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73104         (longest_relative_suffix): New function.
73105         (path_concat): Use it.  Assume first argument is not NULL.
73106         Port to DOS.  Omit redundant separators.
73107         Report an error instead of returning NULL.
73108         Use mempcpy instead of memcpy.
73109         (xpath_concat): Remove: not declared or used.
73110
73111         * lib/same.h: Include <stdbool.h>
73112         (same_name): Return bool, not int.
73113         * lib/same.c (same_name): Likewise.
73114         (errno): Don't declare; we assume C89 or better now.
73115
73116         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73117         if not already defined.
73118
73119         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73120         * lib/dup-safer.c (errno): Likewise.
73121
73122 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73123
73124         Merge from coreutils.
73125         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73126         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73127         * modules/path-concat: Don't depend on strdup.
73128
73129 2004-08-03  Simon Josefsson  <jas@extundo.com>
73130
73131         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73132         * lib/progname.h: Don't include stdbool.h.
73133
73134 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73135
73136         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73137         * MODULES.html.sh (func_all_modules): Remove fatal.
73138
73139 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73140
73141         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73142
73143 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73146         working.
73147
73148 2004-08-02  Simon Josefsson  <jas@extundo.com>
73149
73150         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73151         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73152         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73153
73154 2004-08-01  Simon Josefsson  <jas@extundo.com>
73155
73156         * lib/xgetdomainname.c: Include stdlib.h, for free().
73157
73158 2004-07-19  Bruno Haible  <bruno@clisp.org>
73159
73160         * MODULES.html.sh (func_all_modules): Add dummy.
73161
73162 2004-07-16  Simon Josefsson  <jas@extundo.com>
73163
73164         * modules/dummy: New file.
73165
73166 2004-07-16  Simon Josefsson  <jas@extundo.com>
73167
73168         * lib/dummy.c: New file.
73169
73170 2004-07-16  Bruno Haible  <bruno@clisp.org>
73171
73172         * lib/backupfile.h: Add extern "C" for C++.
73173         * lib/closeout.h: Likewise.
73174         * lib/copy-file.h: Likewise.
73175         * lib/findprog.h: Likewise.
73176         * lib/full-write.h: Likewise.
73177         * lib/pathname.h: Likewise.
73178         * lib/progname.h: Likewise.
73179         * lib/stpcpy.h: Likewise.
73180         * lib/stpncpy.h: Likewise.
73181         * lib/strcase.h: Likewise.
73182         * lib/strstr.h: Likewise.
73183         * lib/xalloc.h: Likewise.
73184
73185         * lib/mbswidth.h: Add extern "C" for C++.
73186         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73187
73188 2004-07-13  Robert Millan  <robertmh@gnu.org>
73189
73190         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73191
73192 2004-07-09  Simon Josefsson  <jas@extundo.com>
73193
73194         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73195         failed without this.)
73196
73197 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * modules/chown (Files): Add lib/fchown-stub.c, since
73200         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73201
73202 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/fchown-stub.c: New file.
73205
73206 2004-06-24  Jim Meyering  <jim@meyering.net>
73207
73208         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73209
73210 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73211
73212         * modules/argz: Omit "#include".
73213
73214         * MODULES.html.sh (func_all_modules): Add calloc, to match
73215         2004-06-01 addition of calloc module.
73216
73217 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * m4/argz.m4: New file, which is autoupdated from libtool.
73220
73221 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73224         libtool.
73225
73226 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73227
73228         * config/srclist-update: Don't insist on "USA." before the
73229         close-comment, as libtool omits the period and puts the */ on a
73230         separate line.
73231         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73232         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73233
73234 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73235
73236         * modules/argz: New file.
73237         * MODULES.html.sh (func_all_modules): Add argz.
73238
73239 2004-06-12  Jim Meyering  <jim@meyering.net>
73240         and  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * modules/hash (Files): Add lib/xalloc.h.
73243         * modules/pipe (Depends-on): Add wait-process.
73244         * modules/stat (Depends-on): Add xalloc.
73245         * modules/userspec (Files): Add lib/userspec.h.
73246         * modules/xstrto
73247
73248         Upgrade from gettext-0.13.
73249         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73250         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73251         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73252
73253 2004-06-10  Jim Meyering  <jim@meyering.net>
73254
73255         * lib/calloc.c: New file.
73256
73257 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73258
73259         * lib/getdate.y (yylex): Allow space between sign and number.
73260         Problem reported by Dan Jacobson.
73261
73262 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73263
73264         Merge from coreutils CVS.
73265
73266         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73267         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73268         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73269         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73270         xstrtol.m4: Fix copyright date and/or serial number.
73271
73272         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73273         See if we need an fchown replacement.
73274         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73275         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73276         and use the replacement function if we detect either defect.
73277
73278         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73279         gl_UTIMECMP.
73280
73281 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73282         and  Jim Meyering  <jim@meyering.net>
73283
73284         Merge from coreutils CVS.
73285
73286         * lib/stat-macros.h: New file, with contents from file-type.h
73287         and coreutils' system.h.
73288         * lib/file-type.c: Include "stat-macros.h".
73289         * lib/file-type.h (file_type): Move all macro definitions to new file,
73290         stat-macros.h.
73291
73292         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73293         Wrap old code with this conditional.
73294         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73295         function that does not dereference symlinks.
73296         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73297
73298         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73299         dependency problems.
73300         (xreadlink): Accept new arg SIZE, for efficiency.
73301         All decls and uses changed.
73302         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73303
73304         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73305         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73306
73307         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73308         sysexits.h.
73309
73310 2004-06-01  Jim Meyering  <jim@meyering.net>
73311
73312         * m4/calloc.m4: New file.
73313
73314 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73317         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73318         Also, fix a typo in a diagnostic.
73319
73320 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73321
73322         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73323         or AC_FUNC_REALLOC.
73324
73325 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73328         macros to be defined.
73329         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73330         the allocator returns NULL because the requested size is zero.
73331
73332 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73335         var.  Add comment explaining why libc still defines it.  This
73336         merges the following patch from glibc:
73337         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73338
73339 2004-05-20  Andreas Schwab  <schwab@suse.de>
73340
73341         * m4/free.m4: Replace free if it not known to work, not the other
73342         way round.
73343
73344 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73347         present in glibc since revision 1.1 of this file.
73348         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73349         obstack_alignment_mask, obstack_alloc, obstack_base,
73350         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73351         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73352         obstack_grow0, obstack_init, obstack_int_grow,
73353         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73354         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73355         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73356         nonexistent functions.
73357
73358 2004-05-18  Karl Berry  <karl@gnu.org>
73359
73360         * config/srclist.txt: break link for vasnprintf.c.
73361
73362 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         Port obstack to the AS/400, where pointers are 16 bytes wide and
73365         you cannot cast an integer to a valid pointer.  This patch is
73366         currently waiting to be integrated into glibc; see
73367         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73368
73369         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73370         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73371         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73372         (struct obstack): temp member is now a union of a pointer and
73373         an integer, instead of an integer.  All integer uses changed.
73374         This does not affect the physical layout of struct obstack,
73375         except on hosts (like the AS/400) where the size or alignment of
73376         void * is greater than that of ptrdiff_t.
73377         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73378         __STDC__)]: Store temporary in pointer member of union, not
73379         integer member.
73380         * lib/obstack.c: Include <stddef.h>, for offsetof.
73381         (struct fooalign): Remove; it doesn't need a name.
73382         (union fooround): Change double to long double, and add void *.
73383         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73384         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73385         not a macro.  Hence the values are always int; so remove all
73386         casts-to-int in uses.
73387
73388 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73391         we can get this patch merged into glibc.
73392
73393 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73394             Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * m4/argp: Depend on alloca.
73397
73398 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73399             Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73402         freecoding.
73403
73404 2004-05-17  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73407         precision that consists of a '.' followed by an empty digit string.
73408         Patch by Tor Lillqvist <tml@iki.fi>.
73409
73410 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73411
73412         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73413         for backward compatibility with older code.  We need our own
73414         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73415         it under some other name, and our alloca.h will define it.
73416
73417 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73418             Derek Price  <derek@ximbiot.com>
73419
73420         * lib/alloca.c: Include <alloca.h>, to get our interface.
73421         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73422         include <alloca.h> first.  Use C89 prototype for alloca; this
73423         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73424         Use #elif for simplicity, since we can assume C89 now.
73425         Don't try to source the system alloca.h since it will not be found
73426         and to prevent recursively including its replacement.
73427         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73428         * lib/regex.c: Likewise.
73429
73430 2004-05-16  Derek Price  <derek@ximbiot.com>
73431             Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         getline cleanup.  This changes the getndelim2 API: both order of
73434         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73435         no delimiter).
73436
73437         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73438         interface does that.
73439         (getline): Always use getdelim, so that we don't have two
73440         copies of this code.
73441         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73442         if available.
73443         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73444         (GETNDELIM2_MAXIMUM): New macro.
73445         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73446         instead of the old practice of delim2==0.  All callers changed.
73447         Return -1 on overflow, instead of returning junk.
73448         Do not set *linesize unless allocation succeeds.
73449         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73450         that we include sys/types.h.
73451         * lib/getnline.h: Likewise.
73452         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73453         (getndelim2): Reorder arguments.
73454         * lib/getnline.c (getnline, getndelim):
73455         Don't discard the NMAX argument.
73456         (getnline): Invoke getndelim, to avoid code duplication.
73457         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73458         of (size_t) -1 by callers of the getnline family.
73459
73460 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73461
73462         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73463         Check for gettimeofday.
73464         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73465         Check for settimeofday, stime.
73466
73467 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * lib/nanosleep.c (suspended): Change its type from int to
73470         sig_atomic_t volatile.
73471         (first_call): Make it private to rpl_nanosleep, and have it
73472         be zero initially as that's a bit faster.
73473         (my_usleep): Round up fractional times instead of truncating them,
73474         as this is the usual meaning for 'sleep'.
73475
73476         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73477         doesn't work.
73478         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73479         (ENOSYS): Define if not defined.
73480         (settime): Fall back on stime if it exists and settimeofday fails.
73481         But don't bother with fallbacks if a method fails with errno == EPERM.
73482
73483 2004-05-11  Jim Meyering  <jim@meyering.net>
73484
73485         Prior to this change, the save_cwd caller required read access to the
73486         current directory on most systems (ones with the fchdir function).
73487
73488         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73489         fails, try write-only, and finally, resort to using xgetcwd.
73490
73491 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * lib/obstack.c, obstack.h: Import changes from libc.
73494
73495 2004-04-28  Bruno Haible  <bruno@clisp.org>
73496
73497         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73498         also implicitly appends .exe to executables.
73499         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73500         accepts Windows pathnames.
73501         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73502         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73503         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73504         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73505         Reported by Derek Robert Price <derek@ximbiot.com>.
73506
73507 2004-04-21  Karl Berry  <karl@gnu.org>
73508
73509         * config/srclist.txt (localcharset.c): break sync.
73510
73511 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73512
73513         * m4/host-os.m4: Add a copyright notice.
73514
73515 2004-04-20  Jim Meyering  <jim@meyering.net>
73516
73517         Change UTILS_ to gl_ in AC_DEFINE'd names.
73518         Change utils_- and jm_-prefixed variables, too.
73519         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73520         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73522
73523         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73524         Don't emit trailing blanks.
73525         Also rename jm_-prefixed variables to have gl_ prefix.
73526
73527         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73528         Also rename jm_-prefixed variables to have gl_ prefix.
73529
73530         * m4/jm-macros.m4: Reflect the renamings.
73531         * m4/prereq.m4: Likewise.
73532
73533 2004-04-20  Jim Meyering  <jim@meyering.net>
73534
73535         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73536         memory.
73537
73538 2004-04-20  Jim Meyering  <jim@meyering.net>
73539             Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73542         memory when realloc fails.
73543
73544 2004-04-19  Jim Meyering  <jim@meyering.net>
73545
73546         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73547         now that readutmp.c may call `free (0)'.
73548
73549 2004-04-19  Bruno Haible  <bruno@clisp.org>
73550
73551         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73552         * m4/inttypes_h.m4: Likewise.
73553         * m4/stdint_h.m4: Likewise.
73554         * m4/intmax_t.m4: Likewise.
73555         * m4/uintmax_t.m4: Likewise.
73556
73557 2004-04-18  Jim Meyering  <jim@meyering.net>
73558
73559         * m4/prereq.m4: Don't forbid jm_ prefix.
73560
73561         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73562         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73563         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73564         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73565         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73566         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73567         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73568         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73569         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73570         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73571         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73572         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73573         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73574         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73575         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73576         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73577         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73578         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73579         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73580
73581 2004-04-18  Jim Meyering  <jim@meyering.net>
73582
73583         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73584         failure, don't leak memory and do call END_UTMP_ENT.
73585
73586 2004-04-16  Jim Meyering  <jim@meyering.net>
73587
73588         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73589         coreutils' stat program.
73590         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73591
73592 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73593
73594         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73595         C89.
73596         (CHAR_BIT): Remove, since we assume C89.
73597         Include <stdint.h> if available, as per current Autoconf CVS advice.
73598
73599 2004-03-31  Jim Meyering  <jim@meyering.net>
73600
73601         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73602         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73603         * m4/xalloc.m4: Likewise.
73604
73605 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73606
73607         Merge from coreutils.
73608
73609         * m4/inttostr.m4: New file.
73610         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73611         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73612         Require gl_CLOCK_TIME.
73613         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73614
73615 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73616
73617         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73618         not bool, to be more consistent with Unix conventions.
73619         Suggested by Bruno Haible.
73620
73621         Merge from coreutils.
73622
73623         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73624         * lib/umaxtostr.c: New files.
73625
73626         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73627         the usual <time.h> dance.
73628         (get_date): Change signature to support fractional time stamps.
73629         All callers changed.
73630         * lib/getdate.y: Include "getdate.h" first, as we can now
73631         assume C89 and don't need to worry about 'const'.
73632         Similarly, include "unlocked-io.h" near start, not in middle.
73633         Include <limits.h>.
73634         (textint.value): Use long int rather than int.
73635         (textint.digits): Use size_t rather than int.
73636         (BILLION, LOG10_BILLION): New constants.
73637         (parser_control): New member rel_ns.  Members day_ordinal,
73638         time_zone, month, day, hour, minutes, rel_year, rel_month,
73639         rel_day, rel_hour, rel_minutes, rel_seconds
73640         are now long int, not int.  Member seconds is now struct timespec,
73641         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73642         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73643         not int.
73644         (%union.intval): Now long int, not int.
73645         New member timespec.
73646         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73647         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73648         (spec): Now is a timespec or an item list.
73649         (timespec, items): New nonterminals.
73650         (time, rel, relunit, number, get_date):
73651         Add support for fractional seconds.
73652         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73653         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73654         (to_hour): First arg is now long int, not int.
73655         (to_year): Returns long int, not int.
73656         Don't treat year -70 like 70.
73657         (tm_diff): Returns long int, not int.
73658         (lookup_word): Use bool instead of int when appropriate.
73659         (yylex): Use size_t for count, not int.
73660         Detect overflow when parsing large integer constants.
73661         Add support for fractions.
73662         (get_date): Make pointers 'const' if possible.
73663         Use more-portable code to detect integer overflow.
73664         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73665         Don't use ctime; it's not reliable if the year has >4 digits.
73666
73667         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73668         This is for compatibility with BSD.
73669
73670         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73671         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73672         From coreutils' system.h.
73673
73674         * lib/userspec.c: Don't include "posixver.h".
73675         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73676         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73677         compatible extension.  Simplify code by removing a boolean int
73678         that was always nonzero if a string was nonnull.
73679
73680 2004-03-30  Jim Meyering  <jim@meyering.net>
73681
73682         Merge from coreutils.
73683
73684         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73685         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73686         on some systems one must include <grp.h> before it.
73687         Reported by Christian Krackowizer.
73688
73689 2004-03-30  Jim Meyering  <jim@meyering.net>
73690
73691         Merge from coreutils.
73692
73693         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73694
73695         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73696         an empty input stream.
73697
73698         * lib/readtokens.c: Include <stdbool.h>.
73699         (readtoken): Use `size_t' rather than int/long.
73700         All callers adjusted.
73701         Use `bool' rather than `int' where appropriate.
73702         Use memset rather than an explicit loop.
73703         Use x2nrealloc rather than xrealloc.
73704         Allow the use of `\0' as a delimiter.
73705         (readtokens): Likewise.
73706         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73707
73708 2004-03-30  Jim Meyering  <jim@meyering.net>
73709
73710         * m4/realloc.m4: Remove file, since now it does no more than
73711         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73712         the `configure.ac' section of module/realloc.
73713         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73714
73715 2004-03-30  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73718         nonnull.
73719
73720 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73721
73722         Merge changes to getloadavg.c from coreutils and Emacs.
73723
73724         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73725         Define to an expression, not to the empty string.
73726         Include cloexec.h and xalloc.h.
73727         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73728         Use set_cloexec_flag rather than rolling our own.
73729         * lib/cloexec.c, lib/cloexec.h: New files.
73730
73731 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73732
73733         * m4/cloexec.m4: New file.
73734
73735 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73736
73737         * lib/getopt.h: Sync with libc CVS.
73738
73739 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73740             Bruno Haible  <bruno@clisp.org>
73741
73742         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73743         mbswidth.
73744
73745 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73746             Bruno Haible  <bruno@clisp.org>
73747
73748         * lib/mbswidth.h: Include <wchar.h> only if
73749         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73750         <wchar.h>.
73751         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73752
73753 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73754
73755         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73756         Sync with libc CVS.
73757         * lib/getopt_int.h: New file, also synced from libc.
73758
73759 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73760
73761         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73762         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73763         Bring back getopt.c, getopt.h, getopt1.c.
73764
73765 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73766
73767         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73768         All uses changed.  Check for sa_sigaction member; this fixes
73769         a bug first reported by Jason Andrade in
73770         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73771
73772 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73773
73774         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73775         '#if' expressions.  Unlike the code it replaces, it does not
73776         depend on (defined _SC_PAGESIZE).  However, it does depend on
73777         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73778         first reported by Jason Andrade in
73779         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73780
73781 2004-02-25  Simon Josefsson  <jas@extundo.com>
73782
73783         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73784
73785 2004-02-25  Simon Josefsson  <jas@extundo.com>
73786
73787         * lib/strdup.h: New file.
73788         * lib/strdup.c: Include it.
73789         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73790         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73791
73792 2004-02-23  Karl Berry  <karl@gnu.org>
73793
73794         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73795         (from fencepost.gnu.org:/gd/gnuorg).
73796
73797 2004-02-23  Karl Berry  <karl@gnu.org>
73798
73799         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73800         * config/srclist.txt: add maintain/standards documents.
73801
73802 2004-02-18  Bruno Haible  <bruno@clisp.org>
73803
73804         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73805         Reported by Derek Robert Price <derek@ximbiot.com>.
73806
73807 2004-02-16  Karl Berry  <karl@gnu.org>
73808
73809         * config/mkinstalldirs, install-sh: update from automake.
73810
73811 2004-02-06  Karl Berry  <karl@gnu.org>
73812
73813         * m4/po.m4: update from gettext 0.14.1.
73814
73815 2004-02-06  Karl Berry  <karl@gnu.org>
73816
73817         * lib/config.charset: update from gettext 0.14.1.
73818
73819 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73820
73821         Add comments and code, prompted by suggestions from Bruno Haible
73822         for sh-quote.
73823         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73824         describing the enum quoting_style values.
73825         * lib/quotearg.c (quotearg_alloc): New function.
73826         (quotearg_buffer_restyled): Treat lone { and } as special.
73827         Treat = as special.  Work around bug with older shells
73828         that "see" a '\' that is really the 2nd byte of a multibyte char.
73829         Quote empty string with shell_quoting_style.
73830
73831 2004-02-03  Bruno Haible  <bruno@clisp.org>
73832
73833         * m4/pipe.m4: New file, from GNU gettext.
73834
73835 2004-02-03  Bruno Haible  <bruno@clisp.org>
73836
73837         * lib/pipe.h: New file, from GNU gettext.
73838         * lib/pipe.c: New file, from GNU gettext.
73839
73840 2004-01-27  Bruno Haible  <bruno@clisp.org>
73841
73842         * m4/execute.m4: New file, from GNU gettext.
73843
73844 2004-01-27  Bruno Haible  <bruno@clisp.org>
73845
73846         * lib/execute.h: New file, from GNU gettext.
73847         * lib/execute.c: New file, from GNU gettext.
73848         * lib/w32spawn.h: New file, from GNU gettext.
73849
73850 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73851
73852         Merge from diffutils.
73853
73854         * lib/file-type.c (file_type): Add typed memory objects.
73855         * lib/file-type.h (S_TYPEISTMO): New macro.
73856
73857         * lib/c-stack.h (c_stack_action): Remove argv argument.
73858         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73859         (die): Don't calculate message unless segv_action returns.
73860         (get_stack_location, min_address_from_argv, max_address_from_argv,
73861         volatile stack_base, volatile_stack_size): Remove.
73862         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73863         that every segmentation violation is a stack overflow.  (Ouch!)
73864         See Debian bug 136249 (still outstanding) for more info about why
73865         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73866
73867 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73868
73869         Exit-status fix from coreutils.
73870
73871         Use exit_failure consistently in place of EXIT_FAILURE,
73872         so that program exit statuses are consistent on failure.
73873
73874         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73875         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73876         * lib/argmatch.h: Comment fix to match the above.
73877         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73878         Now a macro referring to exit_failure, instead of a separate
73879         variable.  Include "exitfail.h" to get it.
73880         * lib/xstrtol.h: Include "exitfail.h".
73881         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73882
73883         * lib/long-options.c (parse_long_options): Use prototype
73884         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73885         for clarity.
73886
73887 2004-01-21  Jim Meyering  <jim@meyering.net>
73888
73889         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73890         so as not to conflict with a different-sized __mktime_internal
73891         function in GNU libc.
73892         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73893         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73894
73895 2004-01-20  Karl Berry  <karl@gnu.org>
73896
73897         * config/config.guess: update from config.
73898
73899         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73900
73901 2004-01-20  Bruno Haible  <bruno@clisp.org>
73902
73903         Safer stack allocation.
73904         * lib/setenv.c: Include allocsa.h.
73905         (alloca): Remove fallback definition.
73906         (freea): Remove macro.
73907         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73908         instead of freea.
73909
73910 2004-01-20  Bruno Haible  <bruno@clisp.org>
73911
73912         * m4/eealloc.m4: New file, from GNU gettext.
73913
73914 2004-01-20  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/allocsa.m4: New file, from GNU gettext.
73917
73918 2004-01-20  Bruno Haible  <bruno@clisp.org>
73919
73920         * lib/xallocsa.h: New file, from GNU gettext.
73921         * lib/xallocsa.c: New file, from GNU gettext.
73922
73923 2004-01-20  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73926
73927 2004-01-20  Bruno Haible  <bruno@clisp.org>
73928
73929         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73930         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73931         specially.
73932
73933 2004-01-20  Bruno Haible  <bruno@clisp.org>
73934
73935         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73936         patch.
73937
73938 2004-01-20  Bruno Haible  <bruno@clisp.org>
73939
73940         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73941
73942 2004-01-20  Bruno Haible  <bruno@clisp.org>
73943
73944         * lib/eealloc.h: New file.
73945
73946 2004-01-20  Bruno Haible  <bruno@clisp.org>
73947
73948         * lib/binary-io.h: Avoid warnings on Cygwin.
73949
73950 2004-01-20  Bruno Haible  <bruno@clisp.org>
73951
73952         * lib/allocsa.h: New file, from GNU gettext.
73953         * lib/allocsa.c: New file, from GNU gettext.
73954
73955 2004-01-18  Karl Berry  <karl@gnu.org>
73956
73957         * doc/gpl.texi, doc/lgpl.texi: new files.
73958
73959 2004-01-18  Karl Berry  <karl@gnu.org>
73960
73961         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73962         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73963
73964 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73965
73966         Merge from coreutils.
73967
73968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73969         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73970         (gl_DEFAULT_POSIX2_VERSION): Move
73971         the documentation from 'configure' into 'config.hin',
73972         so that 'configure --help' isn't burdened by it and
73973         we don't have to worry about its formatting there.
73974         Reword the documentation so that it's more succinct
73975         and can be run together into a single paragraph.
73976         * m4/same.m4 (gl_SAME): Check for pathconf.
73977
73978 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73979
73980         Merge from coreutils.
73981
73982         * lib/posixver.c: Include posixver.h.
73983
73984         * lib/same.c: Include <stdbool.h>, <limits.h>.
73985         (_POSIX_NAME_MAX): Define if not defined.
73986         (MIN): New macro.
73987         (same_name): If file names are silently truncated, report
73988         that the file names are the same if they are the same after
73989         the silent truncation.
73990
73991         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73992         conversion function.
73993         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73994         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73995         longer needed.
73996
73997 2004-01-15  Jim Meyering  <jim@meyering.net>
73998
73999         Merge from coreutils.
74000
74001         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74002         if no library is required.
74003         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74004         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74005         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74006         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74007         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74008         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74009         value, $ac_cv_search_crypt, if it's "none required".
74010         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74011         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74012         not gl_FUNC_GETLOADAVG.
74013         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74014         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74015
74016 2004-01-15  Jim Meyering  <jim@meyering.net>
74017
74018         Merge from coreutils.
74019
74020         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74021         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74022         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74023
74024         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74025         optional configure-time default.
74026
74027         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74028
74029         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74030
74031 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74032
74033         Merge from coreutils.
74034
74035         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74036         value, $ac_cv_search_nanosleep, if it's "none required".
74037
74038 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74039
74040         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74041         with like-named macro in fnmatch.c.
74042         (EXT): Use an internal constant instead.
74043
74044         Merge fnmatch patches from glibc.
74045         * lib/fnmatch.c (mbsinit): Remove define.
74046         Add libc_hidden_ver (__fnmatch, fnmatch).
74047         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74048         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74049
74050 2004-01-14  Karl Berry  <karl@gnu.org>
74051
74052         * config/install-sh: update from automake.
74053
74054 2004-01-13  Karl Berry  <karl@gnu.org>
74055
74056         * config/install-sh: update from automake.
74057
74058 2004-01-09  Karl Berry  <karl@gnu.org>
74059
74060         * config/install-sh: update from automake.
74061
74062 2004-01-05  Karl Berry  <karl@gnu.org>
74063
74064         * config/config.{sub,guess}: update from config.
74065
74066 2003-12-31  Karl Berry  <karl@gnu.org>
74067
74068         * config/depcomp: update from automake.
74069
74070 2003-12-14  Karl Berry  <karl@gnu.org>
74071
74072         * lib/config.charset: update from gettext-runtime.
74073
74074 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74075
74076         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74077         Bug reported by Alfred M. Szmidt.
74078
74079 2003-12-03  Bruno Haible  <bruno@clisp.org>
74080
74081         * m4/gettext.m4: Upgrade from gettext-0.13.
74082         * m4/po.m4: Upgrade from gettext-0.13.
74083         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74084         * m4/intmax.m4: New file, from gettext-0.13.
74085         * m4/printf-posix.m4: New file, from gettext-0.13.
74086
74087 2003-11-29  Karl Berry  <karl@gnu.org>
74088
74089         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74090
74091 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74092             Bruno Haible  <bruno@clisp.org>
74093
74094         * lib/printf-parse.h: Don't include sys/types.h.
74095         (ARG_NONE): New macro.
74096         (char_directive): Change type of *arg_index fields to size_t.
74097         * lib/printf-parse.c: Don't include sys/types.h.
74098         (SSIZE_MAX): Remove macro.
74099         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74100         Remove unnecessary overflow check.
74101         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74102         fields.
74103
74104 2003-11-25  Bruno Haible  <bruno@clisp.org>
74105
74106         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74107
74108 2003-11-25  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74111         gt_TYPE_SSIZE_T.
74112
74113 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74114
74115         * modules/alloca: Remove dependency on xalloc.
74116
74117 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74118
74119         * lib/alloca.c: Remove dependency on xalloc module.
74120         (xalloc_die): Remove.
74121         (memory_full) [!defined emacs]: New macro.
74122         [!defined emacs]: Don't include xalloc.h.
74123         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74124         address arithmetic overflows.  Change datatypes a bit to avoid
74125         unnecessary casts.
74126
74127 2003-11-22  Jim Meyering  <jim@meyering.net>
74128
74129         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74130         s/size/size_t/.
74131
74132 2003-11-21  Karl Berry  <karl@gnu.org>
74133
74134         * config/config.{sub,guess}: update from config.
74135
74136 2003-11-18  Karl Berry  <karl@gnu.org>
74137
74138         * config/config.{sub,guess}: update from config.
74139
74140         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74141
74142 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74143
74144         * README: Mention that S+T cannot overflow if S is the size of
74145         an existing object and T is sufficiently small.
74146
74147 2003-11-17  Jim Meyering  <jim@meyering.net>
74148
74149         On systems without utime and without a utimes function capable of
74150         dealing with a NULL struct utimbuf* argument, this utime replacement
74151         could -- in unusual circumstances -- leak a file descriptor.
74152         * lib/utime.c: Include <unistd.h> and <errno.h>.
74153         (utime_null): Be sure to close `fd' and to preserve errno.
74154         Reported by Geoff Collyer via Arnold Robbins.
74155
74156 2003-11-17  Bruno Haible  <bruno@clisp.org>
74157
74158         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74159         (Depends-on): Add xsize.
74160
74161 2003-11-17  Bruno Haible  <bruno@clisp.org>
74162
74163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74164
74165 2003-11-17  Bruno Haible  <bruno@clisp.org>
74166
74167         * lib/vasnprintf.c (alloca): Remove fallback definition.
74168         (freea): Remove definition.
74169         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74170         Reported by Paul Eggert.
74171
74172 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74173             Bruno Haible  <bruno@clisp.org>
74174
74175         Protect against address arithmetic overflow.
74176         * lib/printf-args.h: Include stddef.h.
74177         (arguments): Change type of field 'count' to size_t.
74178         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74179         'unsigned int' where appropriate.
74180         * lib/printf-parse.h: Include sys/types.h.
74181         (char_directive): Change type of *arg_index fields to ssize_t.
74182         (char_directives): Change type of fields 'count', max_*_length to
74183         size_t.
74184         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74185         (SSIZE_MAX): Define fallback value.
74186         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74187         instead of 'int' where appropriate. Check a_allocated, d_allocated
74188         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74189         * lib/vasnprintf.c: Include xsize.h.
74190         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74191         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74192         overflow. Avoid wraparound when converting a width or precision from
74193         decimal to binary.
74194
74195 2003-11-16  Bruno Haible  <bruno@clisp.org>
74196
74197         Update from GNU gettext.
74198         * lib/printf-parse.c: Generalize to it can be compiled for wide
74199         strings.
74200         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74201         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74202         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74203         SNPRINTF): New macros.
74204         Don't include <alloca.h> if the file is used inside libintl.
74205         (local_wcslen): New function, for Solaris 2.5.1.
74206         (VASNPRINTF): Use it instead of wcslen.
74207
74208 2003-11-16  Bruno Haible  <bruno@clisp.org>
74209
74210         * lib/xsize.h (xmax): New function.
74211         (xsum, xsum3, xsum4): Declare as "pure" functions.
74212
74213 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74214
74215         * modules/xalloc (Files): Undo latest change, since xalloc.h
74216         no longer needs SIZE_MAX or PTRDIFF_MAX.
74217
74218 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74219
74220         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74221         gl_PTRDIFF_MAX.
74222
74223 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74224
74225         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74226         "return", to pacify some unknown compiler.  Problem reported
74227         by Joerg Schilling.
74228
74229 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74230
74231         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74232         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74233         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74234         heuristic is just as accurate as far as we know, and it removes a
74235         dependency on size_max.m4 and ptrdiff_max.m4.
74236
74237 2003-11-11  Bruno Haible  <bruno@clisp.org>
74238
74239         * modules/xsize (Files): Add m4/size_max.m4.
74240         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74241
74242 2003-11-11  Bruno Haible  <bruno@clisp.org>
74243
74244         * m4/size_max.m4: New file.
74245         * m4/ptrdiff_max.m4: New file.
74246         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74247         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74248         (gl_XALLOC): Invoke it.
74249
74250 2003-11-11  Bruno Haible  <bruno@clisp.org>
74251
74252         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74253         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74254         defined.
74255
74256 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74257
74258         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74259         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74260         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74261         From Bruno Haible.
74262         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74263         not (size_t) -1, since it's defined here.
74264
74265 2003-11-09  Karl Berry  <karl@gnu.org>
74266
74267         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74268
74269 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74270
74271         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74272         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74273         Reject sizes of exactly SIZE_MAX bytes.
74274         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74275         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74276
74277 2003-11-05  Bruno Haible  <bruno@clisp.org>
74278
74279         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74280         SIZE_MAX defined in <limits.h> on Solaris.
74281
74282 2003-11-04  Jim Meyering  <jim@meyering.net>
74283
74284         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74285         variable names, rather than @VAR@.
74286         * modules/poll: Likewise.
74287
74288 2003-11-04  Bruno Haible  <bruno@clisp.org>
74289
74290         * modules/xsize: New file.
74291         * modules/linebreak: Depend on xsize.
74292         * MODULES.html.sh (func_all_modules): Add xsize.
74293
74294 2003-11-04  Bruno Haible  <bruno@clisp.org>
74295
74296         * m4/xsize.m4: New file.
74297
74298 2003-11-04  Bruno Haible  <bruno@clisp.org>
74299
74300         * lib/xsize.h: New file.
74301         * lib/linebreak.c: Include xsize.h.
74302         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74303         argument for overflow.
74304         Suggested by Paul Eggert.
74305
74306 2003-11-03  Karl Berry  <karl@gnu.org>
74307
74308         * config/config.{guess,sub}: update from config.
74309
74310 2003-11-03  Jim Meyering  <jim@meyering.net>
74311
74312         * modules/userspec (lib_SOURCES): Add userspec.h.
74313         (Include): Add "userspec.h".
74314         Improve description.
74315
74316 2003-11-03  Jim Meyering  <jim@meyering.net>
74317
74318         * lib/userspec.c: Include "userspec.h".
74319         * lib/userspec.h: New file.
74320
74321 2003-11-03  Bruno Haible  <bruno@clisp.org>
74322
74323         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74324
74325 2003-11-03  Bruno Haible  <bruno@clisp.org>
74326
74327         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74328         available, to avoid (extremely rare) race condition.
74329         Suggested by Paul Eggert.
74330
74331 2003-11-02  Karl Berry  <karl@gnu.org>
74332
74333         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74334
74335 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74336
74337         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74338         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74339         (read_filesystem_list): Set and use me_type_malloced.
74340         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74341         whatever the type happens to be), for brevity and consistency.
74342         Check for size calculation overflow on Alphas running OSF/1.
74343
74344 2003-10-31  Jim Meyering  <jim@meyering.net>
74345
74346         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74347
74348         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74349
74350 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74351             Bruno Haible  <bruno@clisp.org>
74352
74353         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74354         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74355
74356 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74359         netbsd*-gnu*.  Suggested by Robert Millan.
74360
74361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74362
74363         * modules/group-member: Depend on stdbool.
74364
74365 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74366
74367         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74368
74369 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74370
74371         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74372         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74373         after the 'gnu' in these cases.  This fixes some bugs in the
74374         previous change, and is based on suggestions by Robert Millan.
74375
74376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74377
74378         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74379         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74380         no longer needed.
74381         * lib/quotearg.c (quotearg_n_options): Use it.
74382         * lib/group-member.c: Include <stdbool.h>.
74383         (free_group_info): Arg is now const *; don't free arg.
74384         (get_group_info): Now returns bool and accepts struct group_info *,
74385         rather than returning a malloc'ed struct group_info *.
74386         All uses changed.  Check for overflow in internal size calculation.
74387
74388         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74389         rather than xmalloc/xrealloc.
74390         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74391         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74392         conformance bug: the old code used a pointer after freeing the
74393         storage that it addressed.
74394         * lib/hash.c (hash_initialize): Simplify the code by using
74395         xalloc_oversized rather than doing it by hand.
74396         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74397         the buffer preserved.  Use free and xmalloc instead.
74398         * lib/quotearg.c (quotearg_n_options): Likewise.
74399         Use a simpler test for size overflow.  Don't use xalloc_oversized
74400         because unsigned int might be wider than size_t (!); this suggests
74401         that we should switch from unsigned int to size_t for slot numbers.
74402
74403 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74404
74405         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74406         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74407         NetBSD kernels.  Requested by Richard Stallman.
74408
74409 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74410
74411         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74412         to allocate the returned structure.  Do not allocate a subarray,
74413         as x2nrealloc will do that.
74414         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74415         instead of xnrealloc.
74416         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74417
74418 2003-10-27  Bruno Haible  <bruno@clisp.org>
74419
74420         * lib/stdbool_.h: Better support for BeOS.
74421
74422 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74423
74424         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74425         now uses inline.
74426
74427 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74428
74429         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74430         callers that want to do their own size-overflow checking.  Include
74431         <stdbool.h>, since xalloc_oversized returns bool.
74432         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74433         to use xalloc_oversized.
74434
74435         Add two functions x2realloc, x2nrealloc, for programs that grow
74436         arrays dynamically by doubling their sizes.
74437         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74438         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74439         New functions.
74440
74441         Port to C99 semantics for 'inline' of external functions.
74442         Bug reported by Bruno Haible.
74443         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74444         with the old contents of xnmalloc.
74445         (xnmalloc, xmalloc): Use it.
74446         (xnrealloc_inline): New static inline function,
74447         with the old contents of xnrealloc.
74448         (xnrealloc, xrealloc): Use it.
74449
74450         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74451         that.
74452
74453 2003-10-26  Karl Berry  <karl@gnu.org>
74454
74455         * config/srclist.txt (COPYING.DOC): no longer available from
74456         /gd/gnuorg; don't know where the ultimate source is.
74457
74458 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74459
74460         Fix several address-calculation bugs in the hash modules,
74461         plus some minor code cleanup.
74462
74463         * lib/hash.h: Include <stdbool.h>, for bool.
74464         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74465         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74466         hash_get_n_entries, hash_get_max_bucket_length,
74467         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74468         hash_rehash): Use size_t rather than unsigned.
74469         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74470         hash_get_n_buckets_used, hash_get_n_entries,
74471         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74472         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74473         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74474         Likewise.
74475         (SIZE_MAX): Define if not defined.
74476         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74477         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74478         hash_print):
74479         Use const * when possible.
74480         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74481         (check_tuning): Fix bug: if tuning parameters were very close to
74482         0 or 1, rounding errors could have caused subscript violations.
74483         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74484         (hash_initialize): Add 'fail:' label
74485         to free table and return NULL, and use it to simplify code.
74486         Use calloc rather than clearing the storage ourself.
74487         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74488         buffer size calculations.
74489         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74490         Include <stddef.h>, for size_t.
74491         * lib/hash-pjw.c (hash_pjw): Likewise.
74492         Switch to method described by Bruno Haible.
74493         Include <limits.h>, for CHAR_BIT.
74494         (SIZE_BITS): New macro.
74495
74496 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74497
74498         * m4/getline.m4 (AM_FUNC_GETLINE):
74499         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74500         hosts.  Problem reported by Derek Robert Price in
74501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74502         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74503         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74504
74505 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74506
74507         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74508         ceiling the allocation at NMAX bytes rather than silently
74509         discarding input bytes before NMAX is reached.  This makes
74510         a difference only if NMAX exceeds SIZE_MAX / 2.
74511
74512         * lib/obstack.c: Merge from glibc.
74513         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74514         Add libc_hidden_def (_obstack_newchunk).
74515         (_obstack_free) [! defined _LIBC]: Remove.
74516         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74517         a clone of the function body.
74518         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74519         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74520
74521         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74522         glibc.
74523         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74524         arg to memcpy.
74525
74526         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74527         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74528         Don't use lvalue casts, as GCC plans to remove support for them
74529         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74530         was also present in the non-GCC version, indicating that this
74531         code had always been buggy and had never been widely used.
74532         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74533         Use the fast variant of each macro, rather than copying the
74534         definiens of the fast variant; that way, we'll be more likely to
74535         catch future bugs in the fast variants.
74536
74537 2003-10-20  Bruno Haible  <bruno@clisp.org>
74538
74539         * modules/wait-process: New file.
74540         * MODULES.html.sh (func_all_modules): Add wait-process.
74541
74542 2003-10-20  Bruno Haible  <bruno@clisp.org>
74543
74544         * m4/wait-process.m4: New file.
74545
74546 2003-10-20  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/wait-process.h: New file, from GNU gettext.
74549         * lib/wait-process.c: New file, from GNU gettext.
74550
74551 2003-10-19  Jim Meyering  <jim@meyering.net>
74552
74553         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74554         HPUX 10.20.
74555
74556 2003-10-18  Karl Berry  <karl@gnu.org>
74557
74558         * config/config.guess: update from config.
74559
74560 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74561
74562         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74563         (getgroups): First arg is int, not size_t.
74564         Don't let 'free' mangle errno.
74565
74566 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74567
74568         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74569
74570 2003-10-16  Karl Berry  <karl@gnu.org>
74571
74572         * config/config.{guess,sub}: update from config.
74573
74574 2003-10-16  Jim Meyering  <jim@meyering.net>
74575
74576         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74577         memcpy.
74578
74579 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74580
74581         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74582         (SIZE_MAX): Remove.
74583         (new_exclude, add_exclude_file): Initial size no longer needs to
74584         be a power of 2.
74585         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74586         our own address arithmetic overflow checking.
74587
74588         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74589         (fnmatch): Do not alloca more than 2000 wide characters;
74590         instead, use malloc for large buffers.
74591         Check for address arithmetic overflow, and return -1
74592         with errno set to ENOMEM in that case.
74593         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74594         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74595         instead, return -1.  Check for address arithmetic overflow.
74596
74597 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74598
74599         Handle invalid suffixes and overflow independently, so that
74600         callers can treat them independently as needed.  Fix some bugs in
74601         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74602         suffix for a human-readable blocksize.  The major caller-visible
74603         change is the addition of a new
74604         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74605         that both overflow and suffix chars were found.
74606
74607         * lib/human.c (humblock): Don't check separately for invalid suffix
74608         char; that is xstrtoumax's job (now that its bug is fixed).
74609         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74610         INTMAX_MAX]: New macros.
74611         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74612         TYPE_MAXIMUM): New macros.
74613         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74614         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74615         if overflow occurs, as it's what __strtol does and it's more useful
74616         in practice.
74617         (__xstrtol): If __strtol reports some error other than ERANGE,
74618         reflect it to the caller as LONGINT_INVALID.  If it reports
74619         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74620         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74621         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74622         value.
74623         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74624         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74625         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74626         [defined UINTMAX_MAX]: New macros.
74627
74628 2003-10-14  Bruno Haible  <bruno@clisp.org>
74629
74630         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74631
74632 2003-10-14  Bruno Haible  <bruno@clisp.org>
74633
74634         * m4/sig_atomic_t: New file, from GNU gettext.
74635         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74636
74637 2003-10-14  Bruno Haible  <bruno@clisp.org>
74638
74639         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74640         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74641         Also use volatile where needed.
74642
74643 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74644
74645         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74646         Change maintainer from Bruno Haible to 'all'.
74647
74648 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74649
74650         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74651
74652 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74653
74654         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74655         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74656         and define in terms of the other primitives.
74657         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74658         (SIZE_MAX): Define if not already defined.
74659         (array_size_overflow): New function.
74660         (xalloc_die): Abort instead of exiting if 'error' returns.
74661         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74662         (xmalloc, xrealloc): Use them.
74663         (xcalloc): Check for address arithmetic overflow.
74664         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74665         a bit faster than strcpy.
74666
74667 2003-10-10  Simon Josefsson  <jas@extundo.com>
74668
74669         * modules/argp (Depends-on): Add restrict and strcase.
74670
74671 2003-10-10  Simon Josefsson  <jas@extundo.com>
74672
74673         * m4/argp.m4: Add AC_C_INLINE.
74674
74675 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74676
74677         Merge getpass from libc, plus a few fixes.
74678
74679         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74680         Include <stdbool.h>.
74681         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74682         __fsetlocking to empty.
74683         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74684         do include <bits/libc-lock.h>.
74685         Do not include <fcntl.h>; not needed.
74686         [_LIBC]: Include <wchar.h>.
74687         (NOTCANCEL_MODE): New macro.
74688         (flockfile, funlockfile) [_LIBC]: New macros.
74689         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74690         [!_LIBC]: New macros.
74691         (call_fclose): New function.
74692         (getpass): Use it.  Save tty stream separately; this simplifies the
74693         code and makes it more reliable if stdin happens to equal stdout.
74694         Invoke __fsetlocking on tty.
74695         Handle thread cancellation if needed.
74696         Namespace cleanup (use __tcgetattr, __getline).
74697         Use bool for Booleans.
74698         [USE_IN_LIBIO]: Handle wide streams.
74699         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74700         stream might go where.
74701
74702         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74703         doesn't have to include <stdio.h> before us.
74704         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74705         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74706         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74707         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74708         if not declared, so that we can use getpass.c code from libc without
74709         rewriting it.
74710         (flockfile, ftrylockfile, funlockfile): New macros.
74711
74712 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74713
74714         * modules/getpass: Depend on stdbool.
74715
74716 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74717
74718         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74719
74720 2003-10-07  Karl Berry  <karl@gnu.org>
74721
74722         * config/config.{guess,sub}: update from config.
74723
74724 2003-10-06  Jim Meyering  <jim@meyering.net>
74725             Bruno Haible  <bruno@clisp.org>
74726
74727         This lets translators provide better translations for the
74728         "Written by ..." part of --version output.
74729         * lib/version-etc.h: Include stdarg.h.
74730         (version_etc_copyright): Declare as readonly.
74731         (version_etc): Make this function variadic with a NULL-terminated list
74732         of author name strings.
74733         (version_etc_va): New declaration.
74734         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74735         (version_etc_copyright): Declare as readonly.
74736         (version_etc_va): New function. Provide a different translatable string
74737         for each possible number of authors < 10. Abbreviate when there are 10
74738         authors or more.
74739         (version_etc): Make this function variadic. Call version_etc_va.
74740         Suggestion from Gary V. Vaughan.
74741
74742         * lib/long-options.h (parse_long_options): Change prototype: the
74743         authors string is moved to the end and becomes variadic.
74744         * lib/long-options.c: Include stdarg.h.
74745         (parse_long_options): Make this function variadic, too.
74746         Call version_etc_va, not version_etc.
74747
74748 2003-10-06  Bruno Haible  <bruno@clisp.org>
74749
74750         * modules/version-etc-2: Remove file.
74751         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74752
74753 2003-10-06  Bruno Haible  <bruno@clisp.org>
74754
74755         * modules/fatal-signal: New file.
74756         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74757
74758 2003-10-06  Bruno Haible  <bruno@clisp.org>
74759
74760         * m4/fatal-signal.m4: New file.
74761         * m4/signalblocking.m4: New file, from GNU gettext.
74762
74763 2003-10-06  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/version-etc-2.h: Remove file.
74766         * lib/version-etc-2.c: Remove file.
74767
74768 2003-10-06  Bruno Haible  <bruno@clisp.org>
74769
74770         * lib/fatal-signal.h: New file, from GNU gettext.
74771         * lib/fatal-signal.c: New file, from GNU gettext.
74772
74773 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74774
74775         * README: Rework advice for preventing empty .o files.
74776         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74777         not <sys/types.h>.
74778
74779 2003-10-04  Karl Berry  <karl@gnu.org>
74780
74781         * lib/argp*: update from libc.
74782
74783 2003-10-04  Karl Berry  <karl@gnu.org>
74784
74785         * config/config.{guess,sub}: update from config.
74786
74787 2003-10-02  Bruno Haible  <bruno@clisp.org>
74788
74789         * modules/lchown (Include): Add lchown.h.
74790         * modules/time_r (Include): Use "..." syntax.
74791         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74792
74793 2003-10-01  Simon Josefsson  <jas@extundo.com>
74794
74795         * MODULES.html.sh (func_all_modules): Move gethostname from section
74796         'based on' to section 'lacking' POSIX:2001.
74797
74798 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74799
74800         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74801         to output mode on the same stream.
74802
74803 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74804
74805         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74806         Fix arg typo in previous patch.
74807
74808 2003-09-28  Jim Meyering  <jim@meyering.net>
74809
74810         * lib/error.c: Correct cpp indentation.
74811
74812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74813
74814         * modules/free: New file.
74815
74816 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74817
74818         * m4/free.m4: New file.
74819
74820 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74821
74822         * lib/minmax.h (MIN, MAX)
74823         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74824         Omit the special code that used __typeof__, since we worry that
74825         it could be more trouble than it's worth.  See:
74826         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74827         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74828
74829         * lib/free.c: New file.
74830
74831 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74832
74833         Trivial fixes to Makefile.am parts of module listings.
74834         * modules/strstr: Append strstr.h to lib_SOURCES.
74835         * modules/strcase: Likewise, for strcase.h.
74836
74837 2003-09-27  Karl Berry  <karl@gnu.org>
74838
74839         * config/mkinstalldirs: update from automake.
74840
74841 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74842
74843         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74844         (error_tail): Do not loop, reallocating temporary buffer, since
74845         the output cannot contain more wide characters than the input
74846         contains bytes, the size must be big enough already.  This avoids
74847         one potential size overflow calculation.  Check for size overflow
74848         when calculating temporary buffer size.  Free temporary buffer
74849         when done, if it was allocated with malloc; this plugs a memory
74850         leak.  Remove casts from void * to pointers, that are no longer
74851         needed now that we're assuming C89 or better.
74852
74853         Merge error changes from glibc.
74854
74855         * lib/error.c, error.h: Update copyright notice header to match glibc.
74856         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74857         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74858         Disable cancellation while printing error.
74859         * lib/error.h: Prepend __ to parameter names.
74860
74861 2003-09-26  Jim Meyering  <jim@meyering.net>
74862
74863         * lib/error.c (error_tail): Move some declarations
74864         into inner scope where the local variables are used.
74865
74866 2003-09-26  Bruno Haible  <bruno@clisp.org>
74867
74868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74869         stpncpy().
74870         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74871
74872 2003-09-26  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74875         (stpncpy): Define as alias for gnu_stpncpy.
74876         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74877
74878 2003-09-25  Simon Josefsson  <jas@extundo.com>
74879
74880         * lib/xgetdomainname.h: New file.
74881         * lib/xgetdomainname.c: New file.
74882
74883 2003-09-25  Simon Josefsson  <jas@extundo.com>
74884             Bruno Haible  <bruno@clisp.org>
74885
74886         * modules/getdomainname: New file.
74887         * modules/xgetdomainname: New file.
74888         * MODULES.html.sh (func_all_modules): Add getdomainname,
74889         xgetdomainname.
74890
74891 2003-09-25  Simon Josefsson  <jas@extundo.com>
74892             Bruno Haible  <bruno@clisp.org>
74893
74894         * m4/getdomainname.m4: New file.
74895
74896 2003-09-25  Simon Josefsson  <jas@extundo.com>
74897             Bruno Haible  <bruno@clisp.org>
74898
74899         * lib/getdomainname.h: New file.
74900         * lib/getdomainname.c: New file.
74901
74902 2003-09-25  Karl Berry  <karl@gnu.org>
74903
74904         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74905
74906 2003-09-25  Karl Berry  <karl@gnu.org>
74907
74908         * config/install-sh: update from automake.
74909
74910 2003-09-25  Bruno Haible  <bruno@clisp.org>
74911
74912         * modules/version-etc-2: New file, from modules/version-etc with
74913         modifications.
74914         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74915
74916 2003-09-25  Bruno Haible  <bruno@clisp.org>
74917
74918         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74919         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74920
74921 2003-09-24  Simon Josefsson  <jas@extundo.com>
74922
74923         * modules/xgethostname: Add xgethostname.h.
74924
74925 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74926
74927         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74928         the buffer associated with the argument.  Bug reported by
74929         Simon Josefsson.
74930
74931 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74932
74933         * README: Document assumptions that 'int' is at least 32 bits
74934         wide, that integer arithmetic is 2's complement without overflow,
74935         that there are no holes in integer values, that adding sizes of
74936         two nonoverlapping objects can't overflow, and that all-bits-zero
74937         yields scalar zero.  Fix spelling and capitalization typos.
74938
74939 2003-09-19  Karl Berry  <karl@gnu.org>
74940
74941         * lib/argp.h: update from libc.
74942
74943 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74944
74945         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74946         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74947         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74948
74949 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74950
74951         * gnulib-tool: Use "test -h", not "test -L", for portability
74952         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74953         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74954         (sed_extract_prog): Issue s commands one-by-one, rather than
74955         using \| in one s command.
74956
74957 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74958
74959         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74960         input error, instead of returning NULL the next time we are called
74961         (and therefore losing track of errno).
74962
74963 2003-09-16  Bruno Haible  <bruno@clisp.org>
74964
74965         * gnulib-tool (func_create_testdir): Warn about duplicated
74966         dependencies.
74967
74968 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74969
74970         * modules/argmatch, modules/fatal, modules/obstack,
74971         modules/xalloc, modules/xgethostname: Sort dependencies by
74972         importance, not alphabetically.
74973
74974 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74975
74976         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74977         fails, so that the caller gets the proper errno.
74978
74979         * lib/readutmp.c (read_utmp): Likewise.
74980         Check for fstat error.  Close stream and free storage
74981         when failing.
74982
74983 2003-09-14  Karl Berry  <karl@gnu.org>
74984
74985         * config/srclist.txt (strdup.c): disable for c89 changes.
74986
74987 2003-09-14  Jim Meyering  <jim@meyering.net>
74988
74989         * lib/getloadavg.c: Correct cpp indentation.
74990         * lib/strdup.c: Likewise.
74991         * lib/vasnprintf.c: Likewise.
74992
74993 2003-09-14  Bruno Haible  <bruno@clisp.org>
74994
74995         * modules/fwriteerror: New file.
74996         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74997
74998 2003-09-14  Bruno Haible  <bruno@clisp.org>
74999
75000         * lib/fwriteerror.h: New file.
75001         * lib/fwriteerror.c: New file.
75002
75003 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75004
75005         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75006         modules/xgethostname, modules/xalloc: Depend on exit.
75007
75008 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75009
75010         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75011
75012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75013         and AC_MINIX, too, so that their extensions are available.
75014
75015         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75016         This macro has been superseded by gl_BACKUPFILE.
75017
75018         More patches to assume C89 or better.
75019
75020         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75021
75022         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75023         unconditionally.
75024         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75025         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75026         Include <string.h>, <stdlib.h> unconditionally.
75027         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75028         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75029         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75030         headers or for string.h.
75031         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75032         or strtoul.
75033
75034         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75035         headers.
75036         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75037         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75038         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75039         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75040         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75041         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75042         memcpy, memset.
75043         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75044         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75045         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75046         strtol.
75047         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75048         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75050         strtoul.
75051
75052 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75053
75054         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75055         * lib/obstack.c [!defined _LIBC]: Likewise.
75056         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75057         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75058         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75059
75060         More changes to assume C89 or better.
75061
75062         * lib/error.c (error_tail): Assume vprintf.
75063
75064         * lib/argmatch.c (getenv): Remove decl.
75065         * lib/progreloc.c (get_full_program_name): Define via prototype.
75066         * lib/setenv.c (clearenv): Likewise.
75067         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75068         needed.
75069         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75070         (malloc, memcpy): Remove decls.
75071         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75072         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75073         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75074         (memcpy): Remove macro.
75075         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75076         (__P): Remove.  All uses removed.
75077         (PTR): Remove.  All uses changed to void *.
75078         (CHAR_BIT, NULL): Remove.
75079         (spaces, zeros, memset_space, memset_zero)
75080         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75081         Remove.
75082         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75083         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75084         Define with prototype.
75085         Remove now-unnecessary prototype decl.
75086         (extra_args_spec): Assume ANSI C.  All uses changed.
75087         (extra_args_spec_iso): Remove.
75088         (my_strftime, emacs_strftimeu): Define via prototype.
75089         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75090         unconditionally.
75091         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75092         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75093         (strtoul, strtol): Remove decls.
75094         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75095         LONG_MAX): Remove.
75096         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75097         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75098         (LOCALE_PARAM_PROTO): New macro.
75099         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75100         (INTERNAL (strtol), strtol): Define with a prototype.
75101         (PARAMS): Remove.  All uses removed.
75102         * lib/tempname.c: Include <string.h> unconditionally.
75103         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75104         * lib/xgethostname.c (main): Define with a prototype.
75105         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75106         Include <stdlib.h> unconditionally.
75107         (calloc, malloc, realloc, free): Remove decls.
75108         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75109         Include <stdlib.h> unconditionally.  Sort include file names.
75110         (strtod): Remove.
75111         (xstrtod): Define with a prototype.
75112         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75113         (strtol, strtoul): Remove decls.
75114
75115 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75116
75117         More patches to assume C89 or better.
75118         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75119         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75120         string.h, memchr, STDC_HEADERS.
75121
75122 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75123
75124         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75125         Include <stdlib.h>, <string.h> unconditionally.
75126         Remove now-unnecessary cast to char *.
75127         * lib/strnlen.c: Include <string.h> unconditionally.
75128         * lib/yesno.c (yesno): Define with a prototype.
75129
75130 2003-09-11  Bruno Haible  <bruno@clisp.org>
75131
75132         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75133
75134 2003-09-10  Jim Meyering  <jim@meyering.net>
75135
75136         * lib/error.c: Correct indentation of cpp directives.
75137
75138 2003-09-10  Bruno Haible  <bruno@clisp.org>
75139
75140         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75141         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75142         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75143         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75144         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75145         <stdlib.h> and <string.h> checks.
75146         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75147         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75148
75149 2003-09-10  Bruno Haible  <bruno@clisp.org>
75150
75151         * lib/strcspn.c: Include <string.h> unconditionally.
75152         * lib/strpbrk.c: Include <string.h> unconditionally.
75153         * lib/strstr.c: Include <string.h> unconditionally.
75154         * lib/unicodeio.c: Include <string.h> unconditionally.
75155         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75156         * lib/unsetenv.c: Likewise.
75157         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75158         * lib/yesno.c: Include <stdlib.h> unconditionally.
75159         (rpmatch): Add prototype.
75160
75161 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75162
75163         More patches to assume C89 or better.
75164         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75165         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75166         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75167         or for string.h.
75168         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75169         stdlib.h.
75170         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75171         C headers.
75172         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75173         string.h.
75174         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75175         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75176         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75177         or for string.h.
75178         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75179         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75180         C headers.
75181         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75182         memcpy.
75183         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75184         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75185         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75186         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75187         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75188         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75189         string.h, free.
75190         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75191         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75192         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75193         C headers, or for string.h.
75194         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75195         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75196         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75197         headers, memory.h, stdlib.h, string.h, strings.h.
75198         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75199         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75200         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75201         strchr.
75202         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75203         headers, memory.h, string.h.
75204         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75205         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75206         free.
75207         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75208         headers.
75209         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75210         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75211         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75212         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75213         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75214
75215 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75216
75217         More K&R removal.
75218
75219         * lib/acosl.c (main): Use a prototype.
75220         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75221         tanl.c: Likewise.
75222
75223         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75224
75225         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75226         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75227         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75228         with a prototype.
75229         * lib/getopt.c (const): Remove macro.
75230         Include <string.h> unconditionally.
75231         (my_index): Remove; all uses changed to strchr.
75232         (strlen): Remove decl.
75233         (exchange): Remove forward decl; no longer needed.
75234         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75235         Define with prototype.
75236         * lib/getopt1.c (const): Remove macro.
75237         (getopt_long, getopt_long_only, main): Define with prototype.
75238
75239         * lib/getugroups.c: Include <string.h> unconditionally.
75240
75241         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75242         (getusershell, setusershell, endusershell, readname, main):
75243         Define with prototypes.
75244
75245         * lib/group-member.c: Include group-member.h first.
75246         Include <stdlib.h> unconditionally.
75247
75248         * lib/hard-locale.c: Include hard-locale.h first.
75249         Include <stdlib.h>, <string.h> unconditionally.
75250
75251         * lib/hash.c (free, malloc): Remove decls.
75252         Include <stdlib.h> unconditionally.
75253
75254         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75255         (getenv): Do not declare.
75256
75257         * lib/idcache.c: Include <string.h> unconditionally.
75258
75259         * lib/long-options.c: Include long-options.h first, to test interface.
75260         Include <stdlib.h> unconditionally.
75261
75262         * lib/makepath.c: Include makepath.h first, to test interface.
75263         Include <stdlib.h> and <string.h> unconditionally.
75264
75265         * lib/linebuffer.c: Include <stdlib.h>.
75266         (free): Remove decl.
75267
75268         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75269         stddef.h. rpl_malloc returns void *, not char *.
75270         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75271         prototype.
75272
75273         * lib/md5.h: Include <limits.h> unconditionally.
75274         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75275         (__P): Remove; all uses removed.
75276         * lib/md5.c: Include "md5.h" first.
75277         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75278         md5_buffer, md5_process_bytes, md5_process_block):
75279         Define with prototypes.
75280         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75281         * lib/sha.c: Include "sha.h" first.
75282         Include <stdlib.h>, <string.h> unconditionally.
75283
75284         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75285         * lib/memcmp.c (__ptr_t): Likewise.
75286         * lib/memrchr.c (__ptr_t): Likewise.
75287         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75288         Include <string.h> unconditionally.
75289         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75290         * lib/memchr.c: Include <stdlib.h> unconditionally.
75291         * lib/memchr.c (LONG_MAX): Remove.
75292         * lib/memrchr.c (LONG_MAX): Likewise.
75293         * lib/memchr.c (__memchr): Define via a prototype.
75294         * lib/memrchr.c (__memrchr): Likewise.
75295         * lib/memcmp.c (__P): Remove, and remove all uses.
75296         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75297         Remove forward decls; no longer needed.
75298         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75299         Use types required by C89 in prototype.
75300
75301         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75302         * lib/savedir.c: Likewise.
75303         * lib/mkdir.c (free): Remove decl.
75304         * lib/rmdir.c (rmdir): Define with a prototype.
75305         * lib/savedir.c: Include savedir.h first, to test interface.
75306
75307         * lib/mktime.c (STDC_HEADERS): Remove.
75308         Include <stdlib.h>, <string.h> unconditionally.
75309
75310         * lib/modechange.c: Include <stdlib.h> unconditionally.
75311         (malloc): Remove decl.
75312
75313         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75314         (free): Remove decl.
75315
75316         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75317         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75318         (This type really should be intptr_t, but that's a C99ism.)
75319         (_obstack_memcpy): Remove: all uses changed to memcpy.
75320         Include <string.h> unconditionally.
75321         (struct obstack): Assume __STDC__ for types of members
75322         chunkfun, freefun, extra_arg.
75323         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75324         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75325         obstack_begin, obstack_specify_allocation,
75326         obstack_specify_allocation_with_arg, obstack_chunkfun,
75327         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75328         Remove unprototyped decls and the macros that use them.
75329         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75330         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75331         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75332         (defined __STDC__ && __STDC__)]:
75333         Remove nonprototyped code.
75334         Include <stdlib.h> unconditionally.
75335         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75336         _obstack_allocated_p, _obstack_free, obstack_free,
75337         _obstack_memory_used, print_and_abort):
75338         Define using prototypes.
75339         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75340         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75341         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75342         obstack_next_free, obstack_object_size, obstack_room) [0]:
75343         Remove unused, unprototyped code.
75344
75345         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75346
75347         * lib/physmem.c (physmem_total, physmem_available, main): Define
75348         with prototypes.
75349
75350         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75351         (main): Define with a prototype.
75352
75353         * lib/posixver.c (getenv): Remove decl.
75354
75355         * lib/putenv.c (malloc): Returns void *, not char *.
75356         Include <string.h> unconditionally.
75357         (strchr, memcpy, NULL): Do not define.
75358
75359         * lib/readtokens.c: Include readtokens.h first, to test interface.
75360         Include <stdlib.h>, <string.h> unconditionally.
75361         (init_tokenbuffer): Define with a prototype.
75362
75363         * lib/regex.c (PARAMS): Remove.  All uses removed.
75364         All uses of _RE_ARGS removed, too.
75365         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75366         unconditionally.
75367         (bzero): Assume memset exists.
75368         (memcmp, memcpy, NULL): Remove.
75369         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75370         char, or assignments to local vars of type signed char.
75371         (init_syntax_once, PREFIX(extract_number_and_incr),
75372         PREFIX(print_partial_compiled_pattern),
75373         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75374         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75375         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75376         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75377         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75378         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75379         wcs_compile_range, byte_compile_range, truncate_wchar,
75380         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75381         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75382         count_mbs_length, wcs_re_match_2_internal,
75383         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75384         PREFIX(alt_match_null_string_p),
75385         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75386         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75387         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75388         now-unnecessary declaration, if any.
75389         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75390         regcomp, regexec):
75391         Remove now-unnecessary casts among pointer types.
75392         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75393
75394         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75395         (free): Remove decl.
75396
75397         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75398
75399         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75400         (free): Remove decl.
75401
75402         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75403         * lib/xgetcwd.c: Likewise.
75404
75405         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75406         (free): Remove decl.
75407
75408         * lib/strchrnul.c (strchrnul): Define with a prototype.
75409         Fix bug: c_in was not converted to char before searching.
75410
75411         The following changes are not K&R related:
75412
75413         * lib/group-member.h: Include <sys/types.h>, so that this file is
75414         self-contained.
75415         * lib/makepath.h: Likewise.
75416
75417         * lib/getusershell.c (readname, default_index, line_size, readname):
75418         Use size_t, not int, for sizes.
75419         (readname): If the size overflows, report an error instead of
75420         looping forever.
75421
75422 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75423
75424         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75425         libc.
75426
75427 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75428
75429         * README: New section: portability guidelines.
75430
75431 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75432
75433         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75434         C89 spec.
75435
75436 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75437
75438         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75439
75440 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75441
75442         Assume C89 or better; remove K&R cruft.
75443         A few of these changes were first proposed by Derek Robert Price
75444         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75445
75446         * lib/addext.c: Include <string.h> unconditionally.
75447         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75448         Don't declare getenv or malloc.
75449
75450         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75451         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75452         (NULL): Remove.
75453         (find_stack_direction, alloca): Use prototypes.
75454
75455         * lib/atexit.c (atexit): Define using a prototype.
75456
75457         * lib/basename.c, dirname.c, stripslash.c:
75458         Include <string.h> unconditionally.
75459
75460         * lib/bcopy.c: Include <stddef.h>.
75461         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75462
75463         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75464
75465         * lib/error.h (error, error_at_line, error_print_progname)
75466         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75467         * lib/error.c: Include error.h first, to check interface.
75468         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75469         (VA_START): Remove; all uses changeed to va_start.
75470         (exit, strerror): Remove decls.
75471         (error_print_progname): Prototype uncondionally.
75472         Don't include <errno.h>; no longer needed.
75473         (private_strerror): Remove.
75474         (error_tail): Always define.
75475         (error, error_at_line): Assume C89 or better; always use prototypes.
75476         * lib/fatal.c: Include "fatal.h" first, to test interface.
75477         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75478         (VA_START): Remove; all uses changed to va_start.
75479         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75480         this case.
75481         (exit): Remove decl.
75482         (fatal): Prototype unconditionally.  Assume va_start works.
75483         Abort at end, to pacify gcc.
75484
75485         * lib/euidaccess.c (main): Define with a prototype.
75486
75487         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75488
75489         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75490
75491         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75492         prototypes.
75493         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75494         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75495         (getenv): Remove decl.
75496         (fnmatch): Define using a prototype.
75497         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75498         (FCT): Define using a prototype.
75499
75500         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75501
75502         * lib/gethostname.c: Include <stddef.h>.
75503         (gethostname): Define with prototype.  Length is size_t, not int.
75504
75505 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75506
75507         Assume C89 or better; remove K&R cruft.
75508         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75509         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75510         string.h, getenv, malloc.
75511         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75512         headers.
75513         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75514         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75515         do not check for strerror.
75516         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75517         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75518         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75519         do not check for doprnt or vprintf.
75520         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75521         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75522
75523 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75524
75525         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75526         getversion.c should have been removed then, but was accidentally
75527         preserved.
75528
75529         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75530         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75531
75532 2003-09-08  Karl Berry  <karl@gnu.org>
75533
75534         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75535                 config, forget about prep.
75536
75537         * config/depcomp, missing: update from automake.
75538
75539 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75540
75541         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75542         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75543
75544 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75545
75546         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75547         copy_tm_result.  Bug reported by Simon Josefsson in
75548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75549
75550 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75551
75552         * m4/time_r.m4: New file.
75553         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75554         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75555         is. Check for timegm declaration.
75556         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75557         Do not check for gmtime_r.
75558         Replace mktime if __mktime_internal does not exist and if mktime
75559         hasn't been replaced already.
75560
75561 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75562
75563         * lib/time_r.c, lib/time_r.h: New files.
75564
75565         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75566         __localtime_r.
75567         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75568         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75569
75570         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75571         __gmtime_r.
75572         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75573         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75574         Include <time_r.h>.
75575
75576         * lib/timegm.c: Switch to glibc implementation, with the following
75577         changes:
75578         [defined HAVE_CONFIG_H]: Include <config.h>.
75579         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75580         (__mktime_internal) [!defined _LIBC]: New decl.
75581         (__gmtime_r) [!defined _LIBC]: New macro and function.
75582         (timegm): Use a prototype, since gnulib assumes C89.
75583         Do not bother declaring tmp to be const, as it's not really usefu.
75584         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75585         (timegm): Declare only if HAVE_DECL_TIMEGM.
75586
75587 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75588
75589         * MODULES.html.sh (func_all_modules): Add time_r.
75590         * modules/time_r: New file.
75591         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75592         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75593
75594 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75595
75596         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75597         Bug reported by Lute Kamstra in
75598         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75599
75600         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75601         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75602         course with correspondingly smaller numbers for tomorrow and
75603         yesterday.  From Tadayoshi Funaba.  Originally installed into
75604         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75605         coreutils merge?).
75606
75607 2003-08-31  Simon Josefsson  <jas@extundo.com>
75608
75609         * modules/timegm: New file.
75610         * MODULES.html.sh (func_all_modules): Add timegm.
75611
75612 2003-08-31  Simon Josefsson  <jas@extundo.com>
75613
75614         * m4/timegm.m4: New file.
75615
75616 2003-08-31  Simon Josefsson  <jas@extundo.com>
75617
75618         * lib/timegm.h: New file.
75619         * lib/timegm.c: New file.  Based on
75620         wget-1.8.2/src/http.c:mktime_from_utc.
75621
75622 2003-08-31  Karl Berry  <karl@gnu.org>
75623
75624         * lib/argp.h: update from libc.
75625
75626 2003-08-28  Bruno Haible  <bruno@clisp.org>
75627
75628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75629         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75630         followed by '#define fnmatch fnmatch_posix' gives an error.
75631
75632 2003-08-28  Bruno Haible  <bruno@clisp.org>
75633
75634         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75635         warning on QNX, which defines O_BINARY to 000000.
75636
75637 2003-08-27  Jim Meyering  <jim@meyering.net>
75638
75639         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75640         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75641         would fail after 32.  Reported by Danny Levinson.  Details here:
75642         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75643
75644 2003-08-24  Bruno Haible  <bruno@clisp.org>
75645
75646         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75647         MSVC7 <stdio.h> is included later.
75648
75649 2003-08-22  Simon Josefsson  <jas@extundo.com>
75650
75651         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75652
75653 2003-08-20  Karl Berry  <karl@gnu.org>
75654
75655         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75656
75657 2003-08-20  Bruno Haible  <bruno@clisp.org>
75658
75659         * modules/progname: New file.
75660         * MODULES.html.sh (func_all_modules): Add progname.
75661
75662 2003-08-20  Bruno Haible  <bruno@clisp.org>
75663
75664         * lib/progname.h: New file, from GNU gettext.
75665         * lib/progname.c: New file, from GNU gettext.
75666         * lib/progreloc.c: New file, from GNU gettext.
75667
75668 2003-08-19  Jim Meyering  <jim@meyering.net>
75669
75670         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75671         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75672
75673 2003-08-19  Bruno Haible  <bruno@clisp.org>
75674
75675         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75676         more.
75677
75678 2003-08-19  Bruno Haible  <bruno@clisp.org>
75679
75680         * lib/xstrdup.c: Assume <string.h> exists.
75681
75682 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75683
75684         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75685         in makefile rules.
75686
75687 2003-08-18  Jim Meyering  <jim@meyering.net>
75688
75689         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75690         * m4/lib-ld.m4: Likewise.
75691
75692 2003-08-18  Jim Meyering  <jim@meyering.net>
75693
75694         * lib/setenv.h: Indent nested cpp directive.
75695         * lib/vasnprintf.c: Remove trailing blanks.
75696
75697 2003-08-17  Simon Josefsson  <jas@extundo.com>
75698
75699         * modules/xstrndup: New file.
75700         * MODULES.html.sh (func_all_modules): Add xstrndup.
75701
75702 2003-08-17  Simon Josefsson  <jas@extundo.com>
75703
75704         * modules/argp: Fix autoconf macro name. Add more dependencies.
75705
75706 2003-08-17  Simon Josefsson  <jas@extundo.com>
75707
75708         * m4/xstrndup.m4: New file.
75709
75710 2003-08-17  Simon Josefsson  <jas@extundo.com>
75711
75712         * m4/argp.m4: New file.
75713
75714 2003-08-17  Simon Josefsson  <jas@extundo.com>
75715             Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/xstrndup.h: New file.
75718         * lib/xstrndup.c: New file.
75719
75720 2003-08-17  Bruno Haible  <bruno@clisp.org>
75721
75722         * modules/strndup (Files, Include): Add lib/strndup.h.
75723
75724 2003-08-17  Bruno Haible  <bruno@clisp.org>
75725
75726         * modules/euidaccess (Files): Add lib/euidaccess.h.
75727
75728 2003-08-17  Bruno Haible  <bruno@clisp.org>
75729
75730         * lib/strndup.h: New file.
75731
75732 2003-08-17  Bruno Haible  <bruno@clisp.org>
75733
75734         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75735         like AC_GNU_SOURCE.
75736         * modules/extensions (configure.ac): Comment out the invocation of
75737         gl_USE_SYSTEM_EXTENSIONS.
75738
75739 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75740
75741         Merges from coreutils, etc.
75742         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75743         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75744         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75745         fixing a typo.
75746         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75747         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75748
75749 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75750
75751         Document merge from coreutils.
75752         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75753         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75754         * modules/utime: Add m4/utimes-null.m4.
75755
75756 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75757
75758         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75759         space, undoing this 2003-08-12 change:
75760         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75761
75762 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75763
75764         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75765         strtoul.c from libc, undoing this 2003-08-12 change:
75766         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75767
75768 2003-08-16  Jim Meyering  <jim@meyering.net>
75769
75770         Merges from coreutils.
75771         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75772         prefix.  Adjust cache variables similarly.  Create 500 rather than
75773         just 300 files, to exercise bug on Darwin6.5, too.
75774         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75775         $missing_dir.
75776         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75777         AM_SYS_POSIX_TERMIOS.
75778         Reported by mkc@mathdogs.com.
75779         Also change use of $am_cv_sys_posix_termios
75780         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75781         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75782         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75783         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75784         in /proc/mounts until it finds one with matching device number.  This
75785         is unnecessary when the FILE argument *is* a mount point.  No stat call
75786         is necessary in that case.  So, disable the statvfs-testing code on
75787         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75788         as RedHat bug# 84846.
75789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75790         to 1MB, so as not to render systems with no stack size limit (e.g.,
75791         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75792         Include <unistd.h>.  On some systems,
75793         it is required for the definition of _SC_PAGESIZE.
75794
75795 2003-08-16  Jim Meyering  <jim@meyering.net>
75796
75797         Merge from coreutils.
75798         * lib/xstrtoimax.c: #else #if -> #elif.
75799         * lib/xstrtoumax.c: Likewise.
75800
75801 2003-08-16  Jim Meyering  <jim@meyering.net>
75802
75803         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75804         * m4/utimes.m4: Removed.
75805         * m4/utimes-null.m4: Renamed from utimes.m4.
75806
75807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75808         to 1MB, so as not to render systems with no stack size limit (e.g.,
75809         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75810         Include <unistd.h>.  On some systems,
75811         it is required for the definition of _SC_PAGESIZE.
75812
75813 2003-08-16  Jim Meyering  <jim@meyering.net>
75814         and Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         Merges from coreutils, etc.
75817
75818         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75819         using the latest version from cvs.  This avoids problems with #line
75820         directives using a vendor (Sun) compiler.
75821         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75822         Don't set GETGROUPS_LIB here; now it's
75823         done via getgroups.m4's wrapper function.
75824         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75825         rather than just in sh-util/configure.in, so that the
75826         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75827         same.
75828         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75829         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75830         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75831         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75832         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75833         Remove code that is now done by the newly-required macros.
75834         Append $(EXEEXT) to DF_PROG.
75835         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75836         Do not invoke or require the following here,
75837         since prereq.m4 or some gnulib .m4 now does this for us:
75838         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75839         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75840         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75841         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75842         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75843         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75844         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75845         AC_FUNC_OBSTACK.
75846         Do not replace the following functions, as this is now the job
75847         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75848         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75849         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75850         atexit getpass, strdup, getpagesize.
75851         Replace 'raise'.
75852         Do not check for the following functions, as this is now the job
75853         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75854         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75855         setregid.
75856         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75857         Check for sys/sysctl.h.
75858         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75859         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75860         of checking for ssize_t ourselves.
75861
75862         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75863         Require every macro that gnulib/modules/* suggests for us.
75864         (jm_PREREQ_ADDEXT): New macro.
75865         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75866         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75867
75868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75869         (gl_PHYSMEM): Use it.
75870         Also check for `table' function.
75871         Check for new headers and functions.
75872         Add check for sys/sysmp.h.
75873         With suggestions from Kaveh Ghazi.
75874         Ignore headers that are present but cannot be compiled.  This
75875         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75876         C 5.4.
75877
75878 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75879
75880         Document merge from coreutils.
75881         * modules/userspec: Depend on posixver.
75882         * modules/strftime: Depend on tzset.
75883
75884 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75885
75886         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75887         rather than tab, after '#' in shell-script copyright notices.
75888         Suggested by Bruno Haible.
75889
75890 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75891
75892         * config/srclist-update: Use three spaces, rather than tab, after '#'
75893         in shell-script copyright notices.  Suggested by Bruno Haible.
75894         Remove unnecessary parenthesization in regular expression.
75895
75896 2003-08-15  Jim Meyering  <jim@meyering.net>
75897
75898         Merge from coreutils.
75899         * lib/xgethostname.c: Include <stdlib.h>.
75900         (xghostname): Don't exit for anything other than memory-related
75901         failure; just return NULL.
75902         * lib/userspec.c: Include "posixver.h".
75903         (parse_user_spec): Accept `.' as a separator only
75904         in pre-POSIX-200112 mode.
75905         * lib/strtoimax.c: Use #elif rather than #else #if.
75906         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75907         Remove function, now that we can rely on a working tzset function.
75908         [!_LIBC]: Ensure that the required autoconf test has been run.
75909         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75910         Use underlying_strftime for %r.
75911         * lib/sha.c: Merge in some clean-up and optimization changes from
75912         glibc.
75913         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75914         Ensure that it is a multiple of 64.
75915         Rearrange loop exit tests so as to avoid performing an
75916         additional fread after encountering an error or EOF.
75917         * lib/realloc.c: Update copyright date.
75918
75919 2003-08-15  Jim Meyering  <jim@meyering.net>
75920         and Paul Eggert  <eggert@twinsun.com>
75921
75922         Merge from coreutils.
75923         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75924         member but strut utmpx does not.  Needed for AIX 4.3.3.
75925         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75926
75927 2003-08-15  Jim Meyering  <jim@meyering.net>
75928         and Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         Merges from coreutils, etc.
75931         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75932         Require gl_FUNC_TZSET_CLOBBER.
75933         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75934         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75935         members.
75936
75937 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75938
75939         Help the merge from coreutils.
75940         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75941         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75942         * m4/tzset.m4: Use it too.
75943
75944 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75945
75946         * modules/tzset: New file.
75947
75948 2003-08-14  Jim Meyering  <jim@meyering.net>
75949
75950         Merges from coreutils.
75951         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75952         variable names, rather than @FNMATCH_H@.
75953         * modules/alloca: Likewise for $(ALLOCA_H).
75954
75955         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75956         the three copies of the literal target, `fnmatch.h'.
75957         * modules/alloca (alloca.h): Likewise.
75958
75959 2003-08-14  Jim Meyering  <jim@meyering.net>
75960
75961         Merge from coreutils.
75962         * m4/tzset.m4: New file.
75963         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75964         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75965         otherwise, AIX 5.1 systems would end up using the latter.
75966         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75967         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75968         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75969         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75970
75971 2003-08-14  Jim Meyering  <jim@meyering.net>
75972
75973         Merge from coreutils.
75974         * lib/obstack.h: Whitespace changes.
75975         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75976         and xcalloc return values.
75977         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75978         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75979         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75980         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75981         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75982         error from mntctl.
75983         Use mntctl's return value to drive the entry-processing loop, since
75984         we can't rely on the value of the vmt_length member in the last
75985         entry.  On some systems doing so could result in exhausting
75986         virtual memory.  Based in part on a patch from Mike Jetzer.
75987
75988 2003-08-14  Jim Meyering  <jim@meyering.net>
75989         and Paul Eggert  <eggert@twinsun.com>
75990
75991         Merges from coreutils, plus other fixes.
75992         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75993         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75994         for credits and details.  Thanks to Kaveh Ghazi for helping
75995         to keep these files in sync.
75996         (ARRAY_SIZE): Define it.
75997         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75998         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75999         (memcasecmp): Don't assume size_t fits in unsigned int.
76000         Remove casts and duplicate code.
76001         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76002         (memcpy): Remove definition.
76003         Merge in some clean-up and optimization changes from glibc.
76004         [BLOCKSIZE]: Move definition to top of file.
76005         Ensure that it is a multiple of 64.
76006         Rearrange loop exit tests so as to avoid performing an
76007         additional fread after encountering an error or EOF.
76008         * lib/md5.h (md5_uintptr): Define.
76009         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76010         return to the initial working directory.  Preserve errno
76011         for caller.
76012         * lib/idcache.c: Include "xalloc.h".
76013         (xmalloc, xrealloc): Remove decls.
76014         (getuser): Remove casts no longer required in C89.
76015         * lib/human.c: Include stdio.h, for sprintf.
76016         * lib/group-member.c: Include "xalloc.h".
76017         (xmalloc, xrealloc): Remove decls.
76018         (get_group_info): Remove casts no longer required in C89.
76019         * lib/getusershell.c (readname): Remove casts no longer required in
76020         C89.
76021         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76022         * lib/getline.c: Whitespace fix, from coreutils.
76023
76024 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76025
76026         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76027         Check for isascii.
76028
76029         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76030         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76031         Undo previous (whitespace-only) change.
76032
76033 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76034
76035         * lib/exclude.c: Include <ctype.h>
76036         (IN_CTYPE_DOMAIN): New macro.
76037         (is_space): New fn.
76038         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76039         and empty lines.
76040
76041         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76042         Undo previous (whitespace-only) change.
76043
76044 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76045
76046         * config/srclist-update: Change update back to the old behavior,
76047         leaving whitespace alone.  Use one 'sed' command rather than a
76048         pipeline.
76049         (fixlicense): Now a variable, not a function.
76050         (remove_trailing_blanks): Remove.
76051         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76052         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76053         Undo previous (whitespace-only) change.
76054
76055 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76056
76057         Merge from coreutils.
76058         * modules/euidaccess: Add lib_SOURCES, include for new
76059         file euidaccess.h
76060
76061 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76062
76063         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76064         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76065         Normalize leading white space and remove trailing white space.
76066
76067         Merge from coreutils
76068         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76069
76070         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76071         0.12.1.  These files are now being upgraded automatically by
76072         ../config/srclist-update.
76073
76074 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76075
76076         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76077         Normalize leading white space and remove trailing white space.
76078         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76079         notice, as per ../config/srclist-update.
76080
76081         Merge from coreutils.
76082         * lib/euidaccess.h: New file.
76083         * lib/euidaccess.c: Include it.
76084         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76085         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76086         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76087
76088 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76089
76090         * config/srclist-update: Add copyright notice.
76091         (remove_id_lines, remove_trailing_blanks): New constants.
76092         (fixfile): Use them to normalize spacing a bit in copied files.
76093         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76094         Normalize leading white space and remove trailing white space.
76095
76096         * config/texinfo.tex: Sync with texinfo.
76097
76098         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76099         strtoul.c from libc, to merge coreutils whitespace changes.
76100
76101         * config/srclist.txt: Get the following m4 files from gettext:
76102         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76103         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76104         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76105         wint_t.m4.
76106
76107 2003-08-12  Karl Berry  <karl@gnu.org>
76108
76109         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76110         been made.
76111
76112 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76113
76114         * modules/gnu-source, m4/gnu-source.m4:
76115         Remove; we're assuming Autoconf 2.54 or later now.
76116         Suggested by Bruno Haible.
76117         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76118
76119 2003-08-11  Bruno Haible  <bruno@clisp.org>
76120
76121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76122
76123 2003-08-11  Bruno Haible  <bruno@clisp.org>
76124
76125         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76126         (vasnprintf): Use it instead of wcslen.
76127
76128 2003-08-11  Bruno Haible  <bruno@clisp.org>
76129
76130         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76131         value to ensure that _Bool promotes to int. Use #define for _Bool when
76132         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76133
76134 2003-08-10  Karl Berry  <karl@gnu.org>
76135
76136         * lib/regex.h: update from libc (whitespace fix).
76137
76138 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76139
76140         Merge some files from coreutils.  These changes were
76141         originally made by Jim Meyering.
76142         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76143         many older Unixes require this.
76144         * lib/alloca.c (alloca): Remove cast to argument of free;
76145         no longer needed in C89.
76146         * lib/alloca_.h, regex.h: Fix white space to match
76147         what GNU indent does.
76148
76149 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76150
76151         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76152         apparently Emacs's Unicode mode got confused before my 2003-08-05
76153         checkin.
76154
76155 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76156
76157         * m4/extensions.m4: New file.
76158         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76159         Require gl_USE_SYSTEM_EXTENSIONS.
76160         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76161         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76162
76163 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76164
76165         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76166         * modules/extensions, modules/gnu-source: New files.
76167         * modules/timespec, modules/unlocked-io: Depend on extensions.
76168
76169 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76170
76171         * modules/restrict: New file.
76172         * MODULES.html.sh (func_all_modules): Add restrict.
76173         * modules/regex: Depend on restrict.
76174
76175 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76176
76177         * m4/restrict.m4: New file.
76178         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76179
76180 2003-08-07  Bruno Haible  <bruno@clisp.org>
76181
76182         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76183         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76184
76185 2003-08-07  Bruno Haible  <bruno@clisp.org>
76186
76187         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76188         makes the module 'getndelim2' compatible with the module 'getline'.
76189
76190 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76191
76192         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76193         byte with "\201" to avoid glitches when editing that source file
76194         with multi-gnome-terminal.
76195
76196 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76197
76198         * lib/bumpalloc.h: Remove.
76199
76200 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76201
76202         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76203         * modules/bumpalloc: Remove.
76204
76205 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76206
76207         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76208         GNU coding style.
76209
76210         Merge from coreutils.
76211         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76212         1. From glibc.
76213         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76214         from Karl Berry, implemented by Jim Meyering.
76215         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76216         from Dmitry V. Levin.
76217         Remove anachronistic cast of xrealloc.
76218         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76219         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76220         type. Otherwise, it wouldn't compile with at least /bin/cc on
76221         ymp-cray-unicos9.0.2.X.
76222         Combine two mostly-identical uses of alloca into one.
76223         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76224
76225 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76226
76227         [From Emacs.]
76228
76229         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76230         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76231         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76232         obsolete NLIST_NAME_UNION.
76233         [__GNU__]: Undef BSD and FSCALE.
76234         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76235
76236 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76237
76238         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76239         an enum type, so that it's guaranteed to promote to int.  See:
76240         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76241
76242 2003-08-03  Karl Berry  <karl@gnu.org>
76243
76244         * config/depcomp: update from automake.
76245
76246 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76247
76248         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76249         (strerror): Don't assume that a printable int fits in 14 bytes.
76250
76251 2003-07-31  Bruno Haible  <bruno@clisp.org>
76252
76253         * modules/getpass-gnu: New file.
76254         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76255
76256 2003-07-31  Bruno Haible  <bruno@clisp.org>
76257
76258         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76259
76260 2003-07-24  Karl Berry  <karl@gnu.org>
76261
76262         * config/missing: update from automake.
76263
76264 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76265             Bruno Haible  <bruno@clisp.org>
76266
76267         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76268         * lib/getline.c (getline, getdelim): Likewise.
76269         Remove _GNU_SOURCE define; now it's defined in config.h through
76270         m4/getline.m4.
76271
76272 2003-07-23  Karl Berry  <karl@gnu.org>
76273
76274         * config/config.sub: update from prep.
76275
76276 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76277
76278         * modules/xalloc (Depends-on): Add exitfail.
76279         * modules/xmemcoll: Likewise.
76280
76281 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76282
76283         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76284         over-parenthesization in macros.
76285
76286         Sync with coreutils.
76287
76288         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76289         required by C99.
76290
76291         Use `exit_failure' for xalloc and xmemcoll instead of their own
76292         private exit-failure variables.
76293         * lib/xalloc.h (xalloc_exit_failure): Remove.
76294         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76295         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76296         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76297         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76298         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76299
76300 2003-07-20  Jim Meyering  <jim@meyering.net>
76301
76302         * modules/closeout (Depends-on): Add exitfail.
76303         Suggestion from Bruno Haible.
76304
76305 2003-07-19  Karl Berry  <karl@gnu.org>
76306
76307         * config/config.sub: update from prep.
76308
76309 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76310
76311         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76312         Remove.
76313         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76314         to test that it can stand by itself.  Include "exitfail.h".
76315         Clients should set exit_failure instead.
76316         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76317
76318 2003-07-18  Bruno Haible  <bruno@clisp.org>
76319
76320         * modules/getndelim2: New file.
76321         * modules/getline: Share files with module getndelim2.
76322         * modules/getnline: Depend on getndelim2 instead of sharing files with
76323         it. Add getnline.c to lib_SOURCES.
76324         * MODULES.html.sh (func_all_modules): Add getndelim2.
76325
76326 2003-07-18  Bruno Haible  <bruno@clisp.org>
76327
76328         * m4/getndelim2.m4: New file.
76329         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76330         invoke gl_PREREQ_GETNDELIM2.
76331         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76332         gl_PREREQ_GETNDELIM2.
76333         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76334         gl_GETNDELIM2.
76335
76336 2003-07-18  Bruno Haible  <bruno@clisp.org>
76337
76338         * lib/getndelim2.h: New file.
76339         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76340         getndelim2.h.
76341         (getndelim2): Make non-static. Change return type to ssize_t.
76342         * lib/getline.h: Change argument names.
76343         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76344         * lib/getnline.c: Include getndelim2.h.
76345
76346 2003-07-18  Andreas Schwab  <schwab@suse.de>
76347
76348         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76349
76350 2003-07-17  Karl Berry  <karl@gnu.org>
76351
76352         * config/config.sub: update from prep.
76353
76354 2003-07-17  Bruno Haible  <bruno@clisp.org>
76355
76356         * modules/getnline: New file.
76357         * modules/getline: Add lib/getndelim2.c to source file list.
76358         * MODULES.html.sh (func_all_modules): Add getnline.
76359
76360 2003-07-17  Bruno Haible  <bruno@clisp.org>
76361
76362         * m4/getnline.m4: New file.
76363
76364 2003-07-17  Bruno Haible  <bruno@clisp.org>
76365
76366         * m4/Makefile.am.in: Remove file.
76367         * m4/Makefile.am: Remove file.
76368         * m4/Makefile.in: Remove file.
76369
76370 2003-07-17  Bruno Haible  <bruno@clisp.org>
76371
76372         * lib/getnline.h: New file.
76373         * lib/getnline.c: New file.
76374         * lib/getndelim2.c: New file, extracted from getline.c.
76375         (getndelim2): Renamed from getdelim2, with added nmax argument.
76376         * lib/getline.c: Include getndelim2.c.
76377         (getdelim2): Moved out to getndelim2.c.
76378         (getline, getdelim): Update.
76379
76380 2003-07-17  Bruno Haible  <bruno@clisp.org>
76381
76382         * lib/Makefile.am: Remove file.
76383         * lib/Makefile.in: Remove file.
76384
76385 2003-07-17  Bruno Haible  <bruno@clisp.org>
76386
76387         * configure.in: Remove file.
76388         * Makefile.in: Remove file.
76389
76390 2003-07-17  Bruno Haible  <bruno@clisp.org>
76391
76392         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76393
76394 2003-07-16  Karl Berry  <karl@gnu.org>
76395
76396         * config/srclist-update: was running fixlicense twice, which caused
76397                 texinfo.tex to be nullified for some reason.  Simplify,
76398                 $gplsrc is no longer needed as far as I can see?
76399
76400 2003-07-16  Jim Meyering  <jim@meyering.net>
76401
76402         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76403
76404 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76405
76406         * config/srclist.txt: Get the following files from gettext-runtime/intl
76407         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76408         ref-del.sin.  From Bruno Haible.
76409         * config/srclist-update (fixfile): Change grep pattern again, since the
76410         previous fix didn't work (there was another trailing $).  Use
76411         '[$]' to escape the $s.
76412
76413 2003-07-15  Karl Berry  <karl@gnu.org>
76414
76415         * lib/vasnprintf.c: update from gettext.
76416
76417 2003-07-15  Karl Berry  <karl@gnu.org>
76418
76419         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76420         gets expanded when surrounded by '$'.
76421
76422 2003-07-15  Jim Meyering  <jim@meyering.net>
76423
76424         * modules/save-cwd: Don't depend on error.  From Derek Price.
76425
76426 2003-07-15  Jim Meyering  <jim@meyering.net>
76427
76428         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76429
76430 2003-07-14  Simon Josefsson  <jas@extundo.com>
76431
76432         * modules/mempcpy: New file.
76433         * MODULES.html.sh (func_all_modules): Add mempcpy.
76434
76435 2003-07-14  Simon Josefsson  <jas@extundo.com>
76436
76437         * m4/mempcpy.m4: New file.
76438
76439 2003-07-14  Simon Josefsson  <jas@extundo.com>
76440
76441         * lib/mempcpy.h: New file.
76442         * lib/mempcpy.c: New file.
76443
76444 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76445
76446         * modules/getdate, modules/posixtm: Depend on mktime.
76447
76448 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76449
76450         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76451         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76452         unicodeio.c, unicodeio.h, unlocked-io.h:
76453         Switch from LGPL to GPL.
76454
76455 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76456
76457         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76458         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76459         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76460         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76461         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76462         updated automatically by ../config/srclist-update.  This changes
76463         their license from LPGL to GPL.
76464
76465 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76466
76467         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76468         assumed to refer to the root of the most recent stable gettext version.
76469         * config/srclistvars.sh: Add defaults for eggert.
76470         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76471         Match "This program" as well as "The program".  This is needed
76472         for gettext.
76473
76474 2003-07-14  Jim Meyering  <jim@meyering.net>
76475
76476         Don't emit diagnostics.  Let callers do that.
76477         * lib/save-cwd.c: Don't include "error.h".
76478         (save_cwd): Don't call error.  Ensure that errno is valid
76479         when returning nonzero.
76480
76481         * lib/save-cwd.h (restore_cwd): Update prototype.
76482         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76483         Simplify.  Don't call error upon failure.  Let callers do that.
76484         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76485         when auditing is enabled.  But don't bother updating the #if.
76486
76487 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76488
76489         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76490         it breaks C++ compilation.
76491         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76492
76493 2003-07-10  Simon Josefsson  <jas@extundo.com>
76494
76495         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76496
76497 2003-07-10  Jim Meyering  <jim@meyering.net>
76498
76499         * m4/clock_time.m4: Remove trailing blank.
76500         * m4/intmax_t.m4: Likewise.
76501
76502 2003-07-10  Jim Meyering  <jim@meyering.net>
76503
76504         * lib/vasnprintf.c: Remove trailing blanks.
76505         Make cpp indentation consistent.
76506
76507 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76508
76509         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76510         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76511         Switch from LGPL to GPL.
76512
76513 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76514
76515         * config/srclist.txt: Sort sublists.  Add
76516         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76517         that differ from gnulib for one reason or another; we'd like this list
76518         to be smaller but for now let's document what we have.
76519
76520 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76521
76522         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76523         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76524         and sweeter "eval x=$x".
76525         * config/srclist.txt: Get lib/argp* from glibc.
76526
76527 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76528
76529         * lib/mktime.c: Fix some boundary cases and remove need for floating
76530         point.
76531
76532         Issue a compile-time diagnostic if time_t is floating point, or if
76533         two's complement arithmetic is not in effect, or if arithmetic
76534         right shift does not propagate the sign.  These assumptions were
76535         all in the original code but they weren't checked.
76536
76537         (TIME_T_MIDPOINT, verify): New macros.
76538         (__isleap): Remove; it has integer overflow problems.
76539         (leapyear): New function, without those problems.
76540         (ydhms_tm_diff): Remove; splitting into two parts.
76541         (ydhms_diff): New function, containing the arithmetic part of
76542         the old ydhms_tm_diff function.  Issue a compile-time
76543         diagnostic if we are not using C99 integer division.
76544         Avoid casts when possible.
76545         (guess_time_tm): New function, containing the checking part of
76546         the old ydhms_tm_diff function.  Return the new value, rather than
76547         the difference between it and the old.  Accept a new argument T
76548         so that *T specifies the old value.  Check for overflow in the result.
76549
76550         (__mktime_internal): Use a time_t offset, not a long int offset.
76551         This undoes the 2003-06-04 change, which is no longer needed now
76552         that we have better overflow checking.
76553         (localtime_offset): Likewise.
76554
76555         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76556         and long are 64-bit but int is only 32-bit.
76557         (ydhms_diff): Use long int to store year1 and yday1.
76558         Issue a compile-time diagnostic if long int is not wide enough.
76559
76560         (__mktime_internal): Use long int to store adjusted year and yday.
76561         Use plain C rather than preprocessor commands, if that doesn't
76562         affect efficiency.
76563         Check for overflow (and try to repair) after each probe
76564         rather than checking only at the very end.  This avoids some bugs
76565         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76566         does not equal GMT offset at maximum time).
76567         Use integer to check for overflow rather than floating point; this
76568         is more portable to non-IEEE hosts, and is a tad faster.
76569         When we detect that we are oscillating between two values,
76570         don't check whether tm_isdst has the requested value, since
76571         we already know the answer.  When tm_isdst has the wrong value,
76572         use a different heuristic to find the right one, based on the
76573         extreme values actually observed in practice in tz2003a,
76574         rather than the (overly optimistic) "previous 3 calendar quarters".
76575
76576         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76577         "T const" to accommodate glibc style.
76578         (check_result): Use less-confusing report format.  "long" -> "long int.
76579         (main): Likewise.
76580         Don't loop if the iteration overflows time_t.
76581         Allow a negative step in the iteration.
76582
76583 2003-07-06  Karl Berry  <karl@gnu.org>
76584
76585         * config/depcomp: update from automake.
76586         * config/config.sub: update from prep.
76587
76588 2003-07-03  Karl Berry  <karl@gnu.org>
76589
76590         * config/config.guess: update from prep.
76591
76592 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76593
76594         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76595         xreadlink.c now includes it unconditionally.
76596
76597 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76598
76599         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76600         having it depend on HAVE_SYS_TYPES_H.
76601
76602 2003-07-01  Bruno Haible  <bruno@clisp.org>
76603
76604         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76605         <sys/types.h> should be sufficient.
76606         Reported by Paul Eggert.
76607
76608 2003-06-26  Karl Berry  <karl@gnu.org>
76609
76610         * config/depcomp: update from automake.
76611
76612 2003-06-26  Bruno Haible  <bruno@clisp.org>
76613
76614         * modules/human: Depend on module stdbool.
76615
76616 2003-06-25  Bruno Haible  <bruno@clisp.org>
76617
76618         * modules/readlink: New file.
76619         * modules/xreadlink: Depend on it.
76620         * MODULES.html.sh (func_all_modules): Add readlink.
76621
76622 2003-06-25  Bruno Haible  <bruno@clisp.org>
76623
76624         * m4/readlink.m4: New file.
76625
76626 2003-06-25  Bruno Haible  <bruno@clisp.org>
76627
76628         * lib/readlink.c: New file.
76629
76630 2003-06-22  Karl Berry  <karl@gnu.org>
76631
76632         * config/srclist.txt: update mkinstalldirs from automake.
76633         * config/mkinstalldirs: update.
76634
76635 2003-06-22  Bruno Haible  <bruno@clisp.org>
76636
76637         Portability to mingw32.
76638         * m4/ssize_t.m4: New file, from GNU gettext.
76639         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76640         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76641
76642 2003-06-22  Bruno Haible  <bruno@clisp.org>
76643
76644         * modules/safe-read: Add m4/ssize_t.m4.
76645         * modules/xreadlink: Add m4/ssize_t.m4.
76646
76647 2003-06-20  Bruno Haible  <bruno@clisp.org>
76648
76649         Assume C89, so PARAMS isn't needed.
76650         * lib/unicodeio.h (PARAMS): Remove.
76651         * lib/unicodeio.c: Don't use PARAMS.
76652
76653 2003-06-18  Karl Berry  <karl@gnu.org>
76654
76655         * config/config.{guess,sub}: update from prep.
76656
76657 2003-06-18  Jim Meyering  <jim@meyering.net>
76658
76659         Merge changes from coreutils.
76660         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76661         Remove explicit declarations of xmalloc and realloc.
76662         Include xalloc.h.
76663         (read_utmp): Remove anachronistic cast of xmalloc.
76664
76665 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76666
76667         Assume C89, so PARAMS isn't needed.
76668         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76669         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76670         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76671         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76672         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76673         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76674         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76675         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76676         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76677         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76678         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76679         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76680         no longer needed. Anyway, config.h should always be included before any
76681         other file.
76682
76683 2003-06-11  Simon Josefsson  <jas@extundo.com>
76684
76685         * modules/sysexits: New file.
76686         * MODULES.html.sh (func_all_modules): Add sysexits.
76687
76688 2003-06-11  Simon Josefsson  <jas@extundo.com>
76689
76690         * lib/sysexit_.h: New file.
76691
76692 2003-06-11  Derek Price  <derek@ximbiot.com>
76693
76694         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76695         necessary.
76696
76697 2003-06-11  Bruno Haible  <bruno@clisp.org>
76698
76699         * m4/sysexits.m4: New file.
76700
76701 2003-06-10  Simon Josefsson  <jas@extundo.com>
76702
76703         * lib/argp.h: New file, from glibc.
76704         * lib/argp-ba.c: New file, from glibc.
76705         * lib/argp-eexst.c: New file, from glibc.
76706         * lib/argp-fmtstream.c: New file, from glibc.
76707         * lib/argp-fmtstream.h: New file, from glibc.
76708         * lib/argp-fs-xinl.c: New file, from glibc.
76709         * lib/argp-help.c: New file, from glibc.
76710         * lib/argp-namefrob.h: New file, from glibc.
76711         * lib/argp-parse.c: New file, from glibc.
76712         * lib/argp-pv.c: New file, from glibc.
76713         * lib/argp-pvh.c: New file, from glibc.
76714         * lib/argp-xinl.c: New file, from glibc.
76715
76716 2003-06-10  Simon Josefsson  <jas@extundo.com>
76717
76718         * modules/strchrnul: New file.
76719
76720 2003-06-10  Simon Josefsson  <jas@extundo.com>
76721
76722         * modules/argp: New file.
76723
76724 2003-06-10  Simon Josefsson  <jas@extundo.com>
76725
76726         * m4/strchrnul.m4: New file.
76727
76728 2003-06-10  Simon Josefsson  <jas@extundo.com>
76729
76730         * lib/strchrnul.h: New file.
76731         * lib/strchrnul.c: New file.
76732
76733 2003-06-10  Bruno Haible  <bruno@clisp.org>
76734
76735         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76736
76737 2003-06-07  Karl Berry  <karl@gnu.org>
76738
76739         * config/config.{guess,sub}: update from prep.
76740
76741 2003-06-07  Jim Meyering  <jim@meyering.net>
76742
76743         * modules/strtod: Use $(...) notation, not @...@ for
76744         AC_REPLACE'd variables.
76745         * modules/localcharset: Likewise.
76746
76747 2003-06-07  Jim Meyering  <jim@meyering.net>
76748
76749         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76750         in place of my name in the copyright comment.
76751         Remove definition and uses of __P.
76752
76753         From coreutils.
76754         * lib/stat.c: Don't declare xmalloc explicitly.
76755         Instead, include "xalloc.h".
76756         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76757         xrealloc, and xcalloc return values.
76758         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76759         Improve comment.
76760         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76761
76762 2003-06-07  Bruno Haible  <bruno@clisp.org>
76763
76764         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76765         avoid AC_CONFIG_LINKS.
76766         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76767         fnmatch.h, to avoid AC_CONFIG_LINKS.
76768         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76769
76770 2003-06-07  Bruno Haible  <bruno@clisp.org>
76771
76772         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76773         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76774         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76775         directory.
76776         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76777         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76778         directory.
76779
76780 2003-06-06  Jim Meyering  <jim@meyering.net>
76781
76782         Merge from coreutils.
76783         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76784         Consolidate declarations and initializations of *_base* locals.
76785
76786         Merge from coreutils.
76787         This avoids a core dump on systems without GNU putenv,
76788         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76789         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76790         (unsetenv): New static function, from GNU libc.
76791         (rpl_putenv): Use it.
76792
76793         * lib/modechange.c: Remove trailing blanks.
76794
76795         Merge from coreutils.
76796         * lib/fsusage.c: Remove declaration of statfs.
76797         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76798
76799         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76800
76801 2003-06-06  Jim Meyering  <jim@meyering.net>
76802
76803         * lib/stdbool_.h: Renamed from stdbool.h.in.
76804
76805 2003-06-06  Jim Meyering  <jim@meyering.net>
76806             Bruno Haible  <bruno@clisp.org>
76807
76808         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76809         Adjust Makefile.am snippet not to redirect directly to target.
76810         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76811
76812 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76813
76814         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76815         mismatch, look in future quarters as well as past.  This fixes a
76816         bug when processing fall-backwards gaps immediately after a long
76817         period of daylight-saving time.
76818
76819         * lib/mktime.c: Assume freestanding C89 or better.
76820         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76821         (__P): Remove; not used.
76822         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76823         (mktime, not_equal_tm, print_tm, check_result,
76824         main): Use prototypes.  Use const * where appropriate.
76825         (main): Fix typo in testing code that uncovered by above changes.
76826         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76827
76828 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76829
76830         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76831         locale.h, localeconv.  This merges changes from coreutils.
76832
76833         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76834         It can be removed after the next Autoconf is released.
76835         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76836         needed.
76837
76838 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76839
76840         * lib/mktime.c: Fix Debian bug 177940
76841         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76842         (localtime_offset): Now long int, not time_t, because we want it
76843         to be guaranteed to be signed.  All uses changed.
76844         (__mktime_internal): If overflow would occur when adding offset,
76845         don't add it.
76846
76847         Merge 'human' changes from coreutils.  Rewrite to support
76848         locale-specific notations like thousands separators.
76849         * lib/human.c: Simplify authorship notice.
76850         Include human.h immediately after config.h.
76851         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76852         <limits.h>: Do not include, since human.h does.
76853         (SIZE_MAX, UINTMAX_MAX): New macros.
76854         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76855         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76856         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76857         (power_letter): Renamed from suffixes.
76858         (generate_suffix_backwards): Remove.
76859         (adjust_value): Now takes int style (because of human.h changes)
76860         and long double value (for greater precision on some platforms).
76861         (group_number): New function.
76862         (human_readable): Use it.  Use integer options, not enum.
76863         Put the options before the sizes in the arg list.
76864         Support all the new options.
76865         The old human_readable function has been removed;
76866         use inttostr.h instead.
76867         (human_readable, default_block_size, humblock):
76868         Use uintmax_t, not int, for block sizes.
76869         (human_readable_inexact, block_size_types): Remove.
76870         (block_size_opts): New constant.
76871         (human_options): Renamed from human_block_size, with new signature
76872         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76873         * lib/human.h: Add copyright and authorship notice.
76874         Include <limits.h> and <stdbool.h> unconditionally.
76875         (PARAMS): Remove.  All uses removed.
76876         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76877         (enum human_inexact_style): Remove tag; now a nameless enum.
76878         (human_floor, human_ceiling, human_round_to_even): Now have
76879         values 2, 0, 1 rather than -1, 1, 0.
76880         (human_group_digits, human_suppress_point_zero, human_autoscale,
76881         human_base_1024, human_SI, human_B): New constants.
76882         (human_readable_inexact, human_block_size): Remove.
76883         (human_readable): Size args are now uintmax_t, not int.
76884         (human_options): New decl.
76885
76886         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76887         unnecessary now that we assume C89 or better.  This change
76888         imported from coreutils.
76889
76890         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76891         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76892         in the 2003-05-30 sync from glibc.
76893
76894         .h files should stand alone, but we shouldn't include <sys/types.h>
76895         if we can get away with just <stddef.h>.
76896
76897         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76898         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76899         rather than <sys/types.h>, as we merely need size_t.
76900         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76901         to get size_t.
76902         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76903         Include <stdio.h>, to get FILE.
76904         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76905         memcasecmp.h has included <stddef.h> and all we need is size_t.
76906         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76907         our interface, instead of including <sys/types.h>
76908
76909 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76910
76911         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76912         now, as glibc mktime is buggy on non-glibc systems.
76913
76914 2003-06-03  Karl Berry  <karl@gnu.org>
76915
76916         * config/config.sub: update from prep.
76917
76918 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76919
76920         [from coreutils]
76921         Fix some minor time-related bugs with POSIX time arguments.
76922         Some valid time stamps were being rejected (notably -1, and
76923         time stamps before 1900 on 64-bit hosts).  And some invalid
76924         time stamps were being accepted, e.g. September 31.
76925
76926         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76927         that we can return (time_t) -1 successfully.
76928         * lib/posixtm.c: Likewise.
76929         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76930         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76931         (t): Remove static var.
76932         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76933         of static var.  All uses changed.
76934         (year): Do not reject years before 1900; they can occur with
76935         64-bit time_t.
76936         (posix_time_parse): Do not check for out-of-range components;
76937         that is now the caller's responsibility, since our checks were
76938         only approximations.
76939         (posixtime): Use mktime to check for out-of-range components,
76940         since it knows them exactly.
76941         If mktime returns (time_t) -1, check whether an error actually occurred
76942         by invoking localtime on -1.
76943         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76944         posixtime failures better.
76945         Improve the test data (in comments only).
76946
76947 2003-06-02  Karl Berry  <karl@gnu.org>
76948
76949         * config/mkinstalldirs (version): new variable.
76950         (--version): new option.
76951         (usage): improve message.
76952
76953 2003-05-30  Karl Berry  <karl@gnu.org>
76954
76955         * lib/mktime.c: update from libc.
76956
76957 2003-05-30  Bruno Haible  <bruno@clisp.org>
76958
76959         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76960         * config/config.rpath: Upgrade to gettext-0.12.1.
76961
76962 2003-05-30  Bruno Haible  <bruno@clisp.org>
76963
76964         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76965         * m4/nls.m4: New file, from gettext-0.12.1.
76966         * m4/po.m4: New file, from gettext-0.12.1.
76967         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76968
76969 2003-05-30  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76972         * lib/localcharset.h: Likewise.
76973         * lib/localcharset.c: Likewise.
76974
76975 2003-05-29  Karl Berry  <karl@gnu.org>
76976
76977         * config/config.rpath: update from gettext.
76978
76979 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76980
76981         Assume the headers required for C89 freestanding compilers.
76982         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76983         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76984         * m4/human.m4 (gl_HUMAN): Likewise.
76985         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76986         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76987         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76988         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76989         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76990         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76991
76992 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76993
76994         Assume the headers required for C89 freestanding compilers.
76995         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76996         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76997         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76998         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76999         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77000         define, since <limits.h> is guaranteed to do that.
77001         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77002         * lib/exclude.c: Include <stdbool.h> unconditionally.
77003         * lib/tempname.c: Include <stddef.h> unconditionally.
77004         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77005         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77006         <stddef.h> does that.
77007         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77008         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77009         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77010         needed.
77011         * lib/xstrtol.c: Likewise.
77012         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77013         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77014
77015         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77016         warnings on some platforms.
77017
77018         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77019         arbitrarily.
77020
77021 2003-05-26  Jim Meyering  <jim@meyering.net>
77022
77023         Merge in a change from coreutils:
77024         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77025         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77026         that condition, rather than `-1' which is slightly misleading.
77027         Change the name of the cache variable to have the gl_ prefix.
77028         Prompted by a patch from Richard Dawe for DJGPP.
77029
77030 2003-05-24  Karl Berry  <karl@gnu.org>
77031
77032         * config/config.guess: update from prep.
77033
77034 2003-05-22  Karl Berry  <karl@gnu.org>
77035
77036         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77037
77038 2003-05-20  Karl Berry  <karl@gnu.org>
77039
77040         * config/config.guess: update from prep.
77041
77042 2003-05-18  Karl Berry  <karl@gnu.org>
77043
77044         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77045         might actually be set by the user.
77046
77047         * config/depcomp, install-sh, mdate-sh: update from automake.
77048
77049 2003-05-17  Bruno Haible  <bruno@clisp.org>
77050
77051         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77052         invalid expansion for AC_EGREP_CPP.
77053         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77054         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77055         Suggested by Akim Demaille <akim@epita.fr> in
77056         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77057
77058 2003-05-12  Jim Meyering  <jim@meyering.net>
77059
77060         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77061         the space-padded-by-default conversion specifiers, %e, %k, %l.
77062
77063 2003-05-12  Bruno Haible  <bruno@clisp.org>
77064
77065         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77066         the string is longer than 4 KB.
77067
77068 2003-05-11  Karl Berry  <karl@gnu.org>
77069
77070         * config/config.{guess,sub}: update from prep.
77071
77072 2003-05-09  Bruno Haible  <bruno@clisp.org>
77073
77074         * modules/error: Add m4/strerror_r.m4 to file list.
77075
77076 2003-05-03  Bruno Haible  <bruno@clisp.org>
77077
77078         Upgrade to Unicode-4.0.
77079         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77080         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77081         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77082         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77083         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77084         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77085         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77086         Change width of U+E0100..U+E01EF from 1 to 0.
77087
77088 2003-04-25  Jim Meyering  <jim@meyering.net>
77089
77090         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77091         of type size_t, not int.
77092
77093 2003-04-25  Bruno Haible  <bruno@clisp.org>
77094
77095         * lib/copy-file.c: Include <stddef.h>, for size_t.
77096
77097 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77098
77099         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77100         code which expansion is under static control.  Patch imported from
77101         Akim Demaille's patch to Bison; see
77102         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77103
77104 2003-04-14  Bruno Haible  <bruno@clisp.org>
77105
77106         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77107
77108 2003-04-11  Jim Meyering  <jim@meyering.net>
77109
77110         Merge changes from Coreutils.
77111
77112         2003-03-22  Jim Meyering  <jim@meyering.net>
77113
77114         * lib/strftime.c (widen): Cast alloca return value to proper type.
77115
77116         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77117
77118         From GNU libc.
77119         * lib/strftime.c (my_strftime): Handle very large width
77120         specifications for numeric values correctly.  Improve checks for
77121         overflow.
77122
77123         2003-01-19  Jim Meyering  <jim@meyering.net>
77124
77125         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77126         definitions.
77127         (nl_get_alt_digit) [! defined my_strftime]: Define.
77128         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77129         _nl_get_alt_digit and _nl_get_walt_digit.
77130
77131         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77132         libc. These changes have no effect outside of _LIBC.
77133
77134 2003-04-10  Bruno Haible  <bruno@clisp.org>
77135
77136         * modules/findprog: New file.
77137         * MODULES.html.sh (func_all_modules): Add it.
77138
77139 2003-04-10  Bruno Haible  <bruno@clisp.org>
77140
77141         * m4/findprog.m4: New file.
77142         * m4/eaccess.m4: New file.
77143
77144 2003-04-10  Bruno Haible  <bruno@clisp.org>
77145
77146         * lib/findprog.h: New file, from GNU gettext.
77147         * lib/findprog.c: New file, from GNU gettext.
77148
77149 2003-04-05  Jim Meyering  <jim@meyering.net>
77150
77151         Merge changes from Coreutils.
77152
77153         * lib/exclude.h (PARAMS): Remove definition and uses.
77154         * lib/exclude.c: Remove uses of `PARAMS'.
77155
77156         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77157         Add test-cases for DOS filenames. Declare program_name.
77158         (main): Set up program_name.  Patch by Rich Dawe.
77159
77160         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77161         error from mntctl.
77162         Use mntctl's return value to drive the entry-processing loop, since
77163         we can't rely on the value of the vmt_length member in the last
77164         entry.  On some systems doing so could result in exhausting
77165         virtual memory.  Based in part on a patch from Mike Jetzer.
77166
77167 2003-04-04  Bruno Haible  <bruno@clisp.org>
77168
77169         * modules/linebreak: New file.
77170         * MODULES.html.sh (func_all_modules): Add it.
77171
77172 2003-04-04  Bruno Haible  <bruno@clisp.org>
77173
77174         * m4/linebreak.m4: New file.
77175
77176 2003-04-04  Bruno Haible  <bruno@clisp.org>
77177
77178         * lib/linebreak.h: New file, from GNU gettext.
77179         * lib/linebreak.c: New file, from GNU gettext with slight
77180         modifications.
77181         * lib/lbrkprop.h: New file, from GNU gettext.
77182
77183 2003-04-03  Bruno Haible  <bruno@clisp.org>
77184
77185         * modules/utf8-ucs4: New file.
77186         * modules/utf16-ucs4: New file.
77187         * modules/ucs4-utf8: New file.
77188         * modules/ucs4-utf16: New file.
77189         * MODULES.html.sh (func_all_modules): Add them.
77190
77191 2003-04-03  Bruno Haible  <bruno@clisp.org>
77192
77193         * m4/utf-ucs4.m4: New file.
77194         * m4/ucs4-utf.m4: New file.
77195
77196 2003-04-03  Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/utf8-ucs4.h: New file, from GNU gettext.
77199         * lib/utf16-ucs4.h: New file, from GNU gettext.
77200         * lib/ucs4-utf8.h: New file, from GNU gettext.
77201         * lib/ucs4-utf16.h: New file, from GNU gettext.
77202
77203 2003-04-02  Bruno Haible  <bruno@clisp.org>
77204
77205         * modules/binary-io: New file.
77206         * MODULES.html.sh (func_all_modules): Add it.
77207
77208 2003-04-02  Bruno Haible  <bruno@clisp.org>
77209
77210         * lib/binary-io.h: New file, from GNU gettext.
77211
77212 2003-04-01  Bruno Haible  <bruno@clisp.org>
77213
77214         * modules/pathname: New file.
77215         * MODULES.html.sh (func_all_modules): Add it.
77216
77217 2003-04-01  Bruno Haible  <bruno@clisp.org>
77218
77219         * lib/pathname.h: New file, from GNU gettext.
77220         * lib/concatpath.c: New file, from GNU gettext.
77221
77222 2003-03-30  Bruno Haible  <bruno@clisp.org>
77223
77224         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77225
77226 2003-03-30  Bruno Haible  <bruno@clisp.org>
77227
77228         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77229         function chown() doesn't exist.
77230
77231 2003-03-28  Bruno Haible  <bruno@clisp.org>
77232
77233         * modules/copy-file: New file.
77234         * MODULES.html.sh (func_all_modules): Add it.
77235
77236 2003-03-28  Bruno Haible  <bruno@clisp.org>
77237
77238         * m4/copy-file.m4: New file.
77239
77240 2003-03-28  Bruno Haible  <bruno@clisp.org>
77241
77242         * lib/copy-file.h: New file, from GNU gettext.
77243         * lib/copy-file.c: New file, from GNU gettext.
77244
77245 2003-03-18  Jim Meyering  <jim@meyering.net>
77246
77247         * lib/quote.c (quote_n): Fix typo in comment.
77248
77249 2003-03-18  Bruno Haible  <bruno@clisp.org>
77250
77251         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77252         checking.
77253         * m4/onceonly_2_57.m4: Likewise.
77254
77255 2003-03-17  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77258         (m4_quote): Remove macro.
77259         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77260
77261 2003-03-14  Jim Meyering  <jim@meyering.net>
77262
77263         Merge changes from Coreutils.
77264         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77265         to be const, in order to avoid warnings.
77266         (obstack_room): Likewise.
77267         (obstack_empty_p): Likewise.
77268
77269 2003-03-14  Bruno Haible  <bruno@clisp.org>
77270
77271         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77272         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77273
77274 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77275
77276         Merge changes from Bison.
77277         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77278         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77279         when compiling Bison 1.875's `bitset bset = obstack_alloc
77280         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77281         * lib/hash.c: Include <stdbool.h> unconditionally.
77282
77283 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77284
77285         * m4/onceonly.m4 (m4_quote): New macro.
77286         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77287         Quote AC_FOREACH variable-expansions properly.
77288
77289 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77290
77291         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77292
77293 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77294
77295         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77296         Reported by Bruce Becker; see:
77297         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77298
77299 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77300             Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77303         Reported by John Hughes, see
77304         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77305
77306 2003-02-20  Bruno Haible  <bruno@clisp.org>
77307
77308         * MODULES.html.sh (func_all_modules): Add poll.
77309
77310 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77311
77312         * modules/poll: New file.
77313
77314 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77315
77316         * lib/poll_.h: New file.
77317         * lib/poll.c: New file.
77318
77319 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77320
77321         * m4/poll.m4: New file.
77322
77323 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77324
77325         * modules/mathl: New file.
77326
77327 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77328
77329         * lib/mathl.h: New file.
77330         * lib/acosl.c: New file.
77331         * lib/asinl.c: New file.
77332         * lib/atanl.c: New file.
77333         * lib/ceill.c: New file.
77334         * lib/cosl.c: New file.
77335         * lib/expl.c: New file.
77336         * lib/floorl.c: New file.
77337         * lib/frexpl.c: New file.
77338         * lib/ldexpl.c: New file.
77339         * lib/logl.c: New file.
77340         * lib/sincosl.c: New file.
77341         * lib/sinl.c: New file.
77342         * lib/sqrtl.c: New file.
77343         * lib/tanl.c: New file.
77344         * lib/trigl.c: New file.
77345         * lib/trigl.h: New file.
77346
77347 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77348
77349         * m4/mathl.m4: New file.
77350
77351 2003-02-18  Bruno Haible  <bruno@clisp.org>
77352
77353         * MODULES.html.sh (func_all_modules): Add mathl.
77354
77355 2003-02-17  Bruno Haible  <bruno@clisp.org>
77356
77357         * modules/mkdtemp: New module.
77358         * MODULES.html.sh (func_all_modules): Add it.
77359
77360 2003-02-17  Bruno Haible  <bruno@clisp.org>
77361
77362         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77363
77364 2003-02-17  Bruno Haible  <bruno@clisp.org>
77365
77366         * lib/mkdtemp.h: New file, from GNU gettext.
77367         * lib/mkdtemp.c: New file, from GNU gettext.
77368
77369 2003-02-02  Jim Meyering  <jim@meyering.net>
77370
77371         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77372         e.g. glibc-2.2.93.
77373
77374 2003-01-31  Bruno Haible  <bruno@clisp.org>
77375
77376         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77377         'rpl_rename'.
77378         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77379         'rpl_strnlen'.
77380         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77381         'rpl_strtod'.
77382         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77383         'rpl_utime'.
77384
77385 2003-01-31  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/rename.c: #undef rename before defining rpl_rename.
77388         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77389
77390 2003-01-30  Bruno Haible  <bruno@clisp.org>
77391
77392         * modules/vasnprintf, modules/vasprintf: New modules.
77393         * MODULES.html.sh (func_all_modules): Add them.
77394
77395 2003-01-30  Bruno Haible  <bruno@clisp.org>
77396
77397         * m4/signed.m4: New file, from GNU gettext.
77398         * m4/longdouble.m4: New file, from GNU gettext.
77399         * m4/wchar_t.m4: New file, from GNU gettext.
77400         * m4/wint_t.m4: New file, from GNU gettext.
77401         * m4/vasnprintf.m4: New file.
77402         * m4/vasprintf.m4: New file.
77403
77404 2003-01-30  Bruno Haible  <bruno@clisp.org>
77405
77406         * lib/printf-args.h: New file, from GNU gettext.
77407         * lib/printf-args.c: New file, from GNU gettext.
77408         * lib/printf-parse.h: New file, from GNU gettext.
77409         * lib/printf-parse.c: New file, from GNU gettext.
77410         * lib/vasnprintf.h: New file, from GNU gettext.
77411         * lib/vasnprintf.c: New file, from GNU gettext.
77412         * lib/asnprintf.c: New file, from GNU gettext.
77413         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77414         * lib/vasprintf.c: New file, from GNU gettext.
77415         * lib/asprintf.c: New file, from GNU gettext.
77416
77417 2003-01-29  Bruno Haible  <bruno@clisp.org>
77418
77419         * modules/stpncpy: New module.
77420         * MODULES.html.sh (func_all_modules): Add it.
77421
77422 2003-01-29  Bruno Haible  <bruno@clisp.org>
77423
77424         * m4/stpncpy.m4: New file.
77425
77426 2003-01-29  Bruno Haible  <bruno@clisp.org>
77427
77428         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77429         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77430
77431 2003-01-28  Bruno Haible  <bruno@clisp.org>
77432
77433         * modules/c-ctype: New module.
77434         * MODULES.html.sh (func_all_modules): Add it.
77435
77436 2003-01-28  Bruno Haible  <bruno@clisp.org>
77437
77438         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77439         Paul Eggert.
77440         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77441         Paul Eggert.
77442
77443 2003-01-27  Bruno Haible  <bruno@clisp.org>
77444
77445         * modules/xsetenv: New module.
77446         * MODULES.html.sh (func_all_modules): Add it.
77447
77448 2003-01-27  Bruno Haible  <bruno@clisp.org>
77449
77450         * lib/xsetenv.h: New file, from GNU gettext.
77451         * lib/xsetenv.c: New file, from GNU gettext.
77452
77453 2003-01-23  Jim Meyering  <jim@meyering.net>
77454
77455         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77456         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77457
77458 2003-01-23  Bruno Haible  <bruno@clisp.org>
77459
77460         * modules/minmax: New module.
77461         * MODULES.html.sh (func_all_modules): Add it.
77462
77463 2003-01-23  Bruno Haible  <bruno@clisp.org>
77464
77465         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77466         Eggert.
77467
77468 2003-01-22  Bruno Haible  <bruno@clisp.org>
77469
77470         * modules/exit: New module.
77471         * MODULES.html.sh (func_all_modules): Add it.
77472
77473 2003-01-22  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/exit.h: New file, from GNU gettext.
77476
77477 2003-01-19  Bruno Haible  <bruno@clisp.org>
77478
77479         * gnulib-tool: Recognize option --extract-maintainer.
77480         (func_get_maintainer): New function.
77481         * modules/*: Add Maintainer entry.
77482
77483 2003-01-16  Jim Meyering  <jim@meyering.net>
77484
77485         * m4/regex.m4: The `regex' struct is both input and output.
77486         Initialize it before each use.  Patch by Tim Waugh.
77487
77488 2003-01-16  Bruno Haible  <bruno@clisp.org>
77489
77490         * MODULES.html.sh: Add a table of contents. Add the module name as
77491         leftmost column. Add hyperlinks.
77492
77493 2003-01-15  Bruno Haible  <bruno@clisp.org>
77494
77495         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77496
77497 2003-01-15  Bruno Haible  <bruno@clisp.org>
77498
77499         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77500         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77501         suffix.
77502
77503 2003-01-15  Bruno Haible  <bruno@clisp.org>
77504
77505         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77506
77507 2003-01-15  Bruno Haible  <bruno@clisp.org>
77508
77509         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77510         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77511
77512 2003-01-14  Jim Meyering  <jim@meyering.net>
77513
77514         * lib/same.c (same_name): Tweak a comment.
77515
77516 2003-01-14  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77519         when a string comparison is sufficient.
77520
77521 2003-01-14  Bruno Haible  <bruno@clisp.org>
77522
77523         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77524         'unsigned int'.
77525
77526 2003-01-14  Bruno Haible  <bruno@clisp.org>
77527
77528         * lib/hash-pjw.c: Add comment about low quality of this function.
77529
77530 2003-01-13  Bruno Haible  <bruno@clisp.org>
77531
77532         * modules/stpcpy: Distribute lib/stpcpy.h.
77533         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77534
77535 2003-01-13  Bruno Haible  <bruno@clisp.org>
77536
77537         * modules/*: Add a description.
77538         * modules/strpbrk: Fix Makefile.am snippet.
77539         * modules/strtoimax: Fix dependencies.
77540         * modules/strtoumax: Likewise.
77541
77542 2003-01-13  Bruno Haible  <bruno@clisp.org>
77543
77544         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77545         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77546         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77547
77548 2003-01-13  Bruno Haible  <bruno@clisp.org>
77549
77550         * gnulib-tool (func_create_testdir): Store config/* files in the main
77551         directory.
77552         * config.rpath: Move to ...
77553         * config/config.rpath: ... here.
77554         * modules/gettext: Contains config/config.rpath, not config.rpath.
77555         * modules/iconv: Likewise.
77556
77557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77558
77559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77560         to avoid collisions with libcurses and libreadline.
77561
77562         * m4/getstr.m4: Remove.
77563         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77564
77565 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77566
77567         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77568         to avoid collisions with libcurses and libreadline.
77569
77570         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77571         * lib/getstr.h, getstr.c: Remove.
77572         * lib/getline.c: Include "getline.h", to check interface.
77573         Move body of old getstr.c here: this defines MIN_CHUNK and
77574         declares getdelim2, which is renamed from getstr.
77575         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77576
77577         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77578         All uses changed.
77579         * lib/linebuffer.h: Likewise.
77580         (readline): Remove backward-compatibility macro.
77581
77582 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77583
77584         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77585         to avoid collisions with libcurses and libreadline.
77586         * getstr: Remove.
77587         * MODULES.html.sh: Remove getstr.
77588         * modules/getline: Depend on unlocked-io, not getstr.
77589
77590 2003-01-12  Jim Meyering  <jim@meyering.net>
77591
77592         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77593
77594 2003-01-10  Bruno Haible  <bruno@clisp.org>
77595
77596         * modules/alloca: Change Makefile.am requirements. Simplify Include
77597         requirements. Add lib/alloca_.h to file list.
77598
77599 2003-01-10  Bruno Haible  <bruno@clisp.org>
77600
77601         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77602
77603 2003-01-10  Bruno Haible  <bruno@clisp.org>
77604
77605         * lib/alloca_.h: New file.
77606         * lib/getdate.y: Unconditionally include alloca.h.
77607         * lib/makepath.c: Likewise.
77608         * lib/setenv.c: Likewise.
77609         * lib/userspec.c: Likewise.
77610
77611 2003-01-09  Karl Berry  <karl@gnu.org>
77612
77613         * MODULES.html.sh: include `dirname $0` in PATH, to find
77614         gnulib-tool.
77615
77616 2003-01-09  Bruno Haible  <bruno@clisp.org>
77617
77618         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77619         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77620
77621 2003-01-09  Bruno Haible  <bruno@clisp.org>
77622
77623         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77624
77625 2003-01-09  Bruno Haible  <bruno@clisp.org>
77626
77627         * lib/stdbool.h.in: New file.
77628
77629 2003-01-09  Bruno Haible  <bruno@clisp.org>
77630
77631         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77632         * MODULES.html.sh: Likewise.
77633
77634 2003-01-08  Jim Meyering  <jim@meyering.net>
77635
77636         * lib/full-write.c: Undefine and define-away `const' after inclusion
77637         of errno.h, not before.  Suggestion from Bruno Haible.
77638
77639 2003-01-08  Bruno Haible  <bruno@clisp.org>
77640
77641         * modules/full-read: Depend on full-write.
77642
77643 2003-01-08  Bruno Haible  <bruno@clisp.org>
77644
77645         * lib/safe-read.c: Include specification header first, to ensure its
77646         selfcontainedness.
77647         * lib/full-write.c: Likewise.
77648
77649 2003-01-07  Jim Meyering  <jim@meyering.net>
77650
77651         * lib/full-write.c: Rework so that it may serve to define full_read,
77652         too.
77653         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77654
77655 2003-01-07  Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77658         <inttypes.h>.
77659         * lib/xstrtol.h: Likewise.
77660         * lib/xstrtoimax.c: Likewise.
77661         * lib/xstrtoumax.c: Likewise.
77662         * lib/human.h: Likewise.
77663
77664         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77665         on systems that have <inttypes.h> but not <stdint.h>.
77666
77667 2003-01-07  Bruno Haible  <bruno@clisp.org>
77668
77669         * MODULES.html.sh: Add copyright notice.
77670         (missed_files): Omit CVS directory entries.
77671         (func_module): Make it work with sed-3.02.
77672         * MODULES.txt: Remove file.
77673
77674 2003-01-06  Jim Meyering  <jim@meyering.net>
77675
77676         * lib/version-etc.c: Update year in translatable copyright string.
77677
77678 2003-01-03  Karl Berry  <karl@gnu.org>
77679
77680         * config/config.{guess,sub}: update from prep.
77681
77682 2003-01-02  Karl Berry  <karl@gnu.org>
77683
77684         * doc/COPYING.DOC: belatedly updated to 1.2.
77685
77686 2003-01-01  Karl Berry  <karl@gnu.org>
77687
77688         * gnulib-tool (func_verify_module): report module name $module in
77689         error message, not $1.
77690         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77691         be created, only if it doesn't exist.
77692         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77693
77694 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77695
77696         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77697
77698 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77699
77700         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77701         memcmp if strcoll doesn't work.
77702
77703 2002-12-31  Bruno Haible  <bruno@clisp.org>
77704
77705         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77706         nonempty.
77707
77708 2002-12-31  Bruno Haible  <bruno@clisp.org>
77709
77710         * lib/memcoll.c (STRCOLL): New macro.
77711         (memcoll): Use it.
77712
77713 2002-12-31  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/localcharset.h: New file.
77716         * lib/localcharset.c: Include it.
77717         * lib/unicodeio.c: Likewise.
77718
77719 2002-12-31  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77722         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77723
77724 2002-12-31  Bruno Haible  <bruno@clisp.org>
77725
77726         * lib/getline.h: Include <stddef.h>, for size_t.
77727
77728         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77729         * lib/unicodeio.c: Don't include <stddef.h>.
77730
77731 2002-12-31  Bruno Haible  <bruno@clisp.org>
77732
77733         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77734         HAVE_TM_ZONE.
77735
77736 2002-12-24  Karl Berry  <karl@gnu.org>
77737
77738         * config/config.guess: update from prep.
77739
77740 2002-12-24  Bruno Haible  <bruno@clisp.org>
77741
77742         General infrasructure.
77743         * m4/README: Rewritten.
77744         * m4/onceonly.m4: New file.
77745         * m4/onceonly_2_57.m4: New file.
77746
77747         Module atexit.
77748         * m4/atexit.m4: New file.
77749
77750         Module strtod.
77751         * m4/strtod.m4: New file.
77752
77753         Module strtol.
77754         * m4/strtol.m4: New file.
77755
77756         Module strtoul.
77757         * m4/strtoul.m4: New file.
77758
77759         Module memchr.
77760         * m4/memchr.m4: New file.
77761
77762         Module memcmp.
77763         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77764         (jm_FUNC_MEMCMP): Invoke it.
77765
77766         Module memcpy.
77767         * m4/memcpy.m4: New file.
77768
77769         Module memmove.
77770         * m4/memmove.m4: New file.
77771
77772         Module memset.
77773         * m4/memset.m4: New file.
77774
77775         Module strcspn.
77776         * m4/strcspn.m4: New file.
77777
77778         Module strpbrk.
77779         * m4/strpbrk.m4: New file.
77780
77781         Module strstr.
77782         * m4/strstr.m4: New file.
77783
77784         Module strerror.
77785         * m4/strerror.m4: New file.
77786
77787         Module mktime.
77788         * m4/mktime.m4: Renamed from jm-mktime.m4.
77789         (gl_PREREQ_MKTIME): New macro.
77790         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77791
77792         Module malloc.
77793         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77794         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77795         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77796
77797         Module realloc.
77798         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77799         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77800         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77801
77802         Module strftime.
77803         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77804         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77805         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77806         gl_TM_GMTOFF.
77807         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77808
77809         Module xalloc.
77810         * m4/xalloc.m4: New file.
77811
77812         Module alloca.
77813         * m4/alloca.m4: New file.
77814
77815         Module putenv.
77816         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77817         (jm_FUNC_PUTENV): Invoke it.
77818
77819         Module setenv.
77820         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77821         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77822         when invoked twice.
77823         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77824         gt_FUNC_SETENV.
77825
77826         Module memrchr.
77827         * m4/memrchr.m4: New file.
77828
77829         Module stpcpy.
77830         * m4/stpcpy.m4: New file.
77831
77832         Module strcase.
77833         * m4/strcase.m4: New file.
77834
77835         Module strdup.
77836         * m4/strdup.m4: New file.
77837
77838         Module strnlen.
77839         * m4/strnlen.m4: New file.
77840
77841         Module strndup.
77842         * m4/strndup.m4: New file.
77843
77844         Module xstrtod.
77845         * m4/xstrtod.m4: New file.
77846
77847         Module xstrtol.
77848         * m4/xstrtol.m4: New file.
77849
77850         Module getdate.
77851         * m4/getdate.m4: New file.
77852
77853         Module unlocked-io.
77854         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77855         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77856         * m4/jm-glibc-io.m4n: Remove file.
77857
77858         Module long-options.
77859         * m4/long-options.m4: New file.
77860
77861         Module md5.
77862         * m4/md5.m4: New file.
77863
77864         Module sha.
77865         * m4/sha.m4: New file.
77866
77867         Module getstr.
77868         * m4/getstr.m4: New file.
77869
77870         Module getline.
77871         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77872         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77873         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77874         simply getline. Infoke gl_PREREQ_GETLINE.
77875
77876         Module obstack.
77877         * m4/obstack.m4: New file.
77878
77879         Module hash.
77880         * m4/hash.m4: New file.
77881
77882         Module readtokens.
77883         * m4/readtokens.m4: New file.
77884
77885         Module strverscmp.
77886         * m4/strverscmp.m4: New file.
77887
77888         Module stdbool.
77889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77890         OSF/1.
77891
77892         Module strtoll.
77893         * m4/strtoll.m4: New file.
77894
77895         Module strtoull.
77896         * m4/strtoull.m4: New file.
77897
77898         Module strtoimax.
77899         * m4/strtoimax.m4: New file.
77900
77901         Module strtoumax.
77902         * m4/strtoumax.m4: New file.
77903
77904         Module xstrtoimax.
77905         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77906         jm_AC_PREREQ_XSTRTOIMAX.
77907         Moved the strtol prerequisites to strtol.m4.
77908         Moved the strtoll prerequisites to strtoll.m4.
77909         Moved the strtoimax prerequisites to strtoimax.m4.
77910
77911         Module xstrtoumax.
77912         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77913         jm_AC_PREREQ_XSTRTOUMAX.
77914         Moved the strtoul prerequisites to strtoul.m4.
77915         Moved the strtoull prerequisites to strtoull.m4.
77916         Moved the strtoumax prerequisites to strtoumax.m4.
77917
77918         Module chown.
77919         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77920         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77921
77922         Module dup2.
77923         * m4/dup2.m4: New file.
77924
77925         Module ftruncate.
77926         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77927         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77928
77929         Module getgroups.
77930         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77931         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77932
77933         Module gettimeofday.
77934         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77935         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77936         gl_PREREQ_GETTIMEOFDAY.
77937
77938         Module mkdir.
77939         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77940         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77941
77942         Module mkstemp.
77943         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77944         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77945         jm_AC_TYPE_UINTMAX_T.
77946         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77947
77948         Module stat.
77949         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77950         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77951
77952         Module lstat.
77953         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77954         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77955
77956         Module timespec.
77957         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77958         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77959         * m4/st_mtim.m4: Indentation.
77960
77961         Module nanosleep.
77962         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77963         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77964         gl_PREREQ_NANOSLEEP.
77965
77966         Module regex.
77967         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77968         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77969         (gl_REGEX): New macro.
77970
77971         Module rename.
77972         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77973         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77974
77975         Module rmdir.
77976         * m4/rmdir.m4: New file.
77977
77978         Module utime.
77979         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77980         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77981         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77982
77983         Module dirname.
77984         * m4/dirname.m4: New file.
77985
77986         Module getopt.
77987         * m4/getopt.m4: New file.
77988
77989         Module unistd-safer.
77990         * m4/unistd-safer.m4: New file.
77991
77992         Module fnmatch.
77993         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77994         declaration.
77995         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77996         (gl_FUNC_FNMATCH_POSIX): New macro.
77997         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77998         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77999         simply fnmatch.
78000
78001         Module exclude.
78002         * m4/exclude.m4: New file.
78003
78004         Module human.
78005         * m4/human.m4: New file.
78006
78007         Module acl.
78008         * m4/acl.m4: Nop.
78009
78010         Module backupfile.
78011         * m4/backupfile.m4: New file.
78012         * m4/d-ino.m4: Indentation.
78013
78014         Module fsusage.
78015         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78016         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78017         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78018
78019         Module dirfd.
78020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78021         requirements.
78022
78023         Module euidaccess.
78024         * m4/euidaccess.m4: New file.
78025
78026         Module file-type.
78027         * m4/file-type.m4: New file.
78028
78029         Module fileblocks.
78030         * m4/fileblocks.m4: New file.
78031
78032         Module filemode.
78033         * m4/filemode.m4: New file.
78034
78035         Module isdir.
78036         * m4/isdir.m4: New file.
78037
78038         Module lchown.
78039         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78040         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78041
78042         Module makepath.
78043         * m4/makepath.m4: New file.
78044
78045         Module modechange.
78046         * m4/modechange.m4: New file.
78047
78048         Module mountlist.
78049         * m4/mountlist.m4: New file.
78050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78051         Indentation.
78052
78053         Module path-concat.
78054         * m4/path-concat.m4: New file.
78055
78056         Module pathmax.
78057         * m4/pathmax.m4: New file.
78058
78059         Module same.
78060         * m4/same.m4: New file.
78061
78062         Module save-cwd.
78063         * m4/save-cwd.m4: New file.
78064
78065         Module savedir.
78066         * m4/savedir.m4: New file.
78067
78068         Module xgetcwd.
78069         * m4/xgetcwd.m4: New file.
78070         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78071
78072         Module xreadlink.
78073         * m4/xreadlink.m4: New file.
78074
78075         Module safe-read.
78076         * m4/safe-read.m4: New file.
78077
78078         Module safe-write.
78079         * m4/safe-write.m4: New file.
78080
78081         Module closeout.
78082         * m4/closeout.m4: New file.
78083
78084         Module stdio-safer.
78085         * m4/stdio-safer.m4: New file.
78086
78087         Module getpass.
78088         * m4/getpass.m4: New file.
78089
78090         Module getugroups.
78091         * m4/getugroups.m4: New file.
78092
78093         Module group-member.
78094         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78095         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78096
78097         Module idcache.
78098         * m4/idcache.m4: New file.
78099
78100         Module userspec.
78101         * m4/userspec.m4: New file.
78102
78103         Module gettime.
78104         * m4/clock_time.m4: New file.
78105         * m4/gettime.m4: New file.
78106
78107         Module settime.
78108         * m4/settime.m4: New file.
78109
78110         Module posixtm.
78111         * m4/posixtm.m4: New file.
78112
78113         Module gethostname.
78114         * m4/gethostname.m4: New file.
78115
78116         Module canon-host.
78117         * m4/canon-host.m4: New file.
78118
78119         Module gettext.
78120         * m4/codeset.m4: New file, from gettext-0.11.5.
78121         * m4/gettext.m4: New file, from gettext-0.11.5.
78122         * m4/glibc21.m4: New file, from gettext-0.11.5.
78123         * m4/iconv.m4: New file, from gettext-0.11.5.
78124         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78125         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78126         * m4/inttypes.m4: New file, from gettext-0.11.5.
78127         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78128         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78129         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78130         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78131         * m4/lib-link.m4: New file, from gettext-0.11.5.
78132         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78133         * m4/progtest.m4: New file, from gettext-0.11.5.
78134         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78135         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78136         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78137
78138         Module localcharset.
78139         * m4/localcharset.m4: New file.
78140
78141         Module hard-locale.
78142         * m4/hard-locale.m4: New file.
78143
78144         Module mbswidth.
78145         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78146         onceonly macros.
78147         * m4/mbrtowc.m4: Add comment.
78148
78149         Module memcasecmp.
78150         * m4/memcasecmp.m4: New file.
78151
78152         Module memcoll.
78153         * m4/memcoll.m4: New file.
78154
78155         Module unicodeio.
78156         * m4/unicodeio.m4: New file.
78157
78158         Module rpmatch.
78159         * m4/rpmatch.m4: New file.
78160
78161         Module yesno.
78162         * m4/yesno.m4: New file.
78163
78164         Module exitfail.
78165         * m4/exitfail.m4: New file.
78166
78167         Module c-stack.
78168         * m4/c-stack.m4 (gl_C_STACK): New macro.
78169         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78170
78171         Module error.
78172         * m4/error.m4 (gl_ERROR): New macro.
78173         (jm_PREREQ_ERROR): Use onceonly macros.
78174
78175         Module fatal.
78176         * m4/fatal.m4: New file.
78177
78178         Module getloadavg.
78179         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78180         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78181
78182         Module getpagesize.
78183         * m4/getpagesize.m4: New file.
78184
78185         Module getusershell.
78186         * m4/getusershell.m4: New file.
78187
78188         Module physmem.
78189         * m4/physmem.m4: New file.
78190
78191         Module posixver.
78192         * m4/posixver.m4: New file.
78193
78194         Module quotearg.
78195         * m4/quotearg.m4: New file.
78196
78197         Module quote.
78198         * m4/quote.m4: New file.
78199
78200         Module readutmp.
78201         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78202
78203         Module sig2str.
78204         * m4/sig2str.m4: New file.
78205
78206         Other.
78207         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78208         ulonglong.m4.
78209         * m4/intmax_t.m4: New file.
78210         * m4/d-type.m4: Indentation.
78211         * m4/jm-macros.m4: Update.
78212         * m4/prereq.m4 (jm_PREREQ): Update.
78213         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78214         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78215         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78216         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78217         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78218         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78219         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78220         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78221         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78222         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78223         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78224         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78225         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78226         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78227         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78228         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78229         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78230         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78231         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78232
78233 2002-12-24  Bruno Haible  <bruno@clisp.org>
78234
78235         * MODULES.txt: Update according to m4/ changes.
78236
78237         Module gettext.
78238         * config.rpath: New file, from gettext-0.11.5.
78239
78240         * modules/*: New module descriptions.
78241         * gnulib-tool: New file.
78242         * MODULES.html.sh: New file.
78243
78244 2002-12-21  Karl Berry  <karl@gnu.org>
78245
78246         * doc/fdl.texi: update to version 1.2.
78247
78248 2002-12-19  Karl Berry  <karl@gnu.org>
78249
78250         * config/config.guess: update from prep.
78251
78252 2002-12-18  Bruno Haible  <bruno@clisp.org>
78253
78254         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78255         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78256
78257 2002-12-17  Bruno Haible  <bruno@clisp.org>
78258
78259         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78260         stdlib.h, string.h.
78261
78262 2002-12-17  Bruno Haible  <bruno@clisp.org>
78263
78264         * lib/canon-host.c (strdup): Remove unused declaration.
78265
78266         * lib/fsusage.c: Include full_read.h.
78267         (get_fs_usage): Use full_read instead of safe_read.
78268
78269         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78270
78271 2002-12-12  Karl Berry  <karl@gnu.org>
78272
78273         * config/config.guess: update from prep.
78274
78275 2002-12-11  Bruno Haible  <bruno@clisp.org>
78276
78277         * m4/setenv.m4: New file, from gettext-0.11.5.
78278
78279 2002-12-11  Bruno Haible  <bruno@clisp.org>
78280
78281         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78282         not unsetenv().
78283         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78284         modifications:
78285
78286         2002-12-11  Bruno Haible  <bruno@clisp.org>
78287
78288                 * setenv.c (alloca): Fall back to malloc.
78289                 (freea): New macro.
78290                 (setenv): Use freea() to free memory allocated with alloca().
78291
78292         2002-11-13  Bruno Haible  <bruno@clisp.org>
78293
78294                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78295                 function declarations.
78296                 * unsetenv.c (unsetenv): Likewise.
78297
78298         2002-03-04  Bruno Haible  <bruno@clisp.org>
78299
78300                 Portability to AIX 4.3.3.
78301                 * unsetenv.c: New file, extracted from setenv.c.
78302                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78303
78304         2001-12-20  Bruno Haible  <bruno@clisp.org>
78305
78306                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78307                 use malloc instead. For SunOS 4.
78308
78309         2001-12-11  Bruno Haible  <bruno@clisp.org>
78310
78311                 * setenv.c: Declare alloca.
78312                 (compar_fn_t): New typedef.
78313                 (KNOWN_VALUE, STORE_VALUE): Use it.
78314
78315         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78316         setenv.h.
78317
78318 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78319
78320         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78321         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78322         Choose values that are less likely to collide with system fnmatch
78323         options.
78324         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78325         defined (e.g., a pure POSIX system).
78326         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78327         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78328
78329 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78330
78331         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78332         a pain in practice to deal with generated m4 files.  This change
78333         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78334
78335         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78336         and jm-glibc-io.m4, as they are no longer a special case.
78337         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78338         kludge and the auto-generation stuff.  Check only whether the
78339         functions are declared, not whether they exist, since older hosts
78340         that don't declare the functions can't use the optimization anyway.
78341
78342 2002-12-06  Jim Meyering  <jim@meyering.net>
78343
78344         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78345
78346         Merge in changes from libc's misc/error.c, in preparation
78347         for the merge of gnulib's changes back into libc.
78348
78349         * lib/error.c (_): Define only if not already defined.
78350         Move definition to follow all #include directives.
78351         Include unlocked-io.h only if !_LIBC.
78352         [_LIBC]: Include <libio/libioP.h>.
78353         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78354         (fflush): Tweak definition to use INTUSE.
78355         (putc): Define.
78356
78357 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78358
78359         * lib/alloca.c [defined emacs]: Include "lisp.h".
78360         (xalloc_die) [defined emacs]: New macro.
78361         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78362         [! defined emacs]: Include <xalloc.h>.
78363         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78364         (pointer): Typedef to POINTER_TYPE *.
78365         (malloc): Remove decl; we now always use xmalloc.
78366         (alloca): Use old-style definition, since Emacs needs this.
78367         Check for arithmetic overflow when computing combined size.
78368
78369 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78370
78371         Do not generate unlocked-io.h automatically, since it's easier to
78372         maintain it by hand.
78373
78374         * lib/unlocked-io.h: New file, from GNU diffutils,
78375         but with proper copyright notice and attribution.
78376         * lib/gen-uio: Remove.
78377         * lib/Makefile.am: Add copyright notice.
78378         (libfetish_a_SOURCES): Add unlocked-io.h.
78379         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78380         (DISTCLEANFILES, io_functions): Remove macros.
78381         (EXTRA_DIST): Remove gen_uio.
78382         (unlocked-io.h): Remove rule.
78383
78384 2002-12-04  Jim Meyering  <jim@meyering.net>
78385
78386         Reflect the fact that stat.c and lstat.c are no longer generated.
78387         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78388         (DISTCLEANFILES): Likewise.
78389         (EXTRA_DIST): Likewise.
78390         (all_local): Don't depend on stat.c or lstat.c.
78391         (stat.c, lstat.c): Remove rules.
78392         (EXTRA_DIST): Remove xstat.in.
78393
78394         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78395         * lib/stat.c: New file.  Contents mostly from xstat.in.
78396         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78397         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78398
78399         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78400         too.
78401         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78402
78403 2002-12-03  Jim Meyering  <jim@meyering.net>
78404
78405         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78406         but not semantics, to minimize the differences between these two files.
78407         (safe_read): Change comment to mention SAFE_READ_ERROR.
78408
78409         * lib/safe-read.c (IS_EINTR): Define.
78410         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78411
78412 2002-12-02  Jim Meyering  <jim@meyering.net>
78413
78414         * lib/safe-read.c (EINTR): Define.
78415         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78416         (INT_MAX): Provide fallback.
78417         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78418
78419         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78420
78421 2002-12-02  Bruno Haible  <bruno@clisp.org>
78422
78423         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78424         Define, taken from safe-read.c.
78425         (INT_MAX): Provide fallback.
78426         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78427         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78428
78429         * lib/safe-read.c (EINTR): Remove definition.
78430         (safe_read): Don't use EINTR if it is absent.
78431
78432 2002-12-01  Jim Meyering  <jim@meyering.net>
78433
78434         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78435         zero.
78436         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78437
78438 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78439
78440         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78441         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78442         with `if (! (value < limit)) abort ();', for readability.
78443
78444 2002-11-26  Karl Berry  <karl@gnu.org>
78445
78446         * lib/strdup.c: copy from libc again, with jim's ok.
78447         * lib/.cppi-disable: re-add strdup.c
78448
78449 2002-11-25  Karl Berry  <karl@gnu.org>
78450
78451         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78452         instead of "strtol.c".
78453
78454 2002-11-25  Karl Berry  <karl@gnu.org>
78455
78456         * config/install-sh: update from automake for variable quoting, $0 in
78457         error msgs, etc.
78458
78459         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78460         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78461         entry.
78462
78463 2002-11-25  Jim Meyering  <jim@meyering.net>
78464
78465         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78466
78467 2002-11-24  Karl Berry  <karl@gnu.org>
78468
78469         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78470         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78471
78472 2002-11-24  Jim Meyering  <jim@meyering.net>
78473
78474         Update from coreutils:
78475
78476         * lib/mktime.c: Merge in changes from libc.
78477
78478         Avoid a link-time failure on some Linux systems.
78479         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78480         (otherwise).
78481         (__mon_yday): Declare with the STATIC attribute.
78482         (__mktime_internal): Likewise.
78483         Based on a report from Greg Schafer.
78484
78485 2002-11-23  Jim Meyering  <jim@meyering.net>
78486
78487         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78488         Use `unsigned', not `int', as type of index.
78489
78490         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78491
78492         * lib/fsusage.c: Remove unneeded parentheses around operands of
78493         `defined'.
78494
78495 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78496
78497         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78498         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78499         so that we can be included first.
78500         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78501         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78502         No need to include stddef.h or sys/types.h any more.
78503         Surround local include files with "", not "<>".
78504         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78505         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78506         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78507         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78508         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78509         (ISPRINT): Remove; no longer needed now that we assume C89.
78510
78511         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78512         Preserve errno.
78513
78514         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78515         quotearg_char): Use SIZE_MAX rather than
78516         (size_t) -1 when we are talking about "infinity".
78517
78518         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78519
78520 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78521
78522         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78523         hint that one should use `if (! x) abort ();' rather than `assert
78524         (x);', and anyway it's one less thing to worry about configuring.
78525         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78526         hash_rehash, hash_insert): Use abort rather than assert.
78527
78528 2002-11-22  Bruno Haible  <bruno@clisp.org>
78529
78530         * lib/safe-read.h: Assume C89. Add comments.
78531         (safe_read): Change return type to size_t.
78532         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78533         byte counts > SSIZE_MAX correctly.
78534         * lib/safe-write.h: New file.
78535         * lib/safe-write.c: New file.
78536         * lib/full-read.h: New file.
78537         * lib/full-read.c: New file.
78538         * lib/full-write.h: Assume C89. Add comments.
78539         * lib/full-write.c: Include safe-write.h.
78540         (full_write): Rewritten to use safe_write.
78541         Suggested by Jim Meyering and Paul Eggert.
78542
78543 2002-11-21  Jim Meyering  <jim@meyering.net>
78544
78545         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78546
78547         Merge in changes from the coreutils.
78548
78549         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78550         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78551         <stdint.h>.
78552         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78553         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78554         int.  Work more efficiently if X is the same width as uintmax_t.
78555         Do not compare X to -1, to avoid bogus compiler warning.
78556         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78557         Don't assume that f_frsize and f_bsize are the same type.
78558
78559         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78560         warning on FreeBSD.
78561
78562         * lib/makepath.c (make_path): Restore umask *before* creating the final
78563         component.
78564         (make_path): Minor reformatting.
78565
78566         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78567         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78568         HAVE_MALLOC/HAVE_REALLOC.
78569
78570         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78571         dummy ones.  At least on GNU/Linux systems, `auto' means something
78572         else.
78573         From Michael Stone.
78574
78575 2002-11-21  Bruno Haible  <bruno@clisp.org>
78576
78577         Remove case insensitive option matching.
78578         * lib/argmatch.h (argcasematch): Remove declaration.
78579         (ARGCASEMATCH): Remove macro.
78580         (__xargmatch_internal): Remove case_sensitive argument.
78581         (XARGMATCH): Update.
78582         (XARGCASEMATCH): Remove macro.
78583         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78584         case_sensitive argument.
78585         (argcasematch): Remove function.
78586         (__xargmatch_internal): Remove case_sensitive argument.
78587         (main): Use XARGMATCH instead of XARGCASEMATCH.
78588
78589         * lib/xmalloc.c: Change compile-time error message. Add comment about
78590         required autoconf version.
78591
78592 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78593
78594         Merge argmatch cleanups from Bison.  Assume C89.
78595
78596         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78597         Include stdlib.h, for EXIT_FAILURE.
78598         Always include <string.h>, since we assume C89.
78599         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78600         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78601         Include <stddef.h> instead, since it's all we need for size_t.
78602         (PARAMS): Remove.  All uses removed.
78603         (ARRAY_CARDINALITY): Do not bother to #undef.
78604         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78605         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78606         Remove unnecessary parentheses.
78607         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78608         Insert necessary parentheses.
78609         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78610         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78611
78612 2002-11-19  Bruno Haible  <bruno@clisp.org>
78613
78614         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78615         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78616
78617         * lib/mbswidth.h (PARAMS): Remove macro.
78618         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78619         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78620
78621         * lib/gcd.h (PARAMS): Remove macro.
78622         (gcd): Use ANSI C function declarations.
78623         * lib/gcd.c (gcd): Likewise.
78624
78625 2002-11-15  Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/strcspn.c: Include <stddef.h>.
78628         (strcspn): Use ANSI C function declaration. Change return type to
78629         size_t. Use NULL.
78630         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78631         (strpbrk): Use NULL.
78632         * lib/strpbrk.h (PARAMS): Remove macro.
78633         (strpbrk): Use ANSI C function declaration.
78634         * lib/strstr.c: Don't include <sys/types.h>.
78635         * lib/strstr.h (PARAMS): Remove macro.
78636         (strstr): Use ANSI C function declarations.
78637
78638 2002-11-14  Karl Berry  <karl@gnu.org>
78639
78640         * config/mkinstalldirs: `do' on separate line, instead of
78641         `for var; do'.
78642
78643 2002-11-06  Bruno Haible  <bruno@clisp.org>
78644
78645         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78646         * lib/gcd.c (gcd): Likewise.
78647
78648 2002-11-05  Bruno Haible  <bruno@clisp.org>
78649
78650         * lib/gcd.h: New file, from gettext-0.11.5.
78651         * lib/gcd.c: New file, from gettext-0.11.5.
78652
78653 2002-11-05  Bruno Haible  <bruno@clisp.org>
78654
78655         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78656         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78657         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78658         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78659
78660         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78661         <libintl.h>.
78662         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78663         <libintl.h>.
78664
78665         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78666         * lib/human.c: Include gettext.h instead of <libintl.h>.
78667         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78668         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78669         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78670         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78671         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78672         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78673         (textdomain): Remove definition.
78674         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78675
78676         * lib/long-options.c: Remove include of <libintl.h> and definition of
78677         _.
78678         * lib/same.c: Remove include of <libintl.h> and definition of _.
78679
78680 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78681
78682         * lib/config.charset: A few additions for Solaris.
78683
78684 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78685
78686         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78687         * lib/localcharset.c (locale_charset): Declare as extern "C".
78688
78689 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78690
78691         * lib/config.charset: msdos in uk_UA uses CP1125.
78692
78693 2002-11-04  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78696         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78697         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78698         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78699         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78700
78701 2002-11-04  Bruno Haible  <bruno@clisp.org>
78702
78703         * lib/localcharset.c (locale_charset): Don't return an empty string.
78704
78705 2002-11-04  Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78708         aliases.
78709
78710 2002-11-04  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/config.charset: Update for newest glibc. Add canonical names
78713         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78714
78715 2002-11-04  Bruno Haible  <bruno@clisp.org>
78716
78717         * lib/config.charset: Add support for NetBSD.
78718
78719 2002-11-04  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78722
78723 2002-11-01  Bruno Haible  <bruno@clisp.org>
78724
78725         * configure.in: Add AC_CONFIG_AUX_DIR call.
78726         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78727         test/Makefile.
78728         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78729
78730 2002-09-28  Karl Berry  <karl@gnu.org>
78731
78732         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78733         installed automake until the next release, since changes have been
78734         made.
78735
78736 2002-09-25  Karl Berry  <karl@gnu.org>
78737
78738         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78739         * lib/getopt*: copy from libc/posix.
78740         * lib/gettext.h: copy from gettext.
78741         * lib/.cppi-disable: add strdup.c, gettext.h.
78742
78743 2002-09-25  Karl Berry  <karl@gnu.org>
78744
78745         * config/srclist.txt: enable gettext.h check.
78746         * config/config.{guess,sub}: update from prep.
78747         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78748                 from automake 1.6.3.
78749         See srclist*.
78750
78751 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78752
78753         * regex.c (PATFETCH): Remove the translating fetch.
78754         (PATFETCH_RAW): Rename to PATFETCH.
78755         (set_image_of_range): New fun.
78756         (SET_RANGE_TABLE_WORK_AREA): Use it.
78757         (regex_compile): Don't translate the pattern chars so eagerly.
78758         Only do it when inserting an `exactn' bytecode or when handling
78759         a char-range.
78760         (mutually_exclusive_p): Avoid empty statement.
78761
78762 2002-07-06  Jim Meyering  <meyering@lucent.com>
78763
78764         * m4/README: Don't mention Makefile.am.in.
78765         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78766
78767 2002-07-01  Jim Meyering  <meyering@lucent.com>
78768
78769         * lib/c-stack.c: Include sys/time.h.
78770         From Volker Borchert.
78771
78772 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78773
78774         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78775
78776 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78777
78778         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78779         New macro.  Use it uniformly instead of
78780         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78781         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78782         reported by Vin Shelton.
78783
78784 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78785
78786         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78787         Do not assume SA_SIGINFO behavior.
78788         Bug reported by Jim Meyering on NetBSD 1.5.2.
78789
78790 2002-06-22  Jim Meyering  <meyering@lucent.com>
78791
78792         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78793         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78794
78795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78796         now that configure.ac uses AC_GNU_SOURCE.
78797         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78798         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78799
78800         Update to latest tools.  Suggestions from Paul Eggert.
78801         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78802         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78803         * m4/fnmatch.m4: Likewise.
78804         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78805         to AC_HEADER_STDBOOL
78806
78807 2002-06-22  Jim Meyering  <meyering@lucent.com>
78808
78809         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78810         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78811
78812 2002-06-22  Jim Meyering  <meyering@lucent.com>
78813
78814         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78815
78816         * lib/exitfail.c, exitfail.h: Likewise.
78817         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78818
78819         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78820         of fnmatch.h.
78821         (EXTRA_DIST): Add fnmatch_loop.c.
78822         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78823
78824         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78825         * lib/fnmatch.c: Update from diffutils-2.8.2.
78826         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78827         * lib/fnmatch.h: Remove file.
78828
78829 2002-06-21  Jim Meyering  <meyering@lucent.com>
78830
78831         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78832         * m4/mbrtowc.m4: Likewise.
78833
78834         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78835         * m4/mbswidth.m4: Reflect name change:
78836         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78838
78839         * m4/lib-link.m4: Update from gettext-0.11.2.
78840         * m4/gettext.m4: Likewise.
78841
78842         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78843         From Alfred M. Szmidt.
78844
78845 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78846
78847         * lib/file-type.h: Report an error if neither S_ISREG nor
78848         S_IFREG is defined, instead of using a test specific to glibc
78849         2.2.  This should be safe, since POSIX requires S_ISREG and
78850         Unix Version 7 had S_IFREG.  We don't need to check for
78851         <sys/types.h> since we don't use any symbols that it defines.
78852
78853 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78854
78855         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78856         $@-t, so that each temporary file name is unique and valid in the first
78857         8 characters, for operation under DOS.
78858
78859 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78860
78861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78862
78863 2002-06-15  Jim Meyering  <meyering@lucent.com>
78864
78865         Work even with DJGPP 2.03, which lacks support for symlinks.
78866         From Richard Dawe.
78867         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78868         is defined.
78869         * lib/lchown.c (S_ISLNK): Likewise.
78870
78871 2002-06-15  Jim Meyering  <meyering@lucent.com>
78872
78873         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78874         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78875         have been included before this file.
78876
78877 2002-06-14  Jim Meyering  <meyering@lucent.com>
78878
78879         * lib/file-type.h: Use the version from diffutils-2.8.2.
78880         * lib/file-type.c: Likewise.
78881
78882 2002-06-07  Jim Meyering  <meyering@lucent.com>
78883
78884         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78885         They're needed at least for NetBSD 1.5.2.
78886         ($statxfs_includes): Include those same headers.
78887         ($statxfs_includes): Include sys/vfs.h if available.
78888         ($statxfs_includes): Likewise for sys/statvfs.h.
78889         Check for the following members in both structs statfs and statvfs:
78890         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78891
78892 2002-06-01  Jim Meyering  <meyering@lucent.com>
78893
78894         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78895         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78896
78897 2002-05-28  Jim Meyering  <meyering@lucent.com>
78898
78899         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78900         Reported by Volker Borchert.
78901
78902 2002-05-27  Jim Meyering  <meyering@lucent.com>
78903
78904         Fix a problem seen only on nonconforming systems whereby ls.c's
78905         use of localtime, and then of gettimeofday would cause trouble:
78906         the localtime call used to initialize rpl_gettimeofday's save
78907         mechanism would clobber ls's current local time information so
78908         that in any long listing the first file would always be listed
78909         with date 1970-01-01.  Analysis by Volker Borchert.
78910
78911         * lib/gettimeofday.c (localtime): Undefine.
78912         (rpl_localtime): New function.
78913
78914 2002-05-27  Jim Meyering  <meyering@lucent.com>
78915
78916         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78917         localtime.
78918
78919         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78920         use the replacement function; it wouldn't resolve at link time.
78921         Reported by Volker Borchert.
78922
78923 2002-05-22  Jim Meyering  <meyering@lucent.com>
78924
78925         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78926         file-type.h.
78927         * lib/file-type.h: New file.
78928         * lib/file-type.c (file_type): New file/function.  Extracted from
78929         diffutils.
78930
78931 2002-04-30  Jim Meyering  <meyering@lucent.com>
78932
78933         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78934
78935 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78936
78937         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78938
78939 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78940
78941         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78942         Do not check for alloca.h (no longer used) or stdbool.h (was never
78943         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78944
78945 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78946
78947         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78948
78949 2002-04-29  Jim Meyering  <meyering@lucent.com>
78950
78951         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78952         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78953         Use AC_FUNC_STRNLEN here instead.
78954
78955         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78956         With autoconf-2.53a, it's part of AC_PROG_CC.
78957
78958 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78959
78960         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78962
78963 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78964
78965         * lib/sig2str.h, lib/sig2str.c: New files.
78966         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78967
78968 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78969
78970         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78971         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78972         of 127, since 64 is the largest conceivable number for ancient
78973         nonstandard hosts.
78974         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78975
78976 2002-04-28  Jim Meyering  <meyering@lucent.com>
78977
78978         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78979
78980 2002-04-24  Jim Meyering  <meyering@lucent.com>
78981
78982         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78983         (jm_PREREQ): Use it.
78984
78985         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78986         mach/mach.h fcntl.h.
78987         Check for this function: setlocale.
78988
78989 2002-04-24  Jim Meyering  <meyering@lucent.com>
78990
78991         * lib/gettext.h: New file, from Gettext.
78992         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78993         (libfetish_a_SOURCES): Add gettext.h.
78994
78995 2002-04-16  Jim Meyering  <meyering@lucent.com>
78996
78997         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78998         ut_pid, ut_id, ut_exit.
78999
79000 2002-04-16  Jim Meyering  <meyering@lucent.com>
79001
79002         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79003         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79004         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79005
79006 2002-04-12  Jim Meyering  <meyering@lucent.com>
79007
79008         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79009         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79010         existence of the getmntinfo function.  Needed for Darwin 5.3.
79011
79012         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79013         This is necessary at least on Darwin 5.3.
79014
79015         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79016         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79017         strnlen.o in the library, and that makes some versions of ranlib
79018         object.
79019
79020 2002-04-12  Jim Meyering  <meyering@lucent.com>
79021
79022         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79023
79024 2002-04-09  Jim Meyering  <meyering@lucent.com>
79025
79026         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79027         to be more precise.  Rather than saying we're checking whether the
79028         function `works', say what we're testing.
79029         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79030         Reported by Bruno Haible.
79031
79032 2002-03-10  Jim Meyering  <meyering@lucent.com>
79033
79034         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79035         Suggestion from Santiago Vila.
79036
79037 2002-03-08  Jim Meyering  <meyering@lucent.com>
79038
79039         * lib/rename.c: Mention that this wrapper is needed also on
79040         mips-dec-ultrix4.4 systems.
79041
79042 2002-03-02  Jim Meyering  <meyering@lucent.com>
79043
79044         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79045         not HAVE_CLOCK_SETTIME.
79046
79047 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79048
79049         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79050         Check for clock_settime.
79051
79052 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79053
79054         * lib/nanosleep.h: Rename to....
79055         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79056
79057         * lib/gettime.c: New file.
79058         * lib/settime.c: New file.
79059         * lib/stime.c: Remove.
79060
79061         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79062         timespec.h.  Remove nanosleep.h.
79063
79064 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79065
79066         * m4/acl.m4: New file.
79067         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79068         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79069
79070 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79071
79072         * lib/acl.c, lib/acl.h: New files.
79073         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79074
79075 2002-02-24  Jim Meyering  <meyering@lucent.com>
79076
79077         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79078         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79079         cause trouble.  Reported by Nelson Beebe.
79080
79081 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79082
79083         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79084         compilers that don't know that xalloc_die never returns.
79085
79086 2002-02-20  Jim Meyering  <meyering@lucent.com>
79087
79088         * lib/getdate.c: Regenerate using bison-1.33.
79089
79090 2002-02-17  Jim Meyering  <meyering@lucent.com>
79091
79092         * config/config.guess (main): Don't use `head -1'; it's no longer
79093         portable. Use `sed 1q' instead.
79094
79095 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79096
79097         * m4/codeset.m4: Upgrade to gettext-0.11.
79098         * m4/gettext.m4: Upgrade to gettext-0.11.
79099         * m4/glibc21.m4: Upgrade to gettext-0.11.
79100         * m4/iconv.m4: Upgrade to gettext-0.11.
79101         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79102         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79103         * m4/lib-ld.m4: New file, from gettext-0.11.
79104         * m4/lib-link.m4: New file, from gettext-0.11.
79105         * m4/lib-prefix.m4: New file, from gettext-0.11.
79106         * m4/progtest.m4: Upgrade to gettext-0.11.
79107
79108 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79109
79110         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79111         (jm_PREREQ): Use it.
79112
79113 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79114
79115         * lib/posixver.c, lib/posixver.h: New files.
79116         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79117
79118 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79119             Bruno Haible  <bruno@clisp.org>
79120
79121         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79122         (fwrite_success_callback): New declaration.
79123         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79124         print_unicode_char. Call failure callback instead of error.
79125         (fwrite_success_callback): New function.
79126         (exit_failure_callback): New function.
79127         (fallback_failure_callback): New function.
79128         (print_unicode_char): Call unicode_to_mb.
79129
79130 2002-01-26  Jim Meyering  <meyering@lucent.com>
79131
79132         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79133         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79134
79135 2002-01-26  Jim Meyering  <meyering@lucent.com>
79136
79137         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79138
79139 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79140
79141         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79142
79143 2002-01-22  Jim Meyering  <meyering@lucent.com>
79144
79145         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79146         Otherwise, some versions of automake would omit the rule that makes
79147         Makefile from Makefile.in.
79148
79149 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79150
79151         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79152         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79153         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79154         (memcoll): Set errno to zero if there is no error.
79155
79156         * lib/quotearg.c (quotearg_buffer_restyled):
79157         Fix bug with quoting buffers containing NUL when backslashing escapes.
79158         This bug was exposed by the other changes in this patch.
79159         (quotearg_n_options): New arg ARGSIZE.
79160         All callers changed.
79161         (quoting_options_from_style): New function.
79162         (quotearg_n_style): Use it.
79163         (quotearg_n_style_mem): New function.
79164
79165         * lib/quotearg.h (quotearg_n_style_mem): New function.
79166
79167 2002-01-19  Jim Meyering  <meyering@lucent.com>
79168
79169         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79170         Remove useless quotes: DF_PROG="df".
79171         * m4/strnlen.m4: New file.
79172
79173 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79174
79175         * lib/backupfile.c (ISDIGIT): Comment fix.
79176         * lib/getdate.y (ISDIGIT): Likewise.
79177         * lib/posixtm.c (ISDIGIT, year): Likewise.
79178         * lib/strverscmp.c (ISDIGIT): Likewise.
79179         * lib/userspec.c (ISDIGIT): Likewise.
79180
79181 2002-01-16  Jim Meyering  <meyering@lucent.com>
79182
79183         * lib/getdate.y: Add three semicolons, each just before a closing
79184         brace. Bison (as of version 1.31) no longer papers over that mistake.
79185
79186 2002-01-05  Jim Meyering  <meyering@lucent.com>
79187
79188         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79189
79190 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79191
79192         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79193         not silently exit merely because the output buffer happens to
79194         have nothing pending.
79195
79196 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79197
79198         See the big note in ../ChangeLog.
79199         * lib/human.c (suffixes): Prefer K to k for 1024.
79200         (generate_suffix_backwards): New function.
79201         (human_readable_inexact): Use it.
79202         * lib/xstrtol.c (__xstrtol): If there is no number but there
79203         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79204         Accept 'K' as well as 'k'.
79205
79206 2001-12-15  Jim Meyering  <meyering@lucent.com>
79207
79208         * lib/regex.h (__restrict_arr): Update from libc.
79209
79210         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79211         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79212         (STREQ): Define.
79213
79214 2001-12-14  Jim Meyering  <meyering@lucent.com>
79215
79216         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79217         Suggestion from Bruno Haible.
79218
79219 2001-12-10  Jim Meyering  <meyering@lucent.com>
79220
79221         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79222         xrealloc, Instead, include "xalloc.h".
79223         (initbuffer): Don't cast xmalloc return value to char*.
79224         (readline): Reword comment.
79225         Don't cast xrealloc return value to char*
79226         Return NULL, not 0.
79227
79228 2001-12-09  Jim Meyering  <meyering@lucent.com>
79229
79230         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79231         about `signed and unsigned type in conditional expression'.
79232         * lib/posixtm.c (posix_time_parse): Likewise.
79233
79234         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79235
79236         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79237         to avoid a pedantic warning.
79238
79239         * lib/getstr.c: Don't include assert.h.
79240         (getstr): Remove warning-evoking assertions.
79241         Return -1 if offset parameter is out of bounds.
79242         Change the type of a local from int to size_t.
79243
79244         * lib/strftime.c (my_strftime_localtime_r): Include this function
79245         definition in the `#if ! HAVE_TM_GMTOFF' block.
79246
79247         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79248         Include xalloc.h instead.
79249
79250 2001-12-02  Jim Meyering  <meyering@lucent.com>
79251
79252         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79253         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79254         included.
79255
79256         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79257         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79258
79259 2001-11-30  Akim Demaille  <akim@epita.fr>
79260
79261         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79262         before being defined.
79263
79264 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79265
79266         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79267         First arg is int, not unsigned.
79268         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79269         (SIZE_MAX, UINT_MAX): New macros.
79270         (quotearg_n_options): Abort if N is negative.
79271         Avoid overflow check on hosts where size_t is 64 bits and int
79272         is 32 bits, as overflow is impossible there.
79273         Fix off-by-one typo that caused unnecessary reallocation.
79274
79275 2001-11-27  Jim Meyering  <meyering@lucent.com>
79276
79277         * lib/tempname.c: Merge with version from libc.
79278         * lib/regex.c: Likewise.
79279
79280         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79281         systems for which STDC_HEADERS is 0, it was not included, resulting in
79282         a warning about an integer-to-pointer conversion problem with getenv.
79283         Reported by Volker Borchert.
79284
79285 2001-11-26  Jim Meyering  <meyering@lucent.com>
79286
79287         * lib/gtod.h: Remove file.
79288         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79289         * lib/gettimeofday.c: Don't include gtod.h.
79290         (GTOD_init): Remove function.
79291         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79292         Suggestion from Volker Borchert.
79293
79294 2001-11-23  Jim Meyering  <meyering@lucent.com>
79295
79296         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79297         it.
79298         * lib/hash.c (struct hash_table): Define it here instead.
79299
79300 2001-11-22  Jim Meyering  <meyering@lucent.com>
79301
79302         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79303
79304 2001-11-20  Jim Meyering  <meyering@lucent.com>
79305
79306         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79307         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79308
79309 2001-11-19  Jim Meyering  <meyering@lucent.com>
79310
79311         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79312         directory.  Use "conftestXXXXXX" as the template.
79313         Suggestion from Paul Eggert.
79314
79315         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79316         immediately, so the test doesn't mistakenly hit the max-open-files
79317         limit.
79318
79319 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79320
79321         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79322         (TEMPORARIES): New macro.
79323         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79324         removes an artificial limitation (e.g. HP-UX 10.20, where
79325         TMP_MAX is 17576).
79326
79327 2001-11-18  Jim Meyering  <meyering@lucent.com>
79328
79329         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79330
79331 2001-11-18  Jim Meyering  <meyering@lucent.com>
79332
79333         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79334         on SunOS 4.
79335
79336         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79337         files will be created before anything else.
79338
79339 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79340
79341         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79342         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79343
79344 2001-11-17  Jim Meyering  <meyering@lucent.com>
79345
79346         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79347         Prompted by a report from Bob Proulx.
79348
79349         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79350         Instead, require UTILS_FUNC_MKSTEMP.
79351
79352 2001-11-17  Jim Meyering  <meyering@lucent.com>
79353
79354         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79355         Now, that's done as part of AC_FUNC_STRTOD.
79356
79357 2001-11-17  Jim Meyering  <meyering@lucent.com>
79358
79359         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79360         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79361         rather than group writable.  Patch by Juan F. Codagnone.
79362
79363         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79364         xrealloc, Instead, include "xalloc.h".
79365
79366         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79367         Remove explicit declarations of xmalloc, xrealloc,
79368         and xstrdup.  Instead, include "xalloc.h".
79369
79370         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79371         unlocked-io.h.
79372         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79373         Likewise.
79374         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79375
79376         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79377         Reported by Padraig Brady.
79378
79379         * lib/mkstemp.c: #undef mkstemp.
79380         Include config.h.
79381         (rpl_mkstemp): Rename from mkstemp.
79382         Protoize.
79383
79384 2001-11-16  Jim Meyering  <meyering@lucent.com>
79385
79386         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79387         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79388         determine the amount of total physical memory, use pstat_getstatic.
79389         HPUX-11 doesn't define _SC_PHYS_PAGES.
79390         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79391         If sysconf couldn't be used to determine the amount of available
79392         physical memory, use both pstat_getstatic and pstat_getdynamic.
79393         Based on a patch from Bob Proulx.
79394
79395 2001-11-10  Jim Meyering  <meyering@lucent.com>
79396
79397         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79398         (jm_PREREQ): Use it.
79399
79400 2001-11-09  Jim Meyering  <meyering@lucent.com>
79401
79402         * m4/jm-macros.m4: Require autoconf-2.52f.
79403         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79404         Use these AC_-prefixed names, not the AM_-prefixed ones.
79405
79406         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79407
79408 2001-11-05  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79411
79412 2001-11-04  Jim Meyering  <meyering@lucent.com>
79413
79414         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79415         $DEFS.
79416
79417 2001-11-03  Jim Meyering  <meyering@lucent.com>
79418
79419         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79420         of AC_DEFUN.
79421
79422         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79423         know the name of the variable in the macro definition.
79424
79425 2001-11-03  Jim Meyering  <meyering@lucent.com>
79426
79427         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79428         in argmatch_to_argument call.
79429
79430         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79431         argument.
79432
79433         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79434         e.g., a fault due to an attempt to free a NULL pointer.
79435
79436 2001-11-01  Jim Meyering  <meyering@lucent.com>
79437
79438         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79439         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79440
79441 2001-11-01  Jim Meyering  <meyering@lucent.com>
79442
79443         * lib/dirfd.c, lib/dirfd.h: New files.
79444         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79445
79446         * lib/hash.c (hash_print) [TESTING]: Clean up.
79447
79448 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79449
79450         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79451         to avoid a warning if -Wall.
79452
79453 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79454
79455         * README: New file
79456         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79457         (per RMS's instructions, this is now the canonical source)
79458         * lgpl/, gpl/: New directories.
79459
79460 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79461
79462         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79463
79464 2001-10-21  Jim Meyering  <meyering@lucent.com>
79465
79466         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79467         this code would end up calling gettext even in packages built
79468         with --disable-nls.
79469         * lib/getopt.c (_): Likewise.
79470         * lib/regex.c (_): Likewise.
79471
79472 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79473
79474         * m4/error.m4 (jm_PREREQ_ERROR):
79475         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79476         AC_FUNC_STRERROR_R does that.
79477         Check for strerror declaration.
79478
79479         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79480         are supposed to have them these days.
79481         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79482         Merge changes from latest Autoconf CVS.
79483         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79484         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79485         POSIX decided to standardize on the int flavor of strerror_r.
79486
79487 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79488
79489         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79490         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79491         Use strerror_r that is only a macro, even if it is not a function.
79492         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79493         (private_strerror): Use prototypes, not old-style function definition.
79494         (print_errno_message): New function.
79495         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79496         char*-flavored one.
79497         (error_tail, error, error_at_line): Use it.
79498
79499 2001-10-11  Jim Meyering  <meyering@lucent.com>
79500
79501         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79502         and quote_n (1, ... to avoid clobbering a buffer.
79503
79504 2001-10-05  Jim Meyering  <meyering@lucent.com>
79505
79506         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79507         hash-pjw.h.
79508         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79509         * lib/hash-pjw.h: New file.
79510
79511 2001-09-30  Jim Meyering  <meyering@lucent.com>
79512
79513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79514         `struct fsstat' has the `f_fstypename' member.
79515         Use that to define FS_TYPE, which is now used to make
79516         the getfsstat link test tighter.
79517
79518 2001-09-30  Jim Meyering  <meyering@lucent.com>
79519
79520         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79521         Include <sys/ucred.h>, for Apple Darwin.
79522         Include sys/mount.h and sys/fs_types.h only if available.
79523         (FS_TYPE): Define.
79524         (read_filesystem_list): Use FS_TYPE.
79525
79526 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79527
79528         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79529         a boolean context.
79530
79531 2001-09-29  Jim Meyering  <meyering@lucent.com>
79532
79533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79534         [one-argument getmntent function]): Include stdio.h before mntent.h.
79535         SunOS 4.1.x needs it for the declaration of `FILE'.
79536         Patch by Volker Borchert.
79537
79538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79539         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79540         sys/fs_types.h, and make the link-test for getfsstat guard #include
79541         directives with appropriate #if HAVE_*_H tests so that we can
79542         detect getfsstat on Apple Darwin1.3.7 systems.
79543         Reported by Nelson Beebe.
79544         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79545
79546 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79547
79548         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79549         #defines strtoimax.  Also treat the other strto* functions
79550         like strtoimax.
79551
79552         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79553         Check for strtoul and strtoumax,
79554         as those declarations are made even in the signed case.
79555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79556         Likewise, for strtol and strtoimax.
79557
79558 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79559
79560         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79561         #defines strtoimax.  Also treat the other strto* functions
79562         like strtoimax.
79563
79564         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79565         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79566         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79567
79568 2001-09-26  Jim Meyering  <meyering@lucent.com>
79569
79570         Most macros in unlocked-io.h had the wrong number of arguments.
79571         * lib/gen-uio: New script.
79572         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79573         * lib/unlocked-io.hin: Remove file.
79574         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79575         rather than trying to embed it here.
79576         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79577         Reported by Padraig Brady.
79578
79579 2001-09-25  Volker Borchert  <bt@teknon.de>
79580
79581         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79582         `result'.
79583
79584 2001-09-24  Jim Meyering  <meyering@lucent.com>
79585
79586         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79587
79588 2001-09-23  Jim Meyering  <meyering@lucent.com>
79589
79590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79591         instead of the mere test for existence of mntent.h.  The latter
79592         would get a false-positive on AIX 3.4 systems.
79593         In the outer getmntent if-block, don't die if neither of the getmntent
79594         tests succeeds.  Instead, just fall through and continue with the
79595         remaining tests.
79596
79597 2001-09-23  Jim Meyering  <meyering@lucent.com>
79598
79599         * lib/mountlist.c: Remove useless parentheses in #if directives.
79600         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79601         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79602
79603 2001-09-22  Jim Meyering  <meyering@lucent.com>
79604
79605         * m4/gettext.m4: New file.  From gettext.
79606         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79607         * m4/progtest.m4: Likewise
79608         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79609         * m4/glibc21.m4: Likewise.
79610
79611         * m4/libintl.m4: Remove.  No longer used.
79612
79613 2001-09-22  Jim Meyering  <meyering@lucent.com>
79614
79615         * lib/localcharset.c: Update from latest gettext.
79616         * lib/config.charset: Likewise.
79617
79618 2001-09-20  Jim Meyering  <meyering@lucent.com>
79619
79620         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79621         strtoimax.
79622         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79623         strtoumax.
79624
79625 2001-09-20  Jim Meyering  <meyering@lucent.com>
79626
79627         * lib/xstrtol.c (strtoimax): Guard declaration with
79628         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79629         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79630         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79631         (strtoumax): Likewise, for completeness (it wasn't necessary).
79632
79633 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79634
79635         * lib/strtoimax.c (HAVE_LONG_LONG):
79636         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79637         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79638         to work around bug in IBM C compiler.
79639
79640 2001-09-17  Jim Meyering  <meyering@lucent.com>
79641
79642         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79643         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79644         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79645         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79646         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79647         whenever the right hand side need not be expanded by the shell.
79648
79649 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79650
79651         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79652         library.  It's not correct, as some older glibcs are buggy.
79653         fnmatch wasn't fixed until glibc 2.2.
79654
79655         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79656         special shell magic here.
79657
79658 2001-09-16  Jim Meyering  <meyering@lucent.com>
79659
79660         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79661         * m4/jm-macros.m4: Require it.
79662
79663 2001-09-16  Jim Meyering  <meyering@lucent.com>
79664
79665         * lib/mkdir.c: New file.
79666
79667 2001-09-15  Jim Meyering  <meyering@lucent.com>
79668
79669         * m4/jm-macros.m4: Check for help2man.
79670
79671 2001-09-11  Jim Meyering  <meyering@lucent.com>
79672
79673         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79674         The body, by Paul Eggert, was moved here from configure.in.
79675         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79676
79677 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79678
79679         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79680         (jm_PREREQ): Use it.
79681
79682 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79683
79684         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79685         Use ssize_t, not int, to store result of readlink.
79686         Check for ssize_t overflow as well as size_t overflow,
79687         as POSIX says the result of readlink is implementation-defined
79688         when ssize_t overflows.
79689         Remove unnecessary cast to char*.
79690         Use free+malloc instead of realloc, as the storage doesn't need
79691         to be preserved and it's clearer and can be more efficient that way.
79692         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79693         * lib/xreadlink.h (xreadlink): Update prototype.
79694
79695 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79696
79697         * lib/xgetcwd.c: Revert some of the previous change; intead,
79698         fix the HAVE_GETCWD_NULL code to behave more like the
79699         !HAVE_GETCWD_NULL code used to.
79700
79701         Include "xalloc.h".
79702         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79703         invoke xalloc_die.
79704
79705 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79706
79707         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79708         sys/param.h, as pathmax.h includes them.
79709
79710 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79711
79712         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79713         (jm_PREREQ_XGETCWD): New macro.
79714
79715         * m4/getcwd.m4: New file.
79716
79717 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79718
79719         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79720         like the HAVE_GETCWD_NULL code.
79721         Include pathmax.h if not HAVE_GETCWD.
79722         Do not include xalloc.h.
79723         (INITIAL_BUFFER_SIZE): New symbol.
79724         Do not use xmalloc / xrealloc, since the caller is responsible for
79725         handling errors.  Preserve errno around `free' during failure.
79726         Do not overrun buffer when using getwd.
79727
79728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79729
79730         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79731         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79732         getcwd (NULL, 0).
79733
79734 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79735
79736         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79737         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79738         spotted by Jim Meyering.
79739
79740 2001-09-03  Jim Meyering  <meyering@lucent.com>
79741
79742         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79743         failure.
79744
79745 2001-09-02  Jim Meyering  <meyering@lucent.com>
79746
79747         * lib/error.c: Update from GNU libc.
79748
79749 2001-09-01  Jim Meyering  <meyering@lucent.com>
79750
79751         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79752         Used by df.
79753
79754 2001-09-01  Jim Meyering  <meyering@lucent.com>
79755
79756         * lib/xreadlink.c: New file.
79757         * lib/xreadlink.h: New file.
79758         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79759         xreadlink.h.
79760
79761         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79762         doesn't conflict with sparc Solaris 7's definition in
79763         /usr/include/sys/int_types.h.
79764
79765         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79766         files.
79767         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79768         and strncasecmp as r-values.  Unixware didn't have declarations.
79769
79770 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79771
79772         * lib/xstrtol.h: Add copyright notice.
79773         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79774         LONGINT_INVALID_SUFFIX_CHAR.
79775
79776 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79777
79778         * lib/xstrtol.c (strtoimax): New decl.
79779
79780 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79781
79782         * lib/xgetcwd.c: Don't include pathmax.h.
79783         Include stdlib.h and unistd.h if available.
79784         Include xalloc.h.
79785         (xmalloc, xstrdup, free): Remove decls.
79786         (xgetcwd): Don't assume sizes fit in unsigned.
79787         Check for overflow when computing sizes.
79788         Simplify reallocation code.
79789
79790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79791
79792         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79793         a directory's st_size can have an arbitrary value, so the old
79794         usage could waste an arbitrary amount of memory.  All uses
79795         changed.
79796         * lib/savedir.h: Update prototype.
79797
79798 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79799
79800         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79801
79802         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79803         old strtoimax.c.
79804
79805         Also, make the following further changes to make this file's
79806         configuration more similar to that of strtol.c:
79807         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79808         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79809         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79810         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79811         changed to signed values.
79812
79813         And make the following changes as well:
79814         Fix copyright notice, as 1999 was missing.
79815         (verify): New macro.
79816         (strtoimax): Check sizes at compile-time, not run-time.
79817         Prefer strtol to strtoll if both work.
79818         (main): Remove; it was not that useful and was a pain to maintain.
79819
79820         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79821
79822 2001-08-31  Jim Meyering  <meyering@lucent.com>
79823
79824         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79825         Use an initial, malloc'd, buffer of length 128 rather than
79826         a statically allocated one of length 1024.
79827
79828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79829
79830         Simplify code, partly by assuming autoconf 2.52 semantics.
79831
79832         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79833
79834         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79835         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79836         All uses removed.
79837         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79838         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79839         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79840         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79841         jm_AC_HEADER_INTTYPES_H.
79842         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79843
79844         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79845
79846         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79847         Quote first arg of AC_DEFUN.
79848         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79849         since they are needed to parse the include file even if we need
79850         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79851         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79852         but with opposite signedness.
79853
79854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79855
79856         Merge 'exclude' changes from tar 1.13.22.
79857         This fixes one or two unlikely storage allocation overflow bugs,
79858         but doesn't change user-visible behavior otherwise.
79859
79860 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79861
79862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79863         (jm_PREREQ_EXCLUDE): New macro.
79864
79865 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79866
79867         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79868         tm to be declared.
79869
79870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79871
79872         * lib/hash.c: Remove '2001' from copyright notice.
79873
79874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79875
79876         * lib/full-write.h: New file.
79877         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79878         * lib/full-write.c: Correct credits, as cccp.c no longer
79879         exists and anyway it was so heavily changed from the old cccp
79880         code as to be unrecognizable.  Include full-write.h.
79881         (full_write): Return size_t, with short writes meaning failure.
79882         All callers changed.  This fixes a bug with large buffers
79883         on 64-bit hosts.
79884         * lib/utime.c: Include full-write.h.
79885
79886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79887
79888         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79889         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79890         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79891         Include if available.
79892         (<xalloc.h>): Include
79893         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79894         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79895         collide with FNM macros.
79896         (struct patopts): New struct.
79897         (struct exclude): Use it, as exclude patterns now come with options.
79898         (new_exclude): Support above changes.
79899         (new_exclude, add_exclude_file):
79900         Initial size must now be a power of two to simplify overflow checking.
79901         (free_exclude, fnmatch_no_wildcards): New function.
79902         (excluded_filename): No longer requires options arg, as the options
79903         are determined by add_exclude.  Now returns bool, not int.
79904         (excluded_filename, add_exclude):
79905         Add support for the fancy new exclusion options.
79906         (add_exclude, add_exclude_file): Now takes int options arg.
79907         Check for arithmetic overflow when computing sizes.
79908         (add_exclude_file): xrealloc might modify errno, so don't
79909         realloc until after errno might be used.
79910
79911         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79912         New macros.
79913         (free_exclude): New decl.
79914         (add_exclude, add_exclude_file): Now takes int options arg.
79915         (excluded_filename): No longer requires options arg, as the options
79916         are determined by add_exclude.  Now returns bool, not int.
79917
79918 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79919
79920         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79921
79922 2001-08-27  Jim Meyering  <meyering@lucent.com>
79923
79924         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79925
79926         * lib/version-etc.c (N_): Remove definition.
79927         Revert most of last change.
79928         Instead, simply don't mark the `Copyright...' string for translation.
79929         Based on advice from Paul Eggert.
79930
79931         * lib/strtoxmax.c: Tweak comment.
79932
79933 2001-08-26  Jim Meyering  <meyering@lucent.com>
79934
79935         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79936
79937         * m4/xstrtoimax.m4: New file.
79938         * m4/xstrtoumax.m4: Add comments explaining why we
79939         AC_REPLACE_FUNCS(strtol).
79940
79941 2001-08-26  Jim Meyering  <meyering@lucent.com>
79942
79943         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79944         of copyright with `%s' so translators don't get an untranslated
79945         message in 2002.
79946         (COPYRIGHT_YEAR): Define.
79947         (version_etc): Use fprintf rather than fputs.
79948         Suggestion from Ulrich Drepper.
79949
79950         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79951
79952         * lib/strtoll.c: New file, from GNU libc.
79953         * lib/xstrtoimax.c: New file.
79954
79955         * lib/xstrtol.h: Add xstrtoimax.
79956         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79957         * lib/strtoimax.c: New file.  Likewise, but first define
79958         STRTOUXMAX_SIGNED.
79959
79960         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79961         ...
79962         * lib/strtoxmax.c: ... then renamed to this.
79963
79964 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79965
79966         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79967         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79968         (jm_AC_TYPE_INTMAX_T): New macro.
79969         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79970
79971         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79972
79973         * m4/longlong.m4: Renamed from ulonglong.m4.
79974         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79975         * m4/uintmax_t.m4: Removed.
79976
79977 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79978
79979         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79980         Port to Solaris 8, where 'sed' requires a space after the 'r'
79981         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79982         Redirect output to $tmp just once.
79983
79984 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79985
79986         * lib/addext.c (<errno.h>): Include.
79987         (errno): Declare if not defined.
79988         (addext): Work correctly when pathconf returns -1 and leaves
79989         errno alone because there is no limit.  Also, work even if
79990         pathconf returns a value greater than SIZE_MAX.
79991
79992 2001-08-12  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79995         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79996         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79997         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79998         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79999         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80000         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80001         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80002         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80003         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80004         utime.m4, utimes.m4, xstrtoumax.m4:
80005         Quote the first argument in each use of AC_DEFUN.
80006
80007 2001-08-12  Jim Meyering  <meyering@lucent.com>
80008
80009         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80010         Simply `return getcwd (NULL, 0);'.
80011         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80012         Use 1300 as initial value for length, not PATH_MAX.
80013
80014         * lib/pathmax.h: Clean up cpp syntax.
80015
80016 2001-08-12  Jim Meyering  <meyering@lucent.com>
80017
80018         * lib/gettimeofday.c: New file.
80019         * lib/gtod.h: New file.
80020         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80021
80022 2001-08-05  Jim Meyering  <meyering@lucent.com>
80023
80024         * m4/jm-macros.m4: Require autoconf-2.52.
80025
80026 2001-08-04  Jim Meyering  <meyering@lucent.com>
80027
80028         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80029         stmt, to get in sync with glibc.
80030
80031 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80032
80033         The following changes are from gettext 0.10.39 as maintained by
80034         Bruno Haible.
80035
80036         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80037         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80038         with inverted sense.  All uses changed.
80039
80040         * lib/mbswidth.c: Don't include <limits.h>.
80041         Include <stdlib.h> and <string.h> unconditionally.
80042         (iswcntrl, mbsinit, ISCNTRL): New macros.
80043         (mbsnwidth): Use K&R style function declarations.
80044         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80045         can optimize it when MB_CUR_MAX == 1.
80046         The width of control characters is zero, not 1.
80047
80048 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80049
80050         The following changes are from gettext 0.10.39 as maintained by
80051         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80052
80053         * m4/codeset.m4: Upgrade to serial AM1.
80054         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80055         all uses changed.  Quote first arg of AC_DEFUN.
80056         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80057
80058         * m4/iconv.m4: Upgrade to serial AM2.
80059         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80060         Add --with-libconv-prefix.
80061         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80062         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80063         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80064         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80065         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80066
80067         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80068         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80069         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80070         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80071         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80072         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80073         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80074         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80075         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80076
80077         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80078         string.h any more.
80079
80080         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80081         not the default value.
80082
80083         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80084         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80085         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80086         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80087         Also check for iswcntrl, used for wcwidth fallback.
80088         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80089         to Autoconf 2.13.
80090
80091 2001-08-03  Jim Meyering  <meyering@lucent.com>
80092
80093         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80094         as it was in the original.  Reported by Paul Eggert.
80095
80096 2001-07-16  Jim Meyering  <meyering@lucent.com>
80097
80098         * m4/gettimeofday.m4: New file.
80099         Prompted by a report from Bernhard Baehr.
80100
80101 2001-07-15  Jim Meyering  <meyering@lucent.com>
80102
80103         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80104         stuff. Now it's in ../Makefile.cfg.
80105
80106 2001-07-15  Jim Meyering  <meyering@lucent.com>
80107
80108         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80109         (BUILT_SOURCES): Add unlocked-io.h.
80110         (io_functions): Define.
80111         (unlocked-io.h): New rule.
80112         (DISTCLEANFILES): Add unlocked-io.h.
80113         (all-local): Depend on unlocked-io.h, to ensure it is created.
80114
80115         * lib/unlocked-io.hin: New file
80116
80117         * lib/regex.c: Update from glibc.
80118
80119 2001-07-05  Jim Meyering  <meyering@lucent.com>
80120
80121         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80122         recommendation.
80123         (libfetish_a_SOURCES): Put all .h files here instead.
80124         Remove a thus-exposed (better checks in automake) duplicate and
80125         two unnecessary .h files.
80126
80127 2001-07-04  Jim Meyering  <meyering@lucent.com>
80128
80129         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80130         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80131         distcheck failure.
80132
80133 2001-07-02  Jim Meyering  <meyering@lucent.com>
80134
80135         The following changes were prompted by suggestions from Bruno Haible.
80136
80137         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80138         is now generated.
80139         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80140         definition of EXTRA_DIST.
80141         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80142         ensure that the generated file is created/updated whenever the list
80143         of $(unlocked_functions) is changed.
80144         (jm-glibc-io.m4): New rule.
80145         (unlocked-io.h): New rule -- currently unused.
80146
80147 2001-06-24  Jim Meyering  <meyering@lucent.com>
80148
80149         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80150         unmatched right bracket, rather than kludging it with an extra,
80151         falsely-matching quote in a comment.  Patch by Akim Demaille.
80152
80153 2001-06-11  Jim Meyering  <meyering@lucent.com>
80154
80155         * lib/regex.c: Update from GNU libc.
80156
80157 2001-05-27  Jim Meyering  <meyering@lucent.com>
80158
80159         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80160         Check for ut_type in struct utmp.
80161
80162 2001-05-27  Jim Meyering  <meyering@lucent.com>
80163
80164         * lib/readutmp.h (UT_TYPE): Define.
80165
80166 2001-05-24  Jim Meyering  <meyering@lucent.com>
80167
80168         * lib/argmatch.c: Include "quote.h".
80169         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80170         quote function.  Reported by Göran Uddeborg.
80171
80172 2001-05-22  Jim Meyering  <meyering@lucent.com>
80173
80174         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80175         now that we use the package-supplied version unconditionally.
80176         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80177
80178 2001-05-21  Jim Meyering  <meyering@lucent.com>
80179
80180         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80181         shell syntax errors.
80182
80183 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80184
80185         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80186
80187 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80188
80189         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80190         Don't bother to check library strftime, since
80191         we'll be using our own my_strftime function anyway.
80192         Define my_strftime instead of strftime.
80193
80194 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80195
80196         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80197         which is not yet declared.
80198
80199 2001-05-15  Jim Meyering  <meyering@lucent.com>
80200
80201         * m4/regex.m4: Use proper quoting so brackets appear in the test
80202         program.
80203         Reported by, and with help from, Bruno Haible.
80204
80205 2001-05-13  Jim Meyering  <meyering@lucent.com>
80206
80207         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80208         undefined.
80209
80210 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80211
80212         dirname code cleanup.  base_name now behaves more compatibly
80213         with POSIX basename when given file names that have trailing
80214         slashes, and similarly for dir_name.  Add new primitives
80215         base_len and dir_len.  Put the directory-name-related decls
80216         into dirname.h.
80217
80218         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80219         * lib/backupfile.c (base_name): Likewise.
80220         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80221         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80222         * lib/makepath.c (strip_trailing_slashes): Likewise.
80223         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80224         ISSLASH): Likewise.
80225         * lib/rename.c (strip_trailing_slashes): Likewise.
80226         * lib/same.c (base_name): Likewise.
80227         * lib/stripslash.c (ISSLASH): Likewise.
80228
80229         * lib/addext.c: Include <dirname.h> after size_t is defined.
80230         * lib/backupfile.c: Likewise.
80231
80232         * lib/addext.c (addext): Use base_len to trim redundant
80233         trailing slashes instead of doing it ourselves.
80234         But do not trim the last slash if it is not redundant.
80235
80236         * lib/backupfile.c (find_backup_file_name,
80237         max_backup_version): Use base_len instead of rolling it ourselves.
80238         Handle the case of "" and (on DOS) "C:" correctly.
80239
80240         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80241         needed. Include <string.h>, <dirname.h>.
80242         (base_name): Allow file names ending in slashes, other than names
80243         that are all slashes.  In this case, return the basename followed
80244         by the slashes.  This is more general, and can be used in places
80245         where the original base_name purposely had an assertion failure.
80246         (base_len): New function.
80247
80248         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80249         Do not include <assert.h>; no longer needed.
80250         Include xalloc.h.
80251         (memrchr): Remove decl.
80252         (dir_name_r): Remove.
80253         (dir_len): Renamed from dirlen.  All callers changed.
80254         Rewrite in terms of base_name, for simplicity and consistency.
80255         (dir_name): Never return NULL.  All callers changed.
80256         Do not include <stdlib.h> in test program; no longer needed.
80257         return 0; is fine for test program.
80258
80259         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80260         New macros.
80261         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80262
80263         * lib/path-concat.c (path_concat): Use base_len to compute
80264         base length, not strlen; this means we cannot rely on memcpy
80265         to null-terminate.
80266
80267         * lib/same.c (STREQ): Remove.
80268         (same_name): Handle the case where the basename ends in trailing '/'.
80269
80270         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80271         a slash was stripped.  Do not strip the last slash after a
80272         file system prefix.
80273
80274 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80275
80276         * lib/Makefile.am (libfetish_a_SOURCES):
80277         Add strftime.c, since we now compile it on all hosts.
80278
80279         * lib/strftime.c (my_strftime):
80280         Define to nstrftime if emacs, but only if my_strftime is not defined.
80281         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80282         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80283         Add one more extra argument: a nanoseconds value.
80284         All uses changed.
80285         (ns): New macro.
80286         (my_strftime function): Add %N format.
80287         (emacs_strftimeu): Renamed from emacs_strftime,
80288         with extra ut argument.
80289
80290 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80291
80292         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80293
80294 2001-04-21  Jim Meyering  <meyering@lucent.com>
80295
80296         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80297         doesn't interfere.
80298
80299 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80300
80301         * m4/ftruncate.m4: Check for chsize.
80302         Link with ftruncate.o unconditionally if ftruncate is missing.
80303         This was required when cross-compiling to i586-mingw32msvc.
80304
80305 2001-04-08  Jim Meyering  <meyering@lucent.com>
80306
80307         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80308         recomputed; that's necessary when the offset spans a DST transition.
80309         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80310
80311 2001-04-02  Jim Meyering  <meyering@lucent.com>
80312
80313         * lib/regex.h, regex.c: Update from GNU libc.
80314
80315 2001-03-24  Jim Meyering  <meyering@lucent.com>
80316
80317         * m4/jm-macros.m4: Require autoconf-2.49d.
80318
80319 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80320
80321         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80322
80323 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80324
80325         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80326
80327 2001-03-17  Jim Meyering  <meyering@lucent.com>
80328
80329         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80330         now that the version in autoconf is equivalent.
80331         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80332
80333         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80334         Suggestion from Akim Demaille.
80335
80336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80337         (jm_PREREQ_TEMPNAME): New function.
80338
80339 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80340
80341         * lib/tempname.c (uint64_t): Define to uintmax_t if
80342         not defined, and if UINT64_MAX is not defined.
80343         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80344         Reported by John David Anglin.
80345
80346 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80347
80348         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80349         resolve alias if codeset is empty.
80350         * lib/config.charset (BeOS): Use wildcard syntax.
80351
80352 2001-03-13  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/path-concat.c (path_concat)
80355         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80356         concatenating e.g., `C:' and `foo'.
80357         From Bruno Haible.
80358
80359 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80360
80361         * lib/localcharset.c (locale_charset): Don't use
80362         setlocale(LC_CTYPE,NULL). Don't return NULL.
80363         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80364
80365 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80366
80367         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80368         support for DOS/DJGPP.
80369
80370 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80371
80372         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80373         lacks mkstemp.  Compile our own tempname.c if we compile our own
80374         mkstemp.c, as mkstemp relies on tempname.
80375
80376 2001-03-01  Jim Meyering  <meyering@lucent.com>
80377
80378         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80379         AH_VERBATIM really does output its argument verbatim.
80380
80381 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80382
80383         * lib/Makefile.am (libfetish_a_SOURCES):
80384         Add dup-safer.c, fopen-safer.c.
80385         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80386
80387         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80388         * lib/unistd-safer.h: New files.
80389
80390 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80391
80392         The mkstemp replacement is taken from glibc 2.2.2, with some
80393         portability fixes for use outside glibc, as follows:
80394
80395         * lib/tempname.c (struct_stat64): New macro.
80396         (direxists, __gen_tempname): Use it.
80397         This avoids a portability problem with Solaris 8.
80398
80399         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80400         (<stddef.h>, <stdint.h>, <string.h>):
80401         Include only if STDC_HEADERS || _LIBC.
80402         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80403         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80404         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80405         (__set_errno): Define this macro if <errno.h> doesn't.
80406         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80407         Define these macros if <stdio.h> doesn't.
80408         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80409         Define these macros if <sys/stat.h>
80410         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80411         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80412         __xstat64): Define if not _LIBC.
80413         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80414         (__gen_tempname): Invoke gettimeofday only if
80415         HAVE_GETTIMEOFDAY || _LIBC;
80416         otherwise, fall back on plain "time".
80417         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80418
80419         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80420
80421         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80422
80423 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80424
80425         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80426
80427 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80428
80429         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80430         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80431         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80432         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80433
80434 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80435
80436         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80437         Remove workaround macros for hosts that have mbrtowc but not
80438         mbstate_t, as we now insist on proper declarations for both
80439         before using mbrtowc.
80440
80441 2001-02-17  Jim Meyering  <meyering@lucent.com>
80442
80443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80444         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80445         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80446         UnixWare 7.1.1.
80447
80448         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80449         rather than AC_CACHE_VAL.
80450
80451 2001-02-17  Jim Meyering  <meyering@lucent.com>
80452
80453         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80454         around included file name.
80455
80456         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80457
80458         * lib/strftime.c: Update from GNU libc (the only changes were to
80459         comments).
80460
80461 2001-02-17  Jim Meyering  <meyering@lucent.com>
80462
80463         * lib/regex.c: Update from libc.
80464
80465 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80466
80467         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80468         clash.
80469
80470 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80471
80472         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80473         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80474         Reported by Mark Hounschell via Paul Eggert.
80475
80476 2001-02-07  Jim Meyering  <meyering@lucent.com>
80477
80478         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80479
80480 2001-02-05  Jim Meyering  <meyering@lucent.com>
80481
80482         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80483         it includes the patch required for `large file' support with at least
80484         HP-UX's 10.20 /bin/cc.
80485
80486 2001-02-03  Jim Meyering  <meyering@lucent.com>
80487
80488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80489         AS_IF, now that it works once again (mysteriously).
80490         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80491
80492 2001-01-30  Jim Meyering  <meyering@lucent.com>
80493
80494         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80495         * m4/chown.m4: Rename conftestchown to conftest.chown.
80496         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80497         s/conftestdir2/conftest.d2/.
80498         * m4/utimes.m4: s/conftestdata/conftest.data/
80499         Inspired by Pavel Roskin's change in autoconf.
80500
80501 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80502
80503         * lib/config.charset: Update for FreeBSD 4.2.
80504
80505 2001-01-27  Jim Meyering  <meyering@lucent.com>
80506
80507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80508         a use of AS_IF.
80509         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80510
80511 2001-01-26  Jim Meyering  <meyering@lucent.com>
80512
80513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80514         quotearg.c includes it.
80515
80516 2001-01-26  Jim Meyering  <meyering@lucent.com>
80517
80518         * lib/quotearg.c: Include stddef.h.
80519         * lib/quote.c: Include stddef.h.
80520         Reported by Axel Kittenberger.
80521
80522         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80523         line in double quotes so that it evokes a better diagnostic.
80524         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80525         Reported by Axel Kittenberger.
80526
80527 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80528
80529         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80530         as if it was a `charset'.
80531
80532 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80533
80534         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80535         has const.
80536
80537 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80538
80539         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80540         to avoid a warning.  Add back 'const' to inptr.
80541
80542 2001-01-20  Jim Meyering  <meyering@lucent.com>
80543
80544         Be sure that headers are checked before used in code compiled
80545         for the type checks.
80546         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80547         In place of that, invoke jm_CHECK_ALL_TYPES.
80548         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80549         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80550         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80551         The check for ssize_t was mistakenly run before the test for unistd.h.
80552
80553         The configure-time check for stdbool.h was missing.
80554         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80555         (jm_PREREQ_HASH): New function.
80556
80557 2001-01-17  Jim Meyering  <meyering@lucent.com>
80558
80559         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80560         for autoconf-2.49c.
80561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80562
80563 2001-01-16  Jim Meyering  <meyering@lucent.com>
80564
80565         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80566         From Bruno Haible.
80567
80568 2001-01-14  Jim Meyering  <meyering@lucent.com>
80569
80570         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80571         foo and bar.  Create conftestdir/ in the script, not in the C code.
80572         Remove directories in the script, not in the C code.
80573         Remove conftestdir{,2} before trying to create the directory.
80574         Make the entire configure script fail if the mkdir fails.
80575
80576 2001-01-14  Jim Meyering  <meyering@lucent.com>
80577
80578         * lib/rename.c: New file.  From Volker Borchert.
80579         Include stdlib.h, string.h or strings.h, and xalloc.h.
80580         Use strip_trailing_slashes rather than open-coding it.
80581
80582 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80583
80584         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80585
80586 2001-01-03  Jim Meyering  <meyering@lucent.com>
80587
80588         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80589         of local `inptr' to avoid warning with some system declarations of
80590         iconv.
80591
80592 2001-01-02  Volker Borchert  <bt@teknon.de>
80593
80594         * m4/rename.m4: New file.
80595         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80596
80597 2001-01-01  Jim Meyering  <meyering@lucent.com>
80598
80599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80600         even on systems with utmpx.h.  It's necessary for the declaration of
80601         utmp's ut_user member.  Reported by Andreas Jaeger.
80602
80603         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80604         available. They are required for the declarations of getgrgid and
80605         getpwuid resp.
80606         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80607         Reported by Andreas Jaeger.
80608
80609 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80610
80611         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80612         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80613         so `make install' also works in VPATH builds.
80614
80615 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80616
80617         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80618         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80619         can be used in subdirectories.
80620
80621 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80622
80623         * lib/modechange.c: Do not assume that mode_t uses the
80624         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80625         the other-execute bit of FOO even if S_IXOTH != 1.
80626
80627         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80628         WOTH, XOTH, ALLM): New macros.
80629         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80630          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80631         Use them.
80632         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80633         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80634         (mode_compile):
80635         No need to use uintmax_t; unsigned long is long enough.
80636         Don't bother to get suffix since we don't use it.
80637
80638 2000-12-26  Jim Meyering  <meyering@lucent.com>
80639
80640         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80641         better with autoheader.
80642
80643 2000-12-24  Jim Meyering  <meyering@lucent.com>
80644
80645         * lib/hash.c (is_prime): Return explicit boolean values.
80646         (hash_get_first): Return NULL to appease Irix5.6's 89.
80647         Reported by Nelson Beebe.
80648
80649 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80650
80651         * lib/localcharset.c (locale_charset): Add support for Win32.
80652
80653 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80654
80655         * lib/physmem.h, lib/physmem.c: New files.
80656
80657         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80658         (noinst_HEADERS): Add physmem.h.
80659
80660         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80661         't' for compatibility with Solaris 8 sort.
80662
80663 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80664
80665         * lib/config.charset: Add support for BeOS.
80666
80667 2000-12-17  Jim Meyering  <meyering@lucent.com>
80668
80669         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80670         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80671
80672 2000-12-16  Jim Meyering  <meyering@lucent.com>
80673
80674         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80675         N and M) would have treated it like `chown N:N FILE'.
80676
80677         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80678
80679 2000-12-16  Jim Meyering  <meyering@lucent.com>
80680
80681         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80682         SHELLS_FILE to a file name that's useful on djgpp systems.
80683         Include stdlib.h.
80684         (ADDITIONAL_DEFAULT_SHELLS): Define.
80685         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80686         Based mostly on a patch from Prashant TR.
80687
80688 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80689
80690         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80691         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80692         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80693
80694 2000-12-08  Andreas Schwab  <schwab@suse.de>
80695
80696         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80697         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80698
80699 2000-12-07  Jim Meyering  <meyering@lucent.com>
80700
80701         * lib/stripslash.c (ISSLASH): Define.
80702         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80703         `/'.
80704         From Prashant TR.
80705
80706         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80707         (dir_name_r): Declare this function as static.
80708         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80709         manifest itself on a name containing a mix of slashes and
80710         backslashes.
80711         Make this function work with names starting with a DOS-style
80712         drive letter and colon prefix.
80713         (dir_name): Append `.' if necessary.
80714         Based mostly on patches from Prashant TR and Eli Zaretskii.
80715
80716         * lib/dirname.h (dir_name_r): Remove prototype.
80717
80718 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80719
80720         * m4/off_t-format.m4: Remove this file.
80721         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80722
80723 2000-12-06  Jim Meyering  <meyering@lucent.com>
80724
80725         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80726         replacement strtoull, we may well need the replacement strtoul, too.
80727         Check for declarations of strtoul and strtoull.
80728         Check for strtol.  Mainly as a cue to cause automake to include
80729         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80730         Check for limits.h -- strtol.c needs it.
80731
80732 2000-12-05  Jim Meyering  <meyering@lucent.com>
80733
80734         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80735
80736 2000-12-04  Jim Meyering  <meyering@lucent.com>
80737
80738         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80739         Also include memory.h, stdlib.h, unistd.h if appropriate.
80740         Reported by Andreas Jaeger (conflicting declaration of malloc).
80741
80742 2000-12-02  Jim Meyering  <meyering@lucent.com>
80743
80744         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80745         * m4/jm-macros.m4 (jm_MACROS): require it.
80746
80747 2000-12-02  Jim Meyering  <meyering@lucent.com>
80748
80749         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80750
80751 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80752
80753         * lib/memrchr.c: Include <config.h> before any system include file.
80754
80755 2000-11-30  Jim Meyering  <meyering@lucent.com>
80756
80757         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80758
80759 2000-11-30  Jim Meyering  <meyering@lucent.com>
80760
80761         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80762
80763 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80764
80765         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80766
80767 2000-11-26  Jim Meyering  <meyering@lucent.com>
80768
80769         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80770
80771 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80772
80773         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80774         size of (size_t) -1; it's not portable.
80775
80776 2000-11-17  Jim Meyering  <meyering@lucent.com>
80777
80778         * lib/strstr.c: Update from GNU libc.
80779
80780 2000-11-17  Akim Demaille  <akim@epita.fr>
80781
80782         * lib/obstack.h: Formatting changes.
80783         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80784         prevent type checking.
80785         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80786         cast the value to (void *): assigning a `foo *' to a `void *'
80787         variable is valid.
80788         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80789
80790 2000-11-16  Jim Meyering  <meyering@lucent.com>
80791
80792         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80793
80794 2000-11-11  Jim Meyering  <meyering@lucent.com>
80795
80796         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80797
80798 2000-11-10  Jim Meyering  <meyering@lucent.com>
80799
80800         * lib/obstack.h: Update from GNU libc.
80801         * lib/obstack.c: Likewise.
80802
80803 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80804
80805         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80806
80807 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80808
80809         * lib/getusershell.c (setusershell): Use rewind rather than
80810         fseek/fseeko, to avoid configuration hassles with fseeko.
80811         Don't bother opening SHELLS_FILE if shellstream is NULL;
80812         it's not necessary.
80813
80814 2000-11-05  Jim Meyering  <meyering@lucent.com>
80815
80816         * lib/makepath.h (make_dir): Declare.
80817         * lib/makepath.c (make_dir): Remove `static' attribute.
80818         Tweak a comment.
80819
80820 2000-11-04  Jim Meyering  <meyering@lucent.com>
80821
80822         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80823
80824 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80825
80826         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80827         last one in a bucket, advance to the next bucket.
80828
80829 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80830
80831         * lib/fnmatch.c: Do not comment out all the code if we are using
80832         the GNU C library, because in some cases we are replacing buggy
80833         code in the GNU C library itself.
80834
80835 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80836
80837         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80838         (regex_compile): Catch bogus \(\1\).
80839
80840 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80841
80842         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80843         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80844         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80845
80846 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80847
80848         * lib/error.h, getline.h, modechange.h:
80849         Remove "2000" from Copyright line, as the file hasn't been
80850         changed this year other than in the copyright notice.
80851
80852         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80853         was changed this year.
80854
80855 2000-10-29  Jim Meyering  <meyering@lucent.com>
80856
80857         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80858         renaming.
80859         * m4/ls-mntd-fs.m4: Likewise
80860
80861 2000-10-29  Jim Meyering  <meyering@lucent.com>
80862
80863         * lib/xstat.in: Fix grammar in comment.
80864
80865 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80866
80867         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80868         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80869         doesn't define __restrict_arr.
80870
80871 2000-10-28  Jim Meyering  <meyering@lucent.com>
80872
80873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80874         (jm_PREREQ_MEMCHR): New function.
80875
80876 2000-10-28  Jim Meyering  <meyering@lucent.com>
80877
80878         * lib/memchr.c: Update from libc.
80879         Adjust for portability:
80880         [HAVE_STDLIB_H]: Include stdlib.h.
80881         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80882         Undef __memchr, too.
80883         [!weak_alias]: Define __memchr to memchr.
80884
80885         * lib/regex.c: Update from libc.
80886         * lib/regex.h: Likewise.
80887         * lib/getopt1.c: Likewise.
80888         * lib/memcmp.c: Likewise.
80889
80890         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80891         Avoid using fseek, when possible -- it's broken by design.
80892         Patch by Ulrich Drepper.
80893
80894 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80895
80896         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80897         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80898         Giving in to popular pressure to shut up the compiler with casts.
80899
80900 2000-10-26  Jim Meyering  <meyering@lucent.com>
80901
80902         * lib/strftime.c: Update from libc.
80903
80904 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80905
80906         * regex.c: More `unsigned char' -> `re_char' changes.
80907         Also change several `int' into `re_wchar_t'.
80908         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80909         (PUSH_FAILURE_POINTER): Don't cast any more.
80910         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80911         We want GCC to complain, since this piece of code makes
80912         re_match non-reentrant, which *should* be fixed.
80913         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80914         (EXTEND_BUFFER): Use RETALLOC.
80915         (SET_LIST_BIT): Don't cast.
80916         (re_wchar_t): New type.
80917         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80918         that those two functions will always properly return.
80919         (IMMEDIATE_QUIT_CHECK): Cast to void.
80920         (analyse_first): Use recursion rather than an explicit stack.
80921         (re_compile_fastmap): Can't fail anymore.
80922         (re_search_2): Don't check re_compile_fastmap for failure.
80923         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80924         Now also sets the new value (passed in a new argument).
80925         (re_match_2_internal): Use it.
80926         Also, use a new var `reg' of type size_t when looping through regs
80927         rather than reuse the inappropriate `mcnt'.
80928
80929 2000-10-25  Jim Meyering  <meyering@lucent.com>
80930
80931         * lib/obstack.c: Update from libc.
80932
80933 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80934
80935         * regex.c (regex_compile): Change the way of handling a range from
80936         a char less than 256 to a char not less than 256.
80937
80938 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80939
80940         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80941         NT-Emacs only.
80942         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80943         so that re_search functions only quit when callers expect them to.
80944
80945 2000-10-23  Jim Meyering  <meyering@lucent.com>
80946
80947         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80948         wrong.  That set_locale call must not have any side effects.
80949         From Paul Eggert.
80950
80951 2000-10-22  Jim Meyering  <meyering@lucent.com>
80952
80953         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80954         [CYCLIC]: Remove now-unused definition.
80955
80956         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80957         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80958         Suggestion from Ulrich Drepper.
80959
80960 2000-10-21  Jim Meyering  <meyering@lucent.com>
80961
80962         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80963         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80965
80966 2000-10-21  Jim Meyering  <meyering@lucent.com>
80967
80968         * lib/dirname.c (memrchr): Declare if necessary.
80969         (dir_name): Remove the restriction that there be no
80970         trailing slashes.  Now, this code skips past them, effectively
80971         ignoring them.
80972         [TEST_DIRNAME] (main): New unit tests.
80973
80974         * lib/memrchr.c: New file from GNU libc.
80975         Undef __memrchr, too.
80976         [!weak_alias]: Define __memrchr to memrchr.
80977         Guard weak_alias use with `#ifdef weak_alias'.
80978
80979 2000-10-21  Jim Meyering  <meyering@lucent.com>
80980
80981         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80982         (dir_name): Use dir_name_r.
80983         * lib/dirname.h (dir_name_r): Declare it.
80984
80985 2000-10-17  Jim Meyering  <meyering@lucent.com>
80986
80987         * lib/quote.h (PARAMS): Define and use.
80988         Reported by Akim Demaille.
80989
80990         * lib/getopt.c: Update from libc.
80991
80992 2000-10-16  Jim Meyering  <meyering@lucent.com>
80993
80994         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80995         setlocale.
80996         From Jan Fedak.
80997
80998 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80999
81000         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81001
81002 2000-09-25  Jim Meyering  <meyering@lucent.com>
81003
81004         * lib/md5.h (rol): Define (from GnuPG).
81005
81006         * lib/sha.c: Give credit (GnuPG) where due.
81007         (M): Use rol rather than open-coding it.
81008         Add a FIXME comment.
81009
81010 2000-09-21  Jim Meyering  <meyering@lucent.com>
81011
81012         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81013         Reported by Michael Stone.
81014
81015 2000-09-20  Jim Meyering  <meyering@lucent.com>
81016
81017         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81018         (noinst_HEADERS): Add sha.h.
81019         Based on code from Scott G. Miller and from GnuPG.
81020
81021 2000-09-18  Jim Meyering  <meyering@lucent.com>
81022
81023         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81024         LIBS. Otherwise, everyone ends up linking with -lelf for some
81025         configurations.
81026         Reported by Mike Stone.
81027
81028 2000-09-15  Jim Meyering  <meyering@lucent.com>
81029
81030         * lib/regex.c: Update from libc.
81031
81032 2000-09-10  Jim Meyering  <meyering@lucent.com>
81033
81034         * lib/getopt.c (_getopt_internal): Update from glibc.
81035
81036 2000-09-09  Jim Meyering  <meyering@lucent.com>
81037
81038         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81039         think it should be used as a general replacement for isascii.
81040         * lib/fnmatch.c: Likewise.
81041         * lib/mbswidth.c: Likewise
81042         * lib/regex.c: Likewise.
81043
81044         Don't use atoi.
81045         * lib/userspec.c: Include sys/param.h and limits.h.
81046         Include xstrtol.h.
81047         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81048         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81049         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81050         UID, GID.  Check range.
81051
81052 2000-09-06  Jim Meyering  <meyering@lucent.com>
81053
81054         * lib/getopt.c (_getopt_internal): Update from glibc.
81055
81056 2000-08-30  Jim Meyering  <meyering@lucent.com>
81057
81058         * lib/strftime.c: Merge in changes from GNU libc.
81059
81060 2000-08-26  Jim Meyering  <meyering@lucent.com>
81061
81062         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81063         * m4/fpending.m4: New file.
81064
81065 2000-08-26  Jim Meyering  <meyering@lucent.com>
81066
81067         * lib/closeout.c: Include "__fpending.h".
81068         (close_stdout_status): Return right away if there's nothing to flush.
81069
81070         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81071         * lib/__fpending.c: New file.
81072         * lib/__fpending.h: New file.
81073
81074 2000-08-20  Jim Meyering  <meyering@lucent.com>
81075
81076         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81077         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81078         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81079
81080 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81081
81082         Improve fileutils installation on systems where running
81083         programs (like install) can't be unlinked.
81084         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81085         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81086
81087 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81088
81089         Standardize on "memory exhausted" instead of "Memory exhausted"
81090         or "virtual memory exhausted".
81091         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81092         "virtual memory exhausted".
81093         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81094         our own message.
81095         * lib/userspec.c (parse_user_spec): Likewise.
81096         * lib/bumpalloc.h: comment fix
81097         * lib/same.c, userspec.c: Include xalloc.h.
81098
81099         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81100         not char *const and pointing to a constant array.
81101         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81102         (xrealloc): Comment fix.
81103
81104         * lib/userspec.c (parse_user_spec):
81105         Don't translate a message until just before returning,
81106         to avoid unnecessary translation.
81107
81108 2000-08-07  Jim Meyering  <meyering@lucent.com>
81109
81110         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81111         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81112         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81113         getgroups.c, gethostname.c, getopt.h, group-member.c,
81114         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81115         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81116         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81117         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81118         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81119         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81120         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81121         yesno.c: Back out Copyright date changes for each file with no change
81122         this year.  This eases coordination with other programs using the same
81123         source code modules.  From Paul Eggert.
81124
81125 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81126
81127         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81128         not char, for compatibility with glibc 2.1.3 strftime.c.
81129
81130 2000-08-03  Greg McGary  <greg@mcgary.org>
81131
81132         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81133         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81134         (EXTEND_BUFFER): Use them.
81135
81136 2000-08-01  Jim Meyering  <meyering@lucent.com>
81137
81138         * lib/dirname.c (ISSLASH): Define.
81139         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81140         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81141         both `\' and `/' may be use as path separators.
81142         Based on a patch from Prashant TR.
81143
81144 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81145
81146         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81147         slot vector a constant, since it might get modified.
81148
81149 2000-07-31  Jim Meyering  <meyering@lucent.com>
81150
81151         * lib/xmalloc.c: Use `virtual memory exhausted', not
81152         `Memory exhausted'.
81153         * lib/obstack.c (print_and_abort): Likewise.
81154
81155 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81156
81157         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81158         buffer, so that the caller can always quote one small
81159         component of a "memory exhausted" message in slot 0.
81160         From a suggestion by Jim Meyering.
81161
81162 2000-07-30  Jim Meyering  <meyering@lucent.com>
81163
81164         * lib/makepath.c (make_path): Quote the other instance, too.
81165
81166         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81167         (STATIC_BUF_SIZE): Define.
81168         (quotearg_n_options): Use only statically allocated storage when
81169         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81170         than STATIC_BUF_SIZE.
81171
81172 2000-07-29  Jim Meyering  <meyering@lucent.com>
81173
81174         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81175         * lib/dirname.c (dir_name): Likewise.
81176
81177         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81178         `/'.
81179
81180         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81181         (dir_name): Assert that there are no trailing slashes.
81182
81183 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81184
81185         * lib/mbswidth.h (mbswidth): Add a flags argument.
81186         (mbswidth): New declaration.
81187         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81188         * lib/mbswidth.c (mbswidth): Add a flags argument.
81189         (mbsnwidth): New function.
81190
81191 2000-07-24  Jim Meyering  <meyering@lucent.com>
81192
81193         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81194
81195 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81196
81197         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81198
81199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81200
81201         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81202         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81203         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81204         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81205         invoke multibyte primitives.
81206
81207 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81208
81209         * lib/quotearg.c:
81210         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81211         so that mbstate_t is always defined.
81212
81213         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81214         be 1 in at least one GCC installation, and this configuration
81215         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81216         performance on hosts that have mbrtowc but have only unibyte
81217         locales, but I assume these hosts are rare.
81218
81219 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81220
81221         * lib/mbswidth.c (_XOPEN_SOURCE):
81222         Don't define; this causes problems on Solaris 7.
81223         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81224
81225 2000-07-23  Jim Meyering  <meyering@lucent.com>
81226
81227         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81228         too: getgrgid, getpwuid, getuid.
81229
81230 2000-07-23  Jim Meyering  <meyering@lucent.com>
81231
81232         * lib/basename.c (base_name): Add an assertion.
81233
81234 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81235
81236         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81237         shadow its mbsinit function.
81238
81239 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81240
81241         * lib/mbswidth.h: New file.
81242         * lib/mbswidth.c: New file.
81243         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81244         (noinst_HEADERS): Add mbswidth.h.
81245
81246 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81247
81248         * lib/config.charset: Add support for FreeBSD. Improve support for
81249         HP-UX and IRIX 6.
81250
81251 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81252
81253         * m4/mbswidth.m4: New file.
81254         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81255
81256 2000-07-15  Jim Meyering  <meyering@lucent.com>
81257
81258         * lib/makepath.c: Include quote.h.
81259         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81260         corresponding argument in a `quote (...)' call.
81261         Give better diagnostics.
81262
81263         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81264         (noinst_HEADERS): Add quote.h.
81265
81266         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81267         from tar's src/misc.c.
81268         * lib/quote.h: New file.  Prototypes for same.
81269
81270 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81271
81272         From a suggestion by Bruno Haible.
81273         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81274         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81275         to decide whether to define the BeOS workaround macro;
81276         this adjusts to the change to AC_MBSTATE_T.
81277
81278 2000-07-14  Jim Meyering  <meyering@lucent.com>
81279
81280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81281         jm_AC_TYPE_UINTMAX_T.
81282
81283 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81284
81285         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81286
81287         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81288         quotearg_buffer_restyled): Add support for
81289         clocale_quoting_style.  Undo previous change to
81290         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81291         and "{RIGHT QUOTATION MARK}" msgids.
81292
81293 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81294
81295         From a suggestion by Bruno Haible.
81296         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81297         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81298         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81299         and mbstate_t, to a single-part test that simply defines mbstate_t.
81300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81301         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81302
81303 2000-07-10  Jim Meyering  <meyering@lucent.com>
81304
81305         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81306
81307         * m4/gnu-source.m4: Output to confdefs.h directly.
81308         Suggestion from Akim Demaille.
81309
81310 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81311
81312         The old behavior of quoting `like this' doesn't look good with
81313         newer, ISO-style fonts.  See:
81314         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81315
81316         Instead, quote "like this" by default.  Let the translator
81317         tailor the locale-specific quoting behavior by providing
81318         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81319
81320         * lib/quotearg.c (N_): New macro.
81321         (gettext_default): New function.
81322         (quotearg_buffer_restyled): Use
81323         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81324         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81325
81326 2000-07-09  Jim Meyering  <meyering@lucent.com>
81327
81328         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81329         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81330
81331         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81333
81334 2000-07-09  Jim Meyering  <meyering@lucent.com>
81335
81336         * lib/Most files: Update copyright dates to include 2000.
81337
81338 2000-07-08  Jim Meyering  <meyering@lucent.com>
81339
81340         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81341         if not defined.
81342         (xgethostname): Remove now-unnecessary #ifdef.
81343         Move declaration of `err' into loop where it's used.
81344
81345 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81346         and Bruno Haible  <haible@clisp.cons.org>
81347
81348         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81349         only if the test for an object-type mbstate_t fails.  This
81350         prevents us from mistakenly reporting that mbstate_t is a
81351         system object type after we "#define mbstate_t int" to work
81352         around its lack.
81353
81354 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81355         and Bruno Haible  <haible@clisp.cons.org>
81356
81357         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81358
81359 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81360
81361         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81362         to strerror_r.
81363         Include <ctype.h> for use of isalpha.
81364
81365 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81366
81367         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81368         by allocating a larger buffer. Test the gethostname return value for
81369         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81370         returns an error and ENAMETOOLONG isn't defined.
81371
81372 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81373
81374         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81375         dimension.
81376
81377 2000-07-04  Jim Meyering  <meyering@lucent.com>
81378
81379         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81380         of the deprecated AC_CHECKING.
81381
81382 2000-07-04  Jim Meyering  <meyering@lucent.com>
81383
81384         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81385         Reported by Bruno Haible.
81386
81387 2000-07-04  Jim Meyering  <meyering@lucent.com>
81388
81389         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81390         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81391         lacks mbrtowc.
81392
81393 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81394
81395         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81396         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81397
81398 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81399         and Bruno Haible  <haible@clisp.cons.org>
81400
81401         * lib/quotearg.c (mbrtowc):
81402         Assign to *pwc, and return 1 only if result is nonzero.
81403         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81404
81405 2000-07-03  Jim Meyering  <meyering@lucent.com>
81406
81407         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81408
81409 2000-07-03  Jim Meyering  <meyering@lucent.com>
81410
81411         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81412         This is necessary to get a definition of e.g., UTMP_FILE on
81413         HP-UX 10.20.
81414         From Bob Proulx.
81415
81416 2000-07-02  Jim Meyering  <meyering@lucent.com>
81417
81418         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81419
81420         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81421         AC_LIBOBJ(function_name).
81422         * m4/chown.m4: Likewise.
81423         * m4/fnmatch.m4: Likewise.
81424         * m4/ftruncate.m4: Likewise.
81425         * m4/getgroups.m4: Likewise.
81426         * m4/getline.m4: Likewise.
81427         * m4/group-member.m4: Likewise.
81428         * m4/jm-macros.m4: Likewise.
81429         * m4/lstat.m4: Likewise.
81430         * m4/malloc.m4: Likewise.
81431         * m4/memcmp.m4: Likewise.
81432         * m4/nanosleep.m4: Likewise.
81433         * m4/putenv.m4: Likewise.
81434         * m4/realloc.m4: Likewise.
81435         * m4/regex.m4: Likewise.
81436         * m4/stat.m4: Likewise.
81437         * m4/strftime.m4: Likewise.
81438
81439 2000-07-02  Jim Meyering  <meyering@lucent.com>
81440
81441         * lib/quotearg.c (mbstate_t): Don't define here.
81442
81443 2000-07-02  Jim Meyering  <meyering@lucent.com>
81444
81445         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81446
81447 2000-07-01  Jim Meyering  <meyering@lucent.com>
81448
81449         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81450
81451 2000-07-01  Jim Meyering  <meyering@lucent.com>
81452
81453         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81454         problem.
81455
81456 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81457
81458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81459         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81460
81461 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81462
81463         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81464         per change in ../m4/ls-mntd-fs.m4.
81465         (read_filesystem_list): Ignore symbolic links.
81466
81467 2000-06-29  Jim Meyering  <meyering@lucent.com>
81468
81469         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81470         for declaration of strcmp.
81471
81472         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81473
81474         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81475         Avoid warning by casting result to `char *' to remove `const'.
81476
81477 2000-06-28  Jim Meyering  <meyering@lucent.com>
81478
81479         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81480         included by quotearg.c, for which we perform this test.  From
81481         Bruno Haible.
81482
81483 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81484
81485         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81486         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81487         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81488
81489 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81490
81491         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81492
81493 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81494
81495         savedir now sets errno on failure and invokes xmalloc to get memory.
81496         Fix a couple of other minor bugs while we're at it.
81497
81498         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81499         (NAMLEN): Remove macro.
81500         (malloc, realloc): Remove decls.
81501         (stpcpy): Likewise.
81502         ("xalloc.h"): Include.
81503         (NAME_SIZE_DEFAULT): New macro.
81504         (savedir): Use xmalloc / xrealloc to allocate memory.
81505         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81506         Skip "" directory entries.
81507         Use strlen to calculate directory entry length, since the old method
81508         is rarely used these days and isn't worth supporting.
81509         Don't use a pointer after freeing it.
81510         Check for integer overflow when calculating allocation size.
81511         Use memcpy to copy entries, instead of stpcpy.
81512         Set errno properly when returning NULL.
81513         Check for readdir error.
81514
81515 2000-06-26  Jim Meyering  <meyering@lucent.com>
81516
81517         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81518
81519 2000-06-25  Jim Meyering  <meyering@lucent.com>
81520
81521         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81522         Linux header bug when _XOPEN_SOURCE is defined to 500.
81523
81524 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81525
81526         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81527         deficiency.
81528
81529 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81530
81531         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81532         Include xalloc.h.
81533         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81534
81535 2000-06-24  Jim Meyering  <meyering@lucent.com>
81536
81537         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81538         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81539         for which strerror does return char*, but which lacks a conveniently
81540         accessible declaration of the function.  If the compile-test says
81541         strerror_r doesn't work, then resort to a `run'-test that works on
81542         BeOS and segfaults on DEC Unix.
81543
81544 2000-06-24  Jim Meyering  <meyering@lucent.com>
81545
81546         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81547
81548 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81549
81550         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81551         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81552
81553 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81554
81555         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81556         (mbrtowc, mbstate_t): Define substitutes if
81557         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81558         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81559         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81560
81561 2000-06-23  Jim Meyering  <meyering@lucent.com>
81562
81563         * m4/afs.m4: Add missing AC_MSG_RESULT.
81564         Reported by Bruno Haible.
81565
81566         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81567         Suggestion from Bruno Haible.
81568
81569 2000-06-23  Jim Meyering  <meyering@lucent.com>
81570
81571         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81572
81573 2000-06-21  Jim Meyering  <meyering@lucent.com>
81574
81575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81576
81577 2000-06-21  Jim Meyering  <meyering@lucent.com>
81578
81579         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81580         (noinst_HEADERS): Add getstr.h.
81581
81582         * lib/getline.c (getstr): Move into a separate file.
81583         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81584         the following changes: new parameter, delim2; both delim[12]
81585         parameters have type `int', not `char'.  The latter would lose
81586         with 8-bit delimiters.
81587         * lib/getstr.h: New file.
81588
81589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81590
81591         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81592         than 1024, return a memory chunk of least possible size, instead
81593         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81594         Use free/xmalloc instead of xrealloc to avoid copying for very long
81595         paths.
81596
81597 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81598
81599         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81600         the empty string.
81601
81602 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81603
81604         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81605         address, not strdup.  Include <stdlib.h> and don't declare free().
81606
81607 2000-06-19  Jim Meyering  <meyering@lucent.com>
81608
81609         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81610
81611 2000-06-18  Jim Meyering  <meyering@lucent.com>
81612
81613         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81614
81615         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81616         `checking whether...' message to be consistent with that of the
81617         lstat test.
81618
81619 2000-06-18  Jim Meyering  <meyering@lucent.com>
81620
81621         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81622         Besides, these days every porting target provides a mkdir function.
81623
81624         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81625         needed. (this snippet comes from src/system.h).
81626
81627 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81628
81629         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81630
81631 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81632
81633         * lib/human.c (adjust_value): New function.
81634         (human_readable_inexact): Apply rounding style even when
81635         printing approximate values.
81636
81637 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81638
81639         * lib/human.c (human_readable_inexact): Allow an input block
81640         size that is not a multiple of the output block size, and vice versa.
81641         Reported by Piergiorgio Sartor.
81642
81643 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81644
81645         * lib/getdate.y (get_date): Apply relative times after time
81646         zone indicator, not before.  Reported by Todd A. Jacobs.
81647
81648 2000-06-13  Jim Meyering  <meyering@lucent.com>
81649
81650         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81651
81652         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81653
81654 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81655
81656         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81657
81658 2000-06-12  Jim Meyering  <meyering@lucent.com>
81659
81660         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81661         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81662         optional argument.
81663         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81664         the optional argument, `lib'.
81665
81666 2000-06-08  Jim Meyering  <meyering@lucent.com>
81667
81668         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81669
81670 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81671
81672         Rewrite largefile configuration so that we don't need to run
81673         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81674         AC_CANONICAL_HOST in configure.in -- jmm]
81675
81676         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81677         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81678         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81679         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81680         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81681         All uses changed.
81682         Instead of inspecting the output of getconf, try to compile the
81683         test program without and with the macro definition.
81684         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81685         for getconf.  Instead, check for the needed flags by compiling
81686         test programs.
81687
81688 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81689
81690         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81691
81692 2000-06-04  Jim Meyering  <meyering@lucent.com>
81693
81694         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81695         SunOS 4.1.4 for which gid_t is an unsigned type.
81696
81697 2000-06-03  Jim Meyering  <meyering@lucent.com>
81698
81699         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81700         now that autoconf requires that.
81701
81702         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81703         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81704         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81705
81706 2000-06-03  Jim Meyering  <meyering@lucent.com>
81707
81708         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81709
81710 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81711
81712         * m4/glibc21.m4: New file.
81713         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81714
81715 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81716
81717         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81718         newer, don't install charset.alias.
81719         * lib/config.charset: Change the Linux/glibc rules so they become empty
81720         on glibc-2.1 or newer.
81721
81722 2000-06-02  Jim Meyering  <meyering@lucent.com>
81723
81724         * lib/mountlist.c: Back out last change.  Instead, do this...
81725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81726         me_dummy member using the same `ignore'-testing code.
81727         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81728         fs_type strings.
81729         From Mark D. Roth.
81730
81731 2000-05-29  Jim Meyering  <meyering@lucent.com>
81732
81733         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81734         mounts with the `ignore' attribute.  Based on a patch from
81735         Mark D. Roth.
81736
81737 2000-05-28  Jim Meyering  <meyering@lucent.com>
81738
81739         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81740         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81741         * m4/stat.m4: Likewise.
81742         * m4/lstat.m4: Likewise.
81743         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81744
81745         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81746         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81747
81748 2000-05-26  Jim Meyering  <meyering@lucent.com>
81749
81750         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81751
81752 2000-05-24  Jim Meyering  <meyering@lucent.com>
81753
81754         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81755         autoconf requires that.
81756         * m4/lib-check.m4: Likewise.
81757         * m4/jm-macros.m4: Likewise.
81758         * m4/strftime.m4: Likewise.
81759
81760         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81761         AC_CHECK_DECLS, now that autoconf requires that.
81762
81763 2000-05-22  Jim Meyering  <meyering@lucent.com>
81764
81765         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81766         * m4/lstat.m4: Likewise.
81767
81768 2000-05-22  Jim Meyering  <meyering@lucent.com>
81769
81770         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81771
81772 2000-05-20  Jim Meyering  <meyering@lucent.com>
81773
81774         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81775         (jm_PREREQ): Use it.
81776
81777 2000-05-18  Jim Meyering  <meyering@lucent.com>
81778
81779         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81780         back, too, since it may have been modified by allocate_entry.
81781         (hash_delete): Rewrite to use neither the assignment operator
81782         nor the comma operator in an if-expression.
81783
81784 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81785
81786         * lib/closeout.c:
81787         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81788         Remove; no longer needed.
81789         "quotearg.h": Add include.
81790         (file_name): Do not bother to explicitly initialize to NULL; it's less
81791         efficient on some hosts.
81792         (close_stdout_status): Remove test as to whether stdout was already
81793         closed; it breaks for the case "echo x | sort >&-".
81794         Quote file name colons.
81795         Do not assume that _("write error") lacks format strings.
81796
81797 2000-05-15  Jim Meyering  <meyering@lucent.com>
81798
81799         * lib/version-etc.c (version_etc_copyright): Update the copyright
81800         string used in all --version output.
81801
81802 2000-05-14  Jim Meyering  <meyering@lucent.com>
81803
81804         * lib/closeout.c (close_stdout_set_file_name): New function.
81805         (close_stdout_status): Use new file-scoped global.
81806         Return right away if fstat says the stdout file descriptor is invalid.
81807         * lib/closeout.h (close_stdout_set_file_name): Declare.
81808
81809 2000-05-10  Jim Meyering  <meyering@lucent.com>
81810
81811         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81812         (close_stdout_set_status): New function.
81813         * lib/closeout.h (close_stdout_set_status): Declare.
81814
81815 2000-05-09  Jim Meyering  <meyering@lucent.com>
81816
81817         * m4/gettext.m4: Rename this...
81818         * m4/libintl.m4: ...to this.
81819
81820 2000-05-08  Jim Meyering  <meyering@lucent.com>
81821
81822         * lib/long-options.c: Don't include closeout.h.
81823         (parse_long_options): Don't call close_stdout for --version.
81824
81825 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81826
81827         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81828         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81829         2.1.3 bug.  This avoids a clash when files like regex.c define
81830         _GNU_SOURCE.
81831
81832 2000-05-06  Jim Meyering  <meyering@lucent.com>
81833
81834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81835         (AC_REPLACE_FUNCS): Add strnlen.
81836
81837         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81838         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81839
81840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81841         AC_SEARCH_LIBS call for nanosleep.
81842         (LIB_NANOSLEEP): Set and AC_SUBST.
81843
81844 2000-05-06  Jim Meyering  <meyering@lucent.com>
81845
81846         * lib/strnlen.c: Undefine __strnlen and strnlen.
81847         [!weak_alias]: Define __strnlen to strnlen.
81848
81849         * lib/atexit.c: New file, from libiberty.
81850
81851 2000-05-06  Jim Meyering  <meyering@lucent.com>
81852
81853         * lib/closeout.c (close_stdout_status): Also check for errors on the
81854         stderr stream.
81855
81856 2000-05-05  Jim Meyering  <meyering@lucent.com>
81857
81858         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81859         AC_SEARCH_LIBS call for clock_gettime.
81860         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81861
81862         * m4/search-libs.m4: Update from autoconf.
81863
81864         su doesn't work on Solaris 2.6.
81865         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81866         <shadow.h>.  Reported by Dragos Harabor.
81867
81868 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81869
81870         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81871         memcpy instead of xmalloc, xrealloc, path_concat.
81872         (locale_charset): Treat empty environment variables as absent.
81873         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81874
81875 2000-05-04  Jim Meyering  <meyering@lucent.com>
81876
81877         * lib/getopt.c: Update from glibc.
81878         * lib/obstack.c: Likewise.
81879         * lib/obstack.h: Likewise.
81880         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81881         file
81882
81883         * lib/regex.h: Likewise.
81884         * lib/strndup.c: Likewise.
81885         * lib/strnlen.c: New file, from glibc.
81886
81887 2000-05-03  Jim Meyering  <meyering@lucent.com>
81888
81889         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81890
81891 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81892
81893         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81894         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81895         compile-time test, rather than inspecting host and OS, to
81896         decide whether to define _LARGEFILE_SOURCE.
81897
81898 2000-05-01  Jim Meyering  <meyering@lucent.com>
81899
81900         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81901
81902         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81903         Based on a patch from Bruno Haible.
81904
81905 2000-05-01  Jim Meyering  <meyering@lucent.com>
81906
81907         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81908
81909 2000-04-29  Jim Meyering  <meyering@lucent.com>
81910
81911         * lib/path-concat.c: Declare strdup only if it's not defined.
81912         * lib/canon-host.c: Likewise.
81913
81914 2000-04-28  Jim Meyering  <meyering@lucent.com>
81915
81916         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81917         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81918         is included first, then limits.h is included by locale.h by libintl.h.
81919         From John David Anglin.
81920
81921 2000-04-25  Jim Meyering  <meyering@lucent.com>
81922
81923         * lib/makepath.c (S_IRWXUGO): Define.
81924         (make_path): Always perform explicit chmod if MODE specifies any
81925         of the `special' permission bits.  Prompted by a bug report against
81926         install from Mate Wierdl and Joost van Baal.
81927
81928 2000-04-18  Jim Meyering  <meyering@lucent.com>
81929
81930         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81931         (jm_PREREQ): Use it.
81932
81933 2000-04-18  Jim Meyering  <meyering@lucent.com>
81934
81935         * lib/README: New file.
81936
81937         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81938         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81939
81940 2000-04-17  Jim Meyering  <meyering@lucent.com>
81941
81942         Get it right :-)
81943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81944         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81945         Suggestion from Akim Demaille.
81946
81947 2000-04-17  Jim Meyering  <meyering@lucent.com>
81948
81949         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81950         the definition of it to rpl_strftime also defined-away the system's
81951         declaration.
81952
81953 2000-04-15  Jim Meyering  <meyering@lucent.com>
81954
81955         Use `C' to denote so-called `contiguous' files, the same way
81956         that tar does.
81957         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81958         (ftypelet): Use S_ISCTG.
81959         From Michael Deutschmann.
81960
81961 2000-04-14  Jim Meyering  <meyering@lucent.com>
81962
81963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81964         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81965         clobbered.
81966
81967 2000-04-14  Jim Meyering  <meyering@lucent.com>
81968
81969         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81970
81971 2000-04-13  Jim Meyering  <meyering@lucent.com>
81972
81973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81974         AH_VERBATIM to insert required #ifndef into config.h.in.
81975         Suggestion from Akim Demaille.
81976
81977 2000-04-12  Jim Meyering  <meyering@lucent.com>
81978
81979         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81980         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81981         Christian Krackowizer.
81982
81983         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81984         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81985         (AC_SYS_LARGEFILE): Require.
81986         (AM_C_PROTOTYPES): Require.
81987
81988 2000-04-08  Jim Meyering  <meyering@lucent.com>
81989
81990         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81991         names don't conflict.  Reported by Eli Zaretskii.
81992
81993 2000-04-07  Jim Meyering  <meyering@lucent.com>
81994
81995         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81996         sys/types.h, to work around system header problems on AIX 3.2.5.
81997         From Bruno Haible.
81998
81999 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82000
82001         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82002         bug.  Deal with the different error behavior of Irix iconv.
82003
82004 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82005
82006         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82007         IRIX if the installer said otherwise.
82008
82009 2000-04-05  Jim Meyering  <meyering@lucent.com>
82010
82011         Portability tweaks required for ultrix4.3.
82012         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82013         (jm_CHECK_DECLS): Add getutent to the list of functions.
82014         (_jm_DECL_HEADERS): Add utmpx.h.
82015         From John David Anglin.
82016
82017         * m4/strftime.m4: Back out the 2000-04-02 change.
82018         Instead of that change, simply undefine putenv in the test program.
82019
82020 2000-04-05  Jim Meyering  <meyering@lucent.com>
82021
82022         Portability tweaks required for ultrix4.3.
82023         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82024         getutent.
82025         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82026         * lib/canon-host.c: Declare strdup.
82027         * lib/path-concat.c: Likewise.
82028         From John David Anglin.
82029
82030 2000-04-04  Jim Meyering  <meyering@lucent.com>
82031
82032         Be more DOS 8.3-friendly.
82033         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82034         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82035         * lib/Makefile.am: Reflect renaming.
82036         Reported by Eli Zaretskii.
82037
82038         Use a temporary file name that won't clash with `charset.alias'
82039         in the DOS 8.3 name space.
82040         * lib/Makefile.am (charset_tmp): Define.
82041         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82042         (uninstall-local): Likewise.
82043         Reported by Eli Zaretskii.
82044
82045 2000-04-03  Jim Meyering  <meyering@lucent.com>
82046
82047         * m4/gettext.m4: Fix typo in comment.
82048
82049         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82050         textutils/configure.in).  Suggestion from Paul Eggert.
82051         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82052
82053 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82054
82055         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82056         variable in the shell rather than using putenv, which isn't
82057         portable.  This avoids the configure-time inter-test dependency
82058         on the potentially-renamed putenv function.
82059
82060 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82061
82062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82063         before checking struct stat.st_blksize, so that
82064         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82065
82066 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82067
82068         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82069         since strftime.c uses HAVE_STRFTIME to decide whether to use
82070         the underlying strftime.
82071
82072 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82073
82074         * lib/time/strftime.c (my_strftime): Make sure we call the system
82075         strftime, not ourselves, when invoking the underlying strftime.
82076
82077 2000-03-24  Jim Meyering  <meyering@lucent.com>
82078
82079         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82080         (charset_alias): Define.
82081         (install-exec-local): Factor out common code.
82082         (uninstall-local): Split lines longer than 80.
82083         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82084         (SUFFIXES): Define.
82085         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82086         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82087
82088 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82089
82090         * lib/config.charset: Output a line containing "Packages using this
82091         file".
82092         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82093         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82094         ref-del.sed): New rules.
82095
82096 2000-03-17  Jim Meyering  <meyering@lucent.com>
82097
82098         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82099         Otherwise, include <strings.h>
82100
82101 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82102
82103         * lib/unicodeio.c (utf8_wctomb): New function.
82104         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82105         format instead of in UCS-4 with platform dependent endianness.
82106
82107 2000-03-10  Jim Meyering  <meyering@lucent.com>
82108
82109         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82110         From Marco Franzen.
82111
82112 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82113
82114         * lib/savedir.c (savedir): Work even if directory size is
82115         negative; this can happen with some screwy NFS configurations.
82116
82117 2000-03-06  Jim Meyering  <meyering@lucent.com>
82118
82119         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82120         if it's NULL (because we ran out of memory).  From Bruno Haible.
82121
82122 2000-03-05  Jim Meyering  <meyering@lucent.com>
82123
82124         * lib/localcharset.c ("path-concat.h"): Include.
82125         (get_charset_aliases): Use path_concat instead of ANSI string
82126         concatenation.
82127
82128         * lib/unicodeio.h (PARAMS): Define.
82129         Use it to guard prototype.
82130
82131 2000-03-04  Jim Meyering  <meyering@lucent.com>
82132
82133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82134         for lib/localcharset.c.
82135
82136 2000-03-04  Jim Meyering  <meyering@lucent.com>
82137
82138         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82139         installing into it.
82140         (uninstall-local): Uncomment this rule so `make distcheck' works
82141         once again.
82142
82143         * lib/unicodeio.c (<errno.h>): Include it.
82144         (errno): Declare if not defined.
82145
82146         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82147
82148         * lib/config.charset: New version, incorporating remarks from a linux
82149         i18n mailing list.  From Bruno Haible.
82150
82151 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82152
82153         * m4/codeset.m4: New file.
82154         * m4/iconv.m4: New file.
82155         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82156
82157 2000-03-03  Jim Meyering  <meyering@lucent.com>
82158
82159         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82160
82161 2000-03-02  Jim Meyering  <meyering@lucent.com>
82162
82163         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82164         the messages come out on separate lines.
82165
82166         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82167         rather than jm_CHECK_DECLARATIONS.
82168         * m4/decl.m4: Remove now-unused file.
82169
82170         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82171         geteuid.
82172
82173 2000-03-02  Jim Meyering  <meyering@lucent.com>
82174
82175         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82176
82177 2000-03-01  Jim Meyering  <meyering@lucent.com>
82178
82179         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82180         * lib/unicodeio.c: Likewise.
82181
82182 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82183
82184         * lib/config.charset: New file.
82185         * lib/localcharset.c: New file.
82186         * lib/unicodeio.h, lib/unicodeio.c: New files.
82187         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82188         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82189         (noinst_HEADERS): Add unicodeio.h.
82190         (all-local, install-exec-local, charset.alias): New targets.
82191
82192 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82193
82194         * lib/quotearg.c (ALERT_CHAR): New macro.
82195         (quotearg_buffer_restyled): Use it.
82196
82197 2000-02-27  Jim Meyering  <meyering@lucent.com>
82198
82199         * m4/check-decl.m4: Add getenv to the list.
82200
82201 2000-02-27  Jim Meyering  <meyering@lucent.com>
82202
82203         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82204         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82205
82206         * lib/backupfile.c: Guard inclusion of stdlib.h with
82207         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82208         Declare malloc if needed.
82209
82210         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82211         `#ifndef HAVE_DECL..'
82212         now that autoconf always defines the HAVE_DECL_ symbols.
82213         * lib/human.c: Likewise.
82214         * lib/same.c: Likewise.
82215         * lib/strtoumax.c: Likewise.
82216
82217         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82218         declaration check was not run.
82219         * lib/hash.c: Likewise.
82220         * lib/human.c: Likewise.
82221         * lib/same.c: Likewise.
82222         * lib/strtoumax.c: Likewise.
82223
82224         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82225         `.', then first look up the entire `.'-containing string as a login
82226         name.
82227
82228 2000-02-23  Jim Meyering  <meyering@lucent.com>
82229
82230         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82231         in place of my hack.
82232
82233 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82234
82235         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82236         (textint): New typedef.
82237         (parser_control): Member year changed from int to textint.
82238         All uses changed.
82239         (YYSTYPE): Removed; replaced by %union with int and textint members.
82240         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82241         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82242         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82243         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82244         (date, number, to_year): Use width of number in digits, not its value,
82245         to determine whether it's a 2-digit year, or a 2-digit time.
82246         (yylex): Store number of digits of numeric tokens.
82247         Reported by John Kendall.
82248
82249         (parser_control): Changed from struct parser_control to typedef (for
82250         consistency).  All uses changed.
82251
82252         (tID): Removed; not used.
82253         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82254
82255 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82256
82257         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82258         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82259
82260 2000-02-12  Jim Meyering  <meyering@lucent.com>
82261
82262         * lib/userspec.c (ISDIGIT): Define it.
82263         (isdigit): Remove definition.
82264         (is_number): Use ISDIGIT, not isdigit.
82265         <libintl.h>: Include.
82266         (_ and N_): Define.
82267         (parse_user_spec): Mark translatable strings.
82268
82269 2000-02-10  Jim Meyering  <meyering@lucent.com>
82270
82271         With these changes, nanosleep.[ch] are finally enough like the other
82272         lib/* replacement files to compile on a few more losing systems.
82273
82274         * lib/nanosleep.h: Don't include config.h.
82275         Remove prototype from declaration of nanosleep.
82276         (PARAMS): Remove now-unneeded definition.
82277         * lib/nanosleep.c: #undef nanosleep.
82278         (rpl_nanosleep): Rename from nanosleep.
82279
82280 2000-02-10  Jim Meyering  <meyering@lucent.com>
82281
82282         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82283         gnu_nanosleep to rpl_nanosleep.
82284
82285 2000-02-09  Jim Meyering  <meyering@lucent.com>
82286
82287         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82288         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82289
82290 2000-02-08  Akim Demaille  <akim@epita.fr>
82291
82292         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82293         `[' and `]' and remove uses of `changequote'.
82294         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82295         (AC_SYS_LARGEFILE): Likewise.
82296         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82297         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82298         of changequote.
82299         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82300         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82301         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82302         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82303
82304 2000-02-05  Jim Meyering  <meyering@lucent.com>
82305
82306         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82307         Remove explicit use of AC_HEADER_TIME.  It is required by
82308         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82309         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82310         in autoconf whereby the expansion of the latter ended up preceding
82311         the expansion of its prerequisite, AC_HEADER_TIME.
82312         Reported by Volker Borchert.
82313
82314 2000-02-03  Jim Meyering  <meyering@lucent.com>
82315
82316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82317
82318 2000-02-03  Jim Meyering  <meyering@lucent.com>
82319
82320         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82321         rather than with `#if HAVE_UTMPNAME'.
82322
82323 2000-02-02  Jim Meyering  <meyering@lucent.com>
82324
82325         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82326         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82327         Reported by Eli Zaretskii.
82328
82329 2000-02-01  Jim Meyering  <meyering@lucent.com>
82330
82331         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82332
82333 2000-01-31  Jim Meyering  <meyering@lucent.com>
82334
82335         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82336         functions.  Add the time.h and sys/time.h headers along with the
82337         AC_REQUIRE'ment of AC_HEADER_TIME.
82338
82339 2000-01-31  Jim Meyering  <meyering@lucent.com>
82340
82341         * lib/nanosleep.h (nanosleep): Guard declaration with
82342         `#if ! HAVE_DECL_NANOSLEEP'.
82343         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82344         the declaration in that vendor's sys/timers.h.
82345         Reported by Christian Krackowizer.
82346
82347         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82348         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82349         (ISPRINT): Likewise.
82350         Reported by Tom Tromey.
82351
82352 2000-01-30  Jim Meyering  <meyering@lucent.com>
82353
82354         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82355
82356         * m4/prereq.m4 (utmp_includes): Define.
82357         Check for ut_user and ut_name members in both struct utmpx
82358         and struct utmp.
82359
82360 2000-01-30  Jim Meyering  <meyering@lucent.com>
82361
82362         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82363         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82364         header files where only utmpx.ut_user is declared.
82365
82366         * lib/readutmp.h (UT_USER): Define.
82367
82368 2000-01-29  Jim Meyering  <meyering@lucent.com>
82369
82370         * m4/lib-check.m4: New file containing library-related checks from
82371         fileutils and sh-utils (textutils had none).
82372
82373 2000-01-28  Jim Meyering  <meyering@lucent.com>
82374
82375         * m4/perl.m4: Change format of warning message to look more like that
82376         from the missing script.  Suggestion from François Pinard.
82377
82378 2000-01-25  Jim Meyering  <meyering@lucent.com>
82379
82380         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82381         well as time.h in the compile check.
82382         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82383         Fix typo in cross-compiling case: s/yes/no/.
82384
82385 2000-01-23  Jim Meyering  <meyering@lucent.com>
82386
82387         * m4/jm-macros.m4: Move df-related tests here from
82388         fileutils/configure.in
82389
82390         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82391         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82392
82393         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82394         s/space/ac_fsusage_space/.
82395         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82396
82397         * m4/ftruncate.m4: New file (derived from part of
82398         fileutils/configure.in).
82399         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82400         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82401
82402         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82403         AC_SUBST these here, rather than just in sh-util/configure.in, so
82404         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82405         all the same.
82406         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82407         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82408         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82409         (AC_SUBST(POW_LIBM)): Likewise.
82410         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82411
82412 2000-01-23  Jim Meyering  <meyering@lucent.com>
82413
82414         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82415         obstack.c.
82416
82417 2000-01-22  Jim Meyering  <meyering@lucent.com>
82418
82419         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82420
82421         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82422
82423         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82424         configure.in
82425         (AC_CHECK_HEADERS): Likewise for sh-utils.
82426         (AC_CHECK_HEADERS): Likewise for textutils.
82427         Merge the three lists of headers.
82428
82429         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82430         from fileutils' configure.in.
82431
82432         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82433         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82434         check-decl.m4.
82435
82436         * m4/check-decl.m4: Use #if rather than #ifdef.
82437         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82438         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82439         (_jm_DECL_HEADERS): Define new function.
82440         (jm_CHECK_DECLARATIONS): Require it.
82441
82442 2000-01-22  Jim Meyering  <meyering@lucent.com>
82443
82444         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82445         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82446         Required for some AIX systems.  Reported by Christian Krackowizer.
82447         [TESTING] (main): New function.
82448
82449         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82450         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82451         letters.
82452
82453         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82454         iswprint.
82455
82456         * lib/strverscmp.c (ISDIGIT): Define.
82457         (strverscmp): Use ISDIGIT, not isdigit.
82458
82459 2000-01-19  Jim Meyering  <meyering@lucent.com>
82460
82461         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82462         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82463         defines `struct timespec' in <sys/time.h>
82464
82465         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82466         Thanks to Akim for explaining.
82467
82468 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82469
82470         * lib/nanosleep.c (nanosleep):
82471         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82472         POSIX.1 doesn't require SA_INTERRUPT and some systems
82473         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82474         it's been part of POSIX.1 since day 1 (in 1988).
82475
82476 2000-01-17  Jim Meyering  <meyering@lucent.com>
82477
82478         * lib/interlock: Remove unused file.  Reported by François Pinard.
82479
82480 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82481
82482         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82483         alert, backslash, formfeed, and vertical tab unnecessarily in
82484         shell quoting style.
82485
82486 2000-01-16  Jim Meyering  <meyering@lucent.com>
82487
82488         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82489         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82490         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82491         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82492
82493 2000-01-16  Jim Meyering  <meyering@lucent.com>
82494
82495         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82496         because the latter didn't work.
82497
82498 2000-01-15  Jim Meyering  <meyering@lucent.com>
82499
82500         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82501         (AC_REPLACE_FUNCS): Add memcpy and memset.
82502         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82503         Add strpbrk.
82504         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82505
82506 2000-01-12  Jim Meyering  <meyering@lucent.com>
82507
82508         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82509         (jm_PREREQ): Use it.
82510         (jm_PREREQ_READUTMP): New macro.
82511         (jm_PREREQ): Use it.
82512
82513 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82514
82515         Quote multibyte characters correctly.
82516         * m4/c-bs-a.m4: New file.
82517         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82518         (jm_PREREQ): Use it.
82519
82520 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82521
82522         * m4/uintmax_t.m4: Port to autoconf 2.13.
82523
82524 2000-01-08  Jim Meyering  <meyering@ascend.com>
82525
82526         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82527         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82528
82529 2000-01-04  Jim Meyering  <meyering@ascend.com>
82530
82531         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82532         jm_STRUCT_DIRENT_D_TYPE.
82533         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82534         jm_STRUCT_DIRENT_D_INO.
82535         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82536         jm_STRUCT_UTIMBUF.
82537         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82538         renamings.
82539         * m4/utime.m4: Likewise.
82540
82541         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82542         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82543
82544 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82545
82546         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82547         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82548
82549 2000-01-02  Jim Meyering  <meyering@ascend.com>
82550
82551         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82552         remember if this is necessary.
82553
82554 1999-12-26  Jim Meyering  <meyering@ascend.com>
82555
82556         * m4/jm-macros.m4: Use it here.
82557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82558
82559 1999-12-23  Jim Meyering  <meyering@ascend.com>
82560
82561         * m4/jm-macros.m4: Check for clock_gettime (moved from
82562         fileutils/configure.in)
82563         Check for gettimeofday.
82564
82565 1999-12-20  Jim Meyering  <meyering@ascend.com>
82566
82567         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82568         autoconf-2.14a-1999-12-20.
82569
82570 1999-12-19  Jim Meyering  <meyering@ascend.com>
82571
82572         * m4/lstat-slash.m4: New file.
82573         * m4/jm-macros.m4: Use the new macro:
82574         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82575
82576 1999-12-07  Jim Meyering  <meyering@ascend.com>
82577
82578         * m4/perl.m4: Require that File::Compare be available, too.
82579         Too many systems seem to lack it.
82580
82581         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82582         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82583
82584 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82585
82586         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82587         problem with the QNX 4.25 shell, which doesn't propagate exit
82588         status of failed commands inside shell assignments.
82589
82590 1999-11-17  Jim Meyering  <meyering@ascend.com>
82591
82592         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82593
82594 1999-11-07  Jim Meyering  <meyering@ascend.com>
82595
82596         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82597
82598 1999-11-06  Jim Meyering  <meyering@ascend.com>
82599
82600         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82601         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82602
82603 1999-11-05  Jim Meyering  <meyering@ascend.com>
82604
82605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82606         configure.in of textutils, fileutils, and sh-utils into this one
82607         (shared between those packages) file.
82608         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82609         AC_STRUCT_ST_BLKSIZE.
82610
82611 1999-11-03  Jim Meyering  <meyering@ascend.com>
82612
82613         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82614         of AC_CHECK_TYPE checks includes unistd.h.
82615         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82616         Suggestion from Akim Demaille.
82617
82618 1999-10-30  Jim Meyering  <meyering@ascend.com>
82619
82620         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82621         m4-quoted string.
82622         * m4/ls-mntd-fs.m4: Likewise.
82623         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82624         * m4/jm-winsz1.m4: Likewise.
82625
82626         * m4/const.m4: Remove file, since the fix made it into the experimental
82627         version of autoconf.
82628         * m4/mktime.m4: Likewise.
82629
82630         * m4/check-type.m4: Remove file, now that the latest version of
82631         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82632
82633         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82634         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82635         AC_CHECK_TYPE.
82636
82637 1999-10-04  Jim Meyering  <meyering@ascend.com>
82638
82639         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82640
82641 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82642
82643         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82644         2.95.1 bug with HP-UX 10.20.
82645
82646 1999-09-17  Jim Meyering  <meyering@ascend.com>
82647
82648         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82649         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82650         due to missing strdup (against sh-utils-2.0).
82651
82652 1999-08-29  Jim Meyering  <meyering@ascend.com>
82653
82654         * m4/jm-macros.m4: Require jm_BISON.
82655         * m4/bison.m4: New file.
82656
82657 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82658
82659         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82660         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82661
82662 1999-08-05  Jim Meyering  <meyering@ascend.com>
82663
82664         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82665         to avoid conflicts with `conftest' on 8+3 filesystems.
82666         Suggestion from Eli Zaretskii.
82667
82668 1999-08-04  Jim Meyering  <meyering@ascend.com>
82669
82670         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82671         fileutils and sh-utils (textutils's getline test was inadequate).
82672         (AM_FUNC_GETLINE): Run this test.
82673         (AC_CHECK_FUNCS): Check for getdelim.
82674         Reported by Bob Proulx.
82675
82676 1999-08-02  Jim Meyering  <meyering@ascend.com>
82677
82678         * m4/jm-macros.m4: Add a comment.
82679
82680 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82681
82682         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82683         <inttypes.h> defines strtoumax as a macro (and not as a
82684         function).
82685
82686 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82687
82688         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82689         that we can shift, multiply and divide unsigned long long
82690         values; Ultrix cc can't do it.
82691
82692 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82693
82694         * m4/mktime.m4: New file, which is a preview of what should appear
82695         in the next public autoconf release.
82696
82697 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82698
82699         * m4/lfs.m4: Remove this file.
82700         * m4/largefile.m4: New file.  It contains the old contents of
82701         lfs.m4, except that all names with prefix AC_LFS have been
82702         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82703         compatible with future autoconf versions.  Also, some minor m4
82704         quoting problems have been fixed.
82705
82706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82707
82708         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82709         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82710         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82711         and simplify the shell code.
82712
82713 1999-08-01  Jim Meyering  <meyering@ascend.com>
82714
82715         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82716         m4.
82717
82718 1999-07-20  Jim Meyering  <meyering@ascend.com>
82719
82720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82721
82722 1999-07-15  Jim Meyering  <meyering@ascend.com>
82723
82724         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82725
82726 1999-05-22  Jim Meyering  <meyering@ascend.com>
82727
82728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82729
82730 1999-05-20  Jim Meyering  <meyering@ascend.com>
82731
82732         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82733         Add a colon after each `then' in case $4 is empty.
82734
82735 1999-05-16  Jim Meyering  <meyering@ascend.com>
82736
82737         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82738
82739 1999-05-10  Jim Meyering  <meyering@ascend.com>
82740
82741         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82742
82743         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82744         AC_FUNC_MKTIME.
82745
82746 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82747
82748         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82749
82750 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82751
82752         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82753         not CPPFLAGS, so that linking works correctly in IRIX.
82754
82755 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82756
82757         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82758
82759 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82760
82761         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82762         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82764         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82765         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82766
82767         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82768
82769 1999-04-20  Jim Meyering  <meyering@ascend.com>
82770
82771         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82772         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82773         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82774
82775 1999-04-18  Jim Meyering  <meyering@ascend.com>
82776
82777         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82778         * m4/jm-macros.m4: Use it.
82779
82780 1999-04-06  Jim Meyering  <meyering@ascend.com>
82781
82782         * m4/strftime.m4: Remove test for %f.
82783
82784 1999-03-29  Jim Meyering  <meyering@ascend.com>
82785
82786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82787         superset of the AC_TYPE_* checks in the textutils, fileutils,
82788         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82789         AC_TYPE_PID_T.
82790
82791 1999-03-28  Jim Meyering  <meyering@ascend.com>
82792
82793         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82794         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82795         replaced e.g., in the *.sh files of the sh-utils.
82796
82797 1999-03-20  Jim Meyering  <meyering@ascend.com>
82798
82799         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82800         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82801         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82802
82803 1999-03-19  Jim Meyering  <meyering@ascend.com>
82804
82805         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82806
82807 1999-03-12  Jim Meyering  <meyering@ascend.com>
82808
82809         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82810
82811 1999-03-07  Jim Meyering  <meyering@ascend.com>
82812
82813         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82814         declared.
82815
82816 1999-02-17  Jim Meyering  <meyering@ascend.com>
82817
82818         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82819         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82820
82821 1999-02-07  Jim Meyering  <meyering@ascend.com>
82822
82823         * m4/group-member.m4: New file -- extracted from sh-utils'
82824         configure.in.
82825
82826         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82827         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82828
82829 1999-02-06  Jim Meyering  <meyering@ascend.com>
82830
82831         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82832         * m4/fnmatch.m4: Likewise.
82833         * m4/getgroups.m4: Likewise.
82834         * m4/lstat.m4: Likewise.
82835         * m4/malloc.m4: Likewise.
82836         * m4/putenv.m4: Likewise.
82837         * m4/realloc.m4: Likewise.
82838         * m4/regex.m4: Likewise.
82839         * m4/stat.m4: Likewise.
82840         * m4/strftime.m4: Likewise.
82841         Suggestion from Alain Magloire.
82842
82843         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82844         * m4/fnmatch.m4: Likewise.
82845         * m4/getgroups.m4: Likewise.
82846         * m4/getline.m4: Likewise.
82847         * m4/lstat.m4: Likewise.
82848         * m4/malloc.m4: Likewise.
82849         * m4/memcmp.m4: Likewise.
82850         * m4/putenv.m4: Likewise.
82851         * m4/realloc.m4: Likewise.
82852         * m4/regex.m4: Likewise.
82853         * m4/stat.m4: Likewise.
82854         * m4/strftime.m4: Likewise.
82855         Suggestion from Alain Magloire.
82856
82857         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82858         an argument.
82859
82860         * m4/regex.m4: Add a run-time Test for proper operation of
82861         re_compile_pattern.
82862
82863 1999-01-31  Jim Meyering  <meyering@ascend.com>
82864
82865         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82866
82867 1999-01-30  Jim Meyering  <meyering@ascend.com>
82868
82869         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82870
82871         * m4/jm-mktime.m4: Make this a wrapper around the official
82872         AM_FUNC_MKTIME rather than my private copy, now that the official one
82873         is up to date.
82874         * m4/mktime.m4: Remove file.
82875
82876         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82877         * m4/uptime.m4: Likewise.
82878         * m4/uintmax_t.m4: Likewise.
82879
82880 1999-01-28  Jim Meyering  <meyering@ascend.com>
82881
82882         * m4/jm-macros.m4: Use jm_AFS.
82883         * m4/afs.m4: New file (from fileutils' configure.in).
82884
82885         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82886         * m4/chown.m4: Likewise.
82887         * m4/d-ino.m4: Likewise.
82888         * m4/d-type.m4: Likewise.
82889         * m4/fnmatch.m4: Likewise.
82890         * m4/getgroups.m4: Likewise.
82891         * m4/gettext.m4: Likewise.
82892         * m4/jm-mktime.m4: Likewise.
82893         * m4/jm-winsz2.m4: Likewise.
82894         * m4/lcmessage.m4: Likewise.
82895         * m4/ls-mntd-fs.m4: Likewise.
82896         * m4/malloc.m4: Likewise.
82897         * m4/memcmp.m4: Likewise.
82898         * m4/putenv.m4: Likewise.
82899         * m4/realloc.m4: Likewise.
82900         * m4/st_mtim.m4: Likewise.
82901         * m4/strftime.m4: Likewise.
82902
82903 1999-01-16  Jim Meyering  <meyering@ascend.com>
82904
82905         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82906         (ARGMATCH_DIE_DECL): Define.
82907
82908 1999-01-12  Jim Meyering  <meyering@ascend.com>
82909
82910         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82911         Reported by Lars Hecking.
82912
82913 1999-01-10  Jim Meyering  <meyering@ascend.com>
82914
82915         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82916         gross kludge.
82917         * m4/inttypes_h.m4: Likewise.
82918         * m4/lstat.m4: Likewise.
82919         * m4/malloc.m4: Likewise.
82920         * m4/readdir.m4: Likewise.
82921         * m4/realloc.m4: Likewise.
82922         * m4/st_dm_mode.m4: Likewise.
82923         * m4/stat.m4: Likewise.
82924         * m4/utimbuf.m4: Likewise.
82925         * m4/utimes.m4: Likewise.
82926
82927         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82928         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82929         comments in config.h.in are meaningful.
82930
82931         * m4/jm-macros.m4: Require autoconf-2.13 here.
82932
82933         * m4/regex.m4: By default, don't use the included regex.c on systems
82934         with glibc 2.  Suggestion from Uli Drepper.
82935
82936 1999-01-02  Jim Meyering  <meyering@ascend.com>
82937
82938         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82939
82940 1998-12-18  Jim Meyering  <meyering@ascend.com>
82941
82942         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82943         Based on a suggestion from Lars Hecking.
82944
82945 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82946
82947         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82948
82949 1998-11-16  Jim Meyering  <meyering@ascend.com>
82950
82951         * m4/lfs.m4: Double-quote the `uname...` expression.
82952
82953 1998-11-14  Jim Meyering  <meyering@ascend.com>
82954
82955         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82956         * m4/stat.m4: Likewise.
82957
82958 1998-11-03  Jim Meyering  <meyering@ascend.com>
82959
82960         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82961         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82962
82963 1998-10-18  Jim Meyering  <meyering@ascend.com>
82964
82965         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82966
82967 1998-10-17  Jim Meyering  <meyering@ascend.com>
82968
82969         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82970         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82971         calls for those previously hard-coded headers.  Instead, take a new
82972         parameter.
82973         (jm_CHECK_DECLARATIONS): Reflect interface change.
82974         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82975         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82976
82977         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82978
82979 1998-10-14  Jim Meyering  <meyering@ascend.com>
82980
82981         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82982         instead of "TZ=America/Vancouver".  From Paul Eggert.
82983
82984 1998-10-11  Jim Meyering  <meyering@ascend.com>
82985
82986         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82987         This adds a test for a recently added compatibility fix for mktime.c.
82988         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82989
82990 1998-09-27  Jim Meyering  <meyering@ascend.com>
82991
82992         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82993
82994         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82995         ../configure.in, including a change from Gordon Matzigkeit to allow
82996         cross-compiling for the Hurd.
82997
82998         * m4/glibc.m4: New file/macro to test for the GNU C Library
82999         versions 1 and 2.  From Gordon Matzigkeit.
83000         Indent.
83001
83002 1998-09-21  Jim Meyering  <meyering@ascend.com>
83003
83004         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83005
83006 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83007
83008         Port nanosecond-resolution times to UnixWare 2.1.2 and
83009         pedantic Solaris 2.6.
83010
83011         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83012         AC_STRUCT_ST_MTIM.
83013         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83014         Generate name of ns member, instead of just 1 or undef.
83015         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83016
83017 1998-08-15  Jim Meyering  <meyering@ascend.com>
83018
83019         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83020         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83021         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83022         instead of jm_TYPE_SSIZE_T.
83023
83024 1998-08-12  Jim Meyering  <meyering@ascend.com>
83025
83026         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83027
83028 1998-08-02  Jim Meyering  <meyering@ascend.com>
83029
83030         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83031         in acconfig.h manually.
83032
83033 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83034
83035         * m4/st_mtim.m4: New file.
83036
83037 1998-07-28  Jim Meyering  <meyering@ascend.com>
83038
83039         * m4/utimes.m4: Undef stat.
83040
83041 1998-07-25  Jim Meyering  <meyering@ascend.com>
83042
83043         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83044         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83045
83046 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83047
83048         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83049         uid and gid actually remain unchanged.
83050
83051 1998-07-07  Jim Meyering  <meyering@ascend.com>
83052
83053         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83054
83055 1998-07-04  Jim Meyering  <meyering@ascend.com>
83056
83057         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83058         to prove that this macro can be used in packages without regex.c.
83059
83060 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83061
83062         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83063         is to be used.
83064
83065 1998-07-03  Jim Meyering  <meyering@ascend.com>
83066
83067         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83068
83069         * m4/gettext.m4: New file -- from gettext-0.10.35.
83070         * m4/lcmessage.m4: Likewise.
83071         * m4/progtest.m4: Likewise.
83072
83073         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83074         * m4/jm-macros.m4: Require the new macro.
83075
83076 1998-06-29  Jim Meyering  <meyering@ascend.com>
83077
83078         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83079         for the definition of NGROUPS (used in a system header included
83080         by sys/mount.h).
83081
83082 1998-06-28  Jim Meyering  <meyering@ascend.com>
83083
83084         * m4/ls-mntd-fs.m4: New file.
83085         * m4/fstypename.m4: New file.
83086
83087         * m4/jm-macros.m4: Require the new macro.
83088         * m4/jm-glibc-io.m4: New file.
83089
83090 1998-05-19  Jim Meyering  <meyering@ascend.com>
83091
83092         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83093         * m4/lchown.m4: New file.
83094
83095         * m4/Makefile.am.in: New file.
83096         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83097
83098 1998-05-14  Jim Meyering  <meyering@ascend.com>
83099
83100         * m4/Makefile.am (EXTRA_DIST): Add them.
83101         * m4/jm-macros.m4: New file.
83102         * m4/utimbuf.m4: New file.
83103
83104 1998-05-12  Jim Meyering  <meyering@ascend.com>
83105
83106         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83107
83108 1998-05-11  Jim Meyering  <meyering@ascend.com>
83109
83110         * m4/isc-posix.m4: New file.
83111
83112 1998-05-10  Jim Meyering  <meyering@ascend.com>
83113
83114         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83115
83116 1998-05-09  Jim Meyering  <meyering@ascend.com>
83117
83118         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83119         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83120         with automake.
83121
83122         * m4/ssize_t.m4: New file.
83123         * m4/mktime.m4: Remove file -- the new automake has this now.
83124
83125 1998-04-26  Jim Meyering  <meyering@ascend.com>
83126
83127         * m4/assert.m4: New file.
83128         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83129
83130 1998-04-05  Jim Meyering  <meyering@ascend.com>
83131
83132         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83133         (jm_PREREQ): Use it here.
83134
83135 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83136
83137         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83138         in acconfig.h.
83139
83140 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83141
83142         * m4/prereq.m4: New file.
83143         * m4/error.m4: New file.
83144         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83145
83146 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83147
83148         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83149         cache-check for the same variable -- that defeated the purpose of
83150         the test; the test program was never run.  This was a problem only
83151         on systems with losing getline functions -- HP-UX 10.20 is one.
83152         Reported by Bjorn Helgaas.
83153
83154 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83155
83156         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83157
83158 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83159
83160         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83161
83162         * m4/const.m4: New file.  Use an initializer in this declaration
83163         typedef int charset[2]; const charset x;
83164         Reported by Bob Glickstein.
83165
83166 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83167
83168         * m4/chown.m4: Fix reversed types on -1 args to chown.
83169         From Kaveh Ghazi.
83170
83171 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83172
83173         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83174         Add lseek and memchr.
83175
83176         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83177         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83178         have a 20-character limit on names.
83179
83180 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83181
83182         * m4/inttypes_h.m4: New file.
83183         * m4/uintmax_t.m4: New file.
83184         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83185
83186
83187         -----
83188
83189         Local Variables:
83190         coding: utf-8
83191         End:
83192
83193         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83194
83195         Copying and distribution of this file, with or without
83196         modification, are permitted provided the copyright notice
83197         and this notice are preserved.